| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Dec 2008
Posts: 1
|
I am using MVC (similar to Moock's Clock Example). In my view class I want to load an image based on a url passed in from my model. However if I try to declare a private var loader:Loader variable to load the image, I receive an error.
Any suggestions on how to fix this? Or more specifically why the error in the first place? Example view code: package shoegallery { import shoegallery.*; import mvc.*; import flash.events.*; import flash.net.URLRequest; import flash.events.MouseEvent; import flash.display.MovieClip; /** * Creates a user interface that can control a ShoeGalleryModel. */ class ShoeGalleryView extends AbstractView { private var loader:Loader; |
|
|
|
|
|
#2 |
|
as[org].addListener(this)
Join Date: Dec 2005
Location: LA, California
Posts: 838
|
You need to import the Loader...
import flash.display.Loader; |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Temp.as Error - One for the Archives | jollyork | ActionScript 3.0 | 1 | 11-18-2008 07:58 PM |
| Odd E4X Error in Parsing | josh.e.stroud | ActionScript 3.0 | 1 | 02-26-2008 12:03 PM |
| Error opening URL help | den_m | ActionScript 2.0 | 10 | 03-28-2007 05:07 PM |
| Model View Controller | compuboy1010 | ActionScript 2.0 | 0 | 07-14-2006 11:16 AM |
| check if text fields are empty and display error | beccasaur | ActionScript 2.0 | 5 | 08-31-2004 07:31 PM |