Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 17th, 2003, 12:38 AM
pipspeak pipspeak is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 4 pipspeak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
capturing input text for movie clip

OK, I'm going to start from scratch on this one... my troubleshooting has totally confused me.

In one scene I have an input text box, variable name "inputTextBox". Using the onRelease command and a button I want to capture this text for use later on. This is what I have tried using:

on (release) {
_root.textVar = _root.inputTextBox.text;
gotoAndPlay("Scene 2", 1);
}

I want to use this text in a dynamic text box contained in a movie clip (instance name "movie1") in the next scene. I've tried calling the text in every imaginable way to no avail. What AS or variable string do I need to use in the movie clip to get this text to show up?

Any help appreciated.

Last edited by pipspeak : December 17th, 2003 at 01:25 AM.

Reply With Quote
  #2  
Old December 17th, 2003, 09:06 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Hi, not sure if that is a problem with passing the variables between scenes.

If that is a problem then this may be a solution:

http://www.flashkit.com/board/showt...threadid=299918 - Faq #10

Modified to something like:

on (release) {
_root.createEmptyMovieClip("varpasser", 10);
varpasser.textVar = _root.inputTextBox.text;
gotoAndPlay("Scene 2", 1);
}

then in scene 2 you can read it with:

mynewtextbox.text = _root.varpasser.textvar;

That should do it (at least in my head)
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old December 17th, 2003, 12:25 PM
pipspeak pipspeak is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 4 pipspeak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the suggestion... but I couldn;t get that to work either. I attached an fla file that illustrates basically what I'm trying to do. Input text in one scene, use it in a movie clip in the next scene. I'm sure I'm missing somethign obvious!
Attached Files
File Type: zip passingtext.zip (18.4 KB, 218 views)

Reply With Quote
  #4  
Old December 17th, 2003, 01:23 PM
jmichels's Avatar
jmichels jmichels is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Orlando, FL
Posts: 177 jmichels User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 18 m 12 sec
Reputation Power: 6
I modified your fla and got it to work.
Attached Files
File Type: zip passingtext.zip (14.7 KB, 247 views)

Reply With Quote
  #5  
Old December 17th, 2003, 01:39 PM
pipspeak pipspeak is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 4 pipspeak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Great, thanks... I noticed a bunch of other errors in the file caused when I pared it down. Oops. I also got it to work by simply entering the variable "_root.inputTextBox" as the dynamic text box's variable.

Now I have a new problem... is it possible to render the dynamic text in some way to avoid the rather lumpy movement of the movie clip? As it is now, the dynamic text is unaliased and moves erratically.

(New, functioning, file attached)
Attached Files
File Type: zip passingtext.zip (14.9 KB, 197 views)

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > capturing input text for movie clip


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT