Cursor In First Textbox On Start Up -how Pls?
HI ALL JUST A SHORT ONE.. WHEN OPEN FLASH SWF FILE CONTAINING TEXTBOXES I WANT TO MAKE THE CURSOR SIT IN THE FIRST BOX --->VISIBLY<-- PLS. USING FLASH 5. (KNOW ABOUT THE TAB/SEQUENCE ISSUE AND HAVE DONE THAT OK)
shaf
FlashKit > Flash Help > Flash General Help
Posted on: 04-21-2004, 10:39 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Cursor On A Textbox
Is there a way to have an input textbox have the cursor blinking already in it without having to move the mouse to it? It's for something where people will be adding e-mails over and over and when they fill out the e-mail field and click on a button called ADD I want it to immediately have the cursor on the e-mail text box again ready for the next e-mail address to be added.
Textbox Cursor
Well, i want the cursor in the textbox to appear all the time so that user need not use their mouse to point and click at the textbox to make it appear. How do I do that? Anyone knows?
Textbox Cursor
is there a way of making a custom flashing cursor used in forms or text boxes?
thanks
Textbox Cursor
is there a way of making a custom flashing cursor used in forms or text boxes?
thanks
Input Textbox Cursor
Hello there,
I have a feedback form with 3 input text boxes.
Problem - When i test my movie locally the cursor flashes and everything seems fine. When i upload the page and you click in the text box you can't see the cursor flashing. Any ideas as to how i can sort this one out?
Check it out at - Primative Feedback
Hide Cursor Over Textbox
I'm working on a program where I've created a custom mouse cursor. It works great, but when I move my hidden mouse over a dynamic text box, the edit text cursor appears along with my custom mouse. How do I hide this dreaded "I" cursor?
Thanks for all the help in these forums. My previous trolling has been very educational!
Hide Cursor Over Textbox
I'm working on a program where I've created a custom mouse cursor. It works great, but when I move my hidden mouse over a dynamic text box, the edit text cursor appears along with my custom mouse. How do I hide this dreaded "I" cursor?
Thanks for all the help in these forums. My previous trolling has been very educational!
How Do I Start An Input Textbox With Text...
Hello,
How do I start a input text box with a value, but then make it changeable later?
I have small calculator that I want to have start with the textboxes filled in. example..
price: [ 50]
discount:[ 5]
________
total : [ 0 ]
*calculate button*
It works when I have values put in already, but I'd like to make the input boxes changeable so if they want to calculate a different price or discount amount later they can, and the calculation will still work.
right now I just have it like this
price = Number(50);
discount = Number(5);
total = Number(0);
calculate_btn.onRelease = function () {
total = price - discount;
}
Which works, but I can't change the values later... any ideas?
Finding The Cursor Location In A Textbox
Is there a way to find out what line the blinking cursor is located at in an input box? I am creating a virtual keyboard and I need to know where the blinking cursor is so that when the user presses a button on the virtual keyboard, the corresponding letter will appear where the cursor is, even if it's in the middle of a line. The way I have it right now ( input_txt.text += currentLetter; ) only places the next letter at the very end. Any info would be apreciated.
Thanks
DJ
Cursor Not Defaulting The Input Textbox
I created a simulation in Cativate, which the cursor nicely defaults in the input textbox for each screen. However, I export the simulation to Flash because I can manipulate the tutorial better and adds lots of images and animations. BUT..... Now when I publish to a swf and run it, the cursor does not default to the texbox anymore. The user has to click into the field before it accepts text. Users are usually confused because they just start typing and can't figure out where they are. They just figure the cursor is defaulted in the field. But I have to constantly put little popups to remind them to click in the field before they can type. I have been looking for an answer to this for 2 years and still can't get one. HELP. I'm not a programmer but have fooled around with the action script a little bit looking for code that I can put on the input textbox to force the cursor to default to the field but Nada.
I think something changes the texbox when imported into flash.
Is This Even Possible? (cursor Within Field From The Start)
Hey there,
I had posted this in the other Flash 5 message board, but I think it's more ActionScript based.
I was just curious if there's ANY way at all to get the cursor to be ready and active within an Input Text Field as seen on some search engine sites:
http://www.google.com
http://email.angelfire.mailcity.lycos.com
These sites, upon entering the site the first time, automatically have the cursor already defaulted within the text field.
I'm trying to design a bastardized DOS mock-up to where I need the cursor to be blinking and active from the get-go in my Input Text Field without the audience having to drag their mouse into the field since a DOS prompt wouldn't have mouse capabilities as it is.
Now, is this something that can be accomplished within Flash as well?
Thanks for your time...
How To Have Cursor Start In Text Field?
How do i have the input cursor for typing start in a text box so the users dont have to click the text box and then start typing. For example, how google and most other sites you just start typing instead of clicking the text box then typing. I tried Selection.SetFocus() and it still wouldnt work. I made sure that the text box was the current focus with Selection.GetFocus, guess having the focus doesnt necessarily mean you can type in it yet. Please help.
Start Cursor Inside Input Text Field
I have two input text fields (username and password), and would like the cursor to be inside the username field when the movie is loaded, without having to click it first.
Is this possible?
Thanks for any advice
How Do U Make A Dynamic Textbox With A Variable Textbox
well im really noob at this like i got flash mx 2004 professional a couple of days ago and well u know im still not getting how to use actionscript i sorta understand most of the drawing i know how to use motion tween real well lol anyways if someone could help me it would be great.
Rewind, Pause, And Start Start Buttons For Base Movie And External Mov
I'm lost...
I have a base movie that contains three buttons (Rewind, Pause, and Start)
The code for the rewind button that sends the base movie to frame 2 which is set to play and then reloads the external movie (images/4_24.swf). works perfectly and is shown below.
on (release) {
gotoAndPlay(2);
}
on (release){
function test(){
_root.createEmptyMovieClip("container",25);
loadMovie("images/4_24.swf", "container");
container._x=15;
container._y = 95;
}
test();}
My question is does any one know how to now pause both the base and external movie with the pause button and then start both movies again with the start button???? Some how I need to control both movies with these three buttons.
Code for play button is ---
on (release) {
play();
}
Code for pause button is ---
on (release) {
stop();
}
Thank you MJR
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there
I am novice user of flash and have no real AS experience.
What I want to do is..
I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.
I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.
With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )
I hope this makes sense and look forward to hearing from someone.
Cheers
Ian Hill
TextBox._height Textbox Size?
Maybe someone can help -
How can I change the height of TextBox_size (MC). Is everything controlled by the movie size?
I put the scrollbarDynamic7.fla at http://www.bitweb.com/test for reference
TextBox._height = TextBox_Height;
function springAction () {
scrollpos = -scroll._y;
ratio = (content._height - TextBox_Height) /(TextBox_Height - scroll._height);
NewPos = Number((scrollpos*ratio));
difY = newPos - content._y;
addY = difY / 5;
overshootY = overshootY + addY;
content._y = content._y + overshootY + addY;
}
function easeOut () {
scrollpos = -scroll._y;
ratio = (content._height - TextBox_Height) /(TextBox_Height - scroll._height);
NewPos = Number((scrollpos*ratio));
difY = newPos - content._y;
content._y = content._y + difY / 3;
}
Cheers
Kobus
How To Delay The Start Of External Swf(start From Say 10th Frame)
I am using the following code to load an external swf.Now I need to start the playing of the swf movie not from frame 1 but from say 10th frame.
Please help
Code:
var myMcl:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes, totalBytes) {
//swfToLoad._visible = false;
loadedPercent = Math.floor((loadedBytes/totalBytes)*100);
_root.bar_mc._xscale = loadedPercent;
//trace(bar_mc._xscale);
c.text = loadedPercent+"%";
//trace(loadAnim.percLoaded.text);
spacer.loadMovie("images/loadingss.jpg");
};
myListener.onLoadComplete = function(targetMC:MovieClip) {
swfToLoad._visible = true;
loadAnim._visible = false;
//swfToLoad._width=367;
//swfToLoad._height=255;
}
myMcl.addListener(myListener);
myMcl.loadClip("Jason_500.swf",swfToLoad);
Cursor Speed And Direction Math To Jump Cursor
Looking for a little help.
I have a project that implements a jump type of desktop mouse interaction. Basically what this does is ...when the user moves the mouse, if moved fast enough (beyond a set speed threshold) the mouse jumps a predetermined amount in the direction the mouse was originally traveling. So I've tried to break it down this way.
First I need to calculate the speed. Based on the below code I can calculate speed on x and y axis but not sure how to evaluate overall speed as a function of both together.
Code:
attachMovie("mouseMC","mouse_mc",1000);
mouse_mc.onLoad = function() {
Mouse.hide();
};
var vxMouse:Number = 0;
var vyMouse:Number = 0;
var xi:Number = _xmouse;
var yi:Number = _ymouse;
mouse_mc.onEnterFrame = function() {
vxMouse = _xmouse - xi;
vyMouse = _ymouse - yi;
xi = _xmouse;
yi = _ymouse;
_root.speedX =vxMouse;
_root.speedY =vyMouse;
_root.cordX =xi;
_root.cordY =yi;
setProperty(this, _x, _root._xmouse);
setProperty(this, _y, _root._ymouse);
updateAfterEvent();
};
I have also added some code to provide a cursor trail.
Code:
onClipEvent (mouseMove) {
if (i >= 100) {
i = 0
}
i++;
this.duplicateMovieClip("flare"+i, i+10);
_root["flare"+i]._x = _root._xmouse;
_root["flare"+i]._y = _root._ymouse;
}
onClipEvent (enterFrame) {
if (this._name == "flareMC") {
_visible = 0;
} else {
this._alpha -= 5;
this._rotation += 2;
this._xscale -= 5;
this._yscale -= 5;
if (this._alpha<=5) {
removeMovieClip(this);
}
}
}
The next part is to evaluate the direction. Now I have done this in reference to a set spot MC using the following code accept that it doesnt update as the mouse moves therefor its only provides the direction from the starting point. Is there a way to update this on the fly as the mouse moves.
Code:
onClipEvent (mouseMove) {
//mouse angle code
x = this._xmouse;
y = this._ymouse*-1;
angle = Math.atan(y/x)/(Math.PI/180);
if (x<0) {
angle += 180;
}
if (x>=0 && y<0) {
angle += 360;
}
_root.angletext = angle;
updateAfterEvent();
}
Thirdly once I have the the speed and the direction how to I go about jumping the mouse distance x in the direction the mouse was moving?
I hope I explained this well enough...if not please shooot me some questions. Any help would be greatly appreciated.
Hand Cursor Turns To Text Cursor Over Button
if you goto the action section and then click the 13th from the left. ( kris foley) the hand turns to a text thing.
I'm not sure whats going on.
Thanks
http://www.ryanhamiltonphotography.com
Custom Cursor To Return To The Regular Mouse Cursor
How can I get my custom cursor to return to the regular mouse cursor when in the bottom 3rd of my flash movie. I need to do this for nav functions and I want the regular cursor actions in this area. So to recap: within the top 2/3 of the movie I will have my custom cursor, upon entering the bottom 3rd of my movie I need the cursor to switch back and vice verse...
my code below, please any suggestions are very helpful as I have tried several things:
stop();
import flash.events.Event;
import flash.events.MouseEvent;
import flash.ui.Mouse;
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, moving);
function moving(evt:MouseEvent):void {
if (cursor.currentFrame != 0) {
cursor.gotoAndStop(1);
}
cursor.x = stage.mouseX;
cursor.y = stage.mouseY;
cursor.mouseEnabled = false;
evt.updateAfterEvent();
}
//These three eventlisteners are telling flash to "listen" for specific events
//in our case if the mouse moves and if the mouse button is down or up.
//then if one of these events happens, it calls a function (mouse_down, mouse_up or moving).
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouse_down);
stage.addEventListener(MouseEvent.MOUSE_UP, mouse_up);
// This is how to construct a simple function,
// this function will write in our text field "mouse is moving"
// when the even is raised by the eventlistener
// function just like above, just for the mouse down event.
function mouse_down(e:MouseEvent) {
if (mouseX < 800 && mouseY < 450) {
timer.start();
timer2.start();
}
}
// function just like above, just for the mouse up event.
function mouse_up(e:MouseEvent) {
timer.stop();
timer2.stop();
}
Thanks again and help!
How Can I Start An External Program And/or Start A File
I've tryed:
on (release) {
fscommand("Exec", "program.exe");
stop();
}
Also I've tryed:
on (release) {
fscommand("Exec", "start.bat");
stop();
}
And in the .bat file I've put this:
@echo off
start file.doc
exit
But this does not seem to work, what Am I doing wrong???
Thanx alot!
FLV Start Time? Can I Start It Playing 2 Secs In?
Is there a way with actionscript to tell an FLV to start playing 2 seconds into the video. What I have is an FLV that has 2 seconds of black at the beginning, but I don't want that to play.
Or if anyone knows a way to re-encode an flv so that I can get rid of the 1st 2 seconds. I've tried re-encoding it with Riva Encoder but it just gets all screwed up. And the Flash encoder won't even let me add it to the que. Any help would be appreciated.
Thanks,
Lady
Sound Start Doesn't Start
I've been experiencing this problem. Sound.start() doesn't always start. A lot of times, it does, sometimes, it doesn't start for me. Sometimes it happens even after sound load has just finished. Has anyone experienced the same? any suggestions?
Edited: 08/24/2007 at 01:26:57 AM by nehcdet
Textbox Changes To Input Textbox.
Here my code is working inside a for loop which checks inside the XML files and retireves the content...I am not writing the loop here......because there is lots of code inbetween so you don't get the correct idea.
var textmessage = importXMLtemplate.firstChild.childNodes[j].attributes.message;//message contains the text
var TextBoxName = "TextBox" + j;
template_mc.createTextField(TextBoxName, 10, 100, 100, 165, 30);
template_mc[TextBoxName].styleSheet = myCSS;//stylesheet I called above not writing here.
template_mc[TextBoxName].html = true;
template_mc[TextBoxName].multiline = true;
template_mc[TextBoxName].htmlText = textmessage;
template_mc[TextBoxName].type = "input";
Here the message is showing inside the textbos properly loading form XML. The only problem is that the textbox is not changing to input text box.
I want to change the text box to input text box and change the value inside the text box
please help...
MC Follows The Cursor. How To Restrict The MC Movement And Not The Cursor?
I am trying to make something similar to this idea but my MC has a couple of buttons that follow the standard cursor - which is not hidden.
The movieclip movement is working by using:
Code:
onClipEvent (enterFrame) {
this._x += (_root._xmouse-this._x)/25;
this._y += (_root._ymouse-this._y)/25;
}
At the moment with this code, the button mc follows the mouse over the entire stage. I am trying to figure out how I can limit the movement to a smaller proportion of the stage, by either a hit area or some other method
Obviously I wont want this to effect the normal cursor movement, just the MC that follows it. Anyone give me a clue of how I should go about trying to do this?
Thanks
To Start Again, Or Not To Start Again, That Is The Question
help!
I know I'm a dumbass, no need to rub it in. Guess who just learned what a smart clip is. now here's the issue:
http://www.7inone.info/test4/
everything on this site that SHOULD be a smart clip, ISN'T. Every single button and movie clip and movie clip holder has been scripted individually. And now, this far along, I realize that the smarter thing to do would have been to use smart clips. So do you think I should start over, and do it right? or should I just leave it, and learn from my mistake for future work. I would love to start again and get it perfect, but the reality of the matter is that the boss want's the site ready to go - and SOON.
any additional comments on over all design, etc. would be appricated.
thanks guys
sid.
Immediate Start Instead Of Clic Start
I have a fla-file which almost is just perfect for my needs. The only thing I need to change is :
on (release, keyPress "<Enter>") {
gotoAndPlay ("start");
}
I would like the movie to start immediately instead of after the visitor clicking a key. No need for saying that I am totally new to flash, is there.
Roger
Set Cursor To I-cursor Usually Seen Over Textfields
I want to us AS to set the cursor so that it's the I-cursor that's over a textfield. In this case, it would be over a text field, but one that's in a movieclip that has an event handler for it. Because of that _parent event handler, the cursor is a hand when the mouse cursor if over that field. Is there some way I can change the cursor to the I-cursor? Do I need to make a bitmap of the cursor and use it as a custom cursor? I'd prefer not to do it that way if I can avoid it.
Flash Wont Start, Quicktime Wont Start And Wont Uninstall
Quicktime will not run.
I have tried to uninstall quicktime v 7.1.5 and recieve the msg fatal error during installation.
When I try to run flash 8 it crashes with no error message.
I think it is a problem with Itunes and quicktime conflicting with flash. I require flash and use it frequently am not so keen on itunes yet i'd like to use my ipod.
If anyone can help, I'd be verry appreciative.
Using .txt In A Textbox
ok im trying to get some text from a .txt file into a dynamic text box. how can this be done?
and im using flash MX
End Of A Textbox
Hello All,
I am having a problem finding a script example to detect if a scrollbar has reached the end of a textbox. If anyone knows or has an example, I would apreciate it if you could post it. Thanks.
Bill Van Pelt
Textbox
I need to be able to display a Microsoft Word doc within a dynamic textbox. I would like to do this without converting the word doc to a txt file. Is this possible.....
Using <img> Tag Into A Textbox
I would like to know if it is possible to use the "<img>" tag when loading html text into a textbox...
The thing is that I'm designning a page where I need load some dynamic text with images according to the text next to it.
Is it possible, or is there another way to do this?
Thanks, Francisco
.jpg In Textbox?
Hello,
Please help! Is it possible to put some .jpg's in a textbox area so the user can scroll them?
Tnx
Add 1 To Textbox
if I have a textbox with a value of 1 and I want to set a command to add 1 to it, so its new value would be 2, what do I do ?
Because if I write text.text += 1; it returns 11
thanks
Textbox
Hello
can you help me. I have a problem?
The problem is I have a textfield with a scrollbar I need the script to refresh te scrollbar every time you click on a different button?
help me?
Textbox ?
Hi,
I have two textbox questions. The first one is. I have a input textbox. I want the textbox to default to zero if it is left blank. How do I do this?
The next question is I have a dynamic text box. The text box displays a calculation like 7.89903872676. I want the text box to only display something like 7.8990. How is the best way to do this? Thank you very much in advance for any help with this problem.
Thanks,
Jon
Textbox's
Hi, im trying to create a order form. in one frame i have 3 input text boxes named houseNo, street, postcode. I want to collect all the data inputted into these in to a dynamic textbox on another frame after clicking a button. Im sure one of u could help me as im very new to flash?cheers
[F8] Textbox
Whenever I test my movies, the text is cut off. Why?
Put A Textbox Above Anything Else
I have some movieclip and one textbox (dynamic text) but my movieclips hide so I can't see the text.
I have put the layer that have the text on top beside timeline but nothing happend.
Is that any way I can put the text above anything else with actionscript??
Textbox
Hey
Im using the following code on a button to take me to a certain scene depending on the number in the dynamic text box
on(release){
if (_global.check.text == 1) {
_level0.gotoAndStop("Pot_Con_Store");
} else if(_global.check.text == 0) {
_level0.gotoAndStop("Con_Store_Quiz");
}
}
The button is in a movieclip, but for some reason it just keep goin to the same scene regardless off the textbox.
Please could someone help im really stuck
Thanks in advance.
Textbox Help
um... how do I make a textbox with many links in it?
Textbox To Textbox
Hello,
I need to pull in a .txt file and parse it using the tutorial for dynamic text with CSS tutorial found here on Kirupa... however, what I need to do is from within textbox1 click on a link and have it load another .txt file (or variable withint the same external .txt file) into textbox2... I've attached a zip with my fla and .txt file!
asfunction, perhpas?
Thank you in advance!
Textbox
hello,
this is the first time i have used form stuff in a flash app.... where can i find a textbox... i looked in the form elements box but there is everything but a textbox...
|