Groups | Blog | Home
all groups > macromedia players flash > january 2006 >

macromedia players flash : How to comunicate with Flash Player 8 animation per JS only OFF-LINe?


Bentley Wolfe: Adobe Support
1/18/2006 3:38:55 PM
[quoted text, click to view]

See this thread:
http://groups.google.com/group/macromedia.flash/browse_frm/thread/32f558095081fdc2/6e6e23c8f278f5f1?lnk=st&q=trust+group%3A*flash*+author%3ABentley+author%3AWolfe&rnum=1&hl=en#6e6e23c8f278f5f1

-- Regards,

Bentley Wolfe
Senior Escalation Engineer, Flash
matelko
1/18/2006 3:51:48 PM
I come from Slovakia. I have a problem with the Security in Flash Player 8.
I make my diploma work. I want to have it on CD and demonstrate on a PC, that
is not conect on Internet.
Because this I can not use the "Global Security Settings Panel" which is only
per Internet available.

I use the HTML , CSS and Javascript technologies only.
I want to have Flash object in HTML page. In tne text of the pages I want to
have a lot of links to a specifical frames of this Flash.

The Flash presentation -swf is attached as the object in HTML with name/id
cepel.
With this code: "javascript:window.document.cepel.GotoFrame(1);"
I want to see the second frame of this SWF Animation. (Zero is for to see the
first frame...)

Here is a bit of my code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=8,0,22,0" width="320" height="350" id="cepel">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="cepel.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed src="cepel.swf" swliveconnect="true" quality="high" bgcolor="#ffffff"
width="320" height="350" name="cepel" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>

<a href="javascript:window.document.cepel.GotoFrame(0);">start</a>
<a href="javascript:window.document.cepel.GotoFrame(1);">first frame</a>

It works on IE 6.0 sp1 with Flash Player 7 OK, but with Flash Player 8 it
doesn?t work corectly. I see only the flash animation, but the links to
specificial frames don?t work. I know, that my teachers are using Flash Player
8.
Online per internet it works with Flash Player 8 OK too, but off-line on my PC
only with Flash Player 7!!!
You can see a little part of my demonstration on WEB: www.peter.sbb.sk

I know, that the problem is with SECURITY in Flash Player 8.
Although I want to comunicate per JS with flash animation and no vice-versa.

I hope, that you understand my problem, when no, please contact me, I will
tell you more...

thanks, I hope You will help me.

a student of Biologie Peterko Drotik
matelko
1/19/2006 9:07:09 AM
Bentley

Thanks, but yuo really mean, that is it a normal way, how to do it?

Do you mean, that the old teachers understand it?
OK, when I make it so (for example an instalation packet) I don?t know, what
label have the theachers for CD-mechanic...D: or E: etc.
And when the system will be not on disk C:?

I don?t understand why the security rules are so wrong.
matelko
1/19/2006 9:30:53 AM
One man said me to write it in to flash as AS in one of layers:

import flash.external.*;
function funkcex(number) {
gotoAndStop(number);
}
ExternalInterface.addCallback("gotoframe", null, funkcex);

to permit this JS in HTML:
<a href="javascript:window.document.cepel.GotoFrame(1);">first frame</a>

(cepel is The ID/NAME of the OBJECT)

But it doesn?t work coretly in Flash Player 8. Can You help me ?!
By the way, I am not very good in working with Flash and in AS.
AddThis Social Bookmark Button