ActionScript 3.0 :: FLVPlayback_Captioning Reset Or Track Function
Nov 11, 2008
Couldn't find this anywhere online. What kind of reset function can I use to return to the last played caption node of a tt styled xml file. The xml file is loaded by a FLVPLayback Captioning component on the stage? I believe I need to use the track function?? And how do I set the track parameter in a tt styled xml file? Am I using the wrong XML file style (tt vs. DOM)?
I have 3 input fields, min:sec:frame (mval,sval,fval)
when it is triggered, it works fine the first time. I clear out the variables in the script below but it doesnt work properly. It comes back as not a number (NaN)
How would I get a timer function to reset after no buttonswere pressed for 3 minutes?Right now I have my timer starting on load, and then when abutton is pressed, it stops it. I basically want to restart itafter 3 minutes.
the code I have: [PHP]var timer:Timer = new Timer(5000); timer.addEventListener(TimerEvent.TIMER, playSlides);
I have 3 input fields, min:sec:frame (mval,sval,fval) when it is triggered, it works fine the first time. I clear out the variables in the script below but it doesnt work properly. It comes back as not a number (NaN)
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.
I have a blank container mc into which I am loading JPGs after you click on a button. There are 10 buttons in the movie, each associated with a different JPG.This container_mc is part of a function called on the main Timeline.The Flash movie is 1 frame on the main Timeline. This code works correctly on the first JPG when I click on a button for the first time), but then when you click on a different button I believe it just uses the dimensions and coordinates of the first JPG. How can I reset or refresh (unload, reload) this function so it works correctly every time I load a new JPG?
//after full size image loads into detailthumb_mc, //resize image so that neither width nor height is > 150, tben recenter onClipEvent(load) { var maxWidth = 150;
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.
The buttons on the page cause a jump to the individual movies (the web pages) which are on one layer concurrently. What I have right now works and now I want to add audio. The intent is to have a song start when the viewer connects to the website and will have controls to stop it if they wish. I added a layer that contains the audio which works OK but clicking the Home button causes the audio to play again resulting more than one audio track. I was able to fix that by starting the Home movie one frame later than the audio but I don't really think this is the right approach. Is the method I'm using for the audio correct (see screenshot) or is there a better way to do it? I need to control the audio independently with affecting the other layers. The music track will be in the Sound layer. I had to remove it because the song hasn't been released yet.The attached FLA is saved in CS3 but I am working in CS4.
Does anyone know of a way to track the load time of an XML document? I have an xml document that has over 150,000 lines and it takes a little time to load. I am ok with the load time in general however I would like to create a preloader to tack its process.
I have tried putting the xml load/onLoad code in a movie clip and use getBytesTotal and getBytesLoaded to track the mc progress but it seems as though when that mc is loaded the application freezes until the xml is fully loaded.
I"m using Flex 4 and an AdvancedDataGrid. I need to keep track of the previously selected item. I can't think of where to capture this though. In an itemClickHandler method, the grid's selectedItem value is already the current selected item.
I'm trying to make a "next track" button. "T" is meant to be track number, and every time they click this button, I wanted "T" to increase by one until T>4 where I need it to go back to T=1 (I've only got 4 tracks). Then, I want, depending on what "T" equals, for it to start playing Track"T" and stop playing previous track. I also want the track playing to be looping continuously. At the moment, everything is muted, until I press the button; where it then plays all four tracks at once. I also have a problem with the mute button, but I've got a strong feeling both are of the same reason. I think my problem is that it does not know what "T" equals to begin with so it accepts all if statements; playing all tracks. But I'm new to Flash (my second project) so I'm not sure.
on (release){ stopAllSounds(); T =T+1 if (T>4){ T=1 } if (T = 1){ _root.snd1.start(0, 100); [Code] .....
has anyone seen a handy component or code to monitor playback of your flv to see if flash is dropping frames.It would be nice to see total frames dropped, and maybe average frames dropped per second.In a perfect world it would be a graph over time.
I'm trying to dynamically create buttons that will change accordingly to the matching array vars. So far, the only part that isn't working is the mouse down event. The trace just goes nuts and I'm kinda confuse here.[code]...
I am using an addChild() method to place an intro MovieClip into a website. It has a short ten second musical track. I also have a skip intro button on the stage which does a removChild(). I keep trying to write code that will also stop the sound, which continues to play. I tried loading the sound separately and used the channel.stop(); So far nothing is working. It seems like I've been here before.
I have a quiz created in Flex using Spark forms, with a series of questions which are a group of radio buttons. When the user clicks "next", I get the value of the selected radio button in the group. What I need to do is keep track of these values; at the end of the quiz I will need to see which value was chosen the most. So if the user mostly picked the questions with a "3" value, I can display a summary based on that, e.g. "You mostly chose type 3 answers". I was thinking about having an int variable for every choice (there are 5), and incrementing the appropriate variable when the user clicks "next", as in
private function enterScore(i:int):void { switch (i){ case 1: num1++; break;
But this seems unwieldy. I also will need to compare the 5 tallies for which one was chosen the most...
I am using CS4.What I want to do is gather input from a user, and each time they click on a certain button, in this case the YES button, I would like a number added to the var such as score++. This way, I can use a case statement at the end to direct the user to the right product.However, my code does not work,
var score:Number = 0; var score_txt:TextField = new TextField(); score_txt.x = 150;
I would like to continuously loop an audio track which is being played, meaning I would like to click the button once have the track continue to play over and over again. This is the code I have so far which allows me to click the button and for the track to play only once.
var mysound:Sound = new Sound(); var mychannel:SoundChannel; var myrequest:URLRequest=new URLRequest("drums.mp3"); mysound.load(myrequest);
So I have an mp3 file. I have some frames inserted. Now I Need to insert this track as flv sound. How to du such thing (for frames insert I use this class [URL]