PDA

View Full Version : Is it just me or is it getting impossible to..



dudeman
September 9th, 2002, 12:38 AM
What is with this? Is it just me or is it getting really hard to communicate variables between movieclips and textbox variables?

For example : Inside a movie clip I made an animated textbox. When the submit button is pressed it should send whatever textboxA is to textboxB outside the movie clip.

Why does it always ignore it?

Also, I'm having trouble using a movieclip as a button, if you would like to help.. go right ahead.

This is a simple task done on release, if it was a button it would work.. but its inside the MC (so I can animate it) and it acts funny :

onClipEvent (mouseDown) {
if (txtname == null) {
txtname = "ERROR! Name required";
action = "";
} else {
Name2 = txtname;
}
}

Should'nt onClipEvent (mouseDown) act like on (release)?

I have a few other minor problems with what I'm working on, but if I don't figure them out sooner or later I'm gonna have to bug you again.. thanks for the help :)

lostinbeta
September 9th, 2002, 12:44 AM
actually, onClipEvent(mouseUp) is like on(release)

Maybe you should try dynamic event handlers. These actions go in the frame and activate a movie clip as a button...


_root.myClip.onRelease = function() {
trace("this works");
};

This assumes the instance name of your clip is "myClip". Remember, APPLY THIS TO A FRAME! not a movie clip.

I hope this works for whatever you are trying to do.

dudeman
September 9th, 2002, 04:04 AM
Blah I'm lost.. going to send you source code later (its a flash shoutbox)

Hobbes
September 9th, 2002, 08:50 AM
absolutley love the signature thingie lostinbeta... v nice =)

andr.in
September 9th, 2002, 09:31 AM
Hey dudeman! You visit HabboHotel often? I can see that you have a little habbo on that picture :)

lostinbeta
September 9th, 2002, 11:49 AM
Thats for the compliment Hobbes.

Dudeman: Your footer is very cool, but it is a bit big, it stretches the tables out. Is it possible for you to shrink it down a bit so this doesn't occur?

dudeman
September 9th, 2002, 01:43 PM
Yea I sometimes do habbo.. when I'm reeeally bored hehe.

Sure this sig isn't really done but I'll downsize it.

Abt that code you gave me, the output gave me

Error: A 'with' action failed because the specified object did not exist.

Error: A 'with' action failed because the specified object did not exist.


Also, is there a way to have variables in a MC sent outside (like a textbox)?

dudeman
September 9th, 2002, 01:44 PM
Actually it does work, but I get that error and the movie clip doesn't play on a rollover when it would without this frame action.. hmm :-\