jgladden
12-04-2008, 06:10 PM
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;
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;