|
-
Need some script help ..please
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
-
Hi,
suppose all your stands are movieclips (with just a graphic inside) and instance names like booth1, booth2
Now this code would do
Code:
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
-
thankyou for the help, will try this out tonight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|