Flash CS4, Using ActionScript in Buttons to go to cue points in a FLV

Hi.
I'm pretty much a Flash novice, so i don't think this question is particularly hard, it's just something that's vexing me for a few days. I know it's possible based on all the literature I've  read, but I can't seem to get it done properly.
Basically, I have a video file that I rendered in FLV with 5 navigation points called 1, 2, 3, 4, 5.
What I want to do is use buttons to navigate to the five cue point in the flash movie. I think that this is possible using ActionScipt 2, but I don't know what to code in the script function.
Any help would be very, very appreciated.
Thanks,
Javier

Hi,
The following AS2 code may help you
stop();
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
<your flv playback instance name>.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
<your button instance name>.onRelease = function () {
playback.seekToNavCuePoint("<your cue point name>");
<your flv playback instance name>.addEventListener("cuePoint", listenerObject);
\\replace all the placeholder things including the < >
Also just take a look at the description at http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00003003.html for more details
Thanks!
ps: pls mark this post as answered if this is of help to you

Similar Messages

  • Flash CS4 and ActionScript 2.0

    Hello
    Was wondering if you could recommend the publish and save
    settings in Flash CS4 when working with ActionScript 2.0.
    What are my publish settings?
    Flash Player 8 or 9?
    Script: ActionScript 2.0
    Should I be saving the project as CS4 or CS3?
    - I no longer have the ability to save the file as Flash 8 in
    CS4.
    - It looks like I lose my XML files when I save as CS3
    Are there any other settings that need to be changed?
    Thanks in advance
    M

    troika22,
    > Was wondering if you could recommend the publish and
    save
    > settings in Flash CS4 when working with ActionScript
    2.0.
    Ultimately, it depends on what version of Flash Player
    you're aiming
    for.
    > What are my publish settings?
    > Flash Player 8 or 9?
    > Script: ActionScript 2.0
    There are numerous reasons you might decide to code a
    project in AS2.
    You might, for example, not yet have "taken the plunge" to
    AS3, so you may
    not be comfortable with it yet. Your project requirements
    might dictate
    that you support as low as Flash Player 6 (may ad agencies
    have such
    requirements). You might be updating an existing project,
    already built in
    AS2.
    In any of these cases, your publish settings will be
    determined by the
    version of Flash Player you're targetting. Flash Player 8 was
    the first to
    support blend modes and filter effects (drop shadow, etc.),
    so in order to
    support that, you would have to publish to Flash Player 8. If
    you don't
    need those, and if your code itself doesn't rely on features
    that require
    Flash Player 7, you may as well publish to Flash Player 6 and
    reach the
    greatest number of potential viewers. (The farther back you
    go, the more
    likely your viewer will have Flash Player installed, because
    not everyone
    decides to upgrade. That said, most people seem to upgrade.)
    > Should I be saving the project as CS4 or CS3?
    If you're working with a team and some of those people use
    Flash CS3,
    you'll have to save it as CS3 any time you want to share the
    file;
    otherwise, save it as CS4. The FLA settings are independent
    from the SWF
    publish settings.
    > - I no longer have the ability to save the file as Flash
    8 in CS4.
    Correct. Each edition of the IDE only save to the previous
    edition, as
    far as source files go. But each edition of the IDE is
    capable of
    *publishing* as far back as you like.
    > - It looks like I lose my XML files when I save as CS3
    Which XML files are those?
    David Stiller
    Co-author, Foundation Flash CS4 for Designers
    http://tinyurl.com/dpsFoundationFlashCS4
    "Luck is the residue of good design."

  • How to Build a Preloader for Flash CS4 and Actionscript 3.0

    With the wonderful help of many people on this site, I have successfully buit a nice website using Flash CS4.  I am wanting to deploy the site this weekend and I'm working on the finishing touches.  I would like to add a preloader so that the viewer will have everything loaded when the action starts.  Can anyone suggest a good tutorial that shows how to make the simple "rotary lines" that are so popular?  I've seen these and they look to be about an inch across and move like the hands of a clock.  I think it may even say "Loading..." or similar.  Since I'm still learning quite a bit, I did not know if Flash actually offers some "preloaded" tools for stuff like this?  Or am I better off going to Lynda.com and taking a tutorial?  Thanks for the help!

    Dark Armor, You mentioned the book Adobe Flash CS4 Professional Classroom in a Book, which I have.  I could not find anything in there.  Did you mean to say Actionscript 3.0 for Adobe Flash CS4 Professional?  I do have that book and it looks like there is information there.  Just wanting to make sure that you meant what you said.  Thanks!

  • How to load ai file in flash CS4 using code(Like loading swf or images )

    Hi,
    I have to load AI file in flash CS4 and provide the interaction with user.
    Can any body help?
    Thanks

    Hi.
    No you cannot  import Eps, wmf, emf,  ai, cdr files in swf dynamically using Action Script 3.

  • Tracing Captivate 4 variables in Flash CS4 using AS3

    Hello. I've googled this 9 ways to Sunday and can't find an answer. I'm hoping one of you can help.
    I have a very simple Captivate 4 quiz with one question. I embed the Captivate SWF file in a Flash file, which plays fine. However I am struggling with tracing one of the Captivate variables in the Flash file using AS3.
    All I want is for Flash to read the Captivate variables so I can continue developing my quiz in Flash (building additional functionality Captivate does not provide).
    The variable I'm attempting to trace is cpInfoAuthor.
    I've attempted:
    trace(root.cpInfoAuthor);
    trace(root.movie.cpInfoAuthor);
    var cpAuthor = MovieClip(root).cpInfoAuthor;
    All of the above examples error out: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Captivate preferences are set to publish in AS3.
    Anyone with an explanation?
    Be splendid, Jodie.

    Hi Jodie,
    I'm not exactly 100% proficient in AS3 but to me it looks like your statements are wrong.
    Since you are loading your Captivate SWF into a Flash SWF then (root) actually refers to your Flash SWF. I guess that you are loading your Captivate SWF into a movieclip on your Flash stage and that movieclip has an instance name,
    You would therefore need to grab the variables like var cpAuthor = yourLoaderMovieClip.cpInfoAuthor;
    See if that doesn't do the trick for you.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Can you link flash buttons to a embedded cue point

    I have a video that I exported to flv with 10 embedded
    navigation cue points. I also have 10 buttons in a flash file that
    I would like to link to those cue points. I can't find any info on
    how to do that. I see info on making a cue point make a event
    happen, but nothing on linking a button to a cue point. Basically
    I'm looking for the same interaction as a DVD were the user clicks
    on a chapter they want and the video goes to it.

    There are players that will play a swf with volume mute stop start that sort of thing I downloaded one a couple of years ago  I don't recall where I got it.

  • Create navigation cue points in a FLV file using Media Encoder CC

    When I export a FLV file with Navigation cue points created in Media Encoder CC (by loading a cue points XML file), upon examining the file I see that the cue points are recorded as Event type cue points in the metadata at the top of the file.
    When I load the FLV file in Flash, I can receive cue point notifications using action script while the video is played, but cannot use seekToNavCuePoint to move the play head to one of the cue points, which accords them being Events rather than Navigation points.
    I am wondering if there are any other export settings which need to be particular values in order for navigation cue points to be created properly in the exported file?

    Lestyn, thanks for the verification.  Took me a frantic 4 hours to arrive at the same conclusion.  Do these people test their software???
    Maddening.

  • How to use MS Access database in Flash CS4 using AS3

    Hello everyone,
         I need help for how use the MS Access database in FlashCS4 and I want to save and retrive the data from the database and display in the Flash window.
    Thanks with,
    Viswa.

    http://www.northcode.com/blog.php/2011/05/06/Using-ADO-Data-Sources-in-Flash-Projectors

  • OpenGL graphic flash after using side volume buttons

    I'm working on an OpenGL game based on the Crashlanding framework in Apple's code examples. I'm experiencing a one frame flash if you use the side volume controls during the game and Apple's graphic feedback overlays on top of the game view. Everything is fine when the overlay is up and begins to fade out but for 1/30th of a second after the fadeout concludes the screen appears to flash black. After further review what is happening is that the underlying game image is being cropped by the bounding rectangle of the OS-generated volume overlay. Anybody have a clue what is causing this and what I can do to prevent it?
    Any help would be appreciated.
    Thanks
    GK

    There's a few other posts like this floating around and none of them have any solutions other than it seems to happen on all phones and is a software problem. You can check them out here to see if anyone finds any solutions:
    https://discussions.apple.com/message/16632933#16632933
    https://discussions.apple.com/message/16538123#16538123
    https://discussions.apple.com/message/16381522#16381522

  • Hi Everyone, i have made a flash gallery using actionscript..how to add a loader to it?

    hi i am loading all thumbs and images in a container on a single frame using action script..but the size of the swf becomes 1.2 mb so i want to add a loader to it...the loader i am trying to add counts the frames but my file has just one frame so the loader doesnot show up..
    here is the script of my gallery..and the timeline has just one frame...
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    this.createEmptyMovieClip("container",1);
    var imagesNumber:Number = 18;
    var scrolling:Boolean = true;
    for (i=1; i<=imagesNumber; i++) {
    container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
    myThumb_mc = container["thumb"+i+"_mc"];
    if (i==1)
        myThumb_mc._x = (0.0)*myThumb_mc._width;
    else
        myThumb_mc._x = ((1.2*i)-1.2)*myThumb_mc._width;
    myThumb_mc._y = (Stage.height-myThumb_mc._height)/2;
    myThumb_mc._alpha = 100;
    myThumb_mc.largerImage = i;
    myThumb_mc.onRollOver = function() {
    this._alpha = 60;
    myThumb_mc.onRollOut = function() {
    this._alpha = 100;
    myThumb_mc.onRelease = function() {
    this._alpha=100;
    for (i=1; i<=imagesNumber; i++) {
    var myClip = container["thumb"+i+"_mc"];
    myClip.enabled = false;
    scrolling = false;
    _root.attachMovie("image"+this.largerImage,"large_mc",2);
    large_mc._x = (Stage.width-large_mc._width)/2;
    large_mc._y = (Stage.height-large_mc._height)/2;
    new Tween(large_mc, "_alpha", Strong.easeOut, 0, 100, 0.5, true);
    new Tween(container,"_alpha",Strong.easeOut,100,50,0.5,true);
    large_mc.onRelease = function() {
    scrolling = true;
    var myFadeOut = new Tween(large_mc, "_alpha", Strong.easeOut, 100, 0, 0.5, true);
    new Tween(container,"_alpha",Strong.easeOut,50,100,0.5,true);
    myFadeOut.onMotionFinished = function() {
    for (i=1; i<=imagesNumber; i++) {
    var myClip = container["thumb"+i+"_mc"];
    myClip.enabled = true;
    large_mc.removeMovieClip();
    container.onEnterFrame = function() {
    if (scrolling){
    this._x += Math.cos((-_root._xmouse/Stage.width)*Math.PI)*20;
    if (this._x>0) {
    this._x = 0;
    if (-this._x>(this._width-Stage.width)) {
    this._x = -(this._width-Stage.width);
    anyone knows how to add a loadre to this...?
    thanks..

    You'll need to repost in the AS2 forum.  That's all AS2 code and this is the AS3 forum.

  • Flash Cue Points in Soundbooth

    I'm working on a little singalong-application for flash CS4 and found that Soundbooth lets me insert cue points so that I can later sync textfiles to flash video if I save the soundbooth file with markers as  a .fv4-file. I tried it, but can't seem to get AS3 to find the cue points? I thought thay were dispatced as the video plays, so I added an EventListener and tried to trace something but nothing happened. Am I on the wrong track here?
    Sig

    Hi Sigmundo,
    At work ( disturb media ) we've finished a karaoke flash project. I haven't used Soundbooth then, we had limited time, so I wrote a few handy commands for flash that took care of the job. Hopefully we will be able to document that, right an article and share the commands as a packed extension.
    I've learned Soundbooth over the weekend and FLVCuePoints was one of the highlights. I've used FLV
    and everything worked out fine. I didn't know the Media(Flash Video) Encoder allows you open an xml
    file and insert cuepoints at that stage.
    Anyway,
    About F4V, Lee Brimelow has a more detailed post about the cue points bug here:
    http://theflashblog.com/?p=748 
    HTH,
    George

  • How can Image sliding work in flash cs4 on mac using mx.controls.loader

    Hi i started working in flash after a long time. i am creating a virtual catalogue DVD for my client. to work on it quickly, i used mx.controls.loader component to call jpg images in my movie.i just gave contect path in component inspector. my working OS platform is windows xp. and everything is working perfectly fine. i used actionscripting on buttons to slide images left and right. when my client opened it in mac everything else was fine but images were not loading. although the directory path everything is right and working here but not in mac.

    Hi Mate - I'm using CS4 Extended Ps v11.0.2, according to the Adobe site photoshop instals a 32 bit version only. How can I find out exactly by checking out preferences etc? I'll have to go hunt out the box.
    Thanks for the reply.

  • Flash cs4 Actionscript 2 support

    Hello,
    Can someone please tell me if Flash CS4 supports Actionscript 2?
    Many thanks, Damien

    Yes, you can edit or create files in any version of Actionscript with CS4

  • Client Web Review Videos (Flash CS4)

    As part of our video production process, we used to encode client review AVI videos in Flash and publish them from Flash. Once published, I would open the published HTML file with notepad and copy and paste the appropriate Flash related code into a template on our web server. The Flash code would be pasted in an html table cell in the template html file.
    This method consistently produced Web review videos that worked fine and played immediately.
    The process has changed with CS4. Now Flash doesn't accept and transcode an AVI file. You have to transcode the AVI in Media Encoder and then import the *.flv or *.f4v file into a Flash Project via the Import video function.
    Here is the problem I have... The finished product that used to work on our server will now play fine locally, but refuses to play on the server. The server is based on "Free BSD".
    I had the server administrator check the MIME types and he entered them last night for flv and f4v files. I haven't had time to try again, but what makes me skeptical regarding the MIME type issue is that Flash, flv or f4v based video exported from Encore play fine on our server.
    My thoughts are, it is either an issue related to a Microsoft fault, like the fact that PhotoShop files no longer display preview thumbnails in Windows Explorer, or the problem is related to an extra "hidden" step I am not taking with CS4 in order to make Flash CS4 videos play on a web server.
    I have addressed this in the Flash forum. I got one response from another guy having the same problem, but he said has not received any feedback whatsoever that has been helpful in resolving this problem.
    My final thoughts are this:
    Flash video created in Flash CS4 won't play on our server but the same f4v and flv files created and exported from Encore CS4 will. My suspicion is that In Flash CS4, I have to create an accompanying Java Script file or something, that is published to the server as well... Or possibly I need to install a Flash Extension that enables Flash exported video to play on a server.
    You might ask, why use Flash when Encore works. The reason is, Encore isn't flexible with the video controllers. Our clients want to be able to easily scrub to certain points in the review video. Also, I want our review videos to be enclosed within our Website template with our company's navigation buttons.
    Any thoughts?

    I've always enjoyed working in Flash. To be really good at it, you need a strong creative right brain as well as a good handle on programming, particularly Java Script and Flash's Action Script. I would need to learn programming to expand my creativity with Flash. Web design can be a frustrating profession. Back in 97' a guy who referred to himself as a scientist, taught me the basics of Web design. He claimed to have developed the technique of "slicing" images and optimizing the pieces individually and placing the image pieces in HTML table cells. He meticulously hand coded all of his clien'ts websites. I remember checking in on one of his masterpiece websites a few years later, only to see things all messed up. The thing basically fell apart. I don't know if it was because the browser I was using didn't read the HTML in a standard way or what. But the site looked terrible. You think we have problems in the video production business... try building websites for a living.
    The Flash video my original post is about was created for a producer friend, who's trying to get some people interested in a reality TV series. I tried to make the Web page where the Flash is embedded more interesting by using a jpg background referenced in the HTML using a java script that "stretched" the image to fit any browser window size. I thought the finished page looked great. We tested it on several computers, and everything looked and worked fine. The first important guy to look at the page couldn't see the video, just the background. I took the background out. I got another phone call from someone who said they couldn't see the video and their computer was asking if they started a process and for permission to continue installing a Flash Player update. I said, yes, this is a Flash based video you are about to look at, so go ahead and install the Flash Player update. Then there are people who work in a corporate setting where system administrators restrict certain Windows updates related to media. Other people never install any Windows updates and are running with expired anti-virus software.
    I enjoy working with Flash and even occassionally doing some Web design, I'm just glad I don't have to deal with Web compatibility problems day in and day out.

  • Error while loading a swf created in flash cs4, inside a flex application

    Hi there,
    I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
    <mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
    When I execute the flex application, I get this runtime error message:
    VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
        at global$init()
        at fl.motion::AnimatorFactory3D/getNewAnimator()
        at fl.motion::AnimatorFactoryBase/addTargetInfo()
        at logoRotar_fla::MainTimeline()
    I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
    Flash player 10,0,22,87 is running in my browser.
    Please help me out....
    Cheers!
    Deepak

    Get Flex 3.3 and use -target-player=10
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for

  • Undo Accounting Process 11i - Analysing ouput

    Hi I have run the Undo Accounting script as solution provided on one SR for a Payable Invoice Accounting issue The script run was as per below: Run UndoAtgh.sql Enter Org ID: XX Enter option 1 for Display Selected Event Details Enter option 1 to disp

  • IPhoto Slide Shows on iPod?

    I know how to convert my iMovies that I've created by sharing, using expert settings which makes them mpeg4 files... drag to iTunes, then download to my new 60 gig iPod... BUT, can you also do this with slide shows you've created in iPhoto? I'd like

  • How to Fire Trigger, when changes are applied on destination??

    Hi, I want to fire the following trigger at destination, when changes are applied from source table (cms.test_2) to destination table(cms.test_2). create or replace trigger Ins_and_upd after insert or update of send_status on cms.test_2 declare begin

  • Interactive Report Subscription - missing search functionality

    Hi, when receiving the output of a report subscription in Apex 4.1.1, the search Box is missing, only the Text string 'Suche:' is displayed. If i download the report as Email or html, the search box is there and usable. Maybe i'm wrong, but this was

  • Logging on ISA with username and password in URL

    Hi! We have a scenario where a customer have an internal portal and from this portal they access different suppliers webshop and get automatic access since the username and password is supplied in the URL. In our current Online Store solution we use