Flex :: Internet Based App - Tooltips Not Displaying

Mar 7, 2011

I have a flex app that used to be an internet based app. In it I have a function that creates tooltip error messages when I tell it to create an error message. I pulled this app out verbatim to a desktop app and restructured things a bit to get it to run, but I did not mess with the core fundamentals of the mxml file that utilizes this aside from changing the root tag from a type of 's:Group' to 's:Window'. Everything runs correctly, but the tooltips are not displaying.

Here's the tooltip code (inline mxml code in the fx:script cdata tag):
import mx.controls.ToolTip;
import mx.managers.ToolTipManager;
public var errorTip:ToolTip;
private function createErrorMsg(errorMsg:String, object:Object):void {
if (errorTip){ToolTipManager.destroyToolTip(errorTip);
[Code] .....

Basically, I pass the function a string and an object (text input, checkbox, button, etc...etc...) and it positions it and displays the error message. This fully works in my web version, but not in my desktop version.

Here's the code that instantiates the window:
var window:LoginWindow = new LoginWindow();
Window.systemChrome = NativeWindowSystemChrome.NONE;
Window.transparent = true;
Window.open(true);
Window.maximize()

On a side note, I check to see if the errorTip exists at the beginning of the function and then destroy it so that the higher scoped variable 'errorTip' always equals the reference to the currently displayed error. This allows me to just destroy that error tip on form validation and then error check again, but it only allows one tooltip to be displayed at a time. Is there a better way to query the tooltip manager for all of it's currently displayed tooltips and destroy them all?

View 1 Replies


Similar Posts:


Actionscript 3 :: Displaying Error Tooltips In Flex DataGrid's Each Row?

Dec 22, 2009

I have a simple DataGrid in Flex 3:

<mx:DataGrid width="{indexW - 20}" height="100%"
headerHeight="0" resizableColumns="false"
dataProvider="{itemsList}"
itemClick="itemKlik(event)"

[code]....

What I want to do is to 'force' my DataGrid to display ERROR TOOLTIPS with 'errorTipRight' option instead of displaying a regular tooltips.

View 1 Replies

Flex :: Displaying Black And Red ToolTips As Speech Baloons

Sep 7, 2011

I'm porting a card game from pure Flash/AS3 to Flex 4.5: I'm almost done, but the "speech baloons" marked by the blue color in the screenshot above are missing. Those "speech baloons" fade in, display red (if they contain hearts or diamonds char) or black text and finally fade out. I'm trying to implement those as mx.controls.ToolTips and have prepared a simple test case, where 3 users are represented by smiley-buttons and you can push a "Talk"-button to make them talk:

[Code]...

View 1 Replies

ActionScript 3.0 :: Flex Mindmap Tooltips - Set HideDelay To Infinity So The Tooltips Don't Disappear?

Mar 18, 2010

I am trying to adapt Ruben Sweringa's Flex-based interactive mindmap [URL] and I've got most of it sussed out. I'm just having a little difficulty with the tooltips and I was hoping someone/some people might be willing to help me out or offer some guidance on these three things:

1) How and where do I set hideDelay to Infinity so the tooltips don't disappear? I think that because Ruben's model uses FXCToolTip and FXCHTMLToolTip to extend ToolTip and ToolTipManager, if I try to modify ToolTipManager.hideDelay in the mxml, the value is ignored.

2) Is there a way to enable HTML formatting in the tool tips? FXCHTMLToolTip looks like it's supposed to read this code, but whenever I add such coding, Flex says "Error: XML is invalid" and the whole mindmap fails.

[Code]...

View 7 Replies

Actionscript 3 :: Flex - Prevent Tooltips From Hiding Persistent Tooltips?

Oct 19, 2010

I'm trying to prevent a custom tooltip from disappearing. I've tried three runs at this, borrowing from the usual suspects: Peter Dehann, MonkeyPatch and others. As you can see from the code below I'd like to stay within the tool tip paradigm and not go to popups.

way to persist a tooltip? The intent here is to have a component which can be cut and paste from.

[Code]...

View 1 Replies

Flex :: Use Tooltips In Sparkskin

May 23, 2011

I'm developing with Flex 4 and have a problem with tooltips in skins. I want to define the tooltip behavior of a textinput in the skin (or other components). I create a new skin and try to add a tooltip attriute to the <s:sparkskin> directly and to the <s:RichEditableText> but the tooltips don't show up. First: Is it possible to define tooltip in skins? If not, why? Second: If it's possible, why doesn't it works

[Code]...

View 1 Replies

Flex :: Using Custom Tooltips For Buttons

Nov 7, 2011

I'm using the tooltipManager as described [URL]. I want to display a custom tooltip for the buttons of a buttonbar. The buttonbar's declaration is as follow:
<mx:ButtonBar id="topToolbar" height="30" dataProvider="{topToolbarProvider}"
iconField="icon" itemClick="topToolbarHandler(event)"
buttonStyleName="topButtonBarButtonStyle"
toolTipField="tooltip"/>

Until here, everything works fine. I do see the proper text displaying in a tooltip. Then, I created a custom tooltip manager using the tutorial quoted previously:
public class TooltipsManager {
private var _customToolTip:ToolTip;
public function TooltipsManager() {
} public function showToolTipRight(evt:MouseEvent, text:String):void {
var pt:Point = new Point(evt.currentTarget.x, evt.currentTarget.y);
[Code] .....

Now, this is where I start having issues... I'm trying to get to use this custom tooltip, but I don't know how to get the buttonbar to take it into account. I created a function to see when could I call the functions in my TooltipsManager:
public function showTopToolbarTooltip(e:ToolTipEvent):void{
trace('blabla');
}
But it would seem that it's never taken into account. I've put this function in different buttonbar's events: tooltipcreate, tooltipstart, tooltipend but nothing happens. Not a single trace. Where to call the function of my tooltipManager?

View 1 Replies

ActionScript 3.0 :: Flash Change Preloader Animation Based On Internet Speed?

Aug 1, 2010

I have 4 animations and based on the speed of the internet i want it to change between each depending on the speed.

e.g...

0 - 10kb/ps - 1st MC
11 - 30kb/ps - 2nd MC
31 - 50kb/ps - 3rd MC
50+ - 4th MC

My idea is to have like a glass of water... and for the 1st MC the water filling it up is only a drip... and then 2nd MC is a slow stream of water etc etc and then final MC is water gushing in filling the cup up faster until it's full...

I think this might be a bit hard for me... as i can't even make a preloader... everytime i try the SWF file just stays blank until it's fully loaded... haha... but i'll read tutorials and stuff... i'm rather basic with Flash and just learn what i need to learn as i get to it... I also need the transition between each change (say from 1-10kbps - 51+) to be smooth rather than just having it going from a drip to gushing water... but i think i'll just have to make animations for each and then IF statements to deal with that issue..

View 7 Replies

Flex :: Showing List Item Tooltips?

Oct 11, 2010

I have a list of objects containing an icon, a label, and a tooltip. I want to show only the icon and the label. The tooltips should be visible on mouse over an item.

Is there a way i can achieve this without writing my own mouse-over/out functions?

(notice that dataTips are a different thing as they are displayed only when the label is cut)

View 2 Replies

Flex :: Validation - Using Error Tooltips As Normal Ones?

Nov 7, 2011

I'd like to use tooltips with the same design as the error/validation tooltips (rounded box with a tip pointing to the mouse's position).Given the name "error/validation tooltips", it bothers me to use them as normal tooltips.I haven't found people having the same "principles" issue as myself..So, is it that bad to use the error/validation tooltips as normal tooltips? And, if yes, what would be the easiest way to re-use its design without rewriting much code?

View 2 Replies

Actionscript 3 :: Disable The Tooltips Of The Buttons On A Flex 3 Togglebuttonbar

Jun 30, 2010

I'm creating an flex 3 application with 3 togglebuttonbars. What i would like to do is disable the tooltip of the buttons on one togglebuttonbar. how i can access the buttons on the togglebuttonbar to disable the tooltips?

I don't want to disable all the tooltips off the total application(ToolTipManager.enabled = false;).

I have set the tooltip of the togglebuttonbar to null but it doesn't disable the creation of the buttons within the togglebutttonbar.

how i can disable the tooltips of the buttons on the togglebuttonbar?

View 1 Replies

Flex :: Datagrid - Display Tooltips When Using A DataGridColumn ItemRenderer?

Oct 11, 2011

On my flex (flash builder 4) DataGrid - DataGridColumn , I have set a custom itemRenderer

itemRenderer="myComponents.EncounterDGItemRenderer".

My renderer is a Label

public class EncounterDGItemRenderer extends Label

I found that my tooltips (datatips) stopped working once I started using this custom renderer. I also found that I can set the tooltip on the label in the

override protected function updateDisplayList

by setting:

toolTip=data['addedDate'];

This works find, however the problem is I need to choose a different data field based on the column. I was hoping for something similar to how a DataGridColumn labelFunction works - where I have access to "column.headerText" or "column.dataField". However I only have access to the underlying data object, not the name of what is being displayed (unless I am missing something).

Is there a way in a data grid item renderer to know what the column header text is, or do you have a different approach?

View 1 Replies

ActionScript 1/2 :: Displaying Text Based On Variable

Jul 20, 2010

I have a variable defined as brushSize. Depending on the value of brushSize, I want to display text in a dynamic text field that relates to its value. For brushSize values of 3, 13, 23, 33, and 43 I'd like to display 1, 2, 3, 4, and 5 respectively. I'm not really sure where to begin here, but I have tried and failed with something like this:

[Code]...

View 3 Replies

ActionScript 2.0 :: Displaying Element Based On Selection?

Sep 14, 2011

how I would go about to accomplish the following:

There should be 3 dropdown menus with predefined words

1. First menu has 3 predefined options
2. The second dropdown has 5 options.
3. The third dropdown has 3 options

--> Depending on which word is selected in dropdown #2, an img (of a total of 5 possibilities) is being displayed

In addition there is a dynamic textfield, where you can enter a name, which should then be displayed along with the img.

View 1 Replies

ActionScript 3.0 :: Displaying Text Based On Conditional?

Apr 27, 2010

Question 1I want to display text based on what is resolved within this part

Code:
feedback.htmlText +="<font color='#fc0c33'>Your score is "+Math.round(score*100)+"%</font>."

[code].....

View 2 Replies

Xml :: Flash Not Displaying On Dreamweaver Template Based Pages

Nov 3, 2009

I have a test site up here and as you can see, the Flash movie plays fine. But when you navigate to an inside page it does not. The flash movie has an action in the native file that references an xml file to list the images. So why wouldn't the inside pages do the same?

View 1 Replies

ActionScript 3.0 :: Displaying The Bg & Text Color Based From Passed Hex Value From Xml To Flash?

Jun 1, 2009

is it possible in flash that from an xml, a hexadecimal value of a certain color is passed to flash and be displayed as a background or text color.This colors are set by the users and it's just that the colors are passed into flash and i will display it in my movie as a background color or text color?is that possible in flash?if yes, how would i do this? please give me some samples or sites where i could see some samples.If not, is there any workaround for this? -- i'm thinkin by css but that's too troublesome..

View 1 Replies

Ios :: Cocoa Touch - Displaying Flash-based Youtube Videos On Devices?

Nov 14, 2011

Is it possible to display flashed-based youtube videos on ios devices?What solution do you use when you decide to embed youtube videos on your app?Or do I have to give up on all flash-based contents?

View 1 Replies

ActionScript 2.0 :: Detecting Internet Connection - Check If A User Is Connected To The Internet

Mar 6, 2006

At the end of the movie I would like to check if the user is still connected to the Internet (they maybe on an unstable dial-up connection and lost connection). Is there anyway to do that? I mean, is there a way to check if a user is connected to the Internet using ActionScript?

View 4 Replies

Flex :: Internet Explorer - Catching Ctrl + Z With Flex Running In IE8?

Jan 17, 2011

For some reason I cannot catch the Ctrl + Z keyDown event in my Flex application when it runs in IE. It works fine in FF/Chrome/Safari.

I have a simple Group control where I listen for keyDown and try implement my own Undo logic. I need to catch Ctrl + Z because any other key combination would feel unnatural to most users.

View 2 Replies

Flex :: Internet Explorer 8 - IE8 Flex Not Triggering FocusOut Event?

Mar 2, 2011

I have a textfield in flex with a focusOut event on it. I can type in the box and in Firefox and Chrome when I click elsewhere on the page (outside the flash element) the focusOut event will be triggered. However in IE8, the texfield never loses focus when you click elsewhere on the page, outside the flash object. I've tried with focusManager.browserMode set to true and false with no difference (I believe that effects incoming focus anyway).

View 1 Replies

Flex :: Host A Flex Web Application On Internet?

Nov 29, 2010

Recently I have developed a flex web application and now I wanted to put on internet. I know that there are quite a lot free web hosting company but I am bit confused as in how I have to start. Application which i built used PHP and MySQL database. Currently I am runnning it on WAMP server.

View 3 Replies

Flex :: SWF Not Working In Internet Explorer

Jan 3, 2011

Why is the below code not working on IE.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="[URL]"
layout="absolute"
width="300"
height="100"
creationComplete="init()">
[Code] .....

View 1 Replies

Flex :: Adobe Air Air.navigateToURL Bug With Internet Explorer

Jun 10, 2010

I have a really bizarre problem with my adobe air app. I have a method which launches a local HTML file and passes some querystring items to it.

Here is the code:

function printWin(def) {
def = encodeURI(def);
var req = new window.runtime.flash.net.URLRequest('print.html');

[Code].....

View 1 Replies

Flash :: Flex - AIR HTTPService - No Internet Connection

Jun 8, 2011

I am creating an air app that uses HTTPService to connect to a .net api and get a user for example. It works great when I publish the move for "Flash Player 10" as a .swf, however, when I publish it as .air it seems like there is no internet connection at all. I am assuming it's internet securities (maybe firewall). I turned off my firewall and everything that might be blocking the internet access, but nothing seems to work.

View 1 Replies

Cannot Get Hyperlinks To Work Within Tooltips

Aug 9, 2010

when I try to make text or a button into a hyperlink within that tooltip, it doesn't seem to be usable in the preview. I click on the text/button, and it just doesn't do anything. I've tried coding it several different ways, and looked for an appropriate tutorial, but I haven't been able to find any luck. Is there something I'm missing? Can I even make hyperlinks in a tooltip that's made with that simplified code, or will I have to find another way to make them?

View 1 Replies

ActionScript 1/2 :: Scaling .swf But Not Tooltips?

Sep 17, 2009

I have a flash file that I am scaling.  There are buttons in the file that have tooltips that pop up when you roll over them.Problem is, the tooltips scale with the .swf file so they get huge and are not in the right spot over the button anymore.the tooltips will maintain a size without being scaled?

View 9 Replies

Flash :: Disable Tooltips In It?

Jun 8, 2011

ForEVER I've been annoyed with tooltips in Flash. Yeah, I've turned them off in preferences, but that doesn't effect the ones in the ActionScript area. I've gone so far as to globally and specifically set tooltips to a delay of 60 seconds in my Mac terminal, effecting every application in my system, but this f^%king program over rides even that.

View 1 Replies

ActionScript 2.0 :: Turning On And Off Tooltips?

Feb 21, 2008

I have downloaded Lee Brimlows (gotoandlearn.com) tooltip example and I am trying to modify it so I can turn Tool tips on and off.

I have managed to come up with the function that turns them off,

b5.onPress = function()
{
unloadMovie(tooltip);
}

how to turn them back on with the click of a button.

I have tried

b6.onRelease
{
_parent.loadMovie("tooltip");
}

Code is listed below

tooltip._visible = false;
var tipInt;
b1.onRollOver = function() {

[Code].....

View 3 Replies

Flex :: Completing A Socket Connection Across An Intranet Or Internet

Feb 12, 2010

I am writing a peer-to-peer binary socket program. There are only two endpoints. One socket is listening on my laptop system. The other socket is broadcasting from my desktop system. I have a third program running on a hosted server, that is available to broker the connection between the two. My problem is that when the laptop and desktop are on the same network, they both have the same internet IP address but different intranet IPs, but when the laptop is on the road, then the IP addresses are different. In order to be truly peer-to-peer, I have to write it so that after the connection is established, that the two computers communicate directly between one another. How is this generally accomplished, when the two computers could potentially share the same IP address, if they are running on the same network?

View 1 Replies







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