Help the passage of the document class for the class of database!

Hello comrades!

I thought that I ve solved that problem, but I was wrong

I created a movieclip with a star. Then I create a document class and I named it like Main.as.

In this document class that I wrote:

package 
{
     import flash.display.*;

     public class Main extends MovieClip
     {
          var st:star=new star();

          public function Main()
          {
               stage.addChild(st);
               st.x=20;
               st.y=30;
          }
     }
}

If I run this code, I will get a star on the stage in the x direction and y positions.

Now, I want to drag the star with the mouse and drop it anywhere on the stage. After the fall, the star must return to its original position.

To achieve this, I create a new AS3.0 class. I named it DragDrop.as, and I linked to the movieclip as the baseclass.

Inside this category I wrote:

package 
{
     import flash.display.*;
     import flash.events.MouseEvent;

     public class DragDrop extends MovieClip
     {
          var x_origin:Number;
                var y_origin:Number;
                public function DragDrop()
          {
                        x_origin=this.x;
                        y_origin=this.y;
                        trace(x_origin);
                        trace(y_origin);
               this.addEventListener(MouseEvent.MOUSE_DOWN,drag);
          }
          function drag(evt:MouseEvent):void
                {
               this.startDrag();
          }
     }
}

I m not posting the code here, but you can easily see that the use of variable I m x_origin and y_origin to keep the original position of the clip.

I'll use them to bring star back in its original position.

The problem is that instead of being respectively 20 and 30, retracing their I see that they are both ZERO.

So, when I drop the star, instead of going to x = 20, y = 30 back to x = 0 and y = 0.

I ve for the position of Star compared to the scene, but I can´t find anyway!

Could you help me?

Thanks in advance!

Best rgds

Eduardo

I think I see... you have:

 stage.addChild(st);               st.x=20;               st.y=30;

for the init works in the star before set the position... so still 0,0. You can set the x, y front sets addChild... or you can change your star class to accept the position in the constructor. And then you'd like: var st:star = new star (20,30);

Tags: Adobe Animate

Similar Questions

  • Access the function of the other class Document class

    I have this Enemy.as code that calls a function playerTurn() in Main.as, which is also the document class.

    var rootRef:Main;

    rootRef.playerTurn ();

    This is playerTurn()

    public void playerTurn(): void {}

    player_turn = true

    menu = battle_men

    menu.attackBtn.addEventListener (MouseEvent.CLICK, atkClicked);

    }

    After this code runs, I get

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at CharacterClasses::Enemy/initEnemyTurn() [C:\Users\***\Documents\SonicUltimateSceneCreat or\CharacterClasses\Enemy.as:23]

    Line 23 Enemy.as is rootRef.playerTurn ();

    Why I get this error?

    I got it.

    Object (parent) .playerTurn () worked well, but the function in which this line was performed was based on an event listener, as follows

    public void initEnemyTurn(evt:Event):void {}

    removeEventListener (Event.ENTER_FRAME, initEnemyTurn);

    player_turn = Main.player_turn;

    {if (player_turn)}

    addEventListener (Event.ENTER_FRAME, initEnemyTurn);

    }

    else {}

    Object (parent) .playerTurn ();

    }

    }

    initEnemyTurn is attached to an ENTER_FRAME listener, which was not readded in the else statement, thereby breaking the code.

    The reason why it was delete in the first line of initEnemyTurn is so does not run twice while the first tries to determine the player_turn.

    So it turns out that none of this had to do with the access to the function...

    Thanks for the help!

  • Connecting a Flash that already has a class inside the Document class

    I'm working on this little project to demonstrate how flash works in a few friends and I'm doing a small avatar have some animation and mouse grow of the reversal and after having removed the mouse the avatar will decrease. It is believed also to be a message displayed on the avatar and clicking on the avatar, the message changes. I have the shrinkage/growth avatar thing done and his works well and I also have the message that will be displayed, but I can't seem to link the two in a single actionscript file so that both appear at the same time.

    Here are the codes:

    (i) for the avatar narrowing/culture

    package {}
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    SerializableAttribute public class U1A3_Stickman extends MovieClip {}
    private var _origXScale:Number;
    private var _origYScale:Number;
    public void U1A3_Stickman() {}
    _origXScale = This.ScaleX;
    _origYScale = This.ScaleY;
    this.addEventListener (MouseEvent.ROLL_OVER, grow);
    this.addEventListener (MouseEvent.ROLL_OUT, shrink);
    }
    private void grow(event:MouseEvent):void {}
    this.scaleX * = 1.5;
    this.scaleY * = 1.5;
    }
    private void shrink(event:MouseEvent):void {}
    this.scaleX = _origXScale;
    this.scaleY = _origYScale;
    }
    }
    }

    (II) for the message:

    package {}
    import flash.display. *;
    import flash.text. *;
    SerializableAttribute public class U1A3_HelloWorld extends MovieClip {}
    public void U1A3_HelloWorld() {}
    var myMessage:TextField = new TextField();
    var myFormat:TextFormat = new TextFormat();
    myFormat.font = "Arial";
    myFormat.size = 30;
    myFormat.bold = true;
    myFormat.color = 0xFF0000;
    myMessage.x = 100;
    myMessage.y = 50;
    myMessage.autoSize = TextFieldAutoSize.LEFT;
    myMessage.border = true;
    myMessage.defaultTextFormat = myFormat;
    myMessage.text = "What upward! \n I'm so hostage! « ;
    addChild (myMessage);
    }
    }
    }

    I tried to simply insert the document class in flash with the code of reduction/increase of avatar, but it does not work. Any help would be appreciated!

    Assuming you have three U1A3_Stickman.fla files (with the rsp as file as a document class), U1A3_HelloWorld.fla (with the rsp as file as a document class) and a main.fla in one folder. Publish the first two FLAS under swf, then use a charger in the main.fla to load both on stage.

  • Problem accessing the service within my Document class

    Hello

    I have a Document class that dynamically adds a MovieClip to my Florida the MovieClip in the library FLA and has "Export for ActionScript" installation for him and that's how I access the My Document class MovieClip.

    The problem is that when the MovieClip is finished (he has a scenario animation and a stop() method applied to the last frame of the animation), I want him to call a function that is placed in my Document class, but simply call the function (for example displayEnterButton()); an error of...

    1180: call to a method may be undefined displayEnterButton.

    Can anyone help here, I'm sure it's a simple problem to solve.

    Thank you very much!

    Kind regards
    M.

    Hello

    I managed a work around that.

    Basically, my Document class, after the code that adds the MovieClip to the display list, I then put in place since a timer that called a function every 100 milliseconds. This function would then check the current image of the loaded MovieClip. If the current framework of the MovieClip is equal to the last frame of the MovieClip I know animation had finished and calls the following function that I needed.

    I pasted the code below in case anyone was interested...

  • class does not not with the document class

    I created classes that is available to my level. So level 1 includes a table like:

      floor1[0] = [2,1,1,1,1,1,2];
      floor1
    [1] = [1,1,1,1,1,1,1];
      floor1
    [2] = [1,1,1,2,1,1,1];
      floor1
    [3] = [1,1,1,1,1,1,1];
      floor1
    [4] = [1,1,1,2,1,1,1];
      floor1
    [5] = [1,1,1,1,1,1,1];
      floor1
    [6] = [2,1,1,1,1,1,2];

    And level 2 would contain a different as configuration:

    Floor2 [0] = [1,1,1,3,1,1,1];
    floor2[1] = [1,2,1,3,1,2,1];
    floor2[2] = [1,1,1,3,1,1,1];
    floor2[3] = [1,1,1,2,1,1,1];
    floor2[4] = [1,1,1,3,1,1,1];
    floor2[5] = [1,2,1,3,1,2,1];
    floor2[6] = [1,1,1,3,1,1,1];

    Here's my problem. These classes are not connect with my document class. My document has an empty array named createFloor which will equal level 1 first. Once this level is completed, it will be equal to floor2 and so on. The code is below:

    for (var y = 0; Y < createFloor.length;. Y++)

    {

    for (var X:int = 0; X < createFloor [Y] .length; X++)

    {

    var cell: MovieClip = new Tile (X, Y);

    cell.gotoAndStop(createFloor[Y][X]);

    Cell.x = ((X-Y) * tileh) 365;

    Cell.y = ((X+Y) * tileh/2) + 70;

    addChild (cell);

    cell.addEventListener (MouseEvent.CLICK, mouse click);

    cell.addEventListener (Event.ENTER_FRAME, onGame);

    }

    }

    I don't know how to get the document classes and level to talk with each other. I tried to do the level class to extend the hand, but I fugre that had nothing to do with it. All ideas

    change your class Level1:

    package {}

    import flash.display.MovieClip;

    SerializableAttribute public class extends MovieClip {} Level1

    public var floor1:Array;

    public void Level1() {}

    Level 1 = new Array();

    LEVEL 1 [0] = [2,1,1,1,1,1,2];

    LEVEL 1 [1] = [1,1,1,1,1,1,1];

    LEVEL 1 [2] = [1,1,1,2,1,1,1];

    LEVEL 1 [3] = [1,1,1,1,1,1,1];

    LEVEL 1 [4] = [1,1,1,2,1,1,1];

    LEVEL 1 [5] = [1,1,1,1,1,1,1];

    LEVEL 1 [6] = [2,1,1,1,1,1,2];

    }

    }

    }

    until level 1 is in the same directory as your document class, in your document class you can use:

    private var level1:Level1 = new Level1();

    trace (Level1.Floor1);

  • access the value in the document class

    Hello I am trying to access a value in the document class. but I can't make it work.

    what I have is:

    can someone tell me how to access the value of myArray?

    Bomberman.As:

    package {}

    import flash.display.MovieClip;

    public class bomberman extends MovieClip {}

    public var myArray:Array = []; trying to access this value

    public void bomberman() {}

    init();

    trace (document.docClass);

    }

    private void init() {}

    var square: Array = [];

    for (var i: Number = 0; i < 11; i ++) {}

    for (var j: Number = 0; j < 11; j ++) {}

    var temp: grassSquare;

    If (i == 0 |) I == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    } Else if (i %2! = 0) {}

    If (j == 0 | j == 10) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    } else {}

    If (j %2 == 0) {}

    Temp = new grassSquare (i * 50, j * 40);

    addChild (temp);

    Square.push (temp);

    myArray.push (false);

    } else {}

    myArray.push (true);

    }

    }

    }

    }

    }

    }

    }

    Bomberman.fla:

    import flash.events.KeyboardEvent

    var User1:Player1 = new Player1;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, User1.fl_SetKeyPressed);

    User1.x = 75;

    User1.y = 60;

    addChild (User1);

    Player1.as:

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    import flash.events.KeyboardEvent

    import flash.ui.Keyboard

    SerializableAttribute public class extends MovieClip {Player1

    private var upPressed:Boolean = false;

    private var downPressed:Boolean = false;

    private var leftPressed:Boolean = false;

    private var rightPressed:Boolean = false;

    private var currentSquare:uint = 12;

    public void Player1() {}

    this.addEventListener (Event.ENTER_FRAME, fl_MoveInDirectionOfKey);

    stage.addEventListener (KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);

    }

    public void fl_MoveInDirectionOfKey(event:Event)

    {

    If (upPressed & & this.y > = 100 /* & & document.myArray [currentSquare-1] * /)

    {

    This.y-= 40;

    upPressed = false;

    currentSquare-= 1;

    }

    If (downPressed & & this.y < = 340 / * & & this.myArray [currentSquare + 1] * /)

    {

    This.y = 40;

    downPressed = false;

    currentSquare += 1;

    }

    If (leftPressed & & this.x > = 125 / * & & /*this.myArray[currentSquare-11]*/)

    {

    This.x-= 50;

    leftPressed = false;

    currentSquare = 11;

    }

    If (rightPressed & & this.x < = 425 / * & & /*this.myArray[currentSquare+11]*/)

    {

    This.x += 50;

    rightPressed = false;

    currentSquare += 11;

    }

    trace (currentSquare);

    }

    public void fl_SetKeyPressed(event:KeyboardEvent):void

    {

    switch (event.keyCode)

    {

    case Keyboard.UP:

    {

    upPressed = true;

    break;

    }

    case Keyboard.DOWN:

    {

    downPressed = true;

    break;

    }

    case Keyboard.LEFT:

    {

    leftPressed = true;

    break;

    }

    case Keyboard.RIGHT:

    {

    rightPressed = true;

    break;

    }

    }

    }

    }

    }

    any class that is added to your list of display:

    MovieClip (root) .myArray

  • Flash CS5 - relative path of the document class and the location of the package

    It seems that I have no trouble to my class a FLA document class project when the FLA is the same root in the root directory of the package. However, if the FLA is nested within a subdirectory, then paths relative to a nested class in the package will not work.

    location of package & sample class: com.company.project.ClassName

    CASES1:

    Package location: \MyProject

    The FLA location: \MyProject

    where is the path of document class: ""./com/company/project " "

    Case 2 (does not work):

    Package location: \MyProject

    Location of the FLA: \MyProject\MySubFolder

    where is the path of document class: "... / com/company/project"

    If someone can provide an explanation as to why nested FLAs cannot point to custom packages to parent directories level OR show how this can be done, it would be much appreciated.

    Now that I think about, the two paths are relative, which makes it more confusing.

    Thank you.

    It works for me: http://www.kglad.com/Files/forums/tt.zip

  • Code moves the timeline to the document class Error 1067

    Hey dudes encoder that I need help on some actionscript 3.

    Im trying to move a part of the timeline code in the document class. Here is the code to the timeline:

    Import Memory.MemoryGame;

    Add memory game

    var memoryGame:MemoryGame = new MemoryGame (this, "settings.xml");

    Here is my attempt to move in the Document class:

    Import Memory.MemoryGame;

    -----

    SerializableAttribute public class MemoryGame extends Sprite

    {

    private var memoryGame:MemoryGame;

    public void init(e:Event_=_null):void

    {

    memoryGame = new MemoryGame (this, "settings.xml");

    addChild (MemoryGame);

    }

    Then I get the error: ActionScript Error #1067: Implicit coercion of a value of type to a type unrelated flash.display.DisplayObject class

    Please help guys :-(

    No, I checked just because you have dc.addChild (this); which is meaningless, unless there is an object of class MemoryGame in your library.  You can delete that.

    change

    public void MemoryGame (dc:DisplayObjectContainer, xmlPath:String)

    {

    Save the params

    This.dc = dc;

    Add to the form

    dc.addChild (this);

    var r: Shape = new Shape();

    r.graphics.beginFill (0x000000);

    r.graphics.drawRect (0,0,800,500);

    r.graphics.endFill ();

    addChild (r);

    load the xml file

    loader = new BulkLoader ("memoryGame");

    loader.addEventListener (BulkProgressEvent.COMPLETE, LoaderComplete);

    loader.addEventListener (BulkLoader.ERROR, LoaderError, false, 0, true);

    Loader.Add (xmlPath, {id: "xmldata"});

    Loader.Start ();

    Add preloader

    g_preloader_back = new Shape();

    g_preloader_back. Graphics.beginFill (0x000000);

    g_preloader_back. Graphics.drawRect (0, 0, 200, 5);

    g_preloader_back. Graphics.endFill ();

    g_preloader_back.x = stage.stageWidth/2 - g_preloader_back.width / 2;

    g_preloader_back.y = stage.stageHeight/2 - g_preloader_back.height / 2;

    addChild (g_preloader_back);

    g_preloader_bar = new Shape();

    g_preloader_bar. Graphics.beginFill (0xFFFFFF);

    g_preloader_bar. Graphics.drawRect (0, 0, 196, 3);

    g_preloader_bar.y = stage.stageHeight/2 - g_preloader_bar.height / 2;

    addChild (g_preloader_bar);

    g_preloader_text = new QuickText (g_preloader_back.x, g_preloader_back.y + 10, 'Loading XML...', 10, 0, false, false, false, null);

    addChild (g_preloader_text);

    UpdatePreloader (null);

    Add the sound Manager

    soundManager = new KSGSound();

    }

    TO

    public void MemoryGame()

    {

    Save the params

    If you use "this.dc" anywhere else, replace it with 'this '.

    This.dc = dc;

    Add to the form

    dc.addChild (this);

    var r: Shape = new Shape();

    r.graphics.beginFill (0x000000);

    r.graphics.drawRect (0,0,800,500);

    r.graphics.endFill ();

    addChild (r);

    load the xml file

    var xmlPath:String = "settings.xml";

    loader = new BulkLoader ("memoryGame");

    loader.addEventListener (BulkProgressEvent.COMPLETE, LoaderComplete);

    loader.addEventListener (BulkLoader.ERROR, LoaderError, false, 0, true);

    Loader.Add (xmlPath, {id: "xmldata"});

    Loader.Start ();

    Add preloader

    g_preloader_back = new Shape();

    g_preloader_back. Graphics.beginFill (0x000000);

    g_preloader_back. Graphics.drawRect (0, 0, 200, 5);

    g_preloader_back. Graphics.endFill ();

    g_preloader_back.x = stage.stageWidth/2 - g_preloader_back.width / 2;

    g_preloader_back.y = stage.stageHeight/2 - g_preloader_back.height / 2;

    addChild (g_preloader_back);

    g_preloader_bar = new Shape();

    g_preloader_bar. Graphics.beginFill (0xFFFFFF);

    g_preloader_bar. Graphics.drawRect (0, 0, 196, 3);

    g_preloader_bar.y = stage.stageHeight/2 - g_preloader_bar.height / 2;

    addChild (g_preloader_bar);

    g_preloader_text = new QuickText (g_preloader_back.x, g_preloader_back.y + 10, 'Loading XML...', 10, 0, false, false, false, null);

    addChild (g_preloader_text);

    UpdatePreloader (null);

    Add the sound Manager

    soundManager = new KSGSound();

    }

  • Add video clips similar to the step of the Document class

    Hello

    How do you add multiple clips of video similar to the step of the Document class?

    For example, I have four clips of different movie called ball0_mc until ball3_mc.

    Also, how can I add each video clip at random points in the settings of the scene?

    I know it should be easy enough but still new for ACE all pointers would be greatly appreciated. See you soon.

    you add them by using their class name.  If they don't have a class name, give them a:

    var b0:ball0_mc = new ball0_mc();

    addChild (b0);

    B0.x = Math.Random () *(stage.stageWidth-B0.Width);

    B0.y = Math.Random () *(stage.stageHeight-Bo.Height);

    Similarly, for the other instances of the class you want to add.

  • to access the variables defined in the Document class

    I can't evaluate the values established in my document class.

    My document class: ZoneViewer.as:

    SerializableAttribute public class ZoneViewer extends Sprite {}
    private var zone_area_alpha_low:Number is. 2;
    }

    This code exists on a frame in a movieclip in my main script:

    This.zone_shape.Alpha = zone_area_alpha_low;


    How to access the valeur.2 which is declared in my class: document ZoneViewer.as? "zone_area_alpha_low" does not work.

    Solution to the problem of access to a variable value (zone_area_alpha_low) from actionscript code framework in a movieclip.

    FYI... my project file structure:

    Project_Folder/MyApplication.fla
    Project_Folder/MyApplication.swf
    Project_Folder/classes/ZoneViewer.as
    --------------------
    Document class: classes. ZoneViewer

    {classes package

    import flash.display.MovieClip;

    SerializableAttribute public class ZoneViewer extends MovieClip {}

    public static var zone_area_alpha_low:Number =. 1;
    }
    }
    --------------------
    This code exists on the first frame of my movieclip in my .fla file.

    import classes. ZoneViewer;< i="" was="" missing="" this="" import="" statement="" within="" my="">
    This.zone_shape.Alpha = ZoneViewer.zone_area_alpha_low;< this="" finally="" is="" referenced="">

    Kudos to ntbdy for the light. Is there better ways to do this?

  • Can extend us the document class with a custom flash as3 class?

    Hello
    Can extend us the document class with a custom flash as3 class?

    Thank you
    Mallek

    Try:

    amishap67776642 wrote:

    package

    {

    public class accessories extends ScreenBase

    {

    public void accessories()

    {

    Super();

    addEventListener (Event.ADDED_TO_STAGE, onAddedTostageHandler)

    }

    private void onAddedTostageHandler(e:Event):void

    {

    Super.init ();

    }

    }

    }

    / * class ScreenBase * /.

    package

    {

    SerializableAttribute public class extends MovieClip ScreenBase

    {

    public void ScreenBase)

    {

    Super();

    }

    public void init (): void

    {

    MovieClip (that).tutorialBox_mc.visible = true;

    }

    }

    }

  • How to set up sites of confidence for the PDF Documents with Hyerplinks to Lotus Notes databases?

    Hello everyone,

    my company is using PDF documents with hyperlinks to Lotus Notes databases.

    When I open one of these files with Adobe Reader Default Setup, I can not open the hyperlinks.

    When I disable the safe_mode at startup, it is possible to open links.

    To ensure safety, we try to set the trust for our Notes Server site, but I couldn't find a solution.

    Our servers work with Lotus Notes 9, customers use the Version 8.5.3.

    Clients are installed with Windows 7 Enterprise.

    We test with Adobe Reader DC, Version 2015.007.20033

    Thanks for your support in this matter.

    Thank you in advance everybody!

    Hi oliverh33447604,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> Trust Manager menu-> settings

    Use the option of the customer to add to the list of Web sites.

    Kind regards

    Nicos

  • Please help, when I pdf my document to single pages, it's showing a slice about 5mm of width of the following page on the current page. Why?

    Please help, when I pdf my document to single pages, it's showing a slice about 5mm of width of the following page on the current page. Why?

    When you specify an inside bleed on PDF export of a document pages facing, which bleed area is at the edge of the other page in the spread. This is quite normal.

    Most of the time do not need you to bleed inside and it is harmless and can be ignored, or you can set the inside bleed to 0, but if you need a purge of iniside and bleeding object does not continue through the spine, then you must divide the spread and extend the object. "" See InDesignSecrets "Blog Archive" breaking Pages hand to bleed off the coast of a thorn

  • Hang the function call after Document Class' Event.ADDED

    I tried to load an external SWF (which contains the code below in its document class) with the charger of class but I keep getting Error #1009: cannot access a property or method of a null object reference. So I tried to use the Event.ADDED event listener in the constructor of MyDocumentClass of the external SWF file to leave the document class to be part of the display list, before I have to call createRandomGraph. But when I place createRandomGraph() inside onStageReady, the compilation process is suspended. When I left the createRandomGraph() inside the constructor, it works perfectly as isolated but will produce error 1009 so loaded in the SWF loader. Any ideas?

    public void MyDocumentClass)

    {

    this.addEventListener (Event.ADDED, onStageReady);

    createRandomGraph ( )

    }

    private void onStageReady(oEvent:Event): void

    {

    this.removeEventListener (Event.ADDED, onStageReady);

    }

    private void createRandomGraph(): void

    {

    var cRandomGraph:RandomGraph = new RandomGraph();

    cRandomGraph.x = 10;

    cRandomGraph.y = stage.stageHeight - nH - 25;

    cRandomGraph.setDimensions (nW, nH);

    cRandomGraph.createGraphBackground ();

    this.addChild (cRandomGraph);

    }

    use:

    public void MyDocumentClass)

    {

    this.addEventListener (Event.ADDED_TO_STAGE, onStageReady);

    }

    private void onStageReady(oEvent:Event): void

    {

    this.removeEventListener (Event.ADDED, onStageReady);

    createRandomGraph();

    }

    private void createRandomGraph(): void

    {

    var cRandomGraph:RandomGraph = new RandomGraph();

    cRandomGraph.x = 10;

    cRandomGraph.y = stage.stageHeight - nH - 25;

    cRandomGraph.setDimensions (nW, nH);

    cRandomGraph.createGraphBackground ();

    this.addChild (cRandomGraph);

    }

  • functions in the document class when the main timeline reached a framework

    Hello

    I have 3 functions in my document class main I want to run when the main timeline reaches a specific frame number.

    How do I do that?

    See the code and comments

    public void mainClass()

    {

    //stage declaraction

    stage.align = StageAlign.TOP_LEFT;

    stage.scaleMode = StageScaleMode.NO_SCALE;

    stage.addEventListener (Event.RESIZE, stageResized);

    wrap these next 3 lines in an if statement so maintimeline currentframe = x

    position().

    loadXml();

    initArrowButtons();

    slideTimer = new Timer (timer_delay);

    slideTimer.addEventListener (TimerEvent.TIMER, nextSlide);

    }

    You can always know what the current picture is by reading currentFrame peoperty:

    public function mainClass() {     addEventListener(Event.ENTER_FRAME, onEnterFrame);}
    
    private function onEnterFrame(e:Event):void {     switch(currentFrame) {          case 1;              frame1Function();          break;
    
              case 2:              frame2Function();          break;
    
              // etc.}
    

Maybe you are looking for

  • RAID expand ix2 - 200

    HelloI have an ix2-200 with 2 500 GB hard drives in the Raid systemI changed one of them to another hard drive 1 Terathe system will detect and remade the raidThen I change the drive with another 1 tera hard drivethe system has detected the change an

  • Autofeed of the margins to scan to HP Laserjet 1536 dnf MFP

    Hello I have a HP LaserJet 1536 dnf MFP and have problems with the scanner of the automatic feeding system. Papers, I'm trying to make copies to make use of all the 8½ "x 11" "on paper and when they are copied are cut by about ¼" anywhere in the docu

  • HP pavilion dv6 - 2154ca [BASIC SYSTEM DEVICE]

    Hello, I have recently reinstalled windows on my HP laptop and miss me 3 drivers. The following are the hardware ID (they all have the same hardware ID): PCI\VEN_197B & DEV_2382 & SUBSYS_3659103C & REV_00PCI\VEN_197B & DEV_2382 & SUBSYS_3659103CPCI\V

  • Adpreclone automatic appsTier script for R12.2

    Hi gurus,I need to automate to run preclone for the apps and db on r12.2. for applications must pass the apps and password weblogic. How can I pass those without shell script prompt

  • Adobe caption cc

    Want to let me download app on Tablet glaxacy s2