Copy link to clipboard
Copied
Hello,
I´ve got the following code on Actionscript that I would like to write in Javascript. I´ll write my guess on what I think this code does.
// The first to lines set the element "mapa" on the specified x and y coordinates
_root.mapa_mc.mapa._x = -450;
_root.mapa_mc.mapa._y = -250;
//The next four lines create four variables and initialize them.
_global.medidaX= 0;
_global.medidaY= 0;
_global.medidaXX= -450;
_global.medidaYY= -452;
//These two lines scale the element mapa as specified.
this.mapa._xscale=70;
this.mapa._yscale=70;
//This is to stop the timeline.
stop();
start with:
exportRoot.mapa_mc.mapa.x=-450;
exportRoot.mapa_mc.mapa.y=-250;
exportRoot.medidaX=0;
etc
this.mapa.scaleX=7;
this.mapa.scaleY=7;
this.stop();
Copy link to clipboard
Copied
start with:
exportRoot.mapa_mc.mapa.x=-450;
exportRoot.mapa_mc.mapa.y=-250;
exportRoot.medidaX=0;
etc
this.mapa.scaleX=7;
this.mapa.scaleY=7;
this.stop();
Copy link to clipboard
Copied
I am getting property not defined error for exportRoot..
Copy link to clipboard
Copied
are you publishing an html5/canvas document?
Copy link to clipboard
Copied
yes, the error is like 1120:Access of undefined property error that one.
Copy link to clipboard
Copied
that error only exists for as3 projects.
attach a screenshot of the error message.
Copy link to clipboard
Copied
This would be a sample file. compartido foro adobe
it was done with actionscript and now i´d like to convert it to a html5/js responsive format.
So I need to have that pan and zoom efect like in the original. I guess that I have to figure out how was it originally structured so that I can rewrite it and use it for the web.
Thanks.
Copy link to clipboard
Copied
i only download and correct files if i'm hired.
free help i only offer via the adobe forums.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now