dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: setProperty

Hybrid View

  1. #1
    ...
    Join Date
    Jun 2002
    Location
    MEXICO
    Posts
    88

    setProperty

    hi,

    i want to change the alpha of a symbol from outside the clip it is in. I thought the following script would work, but it doens't. Any suggestions?


    on (release) {
    setProperty("fills", _alpha,"95%");
    }


    "fills" is the instance name of a movie clip that is inside a clip, The buttons are on the main stage.

    Thanks,

    pjustice

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    If the movie clip with the instance name fills is inside another movie clip, it's target path should be some_mc.fills. For more details read understanding target paths.
    code:

    setProperty(some_mc.fills, _alpha,95); // not 95%


    And as you're using MX, you should use dot notation instead of the deprecated setProperty():
    code:

    some_mc.fills._alpha = 95;


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