ActionScript 3.0 :: Selecting Text When AIR Window Dragging Is Enabled?

Jul 28, 2011

I made an AIR app and enabled it so the user can move it around the desktop where they want. One problem is on a page of textfields, if the user tries to select text (click, drag cursor to select the text) the app drags instead.

Any easy solutions other than having to set up listeners for every textfield and "interrupting" dragging?? (AIR 2.7)

View 1 Replies


Similar Posts:


Professional :: Default Dragging Can Be Enabled When Cursor Is Over An Image/ Moviclip?

Jul 26, 2010

My application (AS3) uses Flash Player right-click zoom feature. However, when zoomed in I cannot drag when the cursor is over an image, navigation bar or active area.This makes the menu and several other pages impossible to navigate when zoomed in.The only option is for the user to zoom out and then zoom back in on the next area they want to look at.how default dragging can be enabled when cursor is over an image/ moviclip?

View 1 Replies

ActionScript 3.0 :: AIR Selecting/Highlighting A File In A Window?

Feb 15, 2012

I'm currently building an app in Adobe Air 2.6. I use this line of code:

Code:
var url:String = "C:Workspace";
var ff:File = new File( url );
ff.openWithDefaultApplication();

Which opens up the directory in a new window, However, say I have the name of a file in that directory.. How do I make the window open and highlight/select the file?

View 1 Replies

Flash :: Resize AIR App Window While Dragging?

Apr 2, 2010

So I've noticed Windows 7 has a disturbing tendency to prevent you from dragging the title bar of windows off the top of the screen. If you try - in this case, using an air app with a draggable area at the bottom of the window, allowing you to push the top of the window up past the screen - it just kicks the window back down far enough that the title bar is at the top of what it considers the 'visible area.'

One solution would be to resize the app window as it moves, so that the title bar is always where windows wants it. How would you resize the window while you're dragging it, though? Would you do it like this?

dragHitArea.addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent):void{
stage.nativeWindow.height += 50;
stage.nativeWindow.startMove();
stage.nativeWindow.height -= 50;
});

see what's going on there? When I click, I'm doing startMove(), which is hooking into the OS' function for dragging a window around. I'm also increasing and decreasing the height of the window by 50 pixels - which should give me no net increase, right?

Wrong - the first '.height +=' gets executed, but the '.height -=' after the .startMove() never runs.

View 3 Replies

ActionScript 2.0 :: Text Format Input Text Bold Without Selecting Text?

Feb 4, 2009

Trying to format input text fields using format buttons in Actionscript has been challenging. I've been able to put some pieces together, however I am still missing some things. Here's my code:


Code:
function selectText() {
startSelect = Selection.getBeginIndex();[code].........

I need the ability to click the Bold button and it bolds or unbolds at the cursor so if I hit the bold button what I type from that point on will be bold until I hit the button again and then it goes back to regular. I am able to change it to bold or unbold by selecting the text and clicking the button but I also need to do it without selecting.

View 3 Replies

Flex :: Dragging The AIR Application Window Around The Screen?

Jul 31, 2011

I have an AIR application. It should be moved around the screen with the mouse. In order to achieve this I use the event: this.stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, true,-2);

It should be activated with the lowest priority compared to inserted elements for example those that should be scrolled, clicked, etc. I tried the solution shown below with the event priority set to -1 because there might happen 2 different events and my moving application event should be the last one to be serviced or shouldn't be serviced at all.

[Code]...

View 1 Replies

Improve Text Quality In Flash With Enabled 3D?

Aug 7, 2011

I've put text in TextField, set Z coordinate to enable 3D, and placed object close to the screen plane. Text quality is very bad. Is there any way to force Flash draw proper vector text? Fonts are embedded, so it's not a problem.

View 1 Replies

Make Dynamic Text Look Static While HMTL Tagging Is Enabled?

Nov 15, 2009

How do I make dynamic text look static while the HMTL tagging is enabled?

I have a dynamic text filed where I am setting the text value through a variable. Now, I need that text to look static on run time and HTML tagging on the field enabled.

View 5 Replies

Scrollable Text Including Subscript And Superscript Options Enabled?

Oct 29, 2010

Friends, I am using Actionscript 2.0 and want to scroll simple text. I did it with the default scrollbar component and it works fine.

But the issue is that I have some subscript and superscript in my text and this option is disabled in the dynamic text field.

My text is like:- CO2 + H2O

View 3 Replies

ActionScript 3.0 :: Selecting And Formatting Text?

Nov 8, 2010

I'm currently looking into selecting and formatting text but I think I need someone to point me in the right direction.What I would like to achieve is this : So after clicking the button: the text "This selected....." should be red. Only red in the output box would be ok too, but preferably in both.

The input text is an input textfield and the output a dynamic textfield.I have been looking into TextSnapshot but this only seems to apply to static text. Using the htmlText property I could input a string with html tags but that's gonna be complicated I guess. Is there any way of achieving this using TextField.setTextFormat() ?

View 1 Replies

ActionScript 1/2 :: Make Dynamic Text Look Static While The HMTL Tagging Is Enabled?

Nov 16, 2009

I have a dynamic text field where I am setting it's text value through a variable. Now, I need this dynamic text field content to look like static font on runtime. I tried embedding the text field but that makes my file so heavy and most importantly, it disables the HTML tagging on the text field.

View 8 Replies

ActionScript 3.0 :: Set Focus On TI Component Without Selecting Text?

Mar 19, 2010

Is it possible to set focus on a text input component that contains text without selecting the text? I want to be able to focus on the component and have the cursor flashing after the last letter in the field.I am currently using:myTi.setFocus();That correctly focuses myTi but it also selects all of the text currently in the field. What would I need to add to just have a cursor flashing at the end of the characters currently in myTi?

View 1 Replies

Flex :: Selecting Multiple Text Objects

Oct 5, 2010

Consider there are two text field objects:

TextField1="texta";
TextField2="textb";

Output: texta textb Now I want to select from "ta" in TextField1 to "tex" in TextField2. By the drag of a mouse. I know that by conventional methods it is not possible? Is there any other way to achieve this? And I need to highlight the text also.

View 1 Replies

ActionScript 3.0 :: Textfield Scrolls When Selecting Text?

Aug 10, 2011

I 've got a textfield that is inside a movieclip scroller. I've got an issue though, when selecting the text, and dragging down the text moves one notch, is it possible to disable that?

Basically it does it with mouseWheel to, but I've set that on off, so it's ok.
But is it possible to disable it when selecting, too?

The text comes from an XML file, and I suppose that scroll happens because of white space on the XML. I tried disabling white space using AS3 but it doesn't seem to work.

View 9 Replies

Professional :: Selecting TLF Text Sorta Freezes Flash?

Oct 11, 2010

When I use TLF text in CS5 flash seems to use to capacity / I cannot do any clicks for around 10 secs when selecting/deselecting textfield. What could be the reason for flash slowing down so extremely?
 
Im using WinXP, SP3 System: HP xw6600 Workstation @ 2.50GHz, 3,25 GB GB of RAM,

View 3 Replies

ActionScript 3.0 :: Accessing The Text Inside A Row From A DataGrid Without Selecting The Row?

Jan 31, 2011

I am developing a coverflow application where I have populated a data grid from an xml file. Now when I click on the cover flow , it generates a pop up with a result drawn from a random number generate function.This random number matches with the index of the data grid and displays the row in the pop up. I could not access the text inside the row. How to do it?

[Code]...

View 0 Replies

ActionScript 2.0 :: Dragging A Dynamic Text Box?

Aug 4, 2009

When you drag the orange slider across the thumbnails of chips, it will dynamically change the area above the color bar to that color and display the color name in the same area. The problem is that I would also like the name to display in the black info area below the orange slider as it moves along the colors while dragging. But as you can see, the black info box only displays the color name that you pick it up on and then the one that you drop it on. The code to display it above the color bar and in the black info box below the slider is identical, but for some reason, it won't display in the info box while dragging.It's possible that the code I used to get the info box to follow the slider is doing it, but I don't know an effective other way to do it, considering you can't drag two items at once. Here's the work around that I came up with (on the info box movieClip itself). There's more to it, but here's how I made it follow:

ActionScript Code:
onClipEvent (enterFrame) {
if (_root.dragging) {

[code].....

View 1 Replies

ActionScript 3.0 :: Typing Input Text, And Then Dragging It?

Mar 30, 2009

is it possible for a user to enter a frame, be able to type their name into an InputText field, and then drag it around the screen?

View 5 Replies

ActionScript 3.0 :: Input Text And Sprite Dragging?

Apr 7, 2009

I'm trying to create a draggable dialog, which includes an input text field and I want to prevent the dialog from dragging when the input text is selected. If I create a sprite with a hit area at the top everything works as expected, but when I add the input text field below the hit area selecting the text drags the dialog. Here's an example of the problem: 
 
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.text.TextField;

[Code].....

View 3 Replies

ActionScript 3.0 :: Dragging UIScrollbar Into Dynamic Text Field

Oct 6, 2010

I'm dragging the uiScrollbar into a dynamic text field. When I preview (control+enter) the scroll bar works fine. When I publish and preview in a browser the outline of the scroll bar is there but with out the parts/components up and down arrows the little bar you grab holt of and pull up and down.

View 1 Replies

Professional :: Get The Embedded Text Option And Selecting Arial Regular But Again It Keeps Reverting Back To Arial MT?

Nov 1, 2010

I'm using Flash Pro CS5 Win 7 to edit an existing FLA file, the text is suppose to be Arial Regular but it keeps changing to Arial MT. I've tried the embedded text option and selecting Arial Regular but again it keeps reverting back to Arial MT.

View 4 Replies

ActionScript 3.0 :: Get The Output Window Text In To FlashInfo Text Box On Stage?

Feb 6, 2010

I have the following code which shows the Flash Player Information in OUTPUT WINDOW. How can I view the same on FlashInfo (Dynamic Text Box) Texbox on stage?

Code:
import flash.system.Capabilities;
var flashPlayerMajorVersion:int;
trace("Getting Flash Player version ...");

[code].....

View 2 Replies

ActionScript 2.0 :: Link Input Text To A Variable And Output That Text To The Output Window Using Trace

Jul 22, 2005

I'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?

View 5 Replies

Asp.net :: Check If UDP Traffic Is Enabled?

Feb 22, 2012

I have this application that consists of two phases. Queuing phase and chatting Phase.The chatting uses UDP (a flash-app).So before the user enters the queue phase I want to check if UDP traffic is possible.I could do this both in the ASP.NET app (that wraps the flash-app) or in the flash-app.I'm not sure on how to do this in either of themMy initial thougth is to connect via UDP to some tiny webservice a server, but is there an easier way of doing it

View 1 Replies

ActionScript 2.0 :: No Tags Are Being Enabled?

Oct 13, 2007

Ive tried using <b>, <strong>,<bold> etc..nothing happens My text field is 11pt verdana, bitmap text, HTML enabled.

[code]...

The text is showing up fine, but no tags are being enabled. Here is an example node that I am loading in.

[code]...

View 8 Replies

ActionScript 3.0 :: .enabled Not Working With Eventlisteners?

Sep 28, 2009

I tried using a .enabled = false; when I already had a click event on that movie clip. I found that you need to remove the eventlistener instead of making enabled false.Why doesn't enabled work when you have event listeners?I'm really more curious than in need of an answer since removeEventListener worked fine.

View 2 Replies

ActionScript 2.0 :: Actions Only Enabled On Mouse Over?

Mar 4, 2003

in the attached file there are 2 MC, I want to activate the ball_mc only when I�m over other MC. I tried multiple things but I can�t manage to find what is the problem.

View 2 Replies

ActionScript 3.0 :: SimpleButton Enabled Property Not Working?

Nov 20, 2009

I have a button on the stage that when it is clicked I want to disable it until an animation is done playing then re-enable it.

Code:
button.addEventListener(MouseEvent.CLICK, onButtonClicked);
function onButtonClicked(e:MouseEvent):void {

[code]....

View 2 Replies

ActionScript 3.0 :: Enabled Movie Clip Not Getting Disable

Jun 11, 2010

What will my movie clips not disable here. They are still clickable? I get my trace 24 times. what am i doing wrong. I have 24 cards all named card0_mc - card23_mc

code:
function disableCards() {
for (i=0; i<24; i++) {
trace("in here");
this["card"+i+"_mc"].enabled=false;
}
}

View 1 Replies

Flash Causing Screen To Flicker While Enabled?

Sep 23, 2009

when I enable my Adobe Shockwave Object my screen will flicker when i move the mouse around the screen.  I have uninstalled it and reinstalled but it didn't work. 

View 1 Replies







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