A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: controlling Movie Clips _alpha

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    17

    controlling Movie Clips _alpha

    HI,

    Flash MX.
    I have a Flash project with a MovieClip with a glowing icon on rollover.

    "air " is the name of the instance in the main timeline. There is a clip inside "air" (named "airCH") that actually fades in and out.

    I'm using this to get it to Glow. This script lives on maintimeline - frame 1.

    air.onrollover = function() {
    this.gotoAndPlay("fadeIn")
    }

    and this to get it to fade

    air.onrollover = function() {
    this.gotoAndPlay("fadeOut")
    }

    There is a frame in the main Timline that I want to "stop" bring the _alpha up full.

    Can you please help me understand how to do this? I've tried attaching this to the "air" clip at this frame.

    onClipEvent (enterframe){
    air.airCH.gotoandplay("fadeIn")
    }

    to no avail...

    Many Thanks

    Mindy

  2. #2
    Young Senior Member mayhem_sci's Avatar
    Join Date
    Jun 2002
    Location
    Singapore
    Posts
    282
    just put:

    air.airCH.gotoandplay("fadeIn");

    in the frame on the main timeline where u want this to happen.

  3. #3
    Junior Member
    Join Date
    Dec 2002
    Posts
    17
    Thanks mayhem..


    I was so overthinking it...duh.

    Mindy

    Hey, How come it is so hard (for me) to address a clip by its instance name. The clip in question was "air_mc"
    When I named it "air" in the properties window - no problem - but i can't seem to address it as "air_mc" (instance name)

    air.gotoandplay("fadeIn") - works great (my name of instance in properties window)

    air_mc.gotoandplay("fadeIn") - doesn't (actual clip instance name)


    ????

  4. #4
    Young Senior Member mayhem_sci's Avatar
    Join Date
    Jun 2002
    Location
    Singapore
    Posts
    282
    dunno, both work on my comp. flash isnt exactly the most rational program there is ...

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