flex

Flex/AIR/HTML PDF scriptable viewer

Hi all! I've written a PowerPoint-like application in Flash, and now our client would like to view the speaker notes (a PDF file) on a separate screen while using the application. What I would need is a separate application/html page which can show the PDF and programmatically change page when the master slide changes. Is this possible...

Coldfusion returning typed objects / AMF remoting

Is the same possible in ColdFusion? Currently I am using .Net/Fluorine to return objects to the client. Whilst in testing I like to pass strings representing the select statement and the custom object I wish to have returned from my service. Fluorine has a class ASObject to which you can set the var 'typeName'; which works great. I am h...

Spark skins : blue drop shadow on focus

Hello, I'm currently experimenting flex 4 skinning. I successfully skinned most of the components i need for my application, but i can't find a way to avoid this damn blue drop shadow which is displayed when u'r focused on a textfield or a combobox. If anyone has a hint on this. Thanks ! ...

CheckBox gets converted to Button in Flex

Hi, I am new to Flex, so please bear with me. I have encountered a strange problem. There's a ActionScript class which dynamically creates basic UI element. So I create RadioButton as var rBtn:RadioButton = new RadioButton(); and then put it in a Panel Container. The problem is that it appears to be a Button. However it behaves li...

how to show a tooltip on a disabled control?

I'm displaying a list of buttons, some of which might be disabled. I need to show a tooltip on the disabled buttons with an explanation of why it's disabled, but it seems I can't disable the button without disabling the tooltip. Is there a simple way around this? ...

SeriesInterpolate - removing data at start of array

Hello all, I've been experimenting with Flex Charts (in Flash Builder 4) recently, but have run into one area which didn't quite work as I was expecting. Specifically, when adding and removing a data point from an array, with SeriesInterpolate set. I've put up three examples, as I expect these will make a lot more sense than me trying ...

Can't find compiled resource bundles

I am using Adobe Flash Builder 4. I've run into this issue with my latest project, but I was able to re-create it with an almost empty project. Here is what I've done. Created a new Flex Project Created a locale/en_US folder within this project. Added a class that extends SparkDownloadProgressBar. All this class does is attempt to cr...

Flex: Problem with CollectionEvent on ArrayCollection

Hi there, got a reference to an arrayCollection and add event listener like this: collection.addEventListener(CollectionEvent.COLLECTION_CHANGE, onCollectionChange); that´s fine. Now some other component does have the same reference and is adding items to and removing items from that collection. Each time the handler is called: priv...

Flex 3.5 Accordion and TabNavigator selectedIndex Bug

I'm using Flex 3.5 with Adobe Flex Builder 3. I have found that if you very rapidly click between multiple headers of an accordion component or the tabs of TabNavigator, these components will begin to exhibit odd, unexpected behavior. Once this behavior has been evoked, even trying to set the selectedIndex programmatically does not end...

How should one make bulleted lists in Flex 4, given that "marginLeft" doesn't actually exist?

Gentlepersons, Imagine wanting to display a bulleted list like this one ...using Adobe's Text Layout Framework (TLF) in Flex 4. How can one define such a bulleted list in MXML? I understand that the current version of TLF does not yet implement support for bulleted lists. That's OK, because I don't need my lists to be editable; th...

Storing Instances of Classes in Flex Shared Objects

Is it possible to store instances of a class in a cookie or in shared objects. Basically in my application I have an object "Diagram" that the user can create. If they hit save, I want to store the current instance as a cookie and allows them to reload it later. Alternatively, I could see about getting them to store the saved version o...

Enable clipboard functions in swf generated by pdf2swf.

I am using pdf2swf (http://www.swftools.org/) to convert PDF's to .swf. I have written a flex application that loads the swf generated by pdf2swf. I want to enable select , copy and paste functions on the loaded swf. Is there a way to do this. Please note I am able to extract the text from the loaded swf using textSnapshot, which means ...

More efficient way to remove an element from an array in Actionscript 3

I have an array of objects. Each object has a property called name. I want to efficiently remove an object with a particular name from the array. Is this the BEST way? private function RemoveSpoke(Name:String):void { var Temp:Array=new Array; for each (var S:Object in Spokes) { if (S.Name!=Name) { Temp.push(S)...

What is C# .Net analog for Flash/Flex flash.utils.ByteArray?

What is the C# .Net analog for Flash/Flex flash.utils.ByteArray? ...

How to embed SWF in Flex and get the timeline code in the embedded SWF?

Hi, my client want to have all resources embedded into the Main SWF which i create with Flex. The UI itself origins form a .FLA that must have timeline actionscript (AS3). After I embed the SWF there seems to be NO timeline AS in the embedded SWF. Is this possible to solve? I Embed like this: public var templ: TemplateBase; [Embed(s...

Calculating Text Width In ActionScript And Flex

I'm trying to calculate how WIDE to make my button, based on the text that it will contain, and when I try to google for how to calcuate something as simplistic as the WIDTH OF SOME TEXT, I go cross-eyed just trying to wade through apparently nonsensical esoteric counter-intuitive voodoo. Can anyone out there help simplify for me how I ...

What does ActionScript mean by 'antiAliasType' in the following context?:

// When I Run The Following Two Lines, I Get The Error Shown Below var B:Button=new Button(); var lineMetrics:TextLineMetrics=B.measureText('Hello World'); // TypeError: Error #2007: Parameter antiAliasType must be non-null. From My Point Of View, As Useless Errors Go, This One Is Unsurpassed. Can anyone point me in ...

Create submenu in context menu

Is it possible to create submenu in context menu (right click menu) in Adobe Flex? Menu1 > - Menu1.1 - Menu1.2 Menu2 > - Menu2.1 - Menu2.2 - Menu2.3 ...

XML As XMLNode in Actionscript/Flex

How do I get the root node of an XML object in Actionscript? One would think that I could say this: var Node:XMLNode = XMLVar as XMLNode; But although XMLVar is of type XML, Node will = null. So how do I do it? ...

Flash/Flex: play embedded AAC audio?

Is it possible to play an embedded AAC file in Flash/Flex somehow? I know you can playback embedded MP3 files, but I hear that you can't do that with AAC. Anyone know any sneaky ways to get around this? By way of illustration, here's come code. [Embed(source='../../audio/music02.m4a', mimeType="audio/aac")] private static const __Exam...