mercredi 22 mars 2017

Convert AS2 Code to AS3 Format

please help me out converting the code below into as3. I have no ideea what is "SHEMA" , "BASE", "GLANCE" etc for AS3. THanks a lot. This code is being written inside a movie clip.

function CopyFromShema(sframe)
{
    SHEMA.gotoAndStop(sframe);
    GLANCE.filters = SHEMA.GLANCE.filters;
    BASE.filters = SHEMA.BASE.filters;
    CAPTION.filters = SHEMA.CAPTION.filters;
}
SHEMA._visible = false;
SHEMA.gotoAndStop(1);
BASE.scale9Grid = new flash.geom.Rectangle(10, 10, 100, 5);
GLANCE.scale9Grid = new flash.geom.Rectangle(10, 6, 100, 2);
onRollOver = function ()
{
    CopyFromShema(3);
}
;
onRollOut = function ()
{
    CopyFromShema(2);
}
;
onPress = function ()
{
    CopyFromShema(4);
}
;
onRelease = function ()
{
    CopyFromShema(3);
}
;
onDragOver = function ()
{
    onPress();
}
;
onDragOut = function ()
{
    onRollOut();
}
;

Aucun commentaire:

Enregistrer un commentaire