ActionScript :: Flash Control To 'play' Visualizations
Nov 15, 2009
I'm building an application which will have a control to play, pause, step forward & step back through different versions of my visualisation - like the controls on your tape deck, but moving my visualisations through time, instead of that battered old Simon & Garfunkel recording.
I would have thought that my various animations would listen out for a particular event which fires on each 'beat' and tells it the time currently on the time line. My 'play' button then kicks off some code which causes one of these 'beat' events to be fired every second (or 5 seconds, depending on the speed selected). The 'step forward' button would cause a single event to be fired, and so on.
Assuming my design makes sense, I'm not clear how I would generate those events at regular intervals. Alternatively, my design might not make sense or be the most effective one for the job.
I'm trying to learn how to build interactive data visualizations, and I think I want to go the Flash/Flex/ActionScript route instead of using Processing.The problem is, I've never understood what the difference between all three is, so I don't know which one I should be learning.It sounds like Flash is more for designers/non-programmers, Flex is more for programmers, and ActionScript is just the programming language used in Flash and Flex (i.e., Flash and Flex are to Actionscript as the iPhone SDK is to Objective C...?). Is this correct?If so, I'm a programmer, so it sounds like I'd want to go either the Flex or ActionScript route. What's the difference between picking up an ActionScript book vs. picking up a Flex book?
got a problem with a ByteArray visualization that i'm trying to get working. I'm trying to use 2 visualizations on stage, one to represent the left 256 data values, and one to represent the right data values. as opposed to doing a mirror image (which i have tutorials for) I am trying to get 2 separate visualizations on different parts of the stage. this is my code:
function myLeftVisual(e:Event):void { graphics.clear(); graphics.lineStyle(1, 0xFF0000);
[code]....
Currently, the left visual works fine - but the right visual is still displaying the same sequence as the left. When I pan the audio fully right, both the visualizations go dead - and start working again when I pan central/left.
My client has approx 12 different presentation .swf's all with a beginning, middle and an end (phew!). I need to build an interface that views those 12 individual presentations as thumbnails on a single page and allows my client to click and drag whichever ones they wish to use into a separate little container above and in-doing so create a new required running order (left to right) each time they use my interface... so that once they have decided that running order they can somehow use the result for their required presentation. They will be using this interface ongoing throughout the year for various presentations all that will require maybe just a few of those individual swf's in different orders.
I have a question for any seasoned Action scripters. Here's my problem, I have two flash files embedded in different parts of an HTML page and I want one flash file to play the other when it gets done. I would assume that I need to use PHP or javascript to talk with the HTML file that would send the other flash file a command which it was "listening" for. I really don't know however.
I want to put some control on play button of flvplayer component in AS2.0.How this can be done ??How I can call play button: I don't know how it to be referenced/its name.
I have a movie clip on the main timeline with an instance name odometer_mc. nested in that mc there are seven movie clips, two are named m100_mc, and km1_mc. I want to get km1_mc to play when m100_mc gets to frame 20.
I have a folder of sales training lessons (flvs) and I want to play each one of them by clicking a button and to have each one use a common playback control. When I us the follwing code I get a "1120: access of undefined property error".
stop(); function playAud1(evt:MouseEvent):void { player.source = "audio/The_Profession_Called_Selling.flv";}seg1_btn.addEventListener(MouseEvent.CLICK, playAud1);
What I'm trying to accomplish is creating faux control ability. It just needs to look like there's user input.The specifics:to the right of the screen is a window with 6 tabs that you can drag. I want the window above the tabs to have green bars that increase vertically as you drag up and decrease as you drag down. I thought I would be able to asign variables of position1, ""2, ""3, etc. Then set up a <= if then statement to say:if tab1_mc is less than 280 px for it's _y then tell greenbar1_mc to gotoAndStop(3);That didn't work, so, I figured I could just forget the var's and set up some AS that can constantly get the value of the tab1_mc's _y and then go through an if then AS that would tell the greenbar1_mc to gotoAndStop(respective frame);
I have two scenes setup where the first scene has a preloader that works great - here is the catchy part though - my first scene (where the code is) is 140 frames long and the second scene is over 400 frames - once all of the frames have been loaded from the second scene the first scene JUMPS to and plays frame 1 of the second scene, reguardless of where the playhead is in the first scene - what I want it to do is once the second scene has been loaded I want the first scene to play all the way to the end (frame 140, scene 1) of the first scene and THEN going on to the second scene (frame 1, scene 2)giving my sound and animation a smooth transition over.
I have bought a flash template in which I want to incorporate into another movie but I need to remove the preloader and button control. So in other words as soon as I preview it, it should play automatically without first seeing a preloader or having to click on a button to play the movie.
Each of the button should load it's external SWF's intro when click.My problem is that I don't know how to command the button to play the swf's outro and then load the next swf everytime I click a button. Example: When I click homeButton_btn, the external swf should load "home.swf" and then if I am going to click page1Button_btn, the outro of "home.swf' should play and then once it reaches the end of it's timeline, it should load "page1.swf". Same goes with page2Button_btn, whatever swf that is on the stage should play it's outro first and then load "page2.swf"
My questions are: 1. How can I control the external SWF to play it's outro and then load the next SWF.
2. What code should I put at the end of the external SWF's timeline.
3. Where do you think I should put the preloader? Is it better to put it at the external swf timeline? or on my main swf timeline?
4. Does load and unload of external swf also work with movieclips? Like for example I will not use a external swfs, instead I will use movieclips to load and unload its content.My Actionscript 3.0 code
var pageContainer:Loader; pageContainer = new Loader(); var nextMov:String;[code].........
I have created some functions to manage timed pause/play in an animation and I am trying to make a class from them, but it does not work, the play() and stop() functions I use have no effect. The functions work as intended when not in the class.
Here is my code: package anim { import flash.utils.Timer; import flash.events.TimerEvent;
[Code]...
I checked that the functions are executed with the trace() and it is the case, so the problem really comes from the play() and stop() functions, and I do not receive any error at compilation or runtime.
needless to say, new to as3... What I want to do is control start and stop of stage playhead with keyboard control. What I have so far is the stop control, but cant figure out the play. I have tried setting a var and boolean, but am doing something wrong =( // heres my code
I am trying to control Sound with actionscript and play and stop buttons.
This is the script I have in frame one of my scene.
[Code]...
playB is the instance of the play button stopB is the instance of the stop button the sound intro is on its own layer and is selected as a streaming sound. My problem is that when I stop and start the sound with the buttons the sound starts from the beginning instead of playing from the frame it is in.
I am trying to load a movieclip and have it be controlled by a play and a pause button. The load works good and the code for the play/pause works.
I need the "test2" file to load the "ball_mc" file and then I should be able to play and pause the ball as it runs across the screen. I think I need it to be a swf file also, but Flashkit won't let me upload that type of file.
How can I add a single control bar to control 2 external FLVs inserted in FLA document so that when scrolled, both FLVs move simultaneously?Is there a better PPT to Video Converter out there than Moyea that I can purchase or even a freeware? Original documents One FLV is a PowerPoint presentation with videos in some slides, converted into FLV using trial version of Moyea PPT to Video ConverterAnother one is an AVI converted into FLV using Super
I saw a similar question posted on Aug 15, 2007 ([URL].. but the "Look Here" link that describes the solution is not available (removed by Adobe for security reasons).
I have 4 live f4vs that I'm using with interactive server 3.5. Thus they are running in dvr. I'm trying to find a way to control all 4 videos so that when you go back on one video all 4 videos go back to the same time. This is very important with camera 4 as it is the only one with sound.I have tried putting all 4 videos in one swf file and I have tried putting each video as its own swf.
Initially I want to control a movie clip (play, pause) using two buttons. I placed a movie clip(square) and two buttons (btnPlay, btnPause) on the stage.and created Engine.as assigned to stage.
I used a tutorial ("Photo Gallery and Thumbnails: Flash Tutorial!" by tutvid on utube) to create a gallery on my website. I love the thumbnail navigation but, I want it to play like a slideshow when it first opens and I want to add play/pause buttons. I am using Flash MX 2004 and don't know much at all about actionscript or how to make these modifications. I emailed the author of the tutorial to see if it was possible to make these changes his reply was: "Yes, it is possible to modify the file in this way, however I don't remember how I set it up so I wouldn't be able to re-code it for you in this email. I would take a look around the web at Actionscript 2.0 slide shows and see if you can use the code they are using and make it work with your gallery."
if it would be possible to control time through ActionScript. What im mean here is that if, let say a certain effect just finished and i want to wait for 5 sec before it automatically jumps to the next specified frame i want to play. would this be possible with AS?? or other techniques maybe?
I am trying to make a play, pause and stop btns controlling a mp3 file which is in the library which has a linkage id of Speakers. I've manage to get the pause and play to work but now incorporating a stop button isn't working for me
To say basically if you have pressed the pause btn, then the play btn, play from state pause at, but if you have pressed the stop btn then pressed the play btn, play from start and also if the play btn has been pressed and the audio is playing if pressed again dont play again do nothing.
I followed your tutorial for the Volume Control Slider [URL] and it works well, but instead of having to press play and turn up the slider I would like the song to play at start and volume at like 50, 75 or 100%. I've messed around a bit but haven't been able to come up with anything that works