Flex :: Refreshing View When Application Is Visible?

Aug 16, 2010

Flex application is contained in one of the rows of a html table, and that row is hidden as per one use case. Flex application is refreshed when visibility of the row is changed to visible. This results in lose of data that is already entered in the flex application. Is there any way to stop this behavior?

View 1 Replies


Similar Posts:


Flex :: Reset/reload A Flex Application Without Refreshing The HTML Page Or Reloading The SWF File?

Jan 12, 2011

I have a flex application that has a home button. I need to reset the application when this button is clicked. I can't use navigateToURL or ExternalInterface.call("window.location.reload"); as its not acceptable to reload the swf file.

View 5 Replies

ActionScript 3.0 :: Delete Temp Files With Refreshing Flex Application?

Apr 12, 2011

I am using many external swf file in my flex application,but when i use the files which are in same name its not getting refreshing properly, so i need to delete my temp file without refreshing the application.

View 0 Replies

Flex :: Adobe Keyboard Shortcuts When A View Is Visible?

Dec 10, 2009

I have a quite large Flex application with a large set of views and I ceratain views I'd like to add shortcuts. And i'm looking for something like:

<mx:Vbox>
<foo:Shortcut keys="ctrl+s" action="{bar();}"/>
</mx:VBox>

Is there any framwork or component already done that does something like this? I guess it should be too difficult to build? When building this I only want the shortcuts to be active when the view is visible. How do I detect this? What base class is best to inherit from when working with non visual components?

View 3 Replies

Java :: View Part Of A Web Application - What Technology For A Pretty Intensive Grid View

Aug 3, 2010

I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example split an event that spreads among several cells. So I search an not too overkilling technology to render this kind of view. I begun with a PHP generated HTML page but the number of elements in the page make the mouse move jerky.

Moving to JAVA would give me better performances regarding the reuse of the generator of the view but it will still be an HTML page. So, here is my question: do you think that going forward with JAVA and its graphical capability is the simple solution or is Flash a better option for this part of a Web App? I'm afraid of the code I'll have to write in JAVA to handle the GUI presentation as well as the events generated by the 1000's cells plus borders of the page. In Flash, the graphical part seems simpler even if the actions handling is still huge.

View 2 Replies

Full Screen View Of Flex Application

Oct 20, 2009

I want full screen view(through code,without pressing F11) of my flex application.

View 1 Replies

Actionscript 3 :: Initial View For A Flex Application?

May 26, 2011

I want to load an initial component to be displayed in my flex app, depending on whether a value in the SharedObject is set (first launch). How do I accomplish that?

View 1 Replies

Actionscript 3 :: Break Down A View In A Flex Application?

Sep 25, 2011

I've written a flex (mobile) application, that ended up bigger than I expected.

I'm pretty happy with all my classes and everything on my AS files. However, the view turned out really big, as I'm using MXML to layout my app.

I was thinking about creating external components I could call on my view to make it more readable, but am not sure what's the best way to do, or if doing so is the best way at all.[code]...

View 1 Replies

Setup All Of Controls ( More Than 100 Visible ) On A Flex Application?

Jun 12, 2011

I am planing to setup all of controls ( more than 100 visible ) on a Flex application to alpha below 1, which will make them a bit transparent, but i am wondering if this will affect the performance of the application. So :I would like to know if alpha actually affecting performance on Flex applications ?

View 2 Replies

Flex :: Changing View States On Application Resize?

Aug 6, 2009

I want to change the view states in my flex app when it resizes in the browser window.I have the swf embedded at 100% x 100%. So when the user resizes the window below a certain width, I want to switch to a different state. I tried adding an event listener like this, but it only fires the event when I resize the swf outside the browser, not inside. I used:

this.addEventListener(ResizeEvent.RESIZE, SizeChanged);

I want this to work within the browser. I even tried using fixed dimensions in the embed code, instead of percentages, but that didn't help either.

View 1 Replies

Flex :: View Documents Stored In The AIR Application In The Browser?

Sep 20, 2010

We have an AIR client which talks to a WAMP server. We store documents.One of the customer requirement is: they want to their website users to view the documents stored in the AIR application. It should be a read only access. The users will not have our air client installed on their machines. All they do is to check the customer's website.

View 1 Replies

Flex :: Display Another Mxml File As Main View Of Application?

Dec 3, 2011

I have the following problem of how to display another mxml file as main view of application For example, lets say I have main.mxml displaying as main window. When I click button I want to display another mxml file lets say newMain.mxml and close main.mxml

View 1 Replies

Flex :: Open A Browser Window To View An Image Created By An Application?

Aug 26, 2009

I have a flex 3 application that creates an Image from a canvas which the user draws on. I use the ImageSnapshot class to create the image

var imageSnap:ImageSnapshot=ImageSnapshot.captureImage(myCanvas);
var imageByteArray:ByteArray=imageSnap.data as ByteArray;

I want the user to be able to print or save the image. I can use the following code to print the image but flex does not provide good control over printing across multiple pages

var printJob:FlexPrintJob=new FlexPrintJob();
printJob.start();
printJob.addObject(myCanvas, FlexPrintJobScaleType.SHOW_ALL);

I would like to display the image in a browser window so that the user could print it using the built in browser functionality or right click on the image and save it. Can this be done without requesting server side code to do it?

View 3 Replies

Flex :: 4 - Move All TitleWindows Instances Within The Visible Area After Application Change It's Width / Height?

Jun 8, 2011

Is there a nice and not much processor consuming way to move all TitleWindow instances within the application visible area when the application been scaled - change it's width or height ?

View 1 Replies

ActionScript 2.0 :: Print The Current Visible View Of An Mc?

Feb 21, 2008

I have a print function that is supposed to print the current visible view of an mc...the mc contains a map that can be zoomed in on and panned...I want to only view what the mc shows...and I had this function working before...but I have made hundreds of changes to my code, without testing the print function along the way, so I have no idea what I did that may have broken my function..

[Code]...

View 2 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 :: 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 :: 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

Hide View Stacks In AIR Application?

Jul 24, 2009

I have two viewstacks one for Main menu and another one for submenu. I want to show viewstack page infomation at the time only one viewstacks . Another one hide . if i click submenu viewstack then Mainmenu viewstack will be hide . [code]...

View 1 Replies

Actionscript 3 :: Add Element To A View Of A Mobile Application In It?

Mar 15, 2011

I have a program with a list of item. An item is an actionScript class that extends View. When I click on the list, it push the view. In the constructor of this class I add some buttons and I have a function that add another button.My problem is that the view display only the button create in the constructor and not the one create in the function.[code]...

View 1 Replies

ActionScript 3.0 :: Add Element To A View Of A Mobile Application?

Mar 15, 2011

I have a program with a list of item. An item is an actionScript class that extends View. When I click on the list, it push the view. In the constructor of this class I add some buttons and I have a function that add another button. My problem is that the view display only the button create in the constructor and not the one create in the function.

The class

Code:
package
{
import spark.components.Button;

[Code]....

View 0 Replies

Flex :: Refreshing An XML File Through HTTPService?

Apr 21, 2010

I'm having a problem refreshing an xml file. I am bringing it in through an HTTP service component and putting it into a bindable array _cattArr, that I am using as the dataprovider for a grid.When someone adds an item to the datagrid, it saves to the same xml file. Then I close the window, reopen it and don't see the item that has been added.It is writing to the xml file, because when I restart the flex app, the item has been added, it's just not refreshing it. I have tried to resend the httpservice, but still no luck. What is the correct process for doing this?

View 3 Replies

Flex :: Refreshing A Binded DataGrid

Mar 23, 2011

I have a problem..I am binding an array collection to a datagrid in flex. My problem is whenever i try to remove an item from the array collection.. the datagrid does not refresh the values....This is the code that I am using

[Code]....

eventsList is the datagrid that is bounded to showArray(an Array Collection)

View 1 Replies

Actionscript 3 :: Refreshing A Flex Component?

Jul 14, 2011

Is there a way to refresh a component or an application back to its initial state? I have an accordion navigator that stays on the most recently selected index even if I log out. Right now, my log out function takes me back to the login page which is at state(1). If I log back in and go into the accordion, it is on the last tab I had viewed.I would like to be able to clear any data from the controls inside the nav and reset the nav back to its default. I thought something like,

public function logout():void{
currentState = "NotLoggedIn"
myAccordion.initialize(); }


would work but nothing happens. This is done in Flex 4.I know I can make a huge loop clearing each control individually and setting the selectedIndex of the accordion to 0.

View 1 Replies

ActionScript :: Flex - Keep Selection When Refreshing Datagrid

Oct 20, 2010

I'm working on my first ever AIR application with flashbuilder - just so you know. I've bound a mx:DataGrid component to a DataProvider which is a mx:HTTPService fetching an xml file with items. To keep the data up to data I'm polling the webservice on a given interval.

My problem is that I loose the currently selected item in my DataGrid when the data is updated. I've tried to save the DataGrid.selectedIndex and set when the data is updated, but I'm not sure when to do it?! The closest I've come is to restore the index when the updateComplete event of DataGrid is fired. This works, but the selection first fades away and then fades in - not updated soon enough. So what is the best way to keep the selection? (only one selected item at a time) And as a side question: is there a convenient way to only update the data when it has actually changed?

View 2 Replies

Flex 3 :: Refreshing Repeater After Adding A Child

May 23, 2011

Within a child, I have an XML element with the following structure:[code]I then use a repeater to list each out onto the screen. There's a button I have created that is used to create a position. So, once the user clicks this button, I call the following function:[code]The above function creates a new XML object, puts some default values in, and appends it to the list of project positions. After appending the new information, I made the height of the project larger and then check to make sure the new project height isn't overlapping any other projects... but that information is irrelevant to this post.My problem is this - once i append a new child to the XML variable, it doesn't appear on the screen. Is there a "refresh" or "re-render" option i can do to the repeater in order to make the new child show?[code]Once i make the changes, and use the XMLListCollection as the dataprovider in the repeater, the information no longer loads on the screen.

View 1 Replies

Flex :: ComboBox LabelFunction Not Refreshing With Updating Of An ArrayCollection?

Aug 11, 2010

My first issue is that when my ArrayCollection only has one item, for some reason I cannot select that first item. The change function set on the mxml never gets called when I try to select that one item. If I set a prompt, it works. I know that the item is not already selected because when debugging, the selected item shows null. I do not want to use a prompt. I want the first item in the ArrayCollection to be selected automatically. So if there is only one item, I want the selected item to be that. FYI - I am using a labelFunction to format the data in the Array Collection. why I cannot select the first item or set the first item in the ArrayCollection to be the selected item?

My bigger issue is that when my Array Collection gets updated, my label function must not be refreshing because when I first open the dropdown, it has specfic data. When the Array Collection gets updated and I open the dropdown again, I see the old data in the dropdown, yet it doesn't exist anymore.

So let's say I have a ComboBox that has a datasource of an array collection of one state code and it's state name. Their is a labelFunction that puts a dash in between the state code and the state name. Their is no prompt, so the ComboBox would look like GA - Georgia and when you open the dropdown, that would be all that is there. I want that item to be selected automatically. why the old data shows up when opening the dropdown after the array collection was updated with new data?

<mx:ComboBox labelFunction="getFormattedNpaNxxCollectionList()"
dataProvider="arrayColl" change="doSomething()"/>
public function getFormattedNpaNxxCollectionList(item:Object):String
{
return StringUtil.substitute("{0} - {1}", item.stateCode, item.stateName);
}

View 1 Replies

Flex :: Refreshing HiearachicalData Based On Source Updates?

Apr 4, 2011

I have an ArrayCollection we'll call "Items". It is essentially a flat collection of hierarchical data (each item has Parent and Children properties). I want an AdvancedDataGrid to display the data in hierarchical form, so essentially I could just do this and it would display fine:

// Note: RootItems would be an ArrayCollection that is updated so only the
// top level items are within (item.Parent == null).
var hd:HierarchicalData = new HierarchicalData(model.RootItems);

[code].....

View 1 Replies

Actionscript 3 :: Flex: Refreshing Custom Mxml Component On Button Click

Mar 3, 2010

I have defined small MXML component which calls web service which returns random number on request, then my component displays the number.

How do I refresh the MXML from main application control, so it will recall server again?

View 1 Replies

Actionscript 3 :: Adobe Flex3: Make A Part Of Application Visible On Showing Modal Popup

Oct 6, 2011

For example: Say the application has two VBox with vertical layout. There is a Button in first VBox and when clicked, there is a custom modal popup being shown. By default the whole background of the application remains blur, but I want the second VBox to be visible. Is this possible? If yes how can i accomplish this?

View 2 Replies







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