Using an external as file so it displays on the stage?

Hi,
How do I get this code to work?
package
    import fl.controls.*;
    import flash.display.*;
    import flash.events.*;
    dynamic public class MainTimeline extends MovieClip
        public var btSubmit:Button;
        public var btAlpha:Button;
        public var mytween:MovieClip;
        public var i:String;
        public var tiAge:TextInput;
        public var people:Array;
        public function MainTimeline()
            addFrameScript(0, frame1);
            __setProp_btSubmit_Scene1_objects_1();
            __setProp_btAlpha_Scene1_objects_1();
            return;
        }// end function
        function __setProp_btSubmit_Scene1_objects_1()
            try
                btSubmit["componentInspectorSetting"] = true;
            catch (e:Error)
            btSubmit.emphasized = false;
            btSubmit.enabled = true;
            btSubmit.label = "Submit";
            btSubmit.labelPlacement = "right";
            btSubmit.selected = false;
            btSubmit.toggle = false;
            btSubmit.visible = true;
            try
                btSubmit["componentInspectorSetting"] = false;
            catch (e:Error)
            return;
        }// end function
        function frame1()
            stop();
            people = new Array("julie", "bill", "steve", "paul");
            btAlpha.addEventListener(MouseEvent.CLICK, clickHandler);
            for (i in people)
                trace(people[i]);
            btSubmit.addEventListener(MouseEvent.CLICK, Ageval);
            return;
        }// end function
        public function clickHandler(event:MouseEvent) : void
            mytween.alpha = 0.5;
            return;
        }// end function
        public function Ageval(event:MouseEvent) : void
            var _loc_2:* = undefined;
            _loc_2 = tiAge.text;
            if (_loc_2 > "18")
                trace("You are " + _loc_2 + " years old you are old enough to vote!");
            else
                trace("You are " + _loc_2 + " years old you are not old enough to vote yet!");
            return;
        }// end function
        function __setProp_btAlpha_Scene1_objects_1()
            try
                btAlpha["componentInspectorSetting"] = true;
            catch (e:Error)
            btAlpha.emphasized = false;
            btAlpha.enabled = true;
            btAlpha.label = "Alpha";
            btAlpha.labelPlacement = "right";
            btAlpha.selected = false;
            btAlpha.toggle = false;
            btAlpha.visible = true;
            try
                btAlpha["componentInspectorSetting"] = false;
            catch (e:Error)
            return;
        }// end function
I can't tell how to get the code to interact with the objects on the stage.
Thanks,
Nightwalker

Follow steps below:
Open your fla  file.
Click on stage area.
opne Properties window from  either the "Window" menu or using shortcut CTRL+F3
You will see one text field with the label 'Document class:' type your class name.
Make sure you are placing your class file i.e. .as  file in the same directory as that of your fla file.
To check click on the edit Icon infront of that text field and it should open your .as file
Also keep in mind that you  will have to write the class as public and should have the same name as that of your file or vice-e-versa'
I guess this will help you.
P.S.: A flash program starts with the constructor of the Document class assigned to that Fla.

Similar Messages

  • Updated to Mavericks OS X but can't use my external drive by WD My Passport. The Mac reads it but I can't add/remove files to the external drive. Help?!

    Updated to Mavericks OS X but can't use my external drive by WD My Passport. The Mac reads it but I can't add/remove files to the external drive. Help?!
    The WD My Passport, I purchased back in early December 2013 & I just used it the other day after I updated my Macbook... & of course it says in the online manual it works for Mac Lion, Mountain Lion, Snow Leopard but not this new Maverick update. Is there anything I can do?

    I like the free demo of SuperDuper to make clones. It's free, Tiger and Leopard ready and is easy to use. If you buy the full version you can do incremental backups.
    You should use Disk Utility to do a Disk Repair, as shown in this link, booted up on your install disk, before you make a clone of it.
    I then partition my external disk, in Disk Utility, with a partition that is the same size , actually a tad bigger, as my system disk. I then use SuperDuper to clone my system disk over to that partition.
    With a clone on an external FireWire drive (USB drives are not bootable on some Macs) you can bootup on it to do your repairs or just run your Mac anytime you have trouble with your main drive. Be careful, there are a few external FireWire drives out there that are not bootable on Macs. Check the drive's manual to be sure.
     DALE

  • For FF 3.6 on XP, what is the name of the Bookmarks file, i.e., what file is being displayed as the result of clicking 'Organize Bookmarks...' ?

    That was the whole question with all the details. (Here it is again: For FF 3.6 on XP, what is the name of the Bookmarks file, i.e., what file is being displayed as the result of clicking 'Organize Bookmarks...' ?)

    Firefox 3 stores the bookmarks and the browser history in [http://kb.mozillazine.org/places.sqlite places.sqlite] .
    See http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • Desktop files disappeared from displaying on the Desktop

    My existing Desktop files disappeared from displaying on the Desktop--the files still exist, and newly added files appear on the Desktop; I did not enter any "hide my files" command. How do I have them display? Running OS X Yosemite 10.10.2

    Do a backup.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.finder.plist and com.apple.desktop.plist.  Move the .plists to your desktop.
    Re-launch Finder by restarting the computer and test. If it works okay, delete the plists from the desktop.
    If the same, return the .plists to where you got it  from, overwriting the newer one.
    Thanks to leonie for some information contained in this. 

  • Hello, I uploaded a new website but all the svg files don't display on the browsers. when I open it in Muse with the "preview in browser", its fine! can someone tell me please where my problem is? (sorry for my english!)

    hello, I uploaded a new website but all the svg files don't display on the browsers. when I open it in Muse with the "preview in browser", its fine! can someone tell me please where my problem is? (sorry for my english!)

    Hi
    Could you please check this thread, it might be helpful
    Muse not exporting svg, can only see in preview

  • All FLV files have removed themselves from the stage

    Hey Folks
    All my FLV Files are no longer on the stage where they had
    been placed. I moved the folder do I need to relink the paths and
    tell the program where all the FLVs are now? (like in final cut
    pro?) how would I do that if so....
    thanks
    n

    Boy my first answer was dumb.
    Are you using Flash 8? If so you should still see the FLV
    Components on the stage. Click on the FLV Playback component and
    open up the component inspector. YOu will need to adjust the paths
    for the contentPath. When you click on the flv file name a
    magnifying glass should appear next to it. Click on that and browse
    to the new flv location.

  • How do I use an external monitor as my only display?

    I have a MBP early 2011 with a thunderbolt to HDMI connector for a samsung LED monitor.  I want to use the samsung as my only monitor when I am at my desk at home.  I have an external keyboard/trackpad and would like a bigger workspace.  As we all know Lion and full screen apps take a lot of usefulness out of extra monitors, but I just want one larger external display.
    The display will work as a mirror, or an additional display, however it wont work by it self with the MBP closed.  It just stays on as a secondary display.
    Any and all help would be appreciated.
    Thanks

    yeh you need at least an external mouse or keyboard connected to the mac when the lid is closed and mac is sleeping, then use it to wake the mac up. At this point it should use only the samsung monitor. So for example in the pic below im using bluetooth mouse and keyboard paired with my mac pro 17", i dont really need to let it sleep either, can just connect the monitor while the mac is on, then close the lid and the samsung will change from external monitor to primary monitor.
    hope this helps.

  • Using an External Jar file

    I was hoping my intro programming class would be easy, as I've done some C++ before, but go figure, it's not.
    Although the language/concepts aren't to difficult to learn, it seems compiling programs is. For one program, I'm giving an external .jar file to use. I'm using crimson editor and I do have it setup with the jdk1.6.0. It compiles all my other programs besides this one (command line doesn't work either).
    Essentially, I've created a project, I have an instantiable class, and an application class. I can call the instantiable class in the app class and creating/modifying objects works just fine. Then I have a .jar file added to the project that came from the class (supposed to be used for I/O, don't know why we can't just use the standard java classes, but oh well). anyways, when I try to call the methods in the .jar file I get the following error:
    ---------- Capture Output ----------
    "C:\Program Files\Java\jdk1.6.0\bin\javac.exe" file.javafile.java:6: cannot find symbol
    symbol : variable externalJar
    location: class file
              int value = externalJar.getIntInput();
              ^
    After doing some searching, I found that it might be due to the classpath. So I set the classpath to the directory.. no go. Then I set the classpath to the externalJar.jar file and I get the follow error:
    ---------- Capture Output ----------
    "C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -classpath C:\folder\externalJar.jar file.javaerror: error reading C:\folder\externalJar.jar; error in opening zip file
    I'm at a loss. It works when I use Eclipse and I can just add the external jar file, but I don't want to use eclipse, it's slow and bulky. Any other solutions to this problem? Thanks.
    E-Rod
    *names were changed for a reason.. i already know i'm not misspelling anything                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The error about not being able to find the variable externalJar has nothing
    to do with the classpath. It's just that your code in file.java refers to this variable,
    but you have not declared it anywhere.
    Variables within a class, the names of classes and the names of .jar files
    which contain packages have nothing whatsoever to do with one another.
    If you are using a variable externalJar intending it to reference your external jar
    file in some way, then your file.java code is seriously wrong.
    (Also, classes and their associated source files should begin with an
    uppercase letter.)
    Regarding your attempt to specify the classpath when you invoke the
    compiler (always a good idea), I think you should also include the current
    directory (if that is where file.java is). Like this:"C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -classpath C:\folder\externalJar.jar;. file.javaThe "error opening zip file" thing is odd. Make sure you are
    able to read it (permissions OK, no other process has it locked). And that
    it's not corrupt (Did you create it? If so, rebuild it. If not, aquire another copy.)
    Sorry for the generalities and guesswork, but without seeing any code and
    without knowing your directory structure or the contents of this externalJar.jar
    it's hard to do any more.

  • Loading external (PDF)file into BLOB colum in the table.  Need urgent help.

    Hi All,
    I've currently been working on loading many external binary files (PDF) into BLOB column. After some digging, I learn that the SQL*LOADER can be used to load data from external files into table. I also got help from another forummate mentioning to use PL/SQL procedure to do so. Since I have not done anything like this before. So, my question is what is the simple approach needed to upload PDF files into a table(there is only one table containing BLOB column in my database). In addition, the LOBs can not be query-able, I wanted to list the contents of the LOBs column to make sure that I did successfully upload data into the database. How can I do that?. I do need your help. Please direct me step by step how to do so. Your help is greatly appreciated.
    Regards,
    Trang

    Once the PDF file is inserted in the PDM table, i am not able to read the PDF data from the below code, This code converts the binary data into the Character data i.e BLOB data into the CLOB, but still the data is not proper which is getting inserted PDF is proprietary format of Adobe. And you cant just read it from pl/sql. You need Adobe software installed in your client machine to view it.
    Here is an example of how to do it.
    [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:232814159006] Display PDF Stored in Database from ASKTOM 

  • Does an external cnt file need to be in the same folder as the master cnt file?

    I'm working in RoboHelp Word and have inserted two external
    cnt files into a master cnt file. I've selected the option 'use
    full path' as the external help file is installed under a different
    folder than the master help file. However, I am unable to view the
    extneral cnt file from the master cnt file, unless all cnt and hlp
    files are installed in the same folder. Is it not possible to have
    the external cnt files under a different folder? Thanks for any
    assistance!

    Hi, SSchwa, and welcome,
    I believe that you can keep the files in different folders
    provided that they are in the help "search path". The following is
    from Microsoft's WinHelp Author's Guide:
    quote:
    WinHelp now searches for Help files in the following
    locations, in the order listed.
    * If a path is specified, WinHelp first searches for the file
    in the specified path. If the file is not found, the path is
    removed and the following locations are searched.
    * The folder of the current Help file.
    * The current folder.
    * The System subfolder of the Windows folder.
    * The Windows folder.
    * The folders listed in the PATH environment.
    * The location specified in the Winhelp.ini file.
    * The registry.
    If WinHelp cannot find a Help file, it displays a dialog box
    that enables the user to specify the location of the Help file. If
    the users finds the file, WinHelp will add the location information
    in the registry.
    As far as registering the .hlp and .cnt files is
    concerned, the registry key under which to do so is:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Help
    Pete

  • Can I use my iMac (20" G5) as a display for the MacBook Pro 13"?

    Can I connect an iMac(20" G5) as a display for the MacBook Pro 13"? If yes, what adapters I need? Does it need modification or software for the iMac?

    You need to use ScreenRecycler or a VNC client.
    (49933)

  • I use FireFTP to upload files. This past week the profilesuddenly stopped connecting. Ideas?

    I manage two Websites and use FireFTP to upload files for both of them due to FireFTP's ease of use. I've never had a problem connecting before last week. The files on the host (my computer) show, but there is no response when I click on the "Connect" button. These were already established profiles and have worked before, and I have made no changes. I've tried to make the connection fairly frequently over the past week (this has been going on for a full week now), and tried a few minutes ago to confirm there was still a problem. There is. Did I have only a limited time to use FireFTP? If so, I don't recall being advised of that when I downloaded and installed it. I'd gladly pay a nominal fee just to not have to learn another FTP app, although there are many free FTP apps available on the Internet. Further, Firefox itself is not working -- I can not see any Webpages using Firefox, although in using IE or Chrome, the Webpages I seek come up. In fact, I had to find your Website and fill out this support ticket via IE. What is going on with Firefox and FireFTP? Thx.

    If Firefox won't connect, as well as FireFTP not connecting, the most common reason would be a firewall block after the update. That and other reasons are discussed in the following support articles:
    * [[Fix problems connecting to websites after updating Firefox]]
    * [[Firefox can't load websites but other browsers can]]
    Anything there help?

  • Using an external image file to display on page while page is loading

    I am uploading my site to a host that insists that I put their logo on the top of my web pages. They will not permit me to embed the logo on the page. They want me to insert an image srch on the page to a graphic file they store locally. This is so they can update all web pages on their site at once when a change is made to their logo. How do I place this on my web page using muse so the logo loads with my page.

    Hello,
    You can insert the image as HTML. Use Object>Insert as HTML option in Muse.
    Please refer to the link : http://www.w3schools.com/html/html_images.asp for using the Image tag as HTML.
    Replace the Source to what your hosting service provides you as their logo file path.
    Hope this helps.
    Regards,
    Sachin

  • How Do I Use an External MP3 file Without Embedding it? (AS2)

    I am using Adobe Flash CS6 with ActionScript 2.0.
    I have compiled my project, and due the collection of embedded mp3 files (background music) I am using on various locations, my published swf file is over 12MB.
    To reduce the size, I placed all the mp3 fiels in the same folder as the swf file and removed all reference to them from the project.
    I then added this code to frame #1
    import flash.events.Event;
    import flash.media.Sound;
    import flash.net.URLRequest;
    var CreditsMusic:URLRequest = new URLRequest("NineWalkers.mp3");
    var s:Sound = new Sound(CreditsMusic);
    CreditsMusic.setVolume(50);
    CreditsMusic.start(0,1);
    Obviously, this is not working (I would not be posting here if it was).
    What am I doing wrong?

    I haven't look into the help documents (you can), but I see you mixing up AS2 and AS3 code, along with treating a URLRequest (AS3) as if it is a Sound object....
         CreditsMusic.setVolume(50);
         CreditsMusic.start(0,1);
    If you want to work with the Sound class in AS2 open the help documents and see what properties and methods are available for the Sound class and work things out from there.  If you search Google using "AS2 Sound loadSound" you might get some good info as well.

  • HT4103 have a problem with shared file does not exist? used sudo but "no file in directory". i think the problem is from when i tried to move itunes files to an external drive to save space on laptop, cant remember what i actually did!

    followed support steps  (sudo) to recover itunes sync authorization "permission error" but did not work

    i tried both steps but did not help: "disk utility" first aid and iTunes: Missing folder or incorrect permissions may prevent authorization.

Maybe you are looking for

  • Create a listing of reports with last run date and # of times run

    Hi All, I want to create a listing of reports with last run date and number of times report is run in the past 18 months. If anybody can please help me with the query for the same. Regards, Sk Edited by: user10989244 on Aug 18, 2009 7:12 AM

  • Interactive report pf-status

    Hi All,       I created one interactive report with setting back and exit buttons on pf-status in interactive report.       In the function codes of both I wrote the same code ie 'LEAVE SCREEN'. when I press back button in primary secondary list,it w

  • Where to find files received using Bluetooth?

    I received some files from Bluetooth with extension .rar but I can,t find them ? Any one to help

  • PdfExportPresets.add - name becomes default "Adobe PDF Presets 1" - bug?

    Hi, I am not really a programmer and completely new to scripting. I just want to create a very simple script that I can use with a panel created with Adobe Configurator. I'm trying to load new joboptionsfiles (.joboptions / PDF Export Preset) via a s

  • Express card for MacBook Pro

    I have a 15in MacBook Pro (Early 2008). and i have bought an Express Card from ST Lab which i cannot seem to get to work. When i look in the Systems Report, were does the Express Card show up?? And were is the driver? will it automatically load up? T