Placing a stop to Tweened Buttons
Hi Guys,
I realize I might have done this the hard way, but bear with me as I am brand new to flash and need to get a simple presentation done for my boss by the end of the afternoon.
I have created set of dials/meters with moving arms that change as buttons are pressed. The arms move based on a "Classic Tween" set-up I created. I then applied my buttons to the flash document and then coded in some "gotoAndPlay" on an actions layer to get the arms on the dials to move when I click on the buttons. My problem is that since I have 3 buttons (High, Medium & Low) and the tweens follow one frame right after another (0, 41,78) there is no stop. When I click on Low it plays the low tween, the medium one, and the high tween. When I click on the medium it plays both the Medium and then the High. The High button obviously only plays itself. I don't know how to insert a stop between these buttons. Can you guys help me? I have pasted my simple code below os you can see it:
stop();
low_btn.addEventListener(MouseEvent.CLICK, onLow);
function onLow (Event:MouseEvent):void
gotoAndPlay(0)
med_btn.addEventListener(MouseEvent.CLICK, onMed);
function onMed (Event:MouseEvent):void
gotoAndPlay(41)
high_btn.addEventListener(MouseEvent.CLICK, onHigh);
function onHigh (Event:MouseEvent):void
gotoAndPlay(75)
Please, please, please help me.
Thank you so much.
This answer seems intuitive, but I am wondering how to add that stop?
Do I add the stop to my Actions Layer or on the layer that has the actual moving arm?
Also, how to apply it to the specific frame? Just put the frame number in the paranthesis?
Thanks
Similar Messages
-
Is it possible to stop a tween in a movie clip
Hello Kglad and other forum expert!
I have a movie clip (really just an image converted to a
movie clip).
I a "zoom" effect set on two layers - on for the zoom mask,
and the other for the base image.
I just use the modify/transform in some keyframes to have the
image motion tween from normal size to a larger size.
The tween (aka zoom) is shown through the mask layer.
I did not create the motion tween using actionscript, but in
the timeline between 2 keyframes.
Is there a way I can stop the tween when the movie plays ( by
clicking a "pause" button).
Thanks for a great info resource,
eholz1you can use the stop() method of movieclips to stop the
timeline of the tweening movieclip. you can use the play() method
to continue to tweening. -
At first I had the stop/refresh buttons merged, which I hated so I tried putting spaces and things between them to stop their unholy union, but instead it has now made my refresh button dissapear in anger for not being allowed to see that dirty stop button! I cannot make it come back! Even if I put it on the toolbar in customize and it shows up, the moment I close it it has gone again.
Firefox 4 uses a combined Stop/Reload/Go button that is positioned at the right end of the location bar.<br />
During the page load process it shows as a Stop button and after the loading has finished the button is changed to a Reload button.<br />
If you type in the location bar then that button becomes a Go button.<br />
You can middle-click that Reload button to duplicate the current tab to a new tab.
To move the Stop and Reload buttons to their position to the left of the location bar you can use these steps:
* Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
* Drag the Reload and Stop buttons to their previous position to the left of the location bar.
* Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
* Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.
See also:
* http://kb.mozillazine.org/Corrupt_localstore.rdf -
When i placed a AccessKey to Submit Button (Eg: AccessKey="S"), and pressed Shift + Alt + S, the focus is going to Submit button and as well as Submit operation is also performed. Is this the expected behaviour in FireFox for AccessKeys
What were you expecting when using an accesskey?
I use that also on this forum to submit my posts:
<pre><nowiki><input accesskey="s" class="btn btn-important" value="Post Reply" type="submit">
</nowiki></pre> -
I upgraded to v 10.0.2
I can't access the reload page and stop loading page buttons on the navigation toolbar, or add them to the toolbar, although I see them on the toolbar when I select Customize.Hi,
Please try to '''Reset toolbars and controls:''' and '''Make Changes and Restart''' in the [https://support.mozilla.org/en-US/kb/Safe%20Mode Safe Mode] start screen. Please note that you may have to customize the previous personal settings again. [https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars Customizing] -
Stopping Yoyo tweens...
Been racking my brains on the issue of stopping a tween
onRollOver of a movie clip. I've used tween.stop()....and delete
tween....created a boolean variable that flags false when I
rollOver the mc. Not sure what else there is...all I can get is a
sort of jiggle from the clip which should stop where the mouse had
contacted it. Your help would be very much appreciated!!!There isn't a lot that you can do with Flash's built in Tween
class. You can do much better if you use a third party Tween
library. I use TweenMax. Here's a link to the AS2 version:
http://blog.greensock.com/tweenmaxas2/ -
i have asked around and double checked my phone - but have not found any way to stop the home button (its the only button at the bottom of the phone). i feel there is no need for it to vibrate and as it is, the battery life is short in this phone.. so i want to stop the vibration and save as much battery as possible.
hope someone can help me in this.Andrew, yes this is a good idea, it seems that way.
venkyx, please include the following in the bug:
*Build Id
*Phone type
*Steps to reproduce
* What is expected
* What actually happens
bugzilla.mozilla.org is where to file the bug and please post back the url to the bug here. I will ask about the support for the device. -
see question
In Firefox 4 by default the Stop, Go and Reload buttons are combined and attached to the right hand edge of the location bar.
When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
If you want separate buttons, right-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar -
Stop and play buttons...
How would I go about adding stop and play buttons to a slideshow?
stop1.addEventListener(MouseEvent.CLICK, stop1);
play1.addEventListener(MouseEvent.CLICK, play1);
function stop1(event:MouseEvent){
if(this.currentFrame == 1)
{ gotoAndStop(this.totalFrames);
function play1(event:MouseEvent){
if(this.currentFrame == 1)
{ gotoAndStop(this.totalFrames);well idk if the code is even right i need help? The way the slide show is working is i have it on the timeline.... With this code it doesnt play automatically and when i push play it goes through them in like 2 seconds and you can't see anything?
stop1.addEventListener(MouseEvent.CLICK, stopSlide);
play1.addEventListener(MouseEvent.CLICK, playSlide);
function stopSlide(event:MouseEvent):void {
stop();
function playSlide(event:MouseEvent):void {
play(); -
When are we going to get stop and reload buttons in Safari?
Hi,
The reload / refresh button is in the Safari address bar already on the right.
I see that going back as far as Safari 4.1.3 that is.
Carolyn -
Stop and refresh buttons (one will disappear while the other is active). I have found numerous websites that just don't want to load on the first try, now I am unable to refresh it (usually in a new tab) because the button disappears. BTW 255 limit is BS.
You can try to press the ESC key to stop loading the page if you see the Stop button instead of the Reload button. You can also reload the page via F5 or Ctrl + F5 (cache bypass).
Firefox 4.0 has a combined Reload and Stop and Go button that appears at the right end of the location bar.
To restore the Firefox 3 appearance you can use these steps:
* Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
* Move the Reload and Stop buttons to their previous position at the left side of the location bar.
* Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
* Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons. -
Stop and refresh buttons (one will disappear while the other is active). I have found numerous websites that just don't want to load on the first try, now I am unable to refresh it (usually in a new tab) because the button disappears. BTW 255 limit is BS.
You can try to press the ESC key to stop loading the page if you see the Stop button instead of the Reload button. You can also reload the page via F5 or Ctrl + F5 (cache bypass).
Firefox 4.0 has a combined Reload and Stop and Go button that appears at the right end of the location bar.
To restore the Firefox 3 appearance you can use these steps:
* Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
* Move the Reload and Stop buttons to their previous position at the left side of the location bar.
* Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
* Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons. -
How to stop a tween in full swing?
how can I stop a tween in full swing? stop won't work...
(flash 8 as2)
import mx.transitions.Tween;
import mx.transitions.easing.*;
var animTween:Tween = new Tween(thumbnail_mc, "_x",
Strong.easeOut, thumbnail_mc._x, -menu, 50, true);
function buttonHandler() {
animTween.stop();
many thanks!!!stop() works just fine. It must be that within
buttonHandler() you don't
have scope to animTween. Try tracing animTween:
function buttonHandler() {
trace(animTween);
animTween.stop();
I'm thinking you won't see [Tween], but instead will see
undefined.
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
CP7 stopping a few buttons from complete
I have developed a course where learners have to correctly click through a series of screens to complete four scenarios. Many of the buttons are set to report as part of the 'quiz' so that we can do some click-tracking for common errors, but only 4 buttons are added to the score. The last button of each scenario is the only button that is adding to the point total. Passing score is set at 4 points, because there are 4 scenarios. The learner can navigate through the four scenarios in their own track, and once the each scenario is completed correctly, they are returned to a switchboard which has a checkmark graphic displayed for the scenarios that have been completed.
So...here's my problem I can't figure out. Regardless of order the scenarios are done in, two or three buttons from the end, the entire module hangs. I have never been able to finish all 4 scenarios. The first tree work great, the fourth stops a few buttons from the end. Is there a problem with the .swf/connect reporting that the learner is getting CLOSE to passing or something? I could see a problem once they complete the fourth scenario, but a few buttons before?
I have CP7 running on Win 7 (64bit) using Adobe Connect for our reporting. I have the latest Flash player on my system. I have tested the module by publishing to Connect and by running the module locally (from my desktop). I have tested in Firefox and IE. I have published using Flash 10 and Flash 11. I have even opened it in CP6 and published in Flash 9. Regardless of file location, flash version and/or browser combo I use, I am still getting the same issue.
Any ideas/suggestions/places to look for a solution?RobWard,
Thanks for the advice. I like the idea of inserting captions that display for the rest of the project so I can debug variables. I had never thought of that and I will use that in future projects, as well as this one.
As far as this specific question goes, I found a solution before you responded that I wanted to document here, and maybe get someone to clarify why it worked. I noticed that I was using the quizzing functionality without having a single question slide. I was somply reporting from custom buttons. I kept reading that that quiz reporting slide had some functionality to it (particularly reporting completion, if I remember correctly), but I did not have a quiz results slide (because I had no question slides).
I added a fake question (as slide #1) with zero points for the question. When I inserted a question, the quiz results slide automatically was added to my project (as the last slide...slide 119). I hid both the results and the question (and made sure to remove them from the TOC...) and the problem never happened again. All reporting was perfect and it never hung on the last of the four scenarios.
Problem solved...just not sure exactly why... -
Using Firefox 6.0.1 on Windows XP SP3. When I navigate to certain sites (nytimes.com for example), Firefox loads most of the page, but some graphics are missing and the green circle in the tab keeps spinning. Typically I have to click the Stop Loading Page button, then click the Reload Page button to get Firefox to load the remaining items in the website. Seems to get stuck with images.
This type of problem is normally caused by using an incompatible add-on. For details of how to troubleshoot this to find out what one is causing the problem see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
Maybe you are looking for
-
Does anyone know how to generate fixed format text file? I have few fields in the select which are null and hence messes up the file format, as space does not take up same amount of character width than any alphabets. Basically I want to generate fix
-
help me how can i get my phone to work in movistar which is my carrier in ecuador gsm . sprint iphones does have sim card slot but i'm not sure if it will work for gsm what do i need to do , how do i unlock it
-
Authorised dealer in my area says only models with ae is original others not is it correct
Can apple return non approved products ? Will I got I pad and I didn't know that there is some products in Saudi Arabia are not original apple products and I just read that only I pad with products number ends with AE only original so what they call
-
Business partner - user ID relationship
Hi experts, When I have a business partner number (e.g. from a requester or goods recipient) how can I derive the user ID? Is the a table or a function module that will help me? I know that I could search in PPOMA_BBP but I need to do this in ABAP co
-
No EL support in JSTL tags?
I plan to use both JSTL and JSP 2.0 EL in my JSPs. I tried to use an if-tag, with an expression in the test attribute like this: <c:if test="${!empty sessionScope.userdata}"><h2><mywaf:include name="userinfo"/></h2></c:if> The JSTL specs show example