Link to home
Start Free TrialLog in
Avatar of mitcht
mitchtFlag for United States of America

asked on

Can't get text from a text entry

Hi, I have a flash template that's making me sad.  It has a search button and a text area that I'm trying to incorporate into a google search URL that is fired when I press the button.

The movie clip is called 'search' and the test input is an instance of _txt, so I tried to enter search.text in the button actionscript, but it comes up as undefined.

I'm a very occasional user of flash, am doing this for my brother's site.  Can I ask for direction?

I've attached the file for your amusement.  Let me know if I can provide more info.

Many Thanks
header-v8.fla
Avatar of Rob
Rob
Flag of Australia image

I'm taking a look and will post back soon :)

Is there any reason you're using flash and not a simple html / javascript form?

In other words, what's the advantage to using flash for this particular part, ie the search.  I understand about the presentation and sound but not the search.
Avatar of mitcht

ASKER

Thanks for responding.

Why use flash for this?  Well, it came with the template :)

Also, it works well with the visual part of the site.  But you make a good point.  If I can't get this simple thing to work, may need to fallback to a js/html solution.

But I'd sure like to make this work.
Sure, I can understand that.

I'll attach the working version but first what version of flash are you using?

Your issues were due to a few things including using reserved words as "search" as an instance variable as well as not have instance names for the required movie clips.  You should see what I mean when I upload the file
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mitcht

ASKER

Thanks for the detailed answer.  I took a shot at the solution, but it's not working here.  Will post my detailed steps on 1/28.

Again, thanks, this was a big help.  I think I'm still missing something on my side.
Here is the updated file - i ended up using ee stuff as the file attachment wouldn't work here
https://filedb.experts-exchange.com/incoming/ee-stuff/8332-header.zip
Avatar of mitcht

ASKER

Very cool, I see the file works, but I can't open the source in Adobe CS3.  What version should I use to open the source file?  Would like to review and learn where I can do better next time.

Again, thanks!
I'm using CS5.5 so I'll try and re-save to CS3 and post back
Avatar of mitcht

ASKER

Much Appreciated!
Ive only been able to save as CS4.. if you're still unable to open it, I'm happy to go through the steps i took to get it to work
header-v8-cs4.fla
Avatar of mitcht

ASKER

Thanks for taking the time to work with me on this.  It's very appreciated!