Professional :: Trigger An Event To Send The Playhead To Another Frame And Load Another Swf?
Mar 7, 2010
I am in the final stages of building my new web site: http:[url]....On most of the pages in the portfolio there is a video "Commentary" link (top right corner).Each of the commentaries are flv called up by f.ex:
myMCL.loadClip("http:url.....);
Once the video is done playing, it fades to black.I would really like the flv to trigger an event to send the playhead to another frame and load another swf.I could use a pause command and let the main time line pause so many milliseconds and then proceed, but it is probably not consistent how long it takes each viewer to download the video and watch it.
View 11 Replies
Similar Posts:
Nov 29, 2010
So I made a ridiculously long Flash animation, but now I have to break down to certain parts. It's all made in one scene.
My question is can I start the playhead on a frame other than frame 1. Say frame 595, I've tried gotoAndPlay(595);, but to no avail. I've searched for a good 2 hours on this too. Is something so simple not possible in Flash?
View 1 Replies
Jul 19, 2010
I have a lot of Flash files for which I need to export jpgs of their last frame. write a command for moving the timeline's playhead to the last frame, then exporting a jpg (at Full Document Size, 72 dpi, 96% quality)?
View 10 Replies
Sep 8, 2011
I have 2 simple MCs I am trying to control via rolling over the actual animation itself, not a separate button.
Here's the catch though: In one MC the animation is up and down, the other, left to right. I need the user to be able to not only trigger the animation by rolling over it, BUT, control the up and down/left to right action.
When they move the cursor up and down, the animation follows... you get the idea.
Can this be done with an invisible button covering and on top of the animation?
View 1 Replies
Aug 2, 2009
I am designing a project which demands many scenes to be involved in. So, I am trying to send the playhead to another scene by clicking on a button existed in a movie Clip at the main root. I used gotoAndPlay demand. but, it is not working.
View 5 Replies
Mar 12, 2010
i have designed a gaming kiosk app in as3i am using it on a Sony vaio l pc (like hp's touchsmarts) in windows 7the app doesn't need any multi-touch gestures (only single touch clicks and drags) so i am using mouse eventseverything is fine (including mouse click and move events) except that a single touch to the screen (with no move) doesn't fire a mouse down. it is fired only after a small move of the fingeroutside the app, on my desktop, i see that the small windows 7 cursor jumps immediately to where a finger is placed, meaning this issue isn't a hardware or a windows problem but rather how internally the flash app receives "translated" touch-to-mouse events from the os.for example, in a windows Solitaire game, a simple touch to the screen immediately highlights the touched card.in my app, a button will change to the down state only if i touch it and also move my finger slightly.
View 8 Replies
Jun 1, 2010
I created a button that has a movieclip in the rollover state. When you rollover the mouse, the movieclip will animate to appear as if the button will scale from a small to a large button even though it is the movieclip that is playing and not the button itself. But I also want to add a keyboard code to play the rollover instead of the mouse. I learned to write actionscript to play different scenes with the code below, but I'm not sure if I can play a button rollover with the same code.
stage.addEventListener(KeyboardEvent.KEY_DOWN, key_pressed);
function key_pressed(event:KeyboardEvent):void {
if (event.charCode==49) {
gotoAndPlay(1,"scene");
}
View 1 Replies
Jul 6, 2009
I created a menu of invisible movieclips (from a library item with the class name Invis) with buttonmode set to true so that I can have them send the playhead to different labels on the main timeline. I could use some help with determining which button is clicked and then placing code that executes depending on which button is clicked.
Here is what I have so far on frame 1 of my timeline:
This works - I get [object Invis]0,or [object Invis]1...etc in my output //window depending on which one I clicked. Just not sure what to do next
View 3 Replies
Jul 29, 2009
I'm having an issue with an event dispatcher and an event listener. Here is the application code...
Code:
Select allpackage {
import flash.display.MovieClip;
import flash.events.*;
import flash.net.URLVariables;
import SendAndLoad;
public class Test extends MovieClip {
[Code] .....
It will trace the loader.data variables but doesn't dispatch the event to the main application (Test). I'm listening for the event on the stage of the main but it doesn't trigger the event to display that the login has been successful even though it traces from the sendAndLoad class...
View 3 Replies
Jan 4, 2010
i made swf which contain 7 button to control 7 pages i put this swf in dreamweaver to control ths file, i tried to give every single button Avalue to tell the root which frame in which movie clip(for the button to be highlight) but it deosn't work
here is the code
////////////// the code for Buttons
on (release) { if (_root.link != 1) {
// if there anther selected button _root.menu["item"+_root.link].gotoAndPlay("s2"); _root.link = 1;
[Code].....
View 1 Replies
Mar 1, 2011
I want to draw some combination of bitmaps, flash shapes, vectors, text etc and draw them programmatically into my movie using ActionScript, and then get every "rendered" pixel of my movie (at 100% view) into an array that I send to another program over TCP/IP. The first part of the question is if its possible to render a frame that is a collection of Flash elements as a bitmap? I know that I can iterate through a bitmap and get every pixel using the getPixel method but I'm trying to access the final rendered frame displayed on my screen, including, as I said Flash shapes and text.
The second question is what would be the best way to send this "video frame" over TCP/IP? Would I use an XML socket connection? That is the only way I know how to send data out of Flash over TCP/IP but I don't know if it is the only way - the help page says the data needs to be formatted as XML, which seems unwieldly for this application. I'm doing this now by using Max/MSP/Jitter to do a screen capture the size and location of my Flash movie and then send out the resulting matrix using a "jit.net.send" object (which lets you send frames of video over TCP/IP), but this is too clumsy for the installation I am building.
View 4 Replies
Dec 10, 2003
how will be actionScript for waiting the play head in a frame for 5 second ?
View 5 Replies
Oct 15, 2009
If I have for example a simple timeline with 2 labels.The first one is called "Intro" and the second one is called "Loop".So I would like to make the playhead start on frame 1 ("Intro" starts) and when it gets to frame 100 ("Loop" ends), make it loop 3 times and then go back to frame 1.So I would simply write the code:
[code]...
Lets say it does, how would it increment loops to more than 1, if when its incremented to 1 the playhead goes to frame 1, runs that code again, so loops would be assigned 0 again, right?
View 1 Replies
Dec 2, 2010
How to trigger a custom jQuery event from Flash, passing some data through event object?
View 2 Replies
Jun 7, 2009
to stop the playhead at a frame in a movieclip should AS3 use "MovieClip(this).stop();" rather than just "stop();" ?
the movieclip is nested within several others dynamically and therefore cannot easily be referenced directly from the stage, if that would be otherwise preferable...
View 3 Replies
Mar 26, 2010
im looking to be able to use a mouse click to trigger an animation of something spinning. but depending on which event listener is clicked i want the animation to stop at a specific frame for each thus allow further mouse clicks and feature access. does anyone know how i can do this in AS3?
View 1 Replies
Oct 8, 2009
I am creating a website that should have music playing abilities. (Sounds cool that way lol). I have a music player MovieClip and in it, it has some actions. It is placed on a frame on the main timeline. I also have an actions layer that has some code controlling other contents of that page on the site.
The music player works fine but when I leave the frame which the music player is loaded on the main timeline, the music keeps playing. How do I stop it?
View 5 Replies
Dec 5, 2010
I'm building a flash application where the user can play multiple 30 sec .flv movies (one at a time) in slowmotion by pressing or holding down the left and right arrows keys.The user can hold/press "keypress right" to move to the next (key)frame and "keypress left" to move to the previous (key)frame in the .flv files.I have tested embeeding one .flv movie to the stage and it's working fine.But since I will be using many flv's I want to load the .flv's dynamiclly (on button clicks) using netstream or FLVPlayer. Would it be possible to step beetween keyframes in the same way if the .flv's are loaded dynamiclly? Or, must I embeed each .flv file into separate swf's and then dynamiclly load the swf's to my main stage?
View 1 Replies
Jan 21, 2010
How do i tell the playhead to gotoAndStop(); on frame 2 of the main timeline from a class file?....I'm trying to oop this program.
View 2 Replies
Jan 17, 2010
Ok so I have a function (loadthm1) on frame 1 of the main time line. I want to call it from inside a movie clip as the playhead passes a frame. In as2 I could just say _parent or _root.functionName(); but in as3 I get a undefined method error. How do I point to the function and call it?
ActionScript Code:
var thmLoader1:Loader;
function loadthm1(url:String):void {
[Code]...
View 1 Replies
Feb 23, 2009
How to detect the MovieClip playhead that is in play() condition or stop() in one frame?
View 3 Replies
Aug 30, 2011
I apologize if this questions has already been asked and answered. I tried searching through the Flash forum and was unable to find the answer I was looking for. I am very new to Flash and apologize for the simplicity of the question, but I am having trouble moving the playhead along the timeline in Flash. For example, when I open up a new Flash project, and start out with the initial layer with it's single frame, I am having trouble moving the playhead forward to frame i.g. "75" or "80". My questions is, can I not move the playhead because I do not have content past frame one or can I not move the playhead because I have accidentally initiated a button or action that will only allow me to scrub my playhead through frames with content. On the off chance I had done this, I tried restarting Flash with the default settings with no success. Again, I realize this may be a very simple question and I am hoping the answer will be the same.
View 3 Replies
Apr 1, 2012
I have simple flash CS4 file (AS3) with a video playback component in a movie clip called "video". The only other thing in this flash movie is a script to load another SWF file as soon as the video is done playing....If I use stop() on the frame with the video - it will play - but then the playhead will not move forward to the next frame which has the next script and if I leave the stop() off - it plays only a a few frames of the video and moves on to the next frame and executes the script that loads the swf file.
Everything I've read requires a button event - and I don't need a button. I just need the video to play - then the next script to execute.Here are the only scripts in the flash movie:
***************************** // in the frame containing video component
stop()
*********************************** // in the next frame after video component.
stop();
[code]...
View 7 Replies
Mar 15, 2012
I have l modded some code that I am really happy with, it makes buttons bounce around for the user to try to click on when entering a certain frame.. I notice tha the code adds eventlisteners ENTER_FRAME to make this work, when you leave that frame there are now problems with null objects becuase the listeners are still on but the objects are not there anymore..
Ok so attempted solution - I can use a currentLabel on the main timeline to check if the correct frame is reached then use a function if (label is x) put listeners on else take them off... works but then I have to have these objects hidden on the timeline and then add visible=true/false to my framelabel listener.. This works but part of my functionality here is that these movieclips that move are buttons that the user clicks on and they explode and dissapear- but now they dont because I have a code that says on that frame they should be visible..
The only thing I can think of is to have a blank frame at the end of the explode and put a stop on it. Then add a gotoAndPlay(1) into my frame label code. Seems very ugly, you guys got a better way? Can I remove eventlisteners on leaving a frame? Is there a code like LEAVE_FRAME??
View 6 Replies
Nov 17, 2010
I am currently having the unfortunate experience of learning Flash Pro as part of my degree program at school. I have been having a problem with the program crashing repeatedly. I have CS4 Web Premium, an educational discount edition, and am using it on an HP pc with an AMD Athlon and Nvidia v-card. I have had problems with it crashing on this computer when using tools such as the deco-tool and sometimes when transforming something. The real problem is when I try to use one of the Dell pc's at school to work on a file I have created at home on the HP. On 4 different machines at school Flash will crash when working on one of these files, especially when scrubbing the playhead on the timeline. The program will crash over and over, to the point where I can't really work on these files at school, which is a huge waste of time.
View 4 Replies
Jun 6, 2007
I am working with a short vocal track and when the audio ends I would like a replay button to appear. The codes should work fine, no errors appear. Trace displays nothing...Here is some of the code:
var clip = "testClip.mp3";
//Create the Sound & SoundChannel Objs
var soundReq:URLRequest = new URLRequest(clip);
[code].....
View 5 Replies
Jun 22, 2011
Im looking for an event to trigger on a particular date. Does anyone have a code snippet of how that can be achieved?
View 2 Replies
Aug 17, 2010
i have a movieclip with an onRelease event. Is there anyway i can trigger this event in code? without clicking the movie clip?
View 1 Replies
Jan 4, 2012
How to trigger an event if the video is over? I'ld like to show a replay button then.
var vid:Video = new Video(480, 270);
vidcont.addChild(vid);
var nc:NetConnection = new NetConnection();
[code]........
View 1 Replies
Jan 9, 2010
So I am trying to essentially have one class dispatch an event into the flow when it is added to the stage, and have another class catch the event, but I'm having problems. I set up a little test to simplify/display the problem I'm having. There are 2 classes, and then just some init code on the timeline.
ActionScript Code:
//code for box 1
package {
[code].....
View 9 Replies