How to play a .swf movie in another project after every 10 seconds?

Hello

I have a Logo.swf file that plays once and stops. I want to use this flash animation in a flash using the CHARGERother project. Is actually what I need, I want to play this film each interval of 10 seconds using Actionscript 3. How can I have? Help, please.

Thank you.

Hello

There are 2 scenarios for this:

1. animation of the logo in the logo.swf is a movieclip and called the stop() function in the last picture.

Solution:

import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.events. *;
import flash.net.URLRequest;

var logoSWF:MovieClip;
var: timer = new Timer (1000);
timer.addEventListener (TimerEvent.TIMER, playLogo);

function loadLogo() {}
var url: String = "logo.swf".
var loader: Loader = new Loader();
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);
Loader.Load (new URLRequest (url));
}

function completeHandler(event:Event):void {}
Timer.Start ();
var loader: LoaderInfo = LoaderInfo (event.currentTarget);
logoSWF = MovieClip (loader.content);
addChild (logoSWF);
}

function playLogo(event:Event=null):void {}
logoSWF.logo.play (); 'logo' is the name of the instance to logo.swf
}
loadLogo();

2. the animation of the logo in the logo.swf in the main timeline and has the astop() function in the main timeline.

Solution:

import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.events. *;
import flash.net.URLRequest;

var loader: Loader;
var: timer = new Timer (1000);
timer.addEventListener (TimerEvent.TIMER, playLogo);

function loadLogo() {}
var url: String = "logo1.swf";
loader = new Loader();
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);
Loader.Load (new URLRequest (url));
}

function completeHandler(event:Event):void {}
Timer.Start ();
var loader: LoaderInfo = LoaderInfo (event.currentTarget);
addChild (loader.content);
}

function playLogo(event:Event=null):void {}
MovieClip (loader.content). play();
}
loadLogo();

///////////////////////////////////

I hope this helps.

Best regards

Etienne Das

http://deepanjandas.WordPress.com/

Tags: Adobe Animate

Similar Questions

  • How to play a dvd movie in another language

    original title: how to play a dvd movie

    Hi all.

    How can install you media player to to play movies in English, which is not English. even online and offline

    E-mail address is removed from the privacy *.

    I have windows 7 32 bit

    If I understand you correctly, simply insert you the DVD in your drive, when the autostart window opens, choose WMP. The DVD begins and you can select English via the Set Up screen, like you would if you use a home player.

    If there is no option to select a language or you don.t see English in the list of available languages, then you're snookered. You can't conjure it out of thin air (or via the web)!

    But then again, I can not fully understand your request. If this is the case, re-post as more explanatory.
    See you soon,.
    Jerry
  • How to play the QTVR mov in IMAC

    I have create a QTVR mov file in 3d software. Anyone know how to play the QTVR mov in iMAC? Quick time could not play it.

    You need to install QuickTime Player 7

    Download QuickTime Player 7 for Mac OS X 10.6.3 or later

  • How can I import a composition to another project, in a way that it will remain always updated if it has changed in the other project?

    I have a model of logo in a project that I have to add to all the other compositions all over my other projects.

    The thing is, I've might need to change the logo from time to time and wouldn't go back and change the layout of the logo in each project.

    I need a way to import the model of the logo and to maintain its link with the original project, so I could only make a change once and then just make all other projects while the intro comp update automatically.

    Can you please help?

    I'm usign AE cc with creative cloud, on a PC computer.

    Thank you!

    Yoni

    Rick instructions assumes that you use a video file pre-rendered logo, which is the most convenient way to do the job, if you can.

    But, to answer your question more specifically, you can create a dynamic link to an another project AE AE project.

  • How to 'play' a VI given in another VI

    Hi guys,.

    so my question is the following can I 'play' a VI given when I press a button on the main VI.

    I have 3 different VI this remote control switch 3 different, let's say each of the unit contains the logic to open 3 doors, so VI 1 open the door 1, VI 2 open door 2 etc...

    I need a main Vi where I can choose the 1,2 or 3 or 1 and 2 door, 2 and 3 etc., so I thought to use sub - VI for each door, but if I put in 3 screws on the main block diagram two 3 doors open when I hit the arrow to play the main VI.

    So I need a way to 'play' a given Sub - vi to open the doors.

    Of course it is a simplification. In fact I need to check the phases of displacement and complex movement for them while measuring the position and to control a laser, but a button "Play sub Vi" would be useful.

    Any idea?

    Hello everyone, first of all, thank you for your contribution.

    Now on my problem of 'door', my first idea was to use a loop + structure boolean + case but I add characteristic to a VI already made so it cannot be done that easily. I thought that I just added the code additional, if I do, final code design will be ugly and difficult to understand for future coders.

    So I think I'm going again this particular portion of the control and make it simpler while integrating the new features.

    Congratulations to all and once again thank you for your contribution.

  • How to add 1 swf file to another file swf which are image sequences?

    Hi all

    I have two sovereign wealth funds, when clicking on the swf first goes to the second file and clicking on a button in the second file goes back to the first file.

    The first swf file is the sequence in which only certain key images have the transparent button when you click on go to the second file of images.

    So far, I'm able to do.


    But when we click the keyframes, how do I disable the background swf? (i.e., during of the loading swf second, top first load right? what can be done to disable the first swf?)

    As I tried to give visible to false.

    But no help.


    Any help in this would be very much appreciated and very helpful.


    Thanks in advance.

    1. always add an EVENT.COMPLETE.listener loading of sth.

    This variable will be used more later to trigger the behavior of your loadedSWf

    var mc:MovieClip;

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loaded);

    function loaded(e:Event):void {}

    trace ("Loaded");

    addChild (myLoader);

    MC = MovieClip (myLoader.content);

    You can now use the alias mc anywhere in your main swf file to make the invisible whole loadedSwf or trigger a function in the swf file

    for example: mc.hideMe () would trigger a function inside your loadedSWF hideMe

    }

    myLoader.load (new URLRequest ("Interactive_Walkthrough.swf"));

  • How to make the .swf movie Center on the web page?

    Hello

    I have a question, I created my site and I have the settings of publication to the file swf and html-files and when I open the HTML for my site is on the left. But I want my website to be at the center of the screen, what can someone tell my how to the center of the flash file?

    Thank you.

    Centering is done in html/CSS code to the page.  See if the li k below helps, otherwise just Google 'Flashing Centre in page' and you should find something to help.

    http://www.YouTube.com/watch?v=koRzpSizoFo

  • Change in Date of Expiration of SWF movie? (lost project files)

    Hello, big fan of Captivate and now use Captivate 3.

    Use us it for our customer demonstrations and training tutorials.

    One of my presentations took about 12 hours to 'film' - I saved this project with an expiry date of the film, as it is a sales presentation and I don't want to keep the old demos around people.

    In any case... a careless click told delete the source files in Captivate. I have still my movies out... is there a way I can open movies and push my day of expiration, or I'm ' up a certain Creek without a paddle?'. "

    I had to ask before to sit and re-registration of the entire movie... was hoping to have a Normal weekend, but maybe not?

    Best regards

    -steve

    Hi Steve

    If all you need is to buy extra time for the movie, consider simply changing the time system of the computer running the demo. There is nothing that I know in the file which would avoid this. This could then buy you some time to recreate this source file.

    You can also nail the development team to create a Captivate content decompiler. Something that sucks in a Captivate created. EXE or. SWF file and spit on a functional. CP file. You can do this by clicking here.

    See you soon... Rick

  • How to call resuable process BPM of another project?

    Hello

    UseCase:
    We have two projects BPM - project1 and project2 into the same request. Project1 has of a reusable BPM process that needs to be accessible via a process inside project2. Is it achievable? If so, please expain how we can do that.

    I tried to use CallActivity in process2. But CallActivity only shows the list of processes in the same PROJECT.

    Thank you
    Suren.

    It is possible. You must deploy project1. Project1 has a wsdl url now. Copy this wsdl url and call a web service in composite of the project2...

  • How can I take video clips or another project for my project

    Hi guys

    I have need of a few buttons I did in my last project in my game, but I don't know how

    Thank you

    Suppose that just copy > paste it draws

  • Just got a Dell Inspiron with XP, why does trying to watch a video, through 'you tube' or another he stops every few seconds before continuing? I don't have this problem on my old hp...

    problems viewing videos

    Hello Volbubba,

    Thank you for your message.  This problem is usually caused by 'streaming video', and can occur more or less frequently because of your bandwidth.  Make sure that is to play a video, you will need to look at the 'play' bottom line.  You should see the movement on this line during playback of your video, there should also be another line indicating how far along your computer streaming ability has gone.  If you watch the video as soon as it is streaming, you will experience a break until it catches up.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I stop Sonic Update manager to run after every restart?

    Under XP SP3 on Pavilion a1630n destop.    Sonic Update Manager popped up after that restart and I can not stop it.  He is looking for a file of UNIFIED Messaging. MSI that does not exist.  This has happened by itself.  I wasn't looking to update anything.  How can I stop it?

    Follow the instructions here in these discussions to see if that helps.

    http://www.google.com/search?q=sonic+update+manager+&sourceid=ie7&rls=com.microsoft: en - us: ContextMenu IE & oe and ie ==.

  • How can I prevent the splash screen to disappear after a few seconds?

    I have a HP Touchsmart all in one by using Windows 7. The machine is brand new.

    Whenever I get the splash screen, if I am not for nothing, after that a few seconds, the screen turns off and then I can make it back by pressing any key and then click on my name from the entrance to ge the rear screen startup.

    Hello jimtiger: I'm not familiar with the Touchsmart version 4 software. It works with version 3 of Touchsmart. Left click mouse any where on the screen click on customize. The opening of new windows screen saver goto adjust the wait time for a longer period of time.  Can also change the settings of computer power. Control in the lower right panel, you will see tools and information on the performance up until it clicks. Top of next window right-click on the adjustment of the parameters of energy.  Check high performance box.  Who will now have a blue dot. Just beside it, you will see the settings of plan up until it clicks.  You will see the screen dims: click the box next to it. My is set to 10 minutes below. Turn off the display: click the box my is fixed to 15 minutes. Put the computer to sleep: click the box my is defined. Never. Brightness is right-wing. Under that, you will see the change, click on advance power settings. Everything has a greater mark in it. Click ok. Close all windows should be all set now.

  • DW 8 to play the swf file in a pop-up window

    The swf file plays well with the source file (flv) on the streaming server. See page http://www.jobclub.com/testing/healthcare.html profile video job open in the Center. What I want to do is to have ITI play in a pop-up window.

    But I can't understand how to play the swf file in a popup window

    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase ="" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0,28,0 ' < script type = "text/javascript" > "
    AC_FL_RunContent ('codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0.28, 0', 'wid th', '285 ', 'height', ' 231', 'title', 'HealthSouth', 'src', 'eva, evaemp, HC240', 'quality', 'high', "pluginspage", 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwa veFlash', 'film', 'eva, evaemp, HC240' ); end AC code
    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase =" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0,28,0 ' width ="285"height ="231"title ="HealthSouth">" "
    "< param name ="movie"value="eva/evaemp/HC240.swf "/ >
    < param name = "quality" value = "high" / >
    "" "< embed src="eva/evaemp/HC240.swf "quality ="high"pluginspage =" http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash " type =" application/x-shockwave-flash"width ="285"height ="231"> < / embed >
    < / object >
    < / noscript >

    Thank you
    Matte support

    Do you really want to open a new window, or you just want to display a hidden layer that resembles a pop - up?

  • Use of action script 3.0 to play my SWF file only once?

    Good afternoon

    I would like to know how to play my SWF file only once, when I select CTRL + ENTER to test the file.  Currently it continues just looping.  I tried not stop(); but it freezes to the framework.  I tried also Stop at nothing doesn't.  In Dreamweaver, you can import the SWF file and program it to play only once.  I did it: http://www.vfw969.org.  However, I would like to create an index.fla file that does the same thing while I am able to add some improvements to the page.  Thank you.

    Kind regards

    Dale Iannello

    Webmaster

    Veterans of foreign wars

    State of Washington

    You were afraid to adapt or something?  Fortunately, I have a magnifying glass is close.

    In this upper layer named Actions, nothing in this last keyframe (picture 25).  This is where you will place the stop(); command.  The Actions window open, select the image and type stop(); in the Actions Panel.  If you do it right, there should be a lower case 'a' in this last image when finished and the animtion must stop here.

Maybe you are looking for

  • How to re activate memory swap?

    "I have disabled memory swap for purposes of test with the command sudo nvram boot-args =" vm_compressor = 1"I tried it reactivation with sudo nvram boot-args =" vm_compressor = 4 ' but it is not working, everyone knows what to do?

  • Satellite Pro C660D-187 - when should I update drivers?

    Hello I recently received a Satellite Pro C660D-187When "update drivers". I'm not technical interested so do not have much of a clue, unfortunately. Thank you, C

  • I pod nano can not be restored

    I have a 5th generation I pod nano. Tried to transfer new music. My computer freezes whenever I plug. I received a message that it could be corrupted and need to be restored. I haven't tried this w no luck. I read how to put the device in disc mode t

  • Problem with WiFi adapter (RTL8187b) on the Satellite L350-146

    Hello. Problem with WiFi (RTL8187b) on the Toshiba Satellite L350-146 adapter: Exchange of packets of 192.168.0.177 with 32 bytes of data: Reply from 192.168.0.177: bytes = 32 time = 3ms TTL = 128Reply from 192.168.0.177: bytes = 32 time = 4 ms TTL =

  • How to uninstall Firefox, which I never used.

    Original title: firefox appeared in the upper left corner of my screen I've never used firefox, how do I get rid of him?