Ask a Question related to Macromedia Flash Sitedesign, Design and Development.
-
Big_SeckC #1
onRelease functionality
Site example:
[L=http://www.nex2us.com/templates/wunl/index.htm]http://www.nex2us.com/template
s/wunl/index.htm[/L]
Hello all,
*Warning possible stupid n00b question coming...
I have a question regarding the onRelease command. Why is it on some
invisible buttons the onRelease command works on a single click while others
work on a double click? The site example above allows for a single click when
entering the country, however, clicking on 'Products' requires a double-click.
Once a double-click is performed, then it will open with a single click. Here
is the code that I have used for "Country Select":
eng_button.onRelease = function() {
gotoAndPlay("pre_close");
};
Here is the code for "Products":
on (release) {
prod_but.onRelease = function() {
loadMovie("products.swf", "prod");
};
}
Now... the obvious difference is ( on (release) {} ). I can see that. But is
that why? it would appear that there are 2 "onRelease" instances for the
prod_but (product button). I have not changed the code to remove the ( on
(release) {} ) as of yet simply because the code is on the button itself and I
wanted to know if it would mess anything up before i made this change. I know,
a bit too cautious - but hey - I've already had to start from scratch once...
don't wanna have to do it again :oD
Thanks for any and all of your help in advance...
Big_SeckC
Big_SeckC Guest
-
onRelease function on a movieclip that is dynamically generated
I am dynamically generating movieclips. j = 5; for (var i = 1; i<j; i++) { _root.attachMovie("mcInfo", "mc_info"+i, i); _root._y = yposition;... -
onRelease and getURL
Is this correct: btn.onRelease = function(){ getURL("mysite.com/it_training/training.htm", _self); } I want to go to a new web page in the... -
onpress onrelease>>what's the diff?
i made separate swf's for my song files when i use loadMovieNum for each file they start playing simutaneously...i'd like to know the command to stop... -
onRelease
I would like to attach a "gotoandstop" for each image i have displayed. my images are being populated via a dataset from a CFC. I can display all my... -
lingering movieclip, will not go back to label onRelease
Hi. I'm having a problem with a movieclip on my main timeline that I want to appear on each click of my nav. buttons, it's a page transistion that... -
Big_SeckC #2
Re: onRelease functionality
Ok,
Took a huge deep breath and I changed the code:
prod_but.onRelease = function() {
loadMovie("products.swf", "prod");
};
...and it works on a single click now... Learned something new today - looks
like you cant add the onRelease funtion directly to a button without adverse
effects. I have to test the other buttons to make sure they work too!
Thanks!
Big_SeckC
Big_SeckC Guest



Reply With Quote

