Object null Runtime Error! Help!

Hi guys...

I am building a single AS3 project and got runtime error that says "cannot access a property or method of a null object reference."

Here is my code:

hand. ACE

public class videoMain extends Sprite {}

private var videoPlayer:Player;

public void videoMain () {}

loadPlayer()

loadProgress();

}

private function loadProgress (): void {}

the code below has given me a null object error...

var byteLoaded:Number = videoPlayer.videoBytesLoaded; problem code

var byteTotal:Number = videoPlayer.videoBytesTotal;  problem code

var percent: Number = Math.floor (byteLoaded/byteTotal) * 100;

    }

private function loadPlayer (): void {}

videoPlayer = new Player();

videoPlayer.createPlayer ();

}

}

Player.As

public function createPlayer (): void {}

_loader = new Loader();

_loader.contentLoaderInfo.addEventListener (Event.INIT, onLoaderInit);

_loader.load (new URLRequest (playerType));

}

public function get videoBytesLoaded (): number {}

return _Player.getVideoBytesLoaded ();  method in the api to YouTube

}

public function get videoBytesTotal (): number {}

return _Player.getVideoBytesTotal;    method in the api to YouTube

}

private void onLoaderInit(event:Event):void {}

_Player = _loader.content;

show only the part of the codes...

}

I appreciate all the help... Thank you!!!

Hi Jerry,

I'm not sure of what currently holds Player.as as it is a part of all of the code.

Checking out for a progress in the Player.as event and track event in main.as.

Now add the loadProgress() method to the addEventListener method to progress in main.as

Hope this helps

Best regards

Etienne Das

http://deepanjandas.WordPress.com/

Tags: Flex

Similar Questions

  • C++ Runtime Error help me solve this problem...

    I have tried every thing in the internet, and yet I can't find a solution for this error. I reinstalled windows, and yet, I get this error. Please help me to solve this error.

    Hi rachid,.

    We can help you further in the resolution of this run-time error.

    You can check the steps by Mohammad_Imran on Microsoft Visual C++ Runtime.

    You also have the opportunity to work on this further if recommendations do not work with Runtime Error Correction

    An update on the results.

  • Microsoft Visual C++ runtime Library runtime error help please

    I hope that someone will please help me with this, I can't use my Photoshop elements 9 and need!

    I found the instructions here ://helpx.adobe.com/photoshop-elements/kb/microsoft-c-runtime-error-launcing.htm http://http l

    and am running windows 7 Home premium.

    I want to try the instructions in the link above and my question is basically, am sure that, for most of you, but how I "navigate until" and where exactly I enter the path of the file so I can try this solution?

    I tried down on the start menu "search programs and files" and not come up with anything.  I also have to where my folder options displays the hidden files and folders, but am still not find C:\Program Data\Adobe\Photoshop Elements\9.0\Locale\en_us\

    If anyone can help me to learn at this point exactly how can I do to rename?

    Hi jo Mango,.

    Yes, I finally thought it out on mine (the technique how to dispose of anyway) and it's working now, thank God!

    Just follow the instructions here: http://helpx.adobe.com/photoshop-elements/kb/microsoft-c-runtime-error-launcing.html

    I had to type the file path in the address bar at the page.   Also if you can't find anything on your computer like that, go into your control panel and find the folder options and make sure that you have enabled to display the hidden files and folders.

    Hope that helps!

    This guy explains how pretty good http://mgxp.blogspot.com/2011/10/runtime-error-when-starting-photoshop.html

  • Course Photoshop 11. Suddenly cannot open the editor. Get 'Runtime Error' help!

    The race 11 Photoshop very well in recent weeks. Suddenly cannot open the editor. Get 'Runtime error' tried to open the Editor Welcome window and organizing thru, no difference. Organizer works very well. Windows 7, 64 bit. Help please!

    [transferred to Photoshop Forum]

    See if that helps (acting 9.0 to 11.0):

    http://helpx.Adobe.com/Photoshop-elements/KB/Microsoft-c-runtime-error-launcing.html

  • object on a simple object null reference

    Turn it on some of the projects currently working on.

    So I have this


    main.conductor.gotoAndStop (4);

    get the "#1009: cannot access a property or method of an object. null reference" error.

    Its scope, I think. the same framework and not at course time am damned a subject are right.

    frustrating it is like script101 of the action and can't make it work.

    Click the object on the stage that you think is key (to select).  take a screenshot showing the chronology, the object on stage and the properties panel.  Attach the screen shot here.

  • Runtime error 429 - component ActiveX cannot create object

    Hello

    We have a VB6 program running on a machine in our office - running Windows XP Professional. He worked until a few days ago, but now, we get the error:

    Runtime error 429 - component ActiveX cannot create object

    We had a problem with a recently VBA program that was due to an update of Microsoft (KB960715) security and I was wondering if a similar problem could be the cause? Please let me know if you need further details.

    Thank you very much
    Chris

    Hello Chris stammer,

    Thanks for posting on the Microsoft answers Forum.

    If the problem was caused by a windows update, I'll try to see if you can do a system restore and go back before the update has been applied to your system.  Click the number of the KB article and follow the steps in KB.

    306084 KB - how to restore Windows XP to a previous state

    I hope this helps.

    Sincerely,

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

  • Microsoft Visual C++ Runtime library Runtime error! Help!

    Whenever I did a right click on the desktop, or try to run any type of video game on my laptop this error message...

    "Microsoft Visual C++ Runtime Library

    Runtime error!

    Program: C:\WINDOWS\System32\rundll32.exe

    This application has requested the execution to terminate in an unusual way.
    For more information, contact the application support team"

    I googled this, and a few forums came up with a few suggestions. in particular, it was stated that something that was installed to start with windows is failiing, but I couldn't find which program is the cause of the error, and I'm not sure how to fix it.

    Hello AllieAdams,

    Thank you for posting.  I suggest that you check the support site for Nvidia to the latest video card drivers.  Video card manufacturers generally create new drivers every month with various bugfixes and improvements.
    There may be a newer driver appearing now which will solve the problem.  Find also a Nvidia Driver removal tool completely remove your current driver before installing the new.

    Please let me know if this helps you. Zack
    Engineer Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot open the file, I get the runtime error 429 ActiveV cannot create object

    I have sved a folder tax, but every time I try to open it, the runtime error 429 ActiveX cannot create... just until she made 3 times and tried all of the suggestions for correct... help!

    Finally, I contacted Vernisoft... signed up with them on top of a prior problem when I was hacked and they finally fixed it... after 3 hours.  In short, they have finally installed IE8 and the Run-time error notice disappeared and I was able to record and transmit my record.  No problem since so far.

  • Microsoft Jscript Runtime error - object does not support the action of line 12

    I get this error at startup on my laptop running Win 7. I have just respond ok and continue to work. How do I cure this?

    Hello

    Have you made changes on the computer before this problem?

    A runtime error is a software or hardware problem that prevents a program to function properly. Runtime errors could cause you to lose information in the file that you are using, causing errors in the file (corrupt the file) so that you cannot work with it, or prevent you from using a feature. Unlike stop errors, errors lead usually Windows or a program to stop working.

    See the following Microsoft article.

    What is a runtime error? http://Windows.Microsoft.com/en-in/Windows7/what-is-a-runtime-error

    I suggest you perform a clean boot and check if it helps.

    Clean boot will check if any third-party application is causing the problem, as the clean boot helps eliminate software conflicts.

    How to solve problems using the clean boot in Windows: http://support.microsoft.com/kb/929135

    Note: once the diagnosis has been made, make sure that you reset the computer as usual.

    Keep us updated on the status of the issue.

  • Runtime error! Can anyone help?

    On startup, I get the following error message: "runtime error program C:\Program Files (x86)\Logitech\Ereg\eReg.exe this application has requested the execution in an unusual way."  Please contact support team of the application for more information. "I have 3 logitech used on my computer, but no devices are defective.  The only one I used a drive put up with is the Webcam which I uninstalled and reinstalled but still message arrives. Can someone help me?

    Its the recall of Logitech registration process.

    Probably initiated the installation of their CD, review their software and see if theres an option to stop the reminder.

    And/or run msconfig, Startup tab, look for this process and deselect the option, reboot the PC accepting the warning msg.

  • Error: 1200416 formula to [staff] runtime error (line 0): impossible to assign [DOUBLE] objects of different length in the exercise of calcing the dimension to calculate the formula of Member

    Receive the below error message:

    Error: 1200416 formula for [AccountMemberName] (line 0) runtime error: could not assign [DOUBLE] objects of different length

    I added the following member formula to a dense account member name. {end: I created an account called S_BegBalance to contain the data for numbers codes.} For example, if S_BegBalance = 1, effective must be 1 for the whole year (January-December). If the balance S_Beg = 2, staff: Feb-district of Columbia, for S_BegBalance = 3, effective is Mar - Dec.

    Effective is a member (dense) S_BegBalance shop is also a dense Member store.

    [Please indicate why There getting worse this error? Can I take care of this with calc script only?]

    Aggregate and script to calc Calc the Member of the calc formula is:

    Fix ("FYxx", "script", "version")

    Fix (@LEVMBRS(Product,0), @LEVMBRS(Entities,0), @LEVMBRS(Region,0), @LEVMBRS(position,0))
    @DESCENDANTS ("AccountParentMember");
    ENDFIX

    DIM(Entities,Region,Position) CALC;

    ENDFIX

    Formula Member

    IF (@ISMBR ("Budget") AND @ISMBR ("1st Pass - Budget"))
    IF (@ISMBR ("FY14") AND ("S_BegBalance" == 1))
    @IDESC ("YearTotal") = "Downsizing" == 1;

    END IF

    IF (@ISMBR ("Budget") AND @ISMBR ("1st Pass - Budget"))
    IF (@ISMBR ("FY14") AND ("S_BegBalance" == 2))
    "Feb" = "Downsizing" == 1;
    'Mar' = 'Downsizing' == 1;
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    END IF

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 3))
    'Mar' = 'Downsizing' == 1;
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 4))
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 5))
    'May' = 'Membership' == 1;
    "Jun" = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 6))
    "Jun" = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 7))
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 8))
    "Aug" = "Downsizing" == 1;
    "Sep" = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 9))
    "Sep" = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 10))
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 11))
    "Nov" = "Downsizing" == 1;
    'Dec' = 'Membership' == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 12))
    'Dec' = 'Membership' == 1;

    ENDIF

    I edited the formula to find out where is the error?

    IF (@ISMBR ("Budget") AND ("S_BegBalance" == 1) AND @ISMBR ("1st Pass - Budget") AND @ISMBR ("FY14"))
    @IDESC ("YearTotal") = "Downsizing" == 1;

    ENDIF

    IF (@ISMBR ("Budget") AND ("S_BegBalance" == 2) AND @ISMBR ("1st Pass - Budget") AND @ISMBR ("FY14"))
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;
    "Feb" = "Downsizing" == 1;
    'Mar' = 'Downsizing' == 1;

    ENDIF

    7e3ca589-4260-401d-ba03-77f60bdde99e wrote:

    I added the following member formula to a dense account member name. {end: I created an account called S_BegBalance to contain the data for numbers codes.} For example, if S_BegBalance = 1, effective must be 1 for the whole year (January-December). If the balance S_Beg = 2, staff: Feb-district of Columbia, for S_BegBalance = 3, effective is Mar - Dec.

    Effective is a member (dense) S_BegBalance shop is also a dense Member store.

    Assuming you enter value to BegBalance during Sun, we can write something like this:

    FIX (& VarYear, & VarScenario, & VarVersion)

    Fix (@LEVMBRS(Product,0), @LEVMBRS(Entities,0), @LEVMBRS(Region,0), @LEVMBRS(position,0))

    FIX(JAN:DEC)

    "Workforce".

    (

    IF ("BegBalance"-> "S_BegBalance" == 1))
    1;

    ENDIF

    )

    ENDFIX

    FIX(FEB:DEC)

    "Workforce".

    (

    IF ('BegBalance'-> 'S_BegBalance' == 2))
    1;

    ENDIF

    )

    ENDFIX

    FIX(MAR:DEC)

    "Workforce".

    (

    IF ('BegBalance'-> 'S_BegBalance' == 3))
    1;

    ENDIF

    )

    ENDFIX

    ENDFIX

    ENDFIX

    There may be many other ways of writing this is an optimized way!

  • Adobe Acrobat 9.0 Pro hangs at startup: runtime error - please help

    I have CS4 from Adobe installed on my Windows 7 PC. In addition, I have Adobe Reader XI and InDesign installed 6. If I remember correctly, after that I installed Adobe Reader XI, I uninstalled the version of the player that came with CS4.

    So here's my problem: when I try to download a PDF file that was sent to me in an email or open one that already exists on my computer, in this case:

    Runtime error!

    Program: C...

    The application requested execution to terminate in an unusual way.

    When I click OK, I get this:

    Adobe Acrobat 9.0 has stopped working.

    If I try Adobe Acrobat 9.0 Pro in my Start menu, the same thing happens.

    It makes no sense for me because

    1. I don't have the knowledge to understand this. I don't know what is the duration.
    2. Before a computer collapse a few months ago and a complete reinstallation of everything that these programs all works beautifully.
    3. I do not understand why, when I try to open a PDF file by e-mail, they open automatically in Adobe Reader XI rather than Adobe Acrobat. The general idea that people is not being in a position open and view PDFs sent, of which they were sent, which is what the reader is for and generally do not change them, that's what Adobe Acrobat is for?
    4. If, instead of trying to open the PDF files by e-mail, I save them on my computer, I can launch Adobe Reader XI and open within the program without any problem. It's OK, if I just need to view the PDF file, but I have to be able to edit a PDF file also, so I need to get Adobe Acrobat 9.0 to work.

    Relocation of Adobe Acrobat 9.0 Pro help? Is it possible to reinstall only from the program installation diskettes or have to reinstall CS4 entirely?

    I can't open Adobe Acrobat 9.0 at all, for all the solutions that must be made when the program is opened are not possible.

    I would really appreciate the help.

    SOLVED!

    Reset Internet Explorer did not work, reinstall Acrobat 9.0 Pro didn't work, but change a fact registry key.

    Here is where I found the solution:

    Error Microsoft Visual C++ Runtime Library, opening files PDF - Microsoft Community

    Here is the message in question, but until you try it, read my post below:

    Hello

    This is known problem with Acrobat for several versions now, current fix from Adobe is just to update their software: http://kb2.adobe.com/cps/404/kb404597.html

    The problem is with the data of application given erroneous instructions.

    "The affected user has a folder Application Data redirected and so the path to the network that contains the Application data uses a UNC path that begins with \. "This UNC path causes Acrobat 9.0 and Adobe Reader 9.0 incorrectly analyzes the Application data path and give the error message.

    A possible Solution would be to go into the registry. Left click type 'regedit' and right-click and run the program with "run as Administrator". Go to Hkey_Current_User\Software\Microsoft\Windows\Current Version\Explorer\User Shell Folders and make sure see where pointing "AppData". If it is oriented towards 'data %UserProfile%/Application' change it to point to '% UserProfile%/AppData/Roaming '.

    BUT, be careful of one thing: this poster seems to have used accidentally oblique when he should have used backslashes. Look at the last line of his post where he advises ' if it points to "%UserProfile%/Application Data" change to point to '% UserProfile%/AppData/Roaming'. '. You can find, or at least I did, that this key has a backslash, not a slash, so change what I found: "%UserProfile%\Application Data" "% UserProfile%\AppData\Roaming" worked and now Acrobat 9.0 works very well.

  • Runtime error still CS5 & blocks - HELP!

    Hello world

    I installed Encore CS5 with first Pro CS5 and used successfully to burn a DVD. Today, however, when I finish the tab new project with the name and location/project settings and click OK, there is a break of about 3 seconds, then a box pop up:

    Runtime error! Program: C:\.

    This application has requested the execution to end am unusual way.

    For more information, contact the application support team.

    I looked through forums, etc. and the only possible solution was to turn off DLA, but I don't see how to do this in Windows 7.

    If anyone can help, I would be more grateful, that I do not see why I was able to burn a DVD without this problem the last time.

    Thank you!

    Hello

    After many exhausting hours, of a similar problem, I have solved this problem.

    My problem exactly;

    I had CS4 Master Suite installed on a Machine Windows 7 64 with motherboard Asus P6T 12 GB, i7 RAM 1 GB GC 2xGTX285.

    I do not uninstall CS4 before installing the entire suite CS5.

    After that I installed CS5, I got the same run-time error at startup of the program on AF/still/PremierePro.

    Dynamic Link Manager error on startup also with only these programs, "dynamiclinkmanger has stopped working".

    How I fixed it:


    I completely removed the CS4 pragrams and features in the Control Panel, then restarted.


    I then used the removal tool from adobe CS4 on the adobe site and rebooted.


    I then uninstalled 3 programs send me errors via the Control Panel programs and features.


    I rebooted and installed the 3 programs through the original installation file/disc.

    Has not restarted, just ran the programs. All worked perectly without error.

    Dynamic link now works correctly also.

    Hope this helps, there is little info on this fix, as you already know.

  • Tried the FAQ help still getting a runtime error, server with a Web site error

    I tried several times to go on texags.com forums that I have in the past, but get the following message.

    In the Application Server error ' / '.
    Runtime error
    Description: An application error occurred on the server. The current settings of error customized for this application prevent the details of the error in the application being viewed remotely (for security reasons). It could, however, be read by browsers running on the local server computer.

    Details: To enable the details of this error message specific either visible on remote machines, please create a < customErrors > tag in a "web.config" configuration file located in the root directory of the current web application. The < customErrors > tag should have its attribute of 'mode' on 'Off '.

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>

    Note: The current error page, you see may be replaced by a custom error page by modifying the "defaultRedirect" of an application < customErrors > attribute tag configuration to point to a custom error page URL.

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>

    Other people on the forum using firefox without problems and I did in the past. I'm moving to Chrome, but it is a huge block for me. I checked the updates and erased the history and cache as suggested in the FAQ. Any advice?

    Thank you. I tried only the part about the deletion of my story. Supposedly to forget this site or adjust my cookies solved the problem.

  • I get a runtime error microsoft cc please help me. I can't open some of my applications

    trying to open adobe photoshop on a family edition of microsoft vista and I get a runtime error

    Hello

    1. What is the exact error that you receive when you try to open the programs?

    2. does this problem only occurs when you try to open Adobe Photoshop or occurs with other programs as well?

    3 did you changes to the computer before the show?

    Method 1: Start your computer in a clean boot to and then try to open the program to check whether a third-party program is causing the problem. To configure your computer to clean boot see the following link.

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

    Note: when you are finished troubleshooting, follow step 7 article to start on normal startup.

    Method 2: Follow the troubleshooting steps in the following articles and check if the problem persists.

    http://kb2.Adobe.com/CPS/895/cpsid_89519.html

    http://kb2.Adobe.com/CPS/403/kb403090.html

Maybe you are looking for

  • Upgrading the video graphics card - HPE-180 t

    I need to upgrade the video card in my HP Elite HPE-180 t. My PC came with ATI Radeon HD 5450 graphics card and the standard power 460 watt. I intend to switch to NVIDIA GTX 650 it, model 2 GB. I do a lot of editing video and need a video card that h

  • HP Officejet Pro L7590 problems with new software

    Hello I have a HP all-in-one OfficeJet Pro L7590.  I had to move the printer on another computer that is running Windows 7. When I install and try to print to the printer does not act as he did with the software that was on the old computer XP. What

  • How can you add a sound event when a laptop gets 100% charged?

    I have Windows Vista on my laptop. I heard that you can create sort of sound events when opening and closing files, so I was wondering if there is a way to create a sound event when a laptop is in charge or is fully charged. I would be very happy to

  • FMC 6.1 upgrade break my FTP

    Hello I have made a transition from my virtual FMC of 5.4 to 6.1 but kept 5.4.x on my power of fire ASA for a while. Nothing has changed in the rule set while I improved from 5.4 to 6.1, but the next day I applied the config of 6.1 to my modules of f

  • How can I change the eyes of pets in the Gallery of windows?

    How can I remove the white animal eyes in windows media?