Null object reference

My application creates a series of buttons that if clicked on what they are supposed to be removed the parent DisplayObjectContainer, but I need to keep track of which buttons are deleted, because the buttons are removed, others can be added or maybe not.

I am tracking these buttons in a table, I'm trying to override the method removeChild to update the chart, which is a global variable, and GameButton is a custom button class that I'm trying to delete.

Simply write the loop in the method, like this, I get a "cannot access a property or method of a null object reference. then I tried to

override public function removeChild(child:DisplayObject): DisplayObject

{

for (var r: int = buttonArray.length - 1; r > = 0; r-)

{

If (buttonArray [r] == child)

{

var removeNum:int = r;

}

parent.removeChild (child);

buttonArray.splice(removeNum,1);

}

Return (Child);

}

It's very well (once you fix typos).  You can use:

for (var i: uint = 0; i<>

CBC GameButton (parent.getChildAt (i));  to reference the property src of the object of a child.

}

Tags: Adobe Animate

Similar Questions

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

    Mr President.
    I updated firefox and always this type of problem
    every time I tried to open the flash game site iam getting this question. sometimes IE browser cannot open it too much.
    "".... TypeError: Error #1009: cannot access a property or method of a null object reference.
    to ASGames / fun_Menu)
    to ASGames / frame2)
    at flash.display::MovieClip/gotoAndStop()
    to WeddingTianaDressup_fla::Timeline_102 / playGames ()... » »

    but the same site can be opened in other browsers in the same pc... but the same site a user goes to another computer on the browser firefox itself. How do not know where is the problem... ?
    so please, some can help hu?

    Dear Sir.
    Thanks for your answer...! I did what you said but it doesn't work. new iam having the same problem...!

  • Flash Player ' TypeError: Error #1009: cannot access a property or method of a null object reference. to town_fla::Button_237 / frame1 () '.

    Hey, I opened a page that runs Flash this always whenever rises ' TypeError: Error #1009: cannot access a property or method of a null object reference.     to town_fla::Button_237 / frame1 () '. The dialog box gives me two options either urgent continue or reject all. Normally I just press "Ignore all" and continue, but I was wondering if there was a solution to this problem. Either way, my computer runs Windows Vista Edition home premium.
    Thanks for the help.

    Hello

    To provide the proper resolution, that I would need more information on your side.

    1. is the computer connected to the domain?

    2. what web browser do you use?

    3. when exactly the problem started?

    I suggest you uninstall and reinstall the latest version of Adobe flash player. Check if it helps.

    Step 1:
    Uninstall Adobe flash player follow the steps in the link following link:

    http://kb2.Adobe.com/CPS/141/tn_14157.html

    Step 2:
    Download and install the latest version of adobe flash player from the following link:

    http://get.Adobe.com/flashplayer/

    Hope this information helps. If you need additional help or information on Windows, I'll be happy to help you.

  • setAreaOfInterest null object reference error

    Don't know what is happening with my application, works fine on the desktop.  I sent in my Playbook and now get errors.  I'm under what OS Version 1.0.8.6067 looks like something with the flash/Flex QNX conversion.  Does anyone have any ideas (or wrapper work)?

    Stacktrace shows

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at qnx.stagetext.ui.text::EditableText/setAreaOfInterest() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:756]
    at qnx.stagetext.ui.text::EditableText/insertText() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:972]
    to qnx.stagetext.ui.text::EditableText/set text() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:300]
    to flash.text:tageText/set text()
    to StageTextPool$ /acquireStageText () [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:3113]
    to spark.components.supportClasses:tyleableStageText /http://www.adobe.com/2006/flex/mx/internal:getStageText () [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:2415]
    to spark.components.supportClasses:tyleableStageText() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:403]
    to spark.skins.mobile.supportClasses:tageTextSkinBase / createChildren() () [E:\dev\4.y\frameworks\projects\mobiletheme\src\spark\skins\mobile\supportClasses\StageTextSkinBase.as:185]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChild() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7176]
    to spark.components.supportClasses:kinnableComponent / attachSkin () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]
    to spark.components.supportClasses:kinnableComponent / validateSkinChange () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
    to spark.components.supportClasses:kinnableComponent / createChildren() () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/setMXMLContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633] spark.components
    at::Group/createChildren() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:855] spark.components
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/setMXMLContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633] spark.components
    to spark.components::Group / set mxmlContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:573]
    to spark.components:kinnableContainer/set mxmlContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:657]
    to spark.components:kinnableContainer / createDeferredContent () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1050]
    to spark.components:kinnableContainer / createContentIfNeeded () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1078]
    to spark.components:kinnableContainer / createChildren() () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:885]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    at::View/initialize() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\View.as:999] spark.components
    at com.qapable.view::FridgeContentForm/initialize()
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/addElementAt() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1387] spark.components
    at::Group/addElement() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1345] spark.components
    to spark.components:kinnableContainer / addElement () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:761]
    at::ViewNavigator/createViewInstance() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:2018] spark.components
    at::ViewNavigator/commitNavigatorAction() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1932] spark.components
    at::ViewNavigator/commitProperties() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1301] spark.components
    at mx.core::UIComponent/validateProperties() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8219]
    at mx.managers::LayoutManager/validateProperties() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
    at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

    Found the solution (via the devgirl.org blog comments).  It turns out that this is a known problem in Flash Builder 4.6 with the TextInput skin.  Quick and simple solution is to add

    skinClass = "spark.skins.mobile.TextInputSkin"

    for the TextInput tag and everything works again (I heard him talk about a problem with StageText and as you can see, which appears in the stack trace I became).

    Also became strangeness when exporting for Android (entries endangered and appear outside the textinput).  I hope this will fix this problem too.

  • ActionScript3 Error #1009: Cannot access a property or method of a null object reference

    Having a problem with the creation of a website in CC animate with ActionScript3.

    Any help would be appreciated.

    Basically, I'm trying to get 'home', 'services' 'contact' buttons work when you click "about".

    import flash.events.MouseEvent;

    Stop();

    header_mc.home_btn.addEventListener (MouseEvent.CLICK, gohome);

    gohome function (event: MouseEvent): void {}

    gotoAndStop (1);

    }

    header_mc.about_btn.addEventListener (MouseEvent.CLICK, goabout);

    function goabout (event: MouseEvent): void {}

    gotoAndStop (2);

    }

    header_mc.services_btn.addEventListener (MouseEvent.CLICK, goservices);

    goservices function (event: MouseEvent): void {}

    gotoAndStop (3);

    }

    header_mc.contact_btn.addEventListener (MouseEvent.CLICK, gocontact);

    function gocontact (event: MouseEvent): void {}

    gotoAndStop (4);

    }

    Ran the test after allowing debugging and myself

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

    at WORKINGwebsite_fla::MainTimeline/frame1() [WORKINGwebsite_fla. MainTimeline::frame1:3]

    Chassis 1 line 3.

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...

    -is declared but not instantiated

    n ' is not have an instance name (or the name of the instance is misspelled)

    n ' is not in the frame where this code tries to talk to her

    -is animated in place, but is not assigned the name of the instances of each keyframe for her

    -is one of the two or more consecutive keyframes of the same objects without a name assigned in the image previous (s).

  • Error #1009: Cannot access a property or method of a null object reference.

    I need a little help. I do a game, and everything works fine except for the fact that I have 2 errors, which bothers me not that I always use the button, but the other will not let me use the button.

    Error:

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

    at Untitled_2_fla::MainTimeline/frame2() [Untitled_2_fla. MainTimeline::frame2:207]

    at flash.display::MovieClip/gotoAndStop()

    at Untitled_2_fla::MainTimeline/PlayBtn() [Untitled_2_fla. MainTimeline::frame1:13]

    Magyx Placement RedAtk.addEventListener (MouseEvent.CLICK, RedAttack); function RedAttack(Event:MouseEvent):void {gotoAndStop (19)}

    This is Frane2:207, I see nothing wrong with that, because all my other are the same

    nextBlueAtk.addEventListener (MouseEvent.CLICK, NWA); function NWA(Event:MouseEvent):void {gotoAndStop (23)} nextGreyAtk.addEventListener (MouseEvent.CLICK, NGA); function NGA(Event:MouseEvent):void {gotoAndStop (27)} nextGreenAtk.addEventListener (MouseEvent.CLICK, ISABELLE); function NGRA(Event:MouseEvent):void {gotoAndStop (31)}

    I get no error for them.

    And frame1:13?

    function PlayBtn(event:MouseEvent):void {gotoAndStop (2)}

    Please help someone, I want to keep working on this game!

    When Flash tells you that there is a null object reference, this means that an object that you are referring to a function is not available at this time here in the film. It is usually a problem with the object being not not in a particular setting. Make sure that the object, the key is actually in the frame where the function reference.

  • Help, please! TypeError: Error #1009: cannot access a property or method of a null object reference.  Help, please!

    Can anyone help! Here's the code from to escape the game of the room that I am creating.  Basically the user will be drag and drop items to reveal the user will collect hidden items.  I got the elements of drag-and - drop but I have a problem with the service that I write to recognize what are the elements and how much has been collected.  I just get the error

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

    at TheMathsRooms_fla::MainTimeline/ObjectFound()

    When I click on one of the elements, the user must be able to collect.  I checked the chronology and pint, the script is used all THE elements are on the scene.  Any ideas?

    function objectFound

    function ObjectFound(event:MouseEvent):void {}

    var room1_inventoryName:String = "room1_inventory" + event.target.name;

    var room1_inventoryItem:DisplayObject = getChildByName (room1_inventoryName);

    Event.Target.alpha is room1_inventoryItem.alpha = 100;.

    founditems ++;

    Event.Target.alpha = 0

    }

    Here I put the items in stock to be invisible until they are

    room1_inventoryone_mc.Alpha = 0

    room1_inventorytwo_mc.Alpha = 0

    room1_inventorythree_mc.Alpha = 0

    room1_inventoryfour_mc.Alpha = 0

    room1_inventoryfive_mc.Alpha = 0

    room1_inventorysix_mc.Alpha = 0

    A variable is created to count the number of items the player has found.  At the beginning of the game, it is set to 0

    var founditems:Number = 0;

    Here, I'm telling Flash to keep track of what the user has found by listening to what were clicked on and then by running the objectFound function.

    room1_hiddenone_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddentwo_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenthree_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenfour_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenfive_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddensix_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    Here's the function to allow the items to drag and drop

    function StartDragging (e:MouseEvent) {}

    e.currentTarget.startDrag ();

    }

    function StopDragging (e:MouseEvent) {}

    e.currentTarget.stopDrag ();

    }

    This shows that items can now be dragged and lowered some will reveal hidden items

    Bluechair.buttonMode = true;

    Bluechair.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Bluechair.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Pencilcase.buttonMode = true;

    Pencilcase.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Pencilcase.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Painting.buttonMode = true;

    Painting.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Painting.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Rubbish.buttonMode = true;

    Rubbish.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Rubbish.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Painting2.buttonMode = true;

    Painting2.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Painting2.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Trunk.buttonMode = true;

    Trunk.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Trunk.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Pillow.buttonMode = true;

    Pillow.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Pillow.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Click file > publishing settings > swf and check the box "enable debugging".  test.

    the number of problematic line will be in the error message that allows you to quickly identify the problematic reference which is probably room1_inventoryItem.  use the function trace to confirm:

    function ObjectFound(event:MouseEvent):void {}

    var room1_inventoryName:String = "room1_inventory" + event.target.name;

    trace (room1_inventoryName);

  • 1009 null object reference

    Hi, I create an android game and everything goes wrong when you lose and the 'losing' screen...

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

    Rock / destroyEnemy ([C:\Users\Daniel Cuevas\Dropbox\Rocks\rock.as:108])

    in Function/main / $construct / endGame ([C:\Users\Daniel Cuevas\Dropbox\Rocks\main.as:578])

    in Function/main / $construct / Loop ([C:\Users\Daniel Cuevas\Dropbox\Rocks\main.as:224])

    (this is in the main class file)

    for each (var enemy: rock in aEnemyArray)

    {

    Destroy the enemy in a loop

    enemy.destroyEnemyAgain ();

    remove the enemy from the table

    aEnemyArray.splice (0, 1);

    }

    (it's in the enemy class file)

    public function destroyEnemy (): void

    {

    parent.removeChild (this)

    removeEventListener (Event.ENTER_FRAME, enemyLoop);

    }

    The thing is that if you do not drawn to it rocks West no problem, but when you hit one, at the same time that you lose, the error comes.

    Thank you.

    Use the function trace to track things.  If something is a memoent and not the other, you must intercept that treatment between the change of this existence and make sure that you're not always looking for the object.  If you hold a table that references the object, then make sure that remove you from this table before the start of the next cyce of loop.

  • TypeError: Error #1009: cannot access a property or method of a null object reference. Why have I not

    TypeError: Error #1009: cannot access a property or method of a null object reference. Why do I always have problems mind flash and shockwave. Why adobe does not solve their products?

    .

    This isn't a problem of Flash... it's a mistake to designer.

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...

    -is declared but not instantiated

    n ' is not have an instance name (or the name of the instance is misspelled)

    n ' is not in the frame where this code tries to talk to her

    -is animated in place, but is not assigned the name of the instances of each keyframe for her

    -is one of the two or more consecutive keyframes of the same objects without a name assigned in the image previous (s).

    It could also be other less obvious reasons.

    If you go to your section to publish the Flash settings and select permit debugging option, your error message should have a suite of line number the number of the frame that will help you to isolate the object that is involved.

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

    Hello

    I have some problems understanding there I get this error, here is my code for the inclinometer of the site menu:

    Manage menu btns events

    weDance_btn.addEventListener (MouseEvent.CLICK, clickWedance);

    inFan_btn.addEventListener (MouseEvent.CLICK, clickInFan);

    karnivale_btn.addEventListener (MouseEvent.CLICK, clickkarnivale);

    outOfSpace_btn.addEventListener (MouseEvent.CLICK, clickoutOfSpace);

    nightmare_btn.addEventListener (MouseEvent.CLICK, clickNightmare);

    karnivale2_btn.addEventListener (MouseEvent.CLICK, clickKarnivale2);

    bucharest_btn.addEventListener (MouseEvent.CLICK, clickBucharest);

    function clickWedance(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("btn wedance was clicked!");

    gotoAndStop ("weDance");

    }

    function clickInFan(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("btn clubspace was clicked!");

    gotoAndStop ("infantry");

    }

    function clickkarnivale(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("btn kar was clicked!");

    gotoAndStop ("karnivale");

    }

    function clickoutOfSpace(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("btn outofspace was clicked!");

    gotoAndStop ("outOfSpace");

    }

    function clickNightmare(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("btn nightmare was clicked!");

    gotoAndStop ("Nightmare");

    }

    function clickKarnivale2(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("btn carnivale2 was clicked!");

    gotoAndStop ("karnivale2");

    }

    function clickBucharest(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("btn Bucharest was clicked!");

    gotoAndStop ("bucharest");

    }

    It works without error!

    But now I need to add an another btn on the OutofSpace page and that's it:

    spacePic_btn.addEventListener (MouseEvent.CLICK, clickSpacePic);

    function clickSpacePic(evtObj:MouseEvent) {}

    trace shows what is happening... in the output window

    trace ("The SpacePic btn was clicked!");

    gotoAndStop ("SpacePics");

    }

    When I test the movie in the output I get the error and the btn does not work. !  Why?

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

    at WeDance_fla::MainTimeline/frame240() [WeDance_fla. SpacePic_btn.addEventListener MainTimeline::frame240:26] < <>> <> (MouseEvent.CLICK, clickSpacePic);

    at flash.display::MovieClip/gotoAndStop()

    at WeDance_fla::MainTimeline/clickoutOfSpace() [WeDance_fla. MainTimeline::frame2:61] < <>> <> //trace shows what is happening... in the output window

    Note: I put the code for the spacePic_btn on the keyframe where begins the outofspace page, it counts

    Help, please.

    Thank you!

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...

    -is declared but not instantiated

    n ' is not have an instance name (or the name of the instance is misspelled)

    n ' is not in the frame where this code tries to talk to her

    -is animated in place, but is not assigned the name of the instances of each keyframe for her

    -is one of the two or more consecutive keyframes of the same objects without a name assigned in the image previous (s).

  • Cannot access a property or method of a null object reference

    Hi guys I have trying to connect "scene 1" to "scene 2". "

    Then this ERROR comes out > > > cannot access a property or method of a null object reference.

    You guys can check my Flash file to > > > http://www.filedropper.com/run

    Help, please. When I run only 2 scene, he plays but when I tried to connect it with scene 1. An ERROR comes out.

    Did you also put in the line of stop() in the first scene? I can run your movie and have the egg run and jump without any error. But I've seen errors until I put the stop(); line.

  • DONKEY - Vibration error: cannot access a property or method of a null object reference.

    Hi all

    I am trying to use the Vibration DONKEY but get the following error:

    IsSupported() vibration

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

    Manufacturer of vibration: create a context of extension

    at com.adobe.nativeExtensions::Vibration$/initExtension() [/ users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:58]

    to com.adobe.nativeExtensions::Vibration$/get isSupported() [/ users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:43]

    views::Tour/onMarkerClick() [/ < path to project here > / src/views/Tour.mxml:204]

    The code I am using is directly from the example:

    var vibe: Vibration;

    if (Vibration.isSupported)

    {

    Vibe = new Vibration();

    Vibe.VIBRATE (2000);

    }

    Not really sure why this could happen. If anyone has any suggestions, it would be much appreciated!

    Thank you

    Alastair

    I thought about it. It seems that the native extension has not been properly packed (check the parameters of the project, Flex Build Path and Extension Native for the iOS and Android).

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

    Dear Sir.

    I really need your help at the very last moment, I'm stuck, but I was about to finish a project. Here is the explanation below...

    I have two files called "holder.swf" and "slide.swf" i want to improt 'slide.swf' using this action below

    var myLoader:Loader = new Loader();

    var url: URLRequest = new URLRequest ("slide.swf");

    myLoader.load (url);

    addChild (myLoader);

    myLoader.x = 2;

    myLoader.y = 2;

    Also, I am attaching the flash file of "'holder.swf '." My concern is the time that I call the 'slide.swf' inside the 'holder.swf', it is showing the following error...

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

    to FC_Home_Ads_Holder_v2_fla::MainTimeline() .

    Here are the files downloaded for your reference, please download this file http://www.touchpixl.com/ForumsAdobecom.zip

    This error is being occurred file 'MainTimeline.as', here is the code used within this file below...

    package FC_Home_Ads_Holder_v2_fla

    {

    Import __AS3__.vec. * ;

    Adobe.utils import. *;

    com.danehansen import. *;

    import com.greensock;

    com.greensock.easing import. *;

    com.greensock.plugins import. *;

    flash.accessibility import. *;

    flash.desktop import. *;

    import flash.display. *;

    flash.errors import. *;

    import flash.events. *;

    flash.external import. *;

    flash.filters import. *;

    import flash.geom. *;

    flash.globalization import. *;

    import flash.media. *;

    flash.net import. *;

    flash.net.drm import. *;

    flash.printing import. *;

    flash.profiler import. *;

    flash.sampler import. *;

    flash.sensors import. *;

    flash.system import. *;

    import flash.text. *;

    flash.text.engine import. *;

    flash.text.ime import. *;

    flash.ui import. *;

    import flash.utils. *;

    flash.xml import. *;

    SerializableAttribute public class dynamics MainTimeline extends flash.display.MovieClip

    {

    public void MainTimeline()

    {

    new vector. < String > (6) [0] = "productivity."

    new vector. < String > (6) [1] = "Leadership."

    new vector. < String > (6) [2] = "Execution."

    new vector. < String > (6) [3] = "Education";

    new vector. < String > (6) [4] = "speed of trust";

    new vector. < String > (6) [5] = "Sales";

    Super();

    addFrameScript (0, this.frame1);

    return;

    }

    public void init (): void

    {

    var loc1: * = null;

    com.greensock.plugins.TweenPlugin.activate ([com.greensock.plugins.Aut oAlphaPlugin]);

    LOC1 = new flash.net.URLLoader (new flash.net.URLRequest (this. XML_LOC));

    loc2 var: *;

    This.next_mc.buttonMode = loc2 = true;

    This.prev_mc.buttonMode = loc2;

    stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;

    internship. Align = flash.display.StageAlign.TOP_LEFT;

    LOC1.addEventListener (flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);

    This.prev_mc.addEventListener (flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);

    This.next_mc.addEventListener (flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);

    return;

    }

    public void xmlLoaded (arg1:flash.events.Event): void

    {

    var loc1: * = null;

    loc2 var: * = 0;

    this.xmlData = new XML (arg1.target.data);

    loc2 = 0;

    While (loc2 < this.) LABELS.length)

    {

    LOC1 = new Btn (this. LABELS [loc2], loc2);

    this.btnHolder_mc.addChild (loc1);

    This. BTNS.push (loc1);

    trace (this.) LABELS [loc2]);

    ++ loc2.

    }

    This.Current = uint (this.xmlData.@firstPick);

    trace ("- width-");

    trace (this.contentMask.Width);

    var loc3: * = this.contentMask.width / this. LABELS.length;

    trace (LOC3);

    loc2 = 0;

    While (loc2 < this.) BTNS.length)

    {

    This. Inclinometer [loc2] .width = loc3;

    This. Inclinometer [loc2] .x = loc3 * loc2.

    ++ loc2.

    }

    this.btnHolder_mc.addEventListener (flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);

    this.selectMovie ();

    return;

    }

    public void numClick (arg1:flash.events.MouseEvent): void

    {

    this.killTimer ();

    This.Current = arg1.target.i;

    this.selectMovie ();

    return;

    }

    public void killTimer (): void

    {

    this.timerGoing = false;

    If (this.timer)

    {

    This.Timer.Reset ();

    this.timer.addEventListener (flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);

    This.Timer = null;

    }

    return;

    }

    public function selectMovie (): void

    {

    If (this.timerGoing)

    {

    This.Timer = new flash.utils.Timer (uint (this.xmlData.ad [com.danehansen.MyMath.modulo (t his.current, this.xmlData.ad.length ())] .@delay), 1);

    This.Timer.Start ();

    this.timer.addEventListener (flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);

    }

    While (this.holder_mc.numChildren > 0)

    {

    This.holder_mc.removeChild (this.holder_mc.getChildAt (0));

    }

    var loc1: * = new flash.display.Loader ();

    LOC1. Load (new flash.net.URLRequest (this.xmlData.ad [com.danehansen.MyMath.modulo (thi s.current, this.xmlData.ad.length ())] .@loc));

    This.holder_mc. AddChild (LOC1);

    loc2 var: * = 0;

    While (loc2 < this.) BTNS.length)

    {

    This. BTNS [loc2]. Deselect();

    ++ loc2.

    }

    This. BTNS [com.danehansen.myMath.modulo (this.current, this.xmlData.ad.length ())] .select ();

    var loc3: * = this. BTNS [com.danehansen.myMath.modulo (this.current, this.xmlData.ad.length ())] .x + this. BTNS [com.danehansen.myMath.modulo (this.current, this.xmlData.ad.length ())] .width/2 + this.btnHolder_mc.x;

    trace ("addLength:" + this.xmlData.ad.length ());

    trace (loc3, com.danehansen.MyMath.modulo (this.current, this.xmlData.ad.length ()));

    com.greensock.TweenLite.to (this.indicator_mc, 0.3, {'x': loc3, "ease":com.greensock.easing.Cubic.easeOut});})

    LOC1.contentLoaderInfo.addEventListener (flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);

    return;

    }

    public void adLoaded (arg1:flash.events.Event): void

    {

    var evt:flash.events.Event;

    loc1 var: *;

    evt = arg1;

    Try

    {

    evt.target.content.xmlData = this.xmlData.ad [com.danehansen.MyMath.modulo (this.current, this.xmlData.ad.length ())];

    }

    catch (er: error)

    {

    };

    return;

    }

    public void minusClick (arg1:flash.events.MouseEvent): void

    {

    this.killTimer ();

    loc1 var: *;

    loc2 var: * = ((loc1_=_this).current - 1);

    LOC1. Current = loc2;

    this.selectMovie ();

    return;

    }

    public void plusClick (arg1:flash.events.Event): void

    {

    If (arg1.type! = "timer")

    {

    this.killTimer ();

    }

    loc1 var: *;

    loc2 var: * = ((loc1_=_this).current + 1);

    LOC1. Current = loc2;

    this.selectMovie ();

    trace ("Next");

    return;

    }

    public function ended (arg1:flash.events.Event): void

    {

    If (arg1.type! = "timer")

    {

    this.killTimer ();

    }

    loc1 var: *;

    loc2 var: * = ((loc1_=_this).current + 1);

    LOC1. Current = loc2;

    this.selectMovie ();

    trace ("Next");

    return;

    }

    public void STARTED (arg1:flash.events.Event): void

    {

    this.killTimer ();

    return;

    }

    function frame1(): *.

    {

    this.timerGoing = true;

    addEventListener ("endNow", this.) COMPLETED, false, 0, true);

    addEventListener ("startNow", this.) STARTED, false, 0, true);

    This.init ();

    return;

    }

    public const XML_LOC:String = stage.loaderInfo.parameters.xmlLoc? stage.loaderInfo.parameters.xmlLoc: "home_ads.xml";

    public const LABELS: __AS3__.vec. Vector. < String > = new Vector. < String > (6);

    public const BTNS:__AS3__.vec. Vector. < Btn > = new Vector. < Btn > ();

    public const TRANSITION_TIME:Number = 0.2;

    public var contentMask:flash.display.MovieClip;

    public var btnHolder_mc:flash.display.MovieClip;

    public var holder_mc:flash.display.MovieClip;

    public var indicator_mc:flash.display.MovieClip;

    public var prev_mc:flash.display.MovieClip;

    public var next_mc:flash.display.MovieClip;

    public var current: int;

    public var xmlData:XML;

    public var timer:flash.utils.Timer;

    public var timerGoing:Boolean;

    }

    }

    Here's the file uploaded to the server for you to get a clear picture, please click this link to download the entire folder. http://www.touchpixl.com/ForumsAdobecom.zip

    I'm not being able to solve the problem, it needs a master to get the right solution. I would ask you to help me.

    Thanks and greetings

    Sanjib Das

    This will fix the error you mentioned, if it comes to your document class:

    package FC_Home_Ads_Holder_v2_fla

    {

    Import __AS3__.vec. * ;

    Adobe.utils import. *;

    com.danehansen import. *;

    import com.greensock;

    com.greensock.easing import. *;

    com.greensock.plugins import. *;

    flash.accessibility import. *;

    flash.desktop import. *;

    import flash.display. *;

    flash.errors import. *;

    import flash.events. *;

    flash.external import. *;

    flash.filters import. *;

    import flash.geom. *;

    flash.globalization import. *;

    import flash.media. *;

    flash.net import. *;

    flash.net.drm import. *;

    flash.printing import. *;

    flash.profiler import. *;

    flash.sampler import. *;

    flash.sensors import. *;

    flash.system import. *;

    import flash.text. *;

    flash.text.engine import. *;

    flash.text.ime import. *;

    flash.ui import. *;

    import flash.utils. *;

    flash.xml import. *;

    SerializableAttribute public class dynamics MainTimeline extends flash.display.MovieClip

    {

    public const XML_LOC:String;

    public const LABELS: __AS3__.vec. Vector. = new Vector. (6);

    public const BTNS:__AS3__.vec. Vector. = new Vector. ();

    public const TRANSITION_TIME:Number = 0.2;

    public var contentMask:flash.display.MovieClip;

    public var btnHolder_mc:flash.display.MovieClip;

    public var holder_mc:flash.display.MovieClip;

    public var indicator_mc:flash.display.MovieClip;

    public var prev_mc:flash.display.MovieClip;

    public var next_mc:flash.display.MovieClip;

    public var current: int;

    public var xmlData:XML;

    public var timer:flash.utils.Timer;

    public var timerGoing:Boolean;

    public void MainTimeline()

    {

    XML_LOC = internship. LoaderInfo.Parameters.xmlLoc? stage.loaderInfo.parameters.xmlLoc: "home_ads.xml";

    new vector. (6) [0] = "productivity."

    new vector. (6) [1] = "leadership."

    new vector. (6) [2] = "execution."

    new vector. (6) [3] = "education";

    new vector. (6) [4] = "speed of trust";

    new vector. (6) [5] = "sales";

    Super();

    addFrameScript (0, this.frame1);

    return;

    }

    public void init (): void

    {

    var loc1: * = null;

    com.greensock.plugins.TweenPlugin.activate ([com.greensock.plugins.Aut oAlphaPlugin]);

    LOC1 = new flash.net.URLLoader (new flash.net.URLRequest (this. XML_LOC));

    loc2 var: *;

    This.next_mc.buttonMode = loc2 = true;

    This.prev_mc.buttonMode = loc2 = true;

    stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;

    internship. Align = flash.display.StageAlign.TOP_LEFT;

    LOC1.addEventListener (flash.events.Event.COMPLETE, this.xmlLoaded, false, 0, true);

    This.prev_mc.addEventListener (flash.events.MouseEvent.CLICK, this.minusClick, false, 0, true);

    This.next_mc.addEventListener (flash.events.MouseEvent.CLICK, this.plusClick, false, 0, true);

    return;

    }

    public void xmlLoaded (arg1:flash.events.Event): void

    {

    var loc1: * = null;

    loc2 var: * = 0;

    this.xmlData = new XML (arg1.target.data);

    loc2 = 0;

    While (loc2<>

    {

    LOC1 = new Btn (this. LABELS [loc2], loc2);

    this.btnHolder_mc.addChild (loc1);

    This. BTNS.push (loc1);

    trace (this.) LABELS [loc2]);

    ++ loc2.

    }

    This.Current = uint (this.xmlData.@firstPick);

    trace ("- width-");

    trace (this.contentMask.Width);

    var loc3: * = this.contentMask.width / this. LABELS.length;

    trace (LOC3);

    loc2 = 0;

    While (loc2<>

    {

    This. Inclinometer [loc2] .width = loc3;

    This. Inclinometer [loc2] .x = loc3 * loc2.

    ++ loc2.

    }

    this.btnHolder_mc.addEventListener (flash.events.MouseEvent.CLICK, this.numClick, false, 0, true);

    this.selectMovie ();

    return;

    }

    public void numClick (arg1:flash.events.MouseEvent): void

    {

    this.killTimer ();

    This.Current = arg1.target.i;

    this.selectMovie ();

    return;

    }

    public void killTimer (): void

    {

    this.timerGoing = false;

    If (this.timer)

    {

    This.Timer.Reset ();

    this.timer.addEventListener (flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);

    This.Timer = null;

    }

    return;

    }

    public function selectMovie (): void

    {

    If (this.timerGoing)

    {

    This.Timer = new flash.utils.Timer (uint (this.xmlData.ad [com.danehansen.MyMath.modulo (t his.current, this.xmlData.ad.length ())] .@delay), 1);

    This.Timer.Start ();

    this.timer.addEventListener (flash.events.TimerEvent.TIMER, this.plusClick, false, 0, true);

    }

    While (this.holder_mc.numChildren > 0)

    {

    This.holder_mc.removeChild (this.holder_mc.getChildAt (0));

    }

    var loc1: * = new flash.display.Loader ();

    LOC1. Load (new flash.net.URLRequest (this.xmlData.ad [com.danehansen.MyMath.modulo (thi s.current, this.xmlData.ad.length ())] .@loc));

    This.holder_mc. AddChild (LOC1);

    loc2 var: * = 0;

    While (loc2<>

    {

    This. BTNS [loc2]. Deselect();

    ++ loc2.

    }

    This. BTNS [com.danehansen.myMath.modulo (this.current, this.xmlData.ad.length ())] .select ();

    var loc3: * = this. BTNS [com.danehansen.myMath.modulo (this.current, this.xmlData.ad.length ())] .x + this. BTNS [com.danehansen.myMath.modulo (this.current, this.xmlData.ad.length ())] .width/2 + this.btnHolder_mc.x;

    trace ("addLength:" + this.xmlData.ad.length ());

    trace (loc3, com.danehansen.MyMath.modulo (this.current, this.xmlData.ad.length ()));

    com.greensock.TweenLite.to (this.indicator_mc, 0.3, {'x': loc3, "ease":com.greensock.easing.Cubic.easeOut});})

    LOC1.contentLoaderInfo.addEventListener (flash.events.Event.COMPLETE, this.adLoaded, false, 0, true);

    return;

    }

    public void adLoaded (arg1:flash.events.Event): void

    {

    var evt:flash.events.Event;

    loc1 var: *;

    evt = arg1;

    Try

    {

    evt.target.content.xmlData = this.xmlData.ad [com.danehansen.MyMath.modulo (this.current, this.xmlData.ad.length ())];

    }

    catch (er: error)

    {

    };

    return;

    }

    public void minusClick (arg1:flash.events.MouseEvent): void

    {

    this.killTimer ();

    loc1 var: *;

    loc2 var: * = ((loc1_=_this).current - 1);

    LOC1. Current = loc2;

    this.selectMovie ();

    return;

    }

    public void plusClick (arg1:flash.events.Event): void

    {

    If (arg1.type! = "timer")

    {

    this.killTimer ();

    }

    loc1 var: *;

    loc2 var: * = ((loc1_=_this).current + 1);

    LOC1. Current = loc2;

    this.selectMovie ();

    trace ("Next");

    return;

    }

    public function ended (arg1:flash.events.Event): void

    {

    If (arg1.type! = "timer")

    {

    this.killTimer ();

    }

    loc1 var: *;

    loc2 var: * = ((loc1_=_this).current + 1);

    LOC1. Current = loc2;

    this.selectMovie ();

    trace ("Next");

    return;

    }

    public void STARTED (arg1:flash.events.Event): void

    {

    this.killTimer ();

    return;

    }

    function frame1(): *.

    {

    this.timerGoing = true;

    addEventListener ("endNow", this.) COMPLETED, false, 0, true);

    addEventListener ("startNow", this.) STARTED, false, 0, true);

    This.init ();

    return;

    }

    }

    }

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

    You have a problem with a 'game' that I'm doing (just a little, to test its functioning). The idea is that you start as a man in a maze and then use the arrows to direct him. Recently, we started with interactivity with flash professional CS5.5.

    The error I get when testing is:

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

    at MannstyrtavpiltasteneTEST_fla::maintimeline/collisionmal() [MannstyrtavpiltasteneTEST_fla. MainTimeline::frame1:260]

    But this project is copied to another where we used buttons to direct an object, and I copied some code out of a youtube video that so I'm naïve now...

    I had three images in this game:

    The first is the game, where you start in the maze and make your way to the goal.

    The second is the plot of 'losing', that appear when the man is colliding with the walls.

    The third is when you win the game, which is mostly just a congratulation.

    When I go through two and three, I get the error. I guess I need to run the buttoncodes sort of way, so that the flash searching in fram 2 or 3. The game works fine, but the errors is not good, even if the game works.

    And the second problem is that every time that I lose or win and return to the framework one speed is multiplied by 2, it moves 4 PX instead of 2, etc.

    Any ideas?

    The error indicates that line 260 of frame 1 is where an object is covered by the code, but it does not exist as far as the compiler sees.  You can use the trace() function to determine the object that could be, but if there is only a single object on the line, this object will be the one.

    For your second problem, you must change the value of the speed somehow, so you will need to look at the code from frame 1 closely to see why this might be.  Still, you can probably use the trace() function to see when the value changes.

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

    He always keeps me this message.

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

    to MethodInfo - 9)

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

    to MethodInfo - 12)

    MyCode is here:

    var: number = 0;
    var objectoriginalX3:Number;
    var objectoriginalY3:Number;

    This.Stop ();

    date.buttonMode = true;
    date.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject3);
    date.addEventListener (MouseEvent.MOUSE_UP, dropObject3);

    authorQ3.buttonMode = true;
    authorQ3.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject3);
    authorQ3.addEventListener (MouseEvent.MOUSE_UP, dropObject3);

    titleQ3.buttonMode = true;
    titleQ3.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject3);
    titleQ3.addEventListener (MouseEvent.MOUSE_UP, dropObject3);

    publication.buttonMode = true;
    publication.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject3);
    publication.addEventListener (MouseEvent.MOUSE_UP, dropObject3);


    function pickupObject3(event:MouseEvent):void {}
    event.target.startDrag (true);
    event.target.parent.addChild (event.target);
    objectoriginalX3 = event.target.x;
    objectoriginalY3 = event.target.y;
    }

    function dropObject3(event:MouseEvent):void {}
    event.target.stopDrag ();
    var matchingTargetName:String = "target" + event.target.name;
    var matchingTarget:DisplayObject = getChildByName (matchingTargetName);
    If (event.target.dropTarget! = null & & event.target.dropTarget.parent == matchingTarget) {}
    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropObject);
    event.target.buttonMode = false;
    Event.Target.x = matchingTarget.x;
    Event.Target.y = matchingTarget.y;

    response_mc.gotoAndStop (1);
    nextquestion.gotoAndStop (1);

    Count ++;
    If (count == 4) {}
    response_mc.gotoAndStop (2);
    nextquestion.gotoAndStop (2);
    nextquestion.addEventListener (MouseEvent.CLICK, question3);
    function question3(event:MouseEvent):void {}
    gotoAndStop (4);
    date.gotoAndStop (2);
    authorQ3.gotoAndStop (2);
    titleQ3.gotoAndStop (2);
    publication.gotoAndStop (2);

    response_mc.gotoAndStop (1);
    nextquestion.gotoAndStop (1);
    }
    }

    } else {}
    Event.Target.x = objectoriginalX3;
    Event.Target.y = objectoriginalY3;
    }

    }

    Whatever the object targeted in line 17 is the focal point of the error.

  • setInterval() null object reference

    I have a function that should be repeated every 40 seconds. Each instance is triggered using setTimeout apart 10 seconds and repeated with setInterval.

    The first loop (40 seconds) works as expected. Rehearsals didn't work and generate the error:

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

    to SetIntervalTimer / onTimer)

    at flash.utils::Timer/_timerDispatch()

    at flash.utils::Timer/tick()

    Here's the script:

    var eric: MovieClip = MovieClip (this.root);

    XML = new XML (e.target.data);

    Eric.content_txt1.htmlText = getContent (1);

    Eric.content_txt2.htmlText = getContent (2);

    Eric.content_txt3.htmlText = getContent (3);

    Eric.content_txt4.htmlText = getContent (4);

    var repeat1:uint = setInterval (slideIn (1), 40000);

    var timer2:Number = setTimeout (function (): void {var repeat2:uint = setInterval (slideIn (2), 40000);}, 10000);

    var timer3:Number = setTimeout (function (): void {var repeat3:uint = setInterval (slideIn (3), 40000);}, 20000);

    var timer4:Number = setTimeout (function (): void {var repeat4:uint = setInterval (slideIn (4), 40000);}, 30000);

    the function slideIn (num): void

    {

    var point: TextField = eric ["content_txt" + num];

    trace (Item);

    var myTween:Tween = new Tween(item,"y",Strong.easeOut,-150,10,3,true);

    output: N ° var = setTimeout (function (): void {var myTween:Tween = new Tween(item,"y",Strong.easeIn,10,150,3,true);}, 5000);

    }

    Yet once, disable the first interval, and function can be passed a parameter if you use the third parameter of setInterval.

    :

    var repeat1:uint = 0;

    var repeat2:uint = 0;

    var repeat3:uint = 0;

    var repeat4:uint = 0;

    clearInterval (repeat1);

    repeat1 = setInterval (slideIn (1), 20000);

    setTimeout (function (): void {clearInterval (repeat2); repeat2 = setInterval (slideIn, 20000,2);}, 5000);

    setTimeout (function (): void {clearInterval (repeat3); repeat3 = setInterval (slideIn, 20000,3);}, 10000);

    setTimeout (function (): void {clearInterval (repeat4); repeat4 = setInterval (slideIn, 20000,4);}, 15000);

    var myTween:Tween;

    the function slideIn (num): void

    {

    var point: TextField = eric ["content_txt" + num];

    trace (Item);

    new Tween(item,"y",Strong.easeOut,-150,10,3,true);

    setTimeout (function (): void {myTween = new Tween(item,"y",Strong.easeIn,10,150,3,true);}, 3000);

    }

Maybe you are looking for

  • Reading of Win95 and Win98 readers 3.5 "with XP Pro?

    I have a some floppies of 1.44 MB 3.5 "with files I want to transfer my XP Pro desktop computer.  When I try to play I get the message "Disk needs to be formatted" will erase all info on diskette. Is it possible to read these with XP.  They have been

  • Create third party help files java app

    Hello I want to create help files for my java application similar to a shown by asociated BlackBerry internal applications. Those resembling web pages with hyperlinks and option boxes, and I would like to know how can I create and call them from my a

  • Apex5: How to store field data in the Pagination of the Page

    Hello.We have recently started using Apex 5.0.1 on Oracle mod_plsql and 11.2.0.4.I have a (non-interactive) report classic, based on a collection of Apex and use g_fxx tables created by the package APEX_ITEM such as TEXT, DISPLAY_AND_SAVE, CHECKBOX2

  • Lightroom has changed so somewhat arbitrary someothing

    Lightroom uses for years.  Just do a big import and thumbnails are now sorted in a somewhat arbitrary order.  xxxx60, xxxx64, xxxx57, xxxx63, xxxx59...Lightroom use for years now, all of a sudden the thumbnails are not sorted correctly.  I'll settle

  • The cost of custom resources allocation / advanced services

    Hellocould not find any docs on this, or find a way to do it in the UI vcac - so I wonder: is there a way to assign costs to the personalized services? ATM, looks one can only assign costs to calculate based on requirements RAM, CPU and storage resou