ActionScript 3.0 :: Flash Preventing TextField From Getting Mouse Attention?
May 21, 2010
I want to have a Sprite with an child TextField, but without the textfield triggering or preventing any mouseover events from its parent.
An example would be a world map where each country has a label with its name. For smaller countries, the label would naturally exceed the country's borders. However, the label should not get in the way of mousing over whatever is beneath it (i.e. neighbouring countries).
View 2 Replies
Similar Posts:
Dec 9, 2009
I've got a text field that is deep down in a hierarchy of DisplayObjects. The root object is scaled by a variable factor.I want the text field to display it's text in a specific font size, but the text field scales because it's a child of the scaled root object. Is there any possibility to prevent this? I didn't find something in the Adobe documentation.
View 2 Replies
Feb 18, 2009
(This is within a Document Class external Manager.as)(Game controls are called in Controls.as and successfully assigned to Manager.root via addEventListeners within Controls)
Code:
Manager.root = this;
this.root.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, dont);
[code]........
View 2 Replies
Oct 6, 2005
Is there a way to prevent the mouse from changing into a hand when it's over a button? I want it to keep looking normal.
View 2 Replies
Feb 3, 2010
Is there a way to block mouse events except for a specific MovieClip or Sprite? i.e. I know that to prevent ALL mouse clicks, I can write something like:[code]
View 1 Replies
May 7, 2010
When the user presses the mouse, and releases it over a static textfield with selectable text, no MOUSE_UP event is fired - not on the stage and also nowhere else.I experienced this when using a scrollbar class on a movieclip with a nested static textfield.When the user drags the scroll handle and releases the mouse over the textfield, the dragging/scrolling is stuck.To test this, create a new AS3 fla file, place a static textfield somewhere, and put in some text. Make sure the selectable property is checked in the properties panel.Add this script to the timeline:[code]Now test the movie and click the mouse. You will notice that trace('up') will not occur when you release the mouse over the textfield.
View 2 Replies
Sep 8, 2009
edit: Resolved; my ActionScript function for parsing the mySQL results didn't correctly interpret a recently modified column, and the corrupted new output happened to be identical to the old output.
I have created an application that accesses a PHP/mySQL database, but it caches old information.
I used the workaround from Adobe's website, where I append '+ new Date().getTime()' to the URLRequest String, but the application continues to use the old data.
When I trace the URLRequest String and C&P it into a browser window, however, I receive the correct data.
View 2 Replies
Jul 8, 2011
Basically I have some TLF text as a symbol, it's read only, the font is embedded and I set mouseEnabled to false. It's sitting as a graphic, on top of a button. When I mouse over the text, or the area where the text would be, it prevents the button from receiving the on mouse over event. Using classic, dynamic text, this route normally works just fine. Any ideas what could be causing the problem?
View 1 Replies
Oct 29, 2010
We have a Flash application provided by a vendor. It reads its parameters from an xml file on our web server's file system. However, it can also be spoofed to read its parameters from an xml file sitting on another domain's web server. At first we thought crossdomain.xml might be able to fix this, but we've researched it and understand the purpose of crossdomain.xml. It won't solve this issue.Are there any ways of enforcing that a Flash application reads its input file only from the same server where the Flash application was served? Or is the recommendation just to initialize variables within the Flash app, not relying on an external file.
View 3 Replies
Apr 16, 2011
I'm working with a third party swf that I cannot change and am charged with making it work in a local environment, loaded within a container application I have built. The SWF was published for accessing the network sandbox, so whenever it invokes the ExternalInterface in a local html container, it throws a security sandbox error and kills execution. The ExternalInterface calls are all non-critical (logging) so if I can block them somehow, then I won't have a problem any more.
View 3 Replies
Jun 22, 2010
I am creating a textbutton using actionscript. the code is given below.
public function createTextButton(parentId){
var mytext:TextField = new TextField();
mytext.x = 478;
[Code]....
Now i want the click event of this button to be handled in my event handler function only. It should not navigate away to the 'href' source given upon clicking. How can i achieve that.
View 1 Replies
Feb 11, 2011
Client has a flash navigation menu on his website. When the site is accessed via [URL] the hardcoded links in the flash nav load pages properly. When accessing the website via the [url] the site navigation links can not load the proper pages and instead just redirect the user to the root domain.
I assume this can be fixed with a change to the .htaccess but I do not know how flash handles these links.
.htaccess:
Options +FollowSymLinks
RewriteEngine on
[Code].....
View 1 Replies
Nov 20, 2011
I have setup a box2d world with a keyboard controlled player. The player can walk and jump. How do I prevent the player from "sticking" to walls while jumping and pressing the directional key towards an object?
View 3 Replies
Feb 9, 2012
I'm working on a Flex 3 app, implemented in Actionscript 3 and MXML, that includes an embedded video player, which is essentially a black box--I load it as a SWF from another site on demand, and I don't have access to its source code. It does, however, inherit from Sprite.The problem is that, when focus is on the Flash app, the video player is somehow receiving and processing keyboard events, even when the player itself isn't in focus.So when users are typing text elsewhere in the GUI, if they hit the space bar, the video pauses.
I've tried intercepting key events in the Sprite's parent, and setting tabEnabled = false, tabChildren = false, and buttonMode = false on the Sprite, but nothing seems to work. It's as if the Sprite is getting keystrokes through an alternate Event path.how I can prevent the player from receiving keyboard events or input events entirely? It's fine with me if no input events reach the player, since I've implemented my own,separate video controls.
View 1 Replies
May 12, 2010
I'm starting a blog with a hosted wordpress instance and i would like to be able to stream music using a flash player on some posts.The problem is that every player i find uses a simple param to get the file url which makes it very easy for someone to find that url and just download the file.I know that it's probably impossible to prevent this all together, but i at least don't want it to be obvious.
View 4 Replies
Jun 2, 2011
I have a website with a flex application. The flex application has no user input - except for clicks for navigation. The website also uses no scripting language - i.e. no php, asp, jsp or cfm.
The website just consists of one page which contains the flash file for the flex application. The source code of this page is here: [URL]
I have been advised (by a software program used by my client) that this website is vulnerable to a reflective type XSS attack and have been advised to 'sanitize' all user input.
respect to XSS and would respectfully like to ask that AFAIK there is no user input. What should I sanitize and how?
View 1 Replies
Mar 30, 2010
Can I change mouse cursor for textfield to appear as a clickable object?
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.ui.ContextMenu;
import flash.utils.*;
import mx.core.*;
View 2 Replies
Jan 27, 2004
How to use the mouse scroll to scroll up and down in a dynamic text field.
View 2 Replies
Dec 27, 2004
i've searched for it but couldnt find what i need.i have a inputfield (instance:enterSbMessage_txt) so, when i type a few characters in it and user presses a button i want to know the exact position of the blinking cursor.
View 3 Replies
Dec 27, 2004
i have a inputfield (instance: enterSbMessage_txt) so, when i type a few characters in it and user presses a button i want to know the exact position of the blinking cursor. i cannot find the as code to get these values.
View 4 Replies
Jun 5, 2003
I want to be able to continuously display (refreshing) the x,y positions of the mouse in a textfield.
View 9 Replies
Mar 9, 2009
Is it possible to create a hand cursor when the mouse goes over a TextField. buttonMode does not work. Can I use cursor?
View 1 Replies
Jul 21, 2009
My problem is i have to make multi ple textfield at runtime on mouse click. when mouse is clicked a text field is created. i have done this part. but when add any listner to change the property color, size by combo box( i have make).It change only last one textfield property .
I want to do if i make three textbox at run time . then if i select second on only secone one is selected and all property apply on that
View 1 Replies
Apr 7, 2011
I'm looking for something similar to the click to display a textfield in the code snippet menu. I want the textfield to appear when i hover over the box and for the textfield to go away when the mouse is no longer on the box. How do I do this?
View 5 Replies
Jun 14, 2011
i would just like to ask why is the case that when i use embedfonts = true on a textfield, the textfield's text only resizes according to the textfield's height but not the textfield's width. meaning if i make the textfield's height bigger, the text also gets bigger in terms of height, but not width, can't the embedded font maintain aspect ratio according to the textfield height?
I'm only wondering about this because this is not the case when embedfonts= false
View 1 Replies
Oct 28, 2010
TextFiled is not receiving mouseEvents, coz of the sprite on top:
[Code]...
View 3 Replies
May 12, 2004
i'm making a small "add news" movie for a site in actionscript. When I insert an image in my textField, I can only move the cursor with my keys and not with my mouse anymore. I put the image always in front. I also have to click one time in my textfield, otherwise my text appears under my image. When I click it aligns to the right.
[Code]...
View 2 Replies
Mar 9, 2009
I'm developing some photo viewer app for some web site in flex 3. One of the demands made by my customers is preventing of their unique visual content from copying at least by standard Windows tools ("Print Screen" button). Are there any tricky techniques capable of doing this?
The first thing occurred to me is handling "Print Screen" button of keyboard doesn't seem to be as effective as my client needs.
View 2 Replies
May 27, 2009
How can I prevent concatenating when using the addition operator? totalCost_txt.text = (firstCost_txt.text + secondCost_txt.text)I can replace the "+" with any other operator and it works. (huh?)
View 3 Replies
Jan 15, 2012
I stayed up all night building an application on cs5.5 that needs to keep running for up to an hour without the screeen dimming or the device going to sleep. After a lot of googling I could not find anything. Is there a way to emulate or trick the system and make it think that there is user interation ? Or is there an option I can change to make this work? I am testing on an ipod touch 4g
View 3 Replies