;

PDA

Click to See Complete Forum and Search --> : Need some script help ..please


scouser
10-12-2005, 12:32 PM
I want to create and ASP driven flash movie with an exhibition floorplan where when a stand is booked the stand changes colour and when you put your mouse over it states the person exhibiting.

I can do this in ASP and web pages but want the front end as a slicker, flash movie. I think I understand that I pass the ASP information as an ASP page (that bit I can do) it is the 'buttons' for each stand.

I am not sure how to make e.g stand 1 which is booked change from an invisible button to a blue button for example if stand 1 = true.

Would I have to create a button to lay over each stand and where the stand number = true, apply the effect.

My actionscripting is not great, so any help is appreciated

Musicman
10-12-2005, 08:26 PM
Hi,

suppose all your stands are movieclips (with just a graphic inside) and instance names like booth1, booth2
Now this code would do

mylv = new LoadVars();
mylv.onLoad = function() {
for(var j in this)
{ _root[j].info = this{j];
_root[j].onRollOver = function() {
_root.info.text = this.info;
};
_root[j].onRollOut = function() {
_root.info.text = "";
};
var c = new Color(_root[j]);
c.setRGB(0xff0099);
};
mylv.load("plan.php");

The data would read like
&booth1=EOLAS&booth2=Microsoft&....

Musicman

scouser
10-13-2005, 08:17 AM
thankyou for the help, will try this out tonight.