Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2008
    Posts
    697
    Thanks
    8
    Thanked 17 Times in 16 Posts

    Preloader error: access of undefined...

    Hello, I am currently having some trouble.

    I am getting these errors when I try to play my flash thing I made:



    These are errors from a pre-loader I am trying to add with dynamic text saying "Loading Config - 50%" The percentage changes.

    The text has the instance name: loadText

    Also, in the background a rectangle fills up, something like this:



    The background half loaded filled red rectangle has the instance name: loadBar

    And it seems to not be working, this is the actionscript 3 I have on the first frame:

    Code:
    bytes_loaded = Math.round(this.getBytesLoaded());
    bytes_total = Math.round(this.getBytesTotal());
    getPercent = bytes_loaded / bytes_total;
    this.loadBar._width = getPercent * 100;
    this.loadText = "Loading Config2 - " + Math.round(getPercent * 100) + "%";
    if (bytes_loaded == bytes_total)
    {
        this.gotoAndPlay(3);
    } // end if

    If anyone needs the FLA source to make it work, I will be able to give it to you. You may not even need it to make it work.
    MY MSN: Sith717@Hotmail.com
    PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
    PM me anytime for HTML, PHP or web design help. I will be glad to help you out.

  • #2
    Regular Coder
    Join Date
    Nov 2009
    Location
    Scotland / Glasgow
    Posts
    184
    Thanks
    1
    Thanked 19 Times in 19 Posts
    If you set the AS version to '2' then it will work fine.
    .:To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Glasgow Flasher

  • #3
    Regular Coder
    Join Date
    Sep 2008
    Posts
    697
    Thanks
    8
    Thanked 17 Times in 16 Posts
    The rest of my coding is in as3...

    Can someone show me how i can convert this coding to as3 or post a converted version of
    it.

    Thank You.
    MY MSN: Sith717@Hotmail.com
    PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
    PM me anytime for HTML, PHP or web design help. I will be glad to help you out.

  • #4
    Regular Coder
    Join Date
    Nov 2009
    Location
    Scotland / Glasgow
    Posts
    184
    Thanks
    1
    Thanked 19 Times in 19 Posts
    .:To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Glasgow Flasher


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •