Note that there are some explanatory texts on larger screens.

plurals
  1. POFlash player doesn't allow script
    primarykey
    data
    text
    <p>I am a little new to flash and ActionScript and I have this persistent problem with security I think.</p> <p>The problem is that. I try to use code for a button in ActionScript 2.0 (i must use 2.0)</p> <pre><code>on(rollOver) { getURL("javascript:someFunction();","_self"); } </code></pre> <p>This code is supposed to work, it worked for other people =) </p> <p>Before you say that i am placing it in some wrong place. I place it in the button. Moreover it does work fine, when i try the movie in Flash CS5, using CTRL + ENTER. But when i embed my .swf I get a message something like</p> <pre><code>the aplication is trying to access page...see parameters for flash player </code></pre> <p>Sorry for a bad translation.</p> <p>I also tried this code:</p> <pre><code>on(rollOver) { getURL("http://www.something.com","_self"); } </code></pre> <p>and it worked.</p> <p>the embed code:</p> <pre><code> &lt;object width="100%" height="60"&gt; &lt;PARAM NAME="quality" VALUE="high"&gt; &lt;PARAM NAME="wmode" VALUE="opaque" &gt; &lt;PARAM name="AllowScriptAccess" VALUE="always" &gt; &lt;EMBED src="small.swf" width="100%" height="60" wmode="opaque" quality="high" AllowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"&gt; &lt;/EMBED&gt; &lt;noembed&gt;&lt;/noembed&gt; &lt;/OBJECT&gt; </code></pre> <p>I should add, that I don't have any power over where the swf file is going to be hosted or anuthing of the sort. It really is not my swf file. All i can do is manipulate it via JAVASCRIPT and for that, I need to get the exact code to work. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload