From: Ray C. <rc...@gm...> - 2006-09-07 12:10:02
|
Hi, either start the application (1) or force the creation of movieclips (2). (1) // create your views __and__ their parent windows NSApplication.sharedApplication().run(); (2) // do this after creation and initialization var wnd:NSWindow = (new NSWindow()).initWithContentRect(myView.frame()); wnd.setContentView(myView); wnd.display(); //continue with drawing... You must always attach a view to a window. See http://osflash.org/actionstep/documentation/views#hierarchy for more details. On 9/7/06, Ewan McDougall <mr...@mr...> wrote: > Hello, > > I was hoping to draw in a NSView e.g. > > var myView:NSView = (new NSView).initWithFrame(new NSRect(0,0,40,40)); > myView.graphics().drawRectWithRect(new NSRect(0,0,300,200), new > NSColor(0x008888), 2); > > Unfortuantly the MyView member m_mc is undefined. Do I need to > explicity set this using > > myView.graphics().setClip(myMovieClip); > > If so what is the best way to create myMovieClip? > > Cheers, > > Ewan > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > -- Cheers, Ray Chuan |