A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: ==Very Complicated Arrays==

  1. #1
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881

    Question

    A Question for You Mad-Sci,Rosie and everyone else!!

    I Have The Following Code Inside A Movieclip And I Want To Set These Variables On The Main timeline I Know That /: Will Set A Variable On The Main Timeline But When I Try And Concatenate It Or Add It To the Front Of The Expressions it doesnt work any ideas??

    Set Variable: my_name(string) - _name(expression)
    Set Variable: my_name & "_hwidth" (expression)= (GetProperty ("", _width) / 2)(expression)
    Set Variable: my_name & "_hheight" (expression)= (GetProperty ("", _height) / 2)(expression)
    set variable: i (string)= 1(expression)
    Set Variable: my_name & "_x1"(expression) = GetProperty ( "", _x ) - my_name & "_hwidth"(expression)
    Set Variable: my_name & "_x2" (expression)= GetProperty ( "", _x ) + my_name & "_hwidth"(expression)
    Set Variable: my_name & "_y1"(expression) = GetProperty ( "", _y ) - my_name & "_hheight"(expression)
    Set Variable: my_name & "_y2" (expression)= GetProperty ( "", _y ) + my_name & "_hheight"(expression)
    set variable: i (string)=i + 1(expression)


    This Will Create An Array!! Its For A New Game That me And Jyndas Are Creating And Its Almost Done Apart From This

    I Have Tried The Following And They Dont Work:

    Set Variable: my_name(string) - _name(expression)
    Set Variable: "/:" & my_name & "_hwidth" (expression)= (GetProperty ("", _width) / 2)(expression)
    Set Variable: "/:" & my_name & "_hheight" (expression)= (GetProperty ("", _height) / 2)(expression)
    Set Variable: "/:" & my_name & "_x1"(expression) = GetProperty ( "", _x ) - "/:" & my_name & "_hwidth"(expression)
    Set Variable: "/:" & my_name & "_x2" (expression)= GetProperty ( "", _x ) + "/:" & my_name & "_hwidth"(expression)
    Set Variable: "/:" & my_name & "_y1"(expression) = GetProperty ( "", _y ) - "/:" & my_name & "_hheight"(expression)
    Set Variable: "/:" & my_name & "_y2" (expression)= GetProperty ( "", _y ) + "/:" & my_name & "_hheight"(expression)

    Also:

    Set Variable: my_name(string) - _name(expression)
    Set Variable: /:my_name & "_hwidth" (expression)= (GetProperty ("", _width) / 2)(expression)
    Set Variable: /:my_name & "_hheight" (expression)= (GetProperty ("", _height) / 2)(expression)
    Set Variable: /:my_name & "_x1"(expression) = GetProperty ( "", _x ) - /:my_name & "_hwidth"(expression)
    Set Variable: /:my_name & "_x2" (expression)= GetProperty ( "", _x ) + /:my_name & "_hwidth"(expression)
    Set Variable: /:my_name & "_y1"(expression) = GetProperty ( "", _y ) - /:my_name & "_hheight"(expression)
    Set Variable: /:my_name & "_y2" (expression)= GetProperty ( "", _y ) + /:my_name & "_hheight"(expression)

    I Help Everyone Else All The Time, Now Its Your Turn For Once!!


  2. #2
    Member
    Join Date
    May 2000
    Posts
    47
    OK, when u put anything in quotes, it generally becomes a literal, is that right? If u put /: my_var, does it need a concatonator at all or does it work like a gt path? Do concatonations allow spaces between characters?

    Set Variable: /:my_name&"_y2"&(expression) = whatever...

    Trace (my_name&"_y2"&expression)

    dunno what u r trying here, but it is a bit tough for me and [freak]

    Hey, how 'bout that racer u said u could help me with?
    If this helps [i hope it does] can u help me?

  3. #3
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    Yes They Do But I have Sorted my problem now

    It Goes "_level0:" & "my_name" & i & "output"

  4. #4
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Hey FlashG, now lets the game begin ? were is it ?
    Links.......Links......Linx.
    Post the game for killer critix. he he
    mad-sci

  5. #5
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    Its A Secret mad-Sci I Will Tell When The Game Is In A Fit State For Viewing And Critics!!

  6. #6
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Cmon man send me a copy of that pls. I maight help a bit and get in credits section.he he he
    mad-sci

  7. #7
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    No Probs Mate Ill Send It To You As Soon As Its Feasible!!!

  8. #8
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    cool buddy whanna help with something am serious this time ?
    Mad-Sci

  9. #9
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    Yes Sure!!

  10. #10
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    talk to me

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