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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Answer to how to do this with the window 1

Status
Not open for further replies.

TaiChi56

Technical User
Mar 6, 2002
188
US
I am surprised that no one has looked at my previous thread. I really need help on a actionscript I want to attempt, but not quite sure where to start. The effect is used at this website.
Please advise. Thank you

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
if you mean the the window parting in two from top to bottom its quite simple but there a number of effects there so i am unsure which one you mean.
 
ok looked at your earlier post and i guess it is the window open effect

at its simplest (MX only)

give the button an instance name( eg 1994_btn) and add code to the main timeline. clip1 and clip2 instance names of movieclips forming the two halves of the window

1994_btn.onRelease = function(){
openWindow = setInterval(sesame,50);
}

function sesame(){
clip1._y --; //move this bit up
clip2._y ++; //move this one down
if (clip1._y <=50){
clearInterval(openwindow); // 50 just a number to stop at. adjust to suit
}
}
 
Thank you billwatson I will try that. Probably not until tonight. I was wondering where you were this weekend. Must have been busy. Thank you for answering this for me. Yes, I was talking about the window opening up.

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
Why am I getting this error?

Scene=Scene 1, Layer=actionscript, Frame=1: Line 1: ';' expected
1994_btn.onRelease = function(){

Scene=Scene 1, Layer=top menu, Frame=1: Line 1: ';' expected
1994_btn.onRelease = function(){

Scene=Scene 1, Layer=top menu, Frame=1: Line 5: Statement must appear within on handler
function sesame(){

I made the button 1994_btn
I made the two halves with instance names clip1 and clip 2
Help, thank you very much.

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
Sorry, I must be blanking. How do I post the FLA? Can I send it to you?

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
Thank you Bill for fixing that for me. Thank you for the fast response. It sure is nice to have people around like you that do not mind helping out. The stuff I learn here I teach kids at a high school on the side. We offer flash, and you should see some of the projects these kids are putting out for their first year. Again thanks.

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top