PDA

View Full Version : to loadMovie, or not to loadMovie...



khinsah
August 20th, 2003, 04:53 PM
First time poster here. :)

I've been banging my head trying to find out why this won't work as it should. I have created one .swf that is set to build a grid using a time delay script I found and duplicateMovieClip. The script was originally set to run once per second, but I modified it to run much faster; about 1/10th of a second. Unfortunately, if I added anything more in that .swf movie it threw the grid-building off in crazy ways. I decided to try exporting it to another .swf and calling it with loadMovieNum, which /sorta/ works, but I have to slow the grid-builing .swf way down or the grid won't work at all.

I'm still learning AS as I go, so there may be a better way to do all this and I just haven't found it yet. If anyone has a suggestion on how to make this work I'd really appreciate it!

Here's the grid .fla : http:\\www.inceptionnet.com\grid.fla

Thanks fer lookin! :)

khinsah
September 8th, 2003, 01:09 PM
Can no one help me? :(

lostinbeta
September 8th, 2003, 01:24 PM
what version of flash are you working in?

lostinbeta
September 8th, 2003, 02:07 PM
Ok, well I got stuff to do, so I whipped this up real quick...

It requires MX so hopefully you are using that ;)

The code is fully commented, if you have any questions at all I will try and explain what I did, why I did it, and/or what it does better.

khinsah
September 8th, 2003, 03:00 PM
Wow, you whipped that together in under an hour?? I am humbled, and thankful. ^_^

And yes, I was using MX, sorry.

I think this'll go a long way. Thanks very much!

lostinbeta
September 8th, 2003, 04:16 PM
It actually took me 10 minutes ;) I like to think of what I am going to do in plain English and then try and convert that to actionscript.

In this case I thought of it like this..

I have a block

I want to duplicate this block vertically to make a column of x number of blocks

I then want to fade this column in then duplicate the column horizontally so I have x number of columns

All it is from there is figuring out the right actionscript to get it to work :)