Flex :: Mxml - Call A Customcomponent With Added Functionality?

Apr 8, 2011

I have created a custom component (named customtitlewindow) the code of which is as follows:

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

[Code]....

The main purpose of mine is that for all the popup windows shown to end user all of them be closed when the escape key is pressed and all of them be closed upon click of the closebutton displayed at the titlebar.

But on the "escape key" press nothing is happening.

View 2 Replies


Similar Posts:


Flex :: Functionality Of A Timer Which Will Call The HTTPService Again And Again After Each 5 Minutes?

Oct 29, 2009

I have an application in which when i click on a particular tab an HTTPService having id="service" is sent. This service calls a php file which in turn extracts data from a table and return as xml string to Flex. Flex then use DataGrid's dataprovider attribute to show the data in the dataGrid.Can i have a functionality of a timer which will call the HTTPService again and again after each 5 minutes?

View 1 Replies

Flex :: Call One MXML From AS Code?

Feb 23, 2011

I am creating an AIR application, The mainapp.mxml has a button and VBOX. When clicked on button, child.mxml should be displayed in VBOX.

View 2 Replies

Actionscript :: Call A MXML Class In Flex 3

Aug 14, 2009

I have a page made of custom components. In that page I have a button. If I click the button I have to call another page (page.mxml consisting of custom components). Then click event handler is written in Action-script, in a separate file. How to make a object of an MXML class, in ActionScript? How to display the object (i.e. the page)?

[Code]....

View 4 Replies

Flex :: Call A Mxml File In A Pop Up Window?

Aug 4, 2011

I have created a mxml file , and i would like to display it in a pop up window. i have alrdy done the pop up window, but i couldn't display the mxml file i have done. I am not trying to call the pop up window in the mxml page. this is my popup window i have done:

[Code]....

View 1 Replies

Actionscript 3 :: Call The Function That Is In Main.mxml App From A Class In Flex

Feb 24, 2011

i write a sound playback class that stop the older sound and play the new sound.After that i need an extra method in this class that trigger when the sound play is complete.I successfully achieve this, but i need to inform the main app (main.mxml) about the completion of that sound playing.

here is my sound playback class.

package com.m2b.data
{
import flash.events.Event;
import flash.media.Sound;

[Code]....

View 3 Replies

Actionscript 3 :: Flex - Make A Button In A Grid Call A Function In The Same Mxml File?

Jan 21, 2011

I've a grid view in flex, one of the columns is rendered like this:

[Code]....

now I've a problem that the function in button click is not being recognized. It says "call to a possibly undefined function" even though it was defined. What is wrong with this? How do i make a button in a grid call a function in the same mxml file??

View 1 Replies

Flash :: Flex :: AS3 Vs MXML - Compilation Speed Difference And How Does The Mxml Compiler Work

Sep 24, 2009

Does MXML get compiled down to as3 and then converted to flash bytecode? Also, is there a significant performance penalty to compiling mxml vs compiling as3?

View 3 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

Actionscript 3 :: Flex When Mxml Described Component Initialise It's Mxml Described Properties

May 28, 2011

I am trying to override a Button class, i have a few properties which i wish directly initialise with the mxml description of the component, like :[code]which function is triggered ( in order to override it ) when all properties with mxml description is fully initialised with their values ?

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

Flex :: Calling Another Mxml Function In Other Mxml File?

Sep 27, 2011

i have defined some functions in a component mxml file let us say addbutton() now i want to call this function in main mxml file.

View 2 Replies

Flex :: Retrieve Value On Main.mxml From Other .mxml?

Apr 23, 2010

main.mxml
[Bindable]
private var _dp:ArrayCollection = new ArrayCollection([

[code].....

View 1 Replies

Actionscript 3 :: Change Selectedindex From Viewstack From Child Customcomponent?

Dec 8, 2011

I have a viewstack, which contains 3 (at this moment just 1) customcomponents:

<s:Application xmlns:components="components.*">
<mx:ViewStack id="mainViewStack" x="76" y="90" width="800" height="400">
<components:Login />

[code].....

View 1 Replies

Professional :: Call A Page From An Added One?

Oct 22, 2010

I'm creating a website, on the stage I've got a menu and a movieclip which I use to show my pages, the movieclip's name is pagecontainer_mc.Each page is an exported class for AS3.When I click on a button on the menu, with removeChildAt() and addChild() I remove the current page and show the requested one.Everything ok with this.The problem comes when I need to call a page not from the menu, but from a button inside another page.I've tried writing this code on the main timeline:
 
var contacts:contatti = new contatti;
pagecontainer_mc.contacts_btn.addEventListener(MouseEvent.CLICK,showCo ntacts);
function showContacts(e:MouseEvent):void {        pagecontainer_mc.removeChildAt(1);    pagecontainer_mc.addChild(contacts);    }

[code]....
 
If I put the code inside the page's timeline I can't access to pagecontainer_mc (or at least I'm not able to do that).

View 3 Replies

Actionscript 3 :: Call Some Mxml Function From Class?

Jan 10, 2011

I have 2 files: Main.mxml with application and one MyObject.as.I create the instance of MyObject in mxml and can call its every public function from mxml. But what if for some reason I need to call some function declared in mxml from MyObject class?

View 2 Replies

ActionScript 3 :: Call Just Added MovieClip Element

May 16, 2011

I'm adding a movieclip element ("lastSlide") to an other movieclip element("endLogoButton"). The added element has a child which is a button("endLogoButton"). How can I call that button?
mcSlideHolder.addChild(lastSlide);
/*mcSlideHolder.getChildByName("endLogoButton").buttonMode = true;;
mcSlideHolder.getChildByName("endLogoButton").mouseChildren = false;
mcSlideHolder.getChildByName("endLogoButton").useHandCursor = true;*/
lastSlide.endLogoButton.addEventListener(MouseEvent.CLICK, linkClick);
It always tells me that the access to a Nullobject reference is not possible.

View 2 Replies

ActionScript 3.0 :: Call Event When Child Is Added To A MC?

Jun 8, 2009

Is there an event that is triggered when a new child is added to a MovieClip?[code]

View 5 Replies

Flex - Define A MXML Component And Update MXML Component In Flex Application

Aug 12, 2009

A Flex components values are initlized by init methord. In an application flow, How to refresh a mxml component data value ; as init is callled at the start up it self only.

eg. of mxml componet may be as simple as button label or text as complex as repeater whose data provider is a web service ( means a fresh quesy should be made to pull the data and refresh the dataprovider of repeater )

View 3 Replies

Flex :: Navigate From One Mxml To Another Mxml ?

Jul 7, 2010

suppose i have 3 buttons(for example say, productin, marketing, sales ) on my main.mxml..once i click on one button it should take me to abc.mxml page with production data, once again if i click on second button it should take me to the same abc.mxml but with marketing data. same as for 3rd button also, how can i achieve this ?

View 2 Replies

ActionScript 3.0 :: Call Mxml - Create A Mobile Project In FB4.5?

Dec 27, 2011

I want to create a actionscript  mobile project in FB4.5. There is very little information on this by the way. Anyway I want to link to another mxml component by clicking on a  button. in flex it is easy but how do i call this in AS3?[URL].. 
 
this is how flex does it <s:Button label="Continue" click="navigator.pushView(MyNewView)" styleName="next"/>

View 3 Replies

Actionscript :: Call From Mxml A Specific Method In A .as File?

Apr 1, 2011

i thought of drawing the interface using mxml markup. When the user clicks on a button it should call a specific method in a .as file. How can i do that in mxml ?

View 2 Replies

Flex :: Extending Mxml Component With From Another Mxml Component With Visual Child Supported?

May 18, 2011

I've been trying to create a custom mxml component that extends another custom mxml component (i.e.MyMXMLComponent -> BaseMXMLComponent -> Group). I've been reading that trying to add visual children to MyMXMLComponent caused error with Flex 3 but that's no longer the case with Flex 4.

What I want to know is whether this is a supported/fixed/documented feature of Flex 4? or just some undefined behavior in Flex 4 that may get changed with future updates?

if this is supported and documented feature, does anyone have link pointing to adobe document stating it as such?

View 1 Replies

ActionScript 3.0 :: Call The Slide Show Swf That Must Be Added ABOVE The Main Swf In The Display

Feb 21, 2011

The site operates around a swf named main.swf. All the different content areas are external swfs called by a navbar in main.swf. One of the primary content areas is a gallery of our work, with five separate types; branding, package design, collateral, Internet, and Digital. The left hand swf for the Gallery section contains five movie clips that let you select the specific gallery area that displays on the right hand side. Included in the right hand area are thumbnails (movie clips) that when clicked she wants a Greybox-like slide show to appear over the entire area (1100x x 690), INCLUDING the main.swf. As I currently envision it, this is an 1100 x 690 XML-driven portfolio swf, with the alpha of the overall stage box at about 30%, and the actual gallery centered.

If I haven't lost you, my challenge is to call the slide show swf from a click event in the thumbnail on the right hand side. If I understand the Display Object Model this swf is about three levels removed from the stage.

How do I call the slide show swf that must be added ABOVE the main swf in the Display List from a click on the right hand area thumbnail?

I'm gaining a better understanding of classes, and am using them to hold all the AS for the external swfs. Basically I need to be able to talk to the main swf from the brandRight.swf which is the right hand swf containing the thumbnails.

View 9 Replies

Flex :: Load An External Mxml File Into A Parent Mxml File?

Mar 9, 2012

This is a project I'm working on for a simple demo tutorial application in Flex. I am using mxml pages. You can see to the left that I will have my main application and then other mxml files (In the Examples Package) as the examples that will be loaded into the main application mxml. How can I dynamically pull the value from the object in the list to load the child mxml file into the container that I have further down in the application?

View 1 Replies

Flex :: Get Id Value Of Main.mxml File To CustomPanel.mxml File?

May 16, 2011

I have a method in CustomPanel.mxml and I need to use id which is available in Main.mxml. Below is my sample code

Main.mxml
<local:CustomDivideBox id="div1">
Custompanel.mxml[code]....

View 2 Replies

Flex :: Include An MXML File Inline Another MXML File?

Jul 25, 2011

I would like to include an MXML file in my MXML file in the same way you can include an external file in AS3 using the include directive. Using the include directive brings the code from the external file into the original file at compile time placing it in the same scope. For example,

Application.mxml:
<Application>
<source="external.mxml"/>

[code].......

View 4 Replies

Flex :: Use The Download Functionality?

Apr 8, 2011

is there any library for Action Script 3 that allows my AIR application to function like a version control (svn or cvs or something similar) client?

I just want to use the download functionality. my app relies on some folder and file structure that may change through updates and it'd be great if i could simply manage a subversion repository online and the application would automatically sync it's filestructure to this repository.

View 2 Replies

Flex :: Mx:method, Mx.rpc.remoting.mxml.RemoteObject, And Sub-classing Mx.rpc.remoting.mxml.RemoteObject?

May 6, 2010

I am looking to subclass RemoteObject. Instead of:

<mx:RemoteObject ... >
<mx:method ... />
<mx:method ... />

[code].....

View 1 Replies

Flex :: Functionality With Eclipse And Plugin

Jul 31, 2010

I have downloaded Eclipse - Helios and it is working perfectly. I am having a little trouble understanding the Flex functionality with Eclipse. Is it possible to download a Flex plugin or whatever it is called free of charge to develop and compile mxml and actionscipt files without having to purchase FlexBuilder 3 or 4 at a price of $600. I am under the impression that Eclipse is a free download and and Flexsdk is a free download. Can't they be put together into one tool? I cant afford the $600.

View 2 Replies







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