Flex :: Cannot Convert To ClassFactory

Aug 26, 2009

I have this item renderer MyRenderer.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" implements="mx.core.IDataRenderer" >
<mx:Script>
<![CDATA[

[code]....

Now when debugging I get the error that MyRenderer cannot be converted into classfactory.

View 1 Replies


Similar Posts:


Flex :: Pass Data To A ClassFactory-generated Instance?

Mar 7, 2012

I have created an item-renderer (IListItemRenderer) to customize the display of a datagrid, and I override the data getter/setter to pass in the relevant variable.

In the item-renderer I have a button, which, when clicked, should display a form populated with various fields of the aforementioned variable. To do this, Button is overridden so that it displays whatever IFactory implementation it is passed.

private function instantiateDropdown():void
{
_dropdownFactory = new ClassFactory(MyPanel);
_dropdownFactory.properties = {boundData: _myVariable};

[Code]....

My IFactory implementation is a panel containing my form, and it is displayed when the button is clicked, as desired. However, the variable is not set. It seems that in order to instantiate my IFactory before the overridden button needs to access it, my new ClassFactory() statement needs to be in the preinitialize event handler, but the variable has not been set at that time. Setting the properties of my IFactory instance after it has been created (e.g. in the click event) does not appear to work.

How should I pass my variable to my ClassFactory-generated instance so that it populates the form correctly?

View 1 Replies

Flex :: Compare ClassFactory.generator Property (from Mxml) With Its Original Class?

Jun 10, 2011

I have some components declared in MXML tags, with some properties and event handlers.For some of them there is the need to re-instantiated, so I came up with the following architecture.Array of components that will be re-instanciated at some poin:

<flint:forms>
<fx:Component>
<login:LoginForm loginClick="outerDocument.form_loginClick()" />

[code].....

View 1 Replies

Flex :: Gis - ArcGIS Flex API: Convert A Screen Point To A MapPoint?

Aug 24, 2009

Using the ArcGIS Server Flex API, is there a way to convert mouse coordinates on the screen or the a map control to spatial coordinates in the map? It seems like there's functionality to convert map points to screen points, but a function for converting in the other direction seems weirdly absent.

View 2 Replies

Flex :: Convert Symbol To Flex Component?

Mar 16, 2010

I've read on the net that there is the flex component kit for flash that allows me to convert flash symbol to flex component or container.

I tried installing Flex_Skins_12_05.mxp that suppose to enable these features in flash cs4 but under the commands tab i can't see any commands related to flex conversion.

appropriate plugin to install in flash cs4 in order to convert it's symbols to be usable with flex ? t

View 1 Replies

Flex :: Convert A PDF To A Jpg?

Jul 20, 2009

In a Flex/AIR application, I need to create snapshots (like big thumbnails) of local PDF files (one per page, if indicated).Ideally, I would like to do it all on the client side (PDF is a public specification, albeit a REALLY COMPLICATED one).I have read about an "Adobe plug-in" but I cannot find a specific piece of software that makes the HTMLLoader.pdfCapability report anything but ERROR_CANNOT_LOAD_READER. I hope to load the PDF and then move the bitmap data to an Image in order to save it.

View 4 Replies

Flex :: Convert ArrayCollection To XML?

Jul 24, 2009

In Flex, it's easy to convert the XML to Object and to ArrayCollection by using var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(); decoder.decodeXML( xml );

But is there a good way to convert ArrayCollection to XML.

View 3 Replies

Convert Curl To Flex

Dec 9, 2009

the equivalent of this in flex [code]basicaly this ia a api in which i need to send the user credentials and a xml file containing the data(new_activity)for the credentials i tried to add it as a header authencation and encoding it to base64.[code]

View 2 Replies

Flex :: Convert A Mx Component To AIR?

Jan 31, 2012

I have a flex component that is using mostly mx and actionscript code. I am using it fine in my AIR application, however, I need to be able to use certain Air libraries within this component, so I need to make it Air 'aware' or compatible. For example, I need to get a reference to the current active window, so it looks like I need to use NativeApplication.activeWindow. But when I type this in to my component actionscript class, it does not know about NativeApplication. So it seems I have to do something to that project to enable Air classes, unless there is another approach?

View 2 Replies

Flex :: Convert CharCode To Char?

Feb 2, 2010

how to get the charCode from the character but I cant seem to find out how to get the character from the charcode.

Basically I am I am listening for the KeyDown event on a TextInput.

I prevent the char from being typed via event.preventDefault();

Later I need to add the text-char to the TextInput.

I can get the charCode via event.charCode so if I can turn that into a string I can save it for later user.

Why I need it

Basically I am making a TextInput, that that I can set to display default text in it. When A user types into it, I want to remove the default text first then add the user typed text.

Currently I am either removing it all, or ending up with both.

View 1 Replies

Flex :: Convert Xml Attribute To Array?

Mar 7, 2010

In the following XML[code]...

How do I use e4x to extract the urls and push them in an array with the least possible code?

View 2 Replies

Flex :: Convert String To DateTime

Mar 27, 2010

What is the best way to convert a string to DateTime? The format of the string is dd/mm/yyyy hh:mm:ss.

View 1 Replies

Flex :: Convert Number Into Words

May 5, 2010

I am trying to convert an entry using a numeric stepper in flex into words to display in a textarea.i.e a user uses the stepper to enter "89" as a value and in the text area the words "Eighty nine" are displayed.After much searching i haven't found anything that helps - a few javascript functions but that is all.

View 1 Replies

Flex :: Convert .fla File To .swf On Linux

Jul 17, 2010

here some action script code, for capturing images from webcam (from here):

var cam:Camera = Camera.getCamera();
var video:Video = new Video(640,480);
video.attachCamera(cam);

[Code]....

i've googled a bit, and found some information about flex sdk, and it's command-line tool for compiling .as to .swf (./bin/mxmlc), but any information about converting .fla to .swf in linux!

View 2 Replies

Flex :: Convert A PDF File To An Image?

Jul 27, 2010

I'm giving users the ability to upload an image to my Air app, then displaying this image in an image control. But I need to allow for PDF uploading in the same manner, so I need to convert the PDF to an image. I only care about the first page of the PDF they upload for now. What I'm doing is:

1) User browses for a file with the file reference control
2) User chooses the image or PDF to upload
3) I encode said image to base64 and store it
4) I then load from that base64 with something like:

[Code]..

View 2 Replies

Flex :: Convert Array To Arraylist?

Dec 5, 2010

How do I convert in AIR 2 for List component to display items?

View 1 Replies

Flex :: Convert Mime Text To Utf-8 ?

Apr 21, 2011

how I can convert some mime text like =?ISO-8859-1?Q? into utf-8 so it's readable for the users.

View 2 Replies

Flex :: Code To Convert Bytes To Kb, Mb, Gb?

Apr 27, 2011

I have a utility function that will display a filesize in an appropriate form like Windows Explorer does, i.e; convert it to nearest KB, MB, GB etc. I wanted to know if the code that i wrote is correct, and if it can be made simpler.The function that i wrote is as follows :

public static function formatFileSize(bytes:int):String
{
if(bytes < 1024)

[code].....

View 2 Replies

Flex :: Convert Time From CEST To UTC?

Oct 13, 2011

How I can convert "23-08-2012 00:00:00 CEST" to UTC format in flex?

View 1 Replies

Flex :: Getting Date As String And Convert?

Feb 7, 2012

Programming in Flex 4.5I'm getting a date as a String.I don't know what date or hour I'm getting.I want to convert the string to date and take only the hours & minutes.

For example:

Getting - "2012-02-07T13:35:46+02:00"

I want to see: 13:35.

[code]...

View 3 Replies

Flex :: Convert A File To A ByteArray?

May 29, 2009

how to convert a file I have on my server (pdf/excel/ppt) to a ByteArray. The reason I want to do this is to display the dialogue open/save as to the user and I must set the Content-Type to octet-stream. The dialogue shows fine with just navigateToURL() but for pdf's it is the user's local browser setting. For a URLRequest I must set the data as a ByteArray. I'm trying to use the code located here:

Custom printing with Flex

View 2 Replies

Javascript :: Flex - Convert XML To An ArrayCollection

Mar 15, 2012

Is it possible to convert an XML string generated by a javascript return, into an ArrayCollection? I have looked into SimpleXMLEncoder as a possible solution, but that seems to deal more with a file than a string. My XML tree is pretty detailed so I need something to handle multilayer XML nodes.

View 1 Replies

Xml :: Flex: List Of Attirubites.... Convert To Nodes?

Aug 21, 2009

say I have an xmllist like this (but with many other attributes not shown for brevity):

<node metal="white gold"/>
<node metal="yellow gold"/>
<node metal="silver"/>

[code].....

View 1 Replies

AS3 :: Flex : Convert Ascii Code To Character?

Oct 1, 2009

I want to create a board class from canvas, which will allow to track click position on it in coordinates like A2, where A...D is Y coordinate in some scale and 1...3 is X coordinate [URL]What I want to create is a kind of convertor from canvas localX and localY to my new coordinates like A2.I am thinking of implementing if condition this way if (0.4 - x*size(from 1-3 here)/canvas.width <= X <= 0.4 + x*size(from 1-3 here)/canvas.width)
X = x;

This way I can assigned needed coordinates in X range. e.g. 1, 2 ,3 etc But what to do with alphanumeric range. (if for example I want to make it extensible)...

View 2 Replies

Actionscript :: Convert A Relative URL To An Absolute URL In Flex

Jan 5, 2010

I am working with Flex, and I need to take a relative URL source property and convert it to an absolute URL before loading it.

The specific case I am working with involves tweaking SoundEffect's load method. I need to determine if a file will be loaded from the local file system or over the network from looking at the source property, and the easiest way I've found to do this is to generate the absolute URL.

I'm having trouble generating the absolute URL for sound effect in particular. Here were my initial thoughts, which haven't worked.

Look for the DisplayObject that the Sound Effect targets, and use its loaderInfo property. The target is null when the SoundEffect loads, so this doesn't work.
Look at FlexGlobals.topLevelApplication, at the url or loaderInfo properties. Neither of these are set, however. Look at the FlexGlobals.topLevelApplication.systemManager.loaderInfo. This was also not set.

The SoundEffect.as code basically boils down to

var url:String = "mySound.mp3";
/*>> I'd like to convert the URL to absolute form here and tweak it as necessary <<*/
var req:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.load(req);

I would also be perfectly satisfied with some way to tell whether the url will be loaded from the local file system or over the network. Looking at an absolute URL it would just be easy to look at the prefix, like file:// or http://.

View 1 Replies

Flex - Convert An Image In Assets Folder?

May 13, 2010

I'm trying to convert an image in my assets folder

"./assets/image1.png"

to type Object. It needs to be Object because that's what the function I'm using it in is expecting.

Any ideas what would be the simplest way to do this?

View 3 Replies

Convert String With TLF Format Into TextFlow In Flex?

May 16, 2010

I used TextConverter to convert a TextFlow in Flex to String to store it in my Database. How to convert that string back to TextFlow in order to display in Rich Text format

View 1 Replies

Flex :: Detect And Convert Text Encoding?

Oct 28, 2010

Some text (or html) document from web is not encoded as UTF-8, so I want to convert encoding of text document to UTF-8. Do you have any clues for dealing with text encoding?

And I found that, when application draws element with encoding-broken text (such as "º ½¾ ±"), the application is often killed with alert dialog "adl quit unexpectedly". How can I make my application more endurable.

View 1 Replies

Flex :: Convert Multiple SWF Files To Single EXE?

Nov 22, 2010

I have an application in flash, I build in ActionScript 3.0 Flash IDE, my application loads some external swfs which mentioned via XML file. Its working fine at the moment. But I need to compile all these external SWFs and xml file into single exe file. How can I compile like this. or how can I code like this?

EDIT: 1 from here : [URL]

You can see an example, the application is build in .net and it import pdf and publish it as flash projector or web based(swf). How is it compiling all the external SWF files.

View 8 Replies

Flex :: Convert Byte To Domain Objects?

Mar 9, 2011

A Java developer just asked me the following:

If I send you byte[] for all the method calls on Remote Objects - will you be able to convert it to domain objects?

View 1 Replies







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