How Do You Bypass Buttons By Pressing Enter In A Textbox?
I have the code for a button that takes the input box text and turns it into a google ssearch Code: stop();var addPluses = function():Void { var inp:String = input_txt.text; //split the input string on the spaces - this forms an array var spl:Array = inp.split(" "); // join the array back together w/ "+" var finish:String = spl.join("+"); getURL("http://www.google.co.uk/search?hl=en&q=" + finish + "&meta=", "_self") }go_btn.onRelease = function():Void { addPluses();} so my question is how do i get that now so when you type the search and hit enter it eliminates the need to press the search button? Cheers for any help
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 10-30-2006, 01:57 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Pressing Enter From A Textbox
hi everyone
this is my first post and its a tough one.
ive created a banner with a textbox that sends info out.
there is a button that when pressed sends the info from
the textbox out, and everything works fine.
now ive been asked to do same but instead of pressing the
button the user will have the option of pressing the enter
key.is it possible
help
Pressing ENTER Like Mad ?
when test my swf in flash and press enter like crazy my program unloads and weird things happen ...
but when i run it alnone in flash player or in internet explorer..if does not mess up...does enter go to the next frame or something ?
cause i just wasted an hour trying to find onkeypress enters and junk...
Submit When Pressing Enter
how I can make alike submit button using ordinary picture and when pressing enter in dreamweaver MX
thanks
Pressing Enter Isnt Working...
Hi
Apologies if this question has been answered many times before -
I have a button which has the following code:
on (keyPress "<Down>"){
gotoAndPlay(2);
}
on (keyPress "<Enter>"){
nextScene();
}
So pressing Down will go to the next frame whereas Enter goes the next Scene.
For the life of me I cannot understand why pressing Enter does not work - I am using exactly the same code in a different part of the file where a movie clip stops and you have to press Enter to continue.
In the above code if I press Enter it acts like it doesnt understand the code and instead it goes to the next frame.
Any help on this I am confused.
Thanks
Pressing Enter Instead Of Clicking A Button
Hi
Can a bit of code be used to do the job of a button when enter is pressed?
Users have to input a number in a box in my movie and then click 'CHECK' button. Can they just press enter and it might do the same job as the button?
Pressing Enter Instead Of Clicking A Button
Is there any way that someone could press enter after typing in an input text box which will double as clicking a 'CHECK' button.
This is the code that is on my 'CHECK' button - and that is what I want to have happen when you press enter instead!
Anyway of doin it?!
I am working in FLASH 5.
on (release) {
if (Number(num6)==Number(num4)*Number(num7)) {
mouse.gotoAndPlay(mouse._currentframe-120);
yessound.play();
num4 = Math.ceil(Math.random()*12);
num7 = Math.ceil(Math.random()*12);
num6 = "";
num2 = Number(num2)+1;
num1 = Number(num1)+1;
Selection.setFocus("num6");
} else {
nosound.play();
num6 = "";
num3 = Number(num3)+1;
num1 = Number(num1)+1;
Selection.setFocus("num6");
}
}
Starting Moving By Pressing Enter
Just as the title says, I want to have a stop action on my first frame and have a code the will play the the movie once you press "Enter" on the key board.
I'm using actionscript 2. Any help would be great
Pressing Enter Advances To Next Frame, Not Sure Why
Pressing enter on the keyboard advances to next frame, and I'm not sure why.
so if i am on frame 1. and it has a stop() on there. the ONLY way to advance to frame 7 which also has a stop() is to hit a button which has calls
quiz.loadQuestionsFromXML() which has in it...
_root.gotoAndStop( "Quiz" );
now even with this line commented out. it will advance to frame 7 if i press Enter. and also if i press enter again, it advances to next frame as well.
weirdest Actionscript problem ive seen in my years. i assume now its a Flash MX 2004 bug cause nothing at all should make it advance to frame 7. prove me wrong, anything that would cause this guys?
here is snippets from frame1:
ActionScript Code:
stop();
//if user is not in Employee drop down, hide the textbox
//(unless if they click the guestCheckBox which unhides it and makes the employee drop down not enabled)
guestTextBoxHolder._visible = false;
guestCheckBoxListener = new Object();
guestCheckBoxListener.click = function (evt){
if(evt.target.selected)
{
emp.selectable=false;
emp.enabled = false;
emp.selectedIndex = undefined;
guestTextBoxHolder._visible = true;
}
else
{
emp.selectable=true;
emp.enabled = true;
guestTextBoxHolder._visible = false;
guestTextBoxHolder.guestTextBox.text ="";
}
}
guestCheckBox.addEventListener("click", guestCheckBoxListener);
//////////////////////////////////////////////
//fill drop down where they choose their name
var empArray:Array = new Array();
emp.dataProvider = empArray;
empArray.addItem({label: "Employee1 In Drop Down", data: 1});
empArray.addItem({label: "Employee2 In Drop Down", data: 2});
in frame 1 also a button populates the quiz class, IF user selected their name from drop down box, or click on Guest checkbox and fills in Guest textfield.
ActionScript Code:
on(press)
{
if( (emp.selectedIndex != undefined) || ((guestTextBoxHolder.guestTextBox.text != "") && (guestCheckBox.selected == true)) )
{
var quiz:Quiz;
if(emp.selectedIndex != undefined)
{
quiz = new Quiz( emp.selectedItem.data, emp.selectedItem.label, new Boolean(0) );
}
else if( (guestTextBoxHolder.guestTextBox.text != "") && (guestCheckBox.selected == true) )
{
quiz = new Quiz( "NULL", guestTextBoxHolder.guestTextBox.text , new Boolean(1) );
}
trace("New Quiz for Employee: "+ quiz.getEmployeeID() +", "+ quiz.getEmployeeName() +", Guest="+ quiz.getGuest() );
quiz.loadQuestionsFromXML();
}
}
and last parts of the quiz OOP object
ActionScript Code:
function Quiz(setemployeeID, setemployeeName:String, setguest:Boolean)
{
this.questionNumber=0;
this.questions = new Array();
this.score=0;
this.numberCorrect=0;
this.employeeID = setemployeeID;
this.employeeName = setemployeeName;
this.guest = setguest;
//trace("New Quiz for Employee: "+ employeeID +", "+ employeeName +", Guest="+ guest);
}
//load XML and fill questions array
function loadQuestionsFromXML()
{
var thisReference = this; //need a reference (to the class) to refer to, inside XML onload since when we are in XML, 'this' wont work
var xmlDoc = new XML();
xmlDoc.ignoreWhite = true;
//when presses button on 1st page... creates the quiz's 3 questions, then goes to frame Quiz
xmlDoc.onLoad = function(success)
{
if(success)
{
var rootNode:XMLNode = this.firstChild;
var itemNodeQuery:String = "/random/item";
var itemNodes = XPath.selectNodes(rootNode, itemNodeQuery); //using XPATH class to loop through XML, works.
for(var i = 0; i < itemNodes.length; i++)
{
var current_Item = itemNodes[i];
var questionText = current_Item.firstChild.childNodes[0].firstChild;
var correctanswerID:Number = new Number( current_Item.firstChild.childNodes[1].firstChild.nodeValue );
var questionx:Question = new Question(questionText, correctanswerID );
var possibleAnswersQuery:String = "answers/answer";
var possibleAnswers = XPath.selectNodes(current_Item, possibleAnswersQuery);
for (var j = 0; j < possibleAnswers.length; j++)
{
var answerText = possibleAnswers[j].childNodes[0].firstChild;
var answerID:Number = new Number(possibleAnswers[j].childNodes[1].firstChild.nodeValue );
var answer:Answer = new Answer(answerText, answerID);
questionx.addAnswer( answer );
}
thisReference.addQuestion( questionx );
}
_root.gotoAndStop( "Quiz" );//even if this is commented out goes to next frame
}
}
xmlDoc.load("randomQuestion.php");
}
Pressing Enter Or Return Key Script
I'm using a text input component that accepts text. I have a movie clip button that can be clicked and the results of my function appear in another text field. All works great. How can I make the button work and run its function if the user just hits the enter/return button on the keyboard instead of mouse clicking on the button?
Thanks,
Pressing ENTER During Text Box Focus
When I have clicked and entered text in my text box I would like to be able to press ENTER to submit the information (Players name) then move to the next frame. Right now I can press enter to go to next frame until I my cursor is focused on the text box.
Please tell me the action script to make pressing ENTER on the keyboard work.
Thanks folks
Edited: 06/02/2007 at 05:51:56 PM by ZypheR2007
Pressing Enter Advances Frame
I have a flash game with just three of four frames with directions on each. When I press enter, usually by accident, it advances the frame. How do I keep it from doing this?
How Not To Put A Linebreak Into Textfield After Pressing ENTER
Hi guys,
The point of my question looks quite easy but I can't find an answer for it. I have an input textfield (or textarea) and after pressing ENTER key, the text should be sent. That works without problems, the problem is that with multiline textfield pressing ENTER puts a linebreak, so the cursor jumps to the "2nd line" in the textfield. Does anybody know how to avoid this? The code I am using so far:
ActionScript Code:
var keySend:Object = new Object();function onEnterDown() { if (Key.isDown(Key.ENTER)) { chat_so.data.textmessage = message_ta.text+newline; chat_so.data.username = username; chat_ta.text += username+": "+message_ta.text+newline; message_ta.text = ""; }}keySend.onKeyDown = onEnterDown;message_ta.onSetFocus = function(){ Key.addListener(keySend);}message_ta.onKillFocus = function(){ Key.removeListener(keySend);}
Thanks a lot for any advice!
P.
Text Fields - Pressing <enter> To Submit And...
Hello,
Regarding text fields, such as a login screen like at hotmail.com... is there any way to get flash to load the text field --ready to be typed in-- with the cursor flashing in the "user name" field? Also, once the password has been entered, is it possible to add a script that will allow you to merely press <enter> to submit the login info withOut having to add a submit button in order to use an "on (key<enter>) {"?
thanks for your input!
How To Submit Input Field With Pressing Enter?
Hi,
I have MC with input field and I want to post variable to php script from it just pressing Enter eg. email address press Enter to add it to db.
I have:
on(keyPress "<Enter>"){
user = "rw/subs.php?email=" add _root.cemail;
_root.loadVariables(user,this,"POST");
}
All work fine but keyPress "<Enter>" - when I use it the input field change into object with hand cursor instead of normal vertical line cursor, and I can't write anything.
I think that it is problem with keyPress "<Enter>", but how can I in other way use key Enter to submit variable?
Regards
Lee
How To Submit Input Field With Pressing Enter?
Hi,
I have MC with input field and I want to post variable to php script from it just pressing Enter eg. email address press Enter to add it to db.
I have:
on(keyPress "<Enter>"){
user = "rw/subs.php?email=" add _root.cemail;
_root.loadVariables(user,this,"POST");
}
All work fine but keyPress "<Enter>" - when I use it the input field change into object with hand cursor instead of normal vertical line cursor, and I can't write anything.
I think that it is problem with keyPress "<Enter>", but how can I in other way use key Enter to submit variable?
Regards
Lee
Input Fields - Pressing Enter To Submit
I'm creating a calculator and I already have a calculate button that performs the calculation of my variables and advances the movie to the next frame. I would like a user to be able to hit enter while in the text field to also calculate and advance the frame.
code:
this.onEnterFrame = function(){
if (Key.getCode() == Key.ENTER) {
potentialSavings = (Number(currentRate_txt.text) - Number(newRate_txt.text));
gotoAndStop(2);
}
}
On the second frame I have a recalculate button that simply sends the movie back to frame one so you can re-enter values. When the movie is started, it functions correctly - when the enter or calculation button is pressed they perform the same function. But when you hit the recalculate button on page 2, the movie appears to jump to frame 1 and go right to frame two. Seemingly flash is still detecting that the Enter key was the last key pressed and is performing the function. Does anyone know a way around this!
Thanks in advance!
[CS3] Playing Sound In Flash (when Pressing Enter)
When you press enter in flash it will give a preview mode starting from where the playhead is. My animation will play but not the sound. I desperately need the sound to play as the animation must match with the audio, how can I do this?
The audio does play when I press ctrl+enter (full preview mode)
thanks for any help
Pressing ENTER Makes My Flash Quit..?
I have this problem that when I press ENTER my program quits..It happens in IE and also when I run it in the swf player.
I once made it work by clearing the cache but now it happens again and clearing cache does not work anymore...any ideas ??
Generating Random Numbers When Pressing Enter
hey i need some help i can Generating Random Numbers with this code
randomnumber = Math.ceil(Math.random()*12);
but i want it to start when you press enter what other type of code would i need and is there anyway to make it know the random number and move a image/animation followed a few spaces
am trying to learn ActionScript
Entering Inputted Text By Pressing ENTER
Hi i'm very new to programming and even newer to ActionScript
Firstly I'll explain what i'm doing. I have two text boxes (one 'Input', one 'Dynamic') with one button. The user types something in the first box (Input), presses a button, then it appears in the other box (Dynamic). I have set a variable to catch this information called 'username'. Heres the code for the boxes and button:
on(press) {
username = username_txt.text;
message_txt.text = message_txt.text + newline + "Name: " + username ;
}
on(release) {
username_txt.text = ""
}
This is all good and works fine on button press, but ideally I would like it to work also when the user presses 'Enter' on their keyboard after typing the information in the first text box. I know this is going to be very simple, but I just can't work it out. Thanks in advance,
Billy Jo xx
Pressing ENTER Key Instead Of Clicking A Button In Flash 8..
hello everyone.. good day!
I have i problem with my page flip animation and i have this actionscript for the animation:
prevBtn.onRelease = function() {
var prevPage = _parent.offsetPages(_parent.page-1,_parent.removedPages);
if(prevPage>=-1) _parent.gotoPage(prevPage);
}
nextBtn.onRelease = function() {
var nextPage = _parent.offsetPages(_parent.page+2,_parent.removed Pages);
if(nextPage<=_parent.offsetPages(_parent.maxpage,_ parent.removedPages)) _parent.gotoPage(nextPage);
}
gotoBtn.onRelease = function() {
_parent.gotoPage(Number(pageNum.text)+1);
}
I am using Flash 8. The actionscript runs and do well. What my problem is I want to add the keypress function like when I pressed the ENTER key it will automatically flip the pages and go to the typed page number. ESCAPE for close. RIGHT arrow for next page. LEFT for previous page. I tried this code for ENTER :
pageNum.on (keyPress "<Enter>") {
_parent.gotoPage(Number(pageNum.text)+1);
}
But nothing happens. I knew there something wrong and I can't fix it..
I used flash for 5 years and still do not know all in the functions of actionscript. Specially now, FLASH is under ABODE.. By the way, pageNum is the name for INPUT TEXT.
Please help me on this.. thank you
Problem When Pressing ENTER For InputText Object Text
Hi,
I encountered a very strane anomly when pressing ENTER for InputText object text.
1) I set the InputText object for having maxium 2 characters.
2) I set the InputText object for getting only numbers using .restrict= "0-9";
Now, say the InputText is now empty.
1) Say I press the number "7" - the text line is now containing - "7".
2) Now, I press ENTER - the "7" is cleared from the text line.
Now, while the text box is clear, we think that we can insert 2 numbers.. but not!
3) I press a number, say "9" - the line contains "9"
4) I try to insert another number... but I can't!!
In order to be able to insert two numbers, I have to press twice the Backspace in order to clear the "9" , and another ghost note (the ENTER?).
How can I solve this anomaly?
Thanks
Yossi
Submit Form When Pressing Enter In Input Field
hi guys i have an input field and an enter button.
i've been requested to make it so if you press enter when you are in the field it will act as if you click the submit button. can anyone give me a simple solution to completing this as i have tried various methods and cannot get any to work...
cheers dave
[F8] Need A Textbox To Execute Function When User Presses Enter
Hey guys,
I know this is probably quite a basic problem, but im fairly new at this and haven't really done anything with key presses (just mouse events). So im working on a mailing list where the user enters their email and when they press 'enter' i want it to execute the same function as if they clicked the 'submit' button (add email to the mailing list). It seems people are used to typing something in a textbox and pressing enter to continue, so i figure i have to implement this. I only want this to happen when the textbox is in focus.
How would i go about implementing this?
Thx
Pressing On Buttons
What script can I use in a button on my main stage, that when a user presses it a second button inside a movie clip on the main stage would go to the over or down state (as if it was pressed on) ?
Buttons - A Pressing Issue
I have made a button as follows
1. The button itself - a static graphic
2. The button rollover movie - a movie clip wit the button doing a little thing
3. The button down image- another static graphic
The problem is, after the down image is activated, when the mouse goes back 'up' the rollover image is once again triggered. I dont want it activated until the mouse leaves the button and returns into the hit area. ie after the mouse up after a press on the button, i want to return to position 1 and stop.
Any ideas? All the examples I have looked at on the net dont allow for this.
Im fairly new to flash so would appreciate as clear response as possible!
Cheers!
I´m Pressing Buttons On A Movie Below :(
Hi all.
Listen I load a movie into a clip, ok? Then punching buttons in that loaded movie I punch a button that takes me to a different section of the site. That freakin button is on _root. Can I block it somehow or do I just gotoAndStop the _root to some frame without buttons? I somehow don´t like that solution.
Thanks in advance.
I´m Pressing Buttons On A Movie Below :(
Hi all.
Listen I load a movie into a clip, ok? Then punching buttons in that loaded movie I punch a button that takes me to a different section of the site. That freakin button is on _root. Can I block it somehow or do I just gotoAndStop the _root to some frame without buttons? I somehow don´t like that solution.
Thanks in advance.
Controlling Buttons By Pressing Keys?
(Flash 5)
I have 12 different buttons that are keyboard keys that play a sound when you click on them. I am wondering if, in addition to that, one could hit, for instance, the ` key for this first one, the 1 key for the second one, the 2 key for the third one, etc..etc..
Is there a script for that, in addition to the click?
Thanks!
Loading External SWF´s Without Pressing Any Buttons
Hi there
I´m new to flash and i´m trying to write a script that makes possible to load a external swf into target dynamically with Flash MX without pressing any buttons. First i tried to put a code layer in the main timeline with this;code: this.onLoad = function() {
_root.createEmptyMovieClip("container", 1);
container._x = 0;
container._y = 0;
loadMovie("movie1.swf", "container");
} ..and it does not work at all..
next i tried something diferent like this; code: _root.createEmptyMovieClip("container", 1);
_root.container._x = 0;
_root.container._y = 0;
_root.loadMovie("movie1.swf", "container"); well, this last scrpit loads the external SWF but the base.Swf in main timeline cannot be seen..
Any ideas ? i will apreciate any help
thank you
____________
regards
Load Swfs By Pressing Buttons
Hi guys,
I have a question for all you flash gurus out there:
I work in a document class where I have all actionscript for my website!
so this is what I want to do:
I want to load an array of sections(swfs) by pressing an array of buttons(mcs). The 7 different buttons links to 7 different sections on website...
I know I can use the "for loop" to develop a clean code that can recognize which button is pressed to load the section that it belongs to! Hope this make sense...
I'm happy to hear suggestion and I appreciate all help so I can get started=)
Cheers
Thomas
Pressing Buttons Without Huge Pauses?
Hi. I'm creating 2d adventure game with Actionscript 3.
I've created square where my hero can travel inside. Hero moves from left to right and it even jumps and hits.
There is this tiny error which I would like to get rid off. If I press up and left my guy will go up...... huuuge pause.... then it starts to go left. It's really irritating.
Can you guys help me?
Here is the code.
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeysDown);
function checkKeysDown(event: KeyboardEvent):void{
Keys(event);
}
function Keys(event: KeyboardEvent):void {
if (event.keyCode == Keyboard.LEFT) {
heroface = true;
hero.x-=playerSpeed;
}
if (event.keyCode == Keyboard.RIGHT) {
heroface = false;
hero.x+=playerSpeed;
}
if (event.keyCode == Keyboard.UP) {
hero.y-=20;
falling = false;
fall(falling);
}
if (event.keyCode == Keyboard.CONTROL) {
hitting = true;
if (heroface == true) {
hero.gotoAndStop(3);
}
else {
hero.gotoAndStop(4);
}
}
}
You can see the game here.
Making Buttons Visible After Pressing Another Button
Hi there
I´m doing a project for university but i got stuck in the part where i need to show a button so that the user can advance to the next scene.
Below i´ve put a screenshot from my scene so that i can explain this better.
http://img145.imageshack.us/my.php?image=exemplopb5.jpg
In this scene the user can press the guitar, flute, saxophone and electric guitar so that he can listen the music that i´ve put in those buttons.
You can consider these buttons on/off buttons which was a problem that i already passed, fortunately
What i want to do is to show the green button below only after the user presses one of the three musical instruments on top of the little gnome.
For example this is the code i´ve made in the guitar:
Quote:
on (release) {
tellTarget ("_root.El_Mariachi") {
nextFrame ();
}
}
on (release) {
nextFrame ();
}
on(release) {
gelRight._visible = !gelRight._visible;
}
The last bit of code i´ve taken off a thread from another forum but it didn´t seem to work.
How can i solve this problem?
Cheers
[F8] How Can I Add And Clear Numbers In Dinamic Text By Pressing Buttons?
I am making a mobile in flash ... I am trying to add as much functions as i can to it . And you know in mobiles when you press a number there will apear and when you press a button to clear it it will clear one character every time you press it ... I dont know how to do something like that . Plz can anyone help me with that !!??
Thanks...
Making Textfield Switch Between Visible/invisible When Pressing Buttons.
Okey, here is the sceneraio. I have about 9 buttons.
When i press these buttons i get up some dynamic text in some textfields.
I get 3 different sets of info into 3 sets of textfields. I have placed the textfields over eachother because according to what i press i only need the info from 1 out of the 3.
So how can i make 2 of the 3 textfields invisible when i press the button?
I have experienced also that when loading dynamic text and doing something with a textfield could "blank out" the textfield.
I have tried doing something like this on the button itself and as aactionscript for all of them (same with "onRelease")
onPress=function(){
albumartist1_txt.enabled=true;
albumname1_btn.enabled=true;
date1_txt.enabled=true;
genre1_txt.enabled=true;
albumartist2_txt.enabled=false;
albumname2_btn.enabled=false;
date2_txt.enabled=false;
genre2_txt.enabled=false;
albumartist3_txt.enabled=false;
albumname3_btn.enabled=false;
date3_txt.enabled=false;
genre3_txt.enabled=false;
};
Anybody got anything to help out here?
Enter Buttons Makes My Swf Go To The Next Frame
I've noticed that when you hit return, it seems to make my swf go to the next frame. I can't seem to get my KeyListener to override it either. Is there any way to turn that feature off of flash so that nothing happens when the user hits enter?
Enter Buttons Makes My Swf Go To The Next Frame
I've noticed that when you hit return, it seems to make my swf go to the next frame. I can't seem to get my KeyListener to override it either. Is there any way to turn that feature off of flash so that nothing happens when the user hits enter?
Textbox Variables Buttons
I'm making a game where there are buttons on the bottom of the screen for the entire alphabet and an instance of a movie clip in the top right corner. Inside the movie clip there are 3 images,which when played in the main scene, ask the user to spell them . The textbox's variable name is 'spellbox'. The main timeline has 3 points where is establishes that on question 1: spellbox +=""; (because it is empty until the user clicks or presses a button) word1=spellbox+"hat";
spellbox +=""; word2=spellbox+"sun"; etc.
On each letter/button, coding evaluates if the coding in the textbox is right and if so, to advance to the next question (the code is also suppposed to track the number of times they click a button or try to spell the word:
on (release, keyPress "a") {
spellbox += "a";
if (spellbox == word1) {
gotoAndPlay("question B");
} else if (numbertries<3) {
numbertries += 1;
gotoAndPlay("game3image", "tryagain");
} else {
gotoAndPlay("game3image", "wrong hat");
}
.
Nothing is working, but there are no problems with code and no syntax errors.
Any ideas?
HELP Nav Buttons Won't Put Text In Textbox
Hi, and THANKS for looking at my post!!
I've been working on this one for over a wk now:
Have 4 Nav Buttons, which when clicked should display text loaded into MC (called "myMC" ...has no "Instance Name"), with TextField in it (Variable = txtbox) from external file (txtbox.txt).
External file has text beg. with variable "txtbox=" then the text for my text that loads initially when page loads into myMC(this text works fine, using script: onClipEvent (load) {txtbox = "loading data...."; this.loadVariables("txtbox.txt");} It's separated by "%0D," then "&WhoWeAre=" for the text that should load when the first button is clicked. Code on first button is: on (release) {txtbox = "loading data...."; this.loadVariables("txtbox.txt");} This will not do anything when clicked: not clear the initial text, not add new text...nothing! I've tried various other scripts, even putting the text for the buttons in a file by itself...still nothing.
I'm at a loss...and I'VE GOT TO get this finished for my client. Please help me!!
DYNAMIC TEXTBOX WITH BUTTONS
http://blake.prohosting.com/~tektips/textbox.htm
Been workin' on this thing... For some odd reason the first button is still bugged in NS (workin' on that!), but everything seems to be workin' fine in IE and AOL.
Haven't tried to load this from a text file yet, but it does work when defining the textfield variable in the first frame of the movie.
Regards,
Reloading Dynamic Textbox With Buttons
Ok, this might be an easy one, and im very very basic at scripting..
Ive created a navigation bar, and ive also got a dynamic text box loading text from an external file, it's all working fine.
What id like to do is link the buttons in my nav bar to reload that dynamic text box from a seperate external text file..
I have tried a few different things.. this is what I have so far..
On my first frame, ive got this to load the external text file
loadVariables("text.txt", this.menu);
and what I had on my 'about' button is this
on(release){
loadVariables("about.txt", "_root.textbox");
}
Now.. this is all just guess work, and a bit of reading around FK.. but ive had no luck.. any help would be great.
cheers... ex
Buttons To Control Textbox Position
Does anyone know of a way to control the position of a text box using buttons? I have a very long text file that I want to make a table of contents for. I wasn't sure if using buttons to take me to different positions on the text file was the best way? Please help! Thanks
More Textbox Problems - Hide The Scroll Buttons?
I want to use multiple instances of the same Scrolling text box and think it would be quite smart if scroll buttons only appeared if they were needed. Anyone got an idea how I can get it to work?
I'm not expectng a full tutorial but if you can tell me how to find out whether the input text exceeds the scroll area I would be extremely grateful!
Thanks in advance for your help,
Jon.
|