Create a Class for AmlakPanel instead of letting Flash generate it may help
you get a little further in debugging

On Sun, Mar 16, 2008 at 9:20 PM, Andrei Thomaz <[EMAIL PROTECTED]>
wrote:

> hello Omar,
>
> I'm developing a graphical editor for e-learning content using AIR. The
> Document Class works fine for me. The only problem I had was that I had to
> make it extend MovieClip, and put a "stop()" in its first frame. You have
> to
> use a stop(), or else your app will "flash" indefinetely. While I was
> testing it inside Flash, the document class extended Sprite and everything
> worked. But, when I tryed the real application (installing the AIR file),
> it
> didn't work.
>
> I don't think you need to create an instance of your Document Class.
> Something is wrong in your code or your .fla
>
> Put a stop() in the first frame of you app, and give a feedback for us.
>
>
> good luck,
> andrei
>
>
>
> On Sun, Mar 16, 2008 at 9:39 PM, Omar Fouad <[EMAIL PROTECTED]>
> wrote:
>
> > So,
> > I am trying to do an application in Air with Flash CS3. I can't deny, I
> am
> > starting to hate AS3!
> >
> > First of all, The document class technique (wich lets you set the name
> of
> > the starting class in the Document Class Text field) is not working
> while
> > developing in AIR. It only works in an actionscript 3.0 application.
> > Allright fine, I could manage in calling the class from the first frame
> >
> > var Application:Amlak = new Amlak();
> >
> > this way...
> >
> > And note that I have a movieClip in the Fla library which has a Class
> Name
> > "AmlakPanel", to be added to the stage later on runtime.
> >
> > in the Amlak.as class :
> >
> > package {
> >
> >    import flash.display.*;
> >
> >    public class Amlak extends Sprite {
> >
> >        public function Amlak():void {
> >            trace("Starting Application");// traces like a charm!!!
> >            var a = new AmlakPanel();
> >            addChild(a); //this does not happen !!! GRRRR!!!
> >
> >        }
> >    }
> > }
> >
> > Why... Why and Why!!!???? :(
> >
> >
> >
> > --
> > Omar M. Fouad - Digital Emotions
> > http://www.omarfouad.net
> >
> > This e-mail and any attachment is for authorised use by the intended
> > recipient(s) only. It may contain proprietary material, confidential
> > information and/or be subject to legal privilege. It should not be
> copied,
> > disclosed to, retained or used by, any other party. If you are not an
> > intended recipient then please promptly delete this e-mail and any
> > attachment and all copies and inform the sender. Thank you.
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to