ActionScript 3.0 :: Preloader Can't Reload When Refreshing IE
Feb 5, 2010
The preloader works fine in all browsers except in IE if you reload (refresh) the webpage the preloader stops at 0. It works OK the first time if your cache is cleared but not the second.
I've published directly from Flash and using same html page.
View 9 Replies
Similar Posts:
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
Dec 2, 2010
[URL]
Code:
import flash.events.ProgressEvent;
stop();
function update(e:ProgressEvent):void {
var percent:Number = Math.floor((e.bytesLoaded*100)/e.bytesTotal);
preloader_mc.preloaderBar_mc.scaleX = percent/100;
[Code] .....
View 3 Replies
Apr 30, 2009
I need to create a preloader that forces a reload of the Main.swf from the server, and not from the user's cache.
This is because the site (for a big music festival) will get frequent updates, and users will visit more than once.
I have my HTML-metatags set up like this:
HTML Code:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<meta http-equiv="Expires" content ="0" />
<meta http-equiv="Pragma" content ="no-cache" />
...but these get kind of, uhm, ignored?
So now I'm looking for a solution in my AS3 preloader. I've tried this trick, that works fine with xml-files, but with swf's it doesn't seem to work:
PHP Code:
l.load(new URLRequest("Main.swf" + new Date().getTime()));
View 3 Replies
Sep 30, 2009
I have a flash file that has frame 1, 2, 3. And below that is a Continuous Layer that has an OK button. (If I go to frame 1/2/3 the button is still there)This button calls a javascript
PHP Code:
on (release) {
getURL("javascript:command('check',1)","_self");
[code].....
View 2 Replies
May 7, 2011
I've got some coding to create buttons into an array, and on press of these buttons the function should remove something from another array and remove the last one of the line, so far the coding is working for the first removal, however thereafter the other buttons stay there I think it's to do with the line in bold but I cant put my finger on what's wrong with it! The trace's I've set look plausible...
function removeList (event:MouseEvent):void{
myArray.splice(0,1);
list_text.text=myArray.join("");
[Code].....
View 2 Replies
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
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
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
Sep 14, 2009
I am hardly getting experienced on Actionscript3 but I sometimes get stuck.I want to use complex if function. what I am trying to say is;if, gezegenler.rotation not equal to 0 or 120 or 60 info text = ajdusting.
ActionScript Code:
else if (geegenler.rotation !==0||120||60){
bilgi.text = "adjusting....";}
is this usage possible or not Also, use stage as an event listener to update the textbox. But the event is mouse event and mouse move.. are there any muuch reliable ways doing this? Because when I do not move my mouse it does not change.
[Code]...
View 3 Replies
Nov 2, 2009
However, after an unpredictable amount of time it will stop refreshing - appearing as if it has frozen. But escaping the app out of fullscreen mode will cause it to instantly revive into action as if nothing had happened. Returning to fullscreen then will once again "freeze" after time, but its not technically freezing due to memory issues, it just won't continue to display unless escaped.
View 2 Replies
Feb 18, 2010
I want to make a web radio and i want to have a box displaying the current song playing and the song that is going to be loaded after.
In fact i need a solution to the first one as the second is the same.
The streaming provider is going to provide me with a txt file that is going to be refreshed every time the song changes .
So we have a txt file changing it's contents , now how can i make the swf refreshing it self to read the new changed txt file and displaying it ?
The best solution would be the swf refreshing every time the txt changes but i believe this isn't possible. So how can i at least refresh it let's say every 2 minutes or so ?
View 3 Replies
Apr 21, 2010
I cannot seem to get a swf to get refreshed data from an external txt file on a localhost (I am using Xampp on a mac), whereas the very simple dynamic textboxes that I have load the data easily from my regular hard drive folder.
View 3 Replies
May 19, 2009
Do you have any idea how I would refresh my movie or put the changes into place when a user presses this button to reset the shared object positions:
[Code]...
View 3 Replies
May 20, 2005
Alright. I've made a tool in flash that calculates the value of money in comparison to the value of goods avaliable. however, the values that my program is supposed to calculate wont update when variables are changed, how do i fix this?
[code]...
As a brief explanation, I have 4 sets of buttons (the code for the first two sets is in there), They Create goods that are used to back paper currency (amtGood and amtMon are the amount of goods and money). To calculate the dollar value of goods, the total money is devided by the total amount of goods. However it won't calculate anything but the original 10/10
View 4 Replies
Jul 20, 2009
I have a project where I have code inside a MC on the main timeline that loads XML via a php file on the server. Once the data is loaded, it sends commands to other MCs and works just fine.However, I need to refresh this XML info every 5 seconds or so. I have tried several things such as interval code and pause code, but the farthest I got was that it paused the initial clip for 5 seconds, then ran the script once, but never again. Or it refreshed, but got stuck on the first frame of the clip.Now I am thinking I would be better off NOT having the code inside the MC, but on the main timeline and just having the action span the course of the main timeline. That way, the call to the php can be refreshed from any frame of the main timeline. Does that sound right?
View 3 Replies
Oct 13, 2010
I am building an application that uses a Shared Object that is shared (ironically) between 3 separate applications. 1 application listens for updates, and the others update the app. The problem I am having is that I need the main application to be able to detect changes to the Shared Object. Unfortunately there seems to be no events to listen for that are not for 'remote objects'. Because of this I created a timer that gets a new local instance of the shared object every X seconds.I just call the following before I read or write to the sharedObject:[code]This is causing a CPU Hiccup every 3 seconds and bogging down the system. so all this being said, does anyone know of a clean way to refresh a copy of the sharedobject without creating a brand new instance of it
View 2 Replies
Oct 16, 2011
I got a swf embeded in a web page, how can I use actionscript code to let the page to refresh? such as a "Refresh" button in the swf?
View 6 Replies
Aug 17, 2009
I made a carousel with actionscript 3 and it doesn't seem to be refreshing well. It's very choppy. Here's the file [URL] The framerate is 30fps
[Code]...
basically as ellipsePosition increments, the x and y values of the doc increment around the carousel. There is more to it for the scaling and alpha changes, but I get the same result if I remove them. I tried changing the framerate up alot. I also decreased the step size of ellipsePosition and it still acted the same. In DirectX I would create a backbuffer but I'm not sure that would be a reasonable fix for actionscript. Surely there is something built in, actionscript is by no means low level. It's a really vague question but is there anything thats very common that could cause this or that could prevent this, or is this expected behavior of flash.
View 3 Replies
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
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
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
Sep 16, 2009
I'm trying to make an AIR app that keeps loads a number from a webpage that is updated every 20 seconds. Basically it's a tiny app that will say how many calls are on hold.I've worked with some Actionscript 2.0, but 3.0 seems much more difficult to me.I used the following code to load the number from the url into a text box. I tried to use a timer to reload it and just can't get it right, and am not sure really what the best way to do it would be.
[Code]...
View 3 Replies
Nov 17, 2009
I am creating flash panorama image viewer. There is a movie, left, right button, and some other buttons. Left and right buttons are triggering Timer, on MouseDown (timer is on), on MouseUp, switches timer off. timer function moves picture picture.x = picture.x + 20 (other side -20).
That works well. Other buttons are moving picture to the specific locations of picture.x and that works well too. There is a dynamic text, which is reading value of the picture.x Dynamic text is reading well, if left and right buttons are clicked, but can not read if other buttons are pressed, ones who are taking picture to the specific location. I presume that it is not picking up the value of the picture, because the program was not refreshed after taking picture to the new location. How can I refresh program in order for dynamic text to read value of picture.x?
View 2 Replies
Dec 5, 2009
I�m trying change the value of a main timeline variable, properly a string variable, the new value is being sent from another flash file through LocalConnection, the receiver main timeline code is:
Code:
stop();
var menuactivo:String;
fscommand("allowscale", "false");
[code]....
So, as you see in the code, I need to refresh the value of the menuactivo variable using the value received at the LocalConnection onRecibir method, how do I do this?? am using a couple of dynamic texts in order to display the value received and to see if the value of menuactivo changes when my_str is received, but I just can�t refresh the value of menuactivo?
View 0 Replies
Dec 23, 2009
1. Need to pass to a video player: the flv URL, and an XML file that defines Cue Points.This would be a single node:
Code:
<cuepoints>
<cuepoint time="0:1:12" title="Agenda" url="slide02.html"/>
</cuepoints>
2. Load the XML file and add those Cue Points to the video.
3. At each defined Cue Point, simply refresh the slideshow frame with the appropriate slide.
4. Set the active Cue Point with java script, to tell the player to stop and start playing at the specified Cue Point's time.
View 2 Replies
Feb 29, 2004
PHP Code:
<?
$dbHost= "localhost";
$dbUser= "sarin";
$dbPass="pingpong
$dbName= "sarin-_db";
$table = "calender";
[Code] .....
And I have a textfield with variable set to jor.. Which is the variable from the php file which holds data from the database. When I change text in the database it doesn't change in the swf unless I go to internet properties and empty the cache.... even when I hit refresh it doesn't update. How do I make it so each time u load the swf it refreshes data from the database?
View 7 Replies
Oct 29, 2006
I have a simple mc which loads in a textfile consisting of a header and body. After editing, the file is overwritten and saved. All this works fine, only problem is, as soon as the "save file" is finished, and i reload it using one of the buttons, it doesnt get refreshed with the new data.[code]
View 1 Replies
Apr 16, 2007
The questions I posted last week dealt with XML and localConnection. Basically I had 2 swfs on a page. The main swf has the ability to modify some XML data (via an ASP script and database.) The second swf includes content populated by some of that XML data. When the data is modified, the first swf sends a call to the second (via localConnection) to refresh that data. I had everything working perfectly Saturday afternoon until I tested it in IE7 (on Win XP Home.) Older versions of IE, Firefox and Safari all showed no problems, but when the data should have been modified nothing seemed to happen. Nothing updated, etc.
I was able to confirm in the database that the update was actually happening, just not appearing. At first I thought IE7 wasn't playing nice with localConnection, but I eventually determined that IE7 wasn't playing nice with XML since it would happen in swfs that didn't use localConnection at all. localConnection was running and acting as it should, but IE7 was caching the XML feed even though the only component ever making a call to the XML was the swf. The XML was getting cached in IE and IE wouldn't let go (the only way to see updated data was closing and reopening the browser,or going into 7's new browsing history to delete the cache.)
The work-around I used was to add a querystring variable to URL for the XML feed. Every time the swf looks for it, it uses getTime to add a number of milliseconds to the end of the string so IE thinks it's getting a new file:
Code:
currentDate = new Date();
currentTime = currentDate.getTime();[code]....
I've been testing it on and off since Saturday evening and it seems to work without issue.
View 2 Replies
Nov 17, 2009
I am creating flash panorama image viewer. There is a movie, left, right button, and some other buttons. Left and right buttons are triggering Timer, on MouseDown (timer is on), on MouseUp, switches timer off. timer function moves picture
picture.x = picture.x + 20 (other side -20).
That works well. Other buttons are moving picture to the specific locations of picture.x and that works well too. There is a dynamic text, which is reading value of the picture.x Dynamic text is reading well, if left and right buttons are clicked, but can not read if other buttons are pressed, ones who are taking picture to the specific location. I presume that it is not picking up the value of the picture, because the program was not refreshed after taking picture to the new location. How can I refresh program in order for dynamic text to read value of picture.x? I am using timer stopping in order to prevent memory leakage. I use AS3.
There is some actual code illustrating what I am talking about:
//timer created and stopped
var timer:Timer = new Timer(33);
timer.addEventListener(TimerEvent.TIMER, movingCode);
timer.stop();
function movingCode(event:Event):void {
[Code] .....
View 2 Replies