Flex :: Pass Parameters To Custom Components?

Oct 2, 2009

I am trying to create a component which can receive an additional value from mxml [code]...

View 6 Replies


Similar Posts:


Flash :: Flex Dynamically Created Components Added To Custom Components

Sep 8, 2009

I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....

[Code]...

View 1 Replies

Flex :: How To Pass Parameters To A Swf

Jun 8, 2011

I am using FlashVars to pass params in the swf but it is not working.

Here is the html code:

[Code]...

View 2 Replies

Flex :: Pass Parameters To A Skin?

Apr 4, 2010

I have 2 skins, almost identical, but differ in 1 small way that can be accounted for if I could pass a Boolean to the skin while assigning it to the host component (a button).

<s:Button skinClass="MyBtnSkin" />

Is there a way while assigning the skin to the button, I could also pass a parameter to the skin somehow?

View 1 Replies

Flex :: Pass Parameters Across Multiple Applications?

Jul 21, 2009

Is there any way we can pass parameters from one flex application to the other flex application ?

I know we can pass parameters from module to application and vice versa.

View 1 Replies

Flex :: Pass Parameters To HTTPService And Use Them Inside The URL?

Aug 2, 2009

Flex3 + Cairngorm. I have my service in Servicis.mxml:

<mx:HTTPService id="docIndex" url="{URL_PREFIX}/jobs/{???}/docs" resultFormat="e4x"/>

And I call it from my generic restful delegate like this:

public function index(params:Object):void {
var call:AsyncToken = services.getHTTPService(resourceName+"Index").send(params);
call.addResponder(responder);
}

I want to know how I can use the params Object I pass inside the url definition (the ??? above).

EDIT: I'll explain myself if you didn't understand my problem: I have a restful api written in rails to which I'm connecting. Doc is a child resource of Job. If I want to get all docs I have to supply a job_id too. Therefore in the service the url must be changed for each .send() call, with the proper job_id (the ??? part above). I'd like to call it like myDelegate.index({job_id:34}) and insert that job_id field in the Service URL.

View 1 Replies

Flex :: Pass Parameters To AdvancedDataGrid StyleFunction

Feb 21, 2011

Is there a way I can pass parameters to the searchStyle function from the code snippet below?
<mx:AdvancedDataGrid id="dgCompetente" includeIn="Competente" x="10" y="66" width="547" height="468"
change="dgCompetente_changeHandler(event)" dataProvider="{colCompetente}"
editable="false" allowMultipleSelection="true" updateComplete="updateDataGridIndex('competente')"
styleFunction="searchStyle">
[Code] .....

View 1 Replies

Flex :: Pass Parameters To DecoratorClass In MobileIconItemRenderer?

May 4, 2011

How to pass parameters to decoratorClass in MobileIconItemRenderer ? I have a custom control to display a metric (get from data collection), this control will be used as decoretorClass, my problem is that I couldn't set the metric parameter on my custom control, you can find below a sample code. How to do to pass values to a instance for my custom component ? Exist any way, or I have to re-make the MobileIconItemRenderer class ?[code]...

View 1 Replies

Php - Flex Fails To Pass Parameters To Httpservice Php Script?

Sep 2, 2010

I am sending two parameters to a php script. The php script works fine if I use the browser to run the script and pass parameters to it like

[Code]...

View 1 Replies

Flex :: Make Instance Of Mxml And Pass Parameters?

Jan 11, 2011

i want to create instance of mxml (in my case EventList) and pass parameters. My Event List is a list of panels so I want to pass parameters and generate dynamically n number of panels (n-parameter to pass). I have the main app where I have toggle button bar when I click on the first I want for example to generate 3 panels (n=3) on the second button 20 panels (n=20) etc.How can I do this? How can I pass n and what is the best way to show the list? I whant to generate the list when I click on the toggle button!

View 1 Replies

Flash :: Pass Parameters In Flex 3 To Variables In A Swf File Using Swfloader?

Apr 28, 2011

I've created a Flash Animation (CS5, ActionScript 3) and converted it to SWF. The flash animation needs the values of 3 variables (defined in the swf timeline) BEFORE it starts running in my Flex application. I've embedded the swf file using swfloader in Flex, but I need to pass the parameters from Flex into Flash before the animation starts. How do I do this?

The way I have my flex code setup below, the variables are not being updated. I get an exception every time it gets to the changeParams function because it can't find "Type", "Num1", etc.

Part of My flash code:

//These 3 variables need to be populated via Flex BEFORE the animation starts...
var Num2:int;
var Num1:int;

[Code]....

View 2 Replies

Embed A Flex Grid Control In Asp Page And Pass Parameters To Gridcontrol?

Oct 13, 2010

I have done a datagrid in flex and would like to embed it in an asp page. How do i go about that?

View 1 Replies

Flex :: Create Advanced Flex Custom Components Library?

Nov 25, 2011

I want to create a custom component library. the components are customize-able during creation time. means like Accordion or TabNavigator, when we drag and drop the Accordion in flash builder it

<mx:Accordion x="38" y="167" width="200" height="200">
<s:NavigatorContent width="100%" height="100%" label="Accordion Pane 1">
</s:NavigatorContent>

[code]....

View 2 Replies

Flex :: Custom Components / Events And Scope

Apr 15, 2012

I'm trapping keyboard events on the stage and dispatching custom events through a framework (Mate, though I don't know that this is an important issue), but I'm pretty confused by the scope. The structure is:application (traps keyboard events and dispatches custom event mainPanel (receives dispatched events but mainCalendar (a child element) is null on debugging. Obviously if I try to call a public method on mainCalendar it errors out, even though it's a child of mainPanel. However, mainCalendar is NOT null IF I use FlexGlobals.topLevelApplication.mainPanel.mainCalendar. Outerdocument and parentDocument do not expose mainCalendar either, BTW mainCalendar (a custom component inside mainPanel with public methods. Creation policy is 'all' and it's visible and exists long before I trap any keystrokes at the top level)Could someone take a minute and explain why the mainCalendar is out of scope when mainPanel receives a custom event, even though mainCalendar is a child of mainPanel. Is there a better way to manage the events so I don't have to always address the component via the topLevelApplication?

View 1 Replies

Flex :: Base Class For Custom Components

Dec 9, 2009

In my flex app I have various custom components done with mxml or actionscript.I want all of them to extend a base-class where I can define properties/event listeners etc.Can someone give me an example how to create that base class and how I can extend it in mxml and actionscript components?

View 3 Replies

Flex :: Creating Custom MXML Components?

Jun 21, 2010

When I define custom propertie in my MXML component, I also want to define a set of possible values of that property to make Flex Builder show then (possible values of the custom property) when I invoke code completion function.

View 2 Replies

Flex :: Bubbling Events Within Custom Components In Flex?

Jan 11, 2010

I am using a custom component within another custom component in a flex mxml application file.Is it possible to bubble events from an inner component to the outer component and handle events in the outer component?

View 3 Replies

Actionscript 3 - Flex :: Click - Outside Event On Custom Components

Jul 18, 2009

Is there a way to write a custom event that gets triggered when the user clicks outside of that custom component instance? Basically anywhere else in the main flex app.

View 2 Replies

Flex - XMLListCollection Properties In Custom Components Always Null?

Dec 11, 2009

I've written the following custom component, SubNavBar.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" height="100" width="300"
creationComplete="init()">
<mx:Script>

[Code]...

Whenever the trace function runs in init(), the property menuItems returns null. I don't seem to have this problem with other variable types, like Boolean or String. Is this due to the size of the XMLListCollection object? How can I set up this SubNavBar custom component with XMLListCollection property and bind it to a control in the component?

View 2 Replies

Flex :: 4 - Implement A Custom Toolstrip For An App - Inherit Components?

Jul 1, 2010

I am new to Flex programming. I want to implement a custom toolstrip for an app. This tool strip will include a menu bar (or a customized equivalent) to display the common menu items such as File, Edit, etc as well as a search box. It should be flexible enough to include other menu items such as bookmarks, etc in the future. I have been thinking about mx:Group, s:BorderContainer, mx:HBox, but haven't been able to choose between them. And none of them seem espcially suited to my task as they merely specify layout of other objects. Is there any component which has direct support for such functionality. I have also thought about using mx:MenuBar but I don't know if it will be flexible enough to add non-menu items like search box.

View 2 Replies

Actionscript 3 :: Using Image While Creating Custom Components In Flex?

Aug 25, 2010

For my AIR based application I am trying to create a custom component based on canvas which has an image (as shown below).

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100" height="100" cornerRadius="5" borderStyle="solid" borderThickness="2" dropShadowEnabled="true" borderColor="#EDEDE8" dropShadowColor="#dddddd" shadowDistance="5" shadowDirection="center">

[Code].....

As a work around, I am trying to add an creationComplete listener to the canvas in my custom component and used to give titleImage.source = this.path . keep changing the image or when the path of the image fetched using some async call.

View 1 Replies

Flex :: Edit Button Text In Custom Components?

Apr 16, 2011

i have created custom components in flex where i have used a button,i want to change button text when i will use that component in other mmxl file how i can do that?

View 1 Replies

Flex :: Access Objects In Custom Components File In It?

Sep 18, 2011

I am pretty new to flex, specially to mxml part. There are some confusing things for me.[code]...

So question is how do I access that button's properties. I want when something happens in Xyz file, button's (someId) visibility to become false. If Abc.mxml was AS class file then it would be easy, just make object etc., but how to get if it's mxml file.

View 1 Replies

Actionscript 3 :: Flex 4: Window System Development - Can't Use The PopUpManager To Handle Custom Components

Aug 24, 2010

My application will need some windows but I can't use the popUpManager to handle custom components so I'm thinking to implement a new window system. But I still don't know how to merge it with my custom components.

[Code]....

View 1 Replies

ActionScript 3 :: Flex Pass Parameter To Custom Component

Feb 11, 2011

I have a custom component written in action script (no UI). I am instantiating this component in an mxml file which is present in a library project. The custom component has a constructor which takes one argument. The library project is used in some other web project from where i pass a variable to this mxml file.[I have linked source of the web project to source of library.].

I have a static variable in my library project which holds the reference of the current object of the project. I need this static variable in order to use properties present in the mxml file. I am unable to use the property sent from the web project in the constructor of the custom component, but able to use the same in some other function present in the custom component.

View 1 Replies

ActionScript 2.0 :: Access FLVPlayback Components And Change Parameters?

Dec 22, 2010

ActionScript Code:
for (var v = 0; v <= 10; v++) {
var flv = attachMovie("FLVPlayback", "my_FLVPlybk" + v, v+1, {width:20, height:20, x:100, y:20});
}
With this code I have created 10 flvplayback components and inserted in the screen. How to access to each of this components i have created and change parameters like pause() them stop() play() add contentPath etc., I need that only after the loop is finished not while the loop is still on. Something like
findComponent("my_FLVPlybk1").stop();

View 2 Replies

Flex Custom Event - Dispatch An Event From Inside Two Nested Components And Receive

Apr 12, 2009

I am having trouble using a custom event in flex. I need to dispatch an event from inside two nested components and receive it in the main application file. The basic set up is a main application file importing a custom "gallery" component.

[Code]..

View 1 Replies

Flex :: MXML Syntax To Assign Properties Of Subcomponents In Custom MXML Components?

Jun 4, 2011

I am working on a custom Flex 4 component which is an aggregation of two existing flex components. I would like to be able to specify my own custom properties for the component as well as access the existing public subcomponent properties via MXML. For instance I might want to adjust the font color or style for the label and text input. toy component which aggregates both a label and a text input:

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 1 Replies

Flex :: Extending MXML Custom Components Via MXML?

Feb 3, 2011

What I'd like to do: create an MXML component with some children, then extend it via MXML to create a new component with more children, without losing the original set.In other words

create a component bc.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"

[code].....

View 1 Replies

ActionScript 3.0 :: How To Pass Parameters To .swf

Jun 12, 2009

want to make a sfw that receives parameters from the html tag. for example, when you embed youtube videos, in the <object> thingy you set the video you want to show. i want to do exactly the same, have a 'projector' (though not exactly videos), the swf knows what to do from the html tag params, and displays the right content. how do i red html params from the sfw (and how do i test it?).

also, is there any doumentation/examples on how to connect php/mysql to a flash movie?

View 2 Replies







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