Jump to content
xisto Community

andreip

Members
  • Content Count

    161
  • Joined

  • Last visited

Posts posted by andreip


  1. Well as far as know It isn't possible for any coder. As you stated above there are some developers who did this but they must be highly skilled. Unfortunetly I'm not that skilled so I can't help you. I haven't heared yet about the XSPFs but usually music is played in flash direct linked from flash itself or using XML which is much more dynamic. I know how to make and AS3 dynamic MP3 player that parses songs via XML in flash. But that way you'll have to store the songs on the server or somewhere online and link them to the XML which will parse them in flash. If you want I can help you in this matter. I've posted a tutorial in the tutorial forum, on how to make an mp3 player in flash AS3&XML. It should be accepted soon... I think. If you have anymore questions?


  2. My vote goes with no doubt to Adobe because even if they look unfriendly at first over the time you get acostumed with them and let's be honest that there is no real competition for them. Any professional designer uses Adobe's software. In the past I've also used Corel and Gimp. I liked gimp better because it's easy to use and fast. But the quality lacks compared to Adobe's one. But I have to say that Adobe has some really high prices.


  3. Plain awesome! I really needed this! I'm used to flash and I'm doing preloaders there but I wanted to take a break from flash and do some other things. So I started learning JavaScript. It's really helpful for any of us but I think It's great for the ones who own a freestorage files website. Also well explained with many explanations and hints. Keep the good job.Cheers!


  4. Well explained. Thank you for this, my friend plans to start a forum and I'm helping him with the design or any technical part he needs. This advices are great ! Also he has tried every one of the forum systems stated by you. He said SMF looked really simple to use. And he tried to install vBulletin but it seems his webhost doesn't allows it, so I told him about Xisto, and he did joined. Again thank you for the info and if there will be any problems I'll post here.Cheers!


  5. Firstly, we will create a new Action Script 3 document.

    We will create 2 layers, a layer named "Content" where all the

    buttons and design stuff will go and a layer named "Actions" where the actions will be

    placed.

     

    Posted Image

     

    We will start by creating the buttons we need. There will be a play button, a pause button,

    a stop button, a next song button and finnaly a previous button. We also need a volume

    control system and 2 textboxes.Let's start creating our buttons designs.

    I played with the tools and came up with this design :

     

    Posted Image

     

    Now select all the shape and right click on it and than chlick on "Convert to Symbol", and

     

    select button and name how you want.

     

    Posted Image

     

    Do the same with the other buttons. Design them and transform them into buttons.

    After that add 2 dynamic textboxes to the stage.

     

    Posted Image

     

    Finnaly the last component is volume system. Well I'm sure it sounds complicated but it's

     

    really easy.

    first make a line/rectangle 50px length, or about that. Select it, right click, convert to

     

    symbol and select movie clip and select the registration point to middle right.Like I did

     

    in the image :

     

    Posted Image

     

    Now double click the new made movie clip and inside it we will made another movie clip like

     

    this :

     

    Posted Image

     

    We are close to finish this project guys! We have to give instace names to our created

     

    buttons and movie clips.

     

    Ok so write the following instances :

     

    play button - play_btn

    pause button - pause_btn

    stop button - stop_btn

    next song button - next_btn

    previous song button - prev_btn

    first volume movie clip - volume_mc

    second (inside the first one) volume movie clip - slider_mc

     

    If you are new to flash here is how you put instances. You find the box the same as in the

     

    picture :

     

    Posted Image

     

    Now we finnaly can add our code. Unfortunetly I can not explain all the code to you if you

     

    are new to flash because you have to learn some basics at first. If you know the basics of

     

    Action Script 3 it will be really simple to understand and modify. Now click on the action

     

    layer and right click on the first frame, select Actions, copy and paste the code I will

     

    give you.

     

    volume_mc.slider_mc.useHandCursor = true;  var musicReq:URLRequest; var music:Sound = new Sound(); var sc:SoundChannel; var currentSound:Sound = music; var pos:Number;  var xml:XML; var songlist:XMLList; var currentIndex:Number = 0;  var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, whenLoaded);  function whenLoaded(e:Event):void {	 xml = new XML(e.target.data);	 songlist = xml.song;	 musicReq = new URLRequest(songlist[0].url);	 music.load(musicReq);	 sc = music.play();	 title_txt.text = songlist[0].title;	 artist_txt.text = songlist[0].artist;	 sc.addEventListener(Event.SOUND_COMPLETE, nextSong); }  loader.load(new URLRequest("playlist.xml"));  next_btn.addEventListener(MouseEvent.CLICK, nextSong); prev_btn.addEventListener(MouseEvent.CLICK, prevSong); pause_btn.addEventListener(MouseEvent.CLICK,pauseSong); play_btn.addEventListener(MouseEvent.CLICK,playSong); stop_btn.addEventListener(MouseEvent.CLICK,stopSong);  function nextSong(e:Event):void {	 if (currentIndex < (songlist.length() - 1))	 {		 currentIndex++;	 }	 else	 {		 currentIndex = 0;	 }			 var nextReq:URLRequest = new URLRequest(songlist[currentIndex].url);	 var nextTitle:Sound = new Sound(nextReq);	 sc.stop();	 title_txt.text = songlist[currentIndex].title;	 artist_txt.text = songlist[currentIndex].artist;	 sc = nextTitle.play();	 currentSound = nextTitle;	 sc.addEventListener(Event.SOUND_COMPLETE, nextSong); }  function prevSong(e:Event):void {	 if (currentIndex > 0)	 {		 currentIndex--;	 }	 else	 {		 currentIndex = songlist.length() - 1;	 }			 var nextReq:URLRequest = new URLRequest(songlist[currentIndex].url);	 var prevTitle:Sound = new Sound(nextReq);	 sc.stop();	 title_txt.text = songlist[currentIndex].title;	 artist_txt.text = songlist[currentIndex].artist;	 sc = prevTitle.play();	 currentSound = prevTitle;	 sc.addEventListener(Event.SOUND_COMPLETE, nextSong); }  function pauseSong(e:Event):void {	 pos = sc.position;	 sc.stop(); }  function playSong(e:Event):void {	 sc = currentSound.play(pos); }  function stopSong(e:Event):void {	 sc.stop();	 pos = 0; }   var rect:Rectangle = new Rectangle(0,0,50,0); volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN,dragIt); volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_UP,dropIt); stage.addEventListener(MouseEvent.MOUSE_UP,dropIt);  function dragIt(e:Event):void {	 e.target.startDrag(false,rect);	 e.target.addEventListener(MouseEvent.MOUSE_MOVE, adjustVolume); }  function dropIt(e:Event):void {	 var vol:Number = volume_mc.slider_mc.x * .02;	 var st:SoundTransform = new SoundTransform(vol,0);	 sc.soundTransform = st;	 volume_mc.slider_mc.stopDrag();	 volume_mc.slider_mc.removeEventListener(MouseEvent.MOUSE_MOVE, adjustVolume); }  function adjustVolume(e:Event):void {	 var vol:Number = volume_mc.slider_mc.x * .02;	 var st:SoundTransform = new SoundTransform(vol,0);	 sc.soundTransform = st; }

    Now you finished your own AS3&XML Mp3 player in Flash.

     

    Now I should explain the XML part which is very simple. All you need is to modify the file

     

    I just gave you. You can do this with notepad or any text hyper processor you've got.

    Also here is the generic code for the xml so that you have an idea about it :

     

    <jukebox>	 <song>		 <title></title>		 <artist></artist>		 <url></url>	 </song> </jukebox

    Thank You for reading and don't hesitate to ask me any question or any problem you have.

    Cheers!

     

    Final Preview :

     

    Posted Image

     

    Notes : Here are the project files for you guys!

     

    mp3trap17.rar - 12.3 Mb]CLICK TO DOWNLOAD THE FILES

     

    Also I will try to explain the code for the ones that don't have the basics or any kind of

     

    knowledge in flash.


  6. Well hello guys if you are kindly enough and have some time please rate my new web layout of my website.
    Its all made by me using photoshop for graphics and the programing languages used are Html, CSS and a little JavaScript. The blog (50%made) is still under construction and same for the portofolio (I have to list the projects and my work).
    Thank you for reading this and here is the link to my website :
    http://andreip.co.cc/

    Notice from saint-michael:
    Topic closed due to link being dead.


  7. Thank you guys for being kind enough to welcome me :D ! I've already read the rules and the other stickies to be sure I understood all of this. Well I have registered at https://support.xisto.com/ with the same email adress.

    I have some questions if you guys don't mind. I've already posted and no cent is showing. They still say "myCENT: No Information". And when I have more than 100mycent I should go to Xisto - Support and check or something like that, or it automaticly does it ? And for example the standard package "Logic PRO - $6.66 / mo. - Free Setup* - The Best in Class! - (Recommended)" I have to have 666mycents/month... I think...

    And jlhaslip sure I would be glad to post some tutorials about Html or CSS even if my main domain of webdesign is Flash.

    Cheers!


  8. Well I have to say I haven't really learnt html from a specific tutorial or location. I've just improvised and tryed a lot of it myself. At first it was a game but than I started doing much more complex things. I've also learnt CSS after html and I have to say it's really simple if you look a little closer at it. Overall I've just increased in experience. But I'm still learning. As for the software I use, I clearly can say that Aodobe Dreamweaver is the best out there. It deserves all the pennys :D.


  9. Well hello there! My name is Andrei I'm 16 years old and I live in Romania. In my spare time when I do not go out with my friends I really like to work on my web design skills. Currently I'm working on my Flash, Html and CSS skills. I can also say that I'm pretty talented in Photoshop. I'm willing to learn JavaScript and PHP. Other programing languages that I know is VB.Net (VB6 & VB2008). I'm very sociable and always willing to help.I can say I've tryed many free webhosts since now, and I've heared allot of good things about Xisto. I can't wait to see this in action.Note: Even if I'm not from England or USA I'm doing my best to hape apropriate gramar and spelling. Sorry for any mistakes.Thank you for reading all of this and if you have any questions or advices just write them.Cheers!

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.