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

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -