Horizynn
July 14th, 2002, 10:56 PM
OK I have 3 issues I cant work out on my own, I've only been using flash about a week or so and have learned most of what i know about it from the built in tuts, messing around, and 2 websites (this one and flashkit).
There are 3 problems I cant seem to figure out on my own.
1st problem - I have a button that I will assign an action to (Its a sound on and off button, however I havent added sounds to my site yet, so for now I just want it to toggle the on / off image, I have 2 pictures on top of each other, and when the button is clicked, picture one will no longer be visible, and picture 2 will then become visible, and vice versa when the button is clicked again... I pasted this code in the button, which I came to find out is wrong... lol... but I gave it the good ol college try...
on (release) {
if (Off_alpha==100) {
return On_alpha=100;
return Off_alpha=0;
} else {
return On_alpha=0;
return Off_alpha=100;
}
}
That code, after screwing around with AS, seemed logical to me, but Flash didnt think so...Any help here would be great.
2nd Problem - I setup the chromeless window from the tutorial provided here, and there are 2 things I'd like to do to it if possible...
Make a Flash Button that will close the window, and have a Minimize button along side the close 'x' at the top
Sorry for so many questions in one thread, I pretty much did all I could without help now I'm trying to get rid of all my problems =).
Thanks in advance for all help provided
Can view what I've done so far at www.sierrafalls.net (the first page is very generic just to initialize the javascript window) .. none of the links work yet, I do web design but never used flash til now, figured it was time to update =p
There are 3 problems I cant seem to figure out on my own.
1st problem - I have a button that I will assign an action to (Its a sound on and off button, however I havent added sounds to my site yet, so for now I just want it to toggle the on / off image, I have 2 pictures on top of each other, and when the button is clicked, picture one will no longer be visible, and picture 2 will then become visible, and vice versa when the button is clicked again... I pasted this code in the button, which I came to find out is wrong... lol... but I gave it the good ol college try...
on (release) {
if (Off_alpha==100) {
return On_alpha=100;
return Off_alpha=0;
} else {
return On_alpha=0;
return Off_alpha=100;
}
}
That code, after screwing around with AS, seemed logical to me, but Flash didnt think so...Any help here would be great.
2nd Problem - I setup the chromeless window from the tutorial provided here, and there are 2 things I'd like to do to it if possible...
Make a Flash Button that will close the window, and have a Minimize button along side the close 'x' at the top
Sorry for so many questions in one thread, I pretty much did all I could without help now I'm trying to get rid of all my problems =).
Thanks in advance for all help provided
Can view what I've done so far at www.sierrafalls.net (the first page is very generic just to initialize the javascript window) .. none of the links work yet, I do web design but never used flash til now, figured it was time to update =p