Attach movie - broken buttons - targeting

Let's say i have a simple movie clip called "navBar" and in
that movie clip I have nested another movie clip called
"green_btn". I have assigned linkage to both clips the first as
"navBar" and the second "green_btn". It is removed from the stage
and saved in the library with proper linkage.
Now let's say I return to the stage and create a "holder" for
my attached movie. I leave it blank, I call it "myHolder_mc" and
assign it linkageand give it a instance name of "myHolder_mc" and
move the cross hairs to the upper right hand corner.
Then I create a red button movie clip on the stage of a red
circle called "red_btn", and give it a instance name of "red_btn".
I will use red_btn.onRelease to load up the attachedMovie. When I
press the red_btn, the "navBar" movie attaches fine.
OK, thanks for sticking with me this far - HERE IS THE
PROBLEM - I want to be able to target the "green_btn" that is
located in the original navBar and assign it a onRelease function.
I can't seem to be able to target it, and have tried to find the
right target path, but can't seem to do it correctly.
So here is the code so far that isn't working
red_btn.onRelease = function(){
myHolder_mc.attachMovie("navBar","navBar", 0)
// the green_btn is nested inside of the navBar movieClip
myHolder_mc.navBar.green_btn.onRelease = function(){
trace("hello")
What should I do?

If you are importing the swf into the library it will lose all its actionscript.  You need to either copy that file from its original fla and create it as a movieclip in your other file (copy its timeline into a movieclip) or load that swf dynamically when the file is running using actionscript.

Similar Messages

  • Buttons within attached movie

    I'm trying to do very simple, i'm attaching a map using
    attachMovie, then I have two buttons one to print it and one to
    close the movie. The code is contained within the timeline of the
    attached movie not the root timeline.
    attachMovie("mcmap", "map_mc", 200, {_x:100, _y:100});
    close_btn.onRelease = function ()
    {unloadMovie (map_mc)};
    I hope I've set the linkage elements correctly and my movie
    sits on the main stage and is not exported in the first frame.
    Attaching the movie is fine, I just can't close or print the
    map - I'm incorrectly targeting somehow but I just can't work out
    why?
    Can anyone help?

    I worked it out - every post I make is because I still forget
    about using paths properly - I know it's something to do with this,
    but I always forget - sorry!
    _parent.map_mc.unloadMovie ()};
    was the correct choice!!!!!!!!!!!!

  • Attach movie (not using a button)

    I'm trying to attach movie on frame 1 on timeline. I'm using
    the following script and nothing happens:
    myMovieClip.attachMovie("graphic", "g", 1);
    g._x = 260;
    g._y = 250;
    When I use this script attached to a button it's working:
    on (press) {
    attachMovie("graphic", "g", 1);
    g._x = 260;
    g._y = 250;
    any idea what can be wrong?

    >>myMovieClip.attachMovie("graphic", "g", 1);
    This code assumes there is a movieclip with instance name
    'myMovieClip' on level0.
    >>do i have to give the movie clip an instant name
    No.
    >>i gave the name -graphic- in the linkage under
    identifier
    That's correct.

  • Buttons in an attached movie from library

    I used the tutorial posted at
    http://www.layersmagazine.com/flash-attaching-movieclips-actionscript.html
    Now I have a button on my stage that attaches a movie from the
    library.
    on (release) {
    this.holder.attachMovie(“contents”,”contentslinks”,1);
    It works fine but I also have buttons inside the attached
    movie clip that need to control a movie that is already on the
    stage.
    contentslinks.contents_link_1.onRelease = function() {
    content_mc._visible = false; book_mc.directGotoPage(4);
    If I just place the attached movie on the stage the buttons
    work but I when I proceed to use attachMovie, they do not work. How
    do I get the buttons in the attached movie to address the movie
    that is already on the stage?

    you can use the enabled property of movieclips to
    enable/disable them.

  • My macbook air will not attach mov files to gmail

    Not able to attach mov files to gmail. I have a macbook air. this situation has occured over the last couple of weeks and this is not a large file.

    Twyla2 wrote:
    My Macbook Air will not connect to wifi. I have tried updating the software and still nothing. Any idea how to fix?
    Care to share which software you were unsucessful in updating?  Which OS version you are using?
    ===========
    Try the basics first:
       Change your router channel number.  Most times this works & is all you have to do.
    Disconnect & reconnect your modem.  unplug it for about 10 seconds.  Plug it back in.  Do the same for Apple’s routers.  Wait for everything to reboot.
    System Preferences>Network
    Click the Assist Me button.
    In the next window that pops up, click the Diagnostic button & do the necessary.
    Research Knowledge Base for network problems that pertain to the OS that is currently installed on your computer.   See these basic networking KB Articles:  http://support.apple.com/kb/HT1401 AirPort troubleshooting guide
    http://support.apple.com/kb/HT4628  Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT2712 Using network locations in Mac OS X
    Manually provided DNS server addresses are higher priority than DHCP's
    http://support.apple.com/kb/HT1714 Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    ============================
    What to do when you can't connect to the Internet
    Also, run the Airport Utility app which is located inside the Utilities folder.
    =====================
    If using a  Linksys router, contact LinkSys Customer Support and/or post in their forums.
    If using Apple's Airport, please re-post over in one of the AirPort Forums.

  • Adobe Photoshop cs6 problem - it closes after ''move tool'' button

    After I push Move Tool button I cannot use any of the buttons bellow in that tool bar, when I try any button after it on closes the program with windows error ''adobe photoshop cs6 has stopped working''
    os: win 7 64bits.
    other adobe installed : adobe dreamweaver cs6

    OK, it seems to have been narrowed down to the video driver, or to its settings.
    What make and model video card do you have?
    What is the number and date of the installed driver?
    For OpenGL, what are your performance settings?
    Good luck,
    Hunt

  • Hi, i am a bit of a newbie at AS & need some help applying it to a movie clip button

    I have created a movie clip button but am stuck with the actionscript. I have created the rollover and rollout for this movie clip button but i want it to do 2 things after this i want it to go and stop on the first frame of a movieclip which has my content on it called portfoliogallery_mc (which is also the same instance name for it) when you then click the button i want it to go and play frame 11 of that movie clip portfolio gallery_mc.
    Here is my current actionscript i HAVE Flash 8 on my comp that i am currently using.
    Please note my actions are on a layer called actions and not on the movieclip button itself.
    nxtimagetwo_mc (is the movie clip button/instance of mc)
    THE CODE I HAVE USED
    this.nxtimagetwo_mc.onRollOver = function() {
    nxtimagetwo_mc.gotoAndPlay("_over");
    this.nxtimagetwo_mc.onRollOut = function() {
    nxtimagetwo_mc.gotoAndPlay("_out");
    portfoliogallery_mc.gotoAndStop(1);
    portfoliogallery_mc.gotoAndPlay(11);
    currently it is playing to frame 11 not stopping at frame 1 and stops on frame 20 where i have a stop action. I also have a stop action on frame 1 of that movie clip.
    What I want it to do is first stop at frame 1 of that movie clip and when the button is clicked again to go and play frame 11 of that same movie clip.
    Basically what i want the mc button to do is 2 things automatically stop the mc for the first content and when button is clicked let the content fad out and play to where the next stop action is set to in the Movie Clip.
    Nothing to with the above www.rsquareme.co.uk is my current portfolio website if you would like to check it out it is not fully complete yet.

    it doens't make sense to execute:
    portfoliogallery_mc.gotoAndStop(1);
    portfoliogallery_mc.gotoAndPlay(11);
    only the 2nd line of code will be effected.
    i know you want to control 2 movieclips.  what are the instance names of the two movieclips and what do you want to occur in each of those movieclips.
    or, do you want to control 1 movieclip and have it play a certain sequence of frames followed by another sequence of frames?

  • Making 'attach to email' button as a hyperlink has disappeared in acrobat X pro

    hi
    I have upgraded to Acobat X pro from Acrobat 8 (CS3). I make brochures in indesign and then add some buttons in acrobat that can't be done in indesign. One button I nake is a 'attach to email' button. I can no longer see this option in create a link/custom link/actions/add
    can someone please advise how I can still do this as my client still wants this button on the back page of all their brochures so they customers can easily pass the brochure onto someone else

    no, this is not what I need
    Your screen dumps are to show where you can attach a pdf to an email from the file menu in a pdf. This is not what I want
    I use the draw a button using the 'link' tool in acrobat
    this tool opens a dialogue box called create a link and I choose
    custom link which opens another dialogue box and I choose
    the action tab, selct an action 'add' and choose from the options here except pro x has had the 'attach to email' action removed
    I need to get this in order to make a button on the pdf that a customer can click and then send the pdf to an email address that they enter

  • Auto Spell Check Requested! Or just move the button, please.

    Auto Spell Check Requested! Or just move the button, please.

    Thanks for the suggestion.  We'll make sure to pass it along.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • Attaching .MOV to email

    When I attach a .MOV to my email it's coming up in duplicate and very small. This hasn't always been the case. I've sent many .MOV through email with no problem till now. Any help would be appreciated.

    I believe you posted in the wrong forum. The iPhone can not attach MOV files to emails.

  • Attach movie clips to scrollPane using attachMovie

    Hi
    I tried to attach movie clips to scrollPane using attachMovie
    but could not do it
    I tried the following code:
    sp.contentPath="emptyMovieClip"
    sp.content.attachMovie("boxesRow","boxesRow1",1)
    trace(sp.content.boxesRow1)
    Im able to trace the sp.content.boxesRow1 , but not seen in
    the scrollPane
    Can any one suggest me , how can I do this
    Pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
    Thank you very much

    hi,
    The code is correct....
    But, what i want to know is, are using the Identifier name of
    the moviclips ???
    "emptyMovieClip" should be an Ideintifier name for an empty
    clip in the library.
    and "boxesRow" should refer an identifier name of another
    movie clip in the library...(its should also contain some object
    for the visibility check)...

  • Attach Movie Clip to ScrollPane

    Hi
    I tried to attach movie clips to scrollPane using attachMovie
    but could not do it
    I tried the following code:
    sp.contentPath="emptyMovieClip"
    sp.content.attachMovie("boxesRow","boxesRow1",1)
    trace(sp.content.boxesRow1)
    Im able to trace the sp.content.boxesRow1 , but not seen in
    the scrollPane
    Can any one suggest me , how can I do this
    Thank you very much

    hi,
    The code is correct....
    But, what i want to know is, are using the Identifier name of
    the moviclips ???
    "emptyMovieClip" should be an Ideintifier name for an empty
    clip in the library.
    and "boxesRow" should refer an identifier name of another
    movie clip in the library...(its should also contain some object
    for the visibility check)...

  • How to know the program attached to each button ?

    Hello,
    When I press on various buttons in SAP various ABAP programs/functions are launched/executed. How can I know the name of the program/functions that is attached to these buttons? I want to debug through these programs/functions because they have functionalities similar to the ones I want to implement so I want to get access to these ABAP programs but how?

    Hi,
    You can debug and identify..
    Before pressing the button..Press /h in the command field to start the debugger..
    Then press the button..
    It will take you in the degugging mode..
    Thanks,
    Naren

  • Cursor stops movie clip buttons

    I have animated movie clips as buttons. When the animation
    reaches the point where the cursor sits on the button it vanishes.
    Here is the script I have on the main time line:
    //news_mc is the instance name of my movie clip button
    news_mc.addEventListener(MouseEvent.CLICK, newsPage);
    news_mc.addEventListener(MouseEvent.MOUSE_OVER, newsRollOn);
    news_mc.addEventListener(MouseEvent.MOUSE_OUT, newsRollOff);
    news_mc.buttonMode = true;
    function newsRollOn(event:MouseEvent):void {
    news_mc.gotoAndPlay("in");
    function newsRollOff(event:MouseEvent):void {
    news_mc.gotoAndPlay("out");
    function newsPage(event:MouseEvent):void {
    gotoAndStop("news");
    I know there is something about
    news_mc.mask = ??? I'm not sure if I sure what part of the
    mask I use. I have a layer that has the button background (instance
    name - background) and then the 2 layers that form the animated
    mask - the mask layer contains a copy of the button background
    (instance name - background2) and then the animated later of the
    mask contains a gradient that slides over the button (instance name
    - masker).
    What is happening?

    ROLL_OVER and ROLL_OUT rather than mouse_over and _out did
    the trick!

  • Attach movie confuison

    Hi,
    I need a help. I created a movieclip called ball and added
    linkage as 'ball' and also checked the option 'export in first
    frame' it is working fine,
    BUT if i do like that then exports the movie clip in first
    frame and it take big time to show preloader since the movie clip
    is soo big,
    I WANT TO ATTACH MOVIE WITHOUT MAKING IT TO 'EXPORT IN
    FIRSTFRAME' is there any posibilites
    Thank you in advance.

    hi,
    The code is correct....
    But, what i want to know is, are using the Identifier name of
    the moviclips ???
    "emptyMovieClip" should be an Ideintifier name for an empty
    clip in the library.
    and "boxesRow" should refer an identifier name of another
    movie clip in the library...(its should also contain some object
    for the visibility check)...

Maybe you are looking for

  • Getting error while updating IT 0105

    Hi, I am inserting a record in Communications Infotype when user creates a IT 0006 record. I have written code in the user exit to do the job and I am using HR_INFOTYPE_OPERATION' Insert option (INS) for that. I am doing enqueue and dequeue properly.

  • Acrobat 9 Pro w/ Office 2000 Observation

    Having installed Acrobat 9 Professional I find that the Convert to Adobe PDF buttons (PDF Maker) are no longer are present in any Office applications (Word, Excel or Outlook). They dont exist as available tool bar options. Reading the help file it ap

  • Extracting Pages Error

    Hello All, I have spent over 3 hours working on this and my head hurts reading things that I can't do. The short version is I have a pdf catalog that had some errors in the pages.  They were sent out to have some details corrected.  The original file

  • How to get proxy for mac

    Using final cut pro X, on macbook pro. after editing clips for video and exporting video, Im getting alot of dropped frames,skipping on playback. Also get message saying to use proxy mode. When trying to enbale proxy mode it wont allow me to highligh

  • Can a SQL SERVER table be accessed via Oracle Forms

    My boss asked me this question today. I am pretty sure the answer is "no", but thought it better to throw it out to the crowd: "Can a SQL SERVER table be accessed via Oracle Forms?"