Hi,

The onLoadComplete event is fired when the asset is loaded, but to be sure you can interact with the asset you need to wait for the onLoadInit event - this is fired after the first frame actions have completed for a SWF - you can't access properties of movieclips and things until it is "init'd". This may avoid you having to add the function on every frame trick - you can load an XML index with a list of images, then load up the images you want in turn with MovieClipLoader or something else - see below.

   Not sure about fscommand - I have avoided it so far :)

With regards to loading vs DVD speed, I would recommend some kind of predictive preloading of stuff here - for example, if you have a number of animations, flv's, things that take a few seconds to watch, you could use that time to preload stuff to be watched afterwards. There are a few readymade AS2 scripts out there that can help with this I had originally rolled my own, but the Greensock one looks quite robust and is probably quite easy to get the hang of (TweenLite is a dream to use, so going on that...) http://blog.greensock.com/preloadassetmanageras2/

I have never experienced problems with I/O on DVD's - this is possibly a bit of an oversight, but my personal opinion is that if people can't look after their toys, then tough - if you scratch it, you may break it - testing the "master" DVD is as far as I go....

   Hope this helps a bit.

   Glen

Alfred Hess wrote:
Gentlemen

Thanks for your prompt and detailed response. I will be definitely use the info 
you sent me about the stub projector and the autorun instructions.

I am glad that people have had some success using this technology.

Some one was asking about fscommand.

I am using it to disallow scaling and to disable the menus,

It works but I am using actionscript 2.0. in CS3.

I did have some weird effects where the fscommands for
disabling scaling and disabling the menu were turning each other off.

I had to put the commands on separate frames of a movie clip and run one of 
them twice to get it to work.

Has any body done any kind of I/O error checking when using DVDs?

Is there some kind of try catch thing to put the program in a Known state if 
the users DVD fails to load fast enough?

I have some slide shows with a lot of photos that I am loading as swfs.

If the DVD is slow the user can click through to the next photo before the last 
one has been viewed.

At first I thought I could rely on the onLoad complete event.
However, it appears as though flash thinks the swf is "loaded"
instantly because it exists on the directory of the DVD.

However, it is not in the cache so it is slow to respond.

I ended up putting a little function call on every frame of the loaded swf. 
This function tells the projector that the frame has been loaded and enables 
the next picture button.

It seems really brute force but it is the only thing I could think of.

Thanks Again for your detailed reply.

Thanks
Alfred

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to