Flash Button Issue
- Started
- Last post
- 12 Responses
- madino
So, I am running into this problem and my brain is not working. I used the componet button and a listener.
--submitData.addEventListener("c... clippyListener);--Now I have to make my own button and get the listener to work. How? Nothing seems to be working... any help would be appreciated. Thanks in advance.
- ozhanlion0
errrr... what is the purpose of the listener?
mylistener= new obj();
objyouwanttolisten.addListener(m...
- madino0
sorry... brain is not working.
the listener works fine when I use the component button to check the click. But when I use my own button (non component button), I can't get the listner to hear the "click" on my button.
So, when you click on my button, it goes thru my list, grabs the varibles, and Posts it. but it doesn't work unless I use the component button.
I am sure I am just missing something small. But this is frustrating...
- unfittoprint0
why would you like to 'listen' to your button?
- madino0
I am not sure how else I can explain it. ... here is a snippet of code...
clippyListener = new Object();
clippyListener.click = function (evt){
arealoc = new LoadVars();
arealoc.north = yes;
arealoc.south = no;
arealoc.send("landing.php", "_self", "POST");
}submitData.addEventListener("cli... clippyListener);
So, I need to have the click captured off of my button and not a component button.
- ********0
I'm confused
- madino0
so am i :(
It is just one of those days...
- unfittoprint0
Why don't you make a button where the loadVars objects and variable creation is within a onRelease/onPress event?
- madino0
because that would make to much sense.
give me a minute and I will take a stab at changing this mess of code.
- unfittoprint0
:-)
- madino0
I knew I was doing something stupid. Once again, Unfit, you are my hero!
thanks for help.
- madino0
new issue.
Unfit, if you have a 2 minutes could you email me. I would like to send you a link to a test site to see if you have any guess as to why this is messed up. If not, I understand... no big deal.
- unfittoprint0
send me but I'll only see it later.
I'm gonna do some swimming.