Calling a .js file upon completion of Flash Video

I have a challenge whose solution has avoided us. Maybe you
can help.
I’ll try to be succinct so as to not take up too much
of anyone's time.
1. I’m using CS3, but ActionScript2 for videos we have
uploaded to our website.
2. We are using AS2 because we want to target FlashPlayer 7
3. We want our entire video to play before the
“Next” button on our html page is enabled
4. Could you, would you, send to me the AS code that would
enable the flash video file to communicate with our .js script
5. And if you could do that, please also indicate where and
how it is inserted into the flash application?
6. I’m fairly new at flash and we are having an
unsuccessful time at having the AS2 code talk to our .js code.
It would be very much appreciated.
[email protected]

check out "externalInterface" for communication between .js
and as. Its very nice :)
For the event (video completion) you can pull in the metadata
from the .flv check out David Stiller's lil' tutorial...
http://www.quip.net/blog/2006/flash/how-to-control-flv-without-component/
and lookup onMetaData (just google it).
Between externalInterface, normal video controls (Stiller's
blog), and FLV.onMetaData, you can accomplish what you're hoping :)
And if you can write js, you'll be able to write this. Lemme know
if this helps.

Similar Messages

  • SqlServer 6.5 offline script missing 4 files upon completion

    hi there
    i have run the SS6.5 offline script with a normal user, namely "jdoe" :P anyway, the output is complete and no trace of errors is found, except that 4 files are missing:
    master\syslogins
    db\mtg_sysprimkey
    db\mtg_sysidxcol
    db\sysobjects
    (very important ones, don't you think?)
    I absolutely have to use the "sa" account for this task?
    or is enough with another "administrator-like" account?
    any help or hint would be appreciated
    thanks in advance
    jsuarez

    jsuarez,
    You do need SA access for this. get the access or let someone who has access run the script. The output is pretty transparent so they can see what they are giving you.
    Barry

  • Redirect to url after flash video completes

    I've embedded a .flv file using Insert/media/flash video in
    DW 8.02. Is there some way I can get it to redirect to a specific
    url once the movie completes?
    The only options currently seem to be stop/rewind.
    Thanks,
    Rashid.

    RashidK wrote:
    > I've embedded a .flv file using Insert/media/flash video
    in DW 8.02. Is there
    > some way I can get it to redirect to a specific url once
    the movie completes?
    >
    > The only options currently seem to be stop/rewind.
    >
    > Thanks,
    >
    > Rashid.
    >
    you have to set this up in the flash file (in ActionScript).
    when it reaches the end:
    getURL("redirectpage.html");
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Creating a Flash Video File

    Hello,
    I'm in desperate need of some guidance on how to actually
    convert an avi file over to a Flash Video (FLV) that I can
    eventually insert into a Captivate movie. I do have Flash but have
    no clue where to start (new to Flash personally). Can anyone
    possibly provide some step by step instructions on how to do this?
    I do have the AVI file on my hard drive and would really appreciate
    some step by step instructions.
    Since I'm new to Flash and haven't yet received any training,
    I'm really in the dark.
    Thanks for any assistance!
    Helen

    I'm also new to flash and have never done it before, but I
    think all you need to do is use the Flash 8 Video Encoder that
    comes with flash. That should convert the avi and a few other kinds
    of video files into FLV's.

  • Compressing for flash video setting

    Anyone out there building content for flash video? I have a client who is shooting all their footage on a sony HD cam. All footage comes to me as 1080i60. They have requested all content be converted or embedded into flash at a 400X300 canvas size.
    I have tried some differant setting but most comes up somewhat pixilated. Any ideas?
    Thanks in advance for any ideas.
    Ron Nava

    Maybe this is helpful: Flash 8 Pro comes with a Flash 8 Video Encoder. It automatically converts Quicktime files into a .flv flash video file WITH a .swf AND a playback skin.
    The cool thing about this is how Flash then plays this back as a "progressive download," therefore less waiting time for it to start playback and smoother playback and very nice quality.
    I have a sample of this at size 540x400, larger than I have made in the past with other programs, just to see how it would look. I'm still playing with the dimensions. Thinking of making it smaller, actually; but the quality really holds up, I thought. http://web.mac.com/bfkproductions/HomeOne/PowWowSample.html

  • Migrant assistant - iMac froze upon file transfer complete

    Upon completion of files, applications transfer, got a message both on MacBook Pro and iMac computers, being MacBook Pro my source and the iMac the destination ccomputer.
    On both computers got the messag: ´Your information has been transfered succesfully´
    However, when trying to view my files and all information, MOUSE AND KEYBOARD ARE NOT RESPONDING.
    It is frozen and Not sure if I should a forced shut down by pressing the power button for a few seconds???
    Any thoughts
    Thanks

    Thanks Don.
    Uopn further thinking, There may be a conflict because on both computers I have created a user with the same name.
    I remember when I first turned on the new iMac computer, it prompted me for migrant assistant and I skipped that step since I did not have an ethernet cable then.
    Next I created the user with the same name as my MacBook Pro,
    Next updated the iMac with the latest Mac OS X Version 10.7.5
    and after that is when I started with migrant assistant through all the steps until the iMac mouse froze.
    So I will follow your advise.
    Thanks.

  • Script to create 2 column CSV and zip upon completion

    I'm trying to to grab images or PDF's in a folder, add those containing "front" into the 1st column of a CSV, those containing "back" to the 2nd column and then zip/archive it upon completion.  So far I'm using the following script, which add's all PDF/png files to the CSV in a single column.
    How do I create column headers and add files containing "front" to the first column and "back" to the second?
    Thanks in advance for the help.
    do shell script "find ~/Documents/csvConvert/pngFiles \\( -iname '*.png' -or -iname '*.jpg' \\) -exec basename {} \\; | sed -e 's/.pdf$//' -e 's/.jpg$//' -e 's/^.*$/\"&\"/' > $HOME/Documents/csvConvert/Groups/PDFfiles.csv"

    I'm not sure how you are running the script e.g. Automator or in an Applescript. Because there are several steps involved I have just done it all in a shell script…
    To use it copy & paste into a plain text file (TextWrangler is a decent free code editor with syntax highlighting - it makes life easier).
    Save the file as paginator.sh
    Make it 'executable' (only need to do this once). In Terminal…
    chmod +x paginator.sh
    Now you can run it by using…
    paginator.sh
    Obviously use the full path to the file in those commands (drag & drop the file to get Terminal to autofill it).
    This is the script…
    #!/bin/sh
    # Output file
    OUTFILE="${HOME}/list.csv"
    # source folder with images
    FILES="${HOME}/test/"
    # Files for temporary storage of filename lists
    FRONTLIST="${HOME}/list-front.txt"
    BACKLIST="${HOME}/list-back.txt"
    # list front & back into text files
    find "${FILES}" \( -iname '*.png' -or -iname '*.jpg' \) -and -iname front\* -exec basename {} \; | sort -n > "${FRONTLIST}"
    find "${FILES}" \( -iname '*.png' -or -iname '*.jpg' \) -and -iname back\* -exec basename {} \; | sort -n > "${BACKLIST}"
    # Setup CSV with headings
    echo "front,back" > "${OUTFILE}"
    # Merge 2 list files with a comma
    pr -m -t -s\,  "${FRONTLIST}" "${BACKLIST}" >> "${OUTFILE}"
    # strip pdf, jpg, png suffixes from the output file
    sed -i '' -e 's/\.jpg//g' -e 's/.pdf//g' -e 's/\.png//g' "${OUTFILE}"
    # remove temp files
    rm "${FRONTLIST}" "${BACKLIST}"
    In short it finds the front & back files (sorts then & saves that in two text files).
    Then it merges them via 'pr' and removes the suffixes in one pass of the output file. I have removed the last piece of the sed (I'm unsure what it was for).
    It saves into  ${HOME}/list.csv Which is the users home folder
    There are is room for improvement on this but it creates the csv as desired…
    The sort will place front_10.jpg before front_1.jpg (You must use leading zeros on all your files - e.g. file_01.jpg, back_01.png…)
    This does not account for nested folders! It will find files at every level! (you can add '-maxdepth 1' to stop find going into nested folders).
    The output depends on the file names & if one file is missing the order goes out of sync (you should probably search for the correct 'back_' image & a pair them up correctly with extra logic).
    The paths are 'hardcoded' (you can make it accept input so that you can pass the 'files folder' and the 'output file' name into it).
    If this is all too complex you could try to re-purpose into an Automator or Applescript, but I think if you are calling repeated 'do shell script' actions it is a sign you could be using the shell itself. It can be wrapped up if you need to make it run like an application - or just give it a '.command' suffix & it should just launch Terminal & run when you double click the file.
    Let me know what you think.

  • Flat File-to-RFC question, multiple RFC calls for one file.

    Hi guys,
    I'm quite new to XI / PI and I have a question regarding a File-to-RFC scenario we're trying in NW PI 7.1.
    We have a flat file which has two lines with two fields each, let's take this as an example :
    001,001
    002,002
    The files needs to be converted to XML and then transferred to the RFC program which will update a table with the values above.
    In the ESR I've created 3 data types (z_row1,z_record1 and z_fileinput1), 1 message type (z_file2rfc_ob_mt), 1 message mapping (z_file2rfc_mm), 2 Service Interface (z_file2rfc_ob_si and z_file2rfc_ib_ztestpi) and 1 operation mapping (z_file2rfc_om).
    In the Integration Builder (ID) I've created everything required (The sender and receiver communication channels, sender and receiver agreement, receiver determination and interface mapping).
    We're also using content conversion to convert the flat file to XML, this does seem to work because I see all the lines/field in the message when it gets into PI. The problem is that the RFC can only accept two fields at a time and only the first line gets updated. I see that only the first line gets sent to the RFC.
    How can I make the RFC call for each and every line ?
    Thanks !!

    Create the RFC with table, which takes multiple lineitem as input and update the table in single call.
    If you want response back then call RFC as synchrounous else in Asynchrounous mode.
    By doing this in single call it will update the complete table.
    Gaurav Jain
    Reward Points if answer is helpful

  • PPT action buttons are not present in pdf file upon conversion

    Hi
    Am using Office 2003 (SP3) and Acrobat 8 (version 8.1.6).
    Have been using action buttons in the presentations for several years, works fine.
    When converting existing files, action buttons in both PPT show and pdf file just works, no problems.
    Newly generated presentations work fine as PPT show. But when converted to pdf file, the action buttons are simply missing.
    Have verified that all action buttons are "at front", same result.
    Have tried to avoid corporate templates by creating a blank presentation and building a small and simple navigating presentation. Again, works fine as PPT show. And again, upon conversion there are no action buttons present in the pdf file.Corporate changes thereby should be ruled out.
    Have checked all settings (including "Adobe PDF, Change Conversion Settings") between a working and a non-working PPT file, can't identify any differences.
    A colleague helped out (using Acrobat 6), same result. But upon activation of "Adobe PDF, Change Conversion Settings, Restore Defaults", the action buttons worked for him. Tried it with Adobe 8, no such luck.
    Have trialed the "Prep 4 PDF" tool, then the PDF file is complete and the "go to slide" keys appear and work again.
    All new updates available are installed, anyone experienced the same and found a fix for this trouble?

    Have tried both ways, same result.
    When working with new presentations, the pdf file is viewable, but the action buttons are not present.
    When working with past presentations, the action buttons are present and do work as expected.

  • Moving files doesn't update Flash Skins in DW CS 4?

    Hello,
    on a page I've got a flash movie (.swf with skin (via
    importing/converting a qt in adobe media encoder, then importing
    video into flash, adding a skin, them exporting to site folder an
    opening in DW CS4).
    it works fine in the browsers.
    now when I want to change the position of the page in my site
    folder (move it into different folder) DW asks me if to update
    links, I click okay, but it doesn't update the code/links whatever
    (to show me the skin for controlling the movie). What have I
    forgotten to consider? Maybe alsready at exporting the file(s) from
    Flash?
    Thanks in advance,
    beatrice

    beatrice posted in macromedia.dreamweaver
    > As far as I understand the .swf holds the url of the flv
    in it's
    > code, so those should be kept together. and the skin swf
    is
    > connected to the ?large' .swf, so those should be kept
    together,
    > too.
    (I will assume you're using the FLVPlayback component in
    Flash)
    The .swf that holds the url of the flv (let's call that
    player.swf for
    now) uses whatever link you give it. You can give it a root
    relative
    location so it will work from anywhere on your site.
    /videos/flvs/film1.flv for example.
    And, depending on the object/embed code generated, you should
    be able
    to edit that in the code view in DW. Something like
    &streamname=/videos/flvs/film1
    And you can then store player.swf in a different location.
    /media/swfs/player.swf for example.
    I think DW will update links to player.swf if you move
    player.swf to a
    different location, but I don't know if it will update
    object/embed
    code.
    However, it seems that .swf files created with the
    FLVPlayback
    component are hard-coded to look for the skin file in the
    current
    location - that is, the location of the html file with the
    object/embed
    code.
    > But I don't want my pages/html folders be cluttered with
    .swf
    > files and I
    > don't want the videos folder get cluttered by pages
    files ... but
    > keep them clean sorted in their kind of media folders
    .... and be
    > able ot separately shovel them around or move them to
    subfolders
    > if neccessary and to rename html pages with the
    sitemanagement in
    > DW to update the links automatically...
    Understandable.
    >
    > Or the other way, I thought that .swf and flv plus .swf
    skin
    > could be put onto
    > any other html page, but then the skin does not appear.
    it seems
    > connected with the html code, but how and why?
    Oops. I think I answered this above. I think it is the
    FLVPlayback
    component that creates a hard-coded path to the current
    directory.
    > it would mean that once created video holding html pages
    cannot
    > be moved in
    > the site folder anymore. (or that the swfs must be
    published from
    > within flash again with different name/target folders...
    > That would not be a very flexible sitemanagement...
    > There must be sth I am missing here...
    Again, you can store the player .swf files anywhere, and the
    .flv files
    anywhere, but AFAIK, the skin .swf files must be in the same
    folders as
    the .html files that reference them.
    There's a chance that somebody in the Flash forums has
    created a work-
    around, but I haven't been there in a while.
    I haven't tested, but you /might/ be able to set a BASE href
    element to
    get around it. Of course, all other links in that page would
    need to be
    root relative after doing so.
    Another method (if supported by your host) might be using
    .htaccess
    with a rewrite directive.
    If you're feeling adventurous, you can edit (a copy of) the
    FLVPlayback
    component or one or more of its actionscript files found in
    the
    Flash configuration folder.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • How to call a html file in a java file

    how to call a html file inside a java file ?

    Hopeless. Are you by any chance a rare gas? You seem completely inert. LOL You totally pwned him there :rolls eyes:
    well, no, I think he's looking for something to this degree:
    in HTML, there is a mailto: command that makes the system default handled way to email emails open up. He's looking for a command thats very nice and opens a html file in the system default browser.
    So, Dick, Runtime.exec would work execpt that he needs a way to find the default system browser to call exec on, AND he has to know how to pass html file locations to the executable via command line arguments
    He just didnt try to phrase it at all :P

  • Obtaining the full file path specification from Flash Movie and QuickTime icons?

    How do you obtain the full file path specification from Flash
    Movie and QuickTime icons? I want the path and the file name that
    is contained in these icons. I am using a "dive" to run through the
    icons of a file, and when I come upon these two types of icons, I
    want to obtain the above information that is contained in them. I
    certainly can look in the property dialog box to get this info, but
    there are many icons in these files, and I want to generate a list
    of info based upon the various types of icons that I am processing.
    Thanks

    > How do you obtain the full file path specification from
    Flash Movie and
    > QuickTime icons? I want the path and the file name that
    is contained in
    > these
    > icons. I am using a "dive" to run through the icons of a
    file, and when I
    > come
    > upon these two types of icons, I want to obtain the
    above information that
    > is
    > contained in them. I certainly can look in the property
    dialog box to get
    > this
    > info, but there are many icons in these files, and I
    want to generate a
    > list of
    > info based upon the various types of icons that I am
    processing. Thanks
    >
    For Flash
    Trace(GetIconProperty(iconID, #pathName))
    for QuickTime
    Trace(GetIconProperty(IconID, #filename))
    For full scripting reference for each of these sprites, open
    up the
    Properties panel for each sprite and press the Help button
    that appears on
    the properties page ... or else navigate to these folders for
    the Flash and
    QT help
    C:\Program Files\Macromedia\Authorware
    7.0\xtras\FlashAsset\Help
    C:\Program Files\Macromedia\Authorware
    7.0\xtras\QuicktimeAsset\Help
    You don't want to know how many times I asked Macromedia to
    stop hiding that
    Help!
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Need advice on making a simple Flash video file. Trying to accomplish two things.

    I have some video files (.avi) that I am trying to convert to a Flash video format. I am trying to export it to a Flash player to go into a Powerpoint file. With this, I am trying to accomplish two goals:
    1. To have the short clip (15sec, 30fps) endlessly loop, like an animated .gif.
    2. To allow the user to click on the video player and drag left/right to ff/rew.
    The video itself is a turntable animation. One of our products is making a complete 360degree turn. By allowing the user to grab and drag, it will simulate them rotating the model.
    So far, I have already accomplished Goal 1. I made a new Actionscript 3 file, imported video (embed flv in swf and play in timeline), and then made the video loop on the timeline. This seems to export properly, and the video loops as needed. The only thing I can't figure out is how to make the video "interactive" and let the user drag left/right.
    For context, I have never used Flash before. Any help would be greatly appreciated.

    This will come down to essentially moving the playhead of Flash based on the movement of the mouse. It's certainly not going to be smooth however, you'd need a timer to be responsible for moving your playhead and reversing spatial compression is very CPU intensive (moving backwards on the timeline). I'd recommend having a forward and backward version of the video so you could flip between them but if you're new to flash you're already in way above your head.
    Add a new layer and try adding this example script (or Download Source example here, saved to CS5):
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.events.MouseEvent;
    // make sure we don't trip this frame twice
    if (!stage.hasEventListener(MouseEvent.MOUSE_DOWN))
              // stop playhead
              stop();
              // set state (forwards? backwards?)
              var movingForward:Boolean = true;
              var curFrame:int = 1;
              var mouseStartX:int; // used later to determine drag
              // detect mouse click and drag left or right
              stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseF);
              stage.addEventListener(MouseEvent.MOUSE_UP, onMouseF);
              // create new timer to control playhead, start it
              var phTimer:Timer = new Timer(33,0);
              phTimer.addEventListener(TimerEvent.TIMER, movePlayheadF);
              phTimer.start();
              // function to control playhead
              function movePlayheadF(e:TimerEvent):void
                        curFrame += movingForward ? 1 : -1;
                        // validate frame (60 total frames)
                        if (curFrame > this.totalFrames) curFrame = 2;
                        else if (curFrame < 1) curFrame = this.totalFrames;
                        // goto the next frame
                        this.gotoAndStop(curFrame);
              // function that controls the direction variable
              function onMouseF(e:MouseEvent):void
                        if (e.type == MouseEvent.MOUSE_DOWN)
                                  // user started touching, record start spot
                                  mouseStartX = int(stage.mouseX);
                        else if (e.type == MouseEvent.MOUSE_UP)
                                  // user let mouse go, determine direction change (swipe stype)
                                  if (stage.mouseX > mouseStartX)
                                            // swiped right, move forwards
                                            movingForward = true;
                                            trace('Moving forward now');
                                  else if (stage.mouseX < mouseStartX)
                                            // swiped left, move backwards
                                            movingForward = false;
                                            trace('Moving backwards now');
    This is pretty simple. In the example source link above an object on the timeline (nice ugly red circle) moves right over 60 frames and then left over 60 frames (120 total). Consider that your movie.
    A timer ticks at a speed of 33ms (30fps). This is where it isn't necessarily going to be too smooth with video. If you increase it to 60FPS then decrease the timer by half (16.5ms), season to taste. Each time the timer goes off the playhead is moved, either forwards or backwards.
    To know if it should go forward or backwards a simple variable (movingForward) keeps track of the last 'swipe'. The swipe is simply captured when a user touches the screen (mouse/finger), moves in a direction and then lets up. If they moved to the left the direction will be reverse. If they moved to the right it will move forward. This doesn't take into consideration any more than that logic, but illustrates how you can watch the mouse for movement and "do something" based on it.
    A very simple validatior in the timer event function checks to see if the next frame (in either direction) is valid and if it's not, it corrects it so it stays within your videos timeline length.
    Note there is a MOUSE_MOVE event you can try to hook to which can be used to literally let the user drag the video forwards and backwards the amount they drag their finger/cursor. Also if this is some kind of circular surface like a record spinning, the direction the user moves the mouse based on where they touch the record would change which direction they expect it to move. Etc etc..
    That should get your feet wet in how much you need to consider for your project.

  • Flashresource file missing.  Mac flash pro cs5.  I have reinstalled 3 times, same message each time

    Hey guys, can't find help anywhere so I am asking here.  I work for a small tv station who recently purchased Flash Professional to learn.  They want me to learn it and create some animation for bumpers yadda yadda.  Anyways here's the problem.  Every time I install it it seems fine and works for a couple of days.  Suddenly one day it won't open and all it says in the message is "flashresource file missing. please reinstall flash "  So I say uh oh and reinstall.  Works great so I think ok problem solved.  Then a couple of days later it does it again.  I have gone through this 5 times, each time reinstalling works for a few days or week then blammo suddenly "flashresourcefile is missing. please reinstall flash"  I am completely stumped.  After effects, premiere pro, soundbooth, all work great.  Flash professiional is the only one doing this.  HELP!!
    Macbook Pro intel i7
    snow leopard osx
    8gb RAM
    64 bit

    Hi there, do you happen to have CleanMyMac installed on your machine? I had same issue with my Flash CS5, problem was CleanMyMac was cleaning few extra things that require for flash to run.
    Hope that helps!

  • Combining Multiple XML files to use in Flash

    I am still fairly new at the whole Flash...XML thing but I
    was wondering if it is possible to combine several XML files used
    to build photo galleries into one single XML file that Flash could
    then read which gallery depending on which gallery is selected.
    Basically I have about 10 photo galleries and 10 XML files. Each
    XML file is named different and in Flash I have the gallery calling
    the XML file. I was thinking it would clean things up a lot and
    make editing easier if I can some how make one XML with all the
    galleries contained inside the XML then write a variable or
    something so Flash knew which gallery to open when activated.
    Similar to how you have to write the variables for a text doc file.
    Any help would be great.
    D

    Hi Nasakick - take a look at this tutorial; essentially
    you'll end up with what you need after inserting another layer of
    more of the same:
    http://www.kirupa.com/web/xml/examples/portfolio.htm
    Hope that helps!
    Cheers
    A

Maybe you are looking for