Control the global sound in flash (AS2).
globalSound = new Sound( ); // Doesn't have a target, sets sound to main stage
globalSound .setVolume(0); // Used to control volume…
One I keep forgetting about!
Control the global sound in flash (AS2).
globalSound = new Sound( ); // Doesn't have a target, sets sound to main stage
globalSound .setVolume(0); // Used to control volume…
One I keep forgetting about!
Tags: actionscript 2, as2, control, flash, global, setVolume, sound | Comments (0)
Using the flash.js javascript file in the head of your document.
<script language="JavaScript" type="text/JavaScript" src="flash.js"></script>
In the body of your document use:
<script type="text/javascript">
FlashMovie('flashfile.swf', '500', '300');
</script>
Set the dimensions to your current flash settings, where 500 is the width and 300 is the height.
Tags: embed, flash, html, insert, javascript, object, transparent | Comments (0)
Simple flash pre-loader actionscript 2 code
//Pre-Loader
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
if (myLoaded == myTotal) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
};
Tags: actionscript, flash, loader, pre | Comments (0)


