flex

What is the right solution for dragging elements in container with vertical scrolling?

I have container (VBox). It contains certain child elements (for example, other Vbox). Container has vertical scrollbar. When I start dragging certain child, verticall scrolling is not working, why? I resolved this problem using container's dragOver event. But in Flex 4 I use VGroup as container, and there is not maxVerticalScrollPosi...

flash doesn't load when hosted on windows 2008 server, I have to righ click -> play to run it

I have a website on IIS7, when hosted in windows 7 the flash was loading ok, but when I put him on win 2008 server they don't load fully, I just shows a gray square (without the loading), and to make it work I have to right click and click play anybody knows how to fix this ? ...

Controlling a USB device from a web application

I would like to be able to control a USB device from a web application. I was hoping to use Adobe Flex but I don't think that Flex can support access to USB devices. Is this possible using Java applets, or a similar approach using .NET? Thanks. ...

Flex vs ActionScript

Hi all, I'm trying to build/implement a Flash video player to play videos. I have looked at Flex and built a basic application with just a VideoElement. It gets compiled to 41k without statically linking the libs and 300k with linking the libs. I generated the report but am still not sure why I would need all those components just to bui...

Tab Navigator in a Title window : issue

I am adding a tab navigator to a title window here. Once the title window is closed, it can be reopened using the button.But on opening the title window second time in this manner ,the content of the children of the Tab navigator(here, a label) is not visible. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http:/...

In flex, how to get correct Y-axis when there is a vertical scroll?

In flex, I am getting the y-coordinate in the following way: nextHBox = HBox(ingBox.getChildByName("ing" + nextId)); nextYAxis = ingBox.localToGlobal(new Point(nextHBox.x,nextHBox.y)).y; newCanvas.x = nextYAxis; nextYAxis gives me the y-axis and I use it to position new component. It works absolutely fine. But, when there is vertical...

Using AIR to add desktop GUIs

Suppose I develop an application with the logic as a CLI program that can be compiled to various platforms. To add a GUI, I could develop native versions separately for each platform or I could use a cross-platform tool like Tcl/Tk, wxLua, or PyGTK. Some people, like Bruce Eckel and James Ward, promote Flash/Flex on Adobe AIR for this. ...

Why this rect is not drawn?

My actionscript: package { import flash.display.Graphics; import flash.display.Sprite; import flash.events.Event; import spark.core.SpriteVisualElement; public class SimpleFill extends SpriteVisualElement { public function SimpleFill() { //var sprite:Sprite = new Sprite(); ...

Adobe Flex 3 to Flex 4: Rotated Text Disappears on Embedded font

I recently upgraded a Flex 3 project to Flex 4 "MX Only" and prior to the upgrade, I had some rotated text which now does not render. I have embedded the font ("Verdana") within my CSS Stylesheet using the following declaration: /* CSS file */ @namespace mx "library://ns.adobe.com/flex/mx"; @font-face { fontFamily: Verdana; sr...

add flex combobox to movieclip in swf

I am trying to add a flex custom component (basically a combobox that is populated with xml) to a movieclip in a swf. Is this possible? I don't get any errors with the code below, but I also don't see the combobox. If I add it to the parent, which is a uicomponent, then it shows up. _fontDD = new FontDropDown(); _addTextMenu.addC...

TextField and Security Sandbox Violation

Hi I am creating a TextField in my flash application, but when i am starting to write something the following error in written to trace: * Security Sandbox Violation * SecurityDomain xxx tried to access incompatible context yyy What is the reason for that? How can i solve it? ...

Scrollbars in dropdownlist inside DataGrid itemEditor not working

Hello Flexperts, I have a DropDownList inside the itemEditor of my DataGrid. There are enough items in the DropDownList to justify scrollbars. You can see the scrollbars, and the mousewheel works fine. If you move the mouse over the scrollbars, they'll change appearance fine (mouseover is working). If you click on them, the DropDown...

How does one implement the Google Maps 3D API (or similar) for Flex with a local map cache?

I am writing a Flex application for use on a private intranet with no external Internet access. I want to use Google's 3D Maps Flex API, but it must be connected to the internet to download map tiles on demand. Is there a way to locally cache the 3D map tiles and data so that I can run this app without an internet connection? And if no...

Finding A Child Control Based On X & Y Coordinate in ActionScript

In Flex/Actionscript When writing an on mouseMove event on a Canvas control for example, how could I check to see what control if any is under the mouse pointer at a particular coordinate? ...

Flex switch item-renderer

Hi I was wondering if anyone had any luck with the following senario in flex. I'd like to be able to have a custom item renderer which delegates to another renderer inside. The reason for this would be in a datagrid for instance displaying a checkbox if the dataprovider for the row had a boolean value. Using the default item renderer ...

Flexbuilder 3 Install under Linux

Solving this problem would make my life a hundredfold easier, because working in Windows XP blows, and save for this one Adobe POS, I would be working entirely in Linux. The Flex project I'm trying to build can be built successfully on Flexbuilder 3 Pro (licensed version, 3.2 SDK) in both Windows XP and Mac OS X. I followed these instr...

Not able to access the FLEX ,BLAZEDS,JAVA Application from other computer

Hello Experts, I have developed a FLEX ,BLAZE DS,JAVA,Hibernate Application and able to deploy and run in my localhost on tomcat. When i am trying to run the same URL with my IP Address from other computer in LAN. I am able to see the FLEX page but when i clicking on "Login" button,nothing is happening, means it is not further communic...

How to adjust numToChar to support any key (AS3)

I have a flash conversion function that I call like this: var key:String=numToChar(keyboardEvent.charCode); currently the function (see below) supports limited US character set, how to enhance this function as much as possible easily without hardcoding? I want to make the function to support all standard western keycodes (available...

how to calculate the xmldata?

Hi, i'm getting the xmldata from the httpservice (using cgi) and i have not set resultformat(it is coming as an object only),the xml data in this format <root> <employee name="xxx" age="xx" gender="xxx"/> <employee name="xxx" age="xx" gender="xxx"/> <employee name="xxx" age="xx" gender="xxx"/> </root> when i was tried to count the emplo...

Flex Ant compile project

hello, i want to use Ant task to compile flex project(with many libraries, modules) i use -dump-config build.xml compiler option in flash builder to extract build config after i create this Ant task(for start, i try to compile only one mxml-module) : <project name="My App Builderrrr" basedir="." default="main"> <property name="QA_P...