AS 3.0 Output Error for Start / Stop Buttons

In trying to understand ActionScript 3.0 mouse events, I have
followed the online video under Flash / ActionScript / Getting
Started wit ActionScript 3.0 presented by Justin Everett-Church. At
least I don't see any syntax errors.
I am not getting a Compiler error, but I get this warning in
the Output tab: WARNING: Actions on button or MovieClip instances
are not supported in ActionScript 3.0. All scripts on object
instances will be ignored.
I understand what it is telling me. Actions on button
instances are not support in AS 3.0. But then why does the video
tell me to name a button instance and then go on to refer to it in
the ActionScript?
The movie still works fine. I just get this Output warning.
Should I be concerned? I am using Flash CS3 Professional Version
9.0
Another peculiar thing is this. The code shown below DOES NOT
generate an Output error on one on my FLA files, but it DOES on
three others that have exactly the same button names and AS 3.0
code (shown below). I don't see any differences. I even copied and
pasted the code from the one that didn't produce the warning to the
others that did. Again, the movies seem to work fine, but I get the
Output warning.
Here is my ActionScript 3.0 code (I named the three button
instances: stopBtn, playBtn, restartBtn)
import flash.events.MouseEvent;
stopBtn.addEventListener(MouseEvent.CLICK, stopDemo);
function stopDemo(event:MouseEvent):void {
this.stop();
playBtn.addEventListener(MouseEvent.CLICK, playDemo);
function playDemo(event:MouseEvent):void {
this.play();
restartBtn.addEventListener(MouseEvent.CLICK,restartDemo);
function restartDemo(event:MouseEvent):void {
this.stop();
this.gotoAndPlay(1);

Are you extending the layer that has the function for the length of the timeline like I showed in the example file I made for you?  I put the code for the other frames on a separate layer to make sure that the one being shared is not cut short.
I think I also already mentioned that you should go into the Flash Publish Settings and select the option to Permit Debugging so that the error message indicates which line of code is causing the problem.

Similar Messages

  • Scripts for starting/stopping managed servers

    All,
    Could someone provide me with some sample scripts for starting/stopping managed Weblogic servers?  I'm specifically looking for ways to start/stop them WITHOUT starting the AdminServer.  I'm running WLS 10.3.6 on Windows Server 2003, and I have NodeManager set to start automatically as a Windows service.
    I know how to set my managed servers up as Windows services so that they will start automatically at boot, but this requires the AdminServer to be running, which I do not want.  I just want a few scripts for starting/stopping the managed servers (and maybe some hints as to how to make them start automatically without starting the AdminServer).
    Thanks in advance,
    Tom

    Hello Puneet,
    Admin console is an web application deployed into AdminServer. Hence if you shutdown AdminServer then you wouldn't able to access Admin console.
    Managed Server would function in MSI mode, however you will not be able to make any configuration or administration activities like deployment , any configuration changes , etc.
    Hello PRISM,
    Can you confirm your requirement about why you don't want AdminServer to be running?
    As I said,  you will loose the administration capability if you don't have admin server running.
    Regards
    Rosario

  • Creating a Business Service for Start/Stop Application Service in CCB 2.3.1

    Hi,
    I'm in the process of creating a BPA script that invokes a Business Service to perform a Start/Stop for a given Account ID/Premise ID combination. The Business Service is using the base Application Service: Start Stop (CILCSSEP). I am moving the Account ID and Premise ID, along with the start date and requested by fields to the data area of the Business Service, prior to invoking it. When I invoke the Business Service via the BPA script, it throws the below error message... I'm at a loss because the BILL_ADDR_SRCE_FLG is being set to a default of "PREM" on the Business Service Schema:
    A Bill Address Source is required on the address override record. Please enter a valid value.
    One of these two is true:
    1) The Bill Route Type on this record has a Bill Routing Method of 'Postall', or
    2) The main customer on the Account has a Quote Route Type with a Quote Routing Method of 'Postal'.
    In either case, the Bill Address Source must be populated with a valid value.
    If you need support please supply the following info to system support:
    Message number: 3, 59204
    Business Service: CMSTARTSERVICE
    Application Service: CILCSSEP
    Schema:
    <schema pageAction="fastChange">
    <accountId mapField="ACCT_ID"/>
    <df mapField="DEFAULT_FOR_FLG"/>
    <startDate mapField="STRT_START_DT"/>
    <startOption mapField="STRT_TYPE_FLG"/>
    <premiseId mapField="STRT_PREM_ID"/>
    <premAddress mapField="ADDRESS1"/>
    <premCity mapField="CITY"/>
    <startCisDiv mapField="STRT_CIS_DIVISION"/>
    <startReqBy mapField="STRT_STRT_REQ_BY"/>
    <bldStrtSaSw mapField="BUILD_START_SA_SW" default="true"/>
    <accountIdtwo mapField="ACCT_ID2"/>
    <mainCustPerId mapField="MAIN_CUST_PER_ID"/>
    <billFrmtFlg mapField="BILL_RTE_TYPE_CD" default="POSTAL" private="true"/>
    <billAddrSrcFlg mapField="BILL_ADDR_SRCE_FLG" default="PREM"/>
    <billAddrSrcFlg2 mapField="BILL_ADDR_SRCE_FLG2" default="PREM"/>
    <startStopTelephoneOverride type="list" mapList="OVRD_PHONE">
    <accountId mapField="ACCT_ID"/>
    <sequence mapField="SEQ_NUM"/>
    <phoneType mapField="PHONE_TYPE_CD"/>
    <internationalPrefix mapField="COUNTRY_CODE"/>
    <phone mapField="PHONE"/>
    <extension mapField="EXTENSION"/>
    <version mapField="VERSION"/>
    </startStopTelephoneOverride>
    <startBtn mapField="ACTION_START_SW" default="true" private="true"/>
    </schema>
    I'm running CC&B 2.3.1 - Any help in pointing me in the right direction to get this working would be greatly appreciated, Thanks!
    Regards,
    Jack

    Hi,
    Can you try and do this transaction online and see if the error occurs as well? If so run it with traces on and check for the details just before the error is thrown. ( you can also switch on debug via the service call, but it may be easier to debug when doing this online. ) I am predicting this error will occur also when you do it online.
    When you are using an Account with its main Person set up with BILL_ADDR_SRC_FLG as PREM you will need a valide PREM_ID on the CI_ACCT record for MAILING_PREM_ID and the premise needs to have a switch set to YES indicating it is a Mailing Address type Premise.
    Good luck
    Arjen

  • How do I create a start/stop button for each separate while loop within my program, when each of them does a different task?

    I have a multimeter VI with separate while loops to accomplish the different tasks of reading  voltage, current, etc. Each while loop has a stop button, but I need a button that will have to be pressed in order for the while loop to even start. I tried putting another while loop around the present one, but it still has to run once before it will stop. I want the user to have to press the button before it runs, because they interfere with each other.
    I am just learning so patience and your kind assistance is greatly appreciated!
    ElectroKate

    iZACHdx wrote:
    Hello,
    I'm not entirely clear with everything you have going on and what you want your final functionality to be, but you can use sequence structures to prevent a loop from starting until the user presses a button like this:
    -Zach
    I have to ask, why is an NI employee using examples using sequence frames? The same thing could be accomplished using data flow by simply wiring the value of the first stop button out of teh first while loop and connecting it to the second loop. This would then use data flow to control the sequence. Why show new users bad programming methods?
    As to the original question I would concur with altenbach on using an event structure.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Which is the best structure for start/stop data logging?

    Hi everybody,
    hope I can explain my problem good enough that anyone can help me:
    I have a VI which continuely shows on a graph the voltage of a Analog Input of a DAQ device. Now I want to allow the user to start/stop with a click on a button data logging. Means that a second loop writes to a selected path every ms the data to a spreadsheet file.
    At the moment my VI works like this:
    You run the VI and Labview asks you one time for the file path, then you can start and stop the data logging. But you can do it only one time. If you want to log a certain time later another file, you have to close and open the whole VI again which is not very professional...
    My target is:
    It is onlyl necessary to start the VI one time. Then you can select a new file path, log data, select another file path, logging data again....and so on...
    Which programm structure is necessary, can anyone help me as a labview beginner with that issue? I attached the VI if someone just wants to edit that...
    Thank you for your help!! Markus
    Attachments:
    Logging voltage.vi ‏93 KB
    screenshot.JPG ‏98 KB

    @NaruF1 and GerdW
    you are right, there is a mistake, both loop rates should be the same (10 ms) :-)
    @NaruF1
    yes you understood correctly that the file dialog should appear every time the user wants to start writing a new log-file. The voltage we measure is a analog signal, so there will be several interesting periods we want to save for a later analysis in Excel.
    To your 2nd point: if it works with a array it will be fine. But it must be possible to log data for lets say 5 minutes, so the array won´t be too large? (5 min @ 10  ms loop rate will be 30000 rows..
    attached is the VI, saved as LV2009..
    Thanx a lot!
    @GerdW
    ..you ask why I didn´t create a structure like you recommended with notifiers or queues? The simple answer would be that I am not familiar with all this.. just began to write my first Labview programm. I will have al look to the LV help with all that stuff... Thank you a lot
    Attachments:
    Logging voltage.vi ‏80 KB

  • Input / Output error for new HDD on MacBook Pro 5.5

    Hi there,
    New to Apple Support Communities
    I have a problem with a MacBook Pro 5.5 Intel Core 2 Duo
    Original Fujitsu 160GB HDD crashed and I replaced it with a Hitachi 250GB HDD.
    Hitachi 250GB drive is partitioned to GUID Partition Scheme but when I try to format the drive in Disk Utility to Mac OS X Extended Journaled, I keep receiving an Input / Output error. I tried even erasing the drive and I get the same error.
    I also tried using Diskutil in terminal window and I get Input / Output error.
    I talked with a guy in work who knows about the Mac and he said the drive could be locked in which the Mac can't unlock to format the drive.
    There is nothing wrong with the drive at all. It works perfect. I'm at a loss as to why the Mac won't install the OS X 10.5.7
    I've looked at many Mac support sites for problems / solution but no solution
    Could someone who has experienced this before please help to resolve my problem.
    Regards,
    DTreacy

    Hi there,
    An update on the MacBook Pro 5.5 problem.
    Mac OS X seems to only install when the HDD is connected to the laptop as a USB drive.
    When I put the drive back into the laptop, it won't boot to the OS.
    The mount is /volume/Macintosh_HD.
    I even tried reformatting the drive but got an error that it could not unmount the drive. I tried a force unmount which worked but the drive disappeared from the disk utility.
    My only way to get the drive back was to connect it again as a USB drive and again I was able to install the OS again.
    Can some help to resolve the problem. How can I make the drive boot to the OS when it is connected as an internal drive
    Regards,
    Dtreacy

  • Single start/stop button for looping movie

    Dear Friends,
    I apologize if this has been addressed already in the forum, as I have had no luck searching here or the web in general for a solution.
    I currently have a 23-frame multilayered single-scene animation designed to loop continuously which I would like to add to my portfolio. As such, I am adding a Play button, which I would like to toggle to a Stop (or Pause) button. I currently have an instance of the Play button ("playButton") created.
    (You can find this at pineboxmovingco.com/gear_redux.swf)
    Besides imploring your assistance in providing the code, I must also ask if this requires (and best practice for) inserting an additional frame at the beginning for the ActionScript, as well as where/what layer to add an instance of the Stop button. I would like the movie to be stopped by default, presenting the Play button, toggling to the Stop button, and back to the Play button, each upon release.
    Thank you so much in advance!
    Michael T
    Phila, PA

    So, Ned, insert the stop(); command - with no other code - on each keyframe of the MC like so:
    Then, return to Scene 1 and select the MC, inserting the code:
    With an additional "stop" command in the first frame:
    I must be missing something as it is continues to loop. Any further assistance would be greatly appreciated...
    Michael
    (UPDATE: Replaced second image with AS reflecting replacement of XXX with "1".)
    Message was edited by: turnerator

  • Start/Stop Buttons and infinite loop exit

    I am trying to make a GUI with a Start/Stop and an Exit button. Initially the button will have the label "Start". When i push it, its label should become "Stop" and an infinite loop function will begin. I want the loop to run until i press the Stop or Exit button.
    The problem is that when the loop starts i can't press neither of the buttons. The "Start" button changes its label into "Stop" only if i make the loop finite and it ends.
    Here is the source:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    public class StartStopButtons extends JFrame{
        Component visualComponent = null;
        JPanel panel = null;
        JLabel statusBar = null;
         public StartStopButtons() {
              setSize(160, 70);
              getContentPane().setLayout(new BorderLayout());
            panel = new JPanel();
            panel.setLayout(new BorderLayout());
            getContentPane().add(panel, BorderLayout.CENTER);
            final JPanel panel_1 = new JPanel();
            panel.add(panel_1, BorderLayout.CENTER);
            final JButton startButton = new JButton();
            startButton.addActionListener(new ActionListener() {
                 public void actionPerformed(final ActionEvent e) {
                    String action = e.getActionCommand();
                    if (action.equals("Start")) {
                         System.out.println("Start Loop");
                         startButton.setText("Stop");
                         myLoop ();
                    if (action.equals("Stop")) {
                         System.out.println("Stop Loop");
                         System.exit(0);
            startButton.setText("Start");
            panel_1.add(startButton);
            final JButton exitButton = new JButton();
            exitButton.addActionListener(new ActionListener() {
                 public void actionPerformed(final ActionEvent e) {
                    String action = e.getActionCommand();
                    if (action.equals("Exit")) {
                        System.exit(0);
            panel_1.add(exitButton);
            exitButton.setText("Exit");
         public void myLoop() {
              for (int i = 0; ; i++)
                   System.out.println(i);
         public static void main(String[] args) {
              StartStopButtons ssB = new StartStopButtons();
              ssB.setVisible(true);
    }

    I works just fine. Here is the source and thanks for the help.
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.UIManager;
    public class StartStopButtons extends JFrame implements ActionListener, Runnable{
        Component visualComponent = null;
        JPanel panel = null;
        JLabel statusBar = null;
        Thread thread;
        JButton startButton;
         public StartStopButtons() {
            try {
                UIManager.setLookAndFeel(
                    UIManager.getSystemLookAndFeelClassName());
            } catch(Exception e) {}
              setSize(160, 70);
              getContentPane().setLayout(new BorderLayout());
            panel = new JPanel();
            panel.setLayout(new BorderLayout());
            getContentPane().add(panel, BorderLayout.CENTER);
            final JPanel panel_1 = new JPanel();
            panel.add(panel_1, BorderLayout.CENTER);
            startButton = new JButton();
            startButton.addActionListener(this);
            startButton.setText("Start");
            panel_1.add(startButton);
            final JButton exitButton = new JButton();
            exitButton.addActionListener(new ActionListener() {
                 public void actionPerformed(final ActionEvent e) {
                    String action = e.getActionCommand();
                    if (action.equals("Exit")) {
                        System.exit(0);
            panel_1.add(exitButton);
            exitButton.setText("Exit");
         public void actionPerformed(ActionEvent e) {
              String action = e.getActionCommand();
              if (action.equals("Start")) {
                   startButton.setText("Stop");
                   thread = new Thread( this );
                   thread.start();
              if (action.equals("Stop")) {
                System.exit(0);
         public void run() {
              myLoop();
         public void myLoop() {
              for (int i = 0; ; i++)
                   System.out.println(i);
         public static void main(String[] args) {
              StartStopButtons ssB = new StartStopButtons();
              ssB.setVisible(true);
    }

  • Error for starting up the ERP server - Dispatcher (disp+work.EXE) stopped

    Hi All,
         We recently purchased and received a V3 Discovery System from Fujitsu.
         We are having a problem starting the ERP server so that we can register the license key.
         The problem is that the Dispatcher (disp+work.EXE) is not connecting to the database from the SAP Management Console.
         The error message from the dev_w0 file is:
    *“C *** ERROR => Connect to database failed, rc = -10757 (XUSER error (incorrect USER data owner))"*
    Below is a link to SAP’s documentation on this error:
    http://help.sap.com/saphelp_nw04s/helpdata/en/d4/2f8f40f3b19920e10000000a1550b0/frameset.htm
    I’ve looked at OSS Note 39439 and, although I needed to make the entries that were listed in the note in xuser, it did not solve the problem.
    Below is the link to the note.
    https://websmp230.sap-ag.de/sap/support/notes/39439
    Does anyone know the reason for this error?
    I’ve searched for return code -10757 on OSS and did not find anything.
    Thanks,
    Mike Vondran

    Hi Amir,
    The quick guide that I have is November 2007 and the quick guide that you referenced is April 2008.
    The new 2008 quick guide also has a section on downloading Microsoft PSTool and a batch file called “xuser_recreate.bat”.
    My V3 Discovery System does not have a “xuser_recreate.bat” batch file.
    Can you email me or post the content of the batch file?
    I’m sure it is just the entries for xuser discribed in OSS Note 39439 but I’d like to see it to insure that I have the correct entries, etc.
         Thanks!
         Mike Vondran

  • Best Practice for Start/Stop Xir31 jobserver by BODS (Batch or whatever)

    Dear all,
    i'm migrating XIr2 => XIr31 current version and just dealing with the interaction to BODS.
    In XIr2 we stopped the Jobserver at midnight and started by
    net start "Web Intelligence Job Server"
    by the end of the relevant BODI import Job. - Now it seems that it is only possible to stop the SIA (1287046) and by that all WEBI Servers.
    But actually this is not wanted because also manual access for the devs is not granted.
    So how can we deal with that issue?
    Thanks in advance,
    Christian
    Edited by: Christian Kaiser on May 6, 2011 12:59 PM

    I've moved your question to the InDesign EPUB forum for best results.

  • Shell script for start stop and restart standard

    Hi,
    I'd like to know if there's a standard template for shellscript for a kind of stop|start|restart execution of a server or stub.
    If you have any link or some info that explain how to do that nicely it would be nice!
    Thank you

    There's plenty of live examples in /etc/rc.d

  • Preview output error for bid

    Hi,
    I have an issue in Bid output.When I tried to preview output for the bid invitation, I am getting error Business Partner Does not Exist.I checked the data maintained for the bidder which looks fine.Which business partner it could be referring to?
    Any clue as initial analysis sugegst SF_BID_DATA-BIDDER_CONTACT-PARTNER_ID coming empty
    Thanks in advance
    rgds
    arjman

    hi
    only this one this bi has issue or every bid invitation..
    check all business partner data in the BI..
    in SRM every one is a BP , purchaser , vendor, bidder ,plant ,etc.etc.
    muthu

  • Best Practice for starting & stopping HA msg nodes?

    Just setup a cluster and was trying to start-msg ha and getting error about watcher not being started. Does that have to be started separately? I figured start-msg ha would do both.
    For now I setup this in the startup script. Will the SMF messaging.xml work with HA? Whats the right way to do this?
    /opt/sun/comms/messaging64/bin/start-msg watcher && /opt/sun/comms/messaging64/bin/start-msg ha
    -Ray

    ./imsimta version
    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
    Using /opt/sun/comms/messaging64/config/imta.cnf (not compiled)
    SunOS szuml014aha 5.10 IDR142154-02 sun4v sparc SUNW,T5240
    sun cluster 3.2. And we are following the zfs doc. I haven't actually restarted the box yet, just doing configs and testing still and noted that.
    szuml014aha# ./start-msg
    Warning: a HA configuration is detected on your system,
    use the HA start command to properly start the messaging server.
    szuml014aha# ./start-msg ha
    Connecting to watcher ...
    Warning: Cannot connect to watcher
    Critical: FATAL ERROR: shutting down now
    job_controller server is not running
    dispatcher server is not running
    sched server is not running
    imap server is not running
    purge server is not running
    store server is not running
    szuml014aha# ./start-msg watcher
    Connecting to watcher ...
    Launching watcher ... 11526
    szuml014aha# ./start-msg ha
    Connecting to watcher ...
    Starting store server .... 11536
    Checking store server status ...... ready
    Starting purge server .... 11537
    Starting imap server .... 11538
    Starting sched server ... 11540
    Starting dispatcher server .... 11543
    Starting job_controller server .... 11549
    Also I read in the zfs / msg doc about the recommendations:
    http://wikis.sun.com/display/CommSuite/Best+Practices+for+Oracle+Communications+Messaging+Exchange+Server
    If I split the messages and indices, will there be any issues should I need to imsbackup and imsrestore the messages to a different environment without the indices and messages split?
    -Ray
    Edited by: Ray_Cormier on Jul 22, 2010 7:27 PM

  • Facing error while starting/ stopping Oracle EBS R12 services

    Hi,
    I am trying to shutdown Oracle EBS apps node services from following command and getting following error message. Database listener is up and password is also correct for apps but still facing error. Any suggestions for resolution of this issue.
    [ebsmgr@test scripts]$ sh adstpall.sh
    You are running adstpall.sh version 120.10.12010000.4
    Enter the APPS username: apps
    Enter the APPS password:
    adstpall.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
    USAGE:  adstpall.sh <appsusername/appspassword>
            adstpall.sh <applications_username/applications_password> -secureapps
            adstpall.sh -nodbchk
    adstpall.sh: exiting with status 1
    Regards,
    Salahuddin.

    please see
    R12 Adstrtal.sh Fails with "Database Connection Could Not Be Established error starting all services on the target" (Doc ID 1499837.1)
    R12: "adstrtal.sh: Database connection could not be established" Error When Running Script adstrtal.sh and adstpall.sh (Doc ID 1492611.1)
    ApPsMaStI
    sharing is Caring

  • NO SOUND output (except for start-up chime) on MacBook Pro

    I've been looking all over the discussion boards but haven't been able to figure this one out.
    Suddenly for no apparent reason I have no sound output. I've checked all the settings, repaired disk permissions, restarted, etc. with no effect. I DO get the start-up chime but then nothing. Also, I do NOT have a red light emitting from my adio out jack. F3, F4 and F5 show the volume icon changing on-screen but with no actual sound output. Switching to a speakers or earphones doesn't change it either.
    The only thing I can think of is that my battery has been slowly dying and has just recently started to crap out when the battery life indicator shows more than 50% charge. For this reason the computer has lost power and suddenly shut down once or twice without having been properly shut down. But the loss of sound input did NOT happen directly after this.
    Any suggestions?

    I Finally figured it out...
    For some reason, my audio setting got changed in my audio prefs:
    System settings --> Audio
    On the "Sound Effects" tab, it was set to "Internal Speakers", which explains why I was getting the startup chime, and alert sounds just fine.
    However on the "Output" tab, it somehow got changed to "Sunflower" which causes the sound not to work. As soon as I changed it to "Internal Speakers" everything went back to normal.
    Hope that helps!

Maybe you are looking for

  • Problem with display of Chinese, Japanese, and Korean business partner name

    Hi All, I'm trying to understand how to get GTS to properly display the names of the business partners that are in Chinese, Japanese, or Korean. I have set my SAP gui localization as follows: - Select the Customize Local Layout, then Options, then th

  • Oracle 816 On RedHat 7.1 is certified or not??

    Anyone install Oracle816 on RedHat 7.1 successfully?? Is it certified by Oracle? I like to know before I really jump in to this messy area. Thanks..

  • Intel Mac Mini Core Duo Midi USB Issues

    Is anyone else having issues getting Midi devices to work with the Intel Mac Mini's? I have several Midi devices that are't working correctly event though I have installed the newest drivers. Currently I am having issues with a M-Audio Midisport 2x2

  • Using Select Expert Inserts Blank Section

    I'm using Crystal Reports XI Developer Edition and it recently started to display some strange behavior. Every time I use the Select Expert to add a parameter, Crystal adds in an empty ghost section. I refer to it as a ghost section because you can s

  • Printing pdf without opening new browser window

    Hi, How can i print (locally) multiple pdf generated on the server without having to open acrobat in the browser ?