This content has been marked as final. Show 3 replies
I assume that your FLV player has an instance name of "videoLocation". If you don't put the FLV player on the stage until frame 2, then the instance name "videoLocation" that you're referencing in frame 1 doesn't exist yet, so the Flash player doesn't know what to do with that code (and thus does nothing, failing silently). The button code in frame 1 should only have the gotoAndStop code, then put the code relating to the FLV player in frame 2. that should do the trick.
Thank David for that, it does work with that method, but it defeats the purpose, of what I wanted, which is, when I press say Button1 on frame 1 it plays eddiescores.flv in frame 2 and if I press Button2 on frame 1 it plays greatgoal.flv in frame2 on same FLV player.
Is there any way to do this ?
Frame 1 button code:
flvvar = "eddiescores.flv"; //on the other button use other video name
Frame 2 - Give FLVplayer Instance name of vid. Put this code on the frame.
vid.contentPath = flvvar;
vid.play(); //not necessary if FLVplayer is set to autoplay in component inspector