List Info

Thread: swfobject_js_gateway problem




swfobject_js_gateway problem
user name
2006-10-16 02:25:35
Hi,

I am trying to call an actionscript function from my html page. It is an open source audio mp3 player. The issue I am having is that I cannot open the .fla files (using flash MX2004) and am concerned I need to publish the .swfs and add some code to my .fla for this to work.

Am I right in thinking it is not simply a case of adding the swfobject_js_gateway.js and swfobject_js_gateway.swf to my root directory and then adding the code as per the example html page?

Have a feeling it is not that simple... but without viewing the fla files I cannot know for sure. Currently I am getting no errors but the function isn't getting called.

Any help would be much appreciated, it is the last thing I am doing on the project!

I can send out a link to my html source code, if that might help?

Many thanks,

Chris
swfobject_js_gateway problem
user name
2006-10-16 05:25:53
Quick update (sorry to spam the mailing list but I've had a bit of a breakthrough).

I've worked out with a combination of the swfobject gateway download and the flash-javascript documents the correct script to add and guess what... it works!

BUT... in IE on windows only one time?! each time you load the page.

The easiest way to illustrate what I mean is by posting the link:

http://www.rekids.com/records.htm (my brothers record label).

On my mac it works beautifully, loading the songs into the mp3 player each time you click on a track. BUT in IE it seems to only call the function once, then stops changing track.

Very annoying because I thought I had cracked it!

This small piece of help would mean a great deal to me - now I am completely stumped.

thanks again,

Chris



On 10/16/06, Chris Masters < chrismastersgmail.com">chrismastersgmail.com> wrote:
Hi,

I am trying to call an actionscript function from my html page. It is an open source audio mp3 player. The issue I am having is that I cannot open the .fla files (using flash MX2004) and am concerned I need to publish the .swfs and add some code to my .fla for this to work.

Am I right in thinking it is not simply a case of adding the swfobject_js_gateway.js and swfobject_js_gateway.swf to my root directory and then adding the code as per the example html page?

Have a feeling it is not that simple... but without viewing the fla files I cannot know for sure. Currently I am getting no errors but the function isn't getting called.

Any help would be much appreciated, it is the last thing I am doing on the project!

I can send out a link to my html source code, if that might help?

Many thanks,

Chris

swfobject_js_gateway problem
user name
2006-10-16 06:10:25
Hey Chris,

If you refer to the above thread with 'Internet Explorer 6
and Up... 
Just ain't working for me', you'll find a new download
there.  I used 
those files, what seems to be the most recent, and managed
to get my mp3 
player working on all browsers, mac and pc.

Cheers,

Justin

Chris Masters wrote:
> Quick update (sorry to spam the mailing list but I've
had a bit of a 
> breakthrough).
>
> I've worked out with a combination of the swfobject
gateway download 
> and the flash-javascript documents the correct script
to add and guess 
> what... it works!
>
> BUT... in IE on windows only one time?! each time you
load the page.
>
> The easiest way to illustrate what I mean is by posting
the link:
>
> http://www.rekids.c
om/records.htm <http://www.reki
ds.com/records.htm> 
> (my brothers record label).
>
> On my mac it works beautifully, loading the songs into
the mp3 player 
> each time you click on a track. BUT in IE it seems to
only call the 
> function once, then stops changing track.
>
> Very annoying because I thought I had cracked it!
>
> This small piece of help would mean a great deal to me
- now I am 
> completely stumped.
>
> thanks again,
>
> Chris
>
>
>
> On 10/16/06, *Chris Masters* <chrismastersgmail.com

> <mailto:chrismastersgmail.com>> wrote:
>
>     Hi,
>
>     I am trying to call an actionscript function from
my html page. It
>     is an open source audio mp3 player. The issue I am
having is that
>     I cannot open the .fla files (using flash MX2004)
and am concerned
>     I need to publish the .swfs and add some code to my
.fla for this
>     to work.
>
>     Am I right in thinking it is not simply a case of
adding the
>     swfobject_js_gateway.js and
swfobject_js_gateway.swf to my root
>     directory and then adding the code as per the
example html page?
>
>     Have a feeling it is not that simple... but without
viewing the
>     fla files I cannot know for sure. Currently I am
getting no errors
>     but the function isn't getting called.
>
>     Any help would be much appreciated, it is the last
thing I am
>     doing on the project!
>
>     I can send out a link to my html source code, if
that might help?
>
>     Many thanks,
>
>     Chris
>
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> Flashjs mailing list
> Flashjsosflash.org
> http://osflash.org/mailman/listinfo/flashjs_osflash.org
>   


_______________________________________________
Flashjs mailing list
Flashjsosflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org
swfobject_js_gateway problem
user name
2006-10-16 20:08:31
Hi Justin,

Thanks for replying.

Unfortunately I still get an issue that the function call only works once in IE each time the page loads. Can't understand why.

I compiled the swfobject_js_gateway.swf succesfully and added that and the two .js files to the root of my server.

I've also added these two lines to my flash file:
import com.macromedia.javascript.JavaScriptProxy;
var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);

and compiled that succesfully.

to embed the swf i used this...
&nbsp; &nbsp;  &nbsp;   &nbsp;  <script type=";text/javascript">
   ;  &nbsp;   &nbsp;   &nbsp;  // <![CDATA[
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  ao = new SWFObject("audioplayer.swf&quot;, "audio", "400&quot;, "15&quot;, "7&quot;, "#FFFFFF");
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  ao.addVariable("playlist_url", "rekids.xspf&quot;);
   ;  &nbsp;   &nbsp;   &nbsp;   &nbsp;  ao.addVariable("autoplay&quot;, "true");
&nbsp; &nbsp;  &nbsp;   &nbsp;   &nbsp;   &nbsp;  ao.addVariable("repeat_playlist", "true");
&nbsp;    &nbsp;   &nbsp;   &nbsp;   &nbsp;  ao.setProxy(null, 'swfobject_js_gateway.swf')
&nbsp; &nbsp;  &nbsp;  ao.write(&quot;audioplayer");
 &nbsp;   &nbsp;   &nbsp;   &nbsp;  // ]]>
&nbsp; &nbsp;  &nbsp;   &nbsp;  </script>

In firefox etc it seems to work fine calling the functions as many times as I like by adding this to the link...

<a href=";javascript:void(0)&quot; onclick=&quot;ao.call('goTrack', 6);"&gt;trackname</a>

But in IE only once... you can see the live page here: http://www.rekids.com/records.htm

If anyone can shed some light on this behaviour much appreciated.

I am considering using flash 8 and liveconnection, but would much prefer to publish to 7 still if possible.

Thanks again,

Chris




On 10/16/06, Justin Hewitt < justinjustinhewitt.com">justinjustinhewitt.com> wrote:
Hey Chris,

If you refer to the above thread with 'Internet Explorer 6 and Up...
Just ain't working for me', you'll find a new download there.&nbsp; I used
those files, what seems to be the most recent, and managed to get my mp3
player working on all browsers, mac and pc.

Cheers,

Justin

Chris Masters wrote:
>; Quick update (sorry to spam the mailing list but I've had a bit of a
> breakthrough).
>
&gt; I've worked out with a combination of the swfobject gateway download
&gt; and the flash-javascript documents the correct script to add and guess
>; what... it works!
>;
> BUT... in IE on windows only one time?! each time you load the page.
>
> The easiest way to illustrate what I mean is by posting the link:
>
> http://www.rekids.com/records.htm <http://www.rekids.com/records.htm>
> (my brothers record label).
&gt;
> On my mac it works beautifully, loading the songs into the mp3 player
&gt; each time you click on a track. BUT in IE it seems to only call the
> function once, then stops changing track.
>;
> Very annoying because I thought I had cracked it!
>
&gt; This small piece of help would mean a great deal to me - now I am
> completely stumped.
&gt;
> thanks again,
>;
> Chris
>
>
>
> On 10/16/06, *Chris Masters* < chrismastersgmail.com">chrismastersgmail.com
> <mailto: chrismastersgmail.com">chrismastersgmail.com>> wrote:
>;
; &nbsp;  Hi,
>
&gt; &nbsp; &nbsp; I am trying to call an actionscript function from my html page. It
>&nbsp; &nbsp;  is an open source audio mp3 player. The issue I am having is that
>  ; &nbsp; I cannot open the .fla files (using flash MX2004) and am concerned
> &nbsp;   I need to publish the .swfs and add some code to my .fla for this
>&nbsp;   ; to work.
>
  ;  Am I right in thinking it is not simply a case of adding the
>&nbsp;   ; swfobject_js_gateway.js and swfobject_js_gateway.swf to my root
>&nbsp;   ; directory and then adding the code as per the example html page?
>
  ;  Have a feeling it is not that simple... but without viewing the
>&nbsp;   ; fla files I cannot know for sure. Currently I am getting no errors
>; &nbsp; &nbsp; but the function isn't getting called.
&gt;
>&nbsp; &nbsp;  Any help would be much appreciated, it is the last thing I am
>&nbsp; &nbsp;  doing on the project!
>
>&nbsp; &nbsp;  I can send out a link to my html source code, if that might help?
>
  ;  Many thanks,
&gt;
>&nbsp; &nbsp;  Chris
>
>
> ------------------------------------------------------------------------
&gt;
> _______________________________________________
> Flashjs mailing list
> Flashjsosflash.org">Flashjsosflash.org
> http://osflash.org/mailman/listinfo/flashjs_osflash.org
>


_______________________________________________
Flashjs mailing list
Flashjsosflash.org">Flashjsosflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org

swfobject_js_gateway problem
user name
2006-10-17 03:41:40
Hey Chris,

I have no idea in the foggiest, but my perfectly working application, tested numerous times in all browsers on both PC and Mac, is now doing what yours does.

Very very very strange.

So, I’m working on this now, and I hope I can come with something that will help us both.

Cheers,

Justin


On 10/16/06 1:08 PM, "Chris Masters&quot; <chrismastersgmail.com&gt; wrote:

Hi Justin,

Thanks for replying.

Unfortunately I still get an issue that the function call only works once in IE each time the page loads. Can't understand why.

I compiled the swfobject_js_gateway.swf succesfully and added that and the two .js files to the root of my server.

I've also added these two lines to my flash file:
import com.macromedia.javascript.JavaScriptProxy;
var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this);

and compiled that succesfully.

to embed the swf i used this...
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;<script type=";text/javascript">
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;// <![CDATA[
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;ao = new SWFObject("audioplayer.swf&quot;, "audio", "400&quot;, "15&quot;, "7&quot;, "#FFFFFF");
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;ao.addVariable(";playlist_url", "rekids.xspf&quot;);
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;ao.addVariable(&quot;autoplay", "true");
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; ao.addVariable("repeat_playlist", "true");
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;ao.setProxy(null, 'swfobject_js_gateway.swf')
&nbsp; &nbsp; &nbsp;   ;ao.write(&quot;audioplayer");
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;// ]]>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;</script>

In firefox etc it seems to work fine calling the functions as many times as I like by adding this to the link...

<a href=";javascript:void(0)&quot; onclick=&quot;ao.call('goTrack', 6);"&gt;trackname</a>

But in IE only once... you can see the live page here: http://www.rekids.com/records.htm

If anyone can shed some light on this behaviour much appreciated.

I am considering using flash 8 and liveconnection, but would much prefer to publish to 7 still if possible.

Thanks again,

Chris




On 10/16/06, Justin Hewitt <justinjustinhewitt.com> wrote:
Hey Chris,

If you refer to the above thread with 'Internet Explorer 6 and Up...
Just ain't working for me', you'll find a new download there.  I used
those files, what seems to be the most recent, and managed to get my mp3
player working on all browsers, mac and pc.

Cheers,

Justin

Chris Masters wrote:
&gt; Quick update (sorry to spam the mailing list but I've had a bit of a
> breakthrough).
>
> I've worked out with a combination of the swfobject gateway download
> and the flash-javascript documents the correct script to add and guess
> what... it works!
&gt;
> BUT... in IE on windows only one time?! each time you load the page.
>;
> The easiest way to illustrate what I mean is by posting the link:
>;
> http://www.rekids.com/records.htm <http://www.rekids.com/records.htm>
> (my brothers record label).
&gt;
> On my mac it works beautifully, loading the songs into the mp3 player
> each time you click on a track. BUT in IE it seems to only call the
> function once, then stops changing track.
&gt;
> Very annoying because I thought I had cracked it!
>
> This small piece of help would mean a great deal to me - now I am
> completely stumped.
>
> thanks again,
&gt;
> Chris
>;
>
&gt;
> On 10/16/06, *Chris Masters* <chrismastersgmail.com
> chrismastersgmail.com"><mailto: chrismastersgmail.com&gt;> wrote:
&gt;
>  &nbsp; &nbsp;Hi,
>;
>  &nbsp; &nbsp;I am trying to call an actionscript function from my html page. It
>  &nbsp; &nbsp;is an open source audio mp3 player. The issue I am having is that
>  &nbsp; &nbsp;I cannot open the .fla files (using flash MX2004) and am concerned
>  &nbsp; &nbsp;I need to publish the .swfs and add some code to my .fla for this
>  &nbsp; &nbsp;to work.
>;
>  &nbsp; &nbsp;Am I right in thinking it is not simply a case of adding the
>  &nbsp; &nbsp;swfobject_js_gateway.js and swfobject_js_gateway.swf to my root
>  &nbsp; &nbsp;directory and then adding the code as per the example html page?
>;
>  &nbsp; &nbsp;Have a feeling it is not that simple... but without viewing the
>  &nbsp; &nbsp;fla files I cannot know for sure. Currently I am getting no errors
&gt;  &nbsp; &nbsp;but the function isn't getting called.
&gt;
>  &nbsp; &nbsp;Any help would be much appreciated, it is the last thing I am
>  &nbsp; &nbsp;doing on the project!
>
&gt;  &nbsp; &nbsp;I can send out a link to my html source code, if that might help?
>;
>  &nbsp; &nbsp;Many thanks,
&gt;
>  &nbsp; &nbsp;Chris
&gt;
>
> ------------------------------------------------------------------------
>
&gt; _______________________________________________
> Flashjs mailing list
> Flashjsosflash.org
> http://osflash.org/mailman/listinfo/flashjs_osflash.org
>


_______________________________________________
Flashjs mailing list
Flashjsosflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org



_______________________________________________
Flashjs mailing list
Flashjsosflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )