Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / SWF links doesn't work on FF and IE

SWF links doesn't work on FF and IE

Views: 4,805

Results 1 to 20 of 20
1 Jul 2009, 9:49 PM
#1
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

SWF links doesn't work on FF and IE

Hi
I've searched through the forum and all this biiig topic about Flash header but i still can't figure out how to make my links getURL from the swf files to work on zencart.

Ive made the menu, the categories and a lot of others swf files with getURL action script links but it doesnt work. Either on FF or IE. :frusty:

I'm so frustrated. This is my first attempt to use zencart layout and i'm not doing any good.

Please, if theres any solution to this problem help me out!

All my getURL links are correct but still, no success. It simply doesn't do a thing.

My website: http://byavril.com/loja/
I'm modifying a template monster
And as i said, my first time on zencart.

Hope someone can help me out. :cry:

2 Jul 2009, 12:21 AM
#2
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

Check it out...

I got my flash buttons working on FF it appears...

On Safari the buttons won't work on the home page. Once you click a link then the buttons start to work. I don't understand why this can be.

I haven't tested this yet on IE...

Here is my AS3

INSTANCE.addEventListener(MouseEvent.CLICK, instanceClick );

function instanceClick (event:MouseEvent):void
{
var instanceGo:URLRequest = new URLRequest("http://mysite.com/index.php?main_page=xxx");
navigateToURL( instanceGo , "_self");
}

I put this on tpl_header.php

<object type="application/x-shockwave-flash" data="/images/swf/some_file.swf" width="750px" height="100px"> <param name="movie" value="/images/swf/some_file.swf" /> <param name="quality" value="high"><param name="BGCOLOR" value="#000000"> <param name="menu" value="false"> </object>

I am going to test this at work tommorow on IE. Is your coding similar to this... hopefully we can get this to work on all browsers.

2 Jul 2009, 12:48 AM
#3
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

For some weird reason (or maybe because im a noobie with no shame) the links started to work once i uploaded the swfobject.js file on the directory WITHOUT changing anything on the code. (its workin on ff, not sure on ie.)

But i figured out that it only works when i use the www. address, but NOT when i type the direct address without www. (i have no idea why this happens).

Anyone?:no:

2 Jul 2009, 12:50 AM
#4
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

cscuilla:

Check it out...

I got my flash buttons working on FF it appears...

On Safari the buttons won't work on the home page. Once you click a link then the buttons start to work. I don't understand why this can be.

I haven't tested this yet on IE...

Here is my AS3

INSTANCE.addEventListener(MouseEvent.CLICK, instanceClick );

function instanceClick (event:MouseEvent):void
{
var instanceGo:URLRequest = new URLRequest("http://mysite.com/index.php?main_page=xxx");
navigateToURL( instanceGo , "_self");
}

I put this on tpl_header.php

<object type="application/x-shockwave-flash" data="/images/swf/some_file.swf" width="750px" height="100px"> <param name="movie" value="/images/swf/some_file.swf" /> <param name="quality" value="high"><param name="BGCOLOR" value="#000000"> <param name="menu" value="false"> </object>

I am going to test this at work tommorow on IE. Is your coding similar to this... hopefully we can get this to work on all browsers.

Nope, i'm actually trying the swfobject.js right now.
Your code sounds nice, since its pretty easy to edit on flash. wayyy better for me than working with javascript (that i dont know much).

Thanks for that!
Gotta check it.

2 Jul 2009, 1:12 AM
#5
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

**cscuilla, ** is the AS3 code only that?
Im trying to use it but the flash keeps me giving this message as error:

1120: Access of undefined property byavrillogo.

where byavrillogo is the instance name of my button

2 Jul 2009, 1:18 AM
#6
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

road:

**cscuilla, ** is the AS3 code only that?
Im trying to use it but the flash keeps me giving this message as error:

1120: Access of undefined property byavrillogo.

where byavrillogo is the instance name of my button

Oh forget, i got it. :frusty:

2 Jul 2009, 1:21 AM
#7
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

the code has to be written on the keyframe of the instance. I think that is your problem.

2 Jul 2009, 1:22 AM
#8
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

also, dont capitalize INSTANCE in the code i used above

2 Jul 2009, 1:27 AM
#9
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

I see what your saying from above. The buttons only work without the "www" This does not make any since????

2 Jul 2009, 1:31 AM
#10
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

cscuilla:

also, dont capitalize INSTANCE in the code i used above

I dont get the error anymore, but it still doesnt work on the browser. no idea why

2 Jul 2009, 1:32 AM
#11
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

cscuilla:

I see what your saying from above. The buttons only work without the "www" This does not make any since????

Using the java, i can only make it work with the www. And cant make it work with your code, for some weirdo reason :no:

2 Jul 2009, 1:36 AM
#12
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

your buttons work when you type the "www" and my butons work without it.

http://cashedoutentertainment.com/index.php

2 Jul 2009, 1:45 AM
#13
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

Whats your Object Tag look like

2 Jul 2009, 2:03 AM
#14
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

That's so weird!
I cant find a way to make it work.

I'm still trying to make it work with the java. but no success so far.

It probably has something to do with the configure file. i think. because in mine the HTTP_ is without www on configure.php but i cant change it without having problems :(

2 Jul 2009, 2:27 AM
#15
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

yeah, when i change my configure to "www" then the flash buttons only work on "www" in the browser. if i take out the "www" on configure then the buttons only work without "www" in the browser.

Or, if I change the "data and value" in my object tag from "/images/swf/some_file.swf" to "http://www.mysite/images/swf/some_file.swf" i get the same result.

I cant figure out a way to have the button work both ways.

What i am going to do is leave mine so that they work only without the "www" and redirect "www.mysite.com" to "http://mysite.com".

2 Jul 2009, 2:36 AM
#16
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

cscuilla:

yeah, when i change my configure to "www" then the flash buttons only work on "www" in the browser. if i take out the "www" on configure then the buttons only work without "www" in the browser.

Or, if I change the "data and value" in my object tag from "/images/swf/some_file.swf" to "http://www.mysite/images/swf/some_file.swf" i get the same result.

I cant figure out a way to have the button work both ways.

What i am going to do is leave mine so that they work only without the "www" and redirect "www.mysite.com" to "http://mysite.com".

Thats a good idea. Do you think i can redirect the http://mysite.com to www ? any idea how?

hey but wait, when someone clicks a link thats not with www it will enter again at the no www site, so all the links will not work again.
for you, the same, but reverse :no:

2 Jul 2009, 12:15 PM
#17
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

You have to get your's to work in reverse like mine. See, because all the zen links point to non "www" and all the buttons i made point to non "www" so if i can just redirect users that happen to type in "www.mysite.com" to "http://mysite.com" it seems my issue will be solved, as the user will never be directed to a "www" page...

In your case, you will have to get your buttons to work on non "www" pages instead it seems. I don't mess with java so can't be much help im afraid...

3 Jul 2009, 5:10 PM
#18
cscuilla avatar

cscuilla

New Zenner

Join Date:
Jun 2009
Location:
FLA
Posts:
34
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

Check It...

I got my site to function it appears. The flash buttons only work without the "www" so i set a redirect, so even when they go here:

http://www.cashedoutentertainment.com

they are redirected to the site with working buttons without the "www" and all my links and zen links point to non "www" sites so i am in the clear.

Let me know if you still need help with this.

6 Jul 2009, 4:13 PM
#19
road avatar

road

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

Yea it works!
Im going to do the same. :)
Thanks for the idea ;)

1 Jun 2011, 5:50 PM
#20
mcanous avatar

mcanous

New Zenner

Join Date:
Jun 2011
Posts:
1
Plugin Contributions:
0

Re: SWF links doesn't work on FF and IE

Hello everyone, I have this code for action scrip 3, I can get the flash clickable in firefox but not in internet explorer, what am I doing wrong

code:

button_1.addEventListener(MouseEvent.CLICK, gotoUrl);

function gotoUrl(ev:MouseEvent):void
{
var url:String = "http://www.fullcarelawncare.com/full-quote/";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
}
}

thankyou