Okay,
I re-coded the thing from scratch, both with a separate player and with the working site, and mine works again.
Chris,
Start from scratch, work with a separate file setup, and go at it fresh. Copy and paste html markup and flash objects accordingly of course, and go at it again.
I duplicated his sample folder, re-wrote some html, and added the player etc. I217;m running the rest of my site with flash 7, but this concept with flash 6 - “If it ain’t broke, don’t fix it.” When compiling on my home machine, I made sure that the file permissions were setup properly (com folder and everything beneath), and then testing again on the net. IE seems that it can get finicky with this... But 95% of the time it works.
It could also be a cache thing, I’m not sure.
Good luck to you fellow flash/javascript coder.
Cheers,
Justin
On 10/16/06 8:41 PM, "Justin Hewitt" <justin justinhewitt.com> wrote:
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" <chrismasters gmail.com> 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...
<script type="text/javascript">
// <![CDATA[
ao = new SWFObject("audioplayer.swf", "audio", "400", "15", "7", "#FFFFFF");
ao.addVariable("playlist_url", "rekids.xspf");
ao.addVariable("autoplay", "true");
ao.addVariable("repeat_playlist", "true");
ao.setProxy(null, 'swfobject_js_gateway.swf')
ao.write("audioplayer");
// ]]>
</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)" onclick="ao.call('goTrack', 6);">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 <justin justinhewitt.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:
> 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 <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* <chrismasters gmail.com
> chrismasters gmail.com"><mailto: chrismasters gmail.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
> Flashjs osflash.org
> http://osflash.org/mailman/listinfo/flashjs_osflash.org
>
_______________________________________________
Flashjs mailing list
Flashjs osflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org
_______________________________________________
Flashjs mailing list
Flashjs osflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org
_______________________________________________
Flashjs mailing list
Flashjs osflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org
|