[mx] Rand. Let. Gen Problem

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)

View Flash File Here

Importing them as swf to my main library doesn’t help either … they just don’t show up…

Please help. :-\

~ Seretha

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

the four words will each be separate files

Here’s the FLA file

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

I tried to run your test but it’s not working. I believe you have to give the fla’s as well

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:

loadMovieNum("letterfill1.swf", 1);
loadMovieNum("letterfill2.swf", 2);

not very elegant but it works. i’m sure someone here can do it the right way and remedy your original file.

thank you very much for all your help… i will mess around with it for a little while and let you know the outcome.

:love:
~ Seretha

try this, just put it in it’s own folder, publish and open the letterfill.swf

Great. Thanks for the reply. This file works great the only question I have left is how do I specify where exactly I would like each mc to appear?

I’ve seen it before but I forget where…isn’t that always the way… but i think it’s something like :

x_coordinate=
y_coordinate=

Thanks again for all the help. I REALLY appreciate it!

:love:
~ Seretha

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 :eye:

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;