Where is the second set of code you show located?
I don't see any code that opens the swf but I am assuming that is not a problem. Just because you load an swf in a certain frame does not mean it exists only in that frame. How do you load the swf?
The second set of code is located within the movie clip.
As to how I load the swf, I built the application so that the swf video appears on frame 191 to 220 of the movieclip, on frame 220 of that clip I put a stop( ). Also within that movie clip is a button which exists from 191 to 220 which I want to basically get rid of the swf file unless someone clicks to open it again, this is the crossbuttonBCI, to do this I wanted it to go back to frame 105 of the movieclip, which runs until frame 190 before going back to 105 again with a gotoAndPlay(105) code.
I'm a beginner in flash, so a lot of the time I've been relying on my logic of how to do things rather than an extensive or even semi-professional knowledge of the app.
I think I know what the problem is, I will come back if I can't solve it, thanks.
So, nope, sorry - any ideas?
EDIT: okay I kind of got it, except the audio from the swf file is still playing despite the frame changing to a point when the video no longer appears. Is there a fix?
You'll need to shut off whatever is playing before you move away
How do I go about that? So far I'm getting by with a 'SoundMixer.stopAll', but I'm not sure that's the correct way to do it.
Also, I have an MP3 file of music playing in the background while the user is on this particular page. When the user clicks to play the video, I use the SoundMixer.stopAll function to stop the background music, but I want the music to play once again (ideally from where it left off) when the video is closed. Is there a way to do this? Thanks
May I start from the top? Essentially I have a scene with background music and a navigation bar, where I would like a selection of mp4 videos to be available to play via clicking on their thumbnails. It'd also really help it I had a functioning full screen button? I can't seem to get this to work either through the preset swf player skins or through code.
When the user clicks to play these videos, I want the music to stop or pause. I then want a button which can be used to close or stop the video, and return the thumbnail image. This button would also resume (if possible) or start the music again.
The project and all of its content has to eventually be transferred across different computers (not online, through file transfers) so that it can be marked and moderated. So I'm not sure if I need to edit any of the settings when importing the mp4 files onto the project. If you can help at all with any of this, I'd be really appreciative. Thanks