Navigation/movie clip help needed

I have a portfolio page which has a list to the left and is
blank to the right. I'd like to have the user rollover the name in
the list and have an image fade in on the blank area to the right.
Then, on release I'd like them to go to that particular item's page
(swf). Can someone help me out with the actionscript needed for
this...I'm still working on transitioning from all timeline to
actionscript. Would a simple on hover script follwed by a on
release script work or will it get more complicated with x and y
coordinates?
Thanks.

You need to build each of the animations as separate movieclips that have their own timelines that they move across the stage in.  You control them by giving them instance names and telling them to stop() or play() as desired.  For example, one button could command...
mc1.stop();
mc2.play();
Where mc1 and mc2 are whatever instance names you assign.
So you can have the animations occupying one frame of your main timeline, and the 10 frames they animate in are within the individual movieclip of each.

Similar Messages

  • Navigating movie clips

    Hi. I've basically been copying code from a series of tutorials, and now I've hit a wall because the series doesn't cover this part, and I'm certainly no expert at ActionScript.
    Basically, I'm trying to handle all the navigation with movieclips instead of moving around on the timeline. What Im trying to achieve is to have a main 'page' with a couple navigation buttons. One of them (cartoonButton) would open a movieclip called cartoonBG, which is a 15 frame alpha fade-up that would end with a frame with buttons for opening cartoons (right now, there's only one cartoon, but eventually there will be more).
    The problem is, as soon as the file opens, it goes into a loop, playing the cartoonBG movie clip over and over. So, I guess I need to know how to make it so that the frame is still when the clip opens, and then I can do an onRelease for cartoonButton and have that open and play cartoonBG. That's sample 1.
    Sample 2 is what I have for frame 15 of cartoonBG. That would be where the alpha fade-up stops, and I want it to be set so you click episode1Button and that loads BnR1.flv into the NetStream (and, later on, when I have a second cartoon, episode2Button would load BnR2.flv and so on). That's sample 2.
    Thanks so much in advance if someone could help me out!
    SAMPLE 1:
    stop;
    cartoonButton.onRelease = cartoonBG.play;
    SAMPLE 2:
    stop;
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    ns.play("BnR1.flv");
    playButton.onRelease = function() {
        ns.pause();
    var videoInterval = setInterval(videoStatus,100);
    var amountLoaded:Number;
    var duration:Number;
    ns["onMetadata"] = function(obj) {
        duration = obj.duration;
    function videoStatus() {
        amountLoaded = ns.bytesLoaded / ns.bytesTotal;
        loader.loadbar._width = amountLoaded * 475;
        loader.scrub._x = ns.time / duration * 475;
    var scrubInterval;
    loader.scrub.onPress = function () {
        clearInterval(videoInterval);
        scrubInterval = setInterval(scrubit,10);
        this.startDrag(false,0,this._y,461,this._y);
    loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
        clearInteral(scrubInterval);
        videoInterval = setInterval(videoStatus,100);
        this.stopDrag();
    function scrubit() {
        ns.seek(Math.floor((loader.scrub._x/461)*duration));

    That works, but I actually want it to be set up so I (or the user) could go back to cartoonBG again, as opposed to getting rid of it completely.
    The way I'm setting this up is that homeButton, cartoonButton, and a couple others (extrasButton, downloadsButton) are all navigation on a footer that will always be there, but they'll bring up these different movie clips (cartoonBG, extrasBG, etc.) instead of going to other frames on the main timeline. The tutorial I was working off of seemed to think that was the way to go, and for whatever reason, I took him at his word.
    Anyway, is there a different way I could code homeButton that wouldn't get rid of cartoonBG?
    I should also take this opportunity to say thanks for all this help! I really do appreciate it!

  • Button in a nested movie clip-Help!

    Hello!
    I have an issue that I have never been able to solve and need
    to now since I am on a tight deadline.
    I have a movie clip button on my main timeline. The code
    works fine (up, over and out). Inside that movie I have an
    animation where a bubble appears with text, our mission. If I use
    the URL link for text it works fine. The problem is I need, when
    clicked on, a UILoader to load a file. If I put the correct code on
    the main timeline I get an error since that pop-up has not loaded
    yet. If I put the correct code(I used before on main timeline only)
    in the movie where the pop-up is I also get an error which send the
    file into an eternal loop. What am I doing wrong??
    I would greatly appreciate any help with this.
    Thanks.
    Rob

    Hi Ned,
    Thank for the quick response. The button does have an instance name of "myreserve_btn" and it only seats on page layer in frame 3. and I changed publish settings and got this output message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at SpaLuvicebestmassageoptionintown_fla::MainTimeline/frame3()[SpaLuvicebestmassageoptionint own_fla.MainTimeline::frame3:1]
        at flash.display::Sprite/constructChildren()
        at flash.display::Sprite()
        at flash.display::MovieClip()
        at SpaLuvicebestmassageoptionintown_fla::innnerbody_25()
        at flash.display::Sprite/constructChildren()
        at flash.display::Sprite()
        at flash.display::MovieClip()
        at flash.display::MovieClip/gotoAndStop()
        at SpaLuvicebestmassageoptionintown_fla::MainTimeline/bodymassagebtn_clicked()[SpaLuvicebest massageoptionintown_fla.MainTimeline::frame1:12]
    Is there a way around this?
    thanx in advance

  • Movie clip help

    Is there any way to take a full flash file (in this case a website) and turn it into a movie clip as if I had made a movie clip first and built the site within it?

    You should be able to copy the main timeline into a movieclip.  Select all the used frames on all the layers at once, right click on them and select Copy Frames.  Create a new movieclip symbol and in its one keyframe, right click and select Paste Frames... all layers and frames should paste in.

  • Music clip help needed

    I am working in Premiere 11 and would like to add a music clip to my timeline. The music in the drag and drop box is 30 seconds long. How do I get a longer clip or can I stretch the clip on the timeline as in Premiere 12? I am just learning the program. I need help fast! Thanks.

    CacheBRC
    lf you stretch the audio clip with Time Stretch beyond its recorded time, it will distort progressively as you drag the file out.
    Where is this music clip coming from? If it is one of the SmartSound/Sonicfire Pro 5 soundtracks, you can customize the duration in the SmartSound/Sonicfire Pro 5 workspace so that is does not impact the music arrangement when music file is opened in the Timeline from the SmartSound/Sonicfire Pro 5 workspace.
    The SmartSound feature can be found under the Music Tab at the bottom of the Premiere Elements 12 workspace. What computer operating system is your Premiere Elements 12 running on?
    Let us start here and then decide what next. Please do not hesitate to ask if you have questions or need clarification on anything written.
    Thanks.
    ATR

  • Variables into flash movie  -  Urgent help needed, please

    I am hoping this is simple:
    Here is my HTML code:
    <param name="movie" value="orig2.swf" /><param
    name=FlashVars VALUE="sname=video1.flv"><param name="quality"
    value="high" /><param name="bgcolor" value="#ffffff" />
    I need to pass video1.flv to the flash movie.
    Here is the MOVIE data. I was told this is how to do it, but
    I am sure it's missing something basic.
    //insert sample link below
    mediaDisplay.directLink = "
    http://flash.xxx.com/flashgen.cgi?sname=&aname=xxxxxxxx/_definst_";
    //pulls sname from param value in HTML
    mediaDisplay.simplePlaylist = sname;
    streamnameTxt.text = sname;
    So, it should pull the SNAME variable from HTML and feed it
    into player. If I type in SNAME variable and manually place it in
    DirectLink line above, it works, but I need it to feed from HTML.
    PLEASE HELP!!

    I know how to pass the variable TO flash, but how do I get
    the FLASH movie to receive it??
    Again, here is the code in the FLA file
    //insert sample link below
    mediaDisplay.directLink = "
    http://flash.xxx.com/flashgen.cgi?sname=&aname=xxxxxxxx/_definst_";
    //pulls sname from param value in HTML
    mediaDisplay.simplePlaylist = sname;
    streamnameTxt.text = sname;

  • Old Home Movies conversion help needed! Please!

    I have about 18 hours of various movies that had been built in Pinnacle Studio (transitions etc.) on a PC Computer. There is no disc chaptering and this is a PC only program. I want to bring them over to iMovie or another program on my new iMac and have the end result to put them on USB. Pinnacle said that burning to DVD would be the only way to incorporate menus and chapters etc. Is there any way for iMovie to do this? or another program? We just want to be able to have them on USB to distribute to the family and have them put in their computer and be able to play back the various movies and have the option to fast forward or skip to a certain part in the movie with scene selection etc. I have several options to export the Pinnacle movies. Mpeg1, mpeg2 and a few others.
    Any help or direction would be appreciated. We don't want to have to chop our videos to burn to a bunch of DVDS if possible.....

    I can't answer your question completely but I will try and fill in a few blanks. Perhaps others will add more later.
    I would try to make your final result a DVD. When you put video on a USB stick you have simply created another file that may, or may not work, in the future. You can certainly do that if you wish, but I would also make a DVD. The advantage of DVDs is that they are foolproof and universal, and most likely to be viewable for the next 30 years.
    I had good success with iMovie HD 06. Readily available on Amazon as part of iLife 06. Most files can simply be dragged into iMovie HD 06 and it will automatically convert them. It may be possible to do this with newer versions of iMovie but I rarely use those. I prefer the higher quality of iMovie HD 06.
    For DVD making use iDVD 09. I recommend the 09 version because it is the only version that includes all of the themes. Newer versions have had themes removed.

  • Flash Movie Clip Help

    I've been trying to recreate the flash movie they have on
    http://www.comcast.net/news/
    its in the middle of the page.
    I have everything except I cannot get that black fadein to
    go as smooth and fast. I've tried making more frames
    and less frames, but it doesn't seem to make open as smooth.
    Is there a way to code a different fps for just the fade in?
    or
    Does anyone have any ideas?
    Thanks in advance

    Your attachment appears to be lost in the queue... not abnormal for the new and improved forums.
    Anyways, for what I think you are trying to do you should look into using the Tween class.  If you Google "AS2 Tween" the first result you get  (a Kirupa article) may be enough to get you started--I didn't look beyond that one.  In your case you would probably be tweening the _y property of the page movieclip.  When it comes to changing pages, you might also want to incorporate a listener so that you can first tween out the current page before you tween in the new page.  You can have multiple tweens working at the same time for the same object, so you might want to add an _alpha tween into the mix as well.

  • Movie clip buttons, needs a bigger "hit area"

    I made some custom buttons in flash cs5 and AS3.  How do I increase the hit area on the buttons?  Thanks!

    I think what is happening is that the buttonMode=true; the child will recieve the mouse event instead.  Try this:
    placemcinstancehere.buttonMode = true;
    placemcinstancehere.mouseChildren = false;
    placemcinstancehere.addEventListener(MouseEvent.MOUSE_UP, function(event:MouseEvent) {
        trace("The button is: "+event.target);
    Hope this will help!

  • Need help returning correct name from a code created movie clip

    Hello. I am an AS3 n00b with hopefuly a simple question I am designing a simple game in flash. This code creates an array of movie clips and asigns a picture to each one. It is a map screen. What I need is when I click on one of the created movie clips, I need it to return either the index of the clip in the array or the name of the clip. Basicaly anything I can use to tell them apart in the code. Here is the code:
    import flash.display.MovieClip;
    var MapLoader:Array = new Array();
    var strJPGext:String = ".jpg";
    var intContTileNumber:int;
    var strContTilePath:String;
    var intDistStartX:int = 63;
    var intDistStartY:int = 64;
    var intDistMultiplyY:int = 0;
    var intDistMultiplyX:int = 0;
    var intDistCount:int = 0;
    var MapSquare:Array = new Array();
    for (var i:int = 0; i < 729; i++)
             //var MapSquare:MovieClip = new MovieClip();
            MapSquare.push (new MovieClip());
            MapSquare[i].x = intDistStartX + (intDistMultiplyX * 30);
            MapSquare[i].y = intDistStartY + (intDistMultiplyY * 30);
            MapSquare[i].name = "MapSquare" + i ;
            addChild(MapSquare[i]);
            intContTileNumber = i;
            MapLoader.push (new Loader);
            strContTilePath = intContTileNumber + strJPGext;
            MapLoader[i].load(new URLRequest(strContTilePath));
            MapSquare[i].addChild(MapLoader[i]);
            intDistCount++;
            intDistMultiplyX++;
            if (intDistCount > 26){
            intDistCount = 0;
            intDistMultiplyX = 0;
            intDistMultiplyY++;
    stage.addEventListener(MouseEvent.CLICK, reportClick);
    function reportClick(event:MouseEvent):void
        trace("movieClip Instance Name = " + event.target.name);   
    Now all this works fine, it creates the map and assigns the correct picture and places them in the correct X,Y position and it is the correct grid of 27x27 squares. The problem is with the name, when I click on the movie clip, it returns "Instance2" or "Instance5" or whatever. It starts with 2 and then increases each number by 3 for each clip, so the first one is 2, then 5 then 8 and so on. This is no good. I need it to return the name that I assigned it
    . If I put the code in trace(MapSquare[1]) it will return the name "MapSquare1" so I know the name was assigned, but it isnt returning.
    Please assist
    Thanks,
    -red

    Thanks for the resopnse,
    I know I dont really need the name, I just need the index number of the array, but I cant figure out how to get the index name without specificaly coding for it. That is why in the listener event I use event.target.name because I dont know what movie clip is being clicked until it has been clicked on. Basically when a movie clip is clicked it needs to return which index of the array was clicked.
    I could do it this way:
    MapSquare[0].addEventListener(
      MouseEvent.MOUSE_UP,
      function(evt:MouseEvent):void {
        trace("I've been clicked!");
    MapSquare[1].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    MapSquare[2].addEventListener(
       MouseEvent.MOUSE_UP,
       function(evt:MouseEvent):void {
         trace("I've been clicked!");
    ... ect
    but that is unreasonable and it kind of defeats the purpose of having the array in the first place. The code that each movie clip executes is the same, eventualy that index will be passed into a database and the data at that primary key will be retrieved and returned to the program. So I just need to know, when one of those buttons is clicked, which one was clicked and what is its index in the array.
    I am a VB programer and in VB this is very easy, the control array automatically sends its own index into the function when one of the buttons is clicked. It seems simple enough, I just dont know how to do it in action script.
    Thanks again,
    -red

  • Deactivate a button until movie clip is complete

    I am creating several self study courses for my company's
    intranet. I added buttons for nextFrame and prevFrame to allow the
    user to navigate at their own pace. My problem is that a frame may
    include a movie clip that needs to play before the next button
    appears (or is activated).
    Thank you from an old dog trying to learn new tricks.

    Hello!
    Maby you could disable your button with this little script in
    the timeline:
    YourButton'sInstancename.enabled = false;
    That will disable your button.
    Enyways, if your problem is what I think it is.. you might
    reslove your problem by making the movieclip like this:
    Start by making a new movieclip. Name it as you would like
    it.
    In the first frame of your MC (movieclip) start making the
    animation with tween and whatever you want. When the animation is
    done, make a new layer INSIDE your MC and on the frame where your
    animation stops, drag in the button, or make something and convert
    it to a button. Make sure you have this script in the same frame as
    your button: stop() ; So, when the animation is finished, the MC
    stops at the button.
    After that, just type the script inside your button. Like
    ex.:
    on (release) {
    gotoAndStop("scene 1", 1);
    You have to change scene 1 to the name of your scene which
    you want to go to after clicking the button, and change 1 to the
    framenumber you want to go to.
    Hope this helps!
    Happy smile,
    SveinMikkel.com

  • How to email a Movie Clip in Flash

    Hi everyone.
    I am creating a painting / drawing application in flash.
    I want to add a functionality, which allows the user to send his/her painting to his/her email address.
    How can this be done?
    Please note that the painting / drawing would be a movie clip
    Help on an urgent basis would be greatly appreciated
    Thanks

    Hi,
    I did something similar for AS2:basically there was a "designer" swf where one could interact to create a design,
    and a "viewing" swf that contained all the bits and pieces used (e.g. a blank t-shirt).
    The designer swf would send data (placement of objects, coordinates of strokes) to the server, and the server would amend the blank viewer swf by compiling the data object and adding it as another code block. The code of the viewing swf would handle constructing the desired image, by placing objects, adding strokes, etc.
    With the simple structure of AS2 code, php could do that.
    I sort of believe that something similar could be done for AS3 if the server is able to run java (the flex sdk programs). Addition: PHP by itself should be able to replace an embedded text file ... such as an xml description of the artwork

  • Is this a bug?: copied movie clip has wrong frame rate and ruins the main movie's sync

    Hello,
    I am trying to copy a movieclip with a frame rate of 30 frames per second to a movie that has a frame rate of 30 frames per second. Both movies are actionscript 3 movies. When I do this, my copied movie clip's frame rate reverts to 12 frames per second and all my audio synched animation is trashed. Then when I change it back manually to 30 frames per second it makes my main movie's stage animation go crazy at full possible speed and the audio is all out of sync. I have not set export for sharing or action script on this movie clip. I've tried other movie clips that are 30 frames per second and it is all crazy!
    Is this a bug? What can I do? I've got 100s of movie clips I need to make. I can't keep remaking them just because flash has a screw loose. I'll go crazy!
    -theGibler

    Oh sorry I goofed! My main time line is 12 fps! I can't belive I didn't see this before.

  • I have a simple movie clip/ button question

    I have a simple movie clip on my scene 1 frame 1.  Inside that movie clip I have another movie clip, with a button on top that controls that mc.  Also have another movie clip with a button on top that I would like to take me back to scene 1, frame xyz.  I cannot remember how to do it.

    Well, I don't know the code to use, so I haven't tried anything unfortunately.  I havent typed code in the past couple of years, so I vaguely remember having to type in something pertaining to a _root or something like that ...here are a few screen shots, like I said, the button nested in the movie clip I need to take me back to the main page and goto a different frame.  I only have one scene, as2,
    on scene 1, the movie clip is the cube at bottom left.  inside the mc the button i need to take me back is bottom right-thanks!

  • Building an array of movie clips

    Hi
    I have a main document class and an array class (amongst others).
    I am not sure how to build the array though. Below is my attempt up to now. But I get the following error code.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at LetterArray/initLetters()
        at LetterArray()
        at BugGoopFSGame() //This is my main document class.
    What am I doing wrong?
    Thanks
    Charine
    //in main document class
    public var letterArray:LetterArray = new LetterArray(stage);
    //in array class
    package
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.display.Stage;
        public class LetterArray extends MovieClip
            private var _stage:Stage;
            /*The following are movie clips that need to go into an array so that they can be manipulated togehter.
            Their classes A, F, G, H, I, N, O, S  and T were all dynamically created by flash.*/
    //Do I even need these here?
            public var a:A;
            public var f:F;
            public var g:G;
            public var h:H;
            public var i:I;
            public var n:N;
            public var o:O;
            public var s:S;
            public var t:T;
             public function LetterArray(s:Stage)
                _stage = stage;
                initLetters();
            private function initLetters():void
                var LetterArray:Array = new Array[a,f,g,h,i,n,o,s,t];
    //rest not relevant

    You declare a bunch of objects but you do not instaintiate them.
    public var a:A;  // declare but does not yet exist
    public var a:A = new A();   // declared and exists

Maybe you are looking for

  • How do I designate myself in my iCloud contacts to use for autofill

    how do I designate "myself" in my iCloud contacts to use for autofill

  • Error using POST in modplsql

    Hi, I have a customer who is using the POST method in his modplsql code then he gets the the page not found error: The requested URL /xxx/xxx.test_home was not found on this server. For eg if the customer uses htp.p('<form action=/xxx/xxx.test_home m

  • F&A Price not being recalculated at MIRO level.

    Dear all, I have a PO on which I have an F&A price. At the PO creation I have a price which is calculated. This price is provisional. Then I do my goods receipt. Some days later I'm able to calculate the final price. When I do MIRO, the price which i

  • This is about updateing CS6 Photoshop

    I keep getting the following error messages when I update from the Photoshop help/update selection Extension Manager 6.0.6 Update Installation failed. Error Code: U44M1P7 Adobe Photoshop 13.0.1.2 Installation failed. Error Code: U44M1P7

  • Save Project as an Archive does not work

    When I attempt to do a "save as" for my project in GarrageBand 3.04, the Save as an Archive box is grayed out and not available for selection. What is the issue with GarrageBand and what is the work around for this problem?