You can initialize a function with such an event without event?

For example, I have this function:

function doSomething(event:MouseEvent):void {}
trace ("do a lot of coding...");
}

Now, if I want to perform the same function as above without the event "click" on your mouse which makes
seem to be possible.

Is there a work around? Or is the best way to make one between the function like this:

function doManyThings() {}
trace ("lots of code here...");
}

function doSomething(event:MouseEvent):void {}
doManyThings();
}


I think the way you describe does, with code that could be called by the event or directly in a separate function would make for more readable code when you come back and look in 6 months :)

But if you want to do the opposite, I think two ways to do this, either by simulating a call event based in the Manager, or by making the event argument in optional Manager.

Tags: Adobe Animate

Similar Questions

  • You can swim or shower with the watch

    You can swim or shower with the watch?

    Hello

    Non - Apple advises that you perform one of the people.

    Apple Watch is splash and resistant to water, but it is not waterproof. You can, for example, wear and use Apple Watch during the year, in the rain and all washing their hands. Overwhelming Apple Watch, however, is not recommended. The watch must also be dry if it is wet.

    Apple advises specifically, for example, the following can affect Apple Watch water resistance and should be avoided:

    • Exposing Apple Watch into water under pressure, including under the shower.
    • Swim or bathe with Apple Watch.
    • Overwhelming Apple Watch in water for long periods of time.
    • Apple Watch port in the sauna or the hammam room.

    Water resistance is not a permanent state, and Apple Watch cannot be rechecked or closed for resistance to water.

    More information:

    On the resistance to water Apple Watch - Apple Support

  • You can use my Mac with iOS

    You can use my Mac with iOS

    Hello ifixer2,

    Thank you for using communities of Apple Support.

    No, you need two or more Mac computers that meet the following requirements to use Back to My Mac:

    What you'll need

    To configure and use Back to My Mac, you need these things:

    • Two or more Mac computers that use the same account iCloud on OS X Lion v10.7.5 or later version.
    • A Terminal supported access AirPort (AirPort Extreme, AirPort Express or AirPort Time Capsule) or other Internet router that supports UPnP or NAT - PMP protocol, with the latest firmware available. AirPort base stations require version of firmware 7.6.1 or later for Back to My Mac.
    • Utility airPort 6.3 or later.
    • For screen sharing, a 300 Kbits/s-or-more rapid, bidirectional (high-low) Internet connection between computers. You may be able to use with slower connections to share files. If file sharing doesn't work as you think, check your settings and connections.
    • A firewall that allows remote connections. Some firewalls may prevent some back to my Mac connections. For example, when you're at home, don't maybe not able to connect you to your Mac at work. But when you're at work, you might be able to connect to your Mac at home. If you are not sure if the firewall will allow the back to my Mac connections, check with the network administrator for your organization.

    If you want to use an AirPort Extreme or airport Time Capsule to access files on a hard drive external, you need a Mac OS extended (journaled) formatted USB hard drive. When you use with Back to My Mac, your hard drive is displayed as the base under shared in the sidebar station Finder.

    Set up and use Back to My Mac

    Take care.

  • You can process the envelopes with Canon PIXMA MX452

    Can you?

    Hello jAMESOG.

    You can print on envelopes with the PIXMA MX452.  Before printing, make sure that the right size paper and media type parameters were selected in your program.

    If you need additional assistance, please contact us at 1-800-OK-CANON.

  • I have PSE14 and Lightroom 4.  You want to use 'open as layers"in lightroom.  It is not high lighted.  I thought that you can use this function to go to PSE.  Any suggestions?

    I have PSE14 and Lightroom 4.  You want to use 'open as layers"in lightroom.  It is not high lighted.  I thought that you can use this function to go to PSE.  Any suggestions?

    Ask in the forum of elements Photoshop Elements

  • You can never really argue with adobe?

    You can never really argue with adobe? I can't access an option to actually speak with an officer of Adobe.

    Hi kellyswm,

    You can contact the Customer Care Team directly by visiting this page: contact customer service

    Choose your product, choose your problem from the list and click on the blue "still need help? Contact us. »
    button. Remember, however, that the Chat button will appear when an Agent is actually available.

    Did you know that? They have even twitter to follow @AdobeCare!

    Kind regards
    Maurice

  • Hi, I'm trying buy Adobe Creative cloud but get message "this card was purchased in a country that does not match your Adobe ID you can try to connect with a login different Adobe or contact us if you need help."

    Hi, I'm trying buy Adobe Creative cloud but to message "" this card was purchased in a country that does not match your Adobe ID you can try to connect with a login different Adobe or contact us if you need help. ' "

    Can anyone help with this please. Thank you

    Hello

    Please visit the link below: -.

    Redemption code help

    How activate/redeem redemption Adobe CC Code

  • This card was purchased in a country that does not match your identification code Adobe you can try to connect with a identifying different Adobe or contact us if you need assistance.

    Hi I get this message when I try to install adobe software, how can I fix this problem? Thank you I really need your help

    This card was purchased in a country that does not match your identification code Adobe you can try to connect with a identifying different Adobe or contact us if you need assistance.

    Hello

    Please see redemption code help

    Kind regards

    Sheena

  • will never be an update where you can erase a background object of an image without clear photo behind the object and have the result as if the object was not always on the picture in the first place.

    Will never be an update where you can erase a background object of an image without clear photo behind the object and have the result as if the object was not always on the picture in the first place.

    I guess this feature without doubt not will be part of Lightroom because of the non-destructive nature publishing. Is that programs like Photoshop are for. But I don't speak for Adobe, because I do not work for them, and I did not all understand what are their plans for the future.

  • You can check your email with firefox?

    How to check your email when you are not at home. I have my email with verizon.

    Many email providers allow you to check your email using a web browser from any computer anywhere. You need get the instructions from your e-mail provider.

    If you are using a public computer, be aware that this might have some spyware that steals your login. Try to use only trusted computers.

    You can also use a USB flash drive to take a copy of Firefox.

    http://PortableApps.com/apps/Internet/firefox_portable

  • HP 14-AC151nr: you can upgrade on HP with 32 GB of MEM drive disk space

    I want to add more programs on this laptop I can add using portable external hard drive? If so, how?

    Hi @tatospeed,

    Welcome to the HP Forum! It is a wonderful location to converse with the community, get help and advice. You have a rewarding experience, I would include the following link for your perusal and reference. First time here? Learn how to publish and more.

    I understand that you want to add more space to install programs and don't know how to do this. You can attach an external hard drive or insert a memory storage card. Windows 10 allows you to change when your applications are installed. Here is a link to windowscentral.com to guide you through this process.  How to install Windows 10 apps on an external drive. It would also be the same process for a memory card.

    Please click on the "Twww.Mountainview.rsb.qc.ca Up ' below to thank me for my efforts! If one of my posts will help you to solve the problem that you are experiencing, please click the "accept as Solution" so that other people who may have the same difficulty can find the answer more effectively. Thank you for participating in Forums of HP!

  • You can synchronize digital input with an analog input on a 6034e?

    Is there a way to synchronize the digital input and analog input on a 6043e?

    I tried the test application "SyncAI_ReadDigChan", but it fails during the humor tick Verify():

    "The requested value is not supported for this property value.

    Property: NationalInstruments.DAQmx.Timing.SampleTimingType

    You asked: NationalInstruments.DAQmx.SampleTimingType.SampleClock

    "You can select: NationalInstruments.DAQmx.SampleTimingType.OnDemand.

    I'm currently collecting analog input data for the duration of a digital input pulse.

    Thanks for any help.

    Joe

    No, you can't.

    The problem with E-Series cards, is that they have just static DIOs, so you cannot have their clock.

    You would need a M-series card for that where you have correlated DIOs.

  • You can replace a laptop with another keyboard?

    I have a laptop with a Spanish keyboard, but I want to replace it with an English. Can you do this and if so, how?

    www.laptopkeyboardsworld.com

    Hello

    1. What is the brand and model of the laptop?

    2. don't want to physically replace the keyboard or just change the language settings?

    If you want to change the keyboard language settings, and then follow the steps from the link provided.

    How to change your keyboard type

    http://support.Microsoft.com/kb/258824

    You can also change the language options for:

    Regional and Language Options overview

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/int_pr_custom_workspace_regionalsettings.mspx?mfr=true

    If you want to physically replace the keyboard, then you will need to contact the manufacturer for more details.

  • Why 'xi '? and why you can not resize photos with essential software 3.5?

    I have a HP Photosmart 2610xi all-in-one printer, I've had for a while.

    In seeking support and online to identify my printer from a drop of water

    list down, I see the 2610 and the 2610v.  But no 2610xi.  I've seen

    other HP model printers have also included "xi".  Any

    particularly important for the v and not the xi?  What does this all mean?

    Support email HP says that I can use the software and drivers for the 2610

    and that works fine.  The essential software 3.5 is another

    topic and I'm not happy with that because you cannot resize

    a photo.  If you can I would like to know how.

    IIRC, printers with the names of products that had "xi" suffix that him have been sold in Sam's Club and others keep chain stores exclusively. The only difference was that the xi models has a USB cable included in the box, while the normal versions do not include the USB cable. Product features unchanged in all variants of the printer.

    On the issue of resizing, just right click on the image and select Edit. Then click on the resizing option, and you should be able to do.

    Message edited by DexterM on 07/12/2009 14:44
  • You can synchronize Z 22 with google calendar

    Is it possible to synchronize a palm Z 22 with Google calendar?

    Hello bsween,

    You want to synchronize your z22 with Google calendar.

    I don't think that you can directly.

    I wasn't able to find someone who has been able to sync directly to Google Calendar, but some people were using third party programs you can pay, and some might synchronize Outlook, then Outlook to Google Calendar.

    I would like to know how everything goes

    Nice day.

Maybe you are looking for

  • Satellite C50T - A - 11 d - touch screen does not work

    Searched - Microsoft and Toshiba drivers and find NOTHING - in fact in the box drivers from Device Manager - under Hid compatible touchscreen - I disabled and enabled it, tried to download the latest version of the driver - said this is the latest dr

  • 2000 - 358nr: 2000-358NR portable system disabled

    My daughter and niece were playing with my phone and now it keeps asking for Admin password and said disabled system [66365974], which he's never done before, and now I'm locked out of my system... Pls help

  • Got the update, now that my touchpad is disabled.

    During the process of closing last night my computer displays a message saying it was downloading update 1 20 and do not turn off the system.  I wasn't invited with any question asking if I wanted to allow the download or not.  After downloads finish

  • Of aircraft received fatal alert EUC access point: handshake_failure.

    Hi allDoes anyone know how to make local CA trusted root to view device Access point (AP)?I do a new installation in view of the Horizon and replacement of all the as cottages bookmark for CA certificates signed. Now, I want to deploy AP and it point

  • Remote accidentally video

    Hello ! I accidentally deleted project and video source. If I can restore the project the use of the cache of Adobe Premiere? How I can do that? Is it possible to recover a deleted video computer If have you worked with her in adobe?