Solved

Including a banner in my flash header?

Posted on 2003-12-05
6
184 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 250 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Embedded Video Download (Flash) 3 1,181
ActionScript 3 - Removing Duplicates in ArrayCollection 1 415
Adobe Flash Player - PPAPI plugin 6 756
Flash Converter 8 136
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

740 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