Error #1009 in Flash

Hello everyone, I'm having some unexpected problems in Flash. I wanted to build a basic Button, TextInput, and TextArera. The code looks fine. When I pressed ctrl + enter, I got a long enough message in the output panel. To be honest I don't understand what that means.

Below, I typed the code and the message that I received in the exit sign its really too big to show that it is complete.

Any suggestions to solve this problem would be appreciated.

import flash.text.TextFormat;

Import fl.controls.TextInput;

Import fl.controls.TextArea;

Import fl.controls.Button;

import flash.events.MouseEvent;

var tf:TextFormat = new TextFormat();

TF.font = 'Arial ';

TF. Size = 14;

TF. Color = "0xff0000;

var ti: TextInput = new TextInput();

ti.setSize (429,00, 50.00);

TI. Move (96.00, 286.00);

TI.editable = true;

TI.enabled = true;

ti.setStyle ("textFormat", tf);

addChild (ti);

var your: TextArea = new TextArea();

ta.setSize (96.00, 430.00);

rah Move (246.00, 8 pm);

TA.editable = false;

TA.enabled = true;

ta.setStyle ("textFormat", tf);

addChild (ta);

var mybutton:Button = new Button();

mybutton.setSize (11: 00, 25);

MyButton.Move (21, 287);

MyButton.label = 'submit ';

MyButton.Toggle = true;

addChild (mybutton);

mybutton.addEventListener (MouseEvent.CLICK, btnHandler);

function btnHandler(event:MouseEvent):void {}

trace ("Success");

}

Type error: Error #1009: cannot access a property or method of a null object reference

to fl.controls::TextArea/drawLayout()

to fl.controls::TextArea/draw()

to fl.core::uicComponent/callLaterDispatcher()

Type error: error 2007 # child parameter must be non-null

at flash.display::Displayobjectcontainer/addChildat()

to fl.controls::Basebutton/drawbackground()

to fl.controls::BaseButton/draw()

to fl.controls::uicComponent/drawNow()

to fl.controls::scrollBar/draw()

to fl.controls::uicscrollBar/draw()

first of all, fix:

TF. Color = "0xff0000;

that should be:

TF. Color = "0xff0000";

or

TF. Color = 0xff0000;

Then, make sure you have a textarea in your library component.  (that is to say, drag the components Panel to the stage, then remove it).

If that does not solve the problem click the file > publishing settings > swf and check the box "enable debugging".  Repeat the test.

the number of problematic line will be in the error message.  that indicates the object that does not exist when your code runs.

If you do not understand how to solve the problem and the above, the number of problematic line in your code.

Tags: Adobe Animate

Similar Questions

  • My link works w/Flash player 11, but I get an error #1009 w/Flash Player 10

    Sorry, I am just learning Flash and this is my first video. My apologies if I should post this in another forum. I work in the CS6 on a Mac (10.6.8). I get the error message is the following:

    Flash10_error_msg.png

    I add the script on the keyframe when the link button is fully arrived on the scene. (I tried to add to the first image, but it gave me an error message.

    link_scirpt_for_button_added.png

    Here's the script for the link:

    webLink_btn.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(e:MouseEvent):void {}

    navigateToURL (new URLRequest ("http://www.accuratebiometrics.com/"), '_blank');

    }

    The link works when I test it in Flash, and it also works when I test it in Flash 11 (11.2.202.228). I wish that the link was backwards compatible with Flash 10 (currently using 10.0.22.87).

    The only other script is a stop on the last image.

    I would really appreciate help up my first Flash video up and running.  ;-)

    Thank you!

    delete the name of the instance of this interpolated object.  in a layer above this interpolation, insert a new layer and add a keyframe to 462 and add webLink_btn to that keyframe on stage.

    You should have a webLink_btn of untweened in the same frame with your code.  Repeat the test.

  • Hello. I do not understand what that error for Adobe Illustrator and Adobe Muse creative cloud products: I open the app and they are closed today. In the writing of Muse: app error #1009 in Illustrator just closed.

    Hello. I do not understand what that error for Adobe Illustrator and Adobe Muse creative cloud products: I open the app and they are closed today. In the writing of Muse: app error #1009 in Illustrator just closed.

    Please check:

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

    Adobe Flash Player Error #1009 Windows 8.1

    TypeError: Error #1009

    Flash Player ' TypeError: Error #1009: cannot access one - Microsoft Community

    It seems to be an error in the Flash Player rather than illustrator.

    Concerning

    Stéphane

  • 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.

  • Adobe Air + Box2D.swc = TypeError: Error #1009 / / new way of managing .swc files in Flash for iOS Apps?

    Hello

    I need your help please - I need to update one of my iOS Apps. In this application, I use Box2d for a simple maze game (this is an application for children). When I publish and test this game on my Mac it works fine. I can drag my hero (fish) in this maze and all detections of collision, gravity etc perfect work.

    maze.jpg

    When I test it on my iPad it does not work. The device debugger shows this error message:

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

    Global $init)

    Global $init)

    at Box2DAS.Common::b2Base$/initialize() [/ users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31]

    to wck::WCK/create() [/ utilisateurs/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/WCK.as:26]

    in misc::Entity/ensureCreated() [/ users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50]

    in misc::Entity/handleAddedToStage() [/ users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100]

    in misc::Entity/handleAddedToStage()

    Line 31: loader = new CLibInit();

    Bildschirmfoto 2014-10-23 um 21.06.03.png

    I guess that "CLibInit" must come from the .swc file.

    The thing is:

    I won't change anything in this maze game - it seems it has to do something with the new version of Flash or Adobe Air. File box2d.swc is included:

    Bildschirmfoto 2014-10-23 um 21.01.26.png

    It has always worked like that - and it works when test on my Mac - but it doesn't work anymore on my current system.

    So I started my Mac from an older system (10.9.5 on an external HD) and published the App in Flash and Adobe Air 13.0 CS6 - then all of a sudden, he is working on my iPad as before. I was able to draw a fish and make it arround.

    The same project / app released from my current OS X 10.10 + Flash CC 2014 + Adobe Air 15.0.0.302 does not work. I still have this error message - I can't drag the fish - nothing happens. And I have no idea why this happens and what I could do. I searched all day for a solution but found nothing.

    If nothing has changed by the way Flash and/or Air manages the .swc files? Is there another way to include: import cmodule. Box2d.* / CLibInit?

    -If someone has an idea - please let me know!

    Best regards

    Jan

    SOLVED!

    I uncheck 'Schnelleres Verpacken aktivieren (Beta)' and now it works again! Hooray!

    @ Adobe: Please take a look at this!

  • Flash help-trying to make movement buttons images (getting error 1009)

    Help! I am trying to create a portfolio site, and I want my photo strip to flow and then become buttons. I did the buttons, but once the tape stops I get this message.

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at portfolio_fla::MainTimeline/frame62()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()

    This is the code I have in the Panel actions

    Stop();

    LISTEN TO THE CLICK OF THE BUTTONS

    pics_mc.card_btn.addEventListener (MouseEvent.CLICK, cardClick);

    function cardClick(e:MouseEvent):void {}
    trace ("cardClick");

    }

    pics_mc.wine_btn.addEventListener (MouseEvent.CLICK, wineClick);

    function wineClick(e:MouseEvent):void {}
    trace ("wineClick");
    }

    pics_mc.edge_btn.addEventListener (MouseEvent.CLICK, edgeClick);

    function edgeClick(e:MouseEvent):void {}
    trace ("edgeClick");

    }

    pics_mc.group_btn.addEventListener (MouseEvent.CLICK, groupeCliquez here);

    function groupClick(e:MouseEvent):void {}
    trace ("groupClick");

    }

    pics_mc.romeo_btn.addEventListener (MouseEvent.CLICK, romeoClick);

    function romeoClick(e:MouseEvent):void {}
    trace ("romeoClick");

    }

    I am new to flash
    Thank you!

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...
     
    n ' is not in the display list
    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).
     
    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.

    Since you say that you move things in, I suspect the 4th listed element could relate to your problem, but it could be one of them.

  • Error #1009. Error in ActionScript in Flash game I'm doing...

    Hello

    I do a Flash game and rather than putting a .as file separate all AS3, I'm throwing on the timeline, which may or may not be a mistake since this game gets really big, really fast and messy.

    And if I get this error when I test:

    TypeError: Error #1009: cannot access a property or method of a null to GameBeta_MainTimeline_fla::MainTimeline/frame1() object reference

    What I read on that mistake, it refers to something that is not instantiated again, as something that is out of order? As I am referring to something that is not at the point in time that I refer to it? I am interested in my AS3 and I have NO idea. Here's what I wrote:

    Stop();

    TITLE PAGE

    play_game.addEventListener (MouseEvent.CLICK, startgame)

    function startgame(evt:MouseEvent):void
    {
    Stop ("Input Name");

    }

    Entry name and sex page

    var userName:String;

    inputField.addEventListener (Event.CHANGE, onInput)

    function onInput(e:Event):void
    {
    outputField.text = "If your name is" + inputField.text + "are you sure?";
    userName = inputField.text;
    }


    confirm_input.addEventListener (MouseEvent.CLICK, toCreationpg)

    function toCreationpg(evt:MouseEvent):void
    {
    Stop ("creation of Fem");
    outputField.text = "your name is" + username;
    }

    Character creation page

    readytostart.addEventListener (MouseEvent.CLICK, firstscene_plz)

    function firstscene_plz(evt:MouseEvent):void
    {
    gotoAndStop ("Day03");
    outputField.text = "Let's make your character,"+ username; "
    }

    So, any ideas as to why I get this error?

    Before I had each page with its own Actionscript and buttons inside their own clips on the timeline. Who became confused, then I took everything off the movieclips to put everything on a timeline and have a layer of Actionscript in the hope to simplify things and find the problem easier. No luck. It is supposed to have a title page and a button that goes to the 2nd page where you enter your name and as you type, it displays your name before you confirm by pressing another button that will finally to character creation page. When I test, I just get this error #1009, it will go to page 2 for the name entry, but the wacky bill text fields and does not have the key to continue. I hope that when I find the source of this error, the rest will be fixed as well.

    Thanks in advance for all advice! I'm very happy.

    There are many ways to create this error which are undetectable to inspect your fla unless you go up the steps you took to create.  and that's worth.

    and there is only one way to ensure that you will not see this error: inputField in its own layer and ensure that there is only a single keyframe in this layer.  test.  You should see no problem if you assign this instance name in this key frame (unless you have another inputField somewhere).

    from there you can begin to add keyframes and as long as you do not remove all keyframes inputField your code will continue to work.

  • Error #1009 in the Flash Menu for Web site

    I for the life of me can't find the problem with this error 1009.

    I have a Flash Menu as a header for my site with the following actionscript code:

    residential button
    resBtn.addEventListener (MouseEvent.CLICK, resLink);
    function resLink(event:MouseEvent):void {}
    navigateToURL (new URLRequest ("residential.html"));
    }
    commercial button
    commBtn.addEventListener (MouseEvent.CLICK, commLink);
    function commLink(event:MouseEvent):void {}
    navigateToURL (new URLRequest ("commercial.html"));
    }
    recreation button
    leisBtn.addEventListener (MouseEvent.CLICK, leisLink);
    function leisLink(event:MouseEvent):void {}
    navigateToURL (new URLRequest ("leisure.html"));
    }
    "Home" button
    homeBtn.addEventListener (MouseEvent.CLICK, homeLink);
    function homeLink(event:MouseEvent):void {}
    navigateToURL (new URLRequest ("home.html"));

    Debugger comes back with:

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at introMenu_fla::MainTimeline/frame43() [introMenu_fla. MainTimeline::frame43:3]

    All instances are properly named and I get no syntax error, export to Flash.

    It's only when I saw in the browser or the live preview in Dreamweaver I get the error.

    Is there Javascript or something I'm missing? Any help would be welcome!

    See you soon

    This error is poitning to line 3 of the 43 framework.  To animate these objects in view with an interpolation of the timeline?  If so make sure that you name the instances of all keyframes.

    1009 error indicates that one of the objects targeted by your code are out of reach.  This may mean that the object...
     
    n ' is not in the display list
    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 keyframes consecutive same objects with different names assigned.
     
    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.

  • Error 1009 (call of the Null object) Flash CS4

    Hi all

    I am very new to Flash (this is my first attempt) and try to find a way to deal with this error I get.

    The code is supposed to animate a popup on a score to the mouse event.

    I'm really surprised, I did that well before letting mouth gaping.

    Please help, my brain hurts.

    Here is my code:

    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;

    var FishingSub_mc:MovieClip = FishingSub_mc;
    var Fishing_btn:SimpleButton = Fishing_btn;

    function FishingFlyout (event: MouseEvent): void
    {
    var FishingTween:Tween = new Tween (FishingSub_mc, "y", Regular.easeOut, 0, 40, 20, false);
    }
    Fishing_btn.addEventListener (MouseEvent.MOUSE_OVER, FishingFlyout);

    And here is the error I get:


    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at menu_fla::MainTimeline/frame1() [menu_fla. MainTimeline::frame1:12]

    Thanks for your help.

    Dave

    You're welcome, Dave

  • 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...!

  • 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.

  • Error #1009 when loading SWF with Document class

    Hello

    I have two sovereigns, racingPreloader.swf and racingTrack1.swf funds, the other has a class of documents 'hands. RaceMain ".

    racingPreloader.swf is a preloader for racingTrack1.swf, but it does not work. Instead, I get the result:

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

    sector: RaceMain()

    I tried to enable debugging on both files and test it with Shift + Ctrl + Enter, but the result is substantially the same; It does not give me a specific line where is the problem.

    Try to launch and connect to player using URL H:\Swifter\racingPreloader.swf

    [SWF] H:\Swifter\racingPreloader.swf - 16102 bytes after decompression

    [SWF] H:\Swifter\racingTrack1.swf - 41869 bytes after decompression

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

    sector: RaceMain()

    Cannot view the source code at this location


    This is very similar to what happened to this topic, but I couldn't solve my problem after not finding a solution in it.


    Here's the code to frame 1 of the racingPreloader.swf:


    var loader: Loader = new Loader();

    Loader.Load (new URLRequest ("racingTrack1.swf"));

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, openSWF);

    function openSWF(e:Event) {}

    addChild (loader)

    }

    And this is a part of the code to the sector. RacingMain class. I have omitted most of the code because I believe that these lines are the source of the problem:

    the packet network {}

    import flash.display.MovieClip;

    //... More import clausses

    SerializableAttribute public class RaceMain extends MovieClip {}

    public void RaceMain() {}

    if(stage==null)

    this.addEventListener (Event.ADDED_TO_STAGE, main);

    on the other

    hand (null);

    }

    private void main(e:Event):void {}

    start the game

    }

    }

    }


    Thank you.

    I just figured out that I was loading an old version of racingTrack1.swf with an unfixed food version. RaceMain class of document. I changed to the version with this fix and finally managed to do work.

  • Error #1009 - buttons on new executives

    Hello

    * I'm a little new to ActionScript 3 you must forgive my probably inaccurate descriptions, but here we deplacements.*

    I am developing a flash website and (surprise, surprise) I am using the buttons... but I get errors. I get error #1009 and think that I found the problem I am facing:

    The first group of 3 buttons (let's call group them A1 for clarity) is the Framework 1. Each of these buttons leads to its own subpage of 2 buttons (groups A2 - C2) that each leads to its own page (and, therefore, framework.)

    Here is a graph that illustrates my layout of the site, it also illustrates my love for graphics.

    graph.png

    I use your common code for the buttons, but I get the error #1009. I think it's because the buttons I've included in the code are in different time periods, despite the code being written in the same place.

    What should I do to fix this?

    Thank you

    Joshua

    You cannot reference a button using actionscript until it exists, or you will get this error 1009.

    for example, if the code for all of these buttons is on frame 1 of your main timeline, you add all these buttons to the stage in frame 1.

    because you want all these buttons visible on frame 1 to the start of your swf file you can use the visible property to control what the user sees (and does not).

  • 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);

Maybe you are looking for

  • USB 3.0 does not work on my Satellite Pro L50

    Hello boffins. I have a problem with the driver for the Intel USB 3.0 eXtensible host controller on my L50 (running Win7 64 bit). I recently took my L50 Pro Satelite (PSKK3A-001001) to the repair shop because the blue ports were not running at speeds

  • (Successfully) installed manually in my history of update update shows as failed, why?

    OS:-XP Pro and Office 2003, update KB2676562, one of the aprox 50 installed in a batch failed. Error 0x8007F0DA I downloaded and installed successfully (it shows in Add or remove) but the website update after scanning my machine it lists as "failed".

  • How can I remove Votre_fichier Downloader?

    I am sure that my son has downloaded something called Votre_fichier Downloader last month while playing games on the internet.  Since then, I get a popup at the beginning saying that Downloader Votre_fichier recommends an urgent update.  When I tried

  • NotificationApplicationSettings and Led color

    Hey. There is no Led color property in the NotificationApplicationSettings class, but there is a list drop-down color led in the menu of notifications app customized for applications. Is there no workaround solution for color led in this drop-down li

  • ASA 5585 X SSP 10 with installation of fire power module

    Hello I have 2 ASA 5585 SSP10 in the work of setting up active / standby. We bought 2 Swiss francs SFR ASA5585-SSP-10 modules must be installed. My question is whether the software system and boot images are already factory pre-installed on the cards