I am new at working with Flash, and have been asked by my company to create a Flash presentation that simulates how our mobile media device is going to work. The device itself has buttons on it that when pushed, link to other content, replacing it on the device's media screen.
I have gotten everything to work and simulate as I want it, but when I transfer it to another computer to demo it, the links are broken and the Flash Media Player is looking for the files on my computer with their native file path.
My question is simply this: can linked media within an .swf file be embedded into the final file that I create to pass around?
If this cannot be done, does anyone have a suggested workaround for this? I would like to avoid the web if at all possible because this presentation I am making was going to serve as a communication tool between us and the companies that are going to advertising on our device.
Thanks for reading,
What "media" are you referring to? Other .swf files that you're loading into your movieclip? video files?
Flash has no problem with relative paths, so I'm thinking you're using relative paths somewhere... However in order to help, I do need to know what kind of media you're adding and how you have added them/are accessing them.
Let me clear this up for you. I have laid out a visual diagram that looks and functions as our mobile media device would. There are buttons on the device itself, that when pushed, link to a new screen that will pop up. All of the programming has been done using ActionScript 2.0.
I have laid out the device in flash, complete with the buttons. I have turned these buttons into symbols so that behaviors can be applied to them. I added the behavior ON_RELEASE to these buttons and programmed the new screen to replace the existing main screen by giving it an InstanceName. Therefore, when you push button A, instance mainmenu.jpg is replaced with the new .jpg screen in the middle of the device. All of the buttons work on my computer when exported as an SWF file.
My problem enters when I send this presentation to another computer. The jpegs that are replaced where the mainmenu.jpg is are unable to work because the .jpg that they are linking to are not on that machine where the file URL is telling it to get the file from. I do not want to have to link these files to a URL. Is there another way I can make this work so that the .jpg that I am linking to the buttons with the ON-RELEASE behavior can be stored in the actual SWF file so that other people can demo the media device without needing the files to link to the path on my computer.
Hope this helps. Let me know if you need more info.
That is definately possible. In fact, it's easier than the way you went about it! :)
What youu'll want to do is, go to the File menu and click on Import > Import to Library... Select all the files you wish to use in your presentation and click Ok.
Now, when you open your Library (Ctrl-L or Window > Library), you should have a nice overview of all your .jpg files, inside your .fla file.
Next, you can go about this several ways, but the easiest I think, will be to have a layer, with on it, your navigation/mobile media device and on another layer you drag one of the jpg files. Then add another keyframe on the layer with the .jpg file and replace the .jpg with another .jpg from your library. Do this for all .jpgs.
Reprogram the onRelease so that it will go to the appropriate frame, using
Be sure to add a stop(); function at the beginning of your movie though, or it will just loop through your movie without stopping.
I am happy to report that I have created a functioning simulation of the media device. I aborted the ActionScript 2 in exchange for AS3. I actually found it easier to get it working that way for me, and I'm using the latest scripting language.
I wanted to ask you another question, and was wondering if I should start a new thread or if we can continue communicating through this thread.
Anyways, my new question is this. Using ActionScript 3 now, is there anyway that you can program an embedded FLV file to stop playing on it's last frame and then jump to another frame? On our device, we program push buttons to allow the user to opt-in to a short demo video. After they watch the video, I would like it to automatically take them back to the previous Menu Screen, which will accurately simulate the actual device better.
If you need more information, let me know.
I appreciate all of you help in this matter. You have helped me make my bosses very, very happy.
Yes, this is possible. Unfortunately I am about to leave on a short trip, so I can't go into much detail at the moment as I am packing my bags as we speak.
Hopefully this will provide some information to get you on your way. Basically, what you will want to do is check for the VideoState of your FLV file and if the video stops (either at the end of the file or when the user clicks the button to initiate the stop() command) use actionscripting to go to the desired frame.
I will be back on Monday, but hopefully this will get you underway.
This is something I've been working on as well and have yet to figure it out. Have you had the opportunity to learn how to make that happen with out having to provide a button to the menu page for the viewer? I'm creating an interactive DVD that uses an opening video and currently once the movie ends the viewer has to click on the menu button. It would be great for the video to play and once it ends go to the next scene where the menu is.