Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

transitions for a photo based site

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dtodab - 07 Jul 2008 20:45 GMT
i have a general question regarding the use of transitions with photos. i've
just completed my first flash base site and it seems to take way too long to
load up (i have a preloader to load the entire site after the splash page). it
is a photography based site, so primarily images for every page. each image has
been converted to a movieclip which fades in using about 15 frames for its
transition. i'm wondering if i can somehow apply the same transition to each
new image instead of using many transitions that do exactly the same function.
if this is possible, i'm sure it will account for a significant size decrease
in the overall site.
if not, i may have to go back and resize each image.
any suggestions would be greatly appreciated.
thanks.
dzedward - 08 Jul 2008 15:08 GMT
create an array of the instance names of your movie clips, and use a for loop to apply the transition to all of them.
dzedward - 08 Jul 2008 16:55 GMT
var mcNames:Array = new Array(GJack_mc, Another_mc, Again_mc, More_mc);

for(var i = 0; i<mcNames.length; i++){
      var t:Tween = new Tween(mcNames[i], "_alpha", Strong.easeIn, 0, 100, 1,
true);
};
dtodab - 12 Jul 2008 16:25 GMT
thanks for the help. things are working more or less....
just wondering how to apply it across several frames. i've placed the code on
the first frame of each image section, but it seems to only work for that one
frame. perhaps i'm not placing the code in the proper section.
any advice?
dtodab - 08 Jul 2008 15:24 GMT
thanks for the quick response.
this is my first flash project, so just wondering if you can point me in the right direction of finding the proper code to do this.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.