Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Load External SWF Into Emtpy Movie Clip
 

StargrrlGrafx




quote this post edit post

IP Loged report this post

Old Post  01-21-05 - 12:20 AM  
I'm using Flash movies to display photography. The photos are displayed
according to x, y coordinates using actionscript when the corresponding
thumnail is clicked.   What I'd like to do is put the full size photos in th
eir
own individual swf's and then call them into my main movie using an empty mo
vie
clip placeholder.    Three Questions  1. Will this help minimize my file siz
e?
2. Where do I find tutorial on how to do this? 3. What would be the searchab
le
term for what I want to do so I can search google?  TIA Amelia



Post Follow-Up to this message ]
Re: Load External SWF Into Emtpy Movie Clip
 

topgun21




quote this post edit post

IP Loged report this post

Old Post  01-23-05 - 04:14 AM  
First export each photo as indiviual swf file, then place them in the same
directory you main movie (the one calling the photos) will be in. Then in yo
ur
main movie create a new symbol, make it a movie clip, and drag it on stage.
Give it an instance name. Let's call it photoloader_MC. Then create a button
that will trigger the load. Attach the following code to the button:  on
(release){ this.photoloader_MC.loadMovie('photo1.swf'); }  Your path to
 the
blank movie clip (photo_MC) may be different, based on how you have your mov
ie
setup. I suggest using your target tool in the actionscipt pallet, to find t
he
proper path to your empty movie clip. Because your loading a movie clip into
another blank clip where ever that movie clip is positioned is where your ph
oto
will show up.  And yes, this technique will make your main movie much smalle
r,
because your only loading what you need, when you need it.  Hope this helps,
Steve



Post Follow-Up to this message ]
Re: Load External SWF Into Emtpy Movie Clip
 

StargrrlGrafx




quote this post edit post

IP Loged report this post

Old Post  01-24-05 - 04:16 AM  
HI Steve,   Thank you for replying. I've got my movies set up now and they a
re
working great! My files sizes went from 200-300kb to literally 22kb! I'm pre
tty
excited about that.   The only thing I'm noticing now, it takes a fraction o
f a
second to show up in the window the first time a button is clicked. I went
ahead and added preloaders to the movies that are being called into the wind
ow
but I don't see the preloaders and it still takes that fraction of a second.
 Is
this just something that happens when your usig the loadmovie funcion?  I'm
wondering if I can add a preloader to the main movie instead of the movies
being called to avoid that split second delay.  Thanks! Amelia



Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 10:00 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Flash Site Design archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top