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

ooo I hate FLASH, button problem

Status
Not open for further replies.

bobetko

Programmer
Jan 14, 2003
155
US
This is the problem:

I have a button.
In the button, over state contains move clip (movieclip1). In the movie clip is TextBox (mytext)

How can I access to mytext and change its value.
I tried (from root) moviclip1.mytext="something" but it's not working.

The idea is to animate custom text when button is in over state. It seems to me that button somehow in combination with movie clip (inside the button) causing that mytext variable is invisible (can't change its value).

I believe I could work around this problem: create movieclip1, place button in this clip, then place another movieclip2 in this clip that will do text animation, and from button execute movieclip2, BUT... why above exemple does not work?

Will we ever get rid of this crappy software?
 
In the button, over state contains move clip (movieclip1). In the movie clip is TextBox (mytext)

It is not working because you aren't referencing the button. ie: (from root) instanceNameOfButton.instancNameOfMovieClip1.instanceNameOfTextBox.text.

It may be easier for you to make the text box refer to a variable on the root. In other words set the variable "myText = "blahblah"" on the actions layer of the first frame of the main timeline. Then in properties for the text box in movieClip1 set the Var field to _root.myText.

This is an interesting place to call Flash crappy. I'm sure most people here would disagree. I know I do :)

Hope it helps!

Wow JT that almost looked like you knew what you were doing!
 
I think I tried what you said... but I'll try one more time.
I am also trying to avoid Flash 6 (if it's possible) (mytext.text - doesn't work in Flash 5)

I really have an issue with Flash. I am occasional Flash user. When project requires I work in Flash. That means approx. two months in a year. After some time working in Flash I become fairly good, then I would have gap of few months working on something else. Then, when new Flash project arrives, I am in trouble. The whole interface is so bad and not intuitive and after while starts to drive me crazy. Every time I suffer for few days trying to readjust to stupid editor and relearn stuff (usually workarounds around flash bugs (which doesn't get solved version after version - work on the curves is an example)).
For instance, if I don't work in ASP, PHP or JAVA for some time, I need few hours to reajust and I am good to go. With FLASH, things are much more complicated.
Unless you can afford to devote your life to Flash, you will not like Flash. This is my case.
This is also the way how I judge is software good or bad.

On the end, I love the concept but not the product. I wish there is some competition, so I can choose something less anoying.

Thanks for your time....
 
Well if it helps I am also 90% other web technologies and I do understand what you mean. You just have to take the time to keep your chops up to keep the frustration down. :)

Using the Var reference will work in 5.

BTW... if your frustration is coming from the difference between a programming environ and Flash you should defnitely upgrade to MX 2004 Pro. Actionscript 2 and the Flash app itself are way more friendly to Code crunchers!

Good Luck!

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top