MovieClip buttons inside a MovieClip button inside another MovieClip button

I am trying to make a Portfolio of my study abroad experience and can get something right about the movie clip buttons inside each other. I have a button to click on titled "travel" and a window shows up with more movieclip buttons to organize different locations of pictures. I can click on the button to have to slide of pictures but nothing happens. I have the "turnOffAllButtons"  coding and  also have the coding for stay clicked, but I can't get the 3rd set to show up. what am i not doing?
I don't have any errors or output comments showing up

I have it working now. what I did, I make a slideshow setup (gotoAndStop(1);) in a specific frame and the code I put in for the next, didnt work.
this is was I have now, without the "turnOffAllButtons" coding:
Main Button (actions Layer):
stop();
travelButton_mc.buttonMode=true;
travelButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizetravelButton);
function colorizetravelButton(givenEvent:MouseEvent){
  if (givenEvent.currentTarget.currentFrame != 50)
  travelButton_mc.gotoAndPlay(2);
travelButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizetravelButton);
function decolorizetravelButton(givenEvent:MouseEvent){
  if (givenEvent.currentTarget.currentFrame != 50)
  travelButton_mc.gotoAndPlay(21);
travelButton_mc.addEventListener(MouseEvent.CLICK, loadtravelLocations);
function loadtravelLocations(givenEvent:MouseEvent){
  travelButton_mc.gotoAndStop(50);
  travelLocations_mc.gotoAndPlay(1);
Inside the travelLocations_mc I have currently one button to show a slide of pictures, this is the second layer of buttoncode:
stop();
scotlandButton_mc.buttonMode=true;
scotlandButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizescotlandButton);
function colorizescotlandButton(givenEvent:MouseEvent){
  if (givenEvent.currentTarget.currentFrame != 50)
  scotlandButton_mc.gotoAndPlay(2);
scotlandButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizescotlandButton);
function decolorizescotlandButton(givenEvent:MouseEvent){
  if (givenEvent.currentTarget.currentFrame != 50)
  scotlandButton_mc.gotoAndPlay(21);
scotlandButton_mc.addEventListener(MouseEvent.CLICK, loadscotlandInfoPage);
function loadscotlandInfoPage(givenEvent:MouseEvent){
  scotlandButton_mc.gotoAndStop(50);
  scotlandInfoPage_mc.gotoAndPlay(1);
I turned the alpha up so you can see the mc that loads
I currently have a keyframe at 60 with a code of stop(); so the travelLocations_mc will still
does this make sense?

Similar Messages

  • Two Form buttons - a "submit" and an "Add Another Record" button

    Hello, any help would be appreciated . I think what I want to do requires a Custom Trigger but am not sure. And if it does, I'm not sure how to do it.
    I've got a form and when the user gets to the point where they want to submit the form, I want need two buttons; a Submit button and an "Add another Record" button.
    The reason is that the form contains two parts; two fields that go into one table (ex. incident and location) and two fields that go into another table (first name and last name). Of course these tables are tied together. I can do that no problem. But if the user wants to enter another person's name, I want the user to click the Add Another Record button and be able to add the second or third name.
    I know that I need a Custom Trigger to carry the original tables ID. What I can't figure out is how to add the additional button next to the Submit button.
    Thanks!
    Peter T2

    It is possible you have an add-on popup blocker that is more aggressive than Firefox's standard popup blocker?
    A quick way to see whether one of your extensions is involved is to test these features in Firefox's Safe Mode. That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled ''(Flash and other plugins still run)''
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Button functionality in a movieclip within another movieclip for another movieclip

    Ok so i have this looping thumbnails bar that goes like this:
    Scene1-imagebar-imagebarinside
    The buttons symbols are in the "imagebarinside" movieclip and i am using this code:
    ss1.addEventListener(MouseEvent.CLICK, play1);
    function play1(event:MouseEvent):void
    gotoAndStop("ssbox1");
    ...in this movieclip to play another labeled frame in another movieclip (Scene1-Bara)
    Problem is it wont work :-< if anyone has a better ideea i'll really apreciate it

    Hey!
    So, trying to understand the distribution of your MovieClips inside the flash file, this is what I understand:
    Scene1 contains a movieclip with the instance name "imagebar" and another movieclip with the instance name "bara".
    "imagebar" contains a movieclip with the instance name "imagebarinside". If that is the case (And the code being on the first frame of "imagebarinside"), I would use something like:
    function play1(event:MouseEvent):void
         Object(this.parent).parent.bara.gotoAndStop("ssbox1");
    Hope this works!

  • Attach a movieclip from the main timeline inside another movieclip.

    I need help with the game I am working currently. On the main timeline Actions frame I have a loader class called myLoader. I attached that to a movieclip called currentSWF. I have a movieclip called SpinningCard in the library which I dynamically attached to the stage. Inside the SpinningCard movieclip there is another movieclip Card. In the Card movieclip I have 10 frames and on each frame I want to attach a different instance of the movieclip currentSWF. How can I do achieve that?
    here's what I have till now...
    On the main timeline Actions frame...
    var loader:Loader=new Loader();
    loader.load(new URLRequest("CardGraphics.swf"))
    var currentSWF:MovieClip;
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
       function swfLoaded(e:Event):void {
       currentSWF = MovieClip(loader.contentLoaderInfo.content);
       addChild(currentSWF);
    Inside the Card movieclip on the first frame I have this code...
    var a1:MovieClip = MovieClip(parent.parent.getChildByName('currentSWF'));
    CardFrame1.addChild(a1);
    //CardFrame1 is an empty movieclip which is there on the frame 1 of Card Moveiclip.
    I am getting error : Parameter must be non-null. How can I solve. Can anyone please help me.

    Hi Nabren
    I'm also looking to load a library based movie-clip into a stage based movie-clip, so that I can inturn swap it with other movie clips to act as different pages (page2_mc etc) which will be used in different sections of the application to give chapters as such.
    I've had a go at the above but can't get a result, though it did not throw an error. I also had a trace() on each side and both of those triggered.
    The stage based mc I called pageMC and the content mc I called content the same as your example
    trace('loader - cx');
    var loader:Loader=new Loader();
    var pageMC:MovieClip;
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
    function swfLoaded(e:Event):void {
    pageMC = MovieClip(loader.contentLoaderInfo.content);
    pageMC.name = "pageMC";
    addChild(pageMC);
    trace("Menu 4");
    I'd appreciate some assistance. I would like to use internal MC's as I want to put the application to iOS and Android and believe by using movieclips I should be able to have some code with them whereas importing swf's I can't.
    Thanks

  • Referencing _root.Button  from a movie loaded inside another movie

    I have the following situation
    MainMove.swf is doing a loadmovie of SecondMovie.swf
    The Button that loads SecondMovie.swf also disables other buttons in MainMovie.swf
    on (release) {
        _root.intro_btn.enabled = flase;
        loadMovieNum("SecondMovie.swf", 2);
    How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
    Using AS2 is this current project
    Thanks

    You might be able to use the same line of code setting the enabled value to true.  If you have not locked the root of the loaded swf, the _root should till be pointing at the main movie.
    _root.intro_btn.enabled = true;

  • Detect closed buttons and vi from VIs inside subpanel

    Hi I have a problem regarding the closed buttons and frontpanel from vis inside the subpanel.
    I am using Labview 7.1. Pls see the attached. Inside the attached, they are main, first, second and subpanel.
    First, second and main are supposed to be inside the subpanel. First and second vis are closed by means
    of their own close buttons while the main vi is closed by means of delay.
    I thought of using the F.P.state property to tell the states of Vi inside the subpanel. But it does not seem to work.
    Please help.
    And secondly as a thoughts on separate issue , building the main.vi that would be reponsible for opening first and second vi, by means of open vi property and open vi function.
    When it works, then I run subpanel to open main vi inside . But somehow first and second vi open outside subpanel. Do do you think putting all vis in the subpanel would be better than putting the main inside the subpanel, where the main vi would later open other vis?
    Thanks
    Clement
    Attachments:
    subpanel.zip ‏23 KB

    Hi Clement,
    For VIs in subpanels the value of Front Panel Windowtate is always Hidden.  I modified your code to use the Executiontate VI property.  Hopefully you'll find the attached subpanel.vi useful. 
    Jennifer R.
    National Instruments
    Applications Engineer
    Attachments:
    subpanel.vi ‏33 KB

  • Placing a Button inside a TextBox - RadioButtons inside a Datagrid

    Hi,
    I would like to place a small button inside a textbox, so that when the button is clicked it will popup a window showing a Datagrid. I will be using an arrayCollection to supply the data to the grid's dataProvider. I would like to have as the 1st column radiobuttons for each row of data in the grid. When any radiobutton is selected that row's data is populated into the textbox that the button is in. Is this functionality feasible? Any code to inplement this would be appreciated.
    Thanks,
    J

    OK so I have managed to create the Datagrid with 3 columns the 1st is called Select, 2nd is Subject and 3rd is Message. I used a TitleWindow in a separate mxml file to create the popup window that contains the Datagrid. As I want the 1st column of my grid to have RadioButtons for all rows that have data, how do I now get these appearing under the Select Column? When a RadioButton is selected and the popup window closed the selected row's data should be populated into a couple of textbox;s one for each of the columns data.
    I have not yet managed to get the button to sit inside a Textbox. As the textbox is among a number of controls displayed on the same line in a HBox, I can only get the button to sit along side the textbox, but would prefer it to be sitting inside the textbox.
    Any help would be appreciated?
    Thanks,
    J

  • Button "Over" State Not Working Within Visible MovieClip

    Hi Folks,
    My button states aren't working right, and I'm pulling my hair out:
    http://www.miklas.org/test/test.htm
    The desired behavior is under the "Design..."  button--notice how when you mouseover the "Our Philosophy" link it turns blue? Why isn't  this happening for the "What We Can Do For You" and "Our Process" buttons in the other movieclips?
    The document is structured as follows:
    MovieClip 1: Design: Your Silent Salesperson
    ---Text
    ---Images
    ---Button: Our Philosophy
    MovieClip 2: Who Owns Your Brand
    ---Text
    ---Images
    ---Button: What We Can Do For You
    MovieClip 3: What's Your Brand's Persona
    ---Text
    ---Images:
    ---Button: Our Process
    DETAILED EXPLANATION:
    I have three separate movie clips with a bunch of objects. Using AS3,  I  tween their alpha value from 0 to 1 to make them visible depending on a  user mouseover. As part of each movieclip I have a button. It is text  with an underline; made to look like a hyperlink. When the user mouses  over the text, I want it to change color from orange to blue. This works  on the first movieclip, but doesn't on the second and third! What's  weird is that if I cut-and-paste the button from the second or third  movieclip to the first, the over state works fine. If I set Control  -> Enable Simple Buttons, the over state works fine. But when I  export it to .swf, it doesn't work!?
    tyvm!

    OK I finally got it! My layers were indeed out of whack--the entire problem was solved by the"setChildIndex" function.
    Basically, when the user mouses over the buttons, I fade in the new clip, and set the depth above the other movie clips. Here's the code:
    buttons_movieClip.whyDesign_button.addEventListener(
      MouseEvent.MOUSE_OVER,
      function(evt:MouseEvent):void
          if (active != whyDesign_movieClip)
            fade(whyDesign_movieClip);
            setChildIndex(whyDesign_movieClip,3);
            setChildIndex(whoOwns_movieClip,2);
            setChildIndex(persona_movieClip,1);
    There is a black background at depth 0. The following forum post helped a lot:
    http://www.smithmediafusion.com/blog/?p=435
    tyvm!

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • How can I link from one flash document to another with buttons?

    Hi,
    From the question above, you can tell that I'm very new to flash, especially with scripting. Total noob.
    I watched my instructor's videos and I'm still stumped. He didn't explain it very well.
    For starters, I am using Flash CS6, but I clicked on AS1.0 and AS2.0 from the drop down mention in the actionscript window for the script below, since that is what my instructor used.
    What I have now are various pages I've already created in flash that are different pages in my website, including a splash page with an enter button.
    For example, I want the enter button to link to another .swf or .html file when it is clicked. This file will be the main page.
    I tried using this script that my instructor mentioned in the video on the button layer:
    on (release); {
        getURL("page1.swf");
    the "page1.swf" file is already in the same folder in my computer as my splash page and I even imported it to the library of my splash page.
    From my instructor's video demo, that should be apparently all that is needed.
    But I cannot get this to work.
    I tested the file and this is what flash comes up with:
    In the output tab:
    ReferenceError: Error #1065: Variable TCMText is not defined.
    In the compiler errors tab:
    Scene 1, Layer 'Layer 28', Frame 1, Line 1
    1180: Call to a possibly undefined method on.
    Scene 1, Layer 'Layer 28', Frame 1, Line 1
    1120: Access of undefined property release.
    Scene 1, Layer 'Layer 28', Frame 1, Line 2
    1180: Call to a possibly undefined method getURL.
    Any thoughts? My instructor also recommended that I embed the .swf into an .html, but he obviously didn't tell us how to do that!
    Also, why doesn't script assist work with AS3?
    Thank you so much!

    Okay so I changed it to AS1/AS2.
    Now it says this:
    Scene=Scene 1, layer=Layer 28, frame=1, Line 1
    Mouse events are permitted only for button instances
    Scene=Scene 1, layer=Layer 28, frame=1, Line 4
    Syntax error.
    I am very confused.
    Also, since all my other pages are in AS3, is there some way I can use another script in AS3 that accomplishes the same task?
    Can someone please provide me with the correct script to use?
    Thank you so much! I feel that people here are much more responsive than my instructor is! Thank God for this forum!

  • Create row as next row on click of add another row button not on top of it

    My af:table is based on a transientVO (all the attributes are transient)
    This is just for data entry and not for data retrieval
    So i have placed add another row button on my af:table
    After i enter data in the first row and click add another row button the data is being moved to second row and the new row is created on top of that
    I want the row to be created as next row . not on top of my existing row
    How can we do this

    would this help you:
    http://lucbors.blogspot.com/2010/12/adf-11g-how-to-control-where-new-row-is.html

  • How to replace a movieclip with another movieclip

    How to replace a movieclip with another movieclip
    Hi,
    I am having a swf called tchild.swf... in this i got a
    movclip 'child1'. i am loading this tchild.swf into another swf
    tparent.swf within 'mcloader' movie clip.. i got another movclip
    called 'picture1'
    i am loading tchild.swf into mcloader movclip.. and i want to
    load 'child1' moviclip into picture1..
    how to replace a picture1 movieclip with child1 mc..
    PS: i dont want to load picture1 from library.. its on the
    stage.

    AWT or Swing?

  • Button won't work after calling another swf

    Hey!
    I have a scene where multiple buttons appear.
    One of them calls a  different swf file with loadMovie(). The other swf has a button that  uses the same function to return to the original swf (i have created a  swf for every scene of the original fla and so I can return to the exact  scene where I was). Another button in my original scene just calls another scene  of the same swf with gotoAndPlay.
    So far so good.
    The problem is that after I go forth and back to the external swf, using the 1st button, the  other button (that sends the user to another scene) won't work. It just  does nothing.
    (Although every other button in the scene keeps working).
    Using AS2 in CS5 (don't ask why i didn't use AS3 - noob).
    Any ideas?
    Thanks

    Ok, the whole scene has a simple loop to keep it running..
    The first button has:
    on (release)
    loadMovie("game.swf",1);
    The button on the external swf has:
    on (release)]
    stopAllSounds();
    loadMovie("project_games.swf",1);     //I have a swf for the original scene to connect the external swf directly with it, rather the whole project swf
    The other button in my original scene (the one that doesn't work after the use of the above two):
    on (release)
    gotoAndPlay("begin",1);                 //begin is the name of a scene in the project
    That's it.
    THanks for your reply my friend.
    Any ideas?

  • My centre button has stopped working and my top lock button has stopped working too. I've had this iPhone 2 years now, can I take it into apple and swap for another phone or am I not covered? Thanks

    My centre button has stopped working and my top lock button has stopped working too. I've had this iPhone 2 years now, can I take it into apple and swap for another phone or am I not covered? Thanks

    The standard Apple warranty is 1 year. I believe you can purchase AppleCare+, which extends the warranty to two years from the date of purchase. This extended warranty needs to be purchased within 30 days of the purchase date for the phone.
    If you have the extended warranty, you may be able to get a replacement phone at no cost. You will need to make an appointment at an Apple Store Genuis Bar and have them take a look at the phone.
    If you did not purchase the additional warranty coverage, you should be able to purchase an Out-of-Warranty replacement, which is $199 for the iPhone 4S.
    ~Lyssa

  • How do I reference a dynamically created MovieClip from another MovieClip?

    Hi,
    I'd be grateful for any pointers to the following problem:
         I'm having trouble referencing dynamically created MovieClips (links in a side panel on a Flash website, created from an XML file) from the current MovieClip (the currently selected link).
         I wish to freeze the the link/MovieClip in its mouseOver state once it has been clicked - this part works. When a new link/MovieClip is clicked on, I wish to release the previously clicked-on link from its mouseOver state, which is what I've so far been unable to do.
         My problem seems to be referencing the previous link/MoveClip. I've used the trace statement trace(MovieClip(this).name) to determine that the MovieClips are named item0, item1, item2 and so on. However, I've been unable thus far to reference the previous clip thus far. I've tried to trace the route to the MovieClip from the stage, and also tried MovieClip(parent).item0.gotoAndStop and lots of other different permutations, but to no avail. It's the fact they seem to be in a container called 'panel' which is defeating me.
         Here's a live version I've uploaded, which might explain the problem better. Click on "UBER UNS" in the top menu bar to get to the page in question. It's the links on the left-hand side (Historie, Unser Team, etc.) which are the problem. You'll see that once they've been clicked on they remain in their mouseOver state.
         This is the code in question on the fla file, which is a file I did not create myself. The parts in black work fine; it's the red parts where the problem lies:
    import flash.display.MovieClip;
    panel.buttonMode = true;
    var lang:uint = 1;
    var url_Link:String=MovieClip(root).program.websiteXML .language[lang].pages.titlePage[MovieClip(root).program.linkPage].texts.pageList.txt[numT XT].@link;
    var urlPage:Number=Number(MovieClip(root).program.webs iteXML.language[lang].pages.titlePage[MovieClip(root).program.linkPage].texts.pageList.tx t[numTXT].@linkPage);
    var request:URLRequest;
    var linkIndex:uint;
    var lastClickedLink:MovieClip;   //This is supposed to store the last link that has been clicked - it doesn't work
    panel.addEventListener(MouseEvent.CLICK, clicLink);
    panel.addEventListener(MouseEvent.ROLL_OVER, mouseOverLink);
    panel.addEventListener(MouseEvent.ROLL_OUT, mouseOutLink);
    function mouseOverLink(event:MouseEvent):void {
          MovieClip(this).gotoAndPlay('s1');
    function mouseOutLink(event:MouseEvent):void {
          if(numTXT !== (linkIndex - 1)/5){         //freezes mouseOver state if this is the link for the current page
               MovieClip(this).gotoAndPlay('s2');
    function clicLink(event:MouseEvent):void {
          var linkpage:uint = MovieClip(root).program.linkPage;
          if (url_Link) {
               request = new URLRequest(url_Link);
               navigateToURL(request);
          } else {
               linkIndex = numTXT * 5 + 1;
               if(linkpage == 1){
                   MovieClip(root).chPages.cont.page_about_mc.page3Tu  rner_mc.gotoAndStop([linkIndex]);
              } else if (linkpage == 2){
                   MovieClip(root).chPages.cont.page3_mc.page3Turner_  mc.gotoAndStop([linkIndex]);
         lastClickedLink.gotoAndPlay('s2');  // this is supposed to release the previous clicked-on link from it's mouseOver state - doesn't work
         lastClickedLink = MovieClip(this).name;    //this is supposed to set the new link as the last link clicked after the old one has been released from it's mouseOver state - doesn't work
    If anyone can help, that would be great.

    What you might be after for that line is to use:
    lastClickedLink = MovieClip(event.currentTarget);
    For what you show, the name property of an object is a String, so I would expect you to be getting an error regarding trying to get a String to act like a MovieClip when you try to tell it to gotoAndPlay('s2').

Maybe you are looking for

  • How to use the text type in SAP Routine

    Hi, The following fields has to be populated in Stock transport order text fields at the time of saving the document & to be copied into delivery document 1) Material type 2) Receiving storage location 3) Production supply Area STO Delivery EWM Deliv

  • Error when invoking sample mortgage process

    Hello everyone, I am trying to test my installation of LiveCycle ES 8.2. I want to be able to test the sample mortgage process that comes with LiveCycle ES 8.2. I have successfully installed LiveCycle ES 8.2 without any errors or warnings on a Virtua

  • Podcast tracks in playlists

    it appears to be the case that if you add podcast tracks to a playlist and set the playlist to shuffle, the podcast tracks are skipped. is there any way around this? can i reformat the podcast tracks to that they'll play randomly in playlists like ot

  • Mac Pro Retina stalls on start up! Urgent!

    My Mac Pro is stalling on start up. The loading bar gets half way and then stalls. I have reset the p ram and the smc. I have attached a photo of the verbose start up. I desperately need to get this working. Thanks

  • Multi-select and change only certain words in a text box to different font - possible?

    In Word I can select a number of words in a sentence or paragraph by holding the Shift key (PC, natch!) and then bold all of them at the same time, etc. Can't make this happen in inDesign - am I missing something simple? Need to take a list like the