Flex :: Access A View Inside A Tab Navigator When A Tab Is Clicked?

May 19, 2010

I I have a view in Flex 3 where I use a tab navigator and a number of views inside the tab navigator. I need to be know which view was clicked because of it's one specific view then I need to take action, i.e. if view with id "secondTab" is clicked then do something.

I have set it up to be notified, my problem is that I need to be able to know what view it is. Calling tab.GetChildByName or a similar method seems to only get me back a TabSkin object.

<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"

[Code].....

View 2 Replies


Similar Posts:


Flex :: Cross Navigation From One View Navigator To Other?

Apr 13, 2012

Suppose I have two tabs in my app:

<ViewNavigator id="tab1" firstView="Tab1">
<ViewNavigator id="tab2" firstView="Tab2">

I go into Tab1, and start pushing other views onto the stack

navigator.pushView(Tab1View1)
navigator.pushView(Tab1View2)

and so on....

Now I want to jump directly, with NO TRANSITIONS, from one of the views deep in Tab1, into one of the views in Tab2. How do I do this?

View 1 Replies

Flex :: Disable Action Bar Animation During A View Navigator Transition?

Nov 29, 2011

does anyone know how to disable that slide animation and just have the action bar instantly change to whatever action bar the next view contains, but still do a slide navigation for the rest of the view. My Action bar doesn't change on every page so seeing the same image reload repetitively in the action bar.

View 1 Replies

Actionscript 3 :: Add An Event Listener To A Button Inside A Tab Navigator (flex 4.5)?

Nov 4, 2011

I have a tab navigator defined in MXML, with two tabs.In each tab, I have some buttons. I have used ActionScript to add event listeners to all the buttons, and they work for the buttons that are visible (and in the currently "active" tab) when I load my Flex 4.5 AIR application.However, I get an AIR error for the event listeners attached to the buttons in the second tab.Here's the crucial part of the error:TypeError: Error #1009: Cannot access a property or method of a null object reference.

View 1 Replies

Flex :: Change A View From Inside A View?

Jun 13, 2010

I have one .mxml file (the Application) with a ViewStack (with 4 views) and a ControlBard, obviously I can change the views with it, but what I want to do is: in view #1 I have an image which I want to convert to a "hyperlink", so when I click it I go to View #2, is this doable? Also I would like to pass somehow some data (like a String) to that View #2 (lets say the it's a user avatar I click so I want to go to the second view which will show me his profile, that's why I need his name/id).

View 1 Replies

Flex :: Access A Public Function Outside Of The View It Is In?

Feb 6, 2012

I have been working on a Flex Mobile application using Flash Builder 4.6. I have 2 mxml 'views' in my project. In one mxml file, i have a function that grabs xml data. In my other mxml file, I have a refresh button that when depressed is suppsosed to call the function in the first mxml file in order to once again grab the xml data. I dont know how to call that function from outside the mxml file it is housed in. [UPDATE #2]* I thought I should share some more details about my issue.

It is a reddit client mobile app. It fetches the feeds, etc. In my main view called RedditReaderHomeView.mxml, I am using a splitViewNavigator spark component to house two other views like so:

[Code]...

View 2 Replies

Flex :: Check If Clicked Element Is Inside Of IVisualElement (parent)?

May 27, 2010

I'm trying to check if a clicked element is inside of an IVisualElement in Flex 4. So I want something like "if this element is in this element, then execute function". I'm aware of the 'parent' property but this doesn't seem to work when my element is not a direct child of the element but for example 3 levels deep.

View 1 Replies

Button Is Clicked An Swf Page Slides Into View?

Jul 27, 2005

I have a scene that when a button is clicked an .swf page slides into view. The problem is it's moving in front of my navigation bar & I'd like it to slide in behind it.

[Code]...

View 1 Replies

Flex :: Lie Two Canvas At One Tab Navigator?

May 18, 2011

I want to lie two canvas at one Tab Navigator. when I use <mx:local it created multiple tab.

View 1 Replies

Flex :: Presentation Model Pattern Can View Specific Logic Reside In View?

Aug 15, 2011

I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.

View 1 Replies

Flex :: Navigating Directly To The Second Tab In Tab Navigator?

Jun 4, 2010

I have a component mxml in which i have a save button, on click of the save button i need to display another component which will be in a tab navigator, for this I am using the view stack. My problem is, on click of save I need to display the second tab instead of the first tab, but defaultly the first tab will be displayed.

View 1 Replies

Flex :: Canvas - 3 - Custom Tab Navigator

Aug 4, 2010

I'm trying to create a custom tab navigator that has to look like. Also, when there's a rollover, the borders of the arrow have to be in blue (like the label in the current tab). For that purpose, I've created a custom component: a hbox containing a label and a canvas with 3 images inside (for the arrow tip that has to change depending on the currentState). Then, I thought of overlapping the components in order to get the blue highlight color (ex: arrow button 3 is over arrow button 4. The image of the arrow tip in button 3 will be transparent outside the arrow, so that we can see the black color of the following button).

I'm now trying to position the components inside the canvas ... but I cannot. After the creationComplete event, I assign the label text and I was calculating the coordonates of the component but it doesn't take into account the label width... -_-'

View 1 Replies

Flex :: Tab Navigator In A Title Window?

Aug 17, 2010

I am adding a tab navigator to a title window here. Once the title window is closed, it can be reopened using the button.But on opening the title window second time in this manner ,the content of the children of the Tab navigator(here, a label) is not visible.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"
<mx:TabNavigator x="68" y="68" width="200" height="200" id="tabNavig" historyManagementEnabled="false">[code]....

View 1 Replies

Flex :: Tab Navigator Initialize Hidden Tabs?

Dec 2, 2009

My problem: I have a tab navigator, with many forms in each tab. But I have a single global save button.Problem is, if I don't open a Tab, it doesn't get initialized and therefore the forms it contains do not exist..

How Can I make it as if the user had clicked on every tab?

View 2 Replies

Flex :: Mobile - Navigator.pushView Slow?

Oct 27, 2011

This is a general question on optimization technique and am more than willing to rewrite a majority of my code as I am moving a lot of it to a library.My concern applies not so much to flex performance as I have used methods that have reduced cpu/memory footprint so performance is quick when inside a view.The problem I have is with the navigator.pushView which seems slow, I do call my init function on creationComplete for the view but I have it factored so my init looks like:

private function init() : void {
doStuff1();
doStuff2();

[code]......

View 1 Replies

Flex :: Taken Push View Object Into Next View?

Sep 28, 2011

My problem is that when I try to pass an object from the navigator.pushView(view, dataobject), I can't figure out how to access the dataobject from actionscript. I can access {dataobject.property} from MXML easily, but I want to set a variable in the new view to the passed dataobjects property.

View 1 Replies

AS3 :: Flex - Access An Object Inside A Loaded Swf?

Jun 28, 2010

I have two swf, one loads the other using a Loader class, in the loaded swf I have a NetConnection object which I need to access from the host swf, but I can't, if I debug the app, I see the obejct is there, but I can't access it, if I try to set a variable likeloadedSWF = connectorLoader.content (connectorLoader is the Loader object)loadedSWF is always nullIf I debig the app, I see the NetConnection in the loaded SWF, but I can't have access to it, I have try to use Security.allowDomain("*") in both swf to be sure, but nothing, I thought that only doing the allowDomain method I will have access to the loaded SWF objects

View 1 Replies

Flex :: Get A File Explorer/Navigator To Work In Adobe AIR Applications?

May 6, 2010

I realize this is probably a simple question but my google-fu is failing me. I would like to get a windows explorer like file browser to popup when I click a button to select images to upload to my AIR application.However I cannot find a component that handles File exploring. Does anyone know what to use?

View 1 Replies

Flex :: Adobe - Navigator - 3rd Tab Is Not Initialized When Click On The First Tab Link Button

Nov 2, 2010

I have a flex application mxml file with 3 tabs.the first tab having the link button to select the value in the 3rd tab. Suppose, i have a link button in first atab. And the 3rd tab contains the combobox with values:"basic", "advanced". by default the vaule is displaying "default". When i select the linkbutton on the first tab, the "advanced"should be displayed in the comboBox on the 3rd tab. and the problem is , when click on the first tab link button , at that time the 3rd tab is not initialized. So it is not displaying the "advanced" in the comboBox. selecting the 2nd time on the link button it is displaying fine. But not first time. code: thirdTab.comboBoxId.selectedItem.data = 1;

View 4 Replies

Flex :: Access The Property Of An Ellipse Inside A Group?

Jan 3, 2012

Let's say I have the following MXML:

<s:Group id="b01">
<s:Ellipse x="267" y="96" width="30" height="28">
<s:stroke>[code]....

And that I have a dozen more of these groups with different ID's. How can I modify the fill color of each Ellipse using ActionScript? I know I can do something like this:

b01.getElementAt(0).width;

And that will give me the width of the Ellipse. But how can I access the SolidColorStroke color or the SolidColor fill?

View 2 Replies

Flex :: Tabnavigator - Hide Some Tabs In Tab Navigator And Show Them Only When Certain Event Occurs

Sep 20, 2010

I am using tab navigator. And it has thee tabs "Search", "Show as text", "Show on map" I have a address search box in Search tab. I would like to hide other two tabs if search has not happened yet. So if user hasn't searched any thing other two tabs shouldn't be visible.

View 1 Replies

Flex :: Flash Builder - Mobile - Replacement For Navigator.pushView In TabbedViewNavigatorApplication?

Nov 9, 2011

I can use:

navigator.pushView
in ViewNavigatorApplication, but can't use it in TabbedViewNavigatorApplication?

Is there a replacement for navigator.pushView in TabbedViewNavigatorApplication?

View 1 Replies

Flex :: Access Properties Of Component Inside Item Renderer

Jun 1, 2010

I have an Item Renderer having HBox. Now I want to add child in that HBox from my application file using addChild method. Any way around for the same. I am not able to access the properties of HBox inside the item renderer.

View 1 Replies

ActionScript 2.0 :: Making Objects Appear Inside A View Area?

Mar 29, 2005

Making Objects Appear Inside a View Area

View 3 Replies

Actionscript 3 :: Make Flash Builder Package Explorer Emulate Flex Builder's Navigator Window?

Apr 21, 2010

Does anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window?

Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to more power and complexity only if necessary. I want to focus on the code, not on how to navigate and use the bells and whistles in the coding environment.

View 1 Replies

Flex :: Access XML Object In Restlet 2.0 Thats Wrapped Inside A Representation Object?

Jan 7, 2010

I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is irretrievable. How do I retrieve it? I tried initialising the received Representation object to a DomRepresentation, but thats not working. If I put the received Representation object into a Form object, then getFirstValue is returning that XML as a string! I noticed that the contentType of the HTTPService was application/www-form-encoded so I set it to application/xml and its not helping either. I use restlet 2.0m6 and here is the code snippet that I use -

[Code]...

View 1 Replies

Flash :: Set Variable Inside AddEventListener Clicked Event?

Aug 4, 2011

I want to make a clicked function that recognized the item being click

Here is my try, but It didn't work:

package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class main extends MovieClip {

[Code]....

I understand that I should set 2 things inside the ClickedF of addEventListener but I really don't know how to do it T_T

View 2 Replies

Flash :: Address The Object That Has Been Clicked But Not The Children Inside It?

Aug 5, 2011

inside a MouseEvent.CLICK function, I usually used e.target to address the movieClip that I clicked, but that only work with a movieClip that doesn't have any children (such as text and other symbols) inside. When it has children inside, the e.target return the child inside the Mc but not the Mc itself. The e.currentTarget didn't work, either; it returned [object MovieClip] but not the instance name of the Mc.

View 3 Replies

ActionScript 2.0 :: Clearing Input Text Box When Clicked Inside

Aug 18, 2006

I have a simple input text box that has some text pre entered into it eg Put your email address here.Now when the user clicks into this box I would obviously like to clear that.

View 1 Replies

Actionscript 3 :: Flex - Access Component Inside Another Component In MXML?

Sep 3, 2009

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.

View 4 Replies







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