I have been trying to get 4 random letter generators to work at the same time as they all load on keyframe 60. However only one will work while the other 3 dont ever show up. I have given an example below if someone could let me know how I would get it to work. I’ve tried changing the variable ‘x’ to ‘a’ but for some reason it still won’t work… i want the result to be 4 random generated buttons that will be used for my menu. Any help would be appriciated.
:love:
~ Seretha
(this example only has 2 rand. gen. movie clips but it’ll be the same idea with more)
the link you have shows one word being created but there are supposed to be three others? when you test movie within flash, does it work? are all four movieclips calling on the same actionscript (arrays I presume)? hard to tell without the fla
well, call me stupid (i’m from quebec anyway), but I can’t figure it out. by “the four words will each be separate files”, do you mean their own swfs, because that works fine
yea. i’m not sure what you’re forgetting to tell me but i used that code in the main a/s of my page and it tells me ‘error reading c:…/mc1.swf and …/mc2.swf’ and that’s using my own files.
hmmm, i probably messed up the zip thing! all I did was take each mc (mc1 and mc2) and make their own fla and swf (so each fla is just the one mc) and then made a root fla that loads them as such:
well, yes the neatest way would be to define the positions via actionscript but I just create my graphics in one movie and then cut and paste each element in the subsequent loaded swfs.
the only way I know to do it is to use the property inspector and place each element in each place, so if you have four buttons (your neat text effect mcs) in four different level swfs just place the first at an x and y of 10 and 60, the second at 10 and 75 and so on depending on the placement desired for your site.
just a suggestion: why don’t you create your flas so that your base graphic elements are in level0 and then load each of the text mc swfs into levels 10, 11, 12 and 13. put the loadMovieNum scripts in the base movie in frame one.
once you have the site a little further along, repost your question so that someone can streamline the code. then you can place the text effect mcs back into the level0 swf for fewer files
the four text effect clips should all work in one swf (rather than the four levels we came up with here) but I don’t know how to fix that and someone here does.
the end result will look and act the same for the user either way
good luck and I’d love to see it when you are done, it’s a really nice effect
where in Canada are you from? me, Quebec City
ah, here’s how you can place something from the library (but it has to be somewhere on or off the stage with an instance name, this example has instance name of box)
_root.box._x = 100;
_root.box._y = 100;
Creating engaging and entertaining content for designers and developers since 1998.