Flex :: Equivalent Of Osflex:TreeGridCellRenderer For The Flexlib Package?
Aug 10, 2009the equivalent of osflex:TreeGridCellRenderer for the flexlib package?
View 1 Repliesthe equivalent of osflex:TreeGridCellRenderer for the flexlib package?
View 1 RepliesI'm trying to build a collapsible panel in Flex 4. I thought I'd use s/thing like this:
[Code]...
But that throws an error: Instantiation attempted on a non-constructor. I grabbed the flexlib zip for flex 4 but I'm still getting that error.
Is there another way to create a collapsible panel in a control bar?
I am trying to to use FlexLib in an MobileFlex Project with Adobe Flash Builder 4.6. For learning-reasons I am trying to create an iPad-Version of the ScheduleViewer1_Sample.mxml.
For some mysterious reason - at least a reason I don't understand - it's not working with the latest flexlib (2.6-M2). With the former Version (2.5 - latest on googlecode) I just had to change the used namespaces and it worked like a charm.
[Code]...
I'm trying to use a flexlib schedule viewer in my application. I want to have it so that when I click on a scheduled event, it calls a function in my main app (that will allow me to edit the event). But there doesn't seem to be any specific function for anything like this built into the class ie no event dispatched when I click on an event.
I can use the 'click' function to detect that the item has been clicked on.. and have tried something like this:
[Code]...
This method isn't very reliable because if it only works the first time.. once an item is selected, it stays selected so all following clicks on the item fulfills the condition.
Is there any way to determine whether an event was being clicked on? Or do I have to extend the component and add some sort of clickEvent when an event is clicked on.
I recreated this example of using Base64Image but it does not work when ran locally, only when I load it from a web server. Is this expected and can it be done so that it works locally?
View 1 RepliesI downloaded flexlib source from [url]...
I want to be able to set it up and run it in flex builder and play with it for learning purpose.
I tried to use the import project option by pointing to the flexlib directory but it did not work - I think thats because the source by default does not have any .project or properties files.
This is with Flexbuilder 3.2, Eclipse 3.3.2.I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error:
A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.I do declare the package in these classes - I think failure to declare the package is the usual reason for this error.To add to the mystery, many classes in this project compile without errors.
Right now a lot of my applications use GWT-RPC for retrieving POJO's from a GWT RemoteService which in turn calls a Web Service (SOAP) to get the data. I am evaluating Flex and didn't really see anything truly analogous to this simple architecture.
View 4 RepliesI'm trying to migrate a Flex 4 project backwards to Flex 3, and I need to move stuff mapped in a <fx:Declarations> block in MXML. Does Flex 3 have something similar to this? It's been a while since I've done Flex 3.
View 4 RepliesI want to find a way to get the character index in a Spark based RichEditableText based on mouse x, y position.The mx.controls.TextArea has a protected getCharIndexAtPoint() method but I can't find an equivalent of this in the Spark RichEditableText which is disappointing.
View 3 RepliesI want to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this.
Is there an equivalent in Flex, or do I have to write my own?
Is it possible to capture user typed inputs from keyboard and overwrite user entered text with pre-defined words in Flex/Adobe Air? I'm looking for a functionality in Adobe Air something like "typinator" does.
View 1 RepliesIs there any function (or any easy way to implement it) equivalent to calculateDropIndex for spark's DataGrid?
(using Flex Hero 4.5.0.19786)
I am migrating my Flex 3.2 to FLex 4.5. the property draggableColumns of <mx:DataGrid> is obsolete in the <s:DataGrid>. Have you an idea to have its equivalent in Flex 4.5?
View 1 RepliesIs there a standard equivalent to the Flex HTTPService class in Flash CS4?
View 2 RepliesAs of Flex 4, I'm using s:Group instead of mx:Canvas.
With s:Group , show event is not fired when the container is visible like with mx:Canvas. creationComplete event fire only once. How can I detect show event or something alike in Flex 4 or should I just use the mx:Canvas instead ?
When I create something like the following:
<mx:DataGrid id"myDataGrid"
itemEditBegin="myDataGrid_itemEditBeginHandler(event)" />
When does the event listener for "itemEditBegin" get added and removed? Is this essentially the same as:
<mx:DataGrid id="myDataGrid"
creationComplete="myDataGrid_creationCompleteHandler(event)" />
protected function myDataGrid_creationCompleteHandler(event:FlexEvent):void
{
[Code]...
Basically, I'm wondering where I should add "myDataGrid.addEventListener" if I want to do it programmatically? Should it be in the creationComplete listener function of the object itself, or perhaps in the creationComplete listener function for whatever parent object it resides in?
WSDL defines a number of datatypes supported by web service . Is there a documentation stating the various equivalents of those datatypes on flex side. In general for any language that we use to consume web service, how do we get to know the equivalent datatypes of the wsdl types.
One of the web service that I am consuming is returning base64Binary (an image binary data) , What is the equivalent datatype of this on flex ?
I have a FlexLib Project with a embed class:
package
{
public class EmbedAssets
{
[code]....
And I have another Actionscript Project that use this FlexLib Project and add the Visual class on stage:
package
{
import flash.display.Sprite;
public class AsTest extends Sprite
[code]....
The image don't show up, just.I had debug the application and found the bitmapData of aa was NULL. But if I implement out of Lib Project, this work!In properties of projects ai tried a lot configurations on Flex Library Build Path -> Classes / Assets. But none work correctly.
In the .NET world order, companies like Telerik provide awesome sets of components for web/windows/silverlight. Who are the equivalents in the Flex/Flash universe? I see lots of sites filled with little 10/20 dollar menu components or uploaders, but I'm really looking to find something a step above that.
View 1 RepliesI use the HTTPService() method to post a variable value to a SQL Server database. The suggestion came from someone with some past experience in Flash but nothing specifically related to posting variables to a database.
This person sent me the following code snippet that he found in a Flex forum (and changed a bit), with a suggestion that maybe it will work with a bit of massaging.
PHP Code:
private function start():void {
service = new HTTPService();
service.url = "http://webServer.aspx";
[code]....
My biggest problem is that I'm using Flash instead of Flex. What is the Flash (non-Flex) equivalent of HTTPService() method in the following code snippet?
I am having troubles passing an x and y argument into a package function that creates a projectile on stage at the tank.gun's x and y.I have attached a zip of the code I am working on.[code]
View 6 RepliesI'm running into this weird thing with ASDoc. It will only document one package function per package.For example.I have these two functions:
gs.util.printf
gs.util.ftrace
In these files:
gs/util/printf.as
gs/util/ftrace.as
The only function that get's documented in ASDocs is "printf". But I know it can do more than one. As an example, in the livedocs [URL] There are more than one functions documented.
I want to send a html webpage with my application in installation package,is it possible?
View 1 RepliesI am creating an app with Flex 4 using Flash Builder. When I try to use mx:XML component, I get the error Could not resolve <mx:XML> to a component implementation. Can any one tell me which package to import to resolve this error.
View 2 RepliesIf i run the program i get some errors.If we include a class in a package how should the program be run?[code]...
View 2 RepliesI have an actionscript file,it has a package name,it locate C:demo directory,like follows:
package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............
Then I compile above code like following command,but it raise following error:
C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml
C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?
Despite if it is good practice or not, I read here that you can have package variables (or constants), so I tried this:
[Code]...
I need to create a installer package which application i developed using flex air. Now how can i create a installer package of this application?
View 1 RepliesMy code is:
[Code]....
Taking the package name out lets it compile, but when it is in it tells me it the package structure isn't right, but I'm not sure what I'm doing wrong. Is it an error I made? Or possibly my version of mxmlc is corrupt? I compile it with