Flex :: Flex3 - How To Reach Elements Of An Inline Component
Jul 27, 2011
I have a problem with inline components. I want to reach an inline component from another one.. From the first component, i want to change "enable" value of the linkbutton named "Add" which is in second component. Altough i gave "id" and "className" to second one, i could reach neither it nor its elements.. is there a way to do this?
*in first component there is a text input in "CodedDescriptionItemEditor" component. I want to validate it and according to validation enable the button that i mentioned above..These all are in a datagrid by the way. In datagrid, there is always a row that you can enter data and via the "Add" button you can save it. After save it seems as text..
Here is my code:
<mx:columns>
<mx:DataGridColumn headerText="{Problem}" wordWrap="true" textAlign="left" sortable="false">
<mx:itemRenderer>
[code]....
View 2 Replies
Similar Posts:
Jan 6, 2010
I opened up FB3 today, without making any changes, I press F11 and now I am getting this error that I never have gotten before: ReferenceError: Error #1065: Variable CaratPicker2_inlineComponent1 is not defined.
I find it strange I am getting this error everytime now, when I never got it before and I didn't make any changes before I started getting it. Anyways it is coming from line 78 which is <mx:Component> the start of an inline item renderer.
So any ideas how or why this error is being thrown? I have never seen an error like this before and the message isn't very clear to me as to what the issue is.
View 2 Replies
Oct 30, 2010
Is there a way to declare a skin inline in a Flex 4 MXML Component? If not inline in the component then in the declarations or library tag?
View 1 Replies
Apr 15, 2011
I want to create flex application by which i can verify user age i have use following code can u tell me why i cant see mx component "dialogtitle","dialogcontent""dialogbutton"
<?xml version="1.0" encoding="UTF-8"?>
<mx:VBox creationComplete="{initComponent();}" height="219" width="560" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" xmlns:local="*">
[code].....
View 1 Replies
Jul 29, 2009
I am trying to turn labels red when they can no longer be added to a list because of size requirements. The renderer works but Flex creates a separate component. I can't think of any good way to get that value to the new component.[code]
View 1 Replies
Dec 5, 2011
I hope I have worded the question ok. I know that you can pass the 'id' of the component but I'm just wondering if there is a more generic way. I have tried using 'this' (shown in example below) but the 'this' keyword refers to the application.
[Code]...
View 1 Replies
May 8, 2011
I have the following scenario:i have a MovieClip and I created a linkage for it named A.
[code]...
what is allowed? how can I resolve the issue ? update ok this is an exact scenario but a more simple one that I still wasn't able to resolve. The original scenario is that I have a MovieClip called user_bg_me that has a linkage named user_bg_me that extends user_bg_genericthat extends 'MovieClip` inside user_bg_generic class i want to be able to modify elements inside the movie clip itself. using super.element_name provides an error that the property isn't found.
View 2 Replies
Mar 1, 2010
Is there a way to export Table data to a MIME Resource(Flex3 component) from Web Dynpro?
I have a flex3 component(US heat Map) which accepts a arrayCollection (state and value pairs). I need to create a webdynpro wrapper for this to use in Visual Composer 7.2.
What I am trying to do is migrate the flex components I made for Visual Composer 7.0 (using a VCXL wrapper) to Visual Composer 7.2 using web Dynpro. I have managed to migrate components which require simple input data types like integer or string, but I am stuck at those which require complex structures like an array collection.
View 1 Replies
May 14, 2010
I've a parent (Canvas) with many children (LinkButtons)The linkButtons trigger an event to communicate between them:[code]Now, the issue is that the event is only listened by the dispatcher child. In other words, only the child triggering the event, is receiving it. I was wondering what's wrong with it, and if I should add a listener to the parent (Canvas)I basically need the children (LinkButton) communicate between them
View 1 Replies
Apr 13, 2011
I need some help forcing Flex3 to resize my TitleWindow component after an event.
My resize MXML looks like this:
<mx:Resize id="rs1" duration="1000"
heightTo="{radioVBox.y + radioVBox.height + 110}" />
How do I force it to resize after an event? I want to force the TitleWindow's height to change after the event in myFunc1 ends. private function myFunc1():void {
[Code]...
View 2 Replies
Dec 31, 2008
In the below XML...
[Code]...
How to set inline style sheet to htmltext of textfield component as mentioned in the xml CDATA. At present , i am using textfield.htmlText propert , but i am not able to get the
fontfamily as mentioned in the xml CDATA. The text is also not getting displayed in the correct format. The image is not coming in between the 2 question strings and its getting displayed at the bottom of the question while the 2 question strings("q text info",
"with images also") are displayed as a single string. How to reformat the xml so that the image comes in between.
View 2 Replies
Aug 4, 2009
I have a custom AS3 component in a very simple MXML file. The custom component just loads an external SWF using SWFLoader.If you look at the output (below) you'll see it's actually loading the SWF only once, but it instantiates it twice!! What the?Main.mxml is just the Application tag and then this:
Code:
<myComponent:SlideViewer title="SlideViewer" swfName="slides/productInfo" />
SlideViewer.as has this:
[code].....
View 3 Replies
Jun 3, 2009
My Flex code is unable to reach the PHP, but when i do normally it works like [URL]
$url = addslashes( $_GET['urlWeb'] );
if( !$url )
{
die( "You need to define a URL to process." );
[code].....
View 1 Replies
Sep 6, 2011
I created a custom MXML component, TurboContent, that extends the NavigatorContent class:
<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
[Code].....
In this case, the 'myButton' component never shows up, but all the elements of the base component do (3 buttons and a datagrid).
View 2 Replies
Oct 11, 2010
I create a Flex application that works with a browser using a database with the MySQL server that I can create, modify and delete data from a database. The problem I encounter now is that I want to see my program with Adobe AIR (virtual machine). At the display that does not pose a problem. The problem is that air can not reach the database server is located in the MySQ. the error message displayed is as follows: "Error : client.Error.MessageSend - Channel.connect.failed error tConnection.Call.Failled : HTTP: Status 404:url:'[URL]"
View 2 Replies
Feb 24, 2012
Is there any way to create a textInput box for flex mobile with inline image without using textflow ?Basically i need a text input component , so that user can just use it as normal text input box but to it images can also be entered inline with text. To enter images user can select the image from list and that image will get inserted at the current cursor position.
View 1 Replies
May 24, 2011
I have a datgrid with two inline item renderers. The dataprovider for my DG is a nested object (objects within objects within objects i.e 3-layered). Main Object - 1st Level
[Code].....
I use 2 item renderers (one for each datagrid column) which loops thro the 2nd level object1 and 2 respectively (the 2nd level object is a dynamic array of objects, in that the number of objects within keep changing). Within the item renderer I loop thro the 2nd level object using a foreach and then display the data. The data is a linkbutton, which when clicked , calls a remote object function to delete the data from the database
now on the result event of the remote object function call, i call the function to repopulate the DG, so that the updated data is displayed. When i click on the linkbutton in the first row, the backend works perfectly fine (the data gets deleted from the database and the refreshed data is sent back), but for some reason, the deleted data suddenly appears in the 2nd row. When i delete it from the second row, it appears on the 3rd row (nothing happens in the backend since the data is already deleted).. and so on, till it appears on the last row and then the DG looks exactly the way it shld have looked after the first delete.
This is just the beginning. The second item renderer also displays a linkbutton, which when clicked, displays that data in the previous column (the one where this data can be deleted). When i click on 1st row, the data gets added in the previous column of the second row. and so on.. Basically, my DG is acting really weird. I overrided the set data function in the item renderer to refrsh the data and called its invalidateDisplayList. I also call the Datagrid's invalidateDisplayList function after each refresh. The behavior remains the same.
[Code].....
View 1 Replies
May 12, 2010
Pff is there a way to add padding between elements in a TileList
View 1 Replies
Aug 4, 2010
How to style parts of the tooltip e.g. bold? I'm generating a tooltip in an itemrenderer for an datagrid, displaying the column name and then the value: I want to display the value bold...
public override function set data(value:Object):void
{
var dg:DataGrid = this.listData.owner as DataGrid;[code].....
View 2 Replies
Jan 16, 2011
In this app that has an inline item editor, if you click on a location cell then press tab, the value in the location cell is wiped out.
focusOut doesn't work, nor could I get this to work in DataGrid itemEditEnding etc.
See this Flex forums post, because posting code here rots:[URL]
View 1 Replies
Jan 28, 2011
I am still very new to Actionscript and have an okay working knowledge of Flex. I am working on an AIR application that runs a SQLite database underneath. The database is only 3 tables (projects, items and types). I was wondering if Actionscript best practices are to use a data access object or layer to store all of my database functions or to just run them inline as needed. I would assume an access layer would be best for interacting with the database for usability, but I can't seem to find much documentation for SQLite in AIR.
View 1 Replies
Feb 27, 2011
I have a problem in my datagrid itemeditor This is my data grid component
<mx:DataGrid id="lessonPlanDataGrid" x="10" y="10" dataProvider="{studentLessonPlanArray}" height="271" width="270" editable="true">
[Code]...
View 1 Replies
Aug 21, 2009
I'm getting occasional ConcurrencyError faults when using HTTPService in Flex 3. I have four HTTPService objects, all configured with concurrency=single. I'm not sure though how to continue to diagnose, as I don't see in the FaultEvent what service object caused the issue, and I can't easily reproduce it on-demand.
One feature of my app is that I am also using a URLRequest to load a sound shortly after receiving a result from one of the HTTPService calls. Could this be related to the concurrency error?
The fault looks like this:
[FaultEvent fault=[RPC Fault faultString="Attempt to invoke while another call is pending. Either change concurrency options or avoid multiple calls." faultCode="ConcurrencyError" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]
View 1 Replies
Jun 9, 2009
After upgrading the Flex SDK from 3.1 to any newer version of the SDK and trying to compile an existing project, the following error appears in the Problems pane:
Description: { expected Resource: (shows project name, not a specific file) Location: line 15
Any ideas how to solve this or where to start the bug hunt?
It looks like the problem is in the ...sdks/3.3.0/frameworks/libs/player/10/playerglobal.swc file, but I'm certainly not sure.
View 4 Replies
Jun 2, 2011
What is the difference between :
giving a function reference in the result attribute of the HTTPService class like this :
protected function httpserviceCheckUpdate_resultHandler(event:ResultEvent):void
{
var version:Number = event.result.text.version as Number;[code]....
If both of them are same then how can I provide the event parameter using the second approach (as written in the result attribute of the httpservice class)? Which one of them is the better way of doing things in FLEX.
View 2 Replies
Jul 5, 2010
I have a datagrid which has id="myGrid" in my application, from it I call a component. Now from the component I can call parentDocument.myGrid.selectedIndex = 0; and it works fine.But I want to make the component reusable, and I would like to pass the ID to the component each time, so myGrid will change, how to properly send the ID to the component, and use it in the component?
View 2 Replies
Apr 12, 2011
My flex application generates individual pdf documents based on individual selection criterion,but i need to merge those generated pdfs or is it possible to store individual pdfs temporarily then merge those into single pdf?
View 2 Replies
May 24, 2011
I have a modal Flex dialog and want to make the background not of the window itself, but the semitransparent modal indicator transparent. (Yes I tried to convince the client they don't want to do this, but apparently they really want to do it). Is this even possible?(prefer a solution using Flex 3's TitleWindow, but Spark/Flex 4 TitleWindow is acceptable)
View 3 Replies
Oct 5, 2010
Main features I am looking for are carausels and alert boxes.I have already seen Yahoo Astra. Are there any better or comparable libraries ?
View 1 Replies
Mar 6, 2007
Is it possible in Flash 8 accessing from the linkage class, associated to a component, the graphics elements (for instance, a standard UI component, like a tree or a comboBox) that are on the movieclip this class refers to?
View 1 Replies