PDA

View Full Version : converting code MX to Flash 5



thekok
May 14th, 2003, 07:09 PM
Hi,
I have to publish an swf as flash 5 but it's been generated with flash MX and the new syntax.

maskera.swapDepths(100);
createEmptyMovieClip("content", 1);
content._x = 230;
content._y = 130;
for (i=1; i<=14; i++) {
content.attachMovie("pic"+i, "pic"+i, i);
content["pic"+i]._y = 0;
content["pic"+i]._x = _global.w;
_global.w += 400;
}
stop();

-----
already tried to swap _ global to _root but published as flash 5 it does not work.
Any idea
thanks
:-\

Jubba
May 14th, 2003, 07:14 PM
you can not use createEmptyMovieClip in Flash 5 code. it wasn't availible.

thekok
May 14th, 2003, 07:26 PM
hoops..
do u think i can fix the code in order to be able to publish as flash 5 ?

mdipi
May 14th, 2003, 07:44 PM
why do you want to publish to flash five?

thekok
May 14th, 2003, 10:52 PM
i have to by the way

thekok
May 15th, 2003, 05:47 AM
thanks Jubba, i used flash 5 just a little and i didn't know that.
thanks mdipi.com x your curiosity but anyone knows how to adapt this script for flash player 5?
thanks

thekok
May 15th, 2003, 06:33 AM
problem solved
i created an empty movie clip "content" end put it on the stage.

maskera.swapDepths(100);
content._x = 230;
content._y = 130;
for (i=1; i<=14; i++) {
content.attachMovie("pic"+i, "pic"+i, i);
setProperty("content.pic"+i, _y, 0);
setProperty("content.pic"+i, _x, _root.w);
_root.w += 400;
}
stop();
-------------
thanks to all