|
SYS-CON.TV Webcasts
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Top Links You Must Click On
Flash 5 Flash Tips: onLoad Event Handler Not Working With loadMovie?
Guy Watson shares a few quick hints
By: Guy Watson
Aug. 17, 2005 09:30 AM
Tip #1: Neat Fix - onLoad Bug
GetRight is one of the most, if not the most popular download utility and this is the default behaviour of the program, of course these settings can be changed, by removing the hook for mp3 files but Flash alone cannot do this automatically for you, this is a manual process that viewers of your site will have follow if they want to listen to dynamically loaded sounds on your site... To fix the problem, I assume that by changing the file extension of your mp3 files to something which is not registered as a download hook in GetRight will do the trick, but of course, if GetRight actually checks the MIME -type of the file instead of using the files extension, then this will not solve the problem. Changing the mime-type is not only a complex process for novices, it will not solve the problem, because the Flash Player will not play the file if its MIME-type is not set to type mp3.
Tip #3: Stage.showMenu A boolean value is either true or false, 0 or 1, on or off, the Stage.showMenu value can either be true or false:
true - Show the menu on right-click Please bear in mind, that this isn not the answer to all our prayers, when you turn the right-click menu off, the 'About Flash 6 Player' and 'Settings' options are still displayed, so no, you cant 'fully' remove the right-click menu. The actionscript:
//turn off the right-click menu
Tip #4: System.security.allowDomain I have two movies, 'a.swf' and 'b.swf', 'a.swf' is located on www.flashguru.co.uk server and 'b.swf' is located on www.macromedia.com server, for 'a.swf' to be able to access the contents of 'b.swf', 'b.swf' has to make a call to the allowDomain command as follows: System.security.allowDomain("http://www.flashguru.co.uk"); The domain can be formatted in numerous ways, the same different formats that the loadVariables, loadVariablesNum, xml.load and loadvars.load methods accept: http://www.domain.com
http://domain.com You can pass multiple domains to the method as arguments. This method has been documented in the Macromedia Flash MX ActionScript Dictionary Errata (www.macromedia.com/support/flash/documentation/ flash_mx_errata/flash_mx_errata03.html).
Tip #5: Test Player - System Keys Reader Feedback: Page 1 of 1
Enterprise Open Source Magazine Latest Stories . . .
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||