This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > October 2005 > How to do it?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to do it?
AshDesign

2005-10-27, 3:20 am

Hi!
Have a problem =(. I would like to create movie clip dynamically with AS to load there streem of photos.
Automatic find How many photos we have 1,2,3...n.
totoisacat

2005-10-27, 6:18 am

Not sure but i wish to create page of images/thumbnails and when opened up open in area on same page. Any ideas?
midi510

2005-10-28, 3:17 am

To the second question, Use loadMovieNum()

loadMovieNum(url:String,level:Number [, variables:String]) : Void

Parameters:
url - The absolute or relative URL of the SWF or JPEG file to be loaded. A
relative path must be relative to the SWF file at level 0. For use in the
stand-alone Flash Player or for testing in test mode in the Flash authoring
application, all SWF files must be stored in the same folder and the filenames
cannot include folder or disk drive specifications.

level - An integer specifying the level in Flash Player into which the SWF
file will load.

variables - An optional parameter specifying an HTTP method for sending
variables. The parameter must be the string GET or POST. If there are no
variables to be sent, omit this parameter. The GET method appends the variables
to the end of the URL and is used for small numbers of variables. The POST
method sends the variables in a separate HTTP header and is used for long
strings of variables.


Use your thumbnail hits and onPress or onRelease to load your movie into the
desired level. You can have many movies loaded at the same time, seeing through
where there is no content. You can load your thumbnails in a high level then
the other movies under. If you want your thumbnails to be on stage already,
they will load into level 0. To load subsequent movies below, go to Publish
Setting... and select Top Down for load order. Then your other movies will be
below your menu. It may not matter which is on top or bottom. When you load a
movie into a level, the movie already there, if there is one, will be replaced.
To unload a movie without loading a new one, load a blank movie into that
level. I use a 1px X 1px movie called "blank.swf".

This is some code where I have a movieclip instance "index" containing
thumbnails for campgrounds. The thumbnail hit loads the campground movie into
level 4, replacing the previous one. I have a master menu that loads the movie
containing the index, It also loads mountainbiking trail maps, slideshows, etc.
You can make realy cool apps really easily like this.


index.agnewHit.onPress = function() {
loadMovie("Resources/agnew.swf", 4);
}
index.aspenHit.onPress = function() {
loadMovie("Resources/aspen.swf", 4);
}

index.bigmeadowHit.onPress = function() {
loadMovie("Resources/bigmeadow.swf", 4);
}

midi510

2005-10-28, 3:17 am

You could have buttons or thumbnails that would load sets of image thumbnails
that would load the images. You can have the images flying in or fading in or
whatever. You can load jpegs as well as swfs this way without making a movie
for each image. You can do more fun things in a movie though.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews