A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: need a hand

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Philly/NJ
    Posts
    6

    need a hand

    OK, I need code to set a variable to the numerical _xscale of an instance. Any and all help is appreciated.
    ...I have a mc who's x scale changes. I want to set a varible that is equal to the number value of the mc's current x scale
    Last edited by docshapiro; 11-29-2002 at 03:56 AM.

  2. #2
    I'm dope. Psytrix's Avatar
    Join Date
    Aug 2002
    Location
    Slidell, LA
    Posts
    309
    i could help you, but i may be legally retarded so you may have to ask the question in a more clear manner.

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Location
    Philly/NJ
    Posts
    6
    ..edited...better?

  4. #4
    ism BlinkOk's Avatar
    Join Date
    Aug 2001
    Location
    , location, location
    Posts
    5,002
    myVar = _root.instanceName._xscale;
    where myVar is the variable that will store the _xscale of the move names instanceName.
    why do you want to put it in a variable when you can access it anytime by referencing _root.instanceName._xscale?
    hope this helps
    BlinkOk
    Graphics Attract, Motion Engages, Gameplay Addicts
    XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro

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