return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
Need help with Macromedia Director
View this Thread in Original format
DJ_Laszlo
I'm currently creating an application in Macromedia Director for a school project.

This application is set to be run in a browser, and I have only one question which I really can't figure out how to do, so I was hoping somebody could help me out here.

I have an empty box, to which I want to assign a script, so when this box is clicked, the browser should close. Does anybody know the lingo script to this?

Something like:

on mouseUp
//CLOSE THE DARN BROWSER
end

And if somebody has some tips on some similar forums, like this one, but for retards like me who need help with Macromedia Director and/or Flash, please list them. I just love working in this program :)

cheers
Mr Game+Watch
I just started working in Director for my new job... getting acquainted with Lingo and everything to do presentations of our technologies on our theater screen. I unfortunately can't help you with your problem, I have a couple of the Director users manual on my desk at work, maybe there's a Lingo command I could look up for you? But I agree, it's a fun program and is versataile :D
Fundamental
As far as I know, the ony way to do this is to use the 'externalEvent()' function in lingo to send a message to the browser. This could then execute a javascript method embedded in the HTML. For example...

IN LINGO

on mouseup button
externalEvent("closeWindow()")
end

IN JAVASCRIPT

function closeWindow()
{
window.close() //or something - not quite sure...
}


Hope this is of some help... :)
igottaknow
I used to "program" if you really can call it that in lingo. What backward half ass language. I hope they've improved it since ive last used it. Some genius came up with an idea to combine the english language with pseudo programming syntax. "the castLibNum of member"
:whip: :whip: :whip:
DJ_Laszlo
quote:
Originally posted by Fundamental
As far as I know, the ony way to do this is to use the 'externalEvent()' function in lingo to send a message to the browser. This could then execute a javascript method embedded in the HTML. For example...

IN LINGO

on mouseup button
externalEvent("closeWindow()")
end

IN JAVASCRIPT

function closeWindow()
{
window.close() //or something - not quite sure...
}


Hope this is of some help... :)


wow. Didn't know you could use external events like that. (I'm just a feckin' n00b:D) I'll try that out...thanks a lot :)
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement