I have 2 buttons that will call upon a timelineMax function that has a yoyo property, and I want it to play every time any of the 2 buttons are clicked, here's my code:
The problem I have is with the "repeat:1", because the function repeats itself so that the text appears and disappears, but in doing so it only allows the function to be used once.
just wondering if there is a way to reset the LoadVars() success variable to false or undefined. i need to do this b/c i'm repeatedly fetching data from a asp file using the same LoadVars() Obj to store the data sent from the asp page.
I know how to pass vars from php to flash and from flash to a "new" php page but here is my question.
I have a php page (page1.php) with some HTML and a php variable called $number. page1.php also has an embedded test.swf movie. While working with the test.swf movie, I want to send data back to the $number var on the page1.php without reloading the page1.php because then it would reload the test.swf movie.
I have been able to use javascript to change background colors on page1.php from within the test.swf movie but cannot figure out how to set a php variable from within the test.swf movie.
I'm converting an old AS2 file into AS3 (and trying to learn AS3 at the same time).A movie clip contains a number of different animated sequences and buttons within the application trigger these different sequences.The buttons are functional only when an animation has completed playing.
In AS2, I achieved this with a var called _root.animating which was initially set to "false" and switched to true when the animation played and switched back to false at the end of the anim sequence. The buttons checked this var when clicked. Here is some of the AS2.[code]...
I have 3 swfs, and let's label them MovieA, MovieB, and MovieC. MovieB is a child of MovieA, and MovieC is a child of MovieB. So the hierarchy goes like this: MovieA -> MovieB -> MovieC. Each of these movies have their own document class, so they are each essentially a class extending MovieClip.
Now I have this other external class which contains only static variables. Let's call this class "TestClass" and let's say one of its static variables is called "testVar". So in MovieB's document class, I imported TestClass and set testVar = "hello world". In MovieC's document class, I imported TestClass and traced TestClass.testVar. When I publish and run MovieB, testVar is successfully traced as "hello world". Now when I publish and run MovieA, testVar is traced as undefined.
Just new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...
I have an issue with adding a reset button to my drag and drop movie clips.The problem is, if a student drags a movie clip to a wrong location on the SWF file I want them to be able to hit a reset button that would take them the same SWF that they opened and what would showup would a clear page for them to restart their drag and drop exercise.I know how to make the button for this just want the proper action script to be able for user to start over with no movie clip symbols on the page.
reset in google yields only its use for timers.However I have code bg.reset() which I suppose puts the background back to the beginning of its timeline.
With out getting into a ton of background I am wondering if there is a command that will reset all the variables in a swf at once with out having to do them individually?
I've googled and searched my books and can't find anything. Another option I could see is having the current flash reload, that would set everything back to the start but I couldn't find how to do that either.
i'm currently working on a drop and drag dress a doll game...at the same time i've created diffrent layers for some animations that can be done in frames...my problem now is that...how am i supposed to reset the game and return each pieces i've used on to their proper places?
i need the exact actionscript...ive even tried adding the same scene.but then it doesn't work.the scene doesn't stop looping...
What script can reset a combobox ? After the user submitted the form all the information needs to go. I found how to do it for the field text and the checkboxes but not how to reset the combobox.
Ik got a game with a timer. When the game is finished you can play it again and the SWF file loads again. Everything is reset exept the timer. A new one starts but the old one is on the background.
The timer is the only code thats on the timeline..
I cant get the timer working in my AS file...
This is the code on the timeline:
Actionscript Code: var timer:Timer = new Timer(60, 1000); timer.addEventListener(TimerEvent.TIMER, countdown);timer.addEventListener(TimerEvent.TIMER_COMPLETE,
When you click on the reset button, this error below comes up. If you can't find the button it is the navy colored rectangular thing in the lower left corner of page.[code]
I'm adding a combo box to the stage and putting a prompt on it. Once the operation on the stage is complete I'm "clearing" the selections of the user. However I can never get a combo box to clear correctly. I want to just deselect the item that was selected and add the prompt again. [code]...
I have been trying to work out a way to reset movieclips and swf's. I have like a website, and when a button is pressed, a new page loads. This page might be an internal movieclip, or it might be an external swf. I create my movieclips like
[code]...
Everything loads and unloads perfectly. The problem I am having is say I load a movieclip which is several layers deep. For instance spaces_mc loads a page where there is initially 3 buttons. If I choose one of these buttons, I go into the image gallery associated with this button. Say I then navigate to another page, and then back to spaces_mc, I will be displayed with the image gallery I was at before, instead of being at the beginning point as if I was loading it for the first time (the page with the 3 buttons). So I need some way of resetting things. Where I use a loader, I think I could probably use unloadAndStop(true). I am not sure how I can do this for the movieclips though, where no loader is used.
I am trying to make a game in Flash using Action Script 3,
I have everything in the game and the game works, but I am trying to add a restart function so the game will go back to the start of the level when you pres the 'R' key.
My game starts off with a title screen on Frame 1, and there are 2 levels, 1 is in frame 2 and the other is in frame 3.
When you click the level you want on the title screen it takes you to the frame which has the required level in it by using a gotoAndStop[code]...
so I've got a working Timer, which will stop() when I call it to and start, but I can't get it to reset(). It just starts from where it left off.Code for the timer
I've got a custom player ready to play external swf.Its got all the functionality as any other player, play pause, next back, etc etc.If a certain swf contains a animation for a couple of frames and then a certain game.By some means, some movieClips of the game are added to the stage of the swf.The player has also got a seek bar.Now if a seek a few steps back, the movieClips that were added by the game remain on the stage, while the animation plays in the background.
ok - i'm totally confused here... this is probably a stupid noob question... just recently got flash 8 - upgrading from mx2004, but had previously been using flash 6 components and AS1, due to files that had already been written in mx... my problem is this - i have a dynamic text field, populated with data from a LoadVars object. When a button is pressed, different data is loaded into the text field, and the scrollBar is supposed to reset to the top (position=0)
I have a small issue that I would like to correct. What script can reset a combobox ? After the user submitted the form all the information needs to go. I found how to do it for the field text and the checkboxes but not how to reset the combobox.
e.g. working; txtfirst.text = ""; workshop1_box.selected = false;