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.

Tags: Adobe Animate

Similar Questions

  • AS3 preloader for a SWF with document class

    Hello

    I created 1, 5 MB swf file and I need of preloader for it. I don't have the code for any scenario in there. All written in OBJECT-oriented programming, based on the document class. I caught a preloader to my previous projects, but this one does not. The output is: ' TypeError: Error #1009: cannot access a property or method of a null to myDocumentClass() object reference '

    Basically, I want to load swf in my swf preloader or all that will work. I tried to add loaderInfo to my document class but complete event not triggered when everything is loaded, and nothing that before. Just a white screen.

    How to load my large swf with document class in preloader.swf?

    Strange that you don't get line numbers in error when running in debug mode. Try to enable debugging in settings of publication-> SWF-> Advanced-> permit debugging.

    Another strange thing is that error that says ' DocumentlClass()' but your document class is called 'CarouselClass '.

  • preloading swf with document class and get the error #1009

    Hello

    I'm learning flash and uploaded a sample of adobe with its mix of channel.

    http://www.Adobe.com/devnet/ActionScript/samples/media_5.html

    Now, I'm learning to preload the swf.  I use an external script preloader which show the charge percentage, however, when I run it, I get the following error:

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

    to code.soundclasses::TrackChannel()

    at flash.display::Sprite/constructChildren()

    at flash.display::Sprite()

    at flash.display::MovieClip()

    code: Media5()

    The example of sound channel exports very well on its own, but in the preloader script, it gives the above error.  Here's my preloader script:

    import flash.display.Loader;

    to import flash.events.ProgressEvent;

    var l:Loader = new Loader();

    l.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, loop);

    l.contentLoaderInfo.addEventListener (Event.COMPLETE, done);

    l.Load (new URLRequest ("content.swf"));

    function loop(e:ProgressEvent):void {}

    var perc:Number = e.bytesLoaded / e.bytesTotal;

    percent.text = Math.ceil(perc*100).toString ();

    }

    function done(e:Event):void {}

    removeChildAt (0);

    p = null;

    addChild (l);

    }

    Any help would be greatly appreciated.  Thank you!

    Click on publish files/settings/flash and check the box "enable debugging" in the main swf file.  Repeat the test.  the line of code (which is soundclasses) problem will be in the error message.

  • Receive the KB 953691 error code when loading LifeCam 3.0

    Original title: kb/953691

    Dumm it down to a classified noncomputor like me, how or what I do to work around the kb/953691 error code when loading LifeCam 3.0? My LifeCam 1.2 has not had a problem with Vista, but does now with Windows 7.

    Thanks for any direction, wish MSM would take a direct responsibility with a patch rather than a group of form... Richard

    p.s., xxxx always Vista and Windows 7 on XP, could have been better with a Mac laptop and my XP PC on Vista/Win7 laptop!

    Hi Richard,

    You can try the following steps and check if it helps.

    Step 1:

    Reset the permissions for the folder to full access:

    a. Click Start, click Run, type Explorer.exe and then click OK.

    b. expand computer.

    > Locate the C:\Documents and Settings\folder \My Documents\LifeCam

    > Locate the C:\Users\folder \Pictures\LifeCam

    c. right click on the folder and then click Properties.

    d. on the Security tab, click Administrators, click full control under allow and then click on apply.

    e. on the Security tab, click System, click full control under allow and then click on apply.

    f. on the Security tab, click everyone, click on remove and then click OK.

    Step 2:

    Configure the firewall settings to allow LifeCam.exe:

    To examine and configure your firewall settings, follow these steps:

    a. Click Start, click Run, type wscui.cpl and then click OK.

    b. in the Windows Security Center, click Windows Firewall.

    c. the Exceptions tab to add program and port exceptions to allow certain types of inbound traffic. You can define a scope for each exception.

    d. Select LifeCam.exe and add it to the list of Exceptions.

    e. If you are using another firewall, check the manual to configure the firewall to add LifeCam.exe to the list of exceptions.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • HP color laserjet 2605 Error error restart when you print the document

    HP color laserjet 2605 error restart when you print the document, please give me a solution?

    Apparently, there are no other problems to format, I was forced to replace it with a new one, finally hp color laserjet 2605 printer I had to walk normally.

    I hope that the discussion can be useful for each of them, thank you

  • ProcessGPORegistryPolicy: Detected the error 87 when filling registry with settings in the file to archive temporary.

    I'm seeign as below errors in gpsvc.log and gpupdate/force fails with the error below.

    "Processing of Group Policy failed because of internal system error".

    RSOP appears in the confiuration computer, registry error, Unspecified.

    ProcessGPORegistryPolicy: Detected the error 87 when filling registry with settings in the file to archive temporary.

    SetRegistryValue: Could not open the key < software\policies\microsoft\windows\windowsupdate\au=""> 87

    Could you please help in investigating it?

    Concerning

    Murali

    Hello

    I suggest you to send your request in the TechNet forums.

    http://social.technet.Microsoft.com/forums/en/category/w7itpro

    http://social.technet.Microsoft.com/forums/en/categories

  • Error #1009 when sound inside game, a movie clip that is called to the scene with child add method

    What is supposed to happen

    I have a clip that is called when the user clicks a button. When moving clip appears music is expected to play. When the user clicks the close button the music stops and the clip is removed from the scene.

    But then I get an error

    When I test the movie I get the following error:

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

    to mc_playSong / frame2 () [mc_playSong::frame2:6]

    This is the code that calls the clip on the stage (no problem here):

    Call the video clip with the song played on stage

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    If (event.target is song_bnt)

    {

    SoundMixer.stopAll ();

    addChild (myPlaySong);

    myPlaySong.x = 558;

    myPlaySong.y = 384;

    Event.stopImmediatePropagation;

    }

    The following code inside the clip is called to the scene. The music is meant to play:

    Stop();

    Variables for listening to music

    var RJPlaySong:RJSong = new RJSong();

    var RJPlaySongChannel:SoundChannel;

    Music for plays

    stage.addEventListener (Event.ENTER_FRAME, startRJSong); (I think that the error in the code is in this function. When I comment on him I don't get error.)

    function startRJSong(event:Event):void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    Stop all sounds, sets variables to null and calls a send event that removes the clip of the scene.

    bnt_closeSong.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditSongScreen);

    function closeCreditSongScreen(event:MouseEvent):void

    {

    SoundMixer.stopAll ();

    RJPlaySong = null;

    RJPlaySongChannel = null;

    dispatchEvent (new Event ("RemoveMCsong"));

    }

    Someone at - it ideas? This seems to be a pretty simple question, but I can't understand it.

    I meant that you have quoted just to be taken literally.  If it's still not clear what I say or what did your code, try the following in order to demonstrate the IT change... This code to be...

    stage.addEventListener (Event.ENTER_FRAME, startRJSong);

    function startRJSong(event:Event):void {}

    trace ("I can do this all day");

    }

    After doing this, you can see why you want to only call the function once, and you could eliminate most of it and just put...

    RJPlaySongChannel = RJPlaySong.play ();

    Instead, or as I said originally, you can change it to be...

    function startRJSong (): void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    startRJSong();

  • Error when loading an XML document using a structured application

    Hello

    I try to load an XML document using a structured application defined in the default structapps.fm

    My code is shown, extracted from the sample code API FDK.

    Problem, I still got the same message:

    "Cannot find the file named e:\xml\AdobeFrameMaker10\file. Make sure that the file exists. "

    Where "e:\xml\AdobeFrameMaker10\" is my installation directory.

    So I guess that govern trying to find the structapps.fm file but can't find it.

    What else can we?

    Does anyone known how elements achieve this simple task using extendScript?

    Thanks for all comments, Pierre

    function openXMLFile (myLastFile) {}

    var filename = myLastFile.openDlg ("XML file choose...", "*.xml", false);

    If (filename! = null) {}

    / * Default Get open the properties. Back so it can not be affected. */

    var params = GetOpenDefaultParams();

    / * Set properties to open an XML document * /.

    / * Specify XML as the type of file to open * /.

    var i = GetPropIndex (params, Constants.FS_OpenAsType)

    params [i].propVal.ival = Constants.FV_TYPE_XML;

    / * Specify the XML application to use when opening the text.

    I have = GetPropIndex (params, Constants.FS_StructuredOpenApplication)

    params [i].propVal.sval = "myApp";

    I have = GetPropIndex (params, Constants.FS_FileIsOldVersion)

    params [i].propVal.ival = Constants.FV_DoOK

    I have = GetPropIndex (params, Constants.FS_FontNotFoundInDoc)

    params [i].propVal.ival = Constants.FV_DoOK

    I have = GetPropIndex (params, Constants.FS_FileIsInUse)

    params [i].propVal.ival = Constants.FV_DoCancel

    I have = GetPropIndex (params, Constants.FS_AlertUserAboutFailure)

    params [i].propVal.ival = Constants.FV_DoCancel

    / * The file structapps.fm that contains the specified app must have

    already been read. The default structapps.fm file is read when FrameMaker is

    open so this shouldn't be a problem if the application to use is

    listed in the structapps.fm fichier.*.

    var retParm = new PropVals()

    var fileObj = Open (filename, params, retParm);

    return fileObj

    } else {}

    Returns a null value.

    }

    }

    Stone,

    According to the "myLastFile" object, the method openDlg may not yet exist (if the myLastFile object is not an object file, for example). And I do not see the myLastFile be necessary anyway, you present a dialog box to select a file to open. I recommend to use the global method of ChooseFile () instead. This will give you a file name as string in the notation of full path, or null if no file has been selected in the dialog box. I'm not sure of what your States of the return value for ChooseFile ExtendScript documentation, but if that differs from what I tell you here, won't the documentation. For example, if you change the first lines of your code by the following it should work:

    function () {} openXMLFile

    var filename = ChooseFile ('choose XML file... ("," ","*.xml", Constants.FV_ChooseSelect);

    While writing this, I see that Russ already gave you the same advice. Use the value of symbolic constant, I stated to use the ChooseFile dialog box to select a single file (it can also be used to select a directory or open a file - but you want control you the logon process). Note that this method allows you to define a directory for the dialog (second parameter). The ESTK autocompletion also gives you a fifth parameter "helplink" who is undocumented and may be ignored.

    Good luck

    Jang

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

  • "File not found" error message when you save the document

    Hello

    Oddly enough, whenever I click on 'save' in CS6, it opens a window "save under", (which shouldn't happen), then I click on save witht the existing file name (he said then the doc exist already), I click on OK, (and then on OK to the next popup window) do get the message "file not found".  I have to click on 'ok' and the document is not saved.  I tried to register differently in previous versions, and it still does not work.  I recorded a video of this behavior. You can see here - http://screencast.com/t/W1GYK0zsrk

    Why would he try to find a file?  Looks like an error message when you try to open a doc, does not save a doc.

    Help, please!  I can't stop my station until I get the document to save.

    Yes, Mohit1233 - happened with each file yesterday. Finally, I closed the doc (make me lose my job requires), then restarted my computer and now, that problem has disappeared. I work on a PC (HP);

    Barblove - I tried to do that yesterday (copy and paste into a new doc) and still nothing. I also tried to copy the work in a CS3 doc (but got an error message).

  • V20.0.0.267 screen white when loading swf

    Loading our .swf with the last update of the activeX flash and then a blank white screen is displayed instead of the movie.
    Right-click on this space shows: "Movie not loaded" grayed out, and 'on Adobe Flash Player 20.0.0.267 '.

    The user cannot interact more with the framework and this prevents our full service program.

    Please respond with a workaround or difficulty of any emergency.

    Project1.jpg

    Hello

    Please update your Flash Player at 20.0.0.270.

    https://get.Adobe.com/flashplayer/

    The problem is resolved.

    Thank you

  • Error "Unable to load image" with iphone app of Lightroom

    I just downloaded the app and when I click on for my camera to import photos from my new collection "iPhone", I get an error "unable to load image". Someone else has had this problem and know how to fix? I could get a single photo to finally take as if by magic, but other 835 photos give this error when I try and select them. Thanks for your help!

    Hi Ryan,

    I have a few questions to understand the question.

    This happens to all your property or only some?

    Does it occur only on a single device (if you have several), what device you are on by knowing this?

    Have you managed to import all of your camera.

    You take the images of a specific album? If so, can you tell us a little of the assets inside the album?

    It helps to look at this image from the Photos app and a new attempt to import?

    Thank you

    Ignacio

  • App integrated with Flash Builder 4.6 and compiled for iOS, error now when loading to the appstore

    I built a simple application using Flash Builder 4.6 and have successfully deployed to the Android Market (after testing on my own Android device).  I also took this same application and compiled for iOS and tested on my iPad.

    I then did the Release with the final 'Release for App Store Distribution' option in the release generation Wizard.  I have all the certificates supply correct in place and compiled the application in a .ipa file.

    At this point, you use a MAC, I ran the Application Loader utility to upload my app to itunesConnect portal to get it in the appstore.  I already went through the steps to enter metadata, pricing, and screenshots in itunes connect portal and just need to download it for review.

    When I download the .ipa file into the application loader, it gives me the following error:

    "iPhone/iPod Touch: contains executables of the application not supported architectures: arm.

    Anyone have any idea what this means and how I can fix this?  Any help is greatly appreciated!

    Thanks in advance!

    He solved.  Just add the following text in the tag for iPhone in my app descriptor XML file:

    UIRequiredDeviceCapabilities

    WiFi

    ARMv6

    ARMv7

  • Member not found when loading data with SQL

    Hello everyone:

    I created a cube map extract all information with SQL statements and it works perfectly. Now I'm trying to load data in the same way, but I can't.

    I created a view that returns data in this format:

    Dimension 1 < tab > axis 2 < tab > member... Member of dimension 5 < tab > measure 1 < tab > 2 < tab > measure 3

    I designed a new rule, indicating for each column in the dimension; and for each measure which specific member of dimension of accounts must be used. I have check and everything is ok, but when I try to load data, it does not work and tells me error:

    + "Data value [3.5] met before that all the selected Dimensions, [1] Records duly filled.
    + Essbase error unexpected 1003007 "+"

    If I get the names of the members with quotes (because they contain spaces, and it is perhaps the reason for the previous error, although the rule analysis correctly) with the SQL statement, when Essbase import, it deletes these quotes. I must use another symbol, and as a rule change this another symbol quotes. Is this normal? I know that this issue when importing formulas, but not here.

    Why in 'Dimension building' I don't have this problem with quotes?

    And when changing the symbols of quotes, this error occurs:

    + "Member x not found in the database" +. " But I check the Member and there are in general terms. What's wrong with that? »


    Thanks in advance

    Concerning

    Javier

    Published by: Javi M on 26-mar-2011 05:52

    Yes, the SQL files and data (of all kinds) are supported by more than one column of data. As you noted, you just point to the Member that represents the column.

    That said, I bet that if you look at your view/table and load the rule against your outline, I bet you find a dimension be mismapped, for example, you think that this column 4 points to the scenario, but you really repointe it produces and which purported to be the column 1, or you missed a dimension. Happens to me all the time.

    Kind regards

    Cameron Lackpour

  • Error message when loading downloaded presets

    I down loaded the amimated presets.  I'm not quite sure they are supposed to do, they do nothing when I double click. It's a whole other issue.

    I have 2 accounts log.  One of the newspaper accounts, user 1, I get an error message (see table), and they take in.

    The other account, user 2, let's get everything up without any errors.  I think it's because I've downloaded and installed under the user 2 - don't know if.

    How can I get these presets to be available for user 1?

    fasteners are error messages and where they are in the window user 2 presets

    Thank you

    Make a right click--> information. At the lower end, you can see your user authorization settings. Open the lock and add your current user with full privileges (read/write).

    Mylenium

Maybe you are looking for

  • Satellite U500 freeze after installing the Nvidia display driver

    I just did a clean install of Windows 7 Professional 64 bit on my machine and tried to install the drivers from the Toshiba site. However, after the installation of the driver and restarted, the l' ordinateur computer seems to be ok for a few seconds

  • Older version of iOS

    Hello I have an iPad iOS 5.1 can so I update my iOS 6.1.3 device (restore)? you always sign this version? Thanks for the replies :)

  • Problem Win7 HPE-150ff recovery with recovery disks

    Hi - I have a desktop HP HPE-150ff under Windows & Home Premium computer which had the HARD drive go bad.  Original is a 1 to Seagate - I bought a 2 TB Seagate ST2000101, 6 Gb/s, 7200 RPM HARD drive to replace it.  I removed the old drive and connect

  • Fuze MSC - Playlists

    All, After a lot of research about my problems, I found these steps very general, several times. However, they are busy. Steps to follow: Drag the files from the "rocket" in the Winamp playlist editor. Organize the selection as you wish. Save the pla

  • Network query

    I have an old windows vista machine, I want to set up on our local network as a file server, but do not have access to the internet. Is this possible?