Cheers, you were absolutely right. I'd written it in the Flash IDE
initially. Then when I wanted to use a preloader I rewrote it as a
class. Flash timeline is more forgiving that classes!!

Anyway, for anyone that is interested I resolved my initial problem
(making a preloader for a standalone Swf that has embedded MD2's,
textures etc - which results in Frame one being crammed full of stuff,
which then mucks up your preloader!)
I used a preloader template that comes with FlashDevelop. This has
some compile options that cleverly pushes your class document onto
Frame two and leaves Frame one for you preloader. Works a treat!

If anyone is interesting in seeing a dancing turle Md2 complete with
preloader:
http://dapdap.deviantart.com/art/dancing-3D-disco-turtle-153747962

Cheers everyone for your help!

D

On Feb 11, 7:53 pm, crom <[email protected]> wrote:
> 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 ....

Reply via email to