Flex :: ReturnedObject Property?
Apr 23, 2011
I'm programming in Flex Builder Burrito for an mobile application.I'm trying to get a variable from navigator.PopView()and i found the following site: adobe View and ViewNavigator On that page is written that you can get to an returnedObject:
The ViewNavigator will save this object internally, and the new view can access it from with the navigator.returnedObject property. The problem is when I want to acces the returnedObject flash builder doesn't seem to find that even the package isn't found.
View 2 Replies
Similar Posts:
Jul 26, 2011
Setting the text property of a flex DateField makes the selectedDate property of that DateField go to null.I need to set the text property so that I can use a particular format (DD-MMM-YYYY).
View 2 Replies
Jan 9, 2011
Lately i discovered MATE (for Flex development) and was wondering: how do i bind a property in a view (actually a navigatorcontent component) to another property in a class so that they stay in synchronization (meaning that whenever the property in the class changes the property in the view also changes).
So if we have a view called Target.mxml and a property targertProp how do we bind it to the class called SourceClass with property SourceProp?
View 3 Replies
Sep 20, 2011
Can we put [Bindable] on functions/methods? I know that bindable is used to change the value of the source property to destination property. But not sure if we can use that for methods. why we cannot put/ if we can then what will be the outcome?
View 1 Replies
Jan 23, 2010
I'm wondering if there is a way I can bind a flex property to flash property?, the flash property is inside a swc file created in flash with the Flex Component Kit for Flash Professional, I can manipulate the flash component as a regular flex component, but I want to bind their properties, is there a way?
View 1 Replies
Sep 23, 2011
I am not able to get the Id property for flex components in my flex application(swf file) using Test Object Inspector in Rft Tool.
View 1 Replies
Oct 15, 2009
i am working in Air application in Flex3 , i need know how to set "selectedItem" Property when we have 2 values like(data and label) label property to combobox selection, data value for our input.In (selectedItem="{stylename}") stylename will have "data" value but i need to set that "lable" property as selected value in combobox.Like if stylename is "checked" then the ComboBox selected item need to be "Checked".How to implement this in flex.
View 1 Replies
Sep 16, 2010
I need to specify more than one condition for visibiltyvisible="{data.allow && data.open}"However, this gives the error "The entity name must immediately follow the '&' in the entity reference."I could use a function, but I'd like to know if it is possible to do this directly with different syntax.
View 1 Replies
Jul 10, 2009
I've got XML that looks like this:
<item>
<itemDate>07/10/2009</itemDate>
</item>
I would like to be able to read this in as an E4X object: item.itemDate and have itemDate be an ActionScript Date object instead of a string. Is this possible?
View 2 Replies
Sep 8, 2009
In my flex app I have a public bindable property.I want it so that every time the value of that property changes, a function gets triggered. I tried using ChangeWatchers, but it seems those only apply to built-in components like a text box change.i would like to do that same behavior with a property that changes at runtime.
View 4 Replies
Dec 1, 2009
I have a class like this. Property "isPag" is based on filed "ecboardid", I found that when ecboardid is changed, UI controls seem not be able to detect that "isPag" is also changed. So, how to make a property like this bindable?[code]...
View 3 Replies
Feb 22, 2010
I have an existing project using Flex SDK 3.3 which uses a property file for all the static text in our Flex application. There's one specific tag which has a copyright symbol but it needs to be changed to the servicemark symbol. I'm aware that some fonts may not have support for the service mark.The existing text looks like this:header.productName = Acme?The text gets assigned to an mx:Text tag.I'm now sure of is how do you get the servicesymbol into the property file? I'm not sure how/why the copyright symbol looks like that in the property file either.
View 1 Replies
Sep 24, 2010
have an RSS feed, within Flex I have connected to the feed via HTTPService, the XML structure is as follows (not exact, but for the purpose of the question). I am able to walk down the xml and access the data within the title and link nodes with success but when I get the the description node and try to access the img and src attributes within it, I haven't had any success. Reading about parsing with e4x the example I get is:
var xList:XMLList = xData.channel.item.description.(attribute("src"));
or
var xList:XMLList = xData.channel.item.description.(@src);
[code]......
View 1 Replies
Nov 10, 2010
What is the nonInheritingStyles property for on the UIComponent?
Is this a list of styles that the component does not inherit from the container?
Or is this a list of styles that have been set inline or in code so the component is just telling me that they are NOT inheriting from the container?
If it's the first why are their values set for this properties?
View 1 Replies
Jan 11, 2011
I have an AS3 App class e.g (pseudo code)
public class MyApp extends Application
{
protected function onRender():void
{
trace("frameRate = "+frameRate);
}
}
and this is then extended by the app MXML:
[Code]...
The app appears to be running at the right speed, but in MyApp.onRender(), frameRate is seen as NaN (in the debugger too if I step through). Why is this? How should I be obtaining the application's FPS property?
View 1 Replies
Jan 20, 2011
Latest_News_Display is under the Latest_News state. I want to set Latest_News_Display's x property even if the currentState is set to Intro. However, when I try to use Latest_News.Latest_News_Display.x = 10,it returns an error that says 1120: Access of undefined property Latest_News
View 1 Replies
Jan 26, 2011
I've got a panel, which contains a datagrid (expected to fill up the majority of the realestate fluidly), and a handful of buttons and text fields pinned to the bottom edge of the panel. Its a classic datagrid+search combo. What I'm stuck on, is that while the datagrid will grow into large 'viewport' just fine, after I shrink down to about 600 pixels or so, the height of the datagrid stops shrinking, pushing the bottom-pinned content off-screen. I've played with various settings of minHeight, and while larger settings work (also, curiously, overlaying the bottom-pinned stuff where it belongs, instead of off-screen). the smaller settings are apparently ignored or overwritten for some reason.
It seems as if there must be another setting of some sort that I need to make, but I've been messing with this now for hours, and I'm just hoping one of you knows exactly what the issue is.Here's a few screenshots, first the design preview, second, the browser rendering. You can see how the bottom row of buttons gets cut off, and, if I shrink the window even more, I'll cut off parts of the datagrid as well.
EDIT: here's code to my test app, where all the behavior is what it should be...and the hierarchy exactly mimics whats going on in my test app (copy/pasted directly from) .
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%">
[code]....
View 1 Replies
Aug 10, 2011
I build an application that need httpservice feature. This application will be deployed at some computer. So, I don't have an idea to set variable at url property.
<mx:HTTPService id="personRequest" url="[URL]" useProxy="false" method="GET" resultFormat="text" result="personJSON(event)">
<mx:request xmlns="">
<getPerson>"true"</getPerson>
</mx:request>
</mx:HTTPService>
I already try with block {}, but no use. Can't I set a variable at property url mx:HTTPService?
View 1 Replies
Aug 18, 2011
As per my observation this does not work in flex4:
<mx:TextArea id="taMytext" text="
hi
san"/> //use of
does not work here
<s:Button label="Click it" click="Myfun()" />
Using script it's possible:
public function Myfun():void
{
taMytext.text="hi
";
taMytext.text+="san";
}
View 2 Replies
Oct 27, 2011
My problem is to find out the object which owned my property... for example:
My Class :
public class MyClass{
var myGroup:Group; //Spark Component
.....
}
Now, I add my Group to another UIComponent. Next step in Class XYZ I wan't to get my MyClass Object ... but I can only see the var myGroup
public class XYZ {
...
public function getObject(group:Group):MyClass {
return group.????;
}
...
}
View 1 Replies
Nov 25, 2011
[code]...
The labels text will be "Property", but if object.property is changed, the label isn't updated. Is there any way around this?
View 2 Replies
Apr 13, 2012
Flex 4.6 Mobile ApplicationI am getting the error "access to undefined property PrepForDisplay"In my Declarations tag I have
<s:CurrencyFormatter id="PrepForDisplay"
currencySymbol=""
useCurrencySymbol="true"
[code].....
View 1 Replies
Sep 20, 2009
I am populating a textfield programmatically and scrolling to the maxScrollH as the new text is added so the user can see the progression of text. This works fine, until I click the TextField, which sets scrollH back to 0 and places the caret in the text at the equivalent position.
textField.setSelection( text.length, text.length );
//sets the caretIndex/selection to the end
textField.scrollH = textField.maxScrollH;
//scrolls to max
This is the code that I am using to scroll when the textField text property is updated. I've tried adding a listener to the click event on the textField, which works in a way, but causes a visible jump.
override protected function createChildren() : void {
super.createChildren();
textField.addEventListener(MouseEvent.CLICK, handleTextFieldClick, false, 0, true);
} protected function handleTextFieldClick(event:MouseEvent):void {
textField.scrollH = currentTextFieldScrollPosition; //stored scrollH value
trace(textField.scrollH);
}
My guess is that there is a scroll position being calculated or stored someplace that I can't find.
View 2 Replies
Dec 29, 2009
I'm trying to extend a class like panel so that I can fire click events only when the title area is clicked on. The title area is a protected uicomponent of Panel called titleBar. So I want to make that component public.It seems like I'm almost there but I'm getting a "TypeError: Error #1009: Cannot access a property or method of a null object reference." when it tries to add an event listener to the titlebar.
here is my extended panel
package custClass{
import mx.containers.Panel;
import mx.core.UIComponent;
public class ExtPanel extends Panel{
[code]....
And then this in the AS:
newPanel.getTitleBar().addEventListener(MouseEvent.ROLL_OVER,over);
Still getting the same error.
View 2 Replies
Feb 9, 2010
In the follow Canvas, how do I change the property top at runtime?
<canvas top="10"/> I tried:
<canvas top="{ topVariable }"/>
But the binding doesn't seem to take effect. How can this be achieved?
View 4 Replies
Mar 9, 2010
I have a NumericStepper declared as a UIComponent:
<![CDATA[
private var component:UIComponent;
component = new NumericStepper();
]]>
I need to change the .maximum value of the NumericStepper but due to the UIComponent not having a .maximum property the following code fails with the error: 1119: Access of possibly undefined property maximum through a reference with static type mx.core:UIComponent.
component.maximum = 11;
how would I define a property in this scenario?
View 2 Replies
Mar 20, 2010
I'm generating buttons dynamically that I want it to call a method like this:
private function fetchTheDay(day:String):void {
}
But I wasn't sure how to make the button pass the string to it
button.addEventListener(MouseEvent.CLICK,fetchTheDay);
buttonVGroup.addElement(button);
[Code]...
View 1 Replies
Mar 20, 2010
I was trying to place some simple effects on an image using HBox using Hslider/Checkbox.I am unable to incorporate the required effects on the image.I an getting the errors
"120 access to undefined property" ....poinying to "HSlider/change".What can be the error/solution to this?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:HBox top="10" left="10">
[code].....
View 1 Replies
Apr 8, 2010
I have three text boxes on the stage id=red, blue, green same as the keys in my
cars Object/Array
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code]....
So I'm thinking "tempObj.text" would equal red.text but I can't stick "tempObj" with ".text" is there a way this can be done?
View 1 Replies
Jun 20, 2010
Let's say I have about 100+ buttons. They all have the same label. Now I want to change the label for all with a click. I could give them IDs and then run a for loop, but I'm searching for a neater solution.[code]...
View 2 Replies