A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: [RESOLVED] tweening problem

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    San Jose California
    Posts
    144
    Quote Originally Posted by Jbard View Post
    ok this is really wierd, i just added the trace values and they would always appear as the correct number and everything would work fine, then i tried in my swf and i would still get the error. so i added two text fields which displayed the stagew and stageh properties and i havent got the error in my swf. then i took the text fields away and got the error straight away. i dont know how these text fields could stop the error but they appear to be doing so.
    It's possible the order of execution is screwing things up. The text fields may offset that. How did the setTimeout() work?

  2. #2
    rabid_Delineator AttackRabbit's Avatar
    Join Date
    Dec 2003
    Location
    Orlando, Florida
    Posts
    481
    its definitely an order of operations thing. I wouldnt be surprised if your two vars , stagew and stageh , do not have values yet , at the time in which your timer starts. You are declaring them way down into your code. Try declaring and instantiating them as the very first thing you do.

  3. #3
    Member
    Join Date
    Jun 2009
    Posts
    75

    Wink

    Yes i declared my variables at the top of my code and added a settimeout function and everything seems to be working fine.
    Thank you very much for all your help i really appreciate it

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center