actionscript 3 - How to make my flash button (embedded in html code) to open a link? -


i'm trying play flash file through html. button in flash supposed open webpage doesn't open when try through browser. buttons work fine when test them in flash. html code uses .swf file.

</div> <div class="bodytext">  <object width="800px" height="400px" data="c:\users\me\documents\adobeflash\tulsi\algo-              mainmenu.swf"></object> </div> <br/> 

the action script button flash file below:

button_1.addeventlistener(mouseevent.click, fl_clicktogotowebpage);   function fl_clicktogotowebpage(event:mouseevent):void { navigatetourl(new urlrequest("http://www.adobe.com"), "_self"); } 

i faced same problem, , figured out problem .swf file itself. flash allows network publish settings .swf versions. changed settings this:

file -> publish settings -> [flash .swf] -> local playback security - access network only


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -