| Flash - ActionScript 2 - Load movie onto a specific frame? |
aniworld |
Hi, im trying to find a way to use the loadmovie in flash but i need it to load onto a specific frame?
what im hoping will happen is people will click on an image on my site which will launch the image viewer starting with the image they've selected.
thank you once again for any help listed. :)
read 842 times 9/1/2010 1:51:56 PM (last edit: 9/1/2010 1:51:56 PM)
|
rob@dynamic |
do you mean to launch a .swf file?
Do you want it to open in a new window?
This may help you
http://www.sitepoint.com/forums/showthread.php?t=539854
3D Portfolio Blog Facebook Twitter Flickr
read 829 times 9/1/2010 2:38:00 PM (last edit: 9/1/2010 2:42:19 PM)
|
aniworld |
hi firstly thank you that is exactly what i was after only i cant seem to get it to work?
what im trying to do is open the image viewer ontop of the existing movie at a certain frame for each button/image selected then they can scroll at will or close and return back to the original movie.
similar to how Daniel Mandic has on his site only my images are all in one timeline rather than many smaller ones.
http://www.dice3d.co.cc/index.html
read 807 times 9/2/2010 8:23:23 AM (last edit: 9/2/2010 8:35:25 AM)
|
rob@dynamic |
There are loads of pre build image galleries on the web for free download if you want a quick cheat.
However, If I was doing that in flash I would have it opening a movie clip withing the flash file not a separate .swf file.
So the code would be:
ImageHolder_mc._visible = false;
button1.onRelease = function() { ImageHolder_mc._visible = true; ImageHolder_mc.gotoAndStop("Image01") }
Obviously that is very simplified code and I would use a tween class to tween in and out the transitions. You could also have and .xml file that would populate the images for you, which will make updating your website much easier.
Hope that helps.
3D Portfolio Blog Facebook Twitter Flickr
read 796 times 9/2/2010 10:14:54 AM (last edit: 9/2/2010 10:14:54 AM)
|
aniworld |
hi thanx for getting back to me, but the reason i was loading in the .swf is to save on file size? as the pics in the image viewer are pretty large when all put together along with the main site page as well?
but i am interested in the .xml pop up? i'll have to look into it :)
read 781 times 9/2/2010 4:44:50 PM (last edit: 9/2/2010 4:45:49 PM)
|
rob@dynamic |
Yea .xml is your friend! I tend to use it more and more these days. It allows you to store the images in an external folder that are called into the .swf when needed.
Let me know how you get on.
3D Portfolio Blog Facebook Twitter Flickr
read 774 times 9/2/2010 4:48:46 PM (last edit: 9/2/2010 4:48:46 PM)
|
aniworld |
will do cheers :)
read 771 times 9/2/2010 5:20:40 PM (last edit: 9/2/2010 5:20:40 PM)
|
aniworld |
Hi Rob and Thanx again for pointing me in the right direction the other day :) i've finally got what i was after in rough form, i built the xml like this:
(+=< or >) +gallery+ +image name="1"+image/1.jpg+/image+ +image name="2"+image/2.jpg+/image+ +image name="3"+image/3.jpg+/image+ +gallery+
then in flash i've set keys that will call up the image on demand into an empty movie clip this way i manually change and fiddle them in the timeline rather than trying stumbling through the actionscript :) i've also added some fade to the empty movie clip that once played back effects the image which i like :) its probably not the best way but it works and i understand it so im happy :)
thanx to: rob@dynamic ww.republicofcode.com/tutorials/flash/xml/
read 727 times 9/7/2010 6:46:19 PM (last edit: 9/7/2010 6:48:23 PM)
|
rob@dynamic |
no probs, glad you got it sorted :-)
Care to upload a link to show the finished thing?
3D Portfolio Blog Facebook Twitter Flickr
read 720 times 9/7/2010 8:06:39 PM (last edit: 9/7/2010 8:07:31 PM)
|
aniworld |
i've only done a test file so far with actual pics of 1,2,3 :) but im starting on the real thing i'll post it up once im done :)
read 713 times 9/7/2010 8:52:40 PM (last edit: 9/7/2010 8:52:40 PM)
|