flash banner issue

Permalink
hi, i actually hard code and put in a flash banner inside the theme that i purchase.
the flash banner work fine in home page but not in other pages.
but if i get in other page from the sitemap in dashboard. the flash banner works!

lets say if i get in the page using the nav menu. It link it to here.
http://www.sorrentowhitsunday.com/index.php/about/...

the flash banner doesn't work.
if from the site map. The link become:

http://www.sorrentowhitsunday.com/index.php?cID=71...

then it's working well.

Is anyone could kindly help me out..
I will be really appreciated!!
thanks

 
jbx replied on at Permalink Reply
jbx
Well, when the flash banner fails, the error it kicks out on screet (very beriefly) is NaN, which mean Not a Number.

If I had to guess, I would say it is trying to find out what page it is on by looking at the cID of the page from the URL. So it works with ?cID=71, but fails with /about.

Can't say for sure without knowing more about the flash banner though. Are you passing any information to the script?

Jon
curiousconcepts replied on at Permalink Reply
the swf actually gonna call in a jpg from the same folder.. so the NaN probably mean can't load the image.
jbx replied on at Permalink Reply
jbx
ahhh, ok - from the same folder? Well, if it is using a relative path of some kind, then in your first example it may be trying to look insidewww.www.sorrentowhitsunday.com/index.php/about/... for the folder. That would be worth looking into...

Jon
jordanlev replied on at Permalink Best Answer Reply
jordanlev
jbx is correct -- the swf is probably using a relative path for the image.

Do you have any control over the code in the SWF file? Or can you pass in image paths via flashvars or something like that? You will need to have it use an absolute path (one that starts with a slash, for example "/images/myimage.jpg" instead of "images/myimage.jpg") -- either by changing the code in the swf or by passing it in correctly when you load it.
curiousconcepts replied on at Permalink Reply
solve it! just add in the "/"in the path and working well! thank you Jon and Jordan! you guys save my day seriously really appreciate it!

John