Basic AS3 Question

Hi to everyone.

Why does ActionScript 3 must be on keyframes and not in the object I'm working?

Thank you...

AS2 should have been only on managers too much than to put code in various places is bad style. AS3 is just good behavior of coding.

Tags: Adobe Animate

Similar Questions

  • the basic sql question

    Hi all I have a basic sql question
    Watch below two querries
    1.  select 1 from dual where 1 in (select 1 from dual union all select null from dual) 
    
    It gives output  as 1
    
    but below one 
    
    2.   select 1 from dual where 1 not in  (select 2 from dual union all select null from dual)
    
    It gives output as no data found 
    I think as operator will not compare with all the values, but not the outcome it will compare with all values... When comparing with the value null, the result is automatically null

    I'm wrong
    Please help me on this

    and why performance wise in operator is more better than no of?

    Thanks to all in advance

    Thanks for posting your explain plan command

    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3249215828
    
    -----------------------------------------------------------------------------
    | Id  | Operation        | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |          |     2 |     6 |     4   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS    |          |     2 |     6 |     4   (0)| 00:00:01 |
    |   2 |   FAST DUAL      |          |     1 |       |     2   (0)| 00:00:01 |
    |   3 |   VIEW           | VW_NSO_1 |     2 |     6 |     2   (0)| 00:00:01 |
    |   4 |    SORT UNIQUE   |          |     2 |       |     2   (0)| 00:00:01 |
    |   5 |     UNION-ALL    |          |       |       |            |          |
    |   6 |      FAST DUAL   |          |     1 |       |     2   (0)| 00:00:01 |
    |*  7 |      FILTER      |          |       |       |            |          |
    |   8 |       FAST DUAL  |          |     1 |       |     2   (0)| 00:00:01 |
    -----------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       7 - filter(NULL IS NOT NULL)
    
    02:12:54 SQL> select 1 from dual where 1 not in  (select 2 from dual union all select null from dual);
    Elapsed: 00:00:00.01
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3291682568
    
    -----------------------------------------------------------------
    | Id  | Operation        | Name | Rows  | Cost (%CPU)| Time     |
    -----------------------------------------------------------------
    |   0 | SELECT STATEMENT |      |     1 |     4   (0)| 00:00:01 |
    |*  1 |  FILTER          |      |       |            |          |
    |   2 |   FAST DUAL      |      |     1 |     2   (0)| 00:00:01 |
    |   3 |   UNION-ALL      |      |       |            |          |
    |*  4 |    FILTER        |      |       |            |          |
    |   5 |     FAST DUAL    |      |     1 |     2   (0)| 00:00:01 |
    |   6 |    FAST DUAL     |      |     1 |     2   (0)| 00:00:01 |
    -----------------------------------------------------------------
    
  • Basic PCMCIA question: where is the controller?

    Hello people,

    I have a basic question of the PCMCIA:

    The PCMCIA controller is integrated on the motherboard or does the PCMCIA device?

    Practicality: if I want to change the PCMCIA in a laptop, I can change everything (part mechanical + electronic) or simply the mechanical part?

    I have a mono-emplacement controller, and I would have a dual slot PCMCIA. If the controller is on the motherboard, I have no chance of success.

    Thank you:

    UB

    The controller is on the motherboard. Pcmcia slot unit is removable, as stated above, but it's just a cage to hold the cards... no chip is in it other than a plug-in interface on the motherboard which channels to the pcmcia controller.

  • Basic VMWare question

    Hello, people:

    Please forgive my very basic questions, but I'm totally new to VMWare.

    Yes, as a R & S Cisco engineer, I worked with server

    specialists to get their online environments, but my focus was on the

    network component, from the access layer.

    Anyway, when you create a virtual machine and associate a request,

    This virtual machine has an IP address assigned to its own vNIC?  So, if it

    5 virtual machines run on a physical server, the number of addresses IP are you going

    have? How the allocation of an IP address of the physical NETWORK adapter is bound to the

    others?

    Once again, thank you for your help in advance.

    Take a look at the document I linked in the previous post.

    The virtual network is based on vSwitch which are "dummy" brigde.

    So has each VM's own MAC address (which is virtual and the part of the seller is dedicated to VMware).

    A physical NETWORK card is simply an uplink to the physical switch and the physical MAC address is generally not used and not visible in your network traffic or your ARP table (think a unmaged switch, it can have a MAC address, but you don't see it on your network).

    When you have several (more than one bear on a vSwitch) uplink you can have different types of team policy.

    (For you is probably the simplest to understand) is like the etherchannel on Cisco switches (and it takes a good configuration of the physical switch).

    André

  • Basic Flash question: Add skin and always keep the link hyper

    Using Creative Suite CS4. I have little or no action script skills.

    I created a 2 minute flash .fla file. In the end, I've added a button that, when clicked, opens a window onto another site. When I exported a .swf file, the button worked fine. When I added the file .swf into an html page, that it worked well also. The problem came when I tried to add a skin with video controls.

    I went through the tutorial that says I need to import the my video in FLV or F4V format. The ony way I could do was to export my FLA file in MOV format and convert it to an FLV file in Adobe Media Encoder CS4. But when I did I lost my link at the end. The video controls excellent work, but how do I add the hyper link in?

    And why hell can one export a Flash FLV file?

    Thank you!

    (this message is so old the answers were lost during a conversion adobe a few years ago.)

    the answer to the op's question, is that you cannot create a flv that executes actionscript.  However, you can create a flv that contains cuepoints and the cuepoints can trigger actionscript to run.

    so, the op should add a cuepoint until the end of the flv (or, if using as3, just use an Event.COMPLETE event listener for the flvplayback component) to detect the end of the flv and trigger the navigateToURL code.

  • Three basic flash questions

    Hey guys,.

    I'm pretty new to Flash but I just get the hang of things. I am trying to create an interactive slideshow in flash that will not end on the web. Here are three quick questions, I currently have. Thanks for any help you can provide

    1 Let's say I have an icon of a person in my flash file, how can I make sure that when my movements over the person a thought bubble appears and when she comes out of the bubble disappears?

    2. If I have a small picture of a version of the page of a .pdf file in my flash file, how can I do so that when the page icon little .pdf is click on the .pdf file is launched?

    3. I understand how to create a square to the text button and the refectory with its parameters to the top/bottom/more/click, but I wonder how I can do something like change the color of the text when clicked or when the mouse is on it? Right now I don't know how to change the color of the square button.

    Thanks much for any help you can provide these fundamental questions.

    1. If you understand what you're saying, that you do in your 3rd question, create this icon as a button and have thought as part more bubble.

    2. you create the small image as a button or a movieclip so that you can assign the code to him.  The code you assign depends on which version of actionscript will use your file, that you did not mention.

    3. If you are working with a button symbol, you probably just spend more time to play with them to understand how you can use the four frameworks.  To change the color of the text on working capital, you would have a different colored text in plus.  If you want the text to change color and stay like that when you click the button, then you will need to create the button as a movieclip.  Button symbols can be controlled in this way (exception for AS3, but it is not simple).

    The key to answer most of your questions and to learn that Flash is to play with Flash and see what works and what doesn't.  Try different tutorials as well.

  • Basic Actionscript question: mouse listener ROLL OVER event

    Hello-

    This is a very basic question, but I can't seem to find an answer. I have a mouse over the event and have created the buttons with the mouse overs which works very well. I created the actionscript code to go to a specific web page when a user clicks the button. Now, I need to add a label to the mouse more then when someone of the mouse on any area of the button, it will show them a particular name for the button.

    I'm sure it can be done using actionscript in a mouse event run on command, but I can't understand what I need to display the text. Here is where I am:

    community_btn.addEventListener (MouseEvent.Roll_Over, showmsg);

    function showmsg(evtObj:MouseEvent):void

    {

    }

    Thank you!

    If you want the text to follow the mouse, you can have a movieclip that contains the textfield object is empty, and when you rollover the button, the function of turning tells that movieclip to take the x and y position of the mouse (mouseX and mouseY) and fills this movieclip with the appropriate text.  Roll off the button removes the text, making the invisible text movieclip.

    If you want the text to have a background, you could also control the visible from the movieclip property so that it appears on rolling and disappears when you deploy.

    Thus, in the reversal function, assuming that you had this ToolTip named MC... "toolTip", soimething this might work for you

    toolTip.x = mouseX;  could add a little space if you want, for example: mouseX + 5;

    toolTip.y = mouseY;

    toolTip.visible = true;

    toolTip.tField.text = 'text ';

    And implementation code to would have to deal with the last two lines.

  • Pretty basic Calc question... I think so.

    I think this question is PRETTY Basic. So we all know that the data is located at the INTERSECTION of dimension members. Therefore, you can not say that the data is a single dimension not more that he is sitting in another dimension. Which means that, if the data is found on the account "xyz" for the year of "FY10"... it would be the same as saying my data is from the year "FY10" on behalf of "xyz".

    As a result, only the following Calc script...

    DIFFICULTY)
    "Value_1".
    @RELATIVE("Entity",0)
    @RELATIVE("Scenario",0)
    @RELATIVE("Version",0)
    @RELATIVE("Years",0)
    @RELATIVE("Period",0)
    @RELATIVE("Income Statement",0)
    )
    CLEARDATA "Currency_Local";
    ENDFIX;


    ACCOMPLISH THE SAME THING THAT

    DIFFICULTY)
    'Currency_Local '.
    @RELATIVE("Entity",0)
    @RELATIVE("Scenario",0)
    @RELATIVE("Version",0)
    @RELATIVE("Years",0)
    @RELATIVE("Period",0)
    @RELATIVE("Income Statement",0)
    )
    CLEARDATA "Value_1";
    ENDFIX;

    Thank you.

    Yes, they should do the same.

    It would be the same as saying

    DIFFICULTY)
    "Value_1".
    @RELATIVE("Entity",0)
    @RELATIVE("Scenario",0)
    @RELATIVE("Version",0)
    @RELATIVE("Years",0)
    @RELATIVE("Period",0)
    @RELATIVE("Income Statement",0)
    )
    'Currency_Local' = 1;
    ENDFIX;

    vs.

    DIFFICULTY)
    'Currency_Local '.
    @RELATIVE("Entity",0)
    @RELATIVE("Scenario",0)
    @RELATIVE("Version",0)
    @RELATIVE("Years",0)
    @RELATIVE("Period",0)
    @RELATIVE("Income Statement",0)
    )
    "Value_1" = 1;
    ENDFIX;

  • Basic Audio question

    Group,

    I have a HP dv6t with beats audio.

    I have two jacks speaker on the side, with a microphone jack. Question; Why have I not two speaker jacks, and what are the 'characteristics' that provides the Beats Audio?

    Thank you

    Marc

    Hi HC,.

    The additional is for sharing - and other games.

    Audio beats is mainly a marketing thing.  The full impact of the audio cannot be lived without some higher end equipment: headphones or external speakers that you attach to your computer.  The built-in speakers are... hmm... not a copy.  If you invest in some good speakers / headphones, beats chip will provide some audio very nice.  The controls are somewhat the same thing you would find in a pile of control.

    Here is a link to the thread of a member of the HP forum on Beats Audio that you might find interesting and informative:

    Beats Audio EQ tips sound setting / general - Forum de Support HP

    I hope this helps!

    Say "thank you!" to the help by clicking on the star of Kudos to show your appreciation.

    Fixed?  Mark this message 'accept as Solution' to help others find the answers.

    Note: You can find "Accept as Solution" only on the threads started by you.

    2012 the year of the Dragon!

  • Basic Newbie question

    Hi, I am trying to add a light display to indicate when a certain part of my code is running. Basically, I need to know how to activate and deactivate a single Boolean indicator in a flat sequence structure. Any help would be appreciated. Thank you

    Hi DoomPirate,

    Place your indicator in the first frame and a local variable or a property of the node in the last.

    It is also possible with only the flag if you are using a statemachine architecture.

    Mike

  • Vista Home Basic license questions

    Have revived an old PC that has one or more there has been subscribed HARD drive, put another disc in recently formatted and reinstalled Vista Home Basic, but probably not with the same disc that came with this particular machine (I have 6 home desktops and laptops), but certainly the number plate which is fixed on the side of this particular case (office emachine computer) is legitimate and came with this machine brand.

    Windows tells me this license is already in use and will not accept the activation code indicated in the certificate on the side of the machine.

    I tried everything, telephone contact for online registration is obsolete and even when I use the given number when ringing the old number, there is no need, I can't make it work.

    I am in South Africa and would appreciate any help.

    Try this link for activation.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-activation-problems

    In addition, MPA # is / was, 888-571-2048

  • On the basic ACL question

    I have a few question ACL. I'm not clear on the source address and the destination address in the following cases.

    Case 1

    My IP WAN1 is 1.1.1.1, my FTP server is 192.168.1.2 port 23

    If I have access to FTP from internet, use ftp://1.1.1.1:23, so what's my IP ACL of source and destination IP? 1.1.1.1 is source? destination is 192.168.1.2? or any?

    Internet-(Outside 1.1.1.1) ASA (inside 192.168.1.1) - FTP (192.168.1.2)

    Case 2

    My WAN1 is always 1.1.1.1 and FTP is 192.168.1.2 port 23

    If I use the ftp://1.1.1.1:8023internet FTP access, what the ACL source IP address and destination?

    I tested in both cases = any source and destination = everything is OK.

    But I confused. I still think the Source address is IP WAN1.

    Hello

    You access the server FTP from the Internet and most likely, you won't know what ip address you will be source. In this case, your source ip address will be everything. If you know the ip address on the Internet that will have access to your FTP server, and then you specify it as the source. You access list will be as follows:

    access-list extended 100 permit tcp any host 1.1.1.1 eq 21

    access-list extended 100 permit tcp any host 1.1.1.1 eq 20

    or

    access-list extended 100 permit tcp x.x.x.x y.y.y.y host 1.1.1.1 eq 21

    access-list extended 100 permit tcp x.x.x.x y.y.y.y host 1.1.1.1 eq 20

    (if you know the network or host who will have ftp access)

    You must also make sure that you have configured static NAT and inspection of the request to your FTP server

    Thank you

    John

  • Transition from basic editing Question!

    Hello, Adobe Community!

    I have one currently using the "Slide" transition on a title in my video. However, the transition moves only from left to right. How do I reverse the direction of transition? I want the next title in the video from left to right and leave the video in the sense that it comes.

    Thank you!

    James

    [title published by mod]

    Click once on the transition in the timeline panel.

    It's very basic things.

    Start here before that your project becomes a nightmare.

    Learn Premiere Pro, get help and support. Adobe Premiere Pro CC

  • PS Basic CC questions

    Two quick questions about PS CC. I'm looking on the plan of $9.99 / month for photographers.

    (1) can I use PS CC on several PCs, assuming that a PC is connected at the same time?

    (2) I need an active internet connection to log on to PS CC or an internet is required during updates? I would need to run CC where there is not internet.

    Thanks in advance.

    Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Computer cloud subscriptions can not be used at the same time

    Cloud status check 30-or-99 days https://forums.adobe.com/thread/1549838

  • A very basic newbie question, sorry: where is the documentation for the presets?

    Hello

    I am writing some ExtendScript to do some tasks fairly banal export and, so far, it makes a lot of sense... but...

    I keep on having spend loads of time googling for names of constant classes with the relevant presets.

    Y at - it a correct, indexed and searchable reference of InDesign scripting library, somewhere? PLEASE, I BEG YOU!

    Thank you

    G

    Where everyone was as frustrated by what I was, and I know that this exposes my ignorance but...

    1. in ExtendScript, F1 to open help.

    2. Select the product you are developing against in the help panel.

    3. Google what you want to do and, if you're lucky, you will find an object type or method name for try the search against

    (4 use the search help and I hope to whatever you hold dear that has you) corresponds to something useful and b) do not match too (both cases will cause absolutely no useful data)

    This will give you some (but very basic) syntax searchable guides... Buyer beware...

    Syntax guides do not, for example, distinguish (or provide details of) the difference between the IDS server or Office IDS and method signatures are different...

    Incomplete, awkward and a little difficult to use, but at least it is the documentation...

    G

Maybe you are looking for