Buttons with nested movies clips...

Hi guys
I'm a flash newb. Have just read some tutorials on creating
flash buttons that contain nested movie clips for the different
states. So I went and made 5 of them for my site, all seems great
the rollover effects are just as planned, and I thought I could add
URL link to them in Dreamweaver but thats not working out. Been
googling my *** off to add URL via actionscript (of which I
understand VERY little) , found some code (add the following to key
frame :on(release) {
getURL('
http://www.generic.com',
'_parent');
Major problem is, when I try to add AS to the frame/button,
I'm getting told I 'current selection cannot have actions applied
to it' If I persist and add the script anyway, funnily enough it
doesn't work.
I did an experimental button, consisting of diff coloured
boxes, and AS will apply to that no problem.
I'm tearing my hair out, as I already posted the flash links
on my site and have had to add a note for visitors to use static
links in the interim.
I would love to post the .fla file but I don't see an option
anywhere here to do so.
If some wise soul can help my dumb *** out of this bind it
would be greatly appreciated.

You were using AS2 code, which will not work in AS3. That
particular code is placed on an object, which AS3 does not allow
for, which is why it wouldn't let you... all code in AS3 goes into
timeline frames.
For mouse interctive objects (buttons, movieclips, etc) you
assign event listeners to the object. Let's say your button has an
instance name of "btn", here's a variety of the possible event
listeners avaiable, and I've assigned them to the button....
btn.addEventListener(MouseEvent.CLICK, clickHandler);
btn.addEventListener(MouseEvent.DOUBLE_CLICK,
doubleClickHandler);
btn.addEventListener(MouseEvent.MOUSE_DOWN,
mouseDownHandler);
btn.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
btn.addEventListener(MouseEvent.MOUSE_OVER,
mouseOverHandler);
btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
btn.addEventListener(MouseEvent.MOUSE_WHEEL,
mouseWheelHandler);
All of those "...Handler" things at the end are the names of
functions you create to take action when the listener hears
something it's assigned for... you can name them anything you want,
and here's and example of how the function might look for the CLICK
event...
function clickHandler(event:MouseEvent):void {
trace("clickHandler");
Again, you can name the function anything you want, and the
code within the function can be whatever you need done when the
button is clicked... just be sure to include the argument
"event:MouseEvent" because the listeners throws an argument to the
function and the function needs to expect it. The "event" part of
that is a variable name, so you can name it whatever you like, such
as "e", which is commonly done. The MouseEvent defines the class,
and should be exactly what it is.... a MouseEvent, caps and
all.

Similar Messages

  • In actionscript 3.0 how do i make a nested movie clip button go to a frame on the main timeline

    I am making a website based in flash actionscript 3.0 i have a button nested in its own movie clip, because I have the button expanding to be able to read it i have figured out the only way to do this is by creating it as a movie clipa nd inside the movie clip creating it as a button
    I added an event listener to the blog button by saying,
    blog.addEventListener(MouseEvent.ROLL_OVER,gotoblog);
    function gotoblog(evtobj:MouseEvent){
         gotoAndStop(2)
    this part of the code works it goes to the 2nd frame of the timeline it is in and stops wich is a blown up version of the origanal symbol
    i added on frame 2 a second command
    blog.addEventListener(MouseEvent.CLICK.gotoblogpage);
    function gotoblogpage(evtobj:MouseEvent){
    gotoAndStop("blogframe")
    trace("the blog button was clicked")
    i have named the symbol blog and have name the frame of where the blog page is going to be "blogframe" this line of code at the bottom is where i run into trouble the output window in Flash is saying "The blog button was clicked" just like i want it to. no errors are accouring why than is the playhead not going to frame "blogframe"? if the button is working when i click it the code is right i belive the problem here is it does not want the playhead to go to the frame i want it to. So i gues my question is, how can i make a button withing a movie clip interact with the main timeline?

    I have a similar problem if could please help me i'd really apreciate it!!
    So i have a looping animation of some thumbnails, the hierarchy goes like this
    Scene1(main timeline) -> imgBar(MC)->imgBarB(MC within the imgBar MC)
    My buttons symbols are in the last MC "imgBarB" where i have this code:
    ss1.addEventListener(MouseEvent.CLICK, OneButtonClicked);
      function OneButtonClicked(event:MouseEvent):void{
      MovieClip(root).gotoAndStop("ssbox1");
    I want to control the Btns in my "imgBarB" MC to play a labeled frame(named "ssbox1") on another MC on the main timeline,this other MC goes like this:
    Scene1(main timeline)->ssbox_mc(MC where my labeled frame is)

  • AS3 air project.. nested button in a movie clip .. trying to use a class script

    I have been tring to have a button in a nested movie clip move the timeline along using a class script attached to the nested movie. I can get the buttons to work on the main timeline with another similar class script, but when I have a button within a nested movie and attach similar code to the movie, it doesn't seem to want to work. This is the class code attached to the nested clip.... I guess can an active listener be called if the button isn't yet being visible yet, and should this be done on the Main class script page for the main timeline? Any help would be great!! Thanks
    package  {
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        public class Animation extends MovieClip {
            public function Animation() {
                gotoAndStop(1);
                negBackground_btn.addEventListener(MouseEvent.MOUSE_UP, buttonPressedNegBackground);
            private function buttonPressedNegBackground(e:MouseEvent):void {
                negBackground_btn.visible = false;
                gotoAndStop("negChar");

    Hi,
    Your question is bit confusing, try to explain it. According to what I unsrestand you should use the particular movieClip name with the code to make it happen properly.
    Like :
    (movieClip_Instance).gotoAndStop("negChar");

  • Flash Buttons and a nested movie clip

    I have made my movie clip and now I want to nest it into a
    button. I am not sure what code I need to use for this and how to
    nest it. I want, when a person rolls over the button for the movie
    clip to run. When they roll off of the button the movie clip stops.
    When they click on the button it takes them to a link. If anyone
    can please help me with this, I would SO greatly apprecaite it.
    Thank You ahead of time.

    Thank You SOOOO Much for replying to this. I can't tell you
    how much I appreciate your help.
    I just assumed that was the only way I could do it, (nest
    it.) So, my MC is called jiggle.
    So everywhere you have the my_mc. Should I replace it with
    jiggle.onRollOver etc....?
    ALso you say to attach the code to the action layer in the
    frame the MC appears, not in the MC itself.
    So, in the timeline that I have my MC , I have an actions
    layer. Do I not want an actions layer there? Should I just save the
    timeline with my MC and then cut and paste it into another timeline
    that has the actions layer?
    I actually have 5 of these MC.that all need to do the same
    thing, they are each for a different button.

  • Problems with button inside draggable movie clip

    I am building a click through presentation that has some small text in it. To maintain the design and allow for readability, I have added a zoom feature.
    Here is the structure of the movie,
    Stage - contains pages movie clip and forward/reverse click buttons for changing pages
         pages_mc - contains 24 frames, one page per frame and buttons
    There is a button at the _root level that uses a tweener to scale the pages_mc up to 170%. When this is clicked, it allows the pages to be dragged around the screen so you can look at different sections. When you click the button again, it returns the pages back to their original size stops drag.
    My problem is, on the pages, there are buttons with links to external sites. Once startDrag has been invoked, I cannot touch the buttons inside the movie clip. Is there a way to make these buttons work?
    I need the finished quickly so any assistance is welcome.
    Code below
    magUp_btn.onRelease = function() {
    this._visible = false;
    TweenLite.to(pages_mc, .25, {_x:-250, _y:-193, _xscale:170, _yscale:170});
    TweenLite.to(magUp_mc, .75, {_alpha:0});
    TweenLite.to(magDown_mc, .75, {_alpha:25});
    magDown_btn._visible = true;
    pages_mc.onPress = function(){
    this.startDrag();
    pages_mc.onRelease = function(){
    this.stopDrag();
    pages_mc.onReleaseOutside = function(){
    this.stopDrag();
    pages_mc.useHandCursor = false;
    TweenLite.to(instr_mc, 1, {_alpha:100});
    magDown_btn.onRelease = function() {
    TweenLite.to(pages_mc, .25, {_x:0, _y:0, _xscale:100, _yscale:100});
    TweenLite.to(magUp_mc, .75, {_alpha:25});
    TweenLite.to(magDown_mc, .75, {_alpha:0});
    this._visible = false;
    magUp_btn._visible = true;
    pages_mc.onPress = function(){
    this.stopDrag();
    TweenLite.to(instr_mc, 1, {_alpha:0});
    I don't know how to turn drag off when I zoom out without using the onPress command, but I know that this is probably what is getting in the way of the button working?
    Thanks!

    One option is to make the background of the pages be the draggable parts rather than the movieclips that contain the pages and buttons.  That way, the buttons could be atop the background and not have their access blocked.
    Instead of coding the pages_mc, you would essentially have the background coded for the drag...
    pages_mc.bkgnd.onPress = function(){
        startDrag(this._parent);

  • How to stop , play nested movie clips....

    Hi all,
    I'm calling a swf file in a container_mc, which is in
    another swf file(Interface), by loadMovie() method. The Major
    problem I've stucked with is that in the interface I'm having a
    Play/Pause Button, which is not stopping the nested movieclips of
    the external swf file which is loaded in the container_mc
    movieclip.
    The other major issue is that I'm not able to add a
    progressbar(sliderbar) which runs according to the animation, to
    this interface. Please help ASAP

    I have a similiar situation however the container_mc has me
    puzzled, I'm not sure what that is - perhaps you can answer my
    question:
    I have a master swf called index.swf. The index.swf has a
    main tool bar of buttons which load frames; each frame is named to
    coincide with the main bar button (i.e. genInfo, setup,
    mainentance, etc). This works perfectly. My problem is with Movie
    Clips.
    Each frame has a sidebar which loads external swfs (i.e.
    genInfo.swf) - each external swf is made up of a series of Movie
    Clips which run in succession along the timeline; each Movie Clip
    belongs within its own frame (i.e. MCseg1 is in frame seg1; MCseg2
    is in frame seg2, etc).
    I need to pause and play each individual Movie Clip at will;
    I have built two buttons (pauseBtn and playBtn) into a Movie Clip
    called MCpausePlay. The first frame of MCpausePlay contains the
    pauseBtn; this frame is coded with the global "stop();" In order to
    move to frame(2) which contains the playBtn, the pauseBtn is coded
    with -
    on(release) {
    gotoAndPlay(2);
    The playBtn is coded:
    on(release) {
    gotoAndPlay(1);
    When clicked, the MCpausePlay moves from pause to play.
    That's all I have been able to get this to do.
    How do I code MCpausePlay to pause and then play each
    individual Movie Clip? (How do I get a Movie Clip to control other
    Movie Clips?). Should I code the Movie Clip, the frames within the
    Movie Clip, or each individual button within the Movie Clip? And,
    does this MCpausePlay belong on the Index.swf file, or should it be
    on each external swf? Or perhaps built in to every Movie Clip? I
    have tried all and have not had any success.

  • Problems coding a button within a movie clip to navigate scenes

    Hello there! I've got another probably noobish question to ask about CS6.
    My goal is very similar to the one mentioned in this previously discussed forum question: http://forums.adobe.com/message/837995#837995 and also in this question http://forums.adobe.com/message/4172919#4172919
    I am attempting to make a button inside a movie clip in my first scene go when clicked to the first frame of my second scene. I named the button's instance menu_button_1 and I believe Scene 1 and Scene 2 are the names of the scenes. (If they should have special names or instance names, I did not see where to type them.) Because of the similarities, I attempted to follow the suggestions on those pages. However I probably did some small thing wrong, (Or heck, maybe a huge thing.) which I what I'd like help with to find.
    stop();
    myButton.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(evt:MouseEvent):void {
    gotoAndStop(1, "Scene 1");
    This seemed to be what was suggested to enter. I attempted to modify it to work for me as well. This is what I typed for the button's action.
    menu_button_1.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(evt:MouseEvent):void {
    gotoAndPlay(1, "Scene 2");
    (I removed the stop function because I have music looping in the movie clip that I want to play until the mouse is clicked.) (Also, I picked gotoandplay because I wanted scene 2 to start playing immediately when clicked rather than stopping.)
    I tried variations, including "2" instead of "scene 2" and whatnot. I also tried linking it to differnet places just to see if that would work. It seems like it could link if I only asked for a frame within the movie clip itself, but it couldn't go to any other frames in scene 1 or scene 2. When I attempt, this message is displayed in the output:
    ArgumentError: Error #2108: Scene 2 was not found.
        at flash.display::MovieClip/gotoAndPlay()
        at interactivestgermant_fla::menu_1/clickHandler()
    It seems it cannot find my Scene 2. (It also cannot seem to find Scene 1 when I prompt it to do that.) I'm afraid I'm not sure of what I've entered incorrectly, though I'd imagine it involves how I typed the scene navigation. Should it have an instance name or something? I'd very muchappreciate a push in the right direction. If you need any more info I'll be happy to provide it. Thanks for the help! I very much appreciate it.

    I bet you're absolutely right. However I am not sure how I am misnaming it, as to my ametuer eyes, it seems to be entered properly into the properties box? It does show up as "menu" written in white over the keyframes and also in the properties slot. I can include some images here to help out in correcting me.
    http://girlfoxgirl.deviantart.com/art/Flash-Help-1-395704638   This image shows my movie clip. This seems to be the problem it's having, identifying "menu." Did I do that incorrectly? It looks to be in order.
    http://girlfoxgirl.deviantart.com/art/Flash-Help-2-395704633 This is inside of the movie clip named menu. You can see I did the same to name the button menu_button_1.
    http://girlfoxgirl.deviantart.com/art/Flash-Help-3-395704627   This shows the action I gave to menu_button_1 in which I attempt to have it naviagte to Scene 1 frame 493.
    http://girlfoxgirl.deviantart.com/art/Flash-Help-4-395704623  This shows where I'd like the button to go to. (It is hard to tell if that's frame 493 or 492. I figured that it should be ok either way and if this frame is 492 then it's easily changed once I get the darn thing working in general) (Also, I named the layer "peanuts." I tired entering the name "peanuts" as well but it didn't seem to work either, so I figured "493" is easier since I know that you can go to a specific frame by doing gotoandplay("scene 1" , #) and I'm not sure if it requires any additional stuff to go to a name.
    http://girlfoxgirl.deviantart.com/art/Flash-Help-5-395704687    These are the errors I get. I totally agree with you- It seems very much to be an issue of getting it to recognize the "menu." However I am unsure where I named something wrong. Is this enough info to help you perhaps point out where that is?

  • Button within a movie clip not working

    Hiya,
    I have a movie clip within my swf website that is basically
    an icon that you roll over to produce the menu. The movie clip has
    coding inside it to produce the rollover effect. This is as
    follows:
    stop();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    Whilst this coding works fine for this movie clip, for some
    reason the buttons within the movie clip that appear as you
    rollover them will not work when pressed. I am trying to get them
    to navigate the main timeline, i.e. coding as follows:
    on (release) {
    _parent.gotoAndPlay("home")
    _parent should be correct, I've tried it without and with
    _parent._parent however still it has no effect. From what I can see
    everything should be working fine.
    Is there some reason why buttons will not work within this
    sort of roll over effect movie clip?
    Thanks for your help.

    you can't assign mouse handlers to a parent movieclip and
    expect a child movieclip to respond to mouse events: the parent
    will intercept those events.
    to remedy, either assign all your mouse handlers on the child
    generation movieclips or use a hitTest() for one of the
    generations.

  • Nested Movie Clips

    hi,
    I recently downloaded a flash template that was built on AS2
    and have been trying to figure out how it works for a couple of
    weeks now (excuse my ignorance when it comes to AS). I have a
    question about nested Movie Clips. The way the template is
    constructed invovles a massive amount of nested movie clips and a
    large number of instances of each movie clip. The way i understand
    it is that if an instance of a movie clip is put on the stage and
    given an instance name, any modifications to that movie clip should
    be unique to that instance. However when i modify the colour of any
    of the movie clips i select, it changes the colour of all other
    instances.
    Am i missing something obvious here??
    Thanks in advance for your help
    Kind Regards
    Damien

    Yea. This particular template i am working with appears to
    change and manipulate colours dynamically as you said. Also it
    doesn't have all of the content (txt and images) within the actual
    flash document. They are all loaded dynamically through a txt
    document and external files (jpgs amoungst others) which makes it
    alot harder to edit since i dont fully understand the xml format
    they have in the txt document. As well as this, the template has
    no, and i mean NO documentation what so ever which makes it much
    more difficult to work through. But i guess i will keep pluggin
    away at it :)
    Thanks again for your help Ned
    Damien

  • Can't get nested movie clip to play

    Hi everyone,
    I have a movieclip on one of the frames on the maintimeline.
    Within this movieclip is a nested movieclip which itself is
    contained by another clip. The first movie clip plays to a certain
    frame where I've got some code telling the nested movie clip to
    play at that frame but this nested clip doesn't play. I'm not sure
    if I'm targetting the nested clip incorrectly or whether something
    else is wrong with the code.
    The .fla file can be downloaded at:
    http://www.officelinkonline.com.au/Ad/
    if someone would take a look. The movie clip in question is
    on the layer called text5, and within this mc on frame 15 is the
    code I'm trying to use to get the nested movieclip to play at that
    point. The code used on that frame is:
    this.innerText5_mc.free_mc.play();
    stop();
    pauseAnim = setInterval (this, "nextFrame", 4000);
    I wondered if someone could take a look and see what I might
    be doing wrong? Basically the free_mc clip just makes the word
    "FREE" scale up.
    Would really appreciated any advice.
    Thanks

    Thanks again. I'm a bit worried that you weren't able to see
    the font that I used. All of the text used in the animations are
    static text fields. I don't seem to have the option to embed these
    characters since it's static text. It'll only let me embed if the
    text fields are dynamic. Does this mean I have to change them all
    to dynamic text fields, and if so do I need to embed the font in
    every text field in every frame of the animation or can you do this
    in one place?
    Appreciate your continued help.

  • Trying to connect buttons to a movie clip

    Hi all,
    I need step by step instruction on how to attech control buttons to a movie clip.
    I imported the .MOV clip (a 3D rotation) into the library, and I would like to be able to control where the rotation stops, by use of a slider or clicking a button. Can some one please tell me how to do this in an easy way if possible?
    Any help would be greatly appreciated so much.
    Many thanks,

    drag your movieclip to the stage and assign it an instance name, say movMC.  create your button and give it an instance name, say btn.  you can then use:
    btn.onRelease=function(){
    movMC.gotoAndStop(your frame label or number here);

  • Nested Movie Clip Link Issue

    Hi All,
    First off, I am a noob to Flash and AS3, but have learned a lot over the last few weeks working on this project (http://www.jtapia.com/vcore/vcore_eng_up.html - go to COMPANY INFORMATION > PROCESS SUMMARIES to see the problem).
    My problem is I have a nested movie clip that houses a text URL link to a PDF file in another nested MC. The link works fine OUT of the parent clip but does not work when nested inside the clip. The odd thing is, I have almost the SAME exact thing in the navigation and it all works fine (except it isn't a URL link but I do use an event listener to look for MOUSE_OVER, etc).
    The only code refrencing the parent clip is:
    1) The fluid layout code (a stage event listener)
    2) At different stages in the main timeline, I adjust the nested timeline to various points in the nested clip (i.e. - MovieClip(mc_page_text).gotoAndPlay(2);  )
    Everything works great EXCEPT the URL links. The animations, everthing else works - no errors.
    I've been reading and searching for help on this for hours and can't find a solution. Any help is much appreciated!
    Thanks!
    Jake
    PS - if I left out critical info, please let me know and sorry in advance

    Hi kglad,
    There really isn't any code...the parent clip (main timeline) is on a stop(); frame - the link is via the STATIC TEXT properties box under OPTIONS > LINK. I think that is what's so confusing to me. The only other code is this (as I mentioned in the first post):
    the fluid layout code:
    function resizeListener (e:Event):void { //fluid layout code
    //    trace("stageWidth: " + stage.stageWidth + " stageHeight: " + stage.stageHeight);
        mc_page_text.x = ((stage.stageWidth / 2) - 258);
        mc_page_text.y = ((stage.stageHeight / 2) - 161.5);
        mc_logo.x = ((stage.stageWidth / 2) - 354.05);
        mc_logo.y = ((stage.stageHeight / 2) - 244);   
        mc_contact.x = ((stage.stageWidth / 2) + 132.95);
        mc_contact.y = ((stage.stageHeight / 2) - 239.7);       
        mc_nav.x = ((stage.stageWidth / 2) - 500);
        mc_nav.y = stage.stageHeight - 178;
        mc_footer.x = ((stage.stageWidth / 2) - 500);
        mc_footer.y = stage.stageHeight - 15.05;
        mc_bg.width = stage.stageWidth;
        mc_bg.height = stage.stageHeight;
        mc_fade_out.width = stage.stageWidth;
        mc_fade_out.height = stage.stageHeight;
    And these two references to the mc_page_text MC (the parent clip of the actual STATIC TEXT items) from the main timeline:
    MovieClip(mc_page_text).gotoAndPlay(2);
    MovieClip(mc_page_text).gotoAndPlay("textFADE");
    Thanks for the help!
    Jake

  • Help with assignment- buttons that control movie clips

    I am pretty new to flash and my professor gave us an assignment with little help or tutorials.
    He wants us to create a SWF that features a house and it's front yard and two buttons.
    One button that says Sunrise, and one that says Sunset.
    When I push the sunrise button, the sun needs to rise above the house and stay there.  When I push the Sunset button, it needs to set- and then a ufo needs to land on the lawn.
    So i think I have a pretty good grasp on the assignment, but the actionscript is throwing me off.  How can I make buttons that will control the sun movie clip to rise- stay above the house, and then set?  The ufo is a whole new matter.   The sunset button should make the sun lower and then a ufo land on the lawn.
    Please help explain/link me to the proper tutorials.   One thing that i'm worried about is that the sun will rise- and then stay above the house even if i click the sunset button.
    Your help is greatly appreciated.

    Well i can think of a few ways to do this.
    Depending on what you have been taught so far you should be able to do this if you know how to make a button, a movie clip, and the basic script for the timeline. ie. play,stop, gotoandplay etc.
    I understand you have been set a task and you want the answer straight away. But i doubt he would have given you anything you couldn't handle. Also I learnt more from trial and error and searching the net than from most of my teachers at coll and uni, It's frustrating i know, but the buzz you get when you finally crack it is amazing. Stick in there!
    That being said i remember the panic I suffered and like to help so here's a thought:
    You could just have the 2 buttons play a basic movie clip. The sky could rotate one way to make the sun rise and add a "stop" in the actions to make it stay there, and to the left to sunset with both images together but not being shown all the time by using a mask. You could even add in the ufo to the clip but this would only work if you added an extra part to the movie so that when the ufo has landed it flys out again and then begins to rotate the sun and moon again. ( buttons would be dissabled during the play modes to avoid chaos) This is just a quick thought. I'm sure there are several ways of doing this depending on how fancy it needs to be.
    If your teacher really has given you no notes on buttons,movieclips and actionscript i would sujest Adobe TV. Nice videos that explain step by step. OR try downloading a tutorial file with buttons and movie clips and look at the coding they use in the file. Thats how i have learnt most of it since finishing Uni.
    Good Luck
    Cobie

  • 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

  • Working with an Movie Clip as a button.

    I am creating a button with a 20 frame disolve into a page upon entry.  I want the button to play a 20 frame disolve back to it's original state when the user rolls out.  I want the movie clip to play from frame 21 to the end of the mc and then become inactive.  I can get the button to disolve out but the user will not be able to use it after that first roll over.  I was thinking of trying to add a time delay from when the first action of the rollout occurs to when the disolve is complete.  How do I include a 20 frame delay in the roll out sequence?
    Here is my code so far:
    //Index Button
    mc_buttons.mc_index.onRollOver = function ()
        this.active = 1;
    mc_buttons.mc_index.onRollOut = function ()
        this.gotoAndPlay (21);
    //This is were I might include the time delay.  Any suggestions?
        this.active = 0;
    mc_buttons.mc_index.onEnterFrame = function ()
        if (this.active == 1 && this._currentframe == 1)
                this.gotoAndPlay (2);
            }else if (this.active == 1){
            }else{
            this.gotoAndStop (1);
    mc_buttons.mc_index.onPress = function ()
        getURL ('#');

    The clip has a stop action at frame 1.  On rollover I want it to play at frame 2 until it hits the next stop action command at frame 20.  On roll out I want the clip to play at frame 21 and continue to the last frame (40) then loop back to frame one and stop.
    So that the user can go back to the button after the first time I want the link to become inactive.  The frame rate is 32 fps so I only need a one second delay from the this.gotoAndPlay (21) command to the point where the link is de-activated, this.active = 0;, so that it can be activated again, this.active = 1;.
    I found a line of code on another forum, setInterval(nextThing, 1000);, but it didn't work.
    Any Thoughts?
    Thanks

Maybe you are looking for

  • Media encoder time remaining stops decreasing and processor drops to zero. Time elapsed keeps going up! File won't complete!

    Please help anyone who can. Firstly I know I have very little RAM on my system, only 4GB but I've been rendering the same kinds of files for weeks with no problems until the last few days. They biggest issues is as follows: My timeline in Premiere Pr

  • Port Forwarding in OS X

    I've been having trouble with my gaming console, the manufacturer suggests I enable Port Forwarding, unfortunately I don't have a stand alone router, I'm using my iMac's Airport Extreme card as a router using Internet Sharing. I don't see any option

  • Google maps, in ADF 11

    Do you have anybody experience with subject? I have table with structure: ID, LONGITUDE, LATITUDE, HEMISPHERE1, HEMISPHERE2 and some next descriptions fields. I want to show for that record application from maps.google.com (window with map for locati

  • Error installing AIR.InstallPackage

    my computer automatically restart when installing AIR.InstallPackage but after that i cant found that installed package, and as additional info i run XP with AMD 64 Athlon X2 3600+ thanks

  • How can we disable user to login Hyperion Workspace

    We understand we can set to admin mode for Hyperion Planning so that only administrator can login the system. Any other ways to disable users to login Hyperion Workspace? We are using Hyperion version 11.1.1.1 Thanks a lot!