stage disappearing as in no reference to the stage?
if so, i suggest you init your 3dsetup after you are sure it has been
added to stage:
addEventListener(Event.ADDED_TO_STAGE, init);
function init(e:Event):void{
//init away3d etc.
}
like this away should get the stage reference
grts
On Feb 11, 3:11 am, dapdap <[email protected]> wrote:
> PNGs sound like an interesting idea that I haven't come across before
> (I'm new to Away) - might look into it if I can get things working ...
> Cheers D
>
> On Feb 11, 1:23 am, Makc <[email protected]> wrote:
>
>
>
> > In old good days of CS3 [Embed()] did not work (wow, does it now?) so
> > people used to encode binary resources as loseless PNGs, and those
> > could be placed on any frame too.
>
> > On Wed, Feb 10, 2010 at 7:32 AM, dapdap <[email protected]> wrote:
> > > Hi Peeps,
>
> > > I've written an Away3d program that basically displays an animated MD2
> > > character.
> > > It all works fine.
> > > But I'm having problems with the preloader.
> > > The code is written on the timeline in Flash CS4.
> > > The code for the Away3d bit is on Frame 2 and the preloader is on
> > > Frame 1.
> > > I've embedded the md2 model and texture
> > > ([Embed(source="embedded ...application/octet-stream")] ...etc) so
> > > that everything is contained in the swf.
> > > Nothing in my library is linked for export.
> > > What I'm finding is that the preloader only appears when about 90% of
> > > the bytesloaded are ... loaded.
>
> > > I'm guessing that the embedded files are the first thing that are
> > > loaded before the preloader has a chance to kick in?
> > > Is there anyway of intercepting/reading the 'load' process with
> > > embedded files?
>
> > > Anyway, I've had a good look on this site and on the net but at
> > > present I'm stuck.
>
> > > If anyone could point me in the right direction I'd be really very
> > > happy.
>
> > > Cheers ....