Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








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




FlashKit > Flash Help > Flash ActionScript
Posted on: 06-30-2007, 01:48 PM


View Complete Forum Thread with Replies

Sponsored Links:

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

View Replies !    View Related
Automatically Refresh / Reload Frame
I have a flash application where on frame X an actionscript pulls news items out of a MySQL database.

The MySQL database gets updated AUTOMATICALLY on a regular base (say, every 5 minutes or so).

But the application doesn't reload the data AUTOMATICALLY...

I've found ways to reload the data with a button here on flashkit but that's not what I'd like.

I'd like to see the frame reload/refresh itself AUTOMATICALLY every 5 minutes or so.

If anyone could provide me the AScode for this...

Thanks already

Dubya

View Replies !    View Related
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

View Replies !    View Related
Is There A Way To Reload The Frame? "refresh" It?
Hi

I Have A Frame, And All The Objects In It Have Some Code To Do "onload". I Want Them All To Do This Code At The Same Time, So I Tried To Go Backward And Forward On The Root To Initialize Them. The Problem Is That Only Some Of Them Accomplish The Code.

My Question Is: Is there a way to reload the frame? "refresh" It?

Please answer,
Thanks!

View Replies !    View Related
Reload Or Refresh?
Does anyone know how to detect if a user hits refresh/reload?

View Replies !    View Related
Reload/refresh A Scene?
how do you reload a scene, without going out of it and back into it again?

View Replies !    View Related
Refresh = Reload New Movieclip
here is the issue... I have a movie clip and would like it to change everytime the page is refreshed.
Does anyone know how to do this????

thx
fs

View Replies !    View Related
[F8] Stage Refresh/Reload?
Hey...

I have a dynamic text box, and a UIscrollbar component attached to it, but when I click a button to update the text in the box the scrollbar does not recognize that the text goes beyond the borders and needs to scroll.

I am thinking that if I can click that button which makes the text update, and then refresh the stage so the scrollbar can see that it needs to scroll.... Is there a way to do this?

Thanks in advance!

View Replies !    View Related
Disabling Reload On Refresh
I am trying to figure out how to keep my flash movie from reloading when the browser is refreshed. I have a flash movie on my home page and then straight html on the others. When users click back to the home page from other html pages the flash movie reloads from the beginning. I want it to stay on the last frame once it loads the first time. Anyway to do this? Seems pretty basic but I am stuck. Check it out here.

View Replies !    View Related
Reload/Refresh Application
Hi
Im using the following code to reload the application.

public function init():void
{
var ref:URLRequest = new URLRequest("javascript:location.reload(true)");
navigateToURL(ref, "_self");

gp.openWindow(myWindow,this);
var str:XMLList = myxml.children();
var tag:String = new String;
tag = str;
gp.AddData(str,tag);
}

But this is not reloading the application.
Can anyone suggest???

Thanx in advance
Sheetal

View Replies !    View Related
External XML, Reload/refresh
Hi there!

Since one of my new years resolutions was to seriously freshen up my Flash/AS knowledge, I have begun to work through some of the (very well-done) tutorials here - this afternoon/evening was "XML-time".

Since I didn't just want to complete the turorial and move on, I have begun building a little Flash newsreader for my desktop. Until a few hours ago, everything worked beautifully - external XML file is being loaded and displayed properly.

One thing I that has me completely stumped though, is how in the world do I reload the XML file manually? I have tried simply repeating the XML import (assigning the loadXML function to a button) but the display of my "newsreader" refuses to show the updated contents from the XML file (I'm working with a local XML file for now to make things easier)

This is driving me bunkers. If any of you guys could help me over this "bump" with a link/tutorial/code snippet - that would be most appreciated!

TIA, kubik

View Replies !    View Related
External XML, Reload/refresh
Hi there!

Since one of my new years resolutions was to seriously freshen up my Flash/AS knowledge, I have begun to work through some of the (very well-done) tutorials here - this afternoon/evening was "XML-time".

Since I didn't just want to complete the turorial and move on, I have begun building a little Flash newsreader for my desktop. Until a few hours ago, everything worked beautifully - external XML file is being loaded and displayed properly.

One thing I that has me completely stumped though, is how in the world do I reload the XML file manually? I have tried simply repeating the XML import (assigning the loadXML function to a button) but the display of my "newsreader" refuses to show the updated contents from the XML file (I'm working with a local XML file for now to make things easier)

This is driving me bunkers. If any of you guys could help me over this "bump" with a link/tutorial/code snippet - that would be most appreciated!

TIA, kubik

View Replies !    View Related
Reload/Refresh My Random Variable?
I'm using Flash MX, here's my code:


Code:

imagesUrls = ["images/loadback1.jpg", "images/loadback2.jpg", "images/loadback3.jpg", "images/loadback4.jpg", "images/loadback5.jpg", "images/loadback6.jpg", "images/loadback7.jpg"];

imagesMix = imagesUrls[Math.floor(Math.random() * 7)];

_global.imagesRndm = function() {
loadMovie(imagesMix, _root.loadingmc.loadback);
}

imagesRndm();
Here's my question, when calling my global function - 'imagesRndm();' the imagesMix variable doesn't reload. I've tried this and it works:


Code:

_global.imagesRndm = function() {
loadMovie(imagesUrls[Math.floor(Math.random() * 7)], _root.loadingmc.loadback);
}
I guess I'm looking for some cleaner code, or a way to refresh the 'imagesMix' variable.

Thanks

Foochuck

View Replies !    View Related
Reload Movie Similar To Page Refresh?
I am having trouble with removeMovieClip(). It simply will not remove all of the movie clips that I earlier attached with attachMovie(). I will spare you the details but after two full days of exploring potential workarounds, I'm ready to try something completely different...

Is there anything I can do with MX ActionScript to make the movie start from the very beginning and just reset everything, kind of like what would happen if you refreshed the browser?

View Replies !    View Related
Shared Object - .swf Reload On Page Refresh
I have joined this forum today so hi to all,

I'm pretty new to flash and was hoping someone could offer some guidance with shared objects.

I've created a Joomla Template which has a flash banner at the top. The movie runs then stops offering the user a button to replay if they wish - all is right with the world!

When the user refreshes the page by either refreshing or moving to another page the movie replays which is not the desired action.

I understand shared objects (flash cookie) is one method of controlling/stopping this action.

I would like the movie to run in full regardless of user activitiy/page location but then not again that day.

Can anyone assit me or point me to a tutorial. I've had a look at Whispers posts in this forum but was unable to get that code to work.

Many thanks

PM

View Replies !    View Related
Sharedobject To Remember Frame
Hi there,

I was wondering if anyone knew how to use a SharedObject to remember the exact frame of a Flash animation, so that it starts from the finishing frame when a new page containing the .swf is loaded.

This is just to keep continuation throughout a number of pages which contain the same Flash banner.

Any help would be great.

View Replies !    View Related
Getting A Movie To Remember Its Last Position (frame#)
Is there a relatively easy way to get a Flash movie to remember its last position (frame#)?
Here's what I'm attempting to do:
I have a webpage with a list of system names on it. Next to each system name is a circle (I'm using a swf here) that is filled in either green or red to show whether the system is up (green) or down (red). If the status of a system changes, the maintainer for that system needs to be able to go to this web page and click the circle (swf) to toggle from red to green or vice-versa. When the page is reloaded, the circle (swf) needs to remember it's last state (red or green).
I can get the button to toggle just fine, I just can't get it to remember its last state.
Can this be accomplished solely in Flash, or am I going to need to hook up with a databse to accomplish this?

v/r
KK22

View Replies !    View Related
Remember Session/Last Frame With Cookie
Hey all..

I've seen some people work with cookies to prevent flash from playing again for the same visitor within a 24 hour period, however I am trying to do something a bit different.

My goal is to use a cookie to determine the last frame a person viewed, this way if I have a flash movie tied into my site, and they visit another page, or reload a page or leave my site completely and return later, I would like the flash to pick up at the last frame they saw.

Is this possible?

I primarily use asp if there would be accompanying code. Any help would be appreciated.. Thanks.

View Replies !    View Related
[F8] Change Scene, Remember Frame.
i have a movie clip in the main timeline and i want it to remain on a certain frame (lets say i wanted it to stay on frame 4) but when i change scenes and come back to it, the movie resets to frame 1 (kinda obvious as it should).
My question is, how to i get it to stay on frame 4 instead of resetting itsself?
Thanks in advance, Nath.

View Replies !    View Related
Need A Simple (last Frame) Remember SharedObject?
Hi everyone. I'm trying to get a simple script that uses Flashes Shared Object to remember the last frame a user has been.

Thank You so much. I tried a few things but doesn't work.

I can provide the FLA file to anyone who needs it.

View Replies !    View Related
Browser Reload
Is there an actionscript to reload the web browser page.

Example

Scene 1

Button "reload page"

action = click button to reload html page.

Any other option besides loading the page itself?

View Replies !    View Related
Swf Reload In Browser
hi everyone! i have a lillte problem with my page the thing is a have a swf as the main menu in it has a movie that shows an image dynamically the problem is a don`t know how to make the browser to reload the swf to show another image, i manually erase the swf from temporary internet files folder i don`t know what to do =S hope u guys help me! thnx

View Replies !    View Related
Shared Objects To Remember Frame Number Help
hello,
I have a banner that i want to have throughout the my html site.
Although i dont want the swf to keep repeating everytime i move from one page to another.
I have got this from macromedia but cannot get it to work:

// Get the kookie
so = sharedobject.getlocal("kookie");

// Get the user of the kookie and go to the frame number saved for this user.
if (so.data.user != undefined) {
this.user = so.data.user;
this.gotoAndStop(so.data.frame);
}

The following code block is placed on each movie frame.


// On each frame, call the rememberme function to save the frame number.
function rememberme() {
so.data.frame=this._currentFrame;
so.data.user="John";
}

View Replies !    View Related
Remember Mc Position And Put Back On Frame Reentry
I'm using this code to drag movie buttons:

onClipEvent(mouseDown){
this.onPress = startDrag;
}
onClipEvent(mouseDown){
if(this.hitTest(_root._xmouse,_root._ymouse)){
this.pressed=true;
this.onRelease = stopDrag;
}
}

which works fine, but when I leave the frame the buttons are on and come back later, of course they're in the starting position, rather than where I dragged them. I've looked into variables, but I'm pretty new to AS, and I don't even know where to begin.

I'd like the code to put them back where they were when I come back into the frame they're on.

I appreciate any help I can get on this. Thanks

View Replies !    View Related
Forcing A Browser To Reload Swf File
It's probably simple to do but I haven't been successfull locating a howto regarding how to get a browser to reload a swf file after like an update. Any ideas? Thanks.

View Replies !    View Related
Flash - > Browser Without Page Reload
Hey there!

I'm just curious, is there any way... Or how could I get a Flash File to call a Javascript Function / Send a Variable back to a browser which Javascript could read?

Basically working on something where as, currently at any moment during the web page is open Flash receives a variable.. Needs to process that, then call a Javascript Function in the page or if this can't be done, sends a variable back to the page which javascript will listen for every 500ms or something like this...

Anyone know please ?

View Replies !    View Related
Avoid Swf Play When Page/browser Reload
Hi there

Is there a workaround / code I can use so my menu.swf
dosnt replay when my page reload in browser.

Have a nice day :-)

View Replies !    View Related
Prob: Website Cycles Through On Browser Reload
To see the problem for yourself, go to www.eonarchiving.com. Then hit refresh on your browser (if that works correctly, hit your home button and then your back button to return to the page) and watch the entire site run before your eyes. I have a stop() command on the first frame of it's own layer. What am I doing wrong? I've only 3 months Flash experience so actionscript is still frustrating but I want to learn fast so go ahead and tear me a new one. Thanks.

View Replies !    View Related
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.

View Replies !    View Related
Refresh Browser
How would I make a button refresh the browser.

View Replies !    View Related
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.

View Replies !    View Related
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,

View Replies !    View Related
Reload To Different Frame
My problem is that i have an intro for a site which then goes on to a navigation menu

once a link has been pressed it goes on to a html page

however, the client doesn't want the navigation menu from the intro to appear anywhere else on the site, despite the usability problems

the client would like it that once pressed back to the intro page that it goes straight to the navigation section of the movie rather thna play the whole movie again!

i've seen this done before, but haven't a clue what the script is!

any help would be appreciated

the link is here

View Replies !    View Related
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!

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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~

View Replies !    View Related
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

View Replies !    View Related
Shouldn't A Loaded .swf In A Browser Remain Cached If You Reload The Page?
I have a large movie (4 mb) that takes awhile to load on a web page. Once the user has sat through that, if you reload the page, should it need to reload the whole .swf file again?

View Replies !    View Related
Y My Randomize Frame Can Be Reload?
i m doing a qiuz with several question and each page has a question. My math random() function got some problem so my question maybe can play more than twice.....
Anybody who can help me?pls kindly drop me an idea...
thankx...

View Replies !    View Related
Reload Actionscript Frame 1
Hello,
I have a long lost of actionscript in Frame 1 of my movie that brings some XML data into my movie and need to have it reload the data every few hours. Can someone help me write a function that does this? I just need it to re-do frame 1 every 3 hours or so.

Thanks so much!~

View Replies !    View Related
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.

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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!

View Replies !    View Related
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?

View Replies !    View Related
Frame Window Load/reload
hi everyone,

i am having some difficulty using frames and flash. i load the page up with two frames, the top one (name="nav") and lower one (name="main".) the top one has my menu.swf loaded into it and just one of the sections requires that i pull an html page up in the lower window (name="main") which i've done successfully. however, when i navigate to another section of the site the lower frame maintains its content and i would prefer for it to go blank. in summary, out of 6 links/buttons, only one requires that content be in the lower frame window and i would love to know how to ensure that that's the case. also, is it at all possible to goto a specific frame after i loadMovie into the top frame (second movie name is menu2.swf)? any help, in as much detail as possible, would be superb and gratefully appreciated.

regards

View Replies !    View Related
Frame Window Load/reload
hi everyone,

i am having some difficulty using frames and flash. i load the page up with two frames, the top one (name="nav") and lower one (name="main".) the top one has my menu.swf loaded into it and just one of the sections requires that i pull an html page up in the lower window (name="main") which i've done successfully. however, when i navigate to another section of the site the lower frame maintains its content and i would prefer for it to go blank. in summary, out of 6 links/buttons, only one requires that content be in the lower frame window and i would love to know how to ensure that that's the case. also, is it at all possible to goto a specific frame after i loadMovie into the top frame (second movie name is menu2.swf)? any help, in as much detail as possible, would be superb and gratefully appreciated.

regards

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved