Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Q's, 1) music 2) getURL form projector

Status
Not open for further replies.

funkymonk

Technical User
Dec 18, 2000
588
GB
Hi all,

Question 1) I have a short intro with music to a flash presentation. What I would like to happen is that if someone does click the skip button, I want the music to fade out from where it is and not just stop. Is this possible? I'm not to worried if you can't do it but it would be a nice touch.

Qyestion 2) (This ones the pain) I have a link to my companys web site (on the same "full screen" presentation). I have a getURL on the link and it seems to work fine unless there is a browser window already open. When this is so, the browser I am trying to open does open but does not come to the front so it looks like the link didn't work till you close the presentation, and there's the window just sat there waiting. Quite annoying really, anyone know how to work around this problem?

Heres the code on my button:

Code:
on (press) {
    getURL ("[URL unfurl="true"]http://www.c-3.co.uk",[/URL] "_blank");
}



Cheers

Rod roda B-)
rod@sameplanet.co.uk
 
There's a setVolume method for the Sound object in Flash 5.

Something like...

onClipEvent(enterFrame){
if(level>1){
musicClip.setVolume(level--);
}
}


would be all you needed to reduce the volume by one percent every frame. You'd need to set the variable "level" and the clip it controls at the start of the movie...

onClipEvent(load){
level=100;
musicClip=new sound();
musicClip.setVolume(level);
}


There may be some issues to resolve caused by having the sound persist when the intro is skipped and a new scene is started (you'll have to work out how the enterFrame event is initiated - actually it might be better to do this as a function call instead which is called until "level=0").

This is all top of the head stuff (as usual :) ) but I definitely think it's do-able.

As for your second problem, I think you'll have to look at some JavaScript calls to your window altering its "focus" properties to bring the new window to the front.

Gotta go, lunchtime pint with my name on it....

 
In response to your second question, perhaps you might consider an FScommand to resize your full screen presentation while at the same time launching your browser. By resizing the flash presentation the user will see that there is a browser window popping up on his desktop.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top