A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: onClipEvent(load) question

  1. #1
    Senior Member TheLostGuru's Avatar
    Join Date
    Aug 2004
    Location
    I live on this webpage...
    Posts
    784

    onClipEvent(load) question

    This is a really simple question, but I can't get my code to work and I am wondering if this is why. Is it possible to have "if" statements within an onClipEvent(load)?
    "If I have seen further it is by standing on the shoulders of giants." Isaac Newton
    ------------------------------------------------------------------------------

  2. #2
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    if you want to check a variable within that object or MC but generated it dynamicly, did you used this.myVariable for variable names?

  3. #3
    Senior Member TheLostGuru's Avatar
    Join Date
    Aug 2004
    Location
    I live on this webpage...
    Posts
    784
    When a movieclip loads, I want it to get a variable and then display it in a dynamic text box, but it needs to check to see if the variable is a certain number and if it is, then it shouldn't display the number but instead should display an arrow.

    Another question, I'm using chr(Key.getCode()), but it gives me "a" "b" "c" and "e" for the number pads 1, 2, 3 , 5 respectively. Is there any way for "chr" to return the numbers 1, 2, 3, and 5?
    "If I have seen further it is by standing on the shoulders of giants." Isaac Newton
    ------------------------------------------------------------------------------

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