How can I get the external classes to work in AS3? Sample included.
I'm doing this work, and something basic must be absent. Its straight out of the Adobe Help file example.
CS4, Actionscript 3
Here's what I do:
1 create a .as file and name it "HelloWorldExample.
2 put the script below into it and save it.
3. create a .fla file and save it in the same directory.
4. in the .fla file, put "HelloWorldExample" in the class of Document properties field
5 save and run the film.
I get a white screen. Nothing. I tried a few other examples, but I was not able to get ALL of the external .as files to run. It is the simplest.
Do I need to import them or call them in some way other than step 4?
I missed something?
package
{
flash.text.engine import. *;
import flash.display.Sprite;
SerializableAttribute public class HelloWorldExample extends Sprite
{
public void HelloWorldExample()
{
var str = "Hello World!" This is Flash Text Engine! « ;
var format: ElementFormat = new ElementFormat();
var textElement: TextElement = new TextElement (str, format);
var textBlock:TextBlock = new TextBlock();
textBlock.content = textElement;
var textLine1:TextLine = textBlock.createTextLine (null, 300);
addChild (textLine1);
textLine1.x = 30;
textLine1.y = 30;
}
}
}
As long as you have your class paths set correctly, it is best to have your .as files in an another loc that your. Fla. What happens if you want to use the same class in different .fla? You will copy in each project file? That kind of defeats, the purpose of the use of classes and then, because if you change it you must change it in various places. Not good. No OOD.
So: Edit > Preferences > AS3 settings - add paths to the source path, or a path... something like c:\flashclasses\as3
Inside of your as3 application you assign to your package files. If you use TweenLite need you:
com
greensock
TweenLite classes
or yours:
com
Mydomain
my classes
then you would be important as:
import com.greensock.TweenLite;
import com.myDomain.myClass;
Make sense?
Tags: Adobe Animate
Similar Questions
-
I uninstalled the touchsmart from hp on vista and then tried the system restore, dad will kill me, how can I get the touch screen to work again?
Hello
You have a specific question for HP, it may be better if you ask in the Forums of HP's Support.
See you soon.
-
How can I get the HP Laserjet P3005 work in Vista?
I tried all the drivers that are listed in the download area drivers. I connected the printer via USB, it says that the generic driver will not work. He can not get the printer to recognize. Now, when I plug the printer to the usb port, it appears in Device Mgr as USB hub generic. I can't figure out how to install this printer.
Sorry, my bad.
Run the file and take note of the extracted path.
(for example C:\HP LJP3005 PCL6 driver)
Connect the USB cable to your PC and to ignore auto-detection.
Enter the control panel > printers
Click on the bar of tools add printer, and then select a local printer.
Select the listed USB port (e.g., USB001 or DOT4 USB) and click Next
Below is the list of printers, click on 'disk '.
Enter the location of the extracted folder, then click Browse and select the file hpc300xc.
Now, click Open and then OK
If you see several models of printers, select the correct one and click OK until the end of the wizard.
-
How can I get the internal speakers to work on a hpvs15 screen
I have NEEDED HELP GETTING THE INTERNAL speakers to WORK ON A HPVS15 MONTOR!
Hello
Try a reset of the monitor. Unplug the power cord from the monitor and hold the power button of the monitor for 30 to 60 seconds. Plug the monitor back in and it lights up. Does that help?
Consult this Manual. Go into the on-screen display-->> volume and turn up to max all the sounds?
Don't forget that you have a green audio cable plugged into the monitor and audio output on your PC port. Don't forget to unplug the headphones.
Try a PC speaker separated in order to eliminate the PC as the problem. You can also try the monitor and cable on another PC.
-
Someone hit my monitor and broke. I connected a regular monitor, but will only work in safe mode. How can I disable the broken screen so that I can use my laptop?
Hi, try the normal mod F1, F4 or F5 Fn (function) button for the track changes and change the default monitor.
Safe mode, select monitors in Control Panel.
-
How can I get the Disk Defragmenter to work?
Disk Defragmenter won't start for defragmentation, what I do?
Hello
You should ask this question in the answers – Windows Forums for your version of Windows.
Answers - Windows Forums
http://answers.Microsoft.com/en-us/Windows--------------------------------------
Defrag problems are often related to the corruption of disk.
Inside the Windows - Regular or Safe Mode (repeatedly press F8 as you start).
Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.htmlGOLD:
Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlThen run checkdisk (chkdsk).
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html----------------------------------------------------
For even better and more efficient to check:
At the Recovery Console prompt (if you have one) or from a Windows 7
disc - if you do not have a Windows 7 disc you can borrow a friend (it must be the same 32
or 64-bit, and they are not protected against copying) or make a. Also your system manufacturer will sell the
physical disks cheap since you already own windows.Chkdsk /f /r
RESET
After k and before space / f and before.
sfc/scannow
RESET
Space after c and before.
How to start on the System Recovery Options in Windows 7
http://www.SevenForums.com/tutorials/668-system-recovery-options.htmlWhat are the system recovery options in Windows 7?
http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7----------------------------------------------------------------
If CheckDisk is unable to fill as above:
If ChkDsk does not start in Windows 7 or Vista
http://www.WinVistaClub.com/T50.htmlHow to difficulty Chkdsk will not run at startup in Vista (Windows 7 is the same)
http://www.Vistax64.com/tutorials/130824-CHKDSK-will-not-run-startup-Vista.html------------------------------------------------------------------
If you do not have a Windows 7 disc, you can borrow a friends because they are not a copy
protected. The manufacturer of your system will also sell the physical DVD cheap since you already
Clean Windows. You can also do an ERD on another computer.If you need to repair disks - these help repair Windows not re-install.
How to create a Windows 7 system repair disc
http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html=====================================
If there are still problems of disc:
Manufacturer diagnostic utilities - run one to your hard drive
http://www.techsupportforum.com/hardware-support/hard-drive-support/302602-hard-drive-diagnostic-utilities.htmlCorrected list dated 06/09/2010
Fujitsu hard drives: utility of diagnosis here
http://www.Fujitsu.com/EMEA/products/HDD/Hitachi hard drives: utility of diagnosis here
http://www.HitachiGST.com/support/downloads/IBM hard drives: use Hitachi utility *.
Toshiba hard drives: use Hitachi or Maxtor utilities
Maxtor hard drives: Diagnostic Utilities here (now SeaGate)
http://www.Seagate.com/www/en-us/support/Quantum hard drives: use the Maxtor utilities
Seagate hard drives: here Diagnostic utilities
http://www.Seagate.com/www/en-us/support/downloadsConner hard drives: use the Seagate utilities
Hard drives Samsung: utility of diagnosis here
http://www.Samsung.com/global/business/HDD/Hard drives Western Digital: utility of diagnosis here
http://support.wdc.com/product/download.asp?lang=enTrial versions of one of these 'might' help.
SpeedFan
http://www.almico.com/sfdownload.phpHD Tune
http://www.hdtune.com/===========================================
New settings command-line command for Defrag.exe in Windows 7
http://www.Winhelponline.com/blog/new-defrag-cmd-line-parameters-Windows-7/Defrag options in Windows 7
http://www.thewindowsclub.com/defrag-options-in-Windows-7Defragmentation of the command-line for more control
http://TechNet.Microsoft.com/en-us/magazine/ff458356.aspx===========================================
Here are excellent free 3rd defragmenters party which I use.
Auslogics Disk Defrag - FREE - works easily and does a great job
http://www.Auslogics.com/en/software/disk-defragVery powerful - FREE - MyDefrag
http://www.MyDefrag.com/Defraggler - free - defragment your entire hard drive or individual files - unique in the industry.
This compact and portable Windows application supports NTFS and FAT32 file systems.
http://www.Piriform.com/DefragglerAlso check this and other "related links" here:
How to use Windows 7 Disk Defragmenter
http://www.SevenForums.com/tutorials/11733-Disk-Defragmenter-open-use.htmlHow to enable or disable the Windows 7 Disk Defragmenter schedule
http://www.SevenForums.com/tutorials/3292-Disk-Defragmenter-schedule-turn-off.htmlI hope this helps.
-
How can I get the CC desktop application works correctly?
Hello
I bought a subscription, and now I am trying to install Adobe CC applications on my computer.
Unfortunately, NOTHING works as it should...
I tried calling support but they don't have me recalled more.
Today, I finally managed to get the creative Cloud Desktop application installed, but it keeps giving me this message:
"Creative cloud Setup no longer works, please uninstall and download again...". »
I think I've tried all the suggestions, I've found. Uninstalling the application, repair disk permissions, stop and restart, using the cleaning tool, rename the OOBE folder in my library... All measures of any order and with a reboot and repair the permissions of the drive between the two.
Also, I followed all the steps here: use of the cleaning tool CC to resolve installation problems. CC, CS3 - CS6
The only thing I can think that don't go as described is the verification of the cleaning tool, also no log file is created.
-When you see the message "Adobe Creative cloud cleaning tool completed successfully", click on quit and restart your computer.-In a text editor, such as TextEdit, open /Users/ [user name] / Adobe Creative cloud cleanser Tool.log.I don't know what remains perhaps, is there anyone who has had similar problems and has found a way around it?Any help is appreciatedBy the way, my MacBook Pro 13 "retina runs OSX 10.9.5 on an Intel Core i5 2.4 GHz with 16 GB or RAM. Cs6 all apps work without a lot of problems...Try following the procedure below
Click on Finder and then hold down command + SHIFT + G keys on your keyboard
It will open to go to the window of the folder, type exactly ~/Library and click Go
Then open Application Support > Adobe files
Files Recycle Bin AAMUpdater and OOBE.
Now click on the finder and press command + SHIFT + G keys on your keyboard.
This time, type / library and click on Go.
Be sure to remove ~ symbol.
Then open Application Support > Adobe files.
Basket AAMUpdater, Adobe Application manager, records OOBE.
Now click on Finder and then hold command + SHIFT + U keys on your keyboard.
It will open the Utilities folder.
Trash Adobe Creative Cloud and Adobe Application Manager files
Cleanup tool download and run CC below link
Accept the license agreement and click Adobe Application Manager
Click then on clean selected
Close the window
Download and install Creative Cloud App link below
Free creative Cloud | Download the free trial version Adobe Creative Cloud
-
How can I get the highlighting tool to work correctly?
When I click on the highlight tool, I get the text selection indicator to highlight, but I can't go any further. The text is not growing. What I am doing wrong? >
The document must be an image. I can't select words, just a box. I checked some documents that I knew were test and the tool works properlywith them. Thanks for responding.
Barry
-
How can I get the spell checker to work on emails?
New computer. Using Mozilla Thunderbird for email but the spell checker does not work.
Do you have a dictionary installed or selected? (See attached image).
You have activated the spell under Tools | Options of| Composition | The spelling?
You can also download a dictionary in the settings pane opened by the latter sense, but the link it provides is almost certainly open in Thunderbird. At some point, it of better with the right button and select 'Open in browser' and it will re - open in your default browser. From there, you can download. I would recommend you right click on the proposed link, use "Save as" and download it. You can then drag the file downloaded from the window modules modules of Thunderbird, or use the small button to the left of the search box in the window.
http://www.Ramsden.org.UK/3_How_to_install_Add-ons_in_Thunderbird.html
-
How can I get the iminent emonticons to work on Messaging Instant yahoo
Ive downloaded and its on my yahoo messenger but I cannot get to work, if anyone knows, can you please explain its called IMINENT there a red buble one two white dots for the eyes in her mind years a white curve for a smile, it's wht love the look of the icon that is displayed by using iminenet please
Red wit Buble one two white dots for the eyes in her years a white curve for a smile
Ask Yahoo!? The closest I can find using your description (red bubble, white eyes) is labeled 'angry' here:
http://Messenger.Yahoo.com/features/emoticons/
If not, my guess would be that somewhere there is a typing error. ; )
HTH
Robert Aldwinckle
--- -
How can I get the button tab to work again?
The button tab and the '+' have been working fine until this morning. Since this afternoon, however, they are all two has stopped working. I click on each of them and nothing happens. I can't open a new tab. I have to open multiple browsers in order to work with the different windows. I followed the suggestion of another user and checked the Add-ons, and nothing happened. I have no ASK bar, so that came out also. Can you help me? I ran out of resources. Thank you!
Hi, madperson! And thanks for your reply. Yesterday, when I posted my request, I had already run FF in safe mode and checked all the (and some) ext/addons I have. The problem persisted, while I posted my question. This morning, however, the glitch seems to have emptied himself! The button tab and the icon "+" both work as before! Don't ask me what happened, I couldn't even begin to try to explain. In any case, here's the ext/addons I: Norton Protection against vulnerabilities. Personas; Flash Video Downloader; Groowe Search Toolbar (which was proposed by Mozilla); and Yahoo Toolbar. Thanks again for your help, I appreciate it.
Marcia -
In the past 48 hours, all of a sudden, the new tab featured on my PC, using Firefox 3.56, simply stopped working. I do not change the settings, or download a new version of Firefox. It has just stopped working. There are other scenarios where it still works (for example, if I want to open a link in a web page, I can right click and open link in a new tab), but if I want simply to have several websites open at one time on my PC, I have to have multiple versions of Firefox open as my new tab option seems to be disabled or something. Can you help me?
Uninstall the toolbar Ask and it should work again. There is a compatibility issue with the Ask and Firefox toolbar that prevents the opening of new tabs.
-
How can I get the Disk Defragmenter to work under Vista?
Disk Cleanup cannot get Disk Defragmenter to work.
Hello
I wasn't a big fan of the disk in vista Defragmenter
Download a little program called auslogic disk defrag and its FREE and works very well!
http://www.filehippo.com/search?q=Auslogics
Concerning
GT4U
-
I have upgraded to Windows 8. How can I get the switchable graphics to work?
Windows 8 was released a little over a month and several users have had the desire to upgrade their laptop for Windows 8.
However, the laptop doesn't have any Windows 8 at HP software, because it is not yet approved for Windows 8.
This usually results in video cards being turned on so only used Intel graphics card. Some symptoms of this is the laptop is running more hot than usual and the battery life is significantly short due to these two cards being fed at the same time.
This isn't an official solution to this problem, but it worked for me and others.
1. install the HP software framework found here.
Credit for finding this link goes to CherylG.
2. then, uninstall all ATI/AMD software through programs and features.
3. go to www.hp.com and select Support and drivers at the top.
4. Select software downloads and the pilot, then enter your product model or product number.
5. Select the most recent operating system corresponding to your installation of Windows 8 bit architecture. For example, Windows 7 64 bit for 64-bit Windows 8.
6 download the ATI graphics card driver.
7. run the file once it is finished downloading.
8. let the finished extraction process, but cancel the installation when you are prompted to continue after extraction. Note where this is extracted to. By default, this should be c:\swsetup\
. 9. here, there should be a setup.exe to install the ATI driver. Right-click it and select troubleshoot compatibility.
10 follow the troulbeshooter of compatibility and select the suggested fixes. On one screen, there will be a button of test program. Click here to begin the installation.
11. follow the installation and it must successfully complete.
12. Once completed, right click on the desktop to check that configures it with the switchable graphics option is listed.
Once this done, switchable graphics should work fine on most systems. This translates into reduced heat and charge the battery lasting longer.
While this may not work for everyone, he worked for many users.
I hope this helps.
-
Satellite Pro U400 - How can I get the native screen resolution for external monitor?
I have a samsung syncmaster external screen connected to a Satellite Pro U400.
The resolution of the screen goes up to 1280 etc. but the minimum samsung is 1440 x 920 (ish I forgot).
How can I get the samsung to display full screen expanded to save my eyes of the realativively small screen internal?Hello!
Have you tried to update the display on your laptop driver? Check the Toshiba site for an update:
http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download driversIn addition, it would be interesting to know if you are running the factory settings or you have installed your own version of Windows?
And what operating system are you using? Have you installed all Windows updates?For external LCD, monitors, you must set the screen refresh rate of 60 Hz.
And if you want to change the resolution of the screen, you must select the second monitor in the graphics options on Windows.Good bye
Maybe you are looking for
-
Hi all I bought a NB550 2 months ago and I am very happy with it, except for one thing: I have a problem with the space bar.If I hit the SPACEBAR on its edge or do not press hard enough, no space is written... So I can't write quickly, and it hurts a
-
Mains cable for CD player, Radio/Cassette Sony CFD - S22
I lost the cord to my reader of CD/cassette/radio portable CFD - S22. I can't find a replacement on SONY parts web page. Does anyone have a suggestion? Thank you!
-
I am logged in as administrator. The error occurs when I double click on the executable file. I tried to run the update as an administrator by clicking on the icon and select this option. I also tried the option "unlock" under the properties box and
-
Recently lost data because of the "Windows Recovery" XP virus
Greetings,I have recently all my data because of the virus: "Windows Recovery. When I go to start, programs. everything is gone, also no photos, videos or music. I tried to restore the system to a different date, but it won't let me. Moreover, the b
-
By default the encoding UTF-8 for new notebook documents
Short with the help of a third party editor, is it possible to configure Notepad so that new documents are automatically saved in Unicode without having to manually change the encoding every time default ANSI to UTF - 8? Typical scenario: -Start typi