| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
rather be programming
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
|
Attached is the same project as an AS Flash 8 and as Flash 9 (AS 2.0 / AS 3.0).
Could I please get some feedback from you guys as to the very best OO practice for making this simple little application. Thanks ![]() FLASH VERSION 8 fla: ActionScript Code:
classes ActionScript Code:
ActionScript Code:
FLASH VERSION 9 fla: ActionScript Code:
classes: ActionScript Code:
ActionScript Code:
XML FILE TO LOAD HTML Code:
<?xml version="1.0" encoding="iso-8859-1"?> <images> <url id="1">http://images.askmen.com/galleries/actress/courtney-cox/pictures/courtney-cox-picture-1.jpg</url> <url id="3">http://spoilerbuzz.com/wp-content/uploads/2006/12/courtneycox.jpg</url> <url id="2">http://i26.photobucket.com/albums/c139/denee34/courteney-cox-1280x960-16546.jpg</url> </images>
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
the type is sprite or movieclip depending on what it is.
never put code on a timeline, that is a bad practise. flash 9 you can assign a class to your stage, a much better approach. why do you create your loaders immediatly. if your xml changes you are fooked. wait till your xml loads and then loop through it and create what you need. personally i do not even think you need the loadimage class. you realise with your images you will need a server(s) policy file(s) |
|
|
|
|
|
|
|
|
#3 |
|
rather be programming
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
|
thanks hangalot!
![]() I made a new one, but I still have code on the timeline ![]()
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can anyone convert this Actionscript 2.0 code to Actionscript 3.0 code ? | ih32page | ActionScript 3.0 | 3 | 08-20-2007 01:44 AM |
| Importing flex project into flash project in flex builder 2 | devboy | Flex 2 & 3 | 1 | 05-14-2007 11:28 AM |
| How to convert AS 2.0 code to AS 3.0 | mohitjaitly | ActionScript 3.0 | 7 | 05-04-2007 10:20 AM |
| Loading AS 3.0 movie from AS 2.0 | leogesteira | ActionScript 3.0 | 1 | 03-15-2007 03:53 PM |
| Project Fallen Heroes | jor133d | General Chat | 1 | 08-22-2006 03:10 AM |