Actionscript 3 :: Unable To Reload The Swf Again In Flex Applicaion (AIR)?
Sep 1, 2010
In my flex application I am showing a titleWindow as popup which has a swfLoader and it loads one swf file. My application and the loaded swf file communicate with the help of LocalConnection. And here is the flow.When the popup opens, I create a connection.
connection:LocalConnection = new LocalConnection();
connection.client = this;
connection.connect('ApplicationConnection');
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.
I am using a datagrid. It has itemEditor components, combo boxes, etc. as aprt of columns.datagrid.invalidateList() method works to reload the datagrid with new dataProvider data.But, for me it is appending to the old data and new data gets added below the older data. I am not able to fix this reload of datagrid.
I've followed the getting started for BlazeDS. I'm making changes to the Flex code using Flex Builder 3, but I just can't get the changes to show up when I refresh the page on my client. Server and client are separate physical machines, I've even re-started the server hardware. One curious thing, even when I re-started the server I didn't have to re-login to the Tomcat manager page
working with flex 4 and implementing filtering using ITreeDataDescriptor.Filtering worked as expected like the following code snippet however, i am trying to create a on-demand type of filter where user would type in the search clause in a TextInput, and as the user types, the tree nodes would be filtered on the fly.my implementation now is have user click on the search button and then reapply the dataDescriptor then reload the data. A big problem is that the whole tree collapses after setting the dataProvider again.any suggestion on how the on-demand filter can be achieved?
var dataFilter:ServicePricingFilter = new MyFilter(); dataFilter.searchString = this.txtSearchKeyword.text; this.treeService.dataDescriptor = new MyDataDescriptor(dataFilter);
I developed a flex website, the web explorer always caches swf file which embedded in HTML. Sometimes I make changes to the flex file, clients computer still view the previous version which stored in cache. How can I force client's web explorer to reload/refresh the swf file?
I have created a style in which i am defining a font family.When i apply this style to label it reflects the font were as there is no change when it is applied to a spark button.I Tried various way to Apply font style but it doesn't work.Other properties work fine except font family. Even i tried creating skin class and set the font family style of label in it. While previewing the skin i can see the changes but when i apply it to buttonApproach 1
I work with Flash Pro allmost 11 hours per day and every while i get a error which messes up everything. Approximetly i get this after about 2-3 hours withevery project.After i get this error there is no chance to test movies afterwards.I see a fast flash of the loader window but it dissapears so fast i cant even really see if it is loader.
I am facing a problem in flex 4.1 sdk. (thou I was using flex 4.5 sdk, but for some reasons I had to use 4.1, I can explain that too, but its relevant to the problem I am facing now) I fixed all the errors that I got when I complied my code in Flex 4.5 to Flex 4.1, now I dont get any error. Basically most of the error were because there is no Image class implemented using the Spark architecture in Flex 4.1. So, I switched to mx.controls.Images class.
Now I dont get any errors, but after building the project, and running it, I do not see any images in the entire application. I also compiled the code again with 4.5 (with mx.control.Images class) I see the images properly.
I can identify the type of an object in flex? In particular I have an array where I store multiple types in (but all UIComponents) now as I evaluate the array I want to find out whether I have a TextInput Control or a RadioButton. Does someone have an idea?
So on the focus change i want to run the "end_preview_on_focus_change()" but this is not working. As per my understanding, i think the canvas not getting any focus in the first place. I was trying to use focusManager.setFocus to do that after the canvas's creation complete. but even that is giving me an error.
I am using the mxmlc to compile the examples from google to get started in using Google Maps API in Flex 4.But after compiling the swf file the map does not load.
I've registered for an API key Downloaded and included the Maps SDK in the xml config file used at compile time C:sdkflex4frameworksflex-config.xml
I have an Flex 4 application that I am developing in Flash Builder 4. I'm trying to use a library developed by a coworker, which was delivered as an SWC.I added the library to the Library Path in the project properties. Component set: MX + Spark, Framework linkage: Merged into code. When I attempt to instantiate a component from this library, I get the following error:unable to add archive file: [library].swc$localeen_US....sourcesimagesAcceptButton.png (The system cannot find the path specified)
In the sample above, sometimes all the data in the "Location Origin" will be null, so under the visible property I put a value which is either true or false depending on the data. But even when all the data is null and the visible property equals false, it still stays visible.
In my application a canvas object has height = 90 px & width = 86400 px (indicating number of seconds in a day [60 * 60 * 24] ). The canvas is scrollable and the user can add or delete components in that.Now, I want to have snapshot of the whole canvas & shrink it to size 910x30 to draw taken snapshot in another canvas.Can anybody tell me how to take snapshot of such large Component?I have tried to take snapshot in BitmapData object but as it max width is 2880 can not give whole canvas snapshot.
When I try to access the uncaughtErrorEvents dispatcher when loaded directly, everything works well. But when I try the same code when loaded by another swf I get a reference error.
I have a series of projects that we have been using Flex3/Flashbuilder to work with, but I've recently been trying to move over to Flashdevelop for most of my development but I have hit a snag with a certain project structure that Flex/FB can handle but FD/mxmlc can't with sdk 3.*What I have is something like this:
project_root/ /src /resources
The resources in flex is added as a class path to the project and I am embedding images like this: [Embed(source="/wardrobe.png")]
This all works fine in Flex/FB but FD I get there errors for all my images :
Error:unable to resolve '/wardrobe.png' for transcoding Error:unable to transcode /wardrobe.png
This problem don't occur when I'm using the Flex 4 sdk, but for these projects I require 3.2.
On Windows XP 32bits, I find it strange that the FB4 Export Release Build doesn't have the option to export as EXE in contrast to the one I have in W7 64bit?
I'm trying to set width/height of a FlexSprite object in ActionScript but it doesn't seem to work at all. I'm still a rookie when it comes to ActionScript and I don't understand why I can't set the dimensions of that object. I know I could use a UIComponent but I need something more lightweight since I'm going to add hundreds of them.
public class MyComp extends UIComponent { public function MyComp() {
[Code].....
I plan to add other objects inside the FlexSprite and I need to set their dimensions explicitly as well so I really need to figure out how to do that.
In IE, the session work, but in Firefox, it always return empty value.
I have set $_SESSION['apple']='1' in index.php
When executing a Flex 4/flash app that will allow user to browse an image file using filereference for upload to the server (this app is image uploader), the file will then pass to second.php to validate whether it is an image.
In the second.php itself, I have a function that need to retrieve $_SESSION['apple'] value which was set in index.php, it always return empty string in Firefox and Chrome but work on IE9.
Has anyone came across the same problem with $_SESSION on Firefox and Chrome?
How do I make sure the second.php can retrieve $_SESSION?
I have an AIR application in which I have to start some native applications in a windows machine.But the problem I am facing is that whenever I try to create a NativeProcess instance,I am getting a compiler error because NativeProcess is not getting imported into the project.I tried import flash.desktop.*; Even then no use.I have also added <supportedProfiles>extendedDesktop</supportedProfiles> in the application descriptor file.I am using FlashBuilder 4 with Flex 4 SDK
i wanna make a dynamic tree using a lazy loading ,each time i open a folder the tree sends a http request to the server, in this script i'm using just static text to test the tree but , i'm getting in the label of the root all the XML text assigned to the dataprovider, then when i open the root folder i got the childs with good labels , and openitem and closeitem events do not fire how could i make them