[flexcoders] reconize file extensions

2008-07-16 Thread carloveparade
Hi, im doing a music player but i can play video too. i need to
reconize if the file that the html is passing to the swf is a mp3 file
or a .flv file. Please help me thenx 



[flexcoders] Re: reconize file extensions

2008-07-16 Thread carloveparade
--- In flexcoders@yahoogroups.com, carloveparade
[EMAIL PROTECTED] wrote:

 Hi, im doing a music player but i can play video too. i need to
 reconize if the file that the html is passing to the swf is a mp3 file
 or a .flv file. Please help me thenx

thanks i found a solution using str.slice(-3,str.length) where str is
the name of the file. the method slice(-3,str.length) return the 3
last charaters mp3, flv, etc.



[flexcoders] Hslider on a mp3player

2008-07-14 Thread carloveparade
Hi, im doing now an mp3 player, i have a progresbar where i can see
how much of the song is loaded ( streaming )but im trying to do a
progrebar where i need to see in which second of the song i am.
another thing i need to be able to go to a position of the song whit
that bar, i decide tu use a hslider and update his value every second,
but i dont know how to do if i want to go to second 10 for example. 
thanks, sorry my english is not so good



[flexcoders] Problems with SWFLoader

2008-07-03 Thread carloveparade
I had been working with the SWFLoader to embed external swf 
aplications on my flex application. Now I need to start a second embed 
swf when the first one ( a movieclip) is on the end of the movie. In 
other words I need to star a new movie when the first is endes, but i 
cant put a next button so i need start the second one automatically. 
Could you help me?



[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, Sean Clark Hess [EMAIL PROTECTED] 
wrote:
yes, both as3
 Is the loaded swf written the same version of actionscript as the 
loader?
 
 On Thu, Jul 3, 2008 at 8:21 AM, carloveparade [EMAIL PROTECTED]
 wrote:
 
I had been working with the SWFLoader to embed external swf
  aplications on my flex application. Now I need to start a second 
embed
  swf when the first one ( a movieclip) is on the end of the 
movie. In
  other words I need to star a new movie when the first is endes, 
but i
  cant put a next button so i need start the second one 
automatically.
  Could you help me?
 
   
 





[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, Sean Clark Hess [EMAIL PROTECTED] 
wrote:

 Is the loaded swf written the same version of actionscript as the 
loader?
 
 On Thu, Jul 3, 2008 at 8:21 AM, carloveparade [EMAIL PROTECTED]
 wrote:
 
I had been working with the SWFLoader to embed external swf
  aplications on my flex application. Now I need to start a second 
embed
  swf when the first one ( a movieclip) is on the end of the 
movie. In
  other words I need to star a new movie when the first is endes, 
but i
  cant put a next button so i need start the second one 
automatically.
  Could you help me?
 
   
 
ys its actionscript 3




[flexcoders] Re: Problems with SWFLoader

2008-07-03 Thread carloveparade
--- In flexcoders@yahoogroups.com, Sean Clark Hess [EMAIL PROTECTED] 
wrote:
OKOKOKOK, Im using flex and i need to put a swf publicity on my 
panel, im using swfloader and after publicity is on the end i need 
to go to another panel or canvas using a viewstack. but i need to go 
to the other canvas after the publicity ends and do ti 
automatically. 
im using a viewstack an i was thinking in goto another selected 
index when the publicity end but how i know on my code if the 
movieclip ended? what do you thing about not to use a viewstack 
and use a panel and when the publicity end load the next swf on the 
same panel? i dont know what to do , maybe some event when the swf 
ends. could you help me?
 SWFLoader has a content property.  As soon as it is fully loaded 
and content
 is defined, try something like this.
 
 var movie:MovieClip = mySwfLoader.content as MovieClip;
 movie.addEventListener( ... uhhh
 
 Actually, I've never worked with flash movieclips in as3 (I've 
only used
 flex stuff).  Why doesn't movieclip have an end or stop 
event???
 
 I guess you could always use enterFrame as the event handler, and 
check for
 the last frame in good old as2 style
 
 On Thu, Jul 3, 2008 at 9:18 AM, carloveparade [EMAIL PROTECTED]
 wrote:
 
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Sean
  Clark Hess seanhess@
  wrote:
 
  
   Is the loaded swf written the same version of actionscript as 
the
  loader?
  
   On Thu, Jul 3, 2008 at 8:21 AM, carloveparade 
carlos.robinson@
   wrote:
  
I had been working with the SWFLoader to embed external swf
aplications on my flex application. Now I need to start a 
second
  embed
swf when the first one ( a movieclip) is on the end of the
  movie. In
other words I need to star a new movie when the first is 
endes,
  but i
cant put a next button so i need start the second one
  automatically.
Could you help me?
   
   
   
  ys its actionscript 3