Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
MC Frog #1
Swapping symbols
Can you swap a symbol using script? I want to use the same timeline based animation over and over again and all I want to do is change the symbol each time using script.
Thanks
MC Frog Guest
-
need help with image swapping.
hi all need help with image swapping. its perfectly working in my system offline as well as online. but its not showing the image in other... -
Second IMG not swapping
Okay, I already have the layer floating properly that contains the two boxes and the first box is swapping the pictures properly. However, for some... -
Swapping images?
Hello, this is more than likely a newb question, but non the less, I must ask. How does one have an image swap in a portion of a web page via a... -
Swapping sprites
Is there an easy way to swap sprites? ie so two sprites end up swapping their sprite nums? I can't seem to find one, although I'm aware you could... -
swapping swf
Hi, Does anyone have any scripts that will swap an swf on a page? Preferably it would use javascript, but anything will do. Even a tutorial would... -
CesareRocchi #2
Re: Swapping symbols
Symbol swapping and register class are allowed at design time. You can try to
actionscript
the animation of your timeline and then extend the MovieClip object like this:
MovieClip.prototype.yourAnimation = function () {
}
This way you have the behaviour encoded as a function which can be applied to
every symbol
which inherits from MovieClip.
HTH,
-c.
CesareRocchi Guest
-
MC Frog #3
Re: Swapping symbols
My conclusion is that you cannot swap symbols using actionscript in the way I
want, for the duration of the MC. You can, it appears, swap the MC until the
next keyframe by using:
deleteMovieClip();
attachMovie("foo","foo2",0);
But this means you have to place this in a ClipEvent for every keyframe and
isn't the cleanest solution. So is there another way to do what I want?
MC Frog Guest
-
CesareRocchi #4
Re: Swapping symbols
This is not swapping in the technical sense, this is substitution.
Anyway, if you want you can go on with your solution but remember that
remove/delete statements don't actually erase objects, they simply 'suggest'
the player that
it's time to clean the memory. If you have to do you trick many times, e.g.
500, there could be
problems with performance.
btw 'deleteMovieClip()' is not a method in my Flash MX. r u using mw2004?
HTH,
-c.
CesareRocchi Guest



Reply With Quote

