Go To different frame

I'm making a Myst like game in Flash CS5 using action script 2. I want to have the player pull a lever and head back to a previous frame. But I want that frame to check if the lever was pulled (via a variable.) I need to know 3 things:
-What command is used to set up the Variable
-What command is used to change the variable from 0 to 1 when the lever is pulled
-The command for the frame to check if that variable is 1, if it is it will go to another frame other than the one it's on (say the bridge is down now)
Beginner Talk Please
-Aaron Shea

-What command is used to set up the Variable
var yourvariablename:Number = 0;
-What command is used to change the variable from 0 to 1 when the lever is pulled
yourvariablename = 1;
-The command for the frame to check if that variable is 1, if it is it will go to another frame other than the one it's on (say the bridge is down now)
if(yourvariablename==1){
yourmovieclip.gotoAndStop("someotherframe");

Similar Messages

  • Help with sequence settings in final cut for project with 2 different frame rates.

    I really need help with this one! I finished editing a wedding video and realized after exporting that it was filmed in two different frame rates. This has happened before but I converted the footage to match and fixed the problem. In this case, the footage is part 30fps and part 60fps. The majority of it was filmed in 30fps. I cannot convert the 60 to 30 without the slow motion effect which I do not need so I have to find a way to burn this to a DVD without it looking messed up! The video was shot with two Canon 7ds if that helps anything. The first sequence I set at 29.97 and exported as a quicktime movie and all the footage filmed in 60 looked perfect and the footage in 30 looked jittery. Then I tried the sequence at 59.97 and it switched. The footage filmed at 30 looked good and the 60 was cropped in. I am so confused! Any advice or suggestions would be greatly appreciated!!

    Thanks for your help Michael! The frame rates are 29.97 1920 x 1080 and 59.94 1280 x 720. I did a control click on the clips in final cut and viewed the item properties/format to find this info. The Canon 7d is a DSLR but we use it for video. As for my workflow, the first thing I do is import the footage onto my computer and then drag the clips into mpeg streamclip. I choose apple prores 422 and uncheck the interlaced box. Once this is done I import the .mov files into final cut. The sequence automatically sets itself to whatever clip I drag in first so it originally set as 29.97. When I finished editing wedding video, I export it to a quicktime movie and choose whatever settings match the sequence, in this case apple prores 422 1920 x 1080 30p. Once that is done I use iDVD to burn the discs.
    I knew something was wrong when I watched the quicktime movie and all the 30fps footage was jittery and most of the cross dissolves looked strange. That's when I figured out the footage was at two different frame rates. What I don't understand is why whatever the sequence is set at in final cut, the clips of the opposite frame rate look right but the clips set at the matching frame rate don't???

  • Re-connecting media to different frame rate clip

    Hi guys,
    Wondering whether anyone can help me out to solve an error I've made...
    So, I've basically completed an edit (some episodes on Final Cut Pro X, some on Final Cut 7) only to find out that I'd transcoded the media at the incorrect frame rate, 23.98 instead of 25fps. Yup, pretty big error. And now I need to redeliver the projects in the 25fps format.
    I've transcoded a clip to the correct 25fps rate and tried to reconnect that clip to the 23.98fps one in the timeline, but I'm unable to reconnect as the clips are of differing frame rates.
    Has anyone got any ideas how I can reconnect the clips or any suggestions that will make this situation easier to rectify rather than copying out the entire edit which will cause me to spend a week crying into my keyboard.
    Thanks in advance for any suggestions.
    Olly

    Hmmm...
    Tried this but it brings in the media that is 23.98 and there's no way I can tell to link to the new 25fps clips. Unless there's anything else I can do? Any other way to match the clips? (the 25fps clips are that little bit longer in duration) I also have some edits in fcp7. By using cinema tools in that would I be able to change the frame rates and link up to the new 25fps?
    Cheers for the advice though Russ, this way does give me the template of the 23.98 edit so that I can match the new 25fps shots to, but it's gonna be a long process.

  • Relink project clips with different frame rate

    Somehow the clips in my project sequence ended up with a different frame rate (25) than the original media files (23.95), and they are no longer linked -- maybe this happened during import from iMovie.  When I try to relink project files to source media, I get an error message saying they cannot be relinked because they have a different frame rate.  I changed the sequence framerate to 23.95 (by creating a new project with 23.95 as the frame rate, then copying and pasting the other timeline into it), but all the clips remain at 25, so the problem remains. 
    How can I change the clip properties to frame rate 23.95 so I can link to the original media?
    Thanks.

    The media got unlinked importing the project and events from iMovie to Final Cut.
    I've attached screen shots with all the specs.

  • Creating new buttons on different frame labels

    can someone tell me if im doing something wrong or assigning
    the as to the wrong frame?
    first off i have all my buttons on frame 2. im creating a
    real estate site and i have to have a couple links like HOME ABOUT
    BUYING SELLING CONTACT, the thing though is that in the BUYING and
    SELLING frames i want to add more sections and links but only on
    these 2 other parts of my site. when i code it and add new buttons
    to these sections though my movie plays over and over and over non
    stop. heres my coding...
    FRAME 1 preloader
    Frame 2 has a frame label of home and all the buttons on a
    diff layer, and AS3 on a different layer
    Frame 3 has a frame label for about section
    Frame 4 is my contact for example
    so if i create a new button in the about frame label and just
    add the code to the working as3 code on frame 2 my movie just plays
    over and over and over again, and all i want it do do is act like
    the other buttons and go to a different frame label down in the
    time line. the only way i get it to work is if i have ALL my
    buttons on frame 2.
    frame 1
    my preloader
    frame2
    home_btn.addEventListener(MouseEvent.CLICK, onHome)
    function onHome(event.MouseEvent):void
    gotoAndStop("home");
    about_btn.addEventListener(MouseEvent.CLICK, onAbout)
    function onAbout(event.MouseEvent):void
    gotoAndStop("about");
    etc....
    etc...
    i enter my btn code just like this and the buttons on frame 2
    work but any new buttons i try and creat and put into different
    frames othere then frame label "home" aka frame 2 wont work

    correct.
    there are lots of ways around it. but they all require the
    object to exist when the code executes.
    with as3 it's particularly easy to create objects, code for
    them and then add them to the display list later when
    needed.

  • Different frame rate encoding on tape (24p & 24pa)

    Hi,
    I usually record to tape with my dvx100 using 24pa, but sometimes the quick setup dial was switched accidentally resulting in a different frame encoding, like 24p for example.
    Everything is recorded in 29.97fps on mini-dv, we all know that, making apparently no difference b/w 24p and 24pa.
    But of course, when i'm trying to capture this footage through FCP, i can't always remove the advanced pulldown because there's a few clips that have been recorded with 24p instead of 24pa.
    Questions:
    - How can you detect the different encoding on tape, whether it's 24p or 24pa?
    - Can you get FCP to create a new clip (at least stop) the capture for those sections of the tape where I have something different than 24pa?
    - If nothing like that is possible, how do you solve this problem?
    Thanks!

    the only pulldown pattern that FCP can remove at capture is 24pA (3:2:2:3). Standard 3:2 pulldown can only be reversed using cinema tools. If you open the clip in cinema tools, you'll need to park the playhead on the first frame of the pulldown cadence for it to correctly remove the pulldown. This will create new copies of your clips, which will take up a corresponding amount of space. There is no way for either FCP or CT to reconize the pulldown cadence of standard 3:2 clips, so you'll have to manually find the A frame of the cadence. If you have a huge number of them to do, you may find it quicker to place each clip in a sequence where you can put the A frame of the cadence as the first frame in the sequence. Export these as a batch of reference movies, and you should be able to do a batch inverse telecine on them in Cinema Tools.
    These new clips will no longer match the timecode of your tapes, so if you remove the original 29.97 media, you should at least keep the offline 29.97 clips in your project in case you need to recapture.
    Hope this helps -
    Max Average

  • Different frame rate in movie mode? iPhone 4

    I noticed that my iPhone shoots video clips with different frame rate from time to time. I suppose it slows frame rate on dark shots. For now all of my daylight shots are 30 fps, while night or dark ones are 25 and 24. This makes it hard to edit clips in iMovie for example, because difference in frame rate causes strobe motion effect on output.
    !http://pics.livejournal.com/brain_away/pic/000040rc!
    !http://pics.livejournal.com/brain_away/pic/00003s3c!
    Anybody have the same?
    For reliable results I would suggest to shoot two clips: one in sunny daylight conditions, another with ordinary room lightning, maybe a little darker than normal.
    Please let me know of the results. Thanks

    Doesn't seem to be just a Quicktime bug:
    !http://pics.livejournal.com/brain_away/pic/00005gw1!
    +Created on: 12.09.2010 22:42:50 Московское летнее время
    Report for file: IMG_0206.MOV
    General / Container Stream #1
    Total Video Streams for this File.................1
    Total Audio Streams for this File.................1
    Video Codecs Used.................................AVC
    Audio Codecs Used.................................AAC LC-PS
    File Format.......................................MPEG-4
    Play Time.........................................10s 193ms
    Total File Size...................................12.9 MiB
    Total Stream BitRate..............................10.6 Mbps
    Encoded with......................................4.1
    Encoding Library..................................Apple QuickTime
    Video Stream #1
    Codec (Human Name)................................AVC
    Codec (FourCC)....................................avc1
    Codec [email protected]
    Frame Width.......................................1 280 pixels
    Frame Height......................................720 pixels
    Frame Rate........................................24.697 fps
    Total Frames......................................251
    Display Aspect Ratio..............................16:9
    Scan Type.........................................Progressive
    Color Space.......................................YUV
    Codec Settings (Summary)..........................1 Ref Frames
    QF (like Gordian Knot)............................0.465
    Codec Settings (CABAC)............................No
    Codec Settings (Reference Frames).................1
    Video Stream Length...............................10s 163ms
    Video Stream BitRate..............................10.6 Mbps
    Video Stream BitRate Mode.........................VBR
    Bit Depth.........................................8 bits
    Video Stream Size.................................12.8 MiB (99%)
    Video Stream Title................................Core Media Video
    Date of Original Encoding.........................UTC 2010-09-12 04:13:59
    Color Primaries...................................BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer Characteristics..........................BT.709-5, BT.1361
    Matrix Coefficients...............................BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
    Audio Stream #1
    Codec.............................................AAC
    Codec (FourCC)....................................40
    Audio Stream Length...............................10s 193ms
    Audio Stream BitRate..............................64.0 Kbps
    Audio Stream BitRate Mode.........................CBR
    Number of Audio Channels..........................2
    Audio Channel's Positions.........................Front: L R
    Sampling Rate.....................................44.1 KHz
    Audio Stream Size.................................79.4 KiB (1%)
    Audio Stream Title................................Core Media Audio
    Date of Original Encoding.........................UTC 2010-09-12 04:13:59+
    +Created on: 12.09.2010 22:43:06 Московское летнее время
    Report for file: IMG_0194.MOV
    General / Container Stream #1
    Total Video Streams for this File.................1
    Total Audio Streams for this File.................1
    Video Codecs Used.................................AVC
    Audio Codecs Used.................................AAC LC-PS
    File Format.......................................MPEG-4
    Play Time.........................................16s 579ms
    Total File Size...................................21.0 MiB
    Total Stream BitRate..............................10.6 Mbps
    Encoded with......................................4.1
    Encoding Library..................................Apple QuickTime
    Video Stream #1
    Codec (Human Name)................................AVC
    Codec (FourCC)....................................avc1
    Codec [email protected]
    Frame Width.......................................1 280 pixels
    Frame Height......................................720 pixels
    Frame Rate........................................29.970 fps
    Total Frames......................................496
    Display Aspect Ratio..............................16:9
    Scan Type.........................................Progressive
    Color Space.......................................YUV
    Codec Settings (Summary)..........................1 Ref Frames
    QF (like Gordian Knot)............................0.383
    Codec Settings (CABAC)............................No
    Codec Settings (Reference Frames).................1
    Video Stream Length...............................16s 550ms
    Video Stream BitRate..............................10.6 Mbps
    Video Stream BitRate Mode.........................VBR
    Bit Depth.........................................8 bits
    Video Stream Size.................................20.9 MiB (99%)
    Video Stream Title................................Core Media Video
    Date of Original Encoding.........................UTC 2010-09-12 02:45:06
    Color Primaries...................................BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer Characteristics..........................BT.709-5, BT.1361
    Matrix Coefficients...............................BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
    Audio Stream #1
    Codec.............................................AAC
    Codec (FourCC)....................................40
    Audio Stream Length...............................16s 579ms
    Audio Stream BitRate..............................64.0 Kbps
    Audio Stream BitRate Mode.........................CBR
    Number of Audio Channels..........................2
    Audio Channel's Positions.........................Front: L R
    Sampling Rate.....................................44.1 KHz
    Audio Stream Size.................................129 KiB (1%)
    Audio Stream Title................................Core Media Audio
    Date of Original Encoding.........................UTC 2010-09-12 02:45:06+

  • How can I interact between two different frames in the same indesign template as well as from one template to another.

    I am looking for the best way (or any way) to interact between two different frames in the same indesign template as well as from one template to another. It's for a DPS app which needs to carry some button initiated data from one page to another and then present it in a table.

    There is no simple way to do it, as itunes wont let you use it on another computer without wiping the contents first.
    However if you really want to transfer songs to another computer then you could try this;
    * make sure that your ipod is accessible as a disk drive (ipod options)
    * when you plug your ipod into the computer you want to transfer to make sure you select "no" or "cancel" when it asks to wipe the contents. Leave the ipod connected and quit from itunes.
    * go to "my computer" and access the ipod directly. You probably have to select "view hidden files" from windows. You will see a lot of folders with odd names like ZX838aff with similar named files inside.
    * copy these files to a folder on your computers hardrive. Now remove the ipod and start itunes.
    * import the files from the folder you made in the last step.
    * Now your music is on itunes, but with unrecogisable names.
    This is the only way I have found to do it, but there may be another way, say with an application to do the hard work for you.
    Generic homebuild PC Windows XP
    Generic homebuild PC   Windows XP  

  • How to load and unload more than one external swf files in different frames?

    I do not have much experience on Adobe Flash or Action Script 3, but I know the basics.
    I am Arabic language teacher, and I design an application to teach Arabic, I just would like to learn how to load and unload more than one external swf files in different frames.
    Thanks

    Look into using the Loader class to load the swf files.  If you want to have it happen in different frames then you can put the code into the different frames.

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • Communication between applets that are in different frames

    Hi,
    I have two applets in the same browser page but not in the same Frame, and I'm trying to invoke a method of one of the applets from the other. getApplet("NAME") does not work because both are in different frames.
    I have managed to do the communication with a static method, but the invoked method doesn't have the correct variables values (also defined static), these variables have the default values (i.e. int = 0).
    My program:
    Applet A --> loads the data and waits for Applet B's invocation.
    Later....
    Applet B --> invokes an Applet A's static method, Applet A receives the data, Applet A is supossed to work correctly, but its data is not the previously loaded but the default values.
    What am I doing wrong? Looking at this, it seems that the static method invoked is from a different class.
    Has anyone any working example? Is there another way (not signing)?
    Thanks

    You could do it using javascript. From what it looks like you are describing :
    In Applet A's page, have a javascript function that looks like the following :
    function callAppletB()
         self.parent.frame[1].document.getElementById("insert applet b's id here").methodName();
    }Then, in Applet B's page, make a similar function :
    function callAppletA()
         self.parent.frame[0].document.getElementById("insert applet a's id here").methodName();
    }Just make sure that Applet A's page is the first frame on your frameset page. Hope this helped.
    Ed

  • How to communicate with another applet in different frame?

    Hello,evryone
    How to communicate with another applet in different frame?
    Can you give some advices?
    thank you!
    zhongboqing

    i faced this problem one year ago.It would be something like that:
    first you have to get the applet context 'getAppletContext()' (which is the current frame).
    Then get parent of that context 'getParent()' (which is the browser context).
    Then u can access the desired frame by its name. Finally you can access the desired applet located within this frame by

  • Can a rollover go to a different frame number...

    Can a rollover go to a different frame number...

    ohh sorry
    on button 1 frame 10 i put this AS
    feedURL = "
    http://61.16.10.25/_flash/Delhi.aspx";
    // include the script to grab the XML data and import it into
    the flash movie
    #include "scripts/content.as"
    // fire event to display current weather conditions
    dispatchEvent({type:"containerInit", target:this});
    // when button is pressed, shift it's position
    function btnPressed(btn) {
    btn._x += 1;
    btn._y += 1;
    // when button is released, put it back
    function btnReleased(btn) {
    btn._x -= 1;
    btn._y -= 1;
    and on button 2 frame 10 i put the
    feedURL = "
    http://61.16.10.25/_flash/Sanjose.aspx";
    // include the script to grab the XML data and import it into
    the flash movie
    #include "scripts/content.as"
    // fire event to display current weather conditions
    dispatchEvent({type:"containerInit", target:this});
    // when button is pressed, shift it's position
    function btnPressed(btn) {
    btn._x += 1;
    btn._y += 1;
    // when button is released, put it back
    function btnReleased(btn) {
    btn._x -= 1;
    btn._y -= 1;
    i want if i roll over it shows its own AS only not the other
    buttons AS
    kindly tell me where i can send u the file to see the
    problem

  • Play multiple sound files in different frames from library in flash

    My assessment task for college is to create a webpage of my work.  So far it runs brilliantly except for this.  I only need this to be working in like 2 days!  Help!
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Carolyns_Media_Portfolio_Scene1_fla::MainTimeline/frame5()
    at flash.display::MovieClip/gotoAndStop()
    Trying to be able to play sound clips from the library with the option to play and stop the sound file. Each sound has its own frame, with stop and play buttons. I can run the first sound file perfectly being able to start and stop it but when trying to play the next sound it creates the above error on output. I have dead buttons as well on the second sound.
    The top buttons take you to each scene
    The script runs from frame 5.
    import flash.events.MouseEvent;
    **buTrivia.addEventListener(MouseEvent.CLICK,clickListener7);
    function clickListener7(event:MouseEvent):void {
    SoundMixer.stopAll()
    gotoAndStop("trivia");
    buToyRA.addEventListener(MouseEvent.CLICK,clickListener8);
    function clickListener8(event:MouseEvent):void {
    SoundMixer.stopAll()
    gotoAndStop("toyminatorRA");
    buCaroline.addEventListener(MouseEvent.CLICK,clickListener9);
    function clickListener9(event:MouseEvent):void {
    SoundMixer.stopAll()
    gotoAndStop("caroline");
    buServerDown.addEventListener(MouseEvent.CLICK,clickListener10);
    function clickListener10(event:MouseEvent):void {
    SoundMixer.stopAll()
    gotoAndStop("serverdown");
    This was the script I found and edited.  Only Trivia works
    stop();
    var triviaSound:trivia = new trivia()
    var triviaChannel:SoundChannel = new SoundChannel();
    buplay1.addEventListener(MouseEvent.CLICK, playSound1);
    buStop1.addEventListener(MouseEvent.CLICK, stopSound1)
    function playSound1(event:MouseEvent):void
    triviaSound.play();
    function stopSound1(event:MouseEvent):void
    SoundMixer.stopAll()
    gotoAndStop("trivia");
    /*buplay2.addEventListener(MouseEvent.CLICK, playSound2);
    bustop2.addEventListener(MouseEvent.CLICK, stopSound2)
    var toysSound:toys = new toys();
    var toysChannel:SoundChannel = new SoundChannel();
    function playSound2(event:MouseEvent):void
    toysSound.play();
    function stopSound2(event:MouseEvent):void
    SoundMixer.stopAll()
    gotoAndStop("toyminatorRA");
    Basically I want to play all the sounds, from the library, individually in different frames using the option to play and stop that sound.  I found the above script but only works for one sound.  I am new at scripting in flash so any help or even a better script option would be awesome.  Thank you

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is declared but not instantiated
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • How to split one page into different frames in ADF?

    Hi,
    Can any one please guide me how to split a jspx into different frames.
    i.e., left frame contains <af:panelSideBar> which contains multiple <af:commandMenuItem> s. And whenver we click on the one <af:commandMenuItem>, it has to show the corresponing page inside center frame in this page itself. Is it possible in ADF? Which component we need to use?
    Can anyone guide me on this?
    Thanks in advance,
    Regards,
    Suresh Kethireddy

    You can use a combination of the ADF Faces 10.1.3 components like:
    af:panelPage
    af:panelSideBar
    af:panelHorizontal
    af:panelGroup
    to organize the screen layout, but it is not the interactive splitter that the 11g product provides.
    You can all all the 10.1.3 ADF Faces Components here:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html

  • Accessing movieclips on different frames.

    Okay, So i have a gallery on my root timeline
    The gallery is called work_mc.  Inside of work_mc I have various buttons.  There is a different section on different frames.  For example,  ALL is on frame one, PRINT is on frame two, motion is on frame three.
    In the root here is the code:
    work_mc.urbanthmb_mc.addEventListener(MouseEvent.CLICK, clickHandler);
    work_mc.urbanthmb_mc.buttonMode = true;
    function clickHandler(event:MouseEvent):void {
        if (!workss_mc) {
            workss_mc = new mc_workss();
            workss_mc.addEventListener("closeButtonClick", onCloseClick);
            workss_mc.x = 225;
            workss_mc.y = 200;
    work_mc.gotoAndStop("urbanflats");
        addChild(workss_mc);
        removeChild(work_mc);
    function onCloseClick(e:Event):void {
        trace("clickedtrue");
        if (!work_mc) {
            work_mc = new mc_work();
            work_mc.x = 225;
            work_mc.y = 200;
        removeChild(workss_mc);
    addChild(work_mc);
    This is targeting the buttons that are on frame 1.  How do I get to the buttons that are on frame 3?  I tried just using the movieclip names but this doesnt seem to work?

    ahh, okay.  Just what I didn't want to hear ha.
    The thing is here is that I am removing and adding children for the root, once I get into frame 3 then I am in work_mc and I will have to do the same thing that I am doing on the root which is:
    var workss_mc:mc_workss;
    work_mc.urbanthmb_mc.addEventListener(MouseEvent.CLICK, clickHandler);
    work_mc.urbanthmb_mc.buttonMode = true;
    function clickHandler(event:MouseEvent):void {
        if (!workss_mc) {
            workss_mc = new mc_workss();
            workss_mc.addEventListener("closeButtonClick", onCloseClick);
            workss_mc.x = 225;
            workss_mc.y = 200;
    work_mc.gotoAndStop("urbanflats");
        addChild(workss_mc);
        removeChild(work_mc);
    function onCloseClick(e:Event):void {
        trace("clickedtrue");
        if (!work_mc) {
            work_mc = new mc_work();
            work_mc.x = 225;
            work_mc.y = 200;
        removeChild(workss_mc);
    addChild(work_mc);
    Then I am taking it to inside of work_mc since I have to work on frame 3
    Here is my code for that, but it doesn't seem to be working correctly
    var workss_mc:mc_workss;
    urbanthmb1_mc.addEventListener(MouseEvent.CLICK, clickHandlerurban);
    urbanthmb1_mc.buttonMode = true;
    function clickHandlerurban(event:MouseEvent):void {
         if (!workss_mc) {
            workss_mc = new mc_workss();
            workss_mc.addEventListener("closeButtonClick", onCloseClick);
            workss_mc.x = 225;
            workss_mc.y = 200;
    workss_mc = new mc_workss();
    this.gotoAndStop(1);
        addChild(workss_mc);
        this.parent.removeChild(this);
    function onCloseClick(e:Event):void {
        trace("clickedtrue");
        if (!this) {
            this.x = 225;
            this.y = 200;
        removeChild(workss_mc);
    addChild(this);
    When it does this, it is not removing work_mc OR this, it is just adding workss_mc..
    Any ideas?

Maybe you are looking for