Trigger events based on current frame of flash movie

I have a director project with qt video where actions are triggered based on specific times in the video (movietime and/or duration). I am updating this project to use flash video instead of quicktime.
For ease of development, and hopefully minimal coding changes, I'd like to keep that functionality similar, but I can't figure out how to capture the current frame of the flash movie sprite.
Can anyone help? or suggest a workaround?

I can't figure out how to capture the current frame of the flash movie sprite.
You were almost there. Try either of these:
put sprite("flash").currentFrame
-- or
put sprite("flash").frame

Similar Messages

  • Wmode=opaque, origin of x, y of mousewheel event based on parent frame

    wmode=opaque, origin of x, y of mousewheel event based on parent frame.
    as a result , mousewheel on the dropdown of combo box, dropdown closed.
    Header Area
    Tab Area
    SWF Area is here.
    wmode=opaque
    The x, y of mousewheel is missing for value of top and left area.
    wmode=window
    The x, y of mousewheel is correct.

    http://forums.adobe.com/thread/628143

  • Saving current frame in flash

    Hi everyone,
    Any help would be really appreciated. I'm a web developer,
    normally in php, and I'm making a flash based app that allows
    people to upload a photo of themself, print, email and save it. I
    can do print with no issues, but saving files is really being a
    sticking point. I want them to be able to save the current frame as
    a jpeg or bmp.
    Does anyone know anything about this? If it's even possible?
    Thanks a lot in advance
    Paul

    Thanks.
    Essentially, what I'm trying to do is record which object the user clicks, where he drops it (within the grid), how long it takes, etc. Currently, I'm just using the "trace" command alongwith the flash debugger to write it to a text file. However, using the debugger is not really conducive in the long run. Ideally, I'd just like to write the data to a text file in the form of name variable pairs that could be read by statistical packages like Excel or SPSS.
    I've created the interactive grid but am stuck on the data part. I don't really need the application to re-read the data once the user finishes, so using "shared objects" may not be ideal.
    Any suggestions?

  • HELP!!  White frame where Flash movies should be!!!

    Can't figure a single reason why this is doing what it's
    doing. Everything works fine before I create the projector.....but
    once I launch it and test, all my Flash movies are just white
    frames of the same size as the movies are supposed to be. No sound
    or anything. Does the same thing on the Mac or PC side. I've tried
    checking and unchecking DTS, etc. but I can't figure this one out.
    My project is due TODAY....first time I've had this problem
    before, ever.....HELP!!!

    I thought about that (actually made that mistake with the
    Buddy API Xtra), but I just now got it to work....seems as though
    it doesn't like talking to a shared drive space between my Windows
    and Mac partitions, even though it'll play just fine within
    Director while I'm working on the project. I copied everything
    over, all the directories, etc. to my Windows side, created a test
    projector from there, and voila!
    Thanks for the suggestion; I used to make that Xtra mistake a
    LOT.
    p.

  • Trigger Event based on Execption

    Hi, Does anyone know if it it possible to somehow trigger an event (not an alert) based on a query exception or query result value?  I have a process chain that I want to execute only if a query exception occurs.  I'll be damned if I can't figure this one out.
    Thanks,
    Ken Murray

    Hi,
    Or you can create a program that call function module BP_EVENT_RAISE. If you search this forum for BP_EVENT_RAISE, you will find a lot of material, including ABAP code to programmatically trigger an event
    -->Create a back ground event in SM64
    -->Create a process chain in RSPC.
    -->Use ABAP Program as one process in creting process chain for your cube data load.
    -->In that ABAP Program CALL FUNCTION 'BP_EVENT_RAISE' by specyfying your condition like, execute the following function module for a specific condition(>=, <=..)
    -->Specify the event that you created in SM64 in the Export , event_id='xxxxxx '
    So when you execute the process chain, say for example load data first to CO Cube and after that process chain executes the ABAP Program.Once the condition is met the BP_EVENT_RAISE function module is going to be executed, where you are actually triggering an event to start the data load for your SD Cube.
    Regards,
    Hareesh

  • Redirecting to specific frame of flash movie

    Hi, im creating a flash website, in which the entire user interface is flash based, i was wondering if there is an easy way to set the site up so that if the user goes to www.example.com it goes to the home page, but if they type in www.example.com/page1, the flash video will start on the page 1 frame, and if they change this to /page5, it will go to the page 5 frame.
    So far the only solution i can see is recreating the flash file to have the page 1 frame as the first frame, so when users navigate to the /page1 page, it will be a unique movie clip, starting on the page1 frame, and for every page have a unique movie clip starting on the frame corresponding to the page.
    Any other ways to do it? maybe in actionscript, or html? I will probably set the site up in dreamweaver, but any solution that will work is better than recreating the movie for every single page.
    Thanks

    I have never worked with them, but you should look into using anchors in the timeline to see if that would be agreeable to you.  If you search Google for "Flash anchors" you will probably find some info about them.  It involves creating frame labels that you specify as anchors (in the drop down below the frame label textfield).  Then, you can use something similar to normal html anchors to link to land at the frame.... www.example.com/#page1  (I have no idea if this is correct)

  • Can't seem to delete frames in Flash movie.

    Hi,
    I'm very new to Flash. I've imported an .flv movie into a job, on the stage. I want to get rid of a lot of the first frames, about 180 of them. Why can't I delete them using a right-click and choosing "remove frames?" Nothing seems to go. The movie's still starting at the same place all the time.
    Thanks,
    Peter

    I think you are right. That is what happens.You can't "edit" an FLV file this way. The frames are deleted, but that just means you won't see the end of your video!
    Generally it isn't a good idea to import the video to the stage and play it back in this manner it can cause memory managment issues and other stuff.
    It is usually a better idea to use either the playback component or your own code to dynamically "stream" the file.
    Also if you want to edit out the first 180 frames you should open the source video, edit it, and re-export to a FLV.
    If you can't do any of the "best practice" things. You could embed the FLV in a MovieClip say myMovie and then use code like:
    myMovie.gotoAndPlay(181);
    or whatever. But the file size will still include the 180 frames of content and there are likely to be other problems when looping and replaying and stuff like that.

  • Flash Movie Presentations in Adobe Connect

    We have been working with one of our customers on delivering
    an on line sales tool using the Adobe Connect environment. They for
    the usual legal reasons wished to use a sales aid they had already
    created. This was a flash based CD-rom with various flash movies
    initiated by rollovers and buttons.
    But there was two problems:
    1. The index would not work i.e. the menu page appeared but
    the subsequent movies and animations could not be found
    2. The click throughs and rollovers would not synchronizes,
    i.e. if the presenter moved forward through the presentation the
    participants did not.
    Both of these obviously make it useless.
    After over three weeks of R&D we (David Kwaw , Steve
    Grovenor and J ) have developed a bespoke piece of programing,
    based on Sync SWF
    http://www.adobe.com/devnet/acrobatconnect/articles/basic_syncswf_pt1.html
    That solves this issue, we have since refined the coding so
    that ONLY the presenter has control of the flash presentation,
    making it more like Adobe Presenter just ALOT more flexible and
    better looking.
    If you would like to know more... just drop us a line.
    www.boxbear.co.uk
    OUr website

    Everything except for the alpha transparency video is easily doable in Edge.
    Rather then trying to shoehorn html5 video with an alpha transparency into Edge (not sure if this is doable), you could potentially use a png sequence or spriteSheet to play back those animations. Though the file size will be very large, and Edge does not have native implementation for png sequences or spriteSheet playback. yet.
    John Dunning built a plugin for Fireworks to export a spritesheet as an Edge symbol:
    http://johndunning.com/fireworks/about/EdgeAnimate

  • How to set a default start and/or end date for New Events based on trigger date.

    I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
    However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
    I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
    At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
    Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
    1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
    2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
    Any thoughts or ideas?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • Generate an Event based on Counter Trigger

    Hello,
    I have the following part that is already working: a counter (used for period measurement) which is triggered by a digital input. After that I'm reading the data and I'm puting them in a Queue. Here I get an error. The Enqueue Element Vi is providing an error. (Error 1, something with a @  character that is illegal). I've notice that if I disable the trigger for the counter I don't get the error. I'm thinking that this is cause by the delay between the moment in which the Enqueue Block tries to enqueue and the moment in which the counter provides something to its ouptut.
    What I want to do is to Generate an Event based on the Counter Trigger Signal and to put all the reading and Enqueue part in an Event Structure. I've tried to do that using an Export Signal - Property Node, but I didn't manage to make it work.
    If you have any solution for this (with or without events -  I just want to get rid of that error) please let me know.
    PS: I have Labview 8.5.1 and the USB-6210.
    Thanks,
    LostInHelp

    Hello Mike,
    Thanks for your replay.
    I've attached two vi files. In one you can find how I've tried to generate an event based on the counter trigger (test.vi).
    The second one (test1.vi) is the vi where I get the queue error. I've deleted from the second vi the part where the data are dequeue and handled.
    Thanks
    LostInHelp
    Attachments:
    test41.vi ‏50 KB
    test110.vi ‏35 KB

  • Reading the current frame of an Event Structure

    Is there a way to read the current frame (or state?) of an Event Structure?
    Richard

    johnsold wrote:
    Normally a program would not stay in an event case for long enough for the phrase "current frame" to have much meaning.  What are you trying to do?
    Lynn
    Like tst assumed, it's for edit time use. Some events take a few seconds, and the progress would be nice to watch on the FP like you'd typically do with a state machine, and with dynamic events (as opposed to just user events), it would be nice to see where the structure is going.
    I have tried something with scripting as shown, but it's not much help. There's no property "Current Frame" or similar. Visible Frame (as shown) doesn't do it.
    Richard

  • How to I trigger an event based on the status of a pushbutton​?

    I am trying to trigger an event based on the ON/OFF status of a pushbutton.  When I click the pushbutton to the ON position, I want the event structure in a loop to trigger on each iteration until the pushbutton goes back to the OFF position, either manually or programatically.  Is there an easy way to accomplish this?
    Many thanks.
    Solved!
    Go to Solution.

    Well, lets read the original question:
    diarmaede wrote:
    I am trying to trigger an event based on the ON/OFF status of a pushbutton.  When I click the pushbutton to the ON position, I want the event structure in a loop to trigger on each iteration until the pushbutton goes back to the OFF position, either manually or programatically.
    I cannot see anything about "switch until released", only "click to ON" and "OFF manually or programmatically". That seems to be a plain switch action.
    JHourigan wrote:
    If I want to simply detect a button push event. I set the mechanical action of the boolean button to switch-until-released. Then I use the mouse down event structure on that button to detect the event.  It avoids having to include a case structure logic to address the state of the boolean in an Value Change event structure. The button immediately returns to the false condition after release.
    So far you are not dealing with the OFF handling at all, which seems to be a requirement. There must be more to it that you mention to get this working as intended. The value of the boolean needs to be constantly monitored anyway, so it might be difficult to do things without a case structure. I am still confused about the logic of it all ....
    You should really include a small working example VI so we can see what you are talking about. Thanks!
    LabVIEW Champion . Do more with less code and in less time .

  • I need help with my event-based cue points with audio

    Im having trouble with my video game project for my action script 3 class at school. Here is what i did, i made a game called Tailgate toss up. I filmed my character and rendered it in Adobe Premiere. I than brought my .mov file into After Effects and I put event-based cue points-
    my first cue point at 0:00:03:13 called "loop"
    my second cue point at 00:00:03:27 called "draw"
    my third cue point at 00:00:05:24 called "bang"
    my fourth cue point at 00:00:13:29 called "dead"
    my fifth cue point at 00:00:14:29 called "You Lose"
    my last cue point at 00:00:19:14 called "End"
    Here is my action script 3 code
    ///first frame:
    start_btn.addEventListener(MouseEvent.CLICK, startGame);
    function startGame(event:MouseEvent){
    gotoAndStop(2);
    SoundMixer.stopAll()
    stop();
    ///second frame:
    stop();
    var loopTime
    var hitHim:Boolean = false;
    var vConnection:NetConnection = new NetConnection();
    vConnection.connect(null);
    var vStream:NetStream = new NetStream(vConnection);
    var client:Object = new Object();
    client.onCuePoint = onCuePoint;
    vStream.client = client;
    var myVideo:Video = new Video(418, 480);
    myVideo.y = 0;  ///this adjusts where the video is, right now it is the size of the canvas which is 418,480
    addChild(myVideo);
    myVideo.attachNetStream(vStream);
    vStream.play("michelle.flv");
    var throw_bottle:Sound
    throw_bottle = new Sound(new URLRequest("audio/throw_bottle.mp3")); //change to button noise, will add sound into ae file
    target_mc.addEventListener(MouseEvent.CLICK, shoot);
    target_mc.buttonMode = true;
    target_mc.visible = false;
    draw_mc.visible = false;
    function onCuePoint(cuePoint:Object):void {
       if(cuePoint.name == "loop"){
    loopTime = cuePoint.time;
        if(cuePoint.name == "draw"){
    var randomLoop:Number = Math.random()*10;
    if(randomLoop > 2){
    vStream.seek(loopTime);
    }else{
    setChildIndex(target_mc, numChildren - 1);  
    setChildIndex(draw_mc, numChildren - 1);    
    target_mc.visible = true;
    draw_mc.visible = true;
    if(cuePoint.time == "5:24"){
    draw_mc.visible = false;
    target_mc.visible = false;
    if(!hitHim){
    vStream.seek(15);    
    if(cuePoint.name == "dead"){
    vStream.close();
    myVideo.clear();
    gotoAndStop(3);
    if(cuePoint.name == "end"){
    gotoAndStop(3);
    function shoot(event:MouseEvent){
    throw_bottle.play();
    hitHim = true;
    ///my third and last frame
    playAgain_btn.addEventListener(MouseEvent.CLICK, playAgain);
    function playAgain(event:MouseEvent){
    gotoAndStop(2);
    SoundMixer.stopAll()
    stop();
    When I have no audio it works perfectly, no problems. When I bring audio in i re-render it as a .mov file and bring it back into After Effects and add the cue points to it. Than i re-render it out again as a flv file. When i bring it into my flash project it will work when the looping variable does just one loop and my target will appear so you can click on it or not. But when the looping variable makes it loop 2 to 10 times it skips over the catching (the part of the clip if you clip the button) and goes directly to the dropping of the can, not giving you the option of clicking the button. So basically it skips the "draw" or second cue point of my game and goes to "You Lose" cue point.
    Any suggestions?

    Hi,
    The latest audio driver for your machine is on the following link.
    http://ftp.hp.com/pub/softpaq/sp59501-60000/sp59649.exe
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • EVENT BASED SCHEDULER

    Hi All,
    I have two databases lets say A an B.
    I have a STORED PROCEDURE on DATABASE B which runs everyday via a schecduler at 8 in the morning.
    This procedure basically picks up data from a TABLE in database A and processes it everyday.
    Now I want to modify the scheduler from the current one that runs at say 8 to one that runs the STORED PROCEDURE whenever data is inserted into the table.
    Is it possibble in ORACLE?
    Datbase version is 10g
    Any help would be highly appreciated.

    Elessar wrote:
    Hi All,
    I have two databases lets say A an B.
    I have a STORED PROCEDURE on DATABASE B which runs everyday via a schecduler at 8 in the morning.
    This procedure basically picks up data from a TABLE in database A and processes it everyday.
    Now I want to modify the scheduler from the current one that runs at say 8 to one that runs the STORED PROCEDURE whenever data is inserted into the table.
    Is it possibble in ORACLE?
    Datbase version is 10gHere is one way of doing it:
    Oracle Scheduler - Event Based Jobs.
    One way of re-using it is, raising an Event trigger to Kick-off the jobs, preferably once data is inserted into tables. Definitely, this has to be done by the system performing the Inserts.

  • Managing various event listeners in multi-frame movie

    I'm working on a gunslinger game. I have numerous frames
    which correspond to different stages of the game. The frame that
    corresponds to the actual gameplay has a really involved
    ENTER_FRAME function attached to particular item on the stage. When
    the game is over (or an error occurs, or the network connection
    fails) I want to leave the gameplay frame and move to some other
    frame. When this happens, I would like the ENTER_FRAME function on
    the gunslinger to be removed because the player may finish a game
    and then re-enter the gameplay frame later after selecting a new
    opponent.
    QUESTION: Can anyone recommend a good way to manage the
    keyboard event listeners, all the button event listeners, etc? As
    you might imagine, I have no reliable way to determine which frame
    might be entered after the gameplay frame because the frame change
    could be triggered by a variety of different reasons.

    I have tried using hasEventListener to check for an existing
    ENTER_FRAME function before adding the event listener again but it
    never seems to notice that there is an existing enterframe function
    running. Furthermore, when I leave the frame, the enterframe
    function (which is attached to a particular movie clip on frame 2)
    continues to run even though that movie clip doesn't exist on any
    other frame in the flash movie.
    The first frame in my movie just has a button that takes the
    movie to frame 2. frame 2 has a movie clip (myMovie) and a button
    (btnFrame1) which goes back to frame 1. It also has the attached
    actionscript.
    I start the movie.
    I click 'goto frame 2'
    the enterframe listener is added and starts to output trace
    statements of the current frame of myMovie (e.g., 1-2-3).
    i click 'goto frame 1' on the main movie
    although i am looking at frame 1 of my main movie which has
    no instance of myMovie, the enterframe function keeps tracing the
    current frame--interestingly, the frame of myMovie does not
    advance...it stays on 1, 2, or 3 and announces that frame over and
    over again.
    Repeating the visit to frame 1 and frame2 over and over again
    results in more listeners being added over and over again.
    I have uploaded a sample FLA here:
    http://jaith.net/questions/listenerExample.zip
    I hope that you might help me determine how to remove the
    listener upon exiting this frame. I don't want that enterframe
    function running (and referring to movieclips that don't exist)
    when I exit the frame where it is relevant. I'm wondering if I
    should try adding the event listener to the root movie
    instead.

Maybe you are looking for