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.

Tags: Adobe Animate

Similar Questions

  • Problem with DVD player and get the error code 19 Device Manager

    Original title: TSSTcorp CDDVDW SH - 224DB ATA device

    Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged. (Code 19)

    How to fix it please Message Please please how to fix it

    Hi Emerald,

    Please contact Microsoft Community. I understand that you have a problem with the CD\DVD drive and get the error code 19 Device Manager. I've surely you will help solve this problem.

    To better understand the issue, I would like to know if you have any recent software or hardware on the computer changes before this problem?

    This problem might have occurred because of these reasons:

    1. Install or uninstall the CD or DVD recording programs.
    2. Uninstall Microsoft Digital Image.

    Try the steps listed here and see if it helps:

    I suggest you try the procedure described in article which will correct corrupted registry entries. Check if it helps.

    Your CD-ROM or DVD drive is not recognized by Windows or other programs
    http://support.Microsoft.com/kb/314060/en-us

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information on how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

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

  • Two days ago, I downloaded Adobe Acrobat update for mac desktop. It is registered with Adobe and watch on my account, such as registered. I try to open and get the error message "you are not connected to the internet or your clock is wrong" are all two in

    Two days ago, I downloaded Adobe Acrobat update for mac desktop. It is registered with Adobe and watch on my account, such as registered. I try to open and get the error message "you are not connected to the internet or your clock is wrong" are all two inaccurate statements. I GET NOTHING BUT NOTHING ADOBE 'SUPPORT '.  How can I get just the program open and running?

    Check your hosts file.

    help for that and other adobe.com sure common connection problems read, http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Why, when I try to send or to send an email with an attachment I get the error message "Attachment Id has wrong format"... ?

    Hi AndyHolman,

    ·         What email program are you using?

    ·         What is the attachment file extension?

    Try to remove your automatic signature in your mail and see if it solves the problem.

    Please provide us with some information so that we can help you solve the problem.

    You can also contact you Email Service Provider (ESP) for assistance on the issue.

  • Windows XP trying to update and get the error: another installtion progresses.

    original title: Windows XP, try to update and get the error: another installtion progresses.   That all before you proceed with this installation. How can I know what is the installation and the status?

    Windows XP trying to update and get the error: "another installtion progresses.   That completes before proceeding with this installation. "How can I know what is the installation and the status?

    Hello

    1. are you referring to Windows update?
    2 have you made changes on the computer before this problem?

    Please answer these questions and to provide more specific information on the issue. This could help us help you better.

    You can check the question in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    a. click Startand then click run.
    b. type msconfigand click OK.

    The System Configuration Utility dialog box appears.

    c. click on the general tab, click Normal Startup - load all device drivers and services and then click OK.
    d. When you are prompted, click on restart to restart the computer.

  • installed Acrobat DC and get the error indicating the serial number is valid but cannot find any product calling on my computer

    installed Acrobat DC and get the error indicating the serial number is valid but cannot find any product calling on my computer

    As indicated, with an upgrade (apparently what you bought) you will get a request for both the new S/N in the old S/N - assuming that a qualifying product is not installed).

  • I'm having a problem at the opening of the pdf document.  I get the error message: 'Adobe Reader has stopped working ".

    I'm having a problem at the opening of the pdf document.  I get the error message: "Adobe Reader has stopped working" then I get Windows to search online for a solution, but then my document is closed. I tried to uninstall and reinstall Adobe Reader XI, restarted my computer, but it did not help.  I get the same message. What should do?

    Can you open Reader by itself?  If so, check that disable the Protected Mode improves the situation [Edit |] Preferences | (Improved) security].

  • KB2656374 update failed to install and get the error code 80070020

    Try to install update KB2656374 and get the error code 80070020. How can I fix this please?

    Hello

    1. who is the antivirus installed on the computer program?

    2 have you made any changes to the computer before the show?

     
     

    Perform the steps described in the article:

    You receive error 0 x 80070020 when you use the Windows Update Web site or the Microsoft Update Web site to install the updates

    http://support.Microsoft.com/kb/883825

     
    WARNING: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
     
     

    I hope this helps.

  • I am trying to download itunes 10.2 and get the error message HRESULT:Ox8007054F.

    I can't itunes!

    I am trying to download itunes 10.2 and get the error message HRESULT:Ox8007054F. ITunes will not download. How can I fix it? I have vista 32 bit. I saw a similar question which has not offered any help. PLEASE SOMEONE HELP ME!

    Hello

    Follow the information from apple to the link below

    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7

    http://support.Apple.com/kb/HT1923

    and or ask for their support of itunes

    http://www.Apple.com/support/iTunes/

    Also try the discussions of apple itunes

    http://discussions.Apple.com/category.jspa?categoryID=149

  • try to reinstall ps8 and get the error: 150:30, help?

    I am trying to reinstall photoshop 8 and get the error: 150:30 saying that the licensing for this product has stopped working. I tried to restart my Mac just as says it the error message resolve the problems, but not luck. Ideas?

    Stephanie, please see: error "Licensing has stopped working". Mac OS

    I hope this helps.

  • Try installing Adobe Indesign CS5.5 on a new computer and get the error message "setup initialization failed.  Please download Adobe Support Advisor to detect the problem.    Adobe support advisor is is no longer available.  What should I do now?

    Try installing Adobe Indesign CS5.5 on a new computer and get the error message "setup initialization failed.  Please download Adobe Support Advisor to detect the problem.    Adobe support advisor is is no longer available.  What should I do now?

    Installer [CS5.5] initialization failed. Please download Adobe Support Advisor to detect the problem.

  • Tried to access the programs and get the error: message 16. What is the problem? Help, please!

    Tried to access the programs and get the error: message 16. What is the problem? Help, please! Photoshop, photoshop elements, Dreamweaver - none of my creative Cloud applications will be commissioning, since my last update. I need to access these programs for the job, I'm trying.

    Hi wdriver,

    It seems that for some unknown reason the authorization in the licensing folder is deleted. Please try to start one of the applications by right click and select run as administrator, it should solve the problem by doing this.

    Please let us know if it helps.

    Kind regards

    Abhijit

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

  • Try to use casStubs.jar classes and get the parameters of the analysis

    I went into class files available in casStubs.jar and was trying to come up with a script in the AppConfig.xml to connect to the CAS server and get the State of analysis and measures. I tried this option because the com.endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent class gives me these features.

    + < id script = "CheckCrawlStatus" > +.
    + < bean-shell-script > <! [CDATA [+]

    Import javax.xml.namespace.QName;
    com.endeca.cas.wsdl import. *;


    final String wsdlUrl = "http://" "${cas.host} '+': ' + ' ${cas.port} ' + ' / case? WSDL "; +
    final name of QName = new QName ("http://endeca.com/itl/cas/2010-07", "CasCrawlerService");
    CasCrawlerServiceLocator service = new CasCrawlerServiceLocator (wsdlUrl, name);
    CasCrawler robot = service.getCasCrawlerPort ();

    String crawlName = "myFirstCrawl";
    CrawlId crawlId = new CrawlId (crawlName);

    Metric [] metricArray = crawler.getMetrics (crawlId);
    + / / rest of the code to retrieve the crawl settings.

    +] > < / bean-shell-script > +.
    + < /script > +.

    Unfortunately, I still get connection refused to exception: ' java.net.ConnectException: connection refused ". My wsdl case load properly in my browser.
    Any ideas on gaps in the code or the missing configuration in the CASE or DT or platformservices?

    Thank you
    Dev

    Try to explicitly set endpoint to service before obtaining the port. So, if you connect to localhost:8500:

    service.setCasCrawlerPortEndpointAddress ("http://localhost:8500/AR"); ")

    You can substitute your host/port settings. This call is normally done through the box tool component wrappers, but since you are directly using the stubs of service, you will need to set the end point. Without this, the stubs use a test port that do not match your.

    Best
    Brett

Maybe you are looking for

  • L7680 4 in 1 printing of the colored lines problem

    My L7680 print incorrectly colored lines.  Seems to be most of the lines with a red component.  A 8 x 10 color photograph prints quite correctly.  All the diagnostic tools, clean/align/etc. also print correctly. All ink cartridges are full, but I not

  • How do I know what SSD is compatible with the A740?

    I want to upgrade my hard drive but do not know what is compatible? I'm looking at the:

  • BOOTMGR image is corrupt. The system cannot start.

    Toshiba Satellite L355: MODEL No.: PSLD0U-00800 X Start the computer, a black screen with the wording of the "BOOTMGR image is corrupted.  The system cannot start. » Use the Applications/drivers, satellite L350 series windows vista Home Premium 32 -

  • P3015 dn: Code error F10

    My printer will be work fine for several print, then out of the Blue work give me an F10 error code and not print. The print job does not yet show upward in the queue. Sometimes, putting off the printer and restore printing, sometimes is not. Can som

  • lable damaged

    Hello. my name is Traian and I have a problem... at least the half of it! (joke)my license tag is damaged... I bought a dell inspiron 1520 and it came with vista home premium.the good side is that I have the cd that came with it and is left unattende