I can not yet understand how to learn 3.0
I had a complete interactive application built in ActionScript 2.0 and now need to revise and update - which means the conversion of the former code 3.0.
The first scene is a preloader for the whole application that loads and animation of intro before launching the application. I went to the help section, thinking that once I had a few actionScript in the file, I could delete and experiment the code until I began to understand (I took a semester has retained the long courses in Java, but not much). If you couldn't already tell, I'm a designer, not a programmer.
I copied the help section ActionScript code and pasted in my Flash document. I went to test the movie and got the following error message: "1037: packages cannot be nested" I can't even understand what it means! I have nothing else in my document.
Here is the ActionScript code that copied from the help page:
package {}
import flash.display.Loader;
import flash.display.Sprite;
import flash.events. *;
import flash.net.URLRequest;
SerializableAttribute public class LoaderExample extends Sprite {}
private var url: String = "Image.gif";
public void LoaderExample() {}
var loader: Loader = new Loader();
configureListeners (loader.contentLoaderInfo);
loader.addEventListener (MouseEvent.CLICK, clickHandler);
var request: URLRequest = new URLRequest (url);
Loader.Load (request);
addChild (loader);
}
private void configureListeners(dispatcher:IEventDispatcher):void {}
dispatcher.addEventListener (Event.COMPLETE, completeHandler);
dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
dispatcher.addEventListener (Event.INIT, initHandler);
dispatcher.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);
dispatcher.addEventListener (Event.OPEN, openHandler);
dispatcher.addEventListener (ProgressEvent.PROGRESS, progressHandler);
dispatcher.addEventListener (Event.UNLOAD, unLoadHandler);
}
private void completeHandler(event:Event):void {}
trace ("completeHandler:" + event);
}
private void httpStatusHandler(event:HTTPStatusEvent):void {}
trace ("httpStatusHandler:" + event);
}
private void initHandler(event:Event):void {}
trace ("initHandler:" + event);
}
private void ioErrorHandler(event:IOErrorEvent):void {}
trace ("ioErrorHandler:" + event);
}
private void openHandler(event:Event):void {}
trace ("openHandler:" + event);
}
private void progressHandler(event:ProgressEvent):void {}
trace ("progressHandler: bytesLoaded =" + event.bytesLoaded + "bytesTotal =" + event.bytesTotal);
}
private void unLoadHandler(event:Event):void {}
trace ("unLoadHandler:" + event);
}
private void clickHandler(event:MouseEvent):void {}
trace ("clickHandler:" + event);
var loader: Loader = Loader (event.target);
Loader.Unload ();
}
}
}
You can simply extend MovieClip, instead of Sprite:
SerializableAttribute public class LoaderExample extends MovieClip
and then import them MC thus:
import flash.display.MovieClip;
Tags: Adobe Animate
Similar Questions
-
Firefox has been updated automatically at 7, and now all the sites I go on horizontal active things, that you have to click will do nothing. for example in ebay I cannot access 'My ebay' and Facebook cannot click my profile or messages, I can't click on "Your Photostream" which means I can't use it in Flickr. I tried exploring and all these work, then firefox. I uninstalled and reinstalled and did a virus check system on top of the one active ongoing and nothing no change. I am at a loss what to do now. A relative offered to download an older version that worked, but I don't even no how to do this. I would appreciate help I can use firefox as at the same time, I'm stuck with exporer I hate. Thank you
This problem may be caused by the extension of the Yahoo! toolbar
-
I'm new to CC. I discovered that I had to download first CS6 in@order to get it. (May not yet know how to get the title templates, etc. cannot understand instructions; but I spread) I see that it still says trial. How can I get the full thing. I am a Subscriber complete cc
I don't know what you've done, but here are the instructions to install the PProCS6 and the callback with a cloud account
Yet the instructions http://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html if you have a subscription
- and the difference in the Cloud application manager 2015 https://forums.adobe.com/thread/1906752
Still will not run as a trial, it is enabled when you install and activate PProCS6
-
I'm already thinking how in Adobe Lightroom for synchronization between my PC where I save and edit files of my work and my I phone6. Someone can tell me how to extend this synchronization to my Mc Book Air, can not quite understand.
Thank you!
Marcelo
Marcelo,
to make it quite clear, Lightroom can't sync between two desktop computers. It can synchronize between only one computer and one or more mobile devices. Synchronization between computers has been a very requested feature, but Adobe has not given us yet. You will need to designate one of your computers as your main machine mounting and synchronization here. There are tricks to get all changes from one computer to another in phase, but these are not negligible and may corrupt catalog if you're not careful.
-
Hey! I recently did the update - I know, I'm behind. But now I can't yet see how to add a glyph to a simple letter in my text. It is driving my crazy because its a small issue. Help!
Hey everybody! I appreciate your answers. I ended up understanding what I was doing wrong. I work with a split screen, but it does default to Live view mode - I have never exploited in Live view mode so I assumed it was the update. When I finally realized it and he moved on to design, I could add it without problem!
Thank you once again (:)
-
Password does not and I can not change. so, how can I connect
I erased my whole history since Firefox and now I can't log back. There is no contact number or email contact address. I'm just sent round & round in circles.
Shannock2010 said
Password does not and I can not change. so, how can I connect
On what?
Name of user and password problems must be posted here with password in the title,
https://support.Mozilla.org/en-us/forums/contributors -
keep getting dial ras in windows it can not conect wireless how to fix
Keep ras dial in windows this on my netbook can not conect wireless how to fix or there at - there no virus program to do a scan of all the programs I checked is not compatible win this
Hello
I suggest you to see link below and check if it helps.
http://support.Microsoft.com/kb/159360
Hope this information is useful.
-
When I start my computer, it tries to find the solution center but can not be found how can I download this program?
original title: Solution Center?I think that the solution center is a part of HP. I go to programs - run and type msconfig. Click the Startup tab and look for Solution Center, then uncheck the box so that it will not start then click on apply and restart the computer
OrYou can put in the HP printer drive and re install the printer that can also work. Hope this helps -
my kids lost my taskbar and I can not find it how do I get it back
my kids lost my taskbar and I can not find it how to recover or restore
He probably just hidding next. Try moving your mouse over all the edges of your screen. It could appear.
-
Hello, I have supported adobe reader dc, but I can not yet seen a document on the web, what can I do?
Hola de adobe reader pero aun no puedo ver a documento en PDF internet alguien can help me
Hi melaniea32902198,
To display IN the web browser to ensure that the PDF viewer plugin is enabled on the web browser Display PDF in browser Adobe Acrobat DC, DC of Acrobat Reader.
Google Chrome & Firefox have their own PDF Viewer, please allow them to view the PDF in web browser.
Kind regards
Nicos -
I get this message and the site does not load "OCSP is not yet valid" How can I solve this
MY system including firefox comes not to trust to all sites at all. I need to confirm the exceptions on Web sites. All certificates are bad "firefox" and after a while, I get the OCSP is not yet valid error message too. What's going to happen? This can be corrected?
The date / time set correctly in Windows?
-
My Photoshop CC crashed. I clicked on the iCloud icon on my desktop and tried to update my Bridge and Photoshop, but they both failed. I retried and they have not yet. Help please
Please see:error download or update Adobe Creative Cloud applications
Error: "unable to install". Creative cloud office
Error code 2 or 50: failure updating Creative Cloud desktop application
I hope this helps.
Concerning
Megha Rawat
-
14 elements do not accept my password and so I can not install. How do we install?
14 elements do not accept my password and so I can not install. I get the username and password do not match message.
Serial number and activation support (non - CC) https://forums.adobe.com/thread/2041990 to adjust the number of activations
If the cat person sends you back to this open forum, you are out of luck... only Adobe can help, nobody here can access the activation server
-
I have been finding a way to 1 HOUR and cannot find a way to open the Add-ons that I downloaded. I want to open the Firefox Os 2.2 Simulator add-on - it its an addon pensionable and subject: addons it shows that information and etc, not just any button open or something, Please HELP me.
Hello Bluey656,
Your user watch agent you use Firefox 32, you may need to upgrade to version 33 using the topic: app-Manager page. At the bottom of the page should have a button Start Simulator .
If you have already done this, maybe you can post a screenshot, or give a little more description of what is happening?
If you need help to create a screenshot, please see How to make a screenshot of my problem?
Once you have done so, attach the file to screen shot saved to your post on the forum by clicking on the button Browse... under the box to post a reply . This will help us to visualize the problem.
-
I can't wipe my recovery on my laptop I want to sell it how.
Hello
There is none of your personal files on the recovery partition, because any change in the areas of recovery them immediately denies.
If you did the fresh install of factory (recovery re - install) the only things that could be there of yours is the username and password if you have created a. Assuming that you have not connected and use the internet, etc.
So who has re-insured you?
Maybe you are looking for
-
HORRIBLE 38.3.0! Problems with lightning (bug 1211291)
HelloThunderbird set itself updated 38.3.0 today and I have several questions: 1. When you have selected the Inbox, rather than see, the sender, the date sent etc. on the half top of the pane and the body of the email in the background, I see a page
-
My Favorites display on my desktop PC but not on my laptop
I use Mozilla to access my Yahoo email on my desktop computer. I also use Mozilla to access my Yahoo email on my laptop. But do not show the bookmarks I have on my desk on my laptop. How can I get to synchronize bookmarks?
-
Is there a way to download firefox for a USB key without the installation program, so I can install it on more than one PC?We use Oracle Forms in the House. No internet connection because it is safe from outside.Internet Explorer works well, if we wa
-
I have 2 different synchronization data
OK, I have 2 different synchronization data, one on my mac on my pc they are totally different, they have different 2 story etc... I was wondering if I sync two devices on one account will be the second unsynchronized data mmain be changed to main? o
-
Hello just unpacked my new z370 entered without bones. Just installed win7 Home premium and searched here full driver package... but there is only video drivers! can u tell me where I can find the full driver package? Thanks in advance XSnailX