This is a discussion on "FLV Player Actionscript problems" within the Flash & Multimedia Forum section. This forum, and the thread "FLV Player Actionscript problems are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
FLV Player Actionscript problems
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
FLV Player Actionscript problems
I have been having a problem with using the video player components in Flash. I do not have a great deal of experience
with this technology so it could just be something that I'm not seeing. I could really use some help and would greatly appreciate it. So what my basic setup is that I have a movie selector device on a different frame on the same movie clip (showing thumbnails for instance, the user pick the movie and it takes them to this page). The movie selector stores the path name for the movie selected in an actionscript variable in another movie clip. I'm not having any problems accessing that variable name. So on this page I basically want a movie player that can take that filename and load the file without user intervention. Also I need it to be an FLV movie player component rather than the regular video component because I NEED the FLVPlayback.complete, FLVPlayback.scrubFinish, FLVPlayback.playing, and FLVPlayback.paused events for data recording purposes. My understanding was that the other video display components couldn't handle this. Anyways, I currently have the problem that this component makes me load a video into the movie to begin with when I put it on the stage in the parameter tab of properties, which I don't want to do--because this will change based only on what they choose in the selector page. Also, the only way I can have the movie that they have choosen play (as opposed to this one I had to put in the paramaters tab) is to have them click another button (called switch_btn that switches the movie I don't want to play with the one the user selected). Here is the code. The first snippet shows my attempt to in the switch_btn.onPress event handler to say if the switch_btn hasn't already been pressed (that is the switch_btn.select) then load the movie and play it. I want this to happen basically when the movie loads.
total time: 1:26 / 3:00 min). Not sure if this is necessary, but I'll include it anyways.
Thanks, Will |
|
|
|
|||
|
Re: FLV Player Actionscript problems
I don't have a lot of time to write something out right now...(busy at work) but have you tried using the .attachvideo attribute to attach it to an empty movieclip?
Here is a link to a great resource that might help you... http://www.quip.net/blog/2006/flash/...external-video ...then instead of just putting the path of the video, instead use a variable that can be filled when the user selects which video they want from the list. The list sends set the variable to the flv name and passes it to the player. Hope this helps, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: FLV Player Actionscript problems
Thanks for the response.
I had seen a bunch of tutorials about making everything from scratch, but in the end decided to go with the FLV player component despite all it's deficencies. I really needed to be able to control play state and scrubber state. As it turns out, I was able to fix the problem. I think my problem, as usual, may have been when the component was loading so if I were to change the first code statement I had above to:
It worked. I don't know if that will be useful to anyone on the forum (perhaps my problem is so specific), but here's how I solved this. Thanks, Will |
![]() |
| Tags |
| actionscript, component, flv |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with Forms in ActionScript 3.0 | dgstarr | Flash & Multimedia Forum | 3 | Sep 7th, 2007 20:37 |
| Radio Button Problems in ActionScript 3.0 | dgstarr | Flash & Multimedia Forum | 1 | Sep 6th, 2007 17:11 |
| Problems with Volume Control for Flash MP3 Player | Phil | Flash & Multimedia Forum | 3 | Aug 16th, 2007 09:39 |
| Actionscript 3.0 | Sgaspar11 | Flash & Multimedia Forum | 7 | May 28th, 2007 18:31 |
| Embeded Mp3 player problems | Zaine7673 | Web Page Design | 2 | Dec 17th, 2006 13:29 |