Flex :: MovieClip Not Being Updated While Loading A File?
Nov 5, 2010
I have a MovieClip which is just a progress bar animation with about 100 frames. Then I load a zip file using a URLStreamLoader and subscribe to the ProgressEvent.PROGRESS event. After loading starts I receive notifications correctly and I set the bar's corresponding frame using gotoAndStop(). Everything seems to work fine except for the animation not being visually updated.
It seems that the scene won't refresh until the zip file is fully loaded.
I would like to have flash (as3) to save a var to a text file located on my server so everyone can reach it from their client swfs. I also need to know how to update this variable by loading latest var on the server and writing over it with a new updated var I've read so much already and it all seems so confusing[URL]
I would like to have flash (as3) to save a var to a text file located on my server so everyone can reach it from their client swfs. I also need to know how to update this variable by loading latest var on the server and writing over it with a new updated var.
[URL]
I would like to, whenever I feel like it, be able to load that var and replace it with something else.
edit: has to use "w w w" instead of "www" as it told me I needed to have made 50 posts to be able to post links, and I've only done 19 so far
I would like to have flash (as3) to save a var to a text file located on my server so everyone can reach it from their client swfs. I also need to know how to update this variable by loading latest var on the server and writing over it with a new updated var.I've read so much already and it all seems so confusing [URL]
I am changing image through flex every time i change it saved into server directory with same name(which i am referring to show). So when i refresh my page my browser didn't send new request to server since it's already in request.so didn't getting new image.Tip:- when i clear browser history it will come with new image
Is it possible to "read" a text from a website that is updated from javascript like currency-quotes on this website directly from flash/AIR?It would be very time consuming to load the whole website each time. Therefore it would be nice to interact directly with the javascript.
if you have a movieclip nested inside another clip, and you scale the parent clip, how do you see what the nested clips new sizes is?
so i have a circle(50x50) movieclip nested inside a container clip.
i scale the container clip, and then trace the nested circles width and still get a width of 50, the question is.... how do i get the size of the scaled circle, and not its original size?
This seem like a silly question but as far as I've found: It's impossible to reload an xml file from a remote location while the SWF is running.
For example, I have a kiosk project that will run 24/7 (with a restart each night). I have an "calendar events" loading off an XML file that I want to keep on a webserver so I can update the kiosk by editing the XML file. However, the SWF caches the first XML file and keeps reusing it. I'm testing this by triggering a function that reloads the XML file with a button click.
I found trick that concats a unique ID to the file name which prevents using the old file but that means I'll have an ever growing list of XML files in the Temporary Internet Files folder.
I'm experiencing a major setback as i cannot get this to work at all. I'm using the scrollpane component so all textfields must be in a separate mc, and should be displaying vars from an external as file. I have an import set up on the first frame of the main timeline and all the references inside the main timeline are correct:
Code: import Variables; var variables:Variables = new Variables();
the problem starts when displaying data onto the tf's inside the mc, which all return as their initial hardcoded values (not reflecting any changes made throughout the game) I use the code above for the import inside the mc aswell (coz i dont know any better) but it's as it creates another instance of variables.as to use within the mc only. If i change values within the mc's code they'll reflect but that's not what im looking for at all.
So my question is, is there any other way to import an external as file inside a movieclip to reflect the changes made to the values on the main timeline? Do i import it in a different manner, or approach it from a different direction, save its contents just before going to the frame containing the mc?
How do set up my Actionscripts so it can load a dynamically updated XML file? As you can see in the code below, I am able to load two items from my XML file; however, my XML file will be updated with more items to the list. Will I have to go back into Flash and hard code that in if I want Flash to read additional items.
Code: var req:URLRequest=new URLRequest("applications.xml"); var loader:URLLoader = new URLLoader(); var list:XML;
I will be trying to obtain data from a periodically updated xml file. As far as I know, this file will simply continue to have data added to it indefinatly. Is there a way to load only the newly added data to the xml object? As opposed to loading the entire xml file each time I want to update my flash movie with new data added to the xml file?
I am drawing a cellular automaton simulation on a Flex Canvas. I alternate computing the state of the automaton with updating the graphics on the Panel. However, the updating of the Panel does not seem to be "keeping up" with the update of the CA state.
I'm wondering whether I am doing something wrong with my handling of the graphics code. The code is below. Sorry it's so lengthy, but I don't think the problem will happen with anything simpler (well, it probably will, but I'm not certain I want to take the time to find it).
problem-1:In php we can easily move one page to another and easily use different type of function from those pages.In flex3 how i can use different type of .mxml pag
In the code below, the presentedAlbumIndex is used to control the selectedIndex of the TileList. Item "five" is initially selected. Whenever the button is pressed the first item in the array is deleted, and the presentedAlbumIndex is decremented.
In theory, the selected index should stay with "five" every time the button is clicked (until "five" is itself deleted). It works this way for the first button press. However, on the 2nd button press the highlighting changes to "six" for some reason. Also, the TileList selectedIndex is always one behind.
I tried looking into ListBase and monitoring selectedIndex. It looks like the selectedIndex is updated initially to the correct index, but then it reverts back at some point to the correct index+1. I do not know why it's setting back.
It seems it's due to the fact that I am doing a data provider delete and index change in the same operation.
Is there some function in TileList I could override to keep selectedIndex up to date?
I have two tables: Person {pID, pName, deptID} and Departments {deptID,deptName}An SQL statement like this gets me the name of a person and the department name:
SELECT pName, departments.deptName FROM people INNER JOIN people.deptID = departments.deptID;
The above works fine. I have a Flex DropDownList that is populated with deptNames. When I click the submit button, I am able to obtain the ID of the selected department without problem:
protected function button_clickHandler(event:MouseEvent):void { person.pName=pNameTextInput.text; person.deptID=pDepartmentDropDownList.selectedItem.deptID; //ID of selected department obtained correctly. if (person.pID == 0)
[code]....
From the comment above, I see that adding person will indeed add the attributes of the person object to the datagrid, except that one attribute is a foreign ID (deptID) from departments.
i am working on an aplication using flex,adobe air...i have a datagrid with a XML as my dataprovider...during the execution of program my XML is updated....after XMl is updated and saved my datagrid should also get update..I have used Dataprovidername.refresh() method but it is not working.
I setup Cruisecontrol to auto build a flex project every 1 hour using FlexAnt. The build itself works great - I can see when the project build fails/succeeds in the console perfectly well. But the cruisecontrol dashboard is not updated for the flex project.I have the sample connectfour project, and when it fails, I can see the red box for the project in the dashboard. This does not happen for my flex projects.
Is there a way to detect the value change in HSlider (in Flex 4.0) without touching the slider.Basically, what I wanted is to detect if the slider value was changed programmatically.
Is there a way to extract a single file from a zip file in Adobe AIR?
I'm using NoChumps zip library to extract files from a zip. In this library the entire IDataStream is loaded into memory and after that you can extract file entries easily. In cases where the zip is 5 to 10MB there are no problems. But when the zip is 80MB, which many are, 80MB is loaded into memory. This causes the app to crash and run slow on mobile devices. According to the zip specification,
"A ZIP file is identified by the presence of a central directory located at the end of the file, this allows appending of new files. The directory stores a list of the names of the entries (files or directories) stored in the ZIP file, along with other metadata about the entry, and an offset into the ZIP file, pointing to the actual entry data."
Also, I do not have control of the size of zip files but most average is 60 to 100MB. Files inside are ~4MB.
I've downloaded the swf-file and the fla-file and there's three as-files used in those files. The file (fla) show that it use an external class (one of the as-files) and I think the problem is this class also affect the main-movie.
I may be wrong, but if I'm not.. how do I go around this?
I'm currently used to have the as written inside the swf/fla-files and sometimes including them, but not as a class.
I am working in air application , i need to know how to add event listener when any object is updated,how can i implement this.Example:i have Class name Vehicle, and child class are Car,Bus,Bikes,Scooter,..etc, child class also have many properties like color,model no,....etc
I have array collection and AddChild() method in Vehicle class by this, i will add, child class to the vehicle class.I need a event listener which can trigger if any of the property is updated or changed in any of the child class property, how can i implements this in Flex3.
I'm using loadMovie("folder/file.swf", "_root.host"); to load the first swf file into a blank movieclip named 'host'.When I try using the same code it loads the other swf file, it just closes the first one.I want to have it as more of a popup that can be closed without affecting the original swf file
#1) I am having a movieclip to load a data... The thing is is it possible to load that data through its bites instead of a movieclip?
#2) I am having n number of swf files... And i am loading each and every sfwf by the url (i.e) 1.swf, 2.swf etc.. My question is it possible to load the swf by there bites instead of the url like(1.swf) ? If it can be done then please show me a direction.
I am presuming this is because the image hasn't finished reading the png file off the disk yet. What event can I monitor to know when it's width and height will have the right values? The 'Complete' event only seems to work for DOWNLOADED images. The 'Render' event happens EVERY FRAME. The (undocumented?) 'sourceChanged', happens as soon as source changes, and has the same problem! What event do I watch that will let me know when the image's width and height properties will have valid values? Or is there some Synchronous version of I.source='xxx.png', that I don't know about?
P.S. Yes, I know I shouldn't use "C:" in an Air Program. This was just for illustrative purposes, so that you won't suggest I use "Complete", which never even seems to fire when the file indicated by source is local.
I am writing a web application that will serve as a configuration for a random data generator that I have written in Java.The values that I set in this application will write to xml. The xml data is updated by a file called simulationParams.as and that file is added to each child in the "viewStack" so that when I change any of those values the simulationConfig file will be automatically updated.The problem is that when I press the randomizeBtn the proper events are fired and the listeners grab those events.My problem exists when I uncheck the randomize button.For some reason an event is triggered or the listener isnt listening so that when I uncheck randomizeBtn the values go back to their last position or value on the slider. Ex. if my initial value is 0 then press randomize the slider will go to 100. The config file updates and all is well.When I uncheck the randomizeBtn, the sliders value goes back 0 but the config file isnt update.The same thing happens when I press the useDefaultBtn for both selected/unselected, nothing gets updated.[code]
I am working on a website, its a project, I built custom buttons and used there own AS3 to make them play on hover. There is one problem thou, in my main scene or timeline I created this function:
about_but.addEventListener(MouseEvent.CLICK, function(){ var aboutURL:URLRequest = new URLRequest("about.swf"); }) contact_but.addEventListener(MouseEvent.CLICK, function(){ var contactURL:URLRequest = new URLRequest("contact.swf"); }) cat_but.addEventListener(MouseEvent.CLICK, function(){ var galleryURL:URLRequest = new URLRequest("catalogue.swf"); }) port_but.addEventListener(MouseEvent.CLICK, function(){ var portURL:URLRequest = new URLRequest("port.swf"); })
Ok but it had the navigatetoURL function but I took it out. Reason is because I want these buttons to load in a movieclip (mc_loader) as external swf files. I am not sure as is to linking these buttons to the loader movieclip.