AS3: Timing problem

Hey,
I have an 2 animations that I need to syncronize. The first animation is a projector screen entering stage, the second is few text layers and images.
I timed the second animation 2.2 sec after the screen animation starts (using timer event) and it worked. When I tested it in other computers and on the internet the screen movment was much slower so the second animation entered the stage too fast.
I want to order the second animation to enter only when the projector screen reach it's destination on stage. The screen animations has 2 parts, in animation and out animation connected by a stop(); commend in the middle.
How can I do it without timer events?

let say you want second_mc to play when first_mc is at frame 10.
get in first_mc and add actionscript keyframe at frame 10 (you can add another blank script layer for this keyframe)
to it's as3 code paset:  (root as MovieClip).second_mc.play();
at frame one of second_mc add stop();
shuld work now....
אם אתה לא מסתדר שלח לי במייל את הבאנר ואת הפריים ממנו האנימציה צריכה להתחיל
[email protected]

Similar Messages

  • Load AS2 swf into AS3 swf problem

    I have a flash with AS3 and inside this swf i load in a AS2 swf.
    to load swf works just fine, but the problem is when i load this i want to go to
    a specific part of it, for example i want to go to frame 3 in the loaded swf.
    i must control this from the AS3 swf, does someone know if this is possible?
    thanks in advance

    so can i do like this then to go to frame 3 in my loaded swf?
    MovieClip(ldr.content).gotoAndStop(3); ?
    sorry for being such an airhead
    thanks for helping me out =)
    Date: Sun, 7 Jun 2009 10:25:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: load AS2 swf into AS3 swf problem
    no.
    if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
    MovieClip(ldr.content).f1();   // to call f1() in the loaded swf
    >

  • Can anyone help me with Labview/GPIB timing problems?

    I am trying to use a very simple VI (downloaded from the NI site) to control a Newport 1830C optical power meter.
    I have been spending most of my time trying to use the VI issue a command to read the current displayed power. When I run the VI normally, I get no response from the meter, and the VI simply terminates without any error message. (The "remote" indicator does light on the meter, though, so it seems to be receieving the command.)
    However, when I run the VI in the "highlight exectution" mode, everything seems to work just fine, and I receive a correct reading from the meter! Needles to say, this makes it really hard to debug the problem.
    My guess is that I have some kind of timing problem, and t
    he "highlight execution" feature fixes it by introducing delays. Is this correct? If so, how can I achieve the same thing by putting in delays by hand?
    thanks, Whitney White

    Whitney,
    I agree that this is very likely to be a timing issue. VIs run much slower in highlight execution mode, therefore your instrument may need more time to prepare the data you have requested. Try wiring a delay inline prior to the GPIB reads and/or writes, or try using Service Requests (SRQs) to give the instrument enough time to generate the data it needs to send back to the computer.
    Another possibility is that your instrument may not be IEEE 488 compliant. Some older instruments indicate that they are ready to receive data before they really are. Try changing the GPIB bus timing to the slowest setting (in the GPIB Configuration Utility). This only affects the time that the GPIB controller waits before valid data is on the bus and the DAV line i
    s asserted (a step in the GPIB handshaking that occurs each time a byte of information is sent to the device) so this may not be effective.
    Lastly, you may wish to try the instrument driver for your instrument. There is a contributed driver at this location: LabVIEW Traditional Instrument Driver: Newport Optical Power Meter 1830C. A 'contributed driver' means that someone outside of National Instruments wrote the driver and then submitted it for posting. This driver also contains a good example of adding a time out.
    Regards,
    Heather S.
    Applications Engineer
    National Instruments

  • Timing problems with AU Ivory Piano + ESB and Logic 7.2

    I have problems with Ivory and Logic 7.2:
    The Ivory (AU version 1.50) plays well in tempo, but when I want to bounce (export track as audio file) the Ivory plays totally out of tempo.
    Even when I touch the record button on audio tracks or when I want to record my mix on 2 audiotracks, the Ivory plays out of tempo.
    Even freezing the Ivory track gives the same problem.
    Then I need to go back to my last saved version.
    The same actions with Emagic, Native Instruments and Spectrasonics AU plugins, and everything works fine.
    I throwed away already the Ivory prefs, no positive results.
    My Ivory sample files are on a separate 400 GB internal disk, and my Audio I'm recording on a external Glyph disk.
    I think I have this problem since I've upgraded from Logic 7.1.1 to 7.2 but I'm not sure. I didn't worked long with Logic 7.1.1.
    I don't work in Protools, but I use the DAE and Direct TDM (no Core Audio)
    It happens in the most simple application: no DAE or AU plug-ins, only one Ivory AU plug-in.
    This is my configuration:
    Ivory AU (Audio object-Direct TDM-Instr) output ESB 1-2 -> input ESB1 2 (Audio Object-DAE) -> Output 1-2 of my digidesign interfaces
    Ivory becomes totally unusable for me this way. Is someone having the same problems?
    Suggestions?
    Wim Claes
    Setup
    Logic 7.2
    Protools 7.1cs4
    192, 2x96i, 1x 96 interface
    G5 dual 2,7   Mac OS X (10.4.3)   4 GB RAM

    I tried already a lot of things, but it is very clear:
    1. Instantiating Ivory as AU- Ivory plays in tempo
    2. Record enable an audio track in the arrange window - Ivory plays out of tempo
    This happens with the default song of logic, no other plugins or AU-instruments are instanciated.
    I can not find a way to convert my Ivory-midi to audio without the timing problems;
    Bouncing, freezing, record to audio, export as audio file: all those things result in timing problems.
    I tried this all with emagic plugins (ES2...) and Native Instruments plugins and then I don't have the tempo problem

  • [Q] Refreshing/Timing problem 21:9-monitor

    Hi fellas!
    I'm using a Macbook Pro 15" non-retina (Windwith GT-650Mtogether with my AOC q2963pm 21:9 monitor through HDMI. What I have encountered is what I think is a timing-problem. I cannot find the settings which works perfect.
    Either, the screen looks a bit grainy at the max resolution of 2560x1080 with the games working (this with Atomatic timing in NVIDIA settings),
    or I have a crispy display, but the games ends with a flimmering and black screen after I quit or Alt+Tab out of a fullscreen-game which causes the NVIDIA-driver to stop responding and restarting (using CVT Reduced Blank).
    I had to create a custom resolution in order to use the full 2560x1080 resolution instead of just 1920x1080. I tried to manually create something that should meet the requirements, but with no luck. Either, the display goes black, or I get the same problems as listed above.
    Here are the specs of the screen:
    Resolution: 2560x1080 @ 60Hz
    Scanning Frequency: H: 30-99 KHz / V: 50-76 Hz
    Pixel Frequency: 185.58 MHz
    Does someone know which settings I should use? The only thing I can think of to fix this is buying a Displayport-cable as "no one" ohters is experiencing this issue. Will this easy solution fix it?

    Try the Thunderbolt connection.
    <http://store.apple.com/us/product/MD861ZM/A/apple-thunderbolt-cable-20-m>

  • Enhance Timing Problem

    Anyone notice that when Enhance Timing is applied to an audio track, that track takes a couple of seconds to start playback? I'm sure it has to do with the time it takes for the real-time processing to kick in, but it's a problem when trying to export the song to disk and that track doesn't start right away...

    That didn't seem to work. I locked the bass track, but there's still a pause before that track starts when I play the song from the start.

  • Possible memory timing problem

    Hello, I hope you all can help me.  I have been wrestling with this problem for about two weeks and have not been able to fix it.
    I recently upgraded my system by adding another gig of memory, setting up a raid array, and adding a X-fi Extreme Music card.  Before the upgrade my system ran smoothly for about 10 months.  After the upgrade it randomly freezes - the system locks up and won't take any more input from the mouse or keyboard.  The only way to recover is to hold the power button down for a few seconds.  After that it boots normally and runs perfectly until the next freeze.  The freeze can happen at any time, in any application, while the system is idle, or even during bootup.  I thought for a long time it was the sound card, but now I suspect my memory timings are off.  The problem is, I can't figure out how to adjust them in the BIOS.
    My system is this:
    CPU: AMD Athalon 64 3500+
    Motherboard: K8N Neo2 - Bios 1.B
    Memory: 4 sticks of Corair Value Select PC 3200 DDR-400 - 512 meg each
    Video: ATI Radon X800 Pro
    HD: 2X 74gig Raptors in a raid array (striping)
    The only PCI card is the soundcard: Creative X-Fi Extreme Music
    Power: Antec Neo Power 480
    OS: Windows XP, SP2
    I think that's everything, if I am missing something, please let me know.  I have run Microsoft's memory test utility overnight, and it has checked out.  The memory timing should be 3-3-3-8, but I can't figure out how to set that in the Bios.  Also, is there a change I should be making for going from two sticks to four?  I don't overclock or anything.
    I have been trying to figure this out on my own, but I am coming up short.  Any help would be appreciated.
    Thanks in advance
    Claudius

    Hi Claudius.  Welcome to the forum.  Here are a few tips that will make it easier for you to get help here.  Create a sig as described in the forum rules (hint-use profile button in sign-on screen) which will locate all the info about your system in a convenient place at the bottom of each post like I have.  It's the same info about your system that you posted in your first post, but having it there in each post makes everyone's life easier.  Also indicate whether you have AMD Venice 3500+ (which I think you have).
    Timings terminology.  It gets confusing because memory specs are listed in different orders when people refer to them, in bios and in post screen.  First number should be cas latency (Tcl). Then Ras# to Cas# delay (Trcd). Then Row Precharge Time (Trp). Min Ras# Active time (Tras) is last number although post screen puts it next to last.
    Tcl-cas=3
    Trcd=3
    Trp=3
    Tras=8
    That's what bios using serial prescence detect (SPD) should pick up under auto for your ram.  I doubt bios detected and used Tras 3 like you thought as it would not boot with Tras 3.
    Get CPU-Z online for a great tool that gives you a lot of memory info.  It shows a lot of info about your chip too.  I suspect timings were detected properly or else your machine would not have booted and run.
    After you added more identical memory (corsair value select) your machine apparently booted and ran with 2 gigs of ram, at least that is what appears from your post.  Microsoft's memory test said things are good.  (Don't know what that test is, and if you really want to test it you should use Memtest available online to make a bootable floppy and test memory for about 1 hour.)  However, it sounds like your memory is ok and you have some kind of sound card interrupt (IRQ conflict).  Did you disable on board sound in bios since you are using a sound card?  Try that if you can.  If you still get lockups with onboard sound disabled and sound card working, try removing sound card and seeing whether system still locks up.
    Good luck.
    Edit-  In re-reading your post, it may be that system detected Tras 7 instead of Tras 8.  You can manually set tras 8 in the bios if you want to, but use CPU-Z first and check CPU-Z memory tab (to see what system is using) and CPU-Z SPD tab (to see what your ram is telling your system to use).  I think you will find both are 3,3,3,8.  If not, you can always change Tras to 8 in bios and leave everything else on auto.  However, you could also change dramm voltage for memory in bios to 2.7 volts without doing anything any harm and this could help memory if you are really having a memory (as opposed to IRQ conflict) problem.

  • AS3 SCORM problem

    Hi there,
    Hope someone can assist!
    I am publishing my Captivate 4 project with AS3 settings, as I have created a few animations in AS 3 that are inserted. Now I am publishing it and putting it on our scorm compliant LMS, it is not communicating with the LMS.
    I have also published a file in AS2, which worked just fine in communicating with the LMS. Just took a course with one slide published it with AS2, then tried the same content exactly same settings only selecting AS3 and it didn't work.
    One of the differences is that with AS3 settings it also wants to open a new empty window, which it doesn't do with the AS2 setting.
    I have done some checking with the firebug in Firefox and it looks like it loads just fine, but when it starts playing it misses the communication with the LMS.
    I was wondering if there are any solutions out there...
    Thanks a lot!
    Annemarie

    No such thing as a stupid question....
    Yes I did check those settings... and that seems to be causing the problem.
    I just took an empty, new presentation (just for the process of elimination, no other values/factors involved) set the captivate settings to AS2 published tried it on the LMS, worked fine.
    Then same empty slide, set the captivate settings to AS3, all other settings remained exactly the same, tried it on the LMS, it plays fine, but there is no communication to the LMS.
    It loads all the swf files correctly, then with AS2 published file, it starts the "soaplms.php?op=initialize" and you can see in firebug (net) that the "scorm_support.swf?invokemethod etc" communicates with the LMS every few seconds, so it is reporting my progress and all that I do in the course.
    With the AS3 settings, it never does the "soaplms.php?op=initialize", and actually at that moment it should display this message, it opens a new emtpy window. The course continues to play and all the buttons work, but it doesn't communicate to the LMS what my progress is or what I have done in the course.
    There is a document that talks about the scorm compliance of Captivate and it mentioned that you might need to check that the API can be found, so I did that edited the html file, added the alert,  and the API can be found when launching the AS3 published file.
    I have also tried it on the scorm tracker site from rustici, which is a great resource by the way: http://www.scorm.com/scorm-solved/testtrack/
    You can upload your zip files and see the debug reports so you know exactly what happens in terms of communication to the LMS.
    ActusxReus wrote:
    stupid question, but did you double check that you selected Actionscript 3 in your Captivate preferences?
    ActusXreus, have you succesfully used AS3 settings in a course and published it and used it on an LMS where it did track the results? Or if there is anyone else out there that did use these settings successfully, I would really like to know and maybe see what type of settings you have used in the other areas...
    Thank you so much!
    Best regards from the Bahamas
    Annemarie

  • AS3 comboBox problem.

    Ok, I have a simple ComboBox with instance name of dragonCombo
    A Lable with an instance name of dragonLabel
    Using a an AS3 called Dragon.as
    When the ComboBox is clicked, a picture should pull up.   The problem is, there are no errors, but The ComboBox is not listing any of the Labels I loaded.  This is my AS3 code, maybe someone can see the mistake I have made somewhere.
    package
    import flash.display.MovieClip;
    import flash.display.Loader;
    import fl.controls.ComboBox;
    import fl.data.DataProvider;
    import flash.events.Event;
    import flash.text.TextFieldAutoSize;
    import flash.net.URLRequest;
    import flash.net.navigateToURL;
    import fl.controls.Label;
    public class Dragons extends MovieClip{
    public var dragonCombo:ComboBox;
    public var dragonLabel:Label;
    var comboDP:DataProvider;
    var dragonLoader:Loader;
    public function Dragons() {
    setupComboDP();
    setupdDragonCombo();
    setupLabels();
    private function setupComboDP():void{
    comboDP = new DataProvider();
    comboDP.addItem({ Label:"Fire"});
    comboDP.addItem({ Label:"IceNFire"});
    comboDP.addItem({ Label:"Ghost"});
    private function setupDragonCombo():void{
    dragonCombo.width = 150;
    dragonCombo.prompt = "Choose a Dragon";
    dragonCombo.dataProvider = comboDP;
    dragonLoader = new Loader();
    dragonLoader.x = 200.00;
    dragonLoader.y = 60.00;
    addChild(dragonLoader);
    dragonCombo.addEventListener(Event.CHANGE,loadData);
    public function setupLabels():void{
    dragonLabel.text="";
    dragonLabel.autoSize = dragonLabel.autoSize = TextFieldAutoSize.LEFT;
    public function loadData(e:Event):void{
    dragonLoader.load(new URLRequest("dragons3/"+e.target.selectedItem.Label.toLowerCase()+".png"));

    Your Dragons class is creating its own dragonCombo (it is not the one on the stage)...
           public var dragonCombo:ComboBox;
    that has no association with the combobox you placed on the stage manually as far as I can see.
    Assuming this is not your document class, if all you are doing is importing the Dragons class, then you are not implementing it at all.  You would have to have a line...
         var dragons:Dragons = new Dragons();
    in you fla in order to instantiate the class.  At that point you might start seeing error messages because in doing that your class is trying to target an object that doesn't exist because it only declared the combobox, it did not create an instance of it, as in...
          dragonCombo = new ComboBox();

  • AS3 text problem

    Hi,
    Just playing with some AS3; and encountered the following
    problem (CODE IS ATTACHED):
    Wanted to create a MC button I seen done on the
    gotoandlearn.com site, but wanted to change it from AS2 to AS3;
    Everything works fine, but where I am assigning a value to a
    dynamic text field it not working.
    b1_mc.buttText_mc.buttonText_txt.text = "Lynda.com";
    When I test movie, lynda.com is the text on my MC button, but
    Upon ROLL_OVER etc... it displays the test text, not
    Lynda.com.
    Can someone please help me out here. It would be appreciated.
    Kind Regards,
    Boxing Boom

    Hi,
    Yes. Well spotted. I had the instance name of buttText_mc,
    missing the _mc part on a few frames with motion tweens applied, on
    the button animation. I do not remember renaming it differently ;)
    - must blame tools ;)
    Kind Regards,
    Boxing Boom

  • Labview timing problem

    I'm kind of stuck with a bit a problem in Labview 7 (base ed.). I've got a PCI-6036E that can sample at 200KS/s with a 24bit onboard timer.
    I've got to set up an experiment that monitors a current indirectly through a potentiostat (1A = 1V scale). The program needs to integrate the current/voltage with respect to time until it reaches a specific value and then tells the program to generate an analogue signal output (this will over and over)
    Surely it should be quite straight forward to read a voltage on one of the inputs, summing this value in a loop until this limit is reached, then outputting a voltage.
    The problem is I'm not quite sure how to approach this considering that I need a time interval of the loop to be ~1-10 microseconds.
    Many thanks,
    Paul

    The only way you're going to get microsecond loop speeds is to move up to the new FPGA board, currently only available for PXI.
    Under Windows, or any GUI OS for that matter, loop speeds and determinism get shaky in the double digit milli-second rates, and anything less than 10 mS is really not reliable. LabVIEW Real Time can get much better loop timing, but you're still limited to the milli-second rate as the CPU can't process any faster than that.
    Anything running on the FPGA is running in hardware and extremely fast and deterministic loop times are possible. I�ve run them in the nano-second range just doing some testing. Data from applications running on the FPGA can be accessed from La
    bVIEW Real Time, LabVIEW or both so you can control what�s going on.
    Your best bet would be to either call NI or your local NI rep and have them get you some more info.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Tlftextfiled in textarea as3 component problem?

    i customize as3 textarea component (in source : fl.control.TextArea)
    i chnage textField in source to tlfTextFiled and i cand see RTL text in textArea component, but i have a problem , and i can not see affect my change in Direction
    please help me to change direction in this component
    excuse me for my poor english

    i customize as3 textarea component (in source : fl.control.TextArea)
    i chnage textField in source to tlfTextFiled and i cand see RTL text in textArea component, but i have a problem , and i can not see affect my change in Direction
    please help me to change direction in this component
    excuse me for my poor english

  • Timing problem for Playlists, etc.

    I'm not very good at going through the maze of info options to solve problems, particularly this one. Since installing a new hard drive, then software, etc., the timer at the bottom of all Playlist selections has changed.
    Instead of getting specific timing such as 53:12, I get readings such as 1.7 hours. I'd appreciate having someone explain how to get back to the specifics!
    Alan
      Windows XP  

    Hi,
    Welcome to Apple Discussions
    Just click on it. But before you do that read the notice at the top of this Forum.
    Next time you have a question please post in an appropriate Forum for a quicker response i.e. iTunes for Windows
    Regards,
    Colin R.

  • As3 preloader problem - Captivate5

    Hello all,
    Been searching around for this for a bit in a the forums and cant find anything on it here goes:
    I have a project that i built with a ToC for my company.  And i have a as3 preloader as well.
    Problem:
    Preloader is fine and centered in the middle of my project with out a ToC but when i add the Toc the preloader will not center in my project i have tried to alter it in the html file insterting <center> tags and such and also externalizing the skin or FMR SWF also removing and placing it back in and not getting a fix for it. I realize this maybe a simple fix but i cant find anything in the forums here discribing exactly this issue.
    can anyone help
    thanx
    bobby

    Hi,
    Going out on a stretch here but did you, by any chance, added external swf or widgets that would have set the values of either Stage.scaleMode or Stage.align. That could explain the effects you are seeing.
    Whyves
    www.flash-factor.com

  • Smart Build - push - odd timing problem

    I'm using a push smart build with nine images. KN will show all nine, but only acknowledges the existence of eight and the timing is off... the last image is onscreen for too long even if I click to initiate a page transition.

    oaklandathletic wrote:
    Fixed it.Funny how explaining a problem for others helps you to work out the solution yourself, isn't it?
    Don't forget that if you decide on programming as a career.
    Winston

Maybe you are looking for