Seamless animation using a SWF

Hi,
I'm having problem with playing a *.swf file in my animation.  The *.swf file actually contains a video clip of people passing a card to one another. On the main timeline there are 3 nested movieclips, the movieclip on the second frame contains the *.swf file, and using Im using this code to load the SWF file:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("iwill_cards_video.swf");
myLoader.load(url);
MovieClip(root).nextFrame()
The first movieclip plays fine, but then the next two movieclips play at the same time over one another.  I would like for the first movieclip to play, then the second movieclip containing the SWF file, followed by the final movieclip.  I have a "stop" on each of the 3 frames on the main timeline but it doesnt seem to work?
thanks in advance,
Matt

if your loaded swf just plays from frame 1 to its main timeline last frame and that's when you want your loading swf to advance to frame 3, you can use:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new  URLRequest("iwill_cards_video.swf");
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoad);
myLoader.load(url);
function onLoad(e:Event){
MovieClip(myLoader.content).addEventListener(Event.ENTER_FRAME,checkPlay);
function checkPlay(e:Event){
if(e.target.currentFrame==e.target.totalFrames){
e.target.stop();
MovieClip(myLoader.content).removeEventListener(Event.ENTER_FRAME,checkPlay);
removeChild(myLoader);
myLoader.unload();
myLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,onLoad);
myLoader=null;
MovieClip(root).nextFrame()

Similar Messages

  • Playback a seamless animation using wmv format

    I have created a seamless looping video for a piece of equipment.
    In after effects, the video is truly seamless and no skipping is present.
    Currently I am exporting to swf format, which plays back seamless at the cost of a larger file size.
    The reason for going with the wmv format is the size is significantly less than the swf.
    Is there a player that can playback a wmv file seamlessly?
    Windows Media Player, Quicktime, VLC Player, all have a pause or black flash at the end of the video when looping.
    Any other format recommendations?
    Thanks for the help
    -Steve

    if your loaded swf just plays from frame 1 to its main timeline last frame and that's when you want your loading swf to advance to frame 3, you can use:
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new  URLRequest("iwill_cards_video.swf");
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoad);
    myLoader.load(url);
    function onLoad(e:Event){
    MovieClip(myLoader.content).addEventListener(Event.ENTER_FRAME,checkPlay);
    function checkPlay(e:Event){
    if(e.target.currentFrame==e.target.totalFrames){
    e.target.stop();
    MovieClip(myLoader.content).removeEventListener(Event.ENTER_FRAME,checkPlay);
    removeChild(myLoader);
    myLoader.unload();
    myLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,onLoad);
    myLoader=null;
    MovieClip(root).nextFrame()

  • Use an SWF as a Fill

    Does anybody know if it is possible to use an swf file as a fill?
    So for instance you could embed the swf file into code then use it as a fill for an object and get an animated fill?
    Or is there another way to achieve something similar?
    Thank you in advance for taking the time to read and comment.
    Jon

    Good old 1998!
    You could load the swf using SwfLoader and watch its enterFrame event.  When the frame changes, you could fill a BitmapData with it like this: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics. html#beginBitmapFill().  You could use that BitmapData in a Bitmap, which could then be used for the source of an Image.
    HTH;
    Amy

  • Problems in using Flash swf in captivate 5

    Hi,
    I am using captivate 5 and in that for a project I created some flash animation in flash cs4 and using the swf output file in captivate.
    So the problem is this:
    When I publish the project and try playing the project(exe/html output), those flash swf animations are not playing properly or not at all playing.
    There are around 40-50 slides in captivate and around 90% of those files contain flash swf animation. Some of the animations are playing and some are not.
    In flash cs4 the action script version is 3 and also I tried publishing the project in both flash player 9 and 10 but still some animations are not playing. Its random.
    Any fix for that? Its urgent.
    Thanks in advance.

    There's a known issue with the way Captivate 5 loads SWFs.  If the animation is not all on the main timeline level of the SWF, but the animation has been placed inside a symbol, Captivate triggers the animations to play when the SWF is loaded right at the beginning of the movie instead of making them play only on the slide where the SWF should play.  This means that by the time your movie gets to the slide in question, the animation has already finished playing, and it looks to you like it won't play, when in fact it already HAS played.
    This issue only affects SWFs with animation inside symbols, which is unfortunately the way most Flash animation designers are taught to create them.  It can be fixed via some AS3 code inside the SWF, but this is only possible if you have access to the FLA files used to create the SWF, and you know how to use Flash.
    There is more information in this thread: http://forums.adobe.com/message/3551526#3551526

  • Once I create a html5 animation using the 'Toolkit for CreateJS' in flash, how do I then insert it..

    Once I create a html5 animation using the 'Toolkit for CreateJS' in flash, how do I then insert it into a webpage via Dreamweaver:
    This has been sending me round in circles for over a week - can anyone let me know how I do this or can they point me in the direction of a tutorial?  Thank you in advance - d;-)

    There are some tutorials on Adobe site:
    <http://www.adobe.com/devnet/createjs/articles/getting-started.html>
    <http://tv.adobe.com/watch/adc-presents/toolkit-for-createjs-part-1-designing-game-assets/>
    <http://tv.adobe.com/watch/adc-presents/toolkit-for-createjs-part-2-adding-game-interactivi ty/>
    The parts 1 and 2 are videos about 10 minutes each while the first link is a detailed article that you can print and practice on your machine.
    Hope this helps.

  • Using a .swf as an HTML layer in DW CS3

    Hello,
    I am using a .swf file as a background for my site and I can get the thing to work in Firefox and Safari on the Mac, but not in IE or Opera.  It will play the .swf but in layers in on top of the content, not underneath.  What is so different about how IE and Opera view the page that Firefox and Safari do not have.  Please give a look at this link: http://www.allwickedthings.com/WT_index_test_1.html and let me know what you think.  The .css files are posted on the root directory, just check the code to find the file names.  I'm going to continue to experiment on the code and see if I can come up with something.  Also this site displays in a different way on Netscape, it just leaves the movie out altogether.
    Thanks,
    Brett

    First, run your page code through the on-line validation tools below and fix the reported errors.
    HTML Validator - http://validator.w3.org
    CSS Validator - http://jigsaw.w3.org/css-validator/
    FREE HTML & CSS Tutorials  - http://w3schools.com/
    You need a document type on your first line of HTML code.  On DW menu hit FILE > Convert and select HTML 4.01 Transitional as your doc type.  Without a doc type declaration, your pages will have undrepdictable cross browser results.
    I've never needed to use an SWF as page background, so can't be much help.  Maybe this thread from another forum will shed some light.
    http://www.kirupa.com/forum/showthread.php?t=277976
    Good luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Builiding animations using FXML or the Scene Builder in javaFX

    please i wanna know if its possible building user interfaces with dynamic nodes or animations using FXML or the Scenebuilder in JavaFX
    Elikem.

    HI,
    Currently SceneBuilder is still a baby v.1.x You can only create nodes and make some graphical , layout, stylesheets changes on them. The animation can't be done from the FXML so Scenebuilders dont have these concepts. You will need to have hard code for this. But I still think SceneBuilder is far more Flexible,fast and easy to build javafx application.
    Thanks
    Narayan

  • How to use an SWF file generated by Flex as a Stand Alone file

    Whenever we compile an MXML file, there is an SWF file
    generated. This file is not a standalone file and will not work on
    any other computer expect on the computer where there is a Project
    file created by the Flex builder.
    Why am I not able to use that SWF file as a stand alone file?
    If I want to use that SWF file alone as in the SWF generated
    by Flash what do I have to do?
    Regards,
    Rashmi

    The swf file will run from anywhere. What's it doing when you
    try to open it on another machine?
    The only thing I can think of is if you're getting a security
    violation in which case you would need to read about Flash Player
    trust files and security.
    -Mac

  • Using a swf generated by Flex from a Flash component

    I know you can include and control a swf generated by Flash
    within a Flex component. But can you do the inverse? Can you use a
    swf generated by Flex within a Flash project/component?
    We plan to develop a "core" module that would be used in a
    lot of other Flash and Flex components we'll develop in the future.
    This core would be a package of classes that could be easily
    re-used by the components. There would be nothing visual in it,
    only standard classes.
    Even if this core would not contain any visual components, we
    would like to develop it using Flex since we prefere Flex Builder
    to the Flash editor to code and debug.
    But I'm not sure if:
    1) A core module like this, developped in Flex, could be used
    by our Flash components or only by other Flex components?
    2) If we use Flex to generated this core, will the resulting
    .swf be bigger than if we would have used Flash to develop it?
    Since there will be no Flex visual components in it, maybe it will
    be as small? Is there a compiler parameter to tell Flex to only
    include the minimum things possible in the generated .swf?
    Any help or link about this would be really appreciated!
    Thanks you in advance!
    P.S. I apologize to those aware that this message was also
    posted on another Flex related forum, but I received no reply on
    it!

    try this. for me it has worked.
    import flash.net.URLRequest;
    import flash.utils.Timer;
    var loader:Loader = new Loader();
    var timer:Timer;
    var myclip:MovieClip;
    //load the Flex Component
    loader.load(new URLRequest("IS.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loaderDone);
    addChild(loader);
    function loaderDone(e:Event) {
    timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, handleTimer)
    timer.start();
    function handleTimer(event:TimerEvent):void {
    //cast the loader.content into MovieClip to access
    currentFrame.
    myclip = loader.content as MovieClip;
    if (myclip.currentFrame == 2)
    however, i need to access properties of IS.mxml..
    any data member would work..
    or if i could dispatch an event in IS.mxml and catch it in
    flash through IS.swf, it would work.
    Pls somebody suggest.

  • I am a new using Adobe products, and I am creating an Animation using Edge Animation.....

    Hi guys.
    As I said, I am new working with Adobe products, like Dw, and now I am creating an animation using Edge Animation.
    Actually, I am creating a carrousel with different pictures representing three different apps being displayed from different devices, moving them and creating a simulated
    movement for each one, based  on the functionality, that action should be activated by a button (i.e.) titled "Inventory", the action to execute is to move
    the three related screens ( Desktop, Ipad and Iphone ) from the original position  to the middle screen, but at the same time, and this is what I need to know,
    If there is another set of screens for a different application, how to move those back to the original position, before moving
    the selected one, "Inventory". I tried to use a duplicated transition and inverting, it works, but it doesn't stop waiting for a new action, and how to combine
    that movement back with the selected app-transition?
    I put  two screenshots with the stage and the original position for all of them. I have not created the buttons yet. I imagine I should use some kind
    of conditional statements to execute the action sending back  those elements  located in the middle  of screen, because were selected before,
    and then execute to animation to move the selected app.
    I would appreciate your help on this matter.
    Thanks.
    Gustavo Hevia
    original Position.
    After the First animation for Inventory App.

    No answers, Ok.
    I will try to give you more information about I want to do.
    I am a Filemaker Developer, and I started creating my webpage, and one of thing I would like to do is this
    animation and put it on my website.
    What I want is to simulate a carrousel of options to show the selected application using the three buttons,
    Now, I put the three buttons and each one of them is moving the three corresponding applications, that's fine.
    But the issue I have :
    I am using Mouseover and Mouseout to show a different color and size of the buttons, and to execute the
    corresponding animation.
    For each event I created different labels : Inventory_hover ; Inventory_mouseover ; Inventory_Animation and
    Inventory_Animation_Reverse and so on.
    Testing that
    After I selected one of them, and it ended moving the three pictures to the center of the screen, and then I
    leave, the three screens moved to the original position, which is not a bad idea, but I want to control that
    moving.
    So, what I want as a summary is :
    1) to control that back movement. I was trying to figure out how to add some code inside the Animation code, and
    just before execute that animation, check if there is another application selected before, and then move that
    set of pictures back to the original position, since I have only three applications pictures, and only one can move
    at the time, the checking "If Statements" would be for two others conditions.
    2) That should be done only when one of the buttons is clicked, and not when the mouse leaves the buttons like it
    is happening now.
    I attached a zip file with my EA files.
    Thank you in advance, Any help would be really appreciated.

  • Problems with animations using key frames and other bugs

    To me, the current version of Acrobat 3D Toolkit (7.0.7) seems like a beta version -- unfortunately I payed the full price. Or maybe there are a few settings only set wrong on my system and someone can tell me how to correct this ...
    ++ Animations using key frames
    According to the manual page 86:
    <-----
    6. Ensure the time/frame line is positioned at frame 0, right-click over the time/frame line in the timeline, and then click Insert Key.
    ---->
    I cannot get this context menu option (see http://www.vornweg.de/acrobat3d/no-insert-key-option.gif )
    ++ Empty and hence almost useless Animations Options dialog
    The Animation Options dialog does not list any Sequence entries -- although there are sequences available, see http://www.vornweg.de/acrobat3d/empty-animation-options-dialog.gif.
    ++ Mixed up icon bars
    Moving icon bars around can result in a complete mix-up of unusable icons, see http://www.vornweg.de/acrobat3d/mixed-up-menus.gif
    ++ Functionless Object Position toolbar
    The object position cannot be set using the Object Position toolbar, the OK icon is deactivated all the time although the tick icon is darker green, i.e. supposedly active (see http://www.vornweg.de/acrobat3d/position-panel.gif
    ++ Missing things
    Why is there no properties panel visible all the time, displaying the properties of the selected object and allowing to change properties (e.g. positions, angles etc.)?
    Why is it impossible to view different trees at the same time (e.g. scene tree and animation tree)?
    Why is it impossible to have different models open simultaneously? (E.g. to compare settings or even to copy properties/objects from one model to the other.)
    Why is it impossible to create new folders in the scene tree? Imported folders are available, but for the scene management within Acrobat 3D I may have different requirements than the CAD designer had. (Also, I would like to put new objects in folders of my own.)
    Why is tabbing not supported more extensively? E.g. All the different trees (Folders, Scene Tree, ...) could all be put into a single tabbed panel saving valuable space on my screen but still giving easy access to all items.
    Why is there no Undo for camera position changes?
    Why is there no Undo for material edits (e.g. applying a new material to an object)?
    Why is it only possible to animate object movements, not the making visible/invisible of objects and changes of the camera position?
    Why is it impossible to save object selections? Within a larger model it always is a lot of clicking to get the view required for certain actions.
    Why are there a lot of different Display options available on-screen but when a scene is rendered into a file, Acrobat 3D uses the same display option all the time (i.e. Solid)?
    Probably this list could be extended quite heavily. And some of these missing things may be time intensive to realize (and saved for future versions), others are comparably basics now-a-days.

    I agree with the "beta" feel of the 3D Toolkit. I have been very frustrated getting animation to work well. Specifically, I made an animation that plays in Toolkit, imports and plays into Acrobat 3D, but does not play in Reader. It displays 3D and rotates, etc., but I cannot get the animaiton to play.
    The contextural menu issue you see I see also. The menu appears, but without the "add Key Frame" item. I find that if I select an object, move it a bit, move it back, then the menu will appear. (at least sometimes I think) Pretty frustrating.

  • I need to make a stop start animation using iMovie. I need the time factor to be 0.03. Every time I make an adjustment it goes to 0.1s which is too slow. Does anyone have a suggestions?

    I need to make a stop start animation using iMovie. I need the time factor to be 0.03. Every time I make an adjustment it goes to 0.1s which is too slow. Does anyone have a suggestions?

    First, for Stop Motion Animation, there are better tools. These include iStopMotion and QuickTIme Pro Version 7.
    If you want to do it in iMovie, it is possible, but slow.
    First, go into iMovie Preferences, and make sure you check "Display Time as hh:mm:ss:frames". This will let you edit to the frame lever rather than to the nearest 10th of a second.
    Second, see this Tutorial by Jon Walker on how to edit down to a single frame in a still image sequence.
    You can modify his technique to get 2 or three frames.

  • Using Flash SWF works great on live view and preview in Safari but does run after upload.

    Help needed.
    I have creatd a SWF file using Flash. Saved to root directory of the website.
    Inserted into a AP tag area.
    Plays Ok in Live view
    Plays OK in Safari preview
    Uploads OK
    Checked file present OK
    Upload Scripts folder
    Will not play when go to website page left with white area where swf should be playing.
    Ideas greatly received.
    Using Dreamweaver 5.5
    Cheers
    Bikeboysim
    www.parrotti.com

    Glad you got it all working! Good job!
    Just a note (for yourself and anyone else using Flash) on the rumor that all Flash files must be in the root folder... simply not true. In my opinion, as with any other type of files on your site, I'd suggest putting them in organized folders.... all the images in one folder... then subfolder for diff categories of images, flv video files in another folder, maybe keep all the .swf files in another, the xml data files in another, etc. Flash asset files can be just as organized as any other type of files.
    From an old article.... for review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

  • [svn:fx-trunk] 11903: Fix SDK-22564: Debug player logs RSL sizes to console using main SWF name.

    Revision: 11903
    Revision: 11903
    Author:   [email protected]
    Date:     2009-11-17 12:18:59 -0800 (Tue, 17 Nov 2009)
    Log Message:
    Fix SDK-22564: Debug player logs RSL sizes to console using main SWF name.  Now, whenever the player loads a swf whose name is not known, because it was loaded via Loader.loadBytes() (which includes framework RSLs with digests), we display the name as "<unknown-N>", where "N" is a unique number to differentiate it from other unnamed swfs.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22564
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/SwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DManager.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DSwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/events/SwfLoadedEvent.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/threadsafe/ThreadSafeSwfInf o.java

  • Exporting an animation using save for web

    I am trying to export my animation as a GIF using save for web but when I try saving it gives me an error message saying: "Could not complete this operation. an unknown error has occurred." I am using Photoshop CC 2014.

    I am on windows 8, The document is a PSD of course. It's a app UI animation using mostly smart objects and a timeline for the animations. My save options were:
    reduction algorithm: Selective
    Dither algorithm: pattern
    No transparency dither
    Color: 128
    Dither: (Blank)
    Matte: (Blank)
    Web snap: 0%
    Preview: Monitor color
    Metadata: Copyright and contact info
    Percent: 100%
    Quality: Bicubic  smoother
    Looping options: forever

Maybe you are looking for

  • Sorting in 6i and 10g reports

    Hello All, I am running 6i and 10g reports against a 10g database. I ran one of the 6i report and it generated a report in one sorting ordear and when i ran the same report on 10g ,it generated the report in ddifferent order. Both the reports r run a

  • Menu bar date and time format in Lion

    Is there a way to change the formatting of the date and time shown in the menu bar in Lion? I've been googling for a while, but can't find a solution. At the moment the time has a very unusual format of <hh:mm.ss>. Note the '.' before seconds. What I

  • 11g TP2 and NamedStoredProcedureQuery

    OK, this has me baffled. Documentation on stored procedures and JPA is often unclear, missing, or less relevant (ie., lots of examples for Hibernate XML mapping files, but nothing re: annotations). However TP2 of TopLink now appears to provide some s

  • Unable to crosscheck backupset

    Dear all, Database version is "9.2.0.3" and using RMAN to do online backup. I got the following errors when I "crosscheck backupset", please see below: > crosscheck backupset; using target database controlfile instead of recovery catalog allocated ch

  • Library file is locked

    Itunes froze, so I restarted my computer after trying to freeze quit (was I supposed to do something else?) and now I get an error message when I try to open: Itunes library file is locked, on a locked disk, or you don't have write permission for thi