Advertisement

05.09.2008 at 11:11AM PDT, ID: 23390357
[x]
Attachment Details

Is there a random script to jump to a point on the timeline that will function in Firefox 2.0?

Asked by Marty1963 in Macromedia Flash

Tags: Adobe, Flash, CS3, ActionScript, Firefox 2.0

I'm looking for a random script that will jump to a label along the timetime and continue to play on from that point. My client has a series of twenty banner ads in rotation, however (as we know) the Flash movie will reset to start on refresh so ads later in the sequence hardly ever get seen which the customer does not like. The the random script I found (Attached) works great in IE7, however in Firefox 2.0 (On PC only for some reason .. Mac Firefox is fine) seems to dislike it. Does anyone have any suggestions? I'd really appreciate it, as I'm very frustrated.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
function randRange(min:Number, max:Number):Number {
	var randomNum:Number = Math.round(Math.random()*(max-min))+min;   
	return randomNum; 
}     
var myFrame; 
myFrame = randRange(2,20); 
gotoAndStop(myFrame);
 
And Frames 2-20 have this action on them:
stop();
gotoAndPlay("Label");
[+][-]05.09.2008 at 04:40PM PDT, ID: 21537132

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 02:55PM PDT, ID: 21550832

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Macromedia Flash
Tags: Adobe, Flash, CS3, ActionScript, Firefox 2.0
Sign Up Now!
Solution Provided By: Marty1963
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.12.2008 at 03:06PM PDT, ID: 21550883

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628