Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Including a banner in my flash header?

Posted on 2003-12-05
6
Medium Priority
?
188 Views
Last Modified: 2010-04-03
I am using the following to insert my random banner ad onto my html header:

<iframe marginwidth="0" marginheight="0" width="468" height="60" scrolling="no" frameborder=0 src="ads/ads1/randomad.php"> </iframe>

I am now making a flash header but don't know how to insert the banner from my randomad.php.

Thanks
0
Comment
Question by:CarBoffin
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 9883788
Name your flash Files Like this

Banner1.Swf
Banner2.Swf
Banner3.Swf

and then in your PHP Page, Create the Random Script and Replace the index value with the Random Variable


"Banner" + i & ".Swf"

where i is a Random Number.
0
 

Author Comment

by:CarBoffin
ID: 9883949
Is there another way?, i have 30+ ads.

Thanks
0
 

Author Comment

by:CarBoffin
ID: 9888947
Please, its ergent.

Thanks
0
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 1000 total points
ID: 9889809
Can you store your banners Path into Database?

if yes then you can generate a Random Sql Script and return a Random Number that will point to that Row in your Database (Banner Path).

To Generate Random Record.

http://www.codefixer.com/tutorials/random_record.asp
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question