STILL Need help getting flash banners working on my web page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Holymonkey
Forum Newbie
Posts: 2
Joined: Tue Apr 07, 2009 10:59 am

STILL Need help getting flash banners working on my web page

Post by Holymonkey »

Sorry to bump this post, but I still have the issue and realized that my last reply was poorly worded and at a glance might make people think its a resolved issue, which it is not. Also, more importantly, I noticed something that I think will help knolegable people fix the problem.

The webpage reports the following, which seems to be directly referring to the onrelease actionscript in the flash banner:

Error'JparentNode' is null or not an object
Code:0


Mind you, as I mentioned below, the banner functions perfectly on its own.... http://www.holymonkeystudio.com/banners/scribbles.swf

It just Does not function as a link once embedded in my webpage. :(

Following is the original post and resulting thread.

Hi everyone.

I'm an artist by trade and really new to PHP (and Flash). I've used the following code to embed two small flash banners on my website. http://www.holymonkeystudio.com Only the one on the right about scribbles is currently made to function as a link to another URL, but it doesnt work. I friend tested the banner seperately on a HTML with JUSt the banner and it works perfectly, so It would seem it's definately something to do with how I'm embedding it thats breaking things.

Any suggestions?


Here's the code I'm using to embed the banners:
<h1>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/sh ... on=7,0,0,0" width="320" height="120" id="any" align="left">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.holymonkeystudio.com/banners/skin_me.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#666666" />
<embed src="http://www.holymonkeystudio.com/banners/skin_me.swf" quality="high" bgcolor="#666666" width="320" height="120" name="any" align="left" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
</object>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/sh ... on=7,0,0,0" width="334" height="120" id="any" align="left">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.holymonkeystudio.com/banners/scribbles.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#666666" />
<embed src="http://www.holymonkeystudio.com/banners/scribbles.swf" quality="high" bgcolor="#666666" width="334" height="120" name="any" align="left" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
</object>
</h1>
Last edited by Holymonkey on Wed Apr 08, 2009 3:08 am, edited 1 time in total.
eltonpiko
Forum Commoner
Posts: 31
Joined: Wed Apr 01, 2009 2:19 pm

Re: Need help getting flash banners working on my web page

Post by eltonpiko »

normaly its just a simple code you use to embed a flash movie to your website and when you created your flash file you will have already add an action to it that when you click on it,it will direct you to the url youv set the action to get upon clicking on the flash movie.

the minimum code you need to embed the flash to you site were ever you want it is as below:

<object width="width of flash file" height="height of flash file">
<param name="movie" value="yourflashfilename.swf">
<embed src="yourflashfilename.swf" width="width of flash file" height="height of flash file">
</embed>
</object>
Holymonkey
Forum Newbie
Posts: 2
Joined: Tue Apr 07, 2009 10:59 am

Re: Need help getting flash banners working on my web page

Post by Holymonkey »

Hi eltonpiko,

thanks much for the reply. I've got the actionscript in the swf itself. you can even go directly to the url of the swf itself to see that it functions perfectly OUTSIDE my website. :( http://www.holymonkeystudio.com/banners/scribbles.swf

It's when I embed the swf into my webpage that it no longer functions as a link. I've changed the embed code in the index.php to
<h1>
<object width="320" height="120">
<param name="movie" value="http://www.holymonkeystudio.com/banners/skin_me.swf">
<embed src="http://www.holymonkeystudio.com/banners/skin_me.swf" width="320" height="120">
</embed>
</object>
<object width="334" height="120">
<param name="movie" value="http://www.holymonkeystudio.com/banners/scribbles.swf">
<embed src="http://www.holymonkeystudio.com/banners/scribbles.swf" width="334" height="120">
</embed>
</object>
</h1>

and the problem still percists. clicking on the banner does nothing now that its in the website. :(
Post Reply