Highlight the button when the slide switches slide

Hi all..

I have the slideshow which works perfectly with the help of this forum... the 3 external loaded SWFS rotate with mitigation effect in / performed themselves as well as by clicking on the button. What I would add is to have the buttons change appearance (tint or whatever it is) - just to show what drag the user sees currently. I am very new to AS and I would appreciate it really is someone would just point me in a direction where I should place this function. Thank you very much advance - here's my code:

Fix music
var req:URLRequest = new URLRequest ("squeeak3.mp3");
var sound: Sound = new Sound();
controller: SoundChannel var = new SoundChannel();

var b:Boolean;

{if(!b)}
b = true;

function soundLoaded(event:Event):void
{
controller = sound.play (0,1000);

play_btn.addEventListener (MouseEvent.CLICK, playSound);
stop_btn.addEventListener (MouseEvent.CLICK, stopSound);
}

function playSound(event:MouseEvent):void
{
SoundMixer.stopAll ();
controller = sound.play (0,1000);
}

function stopSound(event:MouseEvent):void
{
Controller.Stop ();
SoundMixer.stopAll ();
}

sound.addEventListener (Event.COMPLETE, soundLoaded);
Sound.load() (req);

}

Import classes for easier use
Import fl.transitions.Tween;
Import fl.transitions.TweenEvent;
Fl.transitions.easing import. *;

Timer
var tl:MovieClip =;
var slideDuration:uint = 8000; / / or use everything which
var slideTimer:Timer = new Timer(slideDuration,0);
slideTimer.addEventListener (TimerEvent.TIMER, autoAdvanceF);

var previousBtn:SimpleButton;


var btnA:Array = [one_btn, two_btn, three_btn];

function autoAdvanceF(e:TimerEvent):void {}
nextButtonF (previousBtn) .dispatchEvent (new MouseEvent (MouseEvent.CLICK));
}

function nextButtonF(btn:SimpleButton):SimpleButton {/ / use the class of your buttons type}
for (var i: uint = 0; i < btnA.length; i ++) {}
If (btnA [i] == btn) {}
return btnA [(i+1) % btnA.length];
}
}
Returns a null value.
}

Load external SWF into the hand
var Xpos:Number = 0;
var Ypos:Number = 0;
var loaderA:Array = [];

Inclinometer universal function (whenver no matter which button is clicked, the charger will be deleted

function btnClick(event:MouseEvent):void {}

slideTimer.reset ();
slideTimer.start ();

previousBtn = SimpleButton (event.currentTarget);

var loader: Loader = new Loader();
loaderA.push (loader);

var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + event.target.name + ".swf");
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);

Loader.Load (newSWFRequest);
Loader.x = Xpos;
Loader.y = Ypos;
Loader.Alpha = 0;
addChildAt (loader, 0);
}

var tween: Tween;
function loadComplete(e:Event):void {}
for (var i: int = loaderA.length - 2; i > = 0; i--) {}
TL ["tween_" + i] = new Tween (loaderA [i], 'alpha', None.easeIn, loaderA [i] .alpha, 0, 1, true);
TL ["tween_" + i] .addEventListener (TweenEvent.MOTION_FINISH, onMotionFinish);
//
}

e.target.loader.contentLoaderInfo.removeEventListener (Event.COMPLETE, loadComplete);
Tween = new Tween (e.target.loader, "alpha", None.easeIn, 0, 1, 1, true);
}

function onMotionFinish(e:TweenEvent) {}
Loader (e.Target.obj). Unload();
removeChild (e.target.obj);
loaderA.splice (loaderAIndex (Loader (e.target.obj)), 1);
e.Target.obj = null;
}

function loaderAIndex(loader:Loader):int {}
for (var i: int = 0; i < loaderA.length; i ++) {}
{if(loaderA[i]==Loader)}
Return i;
}
}
Returns - 1;
}


Button Listerners
one_btn.addEventListener (MouseEvent.Click, btnClick);
two_btn.addEventListener (MouseEvent.Click, btnClick);
three_btn.addEventListener (MouseEvent.Click, btnClick);


btnA [0] .dispatchEvent (MouseEvent (MouseEvent.CLICK)) of new;


You are welcome.

Tags: Adobe Animate

Similar Questions

  • How can I remove a button in the slides of interaction of process?

    I see that I can add a button when using slides of interaction of the process, but I can't figure out how to remove a button so that I only have three instead of four.  Any ideas?

    Double click on the offending button. When the text of the new label is available to change, there should be a negative sign "-" button to the left. Click to remove the button.

  • The slider side does not move when I put the mouse on it, I need to click below or on the arrow down. Once he left the first place, it moves. Also some applications like changing the city the weather button won't change.

    The slider side does not move when I put the mouse on it, I need to click below or on the arrow down. Once he left the first place, it moves. Also some applications like changing the city the weather button won't change.

    The extension of the Yahoo! toolbar and the extension of Babylon have been reported to cause a problem like that. Disable or uninstall the modules.

       * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    
  • Captivate 8 - effects on Smart forms do not work when there is a button automatically paused on the slide.

    Hello

    We have built a course online with Adobe Captivate. I have included on each two buttons slide that allows you to move forward and the other to return back. they have the auto-pause set on them (pause after 1.5 seconds) which I suppose may have something to do with my problem. When I add a smart shape and try to add an effect to it, the effect does not work. I realized that if I move back, and the next button on the script to display ONCE the effect is to show, the effect will work, but it seems ridiculous for buttons at random to see, for example, six seconds in where the slide started. Is it possible to do this job all together without moving the timing buttons?

    Try to set up the 'Pause after' bit for your buttons so that the synchronization stops after only 17 seconds.

  • How to create buttons for each slide in the slide show

    I currently have a slideshow with prev and next buttons.

    but I would add buttons numbered for each slide to image-base.

    with a static number for the current slide has a circle colorful around this number.

    I can create static number with circle colored in Photoshop, and add a layer,

    but it's a lot to do this for all the numbers work.

    Is there a better way to create the numbers highlighted for the current slide?

    For the numbered buttons that link to the slides not active, I can create numbers in Photoshop and import images into Flash.

    then convert to symbols and assigns actions to them,

    But it's also plenty to do for all the numbers work.

    Is there a better way to create numbered slide buttons inactive?

    I would also like to have a function to hover over the numbered buttons,

    It changes from plain image from number to number with circle colorful as I want to use for the current slide.

    How can I assign a hover button symbol function, which will load another image or symbol?

    Try to think in terms of having reusable symbols.  Think what it through before you try it.

    Use a movieclip instead of a button symbol.  Have a dynamic textfield in this movieclip to the number and value of the textfield object to not be selectable.  Have a picture of this movieclip where it highlighted as one (selected) and the movieclip go there where you are on this slide.

    Use the textfield for the number - assign dynamically so that you don't have to import an image for it.  Use as many of these clips that you need for all your buttons.

    Have functions that reset all buttons at the same time so that when you move to a new slide, selected earlier dates back to mormal... following with setting one newly selected in his "selected" frame

  • No sound when previewing the slides - only Captivate 1

    I try to get the slides to play the soundtrack when I preview the slide to synchronize some highlight boxes. He used to work, but after using the Audio button to listen to a track, he stopped. Now, when I saw a slide as no sound, but it works with the audio button and it's ok when published, but not preview. Any ideas?

    Hi Catkim

    Before resorting to something a little on the involved side, by chance are you sighted in the editor? When you press F3, the SPACEBAR or clicking the play button bit just above the toolbar to the stage where it says "Slide Properties...". » ?

    If so, it is very likely that you have managed to inadvertently, click on the small speaker icon in this area to cut the preview playback.

    That give it a go and see if it's what it is.

    See you soon... Rick

  • Change in Position of the slide show Navigation buttons

    Hey,.

    I do a slide show full page and he looks good in design, but when I Preview in both the muse and a browser, the slide show movies of next button in the middle of the page.

    That's what it looks like the design:

    This is what it looks like in preview:

    Here is my page settings:

    Also as a side note, I can't seem to select start and on my slide show prev buttons more.

    Thanks heaps.

    Hello SkykZelda,

    Try to select the left/right arrows individual slideshow and pin them to the right and to the left of the browser accordingly.

    Kind regards

    Ankush;

  • Tip action to show only a previous button on a slide so the learner clicked on the button Submit on Drag and Drop

    I am a user of long date Captivate and have dabbled with advanced Actions and Variables, so know just enough to get me in trouble. Hoping someone can help me with what I hope is a simple tip action:

    I am currently using CP8 and created a training where learners click on a map of building to go to different "rooms" to complete an interaction drag-and - déposer a certain topic related HR. The problem is that some of my learners test forget what 'rooms' they have already read and will click on those they have already visited. I added a back button, so that they can return to the map if they made a mistake, but now they are able to leave the slide without completing the interaction drag and drop.

    Basically, I need to hide the back button unless the learner has already completed (for example, the user clicks on the button submit to) the Drag and Drop interaction, but I'm not sure how to set up. Can anyone help?

    Thank you!

    Hide the button back to begin with. A tip action can be triggered by an event the success and failure of the & slipped. I guess that you will need at least two commands:

    • View the "back" button
    • Go to the next slide.

    It seems the simplest solution. You can also ignore the slide D & D when they enter a second time, but then you will need a Boolean variable to be turned on/off by these same events and a conditional action on which checks this variable and immediately jumps to the next slide when it is set to 1.

  • "Go to the slide" Action - Advanced button do not advance slides

    I have some questions, do what I think is a simplistic 'Advanced Action' branch.  I am running Adobe Captivate 8.0.1.242 on a Windows 7 computer - I hope it's an easy solution for a guru of Captivate.

    I have a menu widget drop-down, which assigns a value to a variable "DEM" - according to the results of that variable, I want to jump to a specific slide.  Currently, I have correctly inserted the menu widget drop-down and he had to assign a value to the variable.  I made a simple action that jumps to a specific slide based on MNES and changed the action of 'Success' of the button continue my slide to run the Advanced tip Action.  But when I click on the button, I hear a 'click' sound, but the slide does not advance.

    I debugged it (unsuccessfully) in two ways - I made a text box with the DEM variable to confirm that it was written in (is) I also tried to change my the tip Action to increment a variable nominal if the DEM was that I selected, who also worked - so my "if" statement is to work, it's just the 'Skip to Slide' which , for some reason, does not work.

    In addition, there is no quiz before or between the conditional action and the slide that I pass.  I tried to assign a button continue earlier as "Include in Quiz" to get the button to work - but that did not fix it it.  I also tried the alternatives people have met - tried to run in the browser vs. Overview, tried to remove the button continue the break (another button break for drag left would not anticipate).

    Cap punctured my slides/Advanced Action - very appreciate all help!

    AdvancedAction.JPGBranchingSlide.JPGDropdown.JPG

    Several reasons possible, but I do not accept more (too dangerous) debug files.

    Why did you include CAADR, the value from the interaction of the drop-down list, quotation marks? Variables and literals are case sensitive and must be accurate. I guess you did? Because Captivate will only add double quotation marks if the value is at least two words.

  • Toggle CC button advances the slide

    Hello

    I have a path with a transparent button that is activating / deactivating the captioning encoded or not. Each slide is a break when it reaches the end so that the learner can click on the next button. However, if the learner reaches the end of the slide and happens to click twice on this toggle CC button, it advances the slide.

    Any ideas on how to stop doing that?

    Thank you

    Kristen

    You must create a tip Action that will run the activation/deactivation process, then link the button to the peak Action.

    See you soon... Rick

  • Captivate 8 button Retake Quiz - return to the slide of the wrong question

    Hello

    I have not yet fixed my problem of button retake quiz. I have a project with several questions of practices not classified (hot spot, drag n drop, 2 several multiple choice answers) followed by 9 questions 'real' test. I want students to return 'true' test questions when they click on the recovery test button. Now, the recovery quiz button brings back me to the first multiple choice question in the practical section - not the first 'real' test question.

    In the Interactions for the first multiple choice question (and the 2nd as well), I see that nothing appears in the neck to include in the questionnaire and responses report = no, but an entry appears in Objective ID and ID of Interaction. I don't see this credential anywhere in the QUIZ tab - I wonder if this is what pushed the button quiz in this slide.

    AdvInteractionShot.png

    Attempt to correct:

    I saw the response of Lilybiri to "Captivate 8 resume Quiz" entry. It seemed like the perfect solution to my problem. So I created an Action conditional Advanced:

    If cpQuizInfoAttempts is greater than 1 go to (1 'real' test slide #) continue on the other

    The 'real' 1 slide test I put this conditional action on enter.

    It did not work. Please help me determine what I am doing wrong and how to fix this quiz of recovery. THANK YOU VERY MUCH! I'm getting desperate!

    Smiles

    Susann

    You must have read my response wrong. Condition is OK, but you have to trigger on enter for the first issue of practice, not on the first slide of the real issue. As the recovery button will take the user to the first practical question slide, this action will be evaluated and the jump to the first slide of the real question occur. Assumed, here are that all the slides in practice before all the question slides.

  • Image button. How to mark on the slide?

    Hello!

    I wonder how mark, put the attention on the picture button?

    I'm working on a project where I use the navigation customized with Image buttons Panel. Some slides changes without navigation. And some slides paused until the button pressed. I would be careful on the image button, when the user has to push.

    Is it standard tool for this, or should I use hightlights maybe?

    Thank you)

    You probably just want to use an effect, regardless of the one you prefer. Click on the button, then go to the 'Window' menu and select 'Effects' to open the effects Panel. At the bottom left you see a button 'Add effect', click on that and experiment with your options.

  • A menu button using custom on the slide to open and close the table of contents of Captivate 7

    Hello

    I have a custom menu button. When the user clicks on I want to see the table of contents, (I see there is a State to display the table of contents), but when the user clicks on the same menu again button on this slide how to hide the table of contents. IE, go hide and show.

    Thank you

    Captivate 7.0.1 contains a rocking action that allows you to enable a Boolean variable (for example the system variable that displays or hides the table of contents), and shutdown.  Use this action.

  • Is there a way to select the slide objects (images, buttons, etc.) in a list?

    Is there a way to select the slide objects (images, buttons, etc.) in a list so that it is easier to choose a specific item when you edit a slide Captivate? The same way as 3D drawing programs have lists of objects in the scene? I have several articles on top of the other, and it becomes a pain to select the correct element.

    The scenario presents items in a list. And clicking on the list allows you to select them. You can also hide, show, lock, and unlock it.

    See you soon... Rick

  • Insert Slide button eliminates the slide duration

    I use Captivate 5.0.2 and met with something 'strange '.

    I have create a slide with a duration of 5 seconds with a preference "to continue to the next slide.

    I then put a button on this slide, start at the beginning of the slide, in order to define the properties of this button to access the slide 3.

    I then publish, and when I look at the presentation, it takes until I click the button, and then it jumps to slide 3.

    I expect that if I sat there on the screen for 5 seconds, he would go to the next slide.

    Maybe I'm usng the button in order to hurt, but I couldn't find any other object that seemed to accomplish what I wanted to do.

    I figured this out.   in the button Preferences section, there is an option "pause after", you need to disable.

  • Slide paused continues when I click anywhere on the slide - why? (CP5)

    Hi - end of the CBT I create, I present some challenge questions.  I do not use the Quiz feature that I have not need enter the student responses.

    I added a blank slide with an image with captions of reversal.  I added a "continue" button, then they can go to the next page, after they are made to review the image.

    Everything works fine, the breaks of slide, so they have time to right-click the image, and leads to the next page when you click on the button continue.

    The strange thing is that it also goes to the next page when I click anywhere on the screen.  This only happens on these three blades, the rest of my film does not progress when you click on the background.

    For the slide, I put it on enter = continue and exit = No Action display time = 3 seconds

    For the button continue, I put it on success = go to the next slide, attempts = 1, the last attempt = go to the next slide, break after = 1.1 s

    Anyone know why when I click on the slide, it goes to the next slide?  I want to slide to pause until it only the button is clicked.

    Thank you!

    Your continue button is being set up so that if the learner does not click on the button action of the last attempt will be used.  By default it is to continue.  So while you want only the user to go to the next slide, if they clicked on the button, by setting attempts on 1, you said Captivate any click outside the button should invoke the action of breaking for this button, which will be to continue to the next slide.

    Try setting your button to the attempts of the infinite.  This disables the action of failure.

Maybe you are looking for

  • Question about webcams with Macbook Pro 13-inch, mid 2010

    Bear with me as I am the most fundamental basic Mac users. I am currently using a MacBook Pro (13-inch, mid 2010) with OS X Yosemite 10.10.5 I don't use Skype or FaceTime or something like that. Recently, I joined an online course in which they said

  • divide table of Boolean

    Hi Sir, I want to ask how to divide an array of Boolean 1 d. for example, I want to put the first 32 bits in column 1, then the 2nd column to and so on... I just want to have a table 2D-32 bits-per-cell... Thank you

  • Drivers for hp probook 4520 s

    I have the computer laptop hp probook 4520 s(Energy star) with windows 8.1 operating system. but I could not find drivers-windows 8.1 operating system. What should I do?

  • BlackBerry Z10 Adobe Flash

    Adobe Flash has not installed upgrading OS 10.3 on my help Z10

  • Hierarchical queries for subnets

    I need to write a hierarchical query for quite a number of (contiguous groups of IP addresses) IP subnets. What I'm hoping to do, is let the database do the bulk of the work here and I will not need to write code to do this. I'll do that if I have to