A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: setting a movies alpha with AS in relation to timeline

  1. #1
    Matt
    Join Date
    Aug 2005
    Location
    New Zealand
    Posts
    52

    setting a movies alpha with AS in relation to timeline

    Hey guys!
    I have a queston about setting the alpha on a specific movie clip when the timeline hits a certain frame.
    Basically thats what i need to know in a nutshell.
    so yeah, for example, when my timeline hits frame 200 i want my movie to have its alpha set to 100 from like 50, which is already set.
    If anyone has a clue on how i can get this i would be super stoked!
    thanks alot for any help!

  2. #2
    Knows where you live
    Join Date
    Oct 2004
    Posts
    944
    on frame 200 put
    _root.movieClip._alpha = 50;
    You will have to change movieClip to the movie clips name and possibly change the path.
    The greatest pleasure in life is doing what people say you cannot do.
    - Walter Bagehot
    The height of cleverness is to be able to conceal it.
    - Francois de La Rochefoucauld

  3. #3
    Matt
    Join Date
    Aug 2005
    Location
    New Zealand
    Posts
    52

    still does not work???

    Hey!
    thanks alot for the reply
    this is what i thought it would be but for some unknown reason it does not work this is what i have on frame 200

    _root.imageClip.imageMov.mov2._alpha = 100;

    I have this action inside imageClip's timeline and the movie it is effecting is mov2, so the action is not on the root timeline.
    i get no errors or anything like that, it just straight up does nothing when it hits frame 200.
    I have made sure all my instance names are exact, i am stuck???
    haha any more ideas? anyone?

  4. #4
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    Check this example using your explanation (action will occur on frame 30 for convenience)....
    Attached Files Attached Files

  5. #5
    Matt
    Join Date
    Aug 2005
    Location
    New Zealand
    Posts
    52
    Hey hum
    thanks alot for throwing together the small example, this is exactly what i have and it is just not working in my .fla???
    the only thing different is that my movie instance imageMov is inside a mask...but that does not matter...so i am totally stumped with this one, i have gone over my instance names perfectly and it is alll good...is it a bug you think?
    thanks again for your help and effort!

  6. #6
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    If you post your FLA i can take a look if you like.....

  7. #7
    Matt
    Join Date
    Aug 2005
    Location
    New Zealand
    Posts
    52

    Fla here

    Hey Man
    Thanks for the continued help
    you can have download my FLA from this link

    www.arterrastudios.com/matt/main.fla

    thanks alot man
    You will see on the main stage near the center the movieclip with the instance name imageClip and from there you will be able to see whats going on.
    on frame 200 is the action to change the alpha of the selected movieclip.
    Thanks alot again man!

  8. #8
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    Ok...i see the problem...
    Go into the imageClip so you can see the three layers..
    ACTIONS
    Layer2 = mask
    Layer 1
    ...............
    On layer1 .....go through clicking each of its keyframes then selecting the imageMov movieclip on the stage....
    You will notice that on some of the keyframes the imageMov clip has no instance name in the properties panel......so this is your problem....make sure the clip is named
    in all of the keyframes......TIP:Give a clip an instance name before tweening or copy and pasting frames to avoid this.

  9. #9
    Matt
    Join Date
    Aug 2005
    Location
    New Zealand
    Posts
    52
    dude, hum
    Thanks alot! such a simple problem, just took another eye!!!
    i really appreciate the continued help on this!
    you rule!
    take it easy buddy!

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