Re: [flexcoders] Re: NativeWindow Error

2008-05-27 Thread Josh McDonald
Mike, in builder if you get an error like that , move the cursor to the end
of the offending keyword, like so:

private var nw1:NativeWindow;

Ant hit ctrl-space, and usually the auto-complete will help you out with
your import.

-J

On Wed, May 28, 2008 at 11:50 AM, ibdwalrus <[EMAIL PROTECTED]> wrote:

>   --- In flexcoders@yahoogroups.com , "Tim
> Hoff" <[EMAIL PROTECTED]> wrote:
> >
> > wtf, meant to say import statement.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com , "Tim
> Hoff"  wrote:
> > >
> > > Hi Mike,
> > >
> > > You're going to have to add an insert statement for the class:
> > >
> > > import flash.display.NativeWindow;
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "ibdwalrus"  wrote:
> > > >
> > > > I'm working through Rich Tretola's Beginning Adobe AIR book and
> > I'm
> > > > stuck on the first NativeWindow example. The first variable
> > > declaration
> > > > in the script block
> > > >
> > > > private var nw1:NativeWindow;
> > > >
> > > > is throwing the error 1046: Type was not found or was not a
> > compile-
> > > time
> > > > constant: NativeWindow.
> > > >
> > > > The code so far is this:
> > > >
> > > > 
> > > > http://www.adobe.com/2006/mxml";
> > > > layout="absolute">
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > What am I missing?
> > > >
> > > > Thanks,
> > > > Mike
> > > >
> > >
> >
> Thanks so much, Tim. That worked like a champ. It looks like the
> publisher just failed to include that line in the example code.
> What's funny is that I misread the typo in your original post as
> "import" and corrected the problem before reading your second post
> correcting it. :)
>
> I appreciate your taking the time to help me.
>
> Regards,
>
> Mike
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: NativeWindow Error

2008-05-27 Thread Maciek
Actually, it's fairly common to leave out import statements in
programming book examples to save space. Just FYI, since you'll probably
run into this again.

-Maciek


On Wed, 2008-05-28 at 01:50 +, ibdwalrus wrote:
> --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
> >
> > wtf, meant to say import statement.
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> > >
> > > Hi Mike,
> > > 
> > > You're going to have to add an insert statement for the class:
> > > 
> > > import flash.display.NativeWindow;
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com, "ibdwalrus"  wrote:
> > > >
> > > > I'm working through Rich Tretola's Beginning Adobe AIR book and 
> > I'm
> > > > stuck on the first NativeWindow example. The first variable 
> > > declaration
> > > > in the script block
> > > > 
> > > > private var nw1:NativeWindow;
> > > > 
> > > > is throwing the error 1046: Type was not found or was not a 
> > compile-
> > > time
> > > > constant: NativeWindow.
> > > > 
> > > > The code so far is this:
> > > > 
> > > > 
> > > >  xmlns:mx="http://www.adobe.com/2006/mxml";
> > > > layout="absolute">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > What am I missing?
> > > > 
> > > > Thanks,
> > > > Mike
> > > >
> > >
> >
> Thanks so much, Tim. That worked like a champ. It looks like the
> publisher just failed to include that line in the example code. 
> What's funny is that I misread the typo in your original post as
> "import" and corrected the problem before reading your second post
> correcting it. :)
> 
> I appreciate your taking the time to help me.
> 
> Regards,
> 
> Mike
> 
> 
> 
> 
>