ActionScript 3.0 :: Making A Text Box Draggable?

May 10, 2011

ive got a text box a user can enter some information, an add_btn whcih will place the text onto an image inside a UILoader.i keep getting this error :

Quote:

TypeError: Error #1010: A term is undefined and has no properties.
at DLS_fla::MainTimeline/onClickadd_btn()

when i hit the add_btn... why has it got no properties

ActionScript Code:
function onClickadd_btn(evt:MouseEvent):void{
//and the work around for removing the old text when new confession is added.
if(newTextBox!=null){

[code]....

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Making Copied Movieclips Draggable

Sep 28, 2010

When you click on a movieclip in the menu, it is then copied and added to the container_mc movieclip.

My problem is that I can't figure out how to make the movieclips draggable once they are in the container_mc.

I tried the following as a test but its only working for the existing movieclip, not the new one like I want it to[code]...

View 2 Replies

ActionScript 2.0 :: Duplicating Movieclips & Making Draggable?

Apr 16, 2003

I am basically trying to duplicate a movieclip by using a button.. (no probs there).however, i want to drag each movie clip individually.. ( my brain froze)here is my butchered code..// graphic is the mc i wanna drag, n is the textfield that i want to count up.

on (press) {
addmore = "graphic" add n;
duplicateMovieClip("graphic", addmore, n);

[code]......

View 14 Replies

ActionScript 3.0 :: Making A Draggable Item That Can Only Drag On An Axis?

Oct 5, 2010

What I want to create is a movie clip, that I can drag, but only on axis, such as up and down, but not left to right. For example, only on an X axis, but not on a Y axis.The code i'm currently using to make the items draggable is:
 
pc.onPress=function(){
startDrag("pc",true,50,50,550,350);
removeMovieClip("cnt");

[code]....
 
"pc" is the instance name of the movie clip I want to drag. "cnt" is a line that I've got drawn between the various draggable points I've created.

View 3 Replies

ActionScript 3.0 :: Add Text To A Draggable Mask?

Apr 5, 2010

I want to add a line of text to a small mask - the mask reveals a portion of an image underneath - the user drags the mask around the stage

2 movie clips

1. an image that fills the 900x700 stage

2. a 200x200 rect with blur that acts as a "window" to the image

The code below works fine (almost - see comment) but how do I add text to the mask?
 
img_mc.mask = mask_mc;mask_mc.buttonMode = true;img_mc.cacheAsBitmap = true; // for the blur
mask_mc.addEventListener(MouseEvent.MOUSE_DOWN, dF);
mask_mc.addEventListener(MouseEvent.MOUSE_UP,

[Code].....

View 8 Replies

ActionScript 3.0 :: URL Of Dynamic Text Cant Click Through A Draggable MC?

Oct 31, 2010

I have a movieclip that sits ontop of another movieclip that holds dynamic text with url links in it.Since the movieclip that sits ontop is what is capturing the mouse events it is blocking the mouse events I need from the movieclip containing the dynamic text.

View 1 Replies

ActionScript 3.0 :: Make Dynamic Text Draggable?

Aug 10, 2011

I have a game where the user inputs text and this text is shown on different scenes. I used the following code, where 'input1_txt' is the input text box and 'output1_txt' is the dynamic text box where it is displayed:

Code:
textenter_btn.addEventListener(MouseEvent.CLICK,textdisplay);
var enteredText:String = "";

[code]....

View 12 Replies

ActionScript 2.0 :: Input Text Box Inside Draggable MC?

May 2, 2004

I wanted a input text box and a submit button inside a draggable movieclip.

I created a base MC which has the necessary graphic. Then I created an input text box and a button. Then made all these components into single MC(final) and associated the following code with the combined MC.

on (press)
{
startdrag (this.final)

[Code]....

The problem here is I am able to drag the MC (final) but unable to input text in the input text box associated with the MC.

View 1 Replies

ActionScript 2.0 :: Draggable Buttons - Moving Dynamic Text

Dec 7, 2002

Basically I have button contained in a movie clip (scroller), I want to be able to drag the button up and down and get this to move some dynamic text. If you want to have a look at the fla: [URL].

Code:
on(press){
_root.nFlag = true
}on(release){
_root.nFlag = false
}

And this code for the mc:
onClipEvent(enterFrame){
if(_root.nFlag){
if(_root._ymouse <= 400 && _root._ymouse >= 0){
this._y = _root._ymouse
}}}

My problem is that this only moves the button up and down, and doesn't move the dynamic text. Plus when the mc is named scroller it seems to conflict with code and moving the button doesn't work.

View 1 Replies

ActionScript 2.0 :: Make A Draggable Movie Clip With An Input Text Box In It?

Aug 27, 2004

I want to make a draggable movie clip with an input text box in it. It's going to be a "Make your own comic" game, where you can type in the speach bubbles what you want the characters to say.

View 7 Replies

Making Scrolling Text In CS5?

Feb 4, 2011

I have a simple text field that is read only and it's very long, so I just want to use a scrollbar on the right-hand side. I dragged a UIScrollbar component to this text area, I lined it up, same height, and even named the text area as the scrollbar's target, but when I compile the swf, I get a blank scrollbar next to the text and 2 other scrollbars off the the right of the text!!! I also tried adding the scrollbar via code with the same results.

View 2 Replies

ActionScript 3.0 :: Making Buttons With Text CS3

Apr 24, 2009

I am new to actionscript 3, when I publish this code everything works fine except that the hand disappears when it is over the text. Is there something that I am missing?I tried applying menu_txt.buttonMode = true, but I got an error.[code]

View 3 Replies

AS2 ::Making A Dynamic Text Box Bold?

Aug 24, 2010

lets say theres a dynamic textbox with the name 'txt1'

i typed the code:
txt1.bold = true;

but it doesnt work, the text is still not bold,

View 1 Replies

ActionScript 3.0 :: Making XML Text Clickable?

Aug 27, 2008

trying to bring in a list of people from an XMLdocument when a button is pressed, and once that list is broughtin, I want to make each name clickable so that a reader can findout more information about that person (the text of which wouldalso be from an XML document). The first part seems fairlystraightforward (see coding below; Im not sure if this isthe best way to do it, but it seems to work). Im stumped,though, about how to do the second part (make the names clickable).

View 5 Replies

ActionScript 2.0 :: Making Text Bold In Textfield?

Jan 29, 2010

I want to make an imported text from a textfile be bold.ow do I do it?This is what it looks like now:

this.createTextField("my_txt", 10, 10, 10, 80, 100);
my_txt.setNewTextFormat(new TextFormat("Arial",12,0xCC6600));
boldFormat = new TextFormat();

[code].....

View 2 Replies

Actionscript 3 :: Flash 10 3D Making Text Blur

Jan 22, 2010

I got a Sprite that I'm rotating with rotationX & rotationY. This converts the clip to 3d object. Which makes texts in it blurred.[code]...

BUT, when I'm adding another clip to this sprite, that has z=400 (or any z). The texts just won't get crisp, the other clips in my sprite that I have been rotated seems to still be 3d even if i set:this.transformation.matrix3D = null;

I've even tried to removeChild on the clip with z=400 when rotation is 0. And also tried setting matrix3D = null on that clip. how to "get rid" of the 3d of the clip with z=400? Or do I have to move that clip with z away from the clip I'm rotating (other things will mess up =)?

View 2 Replies

Flash :: Making The Text Appear From The Bottom Of TextField?

Nov 16, 2010

I'm working on a simple chat application in Flash / AS3. There's a Chat input box, a Send button, and a TextField where the contents of the chat input box appear after the message has been sent.By default, when you add text to a TextField, the text appears at the top, and works it's way down to the bottom. I would like to do (something close to) the opposite: Have new messages appear at the bottom of the TextField, and old messages move up to the top as new messages are added.

View 2 Replies

Actionscript 3.0 :: Making A Hand Cursor Appear Over Text Box?

May 15, 2009

I've been trying for literally three days now to make a hand cursor appear over a dynamic text box -- which pulls text from an XML doc. The link works fine just no hand cursor.

View 8 Replies

ActionScript 2.0 :: Making Scrolling Dynamic Text

Dec 23, 2003

Is there anyway of making a scroller like the following but having dynamic text? So that it doesn't have that blur? [URL]

View 1 Replies

Flash8 :: Movieclip Mask Making Text Invisible?

Jul 14, 2010

I have a movie clip which has a dynamic mask applied to it to provide a scroll effect.

The mask is generated with the 'create blank movieclip' method.

So the mask is a movie clip over a movie clip.

I hunted for invisible text last night and found this link [URL]

which implies it's to do with the mask being on a layer, but from what I can gather from reading the AS, it's not it's on a new blank movie clip.

Also many other links I found all imply it's an issue with dynamic text and the font needs to be embeded, but the underlying text is not dynamic, it's static normal text which has been used in a movieclip to create animated rollover/out effects.

So why is the text missing when the content is scrolled into view?

If you hover over where the text is supose to be, the animation plays and the text becomes visible?

Also the arrow graphic next to the text which forms part of the animation does display; it's just the text portion which is invisible?

View 2 Replies

ActionScript 1/2 :: Making An Aircraft Instrument With Moving Text?

Mar 30, 2009

I'm trying to progress in my actionscript skills and use more actionscript. In the past I created a static movie clip maybe 50 pixels wide by several hundred pixels tall. Starting at the top of the strip the alitiudes were written next to a hash mark, a couple of carriage returns, a hash mark without any numbers, a couple of carriage returns and a hash mark, and the process repeated.

[Code]...

View 25 Replies

ActionScript 3.0 :: Making A Text Field Ignore The Cursor?

Oct 7, 2008

I am creating a dynamic text field in the IDE and putting it on top of a simple one-color square movie clip. I've attached a listener to the movie clip in AS 3, to make it act like a big button. However, since the text field is on top, it blocks the button from reading the cursor, within the text field. I set "selectable" to false in the IDE, on the text field, but that didn't seem to work. Any ideas? Do I have to add a listener to the text field, also?

View 2 Replies

ActionScript 1/2 :: Making Cursor Appear In Input Text Field

Jun 8, 2011

When I Selection.setFocus(someTextField); the cursor doesn't start blinking in the text field. I've tried it in the flash IDE as well as in a HTML page, I can't seem to get the cursor to start blinking automatically in an input TextField.

I even did an onEnterFrame script to make sure the TextField was loaded and ready before I did the selection. I've also used Selection.setSelection(0,0) , etc. It just never shows up.
 
If I click the input TextField the cursor shows up as normal though. I just want it to automatically appear as this is a form and I want it to be clear to the user which textfield is currently selected when I change focus.
 
This is for a touchscreen project with an on-screen keyboard so the user has no mouse.
 
Even if the user types some letters and sees them appear in the input box properly the cursor STILL doesn't appear. Only when I click the input does the cursor appear.

View 1 Replies

Actionscript 3 :: Making Pieces Of Text Stylable (for Urls)

Dec 1, 2011

It's possible in plain HTML to wrap pieces of text in spans or tags that can make it easy to style them later. For example, if I wrap "part can be styled" in a span wit class stylable, I could define my own style later for it. This <span class="stylable">part can be styled</span> later if needed I'm new to actionscript, and I'm wondering if something similar exists for actionscript/flex?

View 1 Replies

ActionScript 2.0 :: Making A Little Progress But Stuck On The Text Boxes

Aug 9, 2009

I am making a little progress but stuck on the Text boxes. I know it may be a very simple thing but I want to get it right this time. So In my game I created a dynamic text box. I set the varname to dtext. I am able to make words come up upon doing certain events, such as clicking a circle it will say you clicked a circle. But I want it to be a timer so after say 5 seconds the dtext reverts back to blank.

If you know a better way for text boxes such as the .text script teach me about it. Iam looking for an easy way to do this. If you need more information such as type of game just let me know and I will try to answer. so when I click things in room I want text to show up but vanish after 5 seconds so it doesn't stay on screen forever.

View 9 Replies

ActionScript 2.0 :: Errors While Making Scroll Text Buttons

Apr 7, 2010

so the problem is that i was following instructions for making scrolling text with a custom button. and i put the following script (the instances are scrollUp_btn and scrollDown_btn):[code]and afther that i auto-checked it and (besides not working in the preview) it indicates these errors:[code]then i switched the '}'s for '{'s or viceversa but it shows me the opposite error. what's wrong ?

View 4 Replies

Actionscript 3.0 :: Mask Making Dynamic Mc/text Disappear

Aug 25, 2009

I have created a list of MC's with dynamic text via xml to create a list of mc Buttons. All works well as I wanted, but as th elist is too long i want to create a scroller for these, anyway when I apply the mask and test this all the text dissappears, they are there as the links all work but the text seems to have turned invisible, want am i doing worng.

I am creating each mc button dynamically like:

var venueBtn:MovieClip = new MovieClip();
var venueTxt:TextField = new TextField();
etc

why the text disappears when appling a mask

View 2 Replies

ActionScript 2.0 :: Making Text Larger And Smaller By Buttons

Feb 13, 2007

I want to accomplish this. I want to have two buttons and my piece of text. When the user clicks the plus button the text gets larger. When the user clicks the minus button the text gets smaller.

View 3 Replies

IDE :: Making Animation Where Text Appears Via Masked Layer?

Apr 18, 2009

This is something I tried to do once long ago with Flash MX, and it did not work for me, and now with CS3, I find that the same concept is not working. What I am trying to do is make an animation where the text appears via a masked layer, but I would like the mask's gradient to be revealed in the animation. Here is what I have: And here is how it is being displayed during the animation:

View 8 Replies

IDE :: Making Text Size In Inputtext Field Larger?

May 6, 2009

thats all i need to do. anyone know how??

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved