Controlling time in Actionscript 3.0

I was wondering if there is a way to directly control time in AS 3.0
I have some code such as:
thumb1.addEventListener(MouseEvent.ROLL_OVER, scaleUP)
function scaleUP(e:MouseEvent):void {
thumb1.scaleX = thumb1.scaleY = 1.5
Obviously, this instantly increases the scale of the thumbnail, but I was wondering if I could have it scale up over a period of time (2 - 3 seconds) so that the size increase is more gradual.
Thanks in advance!

without extra files:
import flash.events.Event;
var speed:Number = 5;
thumb1.addEventListener(MouseEvent.ROLL_OVER, scaleUP);
function scaleUP(e:MouseEvent):void
thumb1.removeEventListener(MouseEvent.ROLL_OVER, scaleUP);
addEventListener(Event.ENTER_FRAME,fScale);
function fScale(evt:Event)
thumb1.scaleX+=(1.5-thumb1.scaleX)/speed;
thumb1.scaleY = thumb1.scaleX;
if (Math.abs(1.5 - thumb1.scaleX) < 0.02)
  removeEventListener(Event.ENTER_FRAME,fScale);
  thumb1.scaleY = thumb1.scaleX = 1.5;

Similar Messages

  • How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

    How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance, As it is shown in the figure below. and enter this signal in a daq.
    Solved!
    Go to Solution.

    By the time you spend for the nice diadram you might have done the vi
    Your DAQ like to have a waveform (array of values and dt ak 1/samplerate)
    If you set the samplerate you know the array length , create a array of zeros, and set the values of both amplitudes ... 
    Since I don't want to wire others homework here are some pictures
    And there are some drawbacks is room for improvement in my solution, just think of rounding errors ... and what might happen if the arrays get bigger ....
    Spoiler (Highlight to read)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Is there a setting or an app where parents can control time limits on an ipad like the kindle fire?

    Is there a setting or an app where parents can control time limits on an ipad like the kindle fire?

    No.

  • Remote control time constraint

    Hi. How can i limit the time for certain user to control my vi panel remotely. For example, i would like to limit every user to control the panel for only 15 minutes each. I have followed the instructions in the help in labview, that is by selecting the vi file i want and set the time constraint. However, it doesn't work. Could you please give me some advise on solving this issue? Thank you in advance.
    regards,
    chea tian

    cheatian wrote:
    Hi. How can i limit the time for certain user to control my vi panel remotely. For example, i would like to limit every user to control the panel for only 15 minutes each. I have followed the instructions in the help in labview, that is by selecting the vi file i want and set the time constraint. However, it doesn't work. Could you please give me some advise on solving this issue? Thank you in advance.
    regards,
    chea tian
    Hi Brett,
    First of all, thank you for responding to my enquiry. Yes, I have selected Tools>>Options>>Web Server: Visible Vis and then select my vi file and set the time limit to 500 seconds as well. However, when i control the panel remotely, i am not limited to 500 seconds only. I can control the panel as long as i want to. And, when i check the control time remaining while i am remotely controlling the panel, nothing happens. I am using WindowXP, LV6.1 and the latest IE. Once again, thank you.
    Take care.
    Regards,
    Chea Tian

  • How to control time with great precision

    Hello everybody.I know Timer could control time.But it uses thread.sleep(),isn't it.That means it is not guaranteed.So,does anybody know some approach to control time precisely?
    thanks in advance!

    Hello everybody.I know Timer could control time.But it
    uses thread.sleep(),isn't it.That means it is not
    guaranteed.What do you mean by "not guaranteed". How can you expect a non-realtime multitasking OS that uses virtual memory (i suppose you are using a system like windows or linux) to guarantee anything? Some systems are better in this regard, but in addition to this you aslo have the garbage collection. Of course there might be ways to implement soemthing more precise in Java , but without a special VM on a special OS there is no guarantee that it will really work imho.

  • Parental Controls time limitation problem

    Is there anything I could to to force Parental Controls time limitations to work? I've set time limit for my son's account to 1 hour per day, weekends the same, bedtime (school nights 10:00 PM to 7:00 AM and weekend 10 PM to 12 PM). In reality computer doesn't log out my son from his account and he can play endlessly.
    I have clean MacOS X Lion setup, no old settings were restored. Update 10.7.2 came out but didn't solve anything. Snow Leopard worked flawlessly. Lion has bunch of problems which I cannot solve and figure out... (still have wifi problems, etc.) But at least if Icould get time limitation to work...
    Mac mini 2010 model (2.4 GHz Core 2 Duo, 4 GB RAM).

    Yes, the parental controls are enabled, but now.. it works. Thanks anyway for you reply
    Regards.
    Andrea

  • Lost my display tool bar, Volume control, Time, Bluetooth next to search

    After power outage Lost my display tool bar, Volume control, Time, Bluetooth next to search at the top right. Help said to system pref. display and check box that says Show displays in menue bar. I can check it but it doesn.t display and teh check goes away

    Hello... My first post hehe...
    Well I had the same problem... and I found some files missing
    Go to... /System/Library/CoreServices/Menu Extras/
    (and look for clock.menu file, etc...)
    I had a backup so I put back the missing files and I worked for me...

  • Webinar: Controlling Time in Premiere Pro & After Effects CC

    Hi all,
    Check out this free Webinar by Rich Harrington. Controlling Time in Adobe Premiere Pro CC and After Effects CC (Fri. Aug. 9th - tomorrow): Details http://ow.ly/nKOVL
    Cheers,
    Kevin

    Yeah, right!
    I tried to tell her that I want a really good chair for the new house, but I didn't mention just how much those things cost.
    However, her late father liked Herman Miller chairs. He designed furniture for hotels but could appreciate other brands than his own. So she might let me have one if I tell her that her father would have wanted us to have a pair of them in the office.
    Actually, I think I will be able to figure out how to get an hour off. I'll just prep my morning the night before and get most of it done before 10AM. I will wake her early and she will be tired about the time 10AM rolls around. If she is tired, I am allowed to be tired.

  • Captivate progress bar controlled by Flash Actionscript

    Hi,
    I am currently working on a project where I need to load multiple captivate files (topics) into a Flash interface to create an e-Learning module. I have greated a progress indicator within the Flash interface which indicates how far through the module you are. This is working correctly, however I would like to display more information.
    Currently it only moves the progress indicator when a particular topic (captivate swf) has been viewed (if I have viewed 4 topics out of 10 it would show 40%). What I would like to do is also make the progress indicator move when the user moves to a new slide within the captivate movie (if I have viewed 4 out of 10 topics, and viewed 5 out of 10 slides of the current captivate movie it would show 45%).
    As I mentioned the multiple captivate movies are being loaded into Flash, and that is where the progress indicator is currently sitting (controlled by Actionscript). Is there any way of Flash finding out when the user has navigated to a new slide within Captivate? I have noticed in the output that every time a new slide is viewed the following code is displayed to the output:
    Branching::script:;;
    deepak branching : scripteval:[object Object];
    Does anyone know what this action/function that Captivate is calling is? Can I call a listener function testing for this action/function?
    Kind regards,
    Duncan

    Hi Duncan,
    The "deepack" output is a trace function the developer put inside of Captivate 4 for testing purposes I believe and doesn't serve any other purpose. There is a Captivate 4 system variable available from the Project>Actions>Variables menu that will track the current frame(slide) within Captivate. If you load the published captivate .swf file into Flash, you can access this variable by targeting the instance of the loaded .swf movie and then the name of the variable.
    Dan

  • Controlling time in each frame

    Hi!  Instead of adding more frames in my timeline in order to get the perfect timing per keyframe, how can I control the amount of seconds at each keyframe using actionscript 3??
    I'm a great designer and HTML/CSS coder but I can't grasp actionscript  
    thanks!!!

    Hi!  okay so I've realized that the delay per frame is different, so I am trying to use kglad's code in this case, but it's not working.  there's no delay. I have put the following:
    frame 1 should be delayed by 5 seconds:
    var t:Timer=new Timer(10000,5);
    t.addEventListener(TimerEvent.TIMER,f);
    t.start()
    function f(e:TimerEvent){
    nextFrame();
    frame 2 should be delayed by 3 seconds:
    t.delay=3000;
    t.reset();
    t.start();
    frame 3 should be delayed by 2 seconds:
    t.delay=2000;
    t.reset();
    t.start();

  • How can I continuously auto-save and auto-name the JPEG files with a controlled time interval

    Hi,
    I am newly involved in some Labview projects that out of my knowledge. I am trying to save multiple JPEG images from a live imaging task to a folder in the computer hard disk every certain minutes. I'd like to name these files with the date and time (eg. Img_06012011_1635. jpg).Then, after hours long image capturing, I can have all the image files in a neat order.
    My goal is to have the jpg files auto saved and auto-named with the data and time at that moment. I also need to control this waiting time between each savings.
    Could you please show me some hints about this? See the vi attached, I know I need to do something on the "write path" part on the up right corner. Thanks!
    Solved!
    Go to Solution.
    Attachments:
    capture.vi ‏28 KB

    Thanks, Steve. When I built up a path with the date and time info and send them to the WriteJPEG File.vi like you mentioned, it stopped saving any files into the folder. Do you think this is the problem from my while loop?Could you show me if there is any other secret functions that restrains the file saving?
    I am planning to save the image files every 30 secs,for example, and then I can have a bunch of jpg files with their unique names after hours long image acquisition.
    I appreciate you kindly help!
    Attachments:
    capture(updated).vi ‏29 KB

  • Slider for Display and Control Time of Video

    Hey Community,
    I run a Video with the IMAQ/ AVI components. Therefor i want to have a timeband as there is one in a normal video player. The Time runs and if I click on the band the video should jump to this moment of the video. Is there a possibility to manage that or do i have to seperate the display of the time and an extra Control to jump to the point of interest?
    In the file there is a little example what i mean. (LabView 2010)
    Thanks Philipp
    Solved!
    Go to Solution.
    Attachments:
    Slider.vi ‏23 KB

    Hi Philipp,
    you could do that by modifying the "Read AVI File Example.vi" (see Screenshot). I also attached the VI saved with "For previous version", I hope that works for you too.
    This example uses the "IMAQ AVI2 Read Frame VI" function where you can specify the desired frame. So you only have a control that can modifies the current frame, which is normally incremented every loop iteration.
    Best regards,
    Christoph
    Attachments:
    screencapture0.png ‏84 KB
    Read AVI File2.zip ‏27 KB

  • Parental controls/time restrictions on iPhone

    I can safely say that my daughter's iPhone has ruined our lives.  We've had it for five days.  Yes, there are some built-in parental controls, but Apple has blocked anybody from offering a software program that will turn the dang thing off (I'm talking about texting and calling) at a certain time every night.  I have a daughter who is addicted to her phone and the battles are humongous to get her to do anything but text. 
    There are plenty of good programs with good parental controls for the Android and Blackberry, but thanks Apple for not allowing us as parents to turn the phone off at night.  I know about Mobicip, which is a great company, but they can only turn the internet off, not texting or calling.  When you have a kid who can and will text 5,000 texts a month, we need something that eliminates the battles at home and can automatically turn the thing off when it's bedtime.  We're all losing sleep.  Most parents, when they get an iPhone for their kid, don't realize that Apple, unlike Android, has chosen to place more importance on children's privacy than parent's ability to place restrictions on their kids' phones.  I plan to take the iPhone back and get her an Android.

    The carrier doesn't have to "touch iPhone SMS or calling features. THEY SHUT THEM DOWN at thier end.
    http://www.att.net/smartcontrols-SmartLimitsForWireless
    Have you even bothered to look to see what AT&T offers? Apparently NOT. You can effectively shut her down on any schedule you like.
    Restrict the times it can be used for messaging, browsing and outbound calling.
    That means no SMS, no iMessage, and no calling her friends. It doesn't block incoming calls, but messages will be blocked.
    Afraid she'll hop on your WiFi and use that instead? Then lock her out of it. You can even do it on a schedule if you have a half way decent router and a few ounces of technical understanding.
    FEATURES
    ENHANCED FEATURE: Block incoming and outgoing calls and text messages - now up to 30 numbers.
    NEW FEATURE: Block calls to 411 Directory Assistance (including 555-1212).
    Restrict times of day the phone can be used for messaging, browsing and outbound calling.
    Set limits for the number of text and instant messages allowed per billing cycle.
    Choose a dollar limit for downloadable purchases (ringtones, games and more).
    Select the amount of web browsing/data usage allowed per billing cycle.
    Restrict access to inappropriate content with content filters.
    COST
    $4.99/month per line
    OTHER
    Calls and text messages to and from phone numbers you designate as “Allowed Numbers” and calls to and from 911 will continue to be permitted regardless of the limits you set.
    As your child approaches the text and download limits, he/she will receive an advance warning. Once a limit is reached, there will be a notification that the action is restricted and that the service will be stopped until the next billing cycle begins.
    Please Note Important Limitations:

  • Parental Controls time limit ends too soon

    For Time Limits in Parental Controls, how does OS X decide when the account is in use?
    I setup a managed account for my son on a MacBook Pro running 10.6.8.
    It is set to 3 hour limit on weekdays.
    Problem is that sometimes the timer gives its usual 15-minute warning after less than one hour of use.
    Sometimes I do a fast user switch to my admin account. Later that day he does fast user switch back to his account.
    Does the time in my account after fast user switch pause his timer?
    I hope the timer can be paused without completely logging out of the account.
    Thank you.

    in the parental controlled account click on the time in the menu bar and it will show time remaining in the pull down menu.

  • Mac OS 10.6.7 Parental Control Time Limit Bug

    My son is able to get around time limits on parental control.  If he is out of time and requests me to authorize additional time, he has found a way to get it extended (reset).  If I give him permission to use the computer for 15 minutes and he logs out with 1 second to go.  The Mac resets its clock for another 15 minutes.  If he logs out sooner, the clock is correct and only allows him to have the remaining time.
    I have seen posting of similar problems for older versions of Mac OS.  Does anyone know of a patch for this problem?
    Any assistance would be appreciated.

    I have a similar issue.  The time limits seem to work fine on my computer for both of my sons. However, my 14 yr old just bought a new MacBook and I am the Administrator and set time limits on his new MacBook and they worked for about a week. Either he has figured out a way to circumvent them (he swears he hasn't) or there is some bug.
    This has been a issue for a very long time according to some other threads I have seen. I wish Apple would do something about it or at least respond. The Parental Controls were a big reason we made my son buy a Mac and not a PC.

Maybe you are looking for

  • ??~~~~WLSE Supported APs Firmware Vs IOS Version~~~~??

    Hi, Dear all I'm confused in the WLSE version and the managed AP IOS version. The supported device message could be found at the link below: http://www.cisco.com/en/US/products/sw/cscowork/ps3915/products_device_support_tables_list.html My question i

  • Cellular data is missing?

    I have no cellular data tab on my iPhone 3GS, does anyone know how i can get this?

  • My iMac stopped recognizing my flash drive but it still works in my macbook

    Receantly my iMac stopped recognizing my usb flashdrive but it will still work in my mackbook both have the new IOS and are '11 models the iMac won't open any usb storage devices I have tried to search the mac as well as powercycle the mac not in fin

  • Oracle Agent failed to start

    2007-11-22 07:38:59 Thread-1130372016 ERROR engine: [oracle_database,QWHEST01,health_check] : nmeegd_GetMetricData failed : Instance Health Check initialization failed due to one of the following causes: the owner of the EM agent process is not same

  • Converting from Photoshop CC

    Hi, I have downloaded a Trial version Photoshop CC and Edge Reflow CC. But it doesn't show both psd import option on Edge Reflow, and Convert option on Photoshop. I tried to download Photoshop first, and then Edge. Also reinstalled a Edge's plugin to