Forum Moderators: open

Message Too Old, No Replies

Compliance, Satay, and Flash 8

changes in flash 8 actionscript

         

Richard_N

8:57 am on Nov 13, 2005 (gmt 0)



We tend to just use the "standard" flash embed code when doing full flash websites and the "flash satay" method when embeding small idents on a page.

However I discovered last night flash 8 will not accept the standard acionscript, as used on #*$!.com which (I believe) pioneered this method.

The idea is to place the following actionscript on a single frame movie to call an external one which is also referenced in the XHTML (just google flash satay).

_root.loadMovie("movie.swf",0);

However this will not work in flash 8, which throws up an actionscript type mismatch error. You need to wrap a function round it and change the syntax to the following...


_root.onEnterFrame=function(){
loadMovie("pics.swf",0);
}

It now works as before, but this must be a quirk of flash 8 over MX2004

BlobFisk

12:19 pm on Nov 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interesting Richard - thanks for that!