TypeError: Error #1009 on FLVPlayback

I've been struggling with this error for a few days now, I just can't understand what's happening really in trouble.

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

to fl.video::UIManager /http://www.adobe.com/2007/flash/flvplayback/internal:hookUpCustomComponents)

to fl.video::FLVPlayback /http://www.adobe.com/2007/flash/flvplayback/internal:handleVideoEvent)

to::EventDispatcher/dispatchEventFunction() flash.events

to::EventDispatcher/dispatchEvent() flash.events

to fl.video::VideoPlayer /http://www.adobe.com/2007/flash/flvplayback/internal:setState)

to fl.video::VideoPlayer /http://www.adobe.com/2007/flash/flvplayback/internal:finishAutoResize)

to::Timer/_timerDispatch() flash.utils

to::Timer/tick() flash.utils

The app is one for a tourist center, with an introductory video that can be ignored by is activated, which leads to a menu of four options, two options lead you to frames with intro videos that can also be circumvented by a simple click. All three intro videos use the FLVPlayback 2.5 component. The application runs without any problems, even when playing videos smoothly, until, apparently, at random intervals, this error occurs. He, however, only occur at the beginning or the end of a video. I had trouble to trace the error. It causes the program not responding at seemingly random intervals, while the program is used, or even if it's just the video race loop. If I reject the error, the program will continue to run without further questions, with the exception of this error, which can be rejected in turn, etc... However, when it is installed on the system it is simply insensitive because rejecting it is not an option. I wasn't able to catch or to track this error or its source. Any ideas? I'll attatch code to one of my frames with the FLVPlayback instance, since this seems to be where is the error.

import flash.display.MovieClip;

import flash.events.MouseEvent;

import flash.events.Event;

Import fl.video.FLVPlayback;

Fl.video import. *;

var heritageVideo:FLVPlayback = heritage_sequence;

stage.addEventListener (MouseEvent.CLICK, gotoHeritageHistory);

Stop();

heritageVideo.addEventListener (VideoEvent.COMPLETE, gotoHeritageTwo);

function gotoHeritageHistory(evt:MouseEvent):void

{

gotoAndStop (6);

stage.removeEventListener (MouseEvent.CLICK, gotoHeritageHistory);

heritageVideo.removeEventListener (VideoEvent.COMPLETE, gotoHeritageTwo);

heritageVideo.stop ();

heritageVideo.visible = false;

}

function gotoHeritageTwo(evt:VideoEvent):void

{

gotoAndStop (6);

stage.removeEventListener (MouseEvent.CLICK, gotoHeritageHistory);

heritageVideo.removeEventListener (VideoEvent.COMPLETE, gotoHeritageTwo);

heritageVideo.visible = false;

}

It's my first job real as3, so I wouldn't be surprised if I'm missing something obvious, and I hope that this is the case. Let me know if you have any ideas!

Hello

Of the error, it seems you are trying to manipulate something that is not yet initialized.  I'm not very familiar with Flash Professional (I do my work using Flash Builder), could you post it on the forums of Flash?  You will probably get a better response there.

Thank you

Chris

Tags: Adobe AIR

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.

  • Help please! I using Muse (the free trial version) very well since last week, but the last few times I tried to use it, it comes back with ' TypeError: Error #1009 pouvez anyonve tried to use it, it comes back with ' error can all

    Help please! I using Muse (the free trial version) very well since last week, but the last few times I tried to use it, it comes back with ' TypeError: Error #1009 pouvez anyonve tried to use it, it comes back with ' error can someone help me figure out what the problem... I have a few days I really help neee what the problem is... I have a deadline in a few days so I really need! Thank you

    Screen Shot 2015-05-11 at 20.32.34.png

    Restart your Mac. The OSX Drag Manager got in a bad state. The only way to reset it is to restart your computer.

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

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

  • TypeError: Error #1009:

    Here is my error:

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

    at GuitarAnimation_2_fla::MainTimeline/frame176()

    at flash.display::MovieClip/gotoAndStop()

    at GuitarAnimation_2_fla::MainTimeline/Chome()

    My animation film is to teach the user what each channel name and the sound is and how to play 3 different simple chords on a guitar. Each section of the rope has a under section Learn placement of finger and also to hear/see the agreement currently playing.

    I have action 3 layers and one for the main Navigation buttons, one for the buttons on the page of guitar strings, and one for the navigation on each sub buttons learn the rope page. I pasted the code I get an error on. I ran the debugger and it said problems with line 7, in which I marked in red below. This code, here's the whole error I get when I run the debugger.

    under navigation

    import flash.events.MouseEvent;

    Stop();

    c_placebtn.addEventListener (MouseEvent.CLICK, c_place);

    hear_cbtn.addEventListener (MouseEvent.CLICK, c_hear);

    d_placebtn.addEventListener (MouseEvent.CLICK, d_place);

    hear_dbtn.addEventListener (MouseEvent.CLICK, d_hear);

    g_placebtn.addEventListener (MouseEvent.CLICK, g_place);

    hear_gbtn.addEventListener (MouseEvent.CLICK, g_hear);

    function c_place(event:MouseEvent):void {}

    gotoAndStop ("cfingers")

    c_placebtn.Alpha = 0;

    hear_cbtn. Alpha = 100;

    }

    function c_hear(event:MouseEvent):void {}

    gotoAndStop ("c_hear_chord")

    c_placebtn. Alpha = 100;

    hear_cbtn.Alpha = 0;

    }

    function d_place(event:MouseEvent):void {}

    gotoAndStop ("dfingers")

    d_placebtn.Alpha = 0;

    hear_dbtn. Alpha = 100;

    }

    function d_hear(event:MouseEvent):void {}

    gotoAndStop ("d_hear_chord")

    d_placebtn. Alpha = 100;

    hear_dbtn.Alpha = 0;

    }

    function g_place(event:MouseEvent):void {}

    gotoAndStop ("gfingers")

    g_placebtn.Alpha = 0;

    hear_gbtn. Alpha = 100;

    }

    function g_hear(event:MouseEvent):void {}

    gotoAndStop ("g_hear_chord")

    g_placebtn. Alpha = 100;

    hear_gbtn.Alpha = 0;

    }

    Complete debugger error

    Try to launch and connect to player using the URL C:\Users\owner\Documents\AIOP-Schoolwork\Interactive Authoring\Class Project\Guitar Animation_2.swf

    [SWF] C:\Users\owner\Documents\AIOP-Schoolwork\Interactive Authoring\Class Project\Guitar Animation_2.swf - 153383 bytes after decompression

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

    at GuitarAnimation_2_fla::MainTimeline/frame176() [GuitarAnimation_2_fla. MainTimeline::frame1 76:7]

    at flash.display::MovieClip/gotoAndStop()

    at GuitarAnimation_2_fla::MainTimeline/Chome() [GuitarAnimation_2_fla. MainTimeline::frame1:17]

    If the information you have provided is accurate, d_placebtn does not exist when this line of code is run.

  • TypeError: Error #1009: Variable

    If I do a timeline in as3. And this happen

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

    at arrow_Scene1_fla::MainTimeline/frame2()

    The code in box 2 is

    Stop();

    myscore var = 0;

    score. Text = "$" + myscore;

    var mylive = 3;

    Live.Text = "Live:" + mylive;

    var myspin = 0;

    Spin.Text = ' Spin: "+ myspin;

    btn_play.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);

    function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void

    {

    gotoAndPlay (5);

    }

    btn_rule.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);

    function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void

    {

    gotoAndPlay (3);

    }

    BTN_CREDIT.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_3);

    function fl_ClickToGoToAndPlayFromFrame_3(event:MouseEvent):void

    {

    gotoAndPlay (4);

    }

    The fat is I think the cause.

    Here's one thing

    (a) no matter what, when I do a variable for the score. This message appears. Yet a new file. ONLY

    RARE CASES WHERE THIS IS NOT SERIOUS.

    Old file not affected, but new file.

    (b) the syntax in bold, no matter where I move it, follows the error. The old frame err message missing

    score, living or spin does not exist when your code runs.

    to identify the error, click file > publishing settings > swf and check the box "enable debugging" and retest.  the number of problematic line will be in the error message.

  • TypeError: Error #1009 but my purpose is here.

    Hi all

    On frame 1 on my main stage, I have a clip (IndexMC)

    Inside of that movieclip, I have a button (Index_Safety)

    Frame 1, I have a few AS3:

    IndexMC.Index_Safety.addEventListener (MouseEvent.CLICK, INDEX_Safety);

    function INDEX_Safety (e:MouseEvent): void

    {

    Play();

    INDEX_SAFETY = true;

    Sound_Stopper ();

    }

    When I run it, I get this error:

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

    at Newflashlayout_fla::MainTimeline/frame1() [Newflashlayout_fla. MainTimeline::frame1:14]

    Normally, when I get this error, it is because it cannot find the object that I've referenced. However, I am SEO IndexMC.Index_Safety on frame 1 and the movieclip (IndexMC) with the button (Index_Safety) is on frame 1.

    Newflashlayout_fla. MainTimeline::frame1:14 is:

    IndexMC.Index_Safety.addEventListener (MouseEvent.CLICK, INDEX_Safety);

    You are welcome and if you all put please mark the thread responded, so we can filter without response. Good luck!

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

  • TypeError: Error #1009: when communicating to a button in a MovieClip

    I get the following error:

    [SWF] ProjectZ_iOS.swf - 12154544 bytes after decompression

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

    at ProjectZ_iOS_fla::MainTimeline/goButtons() [ProjectZ_iOS_fla. MainTimel ine::frame71:54]

    By trial and error, I have reduced this problem down (line 54) of an 'if' statement (and all the other instructions) that communicate to a button in a movie clip (PopUp_GetMore.bnt_MoreRemixesGoHome). When the user clicks this button I want to delete the movieclip on the stage and turn the visibility of the other buttons to true. I get this error for every query that communicates to a button in the movieclip. I have several conditions in the service, but for example I am love, only include the declaration for a button below:

    Variables

    var PopUp_GetMore:MainMoreRemixes_mc = new MainMoreRemixes_mc();

    //******************************Stage buttons**************************************

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    Add the movieclip on the stage

    if(Event.Target == bnt_GetMore)

    {

    addChild (PopUp_GetMore);

    PopUp_GetMore.x = stage.stageWidth/2;

    PopUp_GetMore.y = stage.stageHeight/2;

    bnt_Behind.visible = false;

    bnt_GetMore.visible = false;

    bnt_Facts.visible = false;

    bnt_AuthorIllustrator.visible = false;

    }

    Deletes the clip of the scene

    If (event.target is PopUp_GetMore.bnt_MoreRemixesGoHome)

    {

    removeChild (PopUp_GetMore);

    bnt_Behind.Visible = true;

    bnt_GetMore.Visible = true;

    bnt_Facts.Visible = true;

    bnt_AuthorIllustrator.Visible = true;

    }

    }

    What I am doing wrong? If the declarations as communcate with the buttons inside the movieclip appear in another function?

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

    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.

    And just in case it might be a misspelling... If it is a button would not name more likely include "btn" rather than "bnt".

  • TypeError: Error #1009: How can I find the exact line of the error?

    I got the following error when testing a project:

    [SWF] ProjectZ_iOS.swf - 12154544 bytes after decompression

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

    at ProjectZ_iOS_fla::MainTimeline/goButtons() [ProjectZ_iOS_fla. MainTimeline::frame71:54]

    I don't know how to read what there isn't any 'framework' 71 Moreover, that means this average, 'MainTimeline::frame71:54 '?

    Since no one has mentioned, the line number is 54.  Field 71, line 54.

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

Maybe you are looking for

  • Network with 2 TC will not work

    I have a Time Capsule (A1470) set up as main router connected to my modem fiber, and it works perfect except wifi poor in some room 2 second floor. I wish to connect a second Capsule (A1409) to main TC to get better wifi on the 2. Floor. And I tried

  • Windows 7 x 64 required for HP Envy 17 laptop drivers

    Hi all I have problems with some drivers for this machine to original-Windows 8 Specifically, I need win x 64 drivers for the touchpad and USB 3.0 The model number, I can find is in the BIOS that tells me that it is an EOK85UAR #ABA I tried win7 driv

  • Keithley model 2400 example vi do not work? Error-1073807346

    I'm new to LabView and have a new installation of LabView 2010.  I made different tutorials and have been reading about LabView (I'm not new to programming of GPIB, just new to labview).  I found the drivers of instruments through the NI Instrument D

  • IMAP folder problem

    Header download for the 'sent items' folder did not complete. Cannot select "Sent items" on the IMAP server. You could try refreshing your folder list to synchronize with the IMAP server. Server: 'imap.aol.com', Protocol: IMAP, server response: 'SELE

  • Microsoft Security Essentials Full Scan is turned off

    When I try to run a full scan, analysis is constantly interrupted because the screen switches to switch users.I have all the options changed forever energy saving.  I keep having to go back to my computer to use theScan and it takes all day.Thank you