"refresh Browser" Script ?
I have a movie(flash MX) which has too much action script and I have big delay with opening a page in other frame. When I press "refresh" everithing is OK. May be I need a script which refreshing the browser??? Please help
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-16-2002, 07:22 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Browser Refresh
can flash tell the browser window to refresh from within flash? Or do I have to use an FSCommand to call a javascript?
Anyone know the easiest, most browser compatible manner to have flash tell the browser that it is in to simply refresh?
Thanks in Advance.
Browser Refresh
I need browser refresh (page reloading),when we click on button in swf file.
i dont know flash scripting .
i want just html page reload when i click button in swf file.
i want code for page refresh .plz help me.
Browser Refresh....
Is there any way to force a (full) browser refresh when somebody access's my site, in case I have updated the site and they have older versions saved in their cookies???
Regards,
Ext. MP3's Don't Play Unless You Refresh Browser
My SWF does this:
1) Preloads graphics
2) Preloads 12 external MP3's
3) Starts the animation/sound
On the first viewing in the browser, some MP3's play, and some don't.
But, if you hit the browser's Refresh button, all the MP3's play properly.
I've got my work-in-progress at:
http://www.avtutorials.com/vestitrak...ak1_20fps.html
Can anyone help me? I really need these external MP3's to play without having to hit Refresh! Thanks in advance!
Browser Refresh From Flash
Picked this up from another thread:
getURL("java script:document.location.reload()");
Gives me an error, any ideas how to do this??
W.
Is There A 'Refresh Browser' Script?
Just curious if there is a script that will refresh the browser/page. I would like to add it to a frame on the timeline, not by button!
I am having a problem with an externally loaded swf getting loaded. If you hit refresh, it loads right up. So that's why I need to fix this problem.
If you'd like to view the problem, click this link:
BntMarine
Or if you'd like to look at the FLA, click this link: Zipped In MX format.
FLA file
Thanks,
Mike
Disable Browser Refresh Via AS
Hi all, great if someone can help...
I would like to stop a browser refresh happening on an F5 keypress event...
So far I have this -
keyListener = new Object();
keyListener.onKeyUp = function() {
if (Key.getCode() == 116) {
getURL("javascript:alert('The F5 key is disabled in this application.')");
_root.keyPressed = "F5 pressed";
}
};
Key.addListener(keyListener);
I can stop a refresh in HTML by remapping the key code and returning false, but when the flash movie has been clicked on, this doesn't work. grateful if someone can let me know if this is possible.
Variables And Browser Refresh
I am using loadVariables to load variables from a text document. The variables are being inserted into the movie clip like this: location.loadClip("images/"+_root.myvariable+".swf", location); which works fine the first time the page is viewed: If the page is refreshed or revisited none of the variables from the text document appear. (unless I clear the browser cache). This happens consistently in Firefox and randomly in IE. Any ideas on how I can get the variables to show up even if the page is refreshed? Thanks
Refresh The Users Browser Using AS2 ?
aloha Kirupa Community!
is there a way to refresh the users browser using actionscript 2?
my reason for this is... i am showing some sensitive material that requires an NDA from the viewer. the material is in the form of .flv movies that are embedded in my flash site. after we allow people to watch the movies i go to our servers and delete the .flv files. however some web browsers keep this in their cache, like IE. So basically i want o know if there is a script i can use that will refresh the viewers browser after we view it and after i delete the .flv files causing the .flv files to no longer be in their cache.
any help is appreciated much
d~
Simple AS To Refresh The Browser...
I have an "enter" button which opens up a new window, I need it to also refresh the browser in which it sits....
to clarify, It's a swf with a button that needs to preform 2 things.
1. open up new window (works)
2. refresh the page (not the new window)
There has to be some simple AS for this right????
Thanks for the help!
zG
Button Coding To Refresh Browser
Is there a ActionScript or a simple jscommand that I can add to a symbol button or moveclip to refresh the browser ?? Any help would be appreaciated, its for a simple (1 frame movie) XML text loading document.
How To Force The Browser To Refresh My Flash?
I'm currently working on a flash and when i or my client try to see the updated version in the browser, the browser doesnt refresh it, but rather take the flash from the local temporary files.
in HTML i can add the line:
<meta http-equiv="expires" content="0">
but that doesnt seem to force a refresh of the flash file
does anyone know how i can force the browser to refresh the flash file?
Scrollpane Mc Not Loading On Browser Refresh
Hello everyone,
This is my first post here, but can really use some help. I have a scrollpane that is loading an external mc into it. It works great when opened at first, but unfortunately when I hit the refresh button in the browser toolbar the root mc loads but the imported mc loaded into the container does not reload.
Anybody know what I can do to rectify this situation?
Thanks in advance,
Flashywhiteink
Scrollpane/browser Refresh Problem
Hi there,
I have a scrollpane that is loading an external MovieClip into it. It works ok, but if I use the browser refresh button the movie inside the scrollpane will not reload. How can I make it so that when the browser refresh button is pressed the entire thing reloads including the scrollpane movie?
This is what I have loaded on the root in the first frame of the actions layer:
onEnterFrame
this.onLoad = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("http://MyURL.com/MyFile.swf", "container");
container._x = 0 ;
container._y = 356 ;
this.drawFocus="";
}
When refreshed it doesn't load the clip, but if I add a button and apply the same script to the button I can get it to reload... but the position is not always consistant. I really want to avoid the buttons loading the movie. How can I get it to reload on browser refresh with Safari. It works in IE fine.
Any ideas on how to fix would be greatly appreciated.
Thanks in advance.
Full Browser Flash Refresh
Hey all,
Building something out that is Full Browser Flash by utilizing the Stage.object and embedding the .swf with the swfobject method (http://blog.deconcept.com/swfobject/).
Wanted to see how it tests on a variety of browsers. Anyone seeing issues?
http://www.palisadesmedia.com/comps/...ndex_full.html
And what are your thoughts on having Full Browser Flash? Beneficial or not? Annoying to the user?
Thanks in advance!
Block Browser Refresh / History
I have an swf that launches a new page in _self.
However, a user can click the browser back button and relaunch the swf.
Any suggestions how I can prevent that?
Refresh Dynamic Text Within Browser ?
Hi there. My situation is this. I have a movie within a HTML browser environment... say IE6. Within the movie is a link to dynamic text from a server based .txt file.
I also have a means for my client to access the text file online in order to update the text and so on.
My problem (apart from the fact that the client is as dumb as a stump) is that he wants to be able to update the text on screen one then go to the screen with the movie and instantly see the change in the browser.
I've explained that IE caches the text file in temp internet folders and that the text is good. It will refresh and be up to date on next session for him - sooner for customers logging in. No joy though... to him its just broken !
Is there a way to commanf the movie to recheck the text and display on every refresh regardless of temp files ? You'll be doing me a big fvour if you have any solutions.
Thanks all
Browser Refresh Issue With External Sound
so the other day i decided to slap together a little mp3 player in MX 2004. It has play, pause, and stop buttons, as well as timeline and volume scrubbing. Everything seems to work out dandy. That is, unless you try and refresh the page.
Check it out and see:
http://www.utsib.net/stuff/mp3player.html
Here's a section of the code, it's pretty standard and simple:
// initialize starting objects and variables
mySound = new Sound();
// check load progress and show percentage loaded
checkProgress = function (soundObj) {
bytesLoaded = soundObj.getBytesLoaded();
bytesTotal = soundObj.getBytesTotal();
percentLoaded = Math.floor(bytesLoaded/bytesTotal*100);
loadbar._xscale = percentLoaded;
};
mySound.loadSound("http://www.utsib.net/files/current.mp3", false);
poll = setInterval(checkProgress, 10, mySound);
mySound.onLoad = function(success) {
if (success) {
clearInterval(poll);
songtitle = ([this.id3.artist]+" - "+[this.id3.songname]);
loadbar._xscale = 100;
}
};
currentpos = 0;
mySound.onSoundComplete = function() {
stoptune();
timeline.timescrub._x = 0;
currentpos = 0;
};
the rest of it is just buttons and things, which are all self contained and shouldn't affect the loading of the MP3 at all. Anyone have any ideas why it's not reading the file after being refreshed?
Loading The Next External Movie On Browser Refresh
Hi folks!
Alrighty, I am wondering if this has been done before/is possible in Flash. Okay, lets say I have users looking at a site with a Flash file on it. And then I am giving a presentation from another part of the world using video conferencing. I want to be able to say something and then have an interface that when I press a button or such, the page on the site they are looking at will load an external Flash file into the Flash movie they are currently viewing on that page. Then, the next time I click the button, it will load the next external file in the sequence. (ie: Movie1.swf, then Movie2.swf) Does anyone know a way I can do this? Thank you for any help!
-A
Shaking Browser Window Refresh Problem
Hi chaps and chappesses,
I saw a tutorial years ago on here:
http://www.flashkit.com/tutorials/Sp...en-7/index.php
Which i have used a couple of times in projects. Recently i noticed that when it runs the Javascript function the page refreshes thus (on a PC) it makes a page clicking sound, as when you go to another page.
Is there anyway around this, or can the same effect be done in a different way?
Thanks in advance
Rotate Banner Automatically When Browser Refresh
I have 3 flash banners on my homepage that I want to automatically rotate when the user refreshes the screen.
And when user visit the homepage first time, banner 1 will show and then the second time, banner 2 will show and so on.
My flash structure consists of one main swf and the three banners are the external swfs that are loaded into the main one.
Hope someone can help me with the above.
Thanks in advance!
Remember Frame On Reload (browser Refresh) Using LSO
Hi,
I"m not an expert in AS (by far), but i have a thing i need to get solved.
I have a site, which has a flash banner. The whole website is based
on PHP en MySQL. Everytime the user clicks somewhere, the site
reloads (doh) but the thing is, i need the banner to remember which
frame it was located so it returns and plays to the saved frame, and not
from the start.
I have 5 banners, and each banner calls another banner at the end
randomly, so it looks like it never ends.
I have already googled alot, also this forum and a lot of tuts on shared objects, but most of the tutorials are specified to saving text, score or
how many times a user has accessed the site, the only thing i need is
the frame it's playing, save it to the so, and after reload, access the so,
and play from that particular frame again .. so it does'nt start from the beginning all the time.
Perhaps someone knows how to get the current frame? is there some kind of command for?
Tnx,
F
Preloader Doesn't Work On Browser Refresh?
yeah, the subject says it all.
my new preloader works great just that when i refresh the browswer it doesn't load at all... just sits there and does nothing. not very useful really! hahaha
man would i love some help on this one, if anyone knows...
here is the site that i'm talking about
oh and here's my preloader code... taken right off of a tutorial :
Code:
//Import the required assets
import flash.display.*;
//Stop the playhead while loading occurs
this.stop();
//Create a listener to call the loading function as the movie loads
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
/*This is the main function, basically it grabs the total and loaded bytes,
calculates a percentage, and displays it by stretching the bar and adjusting
the textfield display. If your bar/textbox instancenames are NOT lbar/lpc,
you'll need to adjust this code to match your instance names*/
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
//Stretch the bar
bar_mc.scaleX=pcent/100;
//Display the % loaded in textfield
amount_dt.text=int(pcent)+"%";
//If the movie is fully loaded, kick to the next frame on the main timeline
//You may wish to change the gotoAndStop(2) to a gotoAndPlay(2)
if(pcent==100){
this.gotoAndStop("splash");
}
}
thank you in advance!
Flash Movie Not Playing In Browser Until Refresh
Hi Everyone,
Could really really use some help with this one. I have just finished a project for a client and thought it was workin perfectly, however when I load up the page in my browser the movie just pauses. If I right click and select play from the flash context menu then it proceeds normally and no problem.
But thats no good obviously !! Any ideas ?? I've seen this non proper loading / pausing on some other sites but it was only happening with Opera browser, sometimes firefox, never IE.
This issue is happening for me with all browsers.
Any suggestions please ???
Thanks
Main Swf Doesn't Display Unless Browser Refresh ?
Hi y'all, been a long time...
Looked in the search files but didn't see answers... Was wondering if anyone might know why sometimes my main SWF doesn't appear in the browser window unless the browser is refreshed?
Is it a caching problem? It seems to happen on Mac and PC across many browsers. ???
This is on fr.1 though I'm not sure it's relevant... (?)
Code:
stop();
// XGrill's quick version checker
if(!flash.filters.BlurFilter){
getURL("http://www.flash8detect.com", "_self");
} else {
gotoAndStop(3);
}
Is this code rubbing against Player v9 ?
Here's the WEBSITE
Scrollpane Blank On Browser Refresh (safari)
Hello all,
Hope you can help me out on this problem. I have a scrollpane that is loading an external mc into it. Everything works great, BUT when I refresh the page by hitting the refresh button on the browser toolbar the root movie shows, but the scrollpane does not load. Any help on this would be greatly appreciated. Prolly something very basic, but I am new to actionscripting.
Thanks in advance,
phpkata
Flash Menu Not Visible In Browser Until I Reload/refresh. Help
I have just spent over an hour looking for the solution to my problem but cannot find a thread that matches it (or am too ignorant to recognise it when I see it.) I apologise if this is a common question.
I have just created a menu for an HTML page using Flash. It works fine in the Flash tool and the published HTML file works fine if I just load the local HTML file (i.e. the one on my hard drive) into a browser on my machine. When I FTP the file to my web site and load the page over the internet my browser displays everything on the page except for the flash menu. When I refresh/reload the page the menu appears. If I clear the browser cache and re-load the page the menu is gone again until I click on reload/refresh once again. I get the same results with Mozilla and with IE.
Any help with what I might be doing wrong would be greatly appreciated.
regards
roman
Full Browser Flash Site Doesn't Refresh Right
(link has been removed)
The link is to the my personal webpage. It works fine when I first visit the site, but when I refresh it in my browser the alignment of the page gets all jacked up. Anyone know why this is happening?
Also when the site goes full browser a scrollbar is there, but it doesn't scroll. How do i get rid of that?
Also again...My contact page doesnt work. I have a form within a movie clip that's in an external swf that gets called into an empty movie clip on my main swf. I used the tutorial on this site http://www.kirupa.com/developer/acti..._php_email.htm.
Any help with any of these problems would be much appreciated. Thanks!!!
Diable Browser Address, Bookmark, Refresh, Spotlight
Hey guys and gals:
I am having a pop up but would like to disable the browser stuff like: address, refresh, spotlight ect ect
I just want a pop up with out all those options. I have seen it done but can't figure out how to do it. Don't know if it's in the Flash script or the HTML code.
thx4the Help
nico
ReLoad Flash By "browser Refresh Button"
hi all,
i done a HTML page embed a flash(SWF) with funny Loading, if the user want to watch again the funny Loading, normally they will click the browser window the "Refresh" button again. but the flash(SWF) is already download, so can't appear the funny Loading again!
my flash the first frame have a mc with action is
onClipEvent(enterframe)
loadedSize = _parent.getBytesLoaded();
totalSize = _parent.getBytesTotal();
if (loadedSize>=totalSize) {
_parent.gotoAndPlay(2);
} else {
percent = (loadedSize/totalSize)*100;
gDownloaded = Math.floor(percent);
_parent.stop();
if (gDownloaded<=10) {
if...................
so any script should edit here for reload again!
thankz
On Refresh Page, Flash Doesn't Refresh Loaded Vars?
Hi my flash app loads random vars from a php script and shows the vars, but on refresh page the flash still contains the same vars as before? How do I reload the php script again and get new random vars into my flash app?
Mads
Refresh.... ?
just wondering, but is there a way to refresh your movie while it is playing.. maybe some type of actionscipt.. ?
Refresh?
my flash movie uses an external text file. it all loads file on the internet, but when i change the text file the flash movie doesnt change. even if i refresh the page. is there a way to get flash to get the lastest file each time you visit the site? thank you for any help
Can I Refresh The Mcs?
i have game - a jigsaw puzzle - now the pieces all are formed based on the picture in imagemc - now i put in one image per frame and named the frames (puzzle1, puzzle2, etc.)
and i put a stop(); command on each frame
now it will only use the first image - even if i do imagemc.gotoAndStop("puzzle2"); since it started with the first image - the pieces stayed with that image - - but if i take the stop(); command of the first frame of the imagemc - and the pieces start with the second image - then it works!
so is there a way i can refresh the pieces using actionscript?
i mean to do the imagemc.gotoAndStop("puzzle2"); and then refresh the pieces to the new pic?
please advise!
thanks
Yechiel
Refresh
hello,
I have a button, when I click on it, I want the movieclip to refresh, what is the code for it? Can someone help me?
Thank you
ASP Refresh
Hi,
I am trying to load variables from an ASP file in a constant interval. When it connects for the first time flash shows the right value. But in the subsequent connections, it still shows the same old value. That means the value retrieved for the first time is stored in the memory. I delelted the variable in the flash, but failed. Still the same old value.
How can i refresh ASP inside flash or how could i connect to ASP in intervals?
XML Refresh?
Quick question.
I have a swf I ulpoad in a movie clip trough a button. The swf file contains XML code.
I have the option to unloaded to then reload it againg when pressing a button. When I reload it the movie clip works strange.. it skips and stuff like that. Is there any code that needs to be flushed when unloading? like xml ports or something like that? and how can I clear anything of that sort?
Thanks?
sample at http://66.206.8.168/test
Product line -- debsh--- then Deltalight to unload and debsh again... notice?
Swf Refresh?
Does anyone know if there is a way to refresh an updated swf movie (not just the html) without having to go to 'Internet Options' and delete manually the swf version stored by the browser?
How Can I Refresh This
Hi flashers,
How can I refresh a dynamically loaded txt directly after loading a
new text in the txt file on server.
I got it in a movieclip and looping to reload the file from server each second but it does not refresh and display the new text.
Does anyone have an idea on how i could have this done the way to upload a new txt on server and that the new text will show in the movie clip.
Hope someone can help me out.
Thanks,
Sky
Swf Refresh?
Hi everyone,
I've been trying to figure out if there is a way to refresh an updated 'swf' document (not just the html) without having to go and manually delete the file saved by the browser from 'Internet Options'.
love
z
Refresh
how does one refresh the browser from the release state of a button?
Refresh
how can i refresh from swf - lets say a url every day at 12:00pm (the target it s easy but the action for the time-clock, and how can i connect it with the target)?
Refresh
how can i refresh from swf - lets say a url every day at 12:00pm (the target it s easy but the action for the time-clock, and how can i connect it with the target)?
Refresh
how can i refresh from swf - lets say a url every day at 12:00pm (the target it s easy but the action for the time-clock, and how can i connect it with the target)?
Refresh
Using actionscript, how do you refresh the browser when someone clicks a button?
Refresh
hi all i wondered if any one can help me?
ive noticed that when i upload new content to my site it does not refresh automatic.
all you see is the old site please help its quite annoying.
http://quickmagic.co.uk
Refresh( ); ?
hey, is there a way of refreshing the flash movie.
I have a flash document with 1 frame, and i have data coming in to flash but the problem is it only reads the variable in once, so this is why I want to refresh the flash movie so that the data being displayed is up to date with the varable in javascript.....
any idea people
|