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




Reload Or Refresh?



Does anyone know how to detect if a user hits refresh/reload?



Adobe > ActionScript 1 and 2
Posted on: 11/14/2006 12:04:47 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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

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

[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!

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.

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

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

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

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

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

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?

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

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

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

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

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!

How To Make SWF To Reload From The Start, Every Time User Reload/revist The Page.
Hi,
How can i make my flash SWF file to reload from the start every time when a user visit the site.

Like i dont want it to be saved in cache, i want to reload it from the start every time, because i have seen that once it is saved into cache, it just starts from the cache when we visit the site. So, i dont want it, i want it to reload again and again from the server whenever user visits.


I used the following meta tag:
<meta http-equiv="pragma" content="no-cache">

But it seems to be not working as the way it should. As when i re-load the page, the preload bar shows 100% loaded.


ANy idea???



Amir

Dynamic Image Reload Is Cached. Need Fresh Reload.
I'm calling a basic image from the web, but the image is constantly updated. When the end user clicks to reload, it displays the same cached image. How to I force it to reach out and get the updated image?

Not too savy with actionscript yet and could use some help.
FYI, this is a standalone exe flash file, not a browser embeded movie.
Thanks in advance.

Flv As A Banner : Avoiding Flv Reload On Page Reload
Hello.. I'm tring to create a looping sfw banner containig a looping playst of flv on my new website...
I think I understoode how to do that..
My biggest problem, is that I wish the flv avoid reloading every time that the page is changed..
I don't know if I ì ve been clear...
I'm sure that checking this page will help understanding the problem:

www.kurageart.eu

hope you can help!
thank you

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

Reload All
how do i reload the entire flash? i mean i was pretty deep into loading and reloading movies and now the easiest way i can imagine is to restart the entire thing (from cache)

thanks 4 advice
dirty

Reload Mc
How do I stop a movie (external swf) that has been loaded into a target from reloading everytime I enter that frame.

Anyone????

Reload MC
I hope this isn't too confusing. I have a slideshow that loads when you click one of the buttons. The slideshow doesn't start until a button is clicked (goes to frame "modern" on the timeline). The first time a button is click, it works fine. When a second button is click, the movie clip that the slideshow is in doesn't load the new variables. It keeps playing the first slideshow and always returns the 1st variable (variables category2 and i2 in code below). Is there a way I can have the variables and/or movie clip reload when a different button is clicked?

Here's the code in the movie clip:

function selectFade() {
if (_root.playFade eq "2") {
trace("AUTOPLAY IS ON!");
trace("Pictures will start changing in 2 seconds...");
this.autoPlay = true;
setTimerCtrl();
// Picture will change in 5 seconds, as set in the setTimerCtrl() function.
startFade();
} else {
trace("AUTOPLAY IS OFF!");
this.autoPlay = false;
clearInterval(intervalID);
// Clear the interval created from the auto state.
}
}

function startFade() {
fscommand("allowscale", "false");
_root.mcFadeImage.pathToPics = "images/";
category2 = _root.categoryType2;
i2 = _root.categoryNumber2;


Here's the button code:

_root.categoryNumber2 = _root.categoryNumber;
_root.categoryType2 = _root.categoryType;
_root.selectFade();
_root.gotoAndPlay("modern"); //This is the frame the movie clip starts

Reload An Mc
hey, is there a simple line of coding or something that will reload an mc?

How Do I Reload A Swf Using The Same Swf ?
Im trying to find a function that can reload the entire swf when a button is pressed. ( mainly for a button that would say "play again" after a game has ended...in order to avoid having to reset all variables )

Its only one swf without any other swf files nesting inside it. It would have to be a function that "self reloads".

Any ideas ?

Xml Reload
Hello,
I have an XML file that has all site content in it. I am calling the items as a sub nav and multiple categories. Each time it loads the other categories stay in the sub nav. It is not reloading the category names. How would I refresh the XML file so it would reload each time pressed? Would really appreciate the help on this.

I have included the swf file so you can see where it happens. It occurs in the GALLERY section. When you click GALLERY, there is a main nav on the left that comes out. When a item is clicked it loads new sub categories. Then when click BACK TO LIST it keeps the previous categories on the list. It is not refreshing the XML file. The sub categories stay under the main categories. Is there a code I can put to reload XML or data for GALLERY section?

I have included AS code below for the XML.

PHP Code:



function buildSite(){
    
    
    loadSiteInfo = function () {
        siteInfoXML = new XML();
        siteInfoXML.ignoreWhite = true;
        siteInfoXML.onLoad = function(success) {
            if (success) {
                staffText._visible = 1;
                careerText._visible = 1;
                staffLength = this.firstChild.childNodes[0].childNodes.length;
                staffArray = new Array();
                clientLength = this.firstChild.childNodes[1].childNodes.length;
                clientArray = new Array();
                careerLength = this.firstChild.childNodes[2].childNodes.length;
                careerArray = new Array();
                galleryLength = this.firstChild.childNodes[3].childNodes.length;
                galleryArray = new Array();
                homepicArray = new Array();
                homeLength = this.firstChild.childNodes[4].childNodes.length;
                for (i=0;i<staffLength;i++){
                    staffArray[i] = new Array();
                    staffArray[i].name = this.firstChild.childNodes[0].childNodes[i].attributes.name;
                    staffArray[i].title = this.firstChild.childNodes[0].childNodes[i].attributes.title;
                    staffArray[i].email = this.firstChild.childNodes[0].childNodes[i].attributes.email;
                    staffArray[i].image = this.firstChild.childNodes[0].childNodes[i].attributes.image;
                    staffArray[i].description = this.firstChild.childNodes[0].childNodes[i].childNodes;
                    trace(staffArray[i].description);
                }    
                
                for (i=0;i<clientLength;i++){
                    clientArray[i] = new Array();
                    clientArray[i].title = this.firstChild.childNodes[1].childNodes[i].attributes.type;
                    projectsLength = this.firstChild.childNodes[1].childNodes[i].childNodes.length;
                    for(j=0;j<projectsLength;j++){
                        clientArray[i][j] = new Array();
                        clientArray[i][j].name = this.firstChild.childNodes[1].childNodes[i].childNodes[j].attributes.name;
                        
                    }
                }
                
                for (i=0;i<careerLength;i++){
                    careerArray[i] = new Array();
                    careerArray[i].title = this.firstChild.childNodes[2].childNodes[i].attributes.title;
                    careerArray[i].category = this.firstChild.childNodes[2].childNodes[i].attributes.category;
                    careerArray[i].location = this.firstChild.childNodes[2].childNodes[i].attributes.location;
                    careerArray[i].job_no = this.firstChild.childNodes[2].childNodes[i].attributes.job_no;
                    careerArray[i].salary = this.firstChild.childNodes[2].childNodes[i].attributes.salary;
                    careerArray[i].description = this.firstChild.childNodes[2].childNodes[i].childNodes[0].childNodes;
                    careerArray[i].qualifications = this.firstChild.childNodes[2].childNodes[i].childNodes[1].childNodes;
                    careerArray[i].examination = this.firstChild.childNodes[2].childNodes[i].childNodes[2].childNodes;
                    
                }
                
                for (i=0;i<galleryLength;i++){
                    galleryArray[i] = new Array();
                    galleryArray[i].category = this.firstChild.childNodes[3].childNodes[i].attributes.category;
                    projectsLength = this.firstChild.childNodes[3].childNodes[i].childNodes.length;
                    for(j=0;j<projectsLength;j++){
                        galleryArray[i][j] = new Array();
                        galleryArray[i][j].name = this.firstChild.childNodes[3].childNodes[i].childNodes[j].attributes.name;
                        galleryArray[i][j].client = this.firstChild.childNodes[3].childNodes[i].childNodes[j].attributes.client;
                        galleryArray[i][j].sq_feet = this.firstChild.childNodes[3].childNodes[i].childNodes[j].attributes.sq_feet;
                        galleryArray[i][j].city = this.firstChild.childNodes[3].childNodes[i].childNodes[j].attributes.city;
                        galleryArray[i][j].type = this.firstChild.childNodes[3].childNodes[i].childNodes[j].attributes.type;
                        galleryArray[i][j].description = stripCommas(this.firstChild.childNodes[3].childNodes[i].childNodes[j].childNodes[0].childNodes);
                        photosLength = this.firstChild.childNodes[3].childNodes[i].childNodes[j].childNodes[1].childNodes.length;
                        for(p=0;p<photosLength;p++){
                            galleryArray[i][j][p] = new Array();
                            galleryArray[i][j][p].photo = this.firstChild.childNodes[3].childNodes[i].childNodes[j].childNodes[1].childNodes[p].attributes.url;
                            galleryArray[i][j][p].thumb = this.firstChild.childNodes[3].childNodes[i].childNodes[j].childNodes[1].childNodes[p].attributes.thumb;
                        }
                        
                    }
                }
                
                for (i=0;i<homeLength;i++){
                    homepicArray[i] = String(this.firstChild.childNodes[4].childNodes[i].attributes.path);
                }
                trace("homepicArray "+homepicArray);
            }
            intro_mc.play();
            
            openSection("overview");
            
        }
        siteInfoXML.load("siteinfo.xml");
    }
    loadSiteInfo();




}


buildSite();



function openSection(newSection) {
    _root.main.nav[sectionOn].gotoAndStop("off");
    _root.main.nav[newSection].gotoAndStop("on");
    
    _root.main[newSection]._alpha = 0;
    nextDepth = main.getNextHighestDepth();
    _root.main[newSection].swapDepths(nextDepth);
    nextDepth = main.getNextHighestDepth();
    _root.main.divs.swapDepths(nextDepth);
    _root.main.loader.swapDepths(nextDepth);
    
    if (newSection=="staff"){
        
        _root.main.staff.side_nav.side_nav_text.text="Worked!";
        
    }
    if (sectionOn!=newSection){
        _root.main[sectionOn].gotoAndPlay("off");
        _root.main.boiler.gotoAndPlay(sectionOn+"off");
    }
    myTarget = _root.main[newSection];

    var fadeIn = new Tween(myTarget, "_alpha", Regular.easeIn, 0, 100, 0.3, true);
    fadeIn.onMotionFinished = function() {
        if (sectionOn!=newSection){
            _root.main[newSection].gotoAndStop("build");
            _root.main[sectionOn]._alpha = 0;
            sectionOn = newSection;
        }
    }
    





CODE FOR GALLERY

PHP Code:



function buildGallery() {
    sideNavCategoryOn=-1;
    galleryCategoryOn=0;
    galleryProjectOn=0;
    galleryNum=galleryArray.length;
    
    main.gallery.side_nav.back.gotoAndStop("off");
    
    for (i=0;i<galleryNum;i++){
        main.gallery.side_nav.side_nav_text.attachMovie("side_nav_item_gallery", "side_nav_item"+i, i);
        main.gallery.side_nav.side_nav_text["side_nav_item"+i]._y=i*17;
        main.gallery.side_nav.side_nav_text["side_nav_item"+i].myNum=i;
        main.gallery.side_nav.side_nav_text["side_nav_item"+i].myText=galleryArray[i].category;
    }
    
    
    slideshowNum=1;
    
    var my_mcl1:MovieClipLoader = new MovieClipLoader();
    var my_mcl2:MovieClipLoader = new MovieClipLoader();
    var mclListener1:Object = new Object();
    var mclListener2:Object = new Object();
    my_mcl1.addListener(mclListener1);
    my_mcl2.addListener(mclListener2);
    
    mclListener1.onLoadInit = function(mc:MovieClip):Void {
        my_mcl2.loadClip("images/gallery.jpg", "main.gallery.slideshow_container.slideshow1.pic2");
    }
    
    mclListener2.onLoadInit = function(mc:MovieClip):Void {
        main.gallery.gotoAndPlay("on");
        main.boiler.gotoAndPlay("galleryOn");
        main.gallery.slideshow_container.slideshow1.gotoAndPlay("on");
        
    }
    
    main.gallery.slideshow_container.attachMovie("slideshow", "slideshow1", 1);
    my_mcl1.loadClip("images/gallery.jpg", "main.gallery.slideshow_container.slideshow1.pic1");
}


function openGalleryCategory(categoryNum) {
    
    for (i=0;i<galleryNum;i++){
        main.gallery.side_nav.side_nav_text["side_nav_item"+i].removeMovieClip();
    }
    
    galleryNum=galleryArray[categoryNum].length;
    
    for (i=0;i<galleryNum;i++){
        main.gallery.side_nav.side_nav_text.attachMovie("side_nav_item_gallery_inner", "side_nav_item"+i, i);
        main.gallery.side_nav.side_nav_text["side_nav_item"+i]._y=i*17;
        main.gallery.side_nav.side_nav_text["side_nav_item"+i].myNum=i;
        main.gallery.side_nav.side_nav_text["side_nav_item"+i].myText=galleryArray[categoryNum][i].name;
        
    }
    
    main.gallery.side_nav.back.gotoAndStop("on");
    
    numThumbs=galleryArray[galleryCategoryOn][galleryProjectOn].length;
    
    var my_mcl:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    my_mcl.addListener(mclListener);
    
    i=0;
    itemsLoaded=0;
    
    
    mclListener.onLoadInit = function(mc:MovieClip):Void {
        i++;
        itemsLoaded++;
        if (i<numThumbs){
            nextThumb();
        }
        else if (i>=numThumbs){
            loadFirstPic();
        }
    }
    
    
    function nextThumb(){
        main.gallery.thumbs.attachMovie("thumb", "thumb"+i, i);
        main.gallery.thumbs["thumb"+i]._y=i*158;
        main.gallery.thumbs["thumb"+i].myNum=i;
        my_mcl.loadClip(galleryArray[galleryCategoryOn][galleryProjectOn][i].thumb, "main.gallery.thumbs.thumb"+i+".pic");
        
    }
    
    function loadFirstPic(){
        var my_mcl:MovieClipLoader = new MovieClipLoader();
        var mclListener:Object = new Object();
        my_mcl.addListener(mclListener);
        
        mclListener.onLoadInit = function(mc:MovieClip):Void {
            main.gallery.gotoAndPlay("openDetail");
            main.gallery.detail_viewer["detail_pic"+detailPicOn].gotoAndPlay("on");
            timer = setInterval(checkScroll, 1);
        }
        
        detailPicOn=0;
        
        nextDepth=main.gallery.detail_viewer.getNextHighestDepth();
        
        main.gallery.detail_viewer.attachMovie("detail_pic", "detail_pic"+detailPicOn, nextDepth);
        my_mcl.loadClip(galleryArray[galleryCategoryOn][galleryProjectOn][0].photo, "main.gallery.detail_viewer.detail_pic"+detailPicOn+".pic");
        
        
    }
    
    nextThumb();
    


Always Need To Reload 9
I have IMac POWER PC G4 OS X 10.3.9
Solutions have been posted for same NEED TO RELOAD PROBLEM for INTEL iMacs, but not for PC iMacs.

I received a solution from JibJab tech that temporarily works on Firefox: (1) clear cache from Firefox browser using Tools; (2) Close all browsers; (3) Install Flash Player 9; (4) clear cookies
But I have to repeat this procedure everytime I shut down and start up again.

I generally prefer to use Firefox as browser, but have Safari (older version) and Explorer built-in. Also Netscape seems to be built-in, but never use it. I have the same problem with Safari and Explorer.

I am not a particularly sophisticated user. I just want to be able to enjoy the internet using Quicktime and Flash Player without problems.

HELP!!

dlinma

Reload Swf
Hai!
Does anybody know how i can make sure that my swf file is reloaded everytime someone visit the page!
I put <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1"> in the HTML page but this doesn't work!

How Not To Reload?
I was talking to someone about a full Flash site, and they wanted to know if there is a way to check if a movie is loaded; and if the navigation button for that moive is pressed, to not load it again.

I looked through the AS library and didn't really see anything that would pertain.

Any ideas?

For reference, he said he made the site basically following the "Full site" tutorial from here.

Reload
I am having alot of trouble on a reload script i tried like 6 times with every way i know I just dont seemt o get it right.

Any one have scripts for it.

Please not the one from WB2k Only cause it dont workj for the enies only for the sound and so it odnn shoyany animation it still kills the guy even if you dident reload.

So anyone have ideas.

Reload Xml?
Hi, how do I reload an xml file?

This is what I have so far:

import flash.display.MovieClip;

var holder_mc:Holder;
var xml:XML;
var xmlList:XMLList;
var item:Item;
var loader:URLLoader = new URLLoader();
var url:URLRequest = new URLRequest("***");

loader.addEventListener(Event.COMPLETE, showItem);

function reload(event:MouseEvent):void
{
removeChild(holder_mc);
loader.load(url);
}

function showItem(e:Event):void
{
holder_mc = new Holder();
holder_mc.x = 34;
holder_mc.y = 70;
addChild(holder_mc);


xml = new XML(e.target.data);
xmlList = xml.channel.item;

for (var i:uint = 0; i < 10; i++)
{
stat_txt.text = "tekst" + i;
item = new Item();
item.y = i * item.height;
holder_mc.addChild(item);

item.title_txt.text = xmlList.title.text()[i];
item.adresse = xmlList.link.text()[i];

item.addEventListener(MouseEvent.MOUSE_OVER, over);
item.addEventListener(MouseEvent.MOUSE_OUT, out);
item.addEventListener(MouseEvent.CLICK, goto);

}
}

loader.load(url);


I'm just removing the holder_mc loads the url again. Not working. Any suggestions?

Reload Swf
Hai!
Does anybody know how i can make sure that my swf file is reloaded everytime someone visit the page!
I put <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1"> in the HTML page but this doesn't work!

HELP How Do I Reload W/ Flash
I am attempting to finish up a Interactive Campus Map, however I am unable to figure out how to add a refresh button to the page, I realize that the browser provides one but I'd like to add one to the map so that the page can be reset in a Flash Player. I need the equlivient of a javascript Refresh Page like this or something [ history.go(0) ]. If you have any Ideas let me know. Also if you like to look at peoples work and give suggestions then plaes check out the map. It's really still beta but that will change over the weekend.

<http://wwwstage.valpo.edu/maps/flash>


Thank you in advance

Force Reload
I was wondering if any one knows how to force the user to reload the SWF file. Right now they don't so if i update the site they will not reload the site.. Instead they will just use the SWF file that was stored on the users computer

How Can I Make A Gun Reload?
I know how to make the gun shoot but I don't know how to desactivate shooting when it's reloading...

Please answer me...

Reload A Movie
hi there

how can i on(release) reload a movieclip?

hope you can help....
jesper

SWF File Should Not Reload
Help - I have a website made up of 4 main SWF files which link to each other. Problem is that in Internet Explorer on both Mac & PC, the SWF files don't seem to be cached - ie. I have to wait for them to reload each time I go back to that page. I am using:

if (_framesloaded >= _totalframes) {
gotoAndPlay ("end");
} else {
play();
}

Which should detect whether the movie has loaded or not, and skip the loading routine. The code seems to be right - so does anyone know what the problem might be? Perhaps you have had a similar problem?

Thanks in advance

Unexpected Mc Reload. HELP
I have a masked mc that I have scripted to goto and stop frame 2 so as the mask tweens, it appears to reveal the mc.
As the last frame of the mask tween loads, it also forces the masked mc to reload and reset to frame 1.

I can't figure out why or how to correct this issue.

Anyone experience this?
any ideas?

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

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?

Reload Flash?
I am having trouble with stopping a level1 movie from level2 on a particular project. I know this worked on other projects, does this sound like I need to re-load flash? It seems to be ignoring the button script

on (release) {
_level1.Stop();
}


Seems simple enough, I have never had to reload Flash before.

How To Prevent Reload
i have a two-frame website where one frame is Flash and the other is HTML content. When the user does a window refresh, the Flash movie loses the current state. Is there a way to prevent the refresh from happening in the Flash frame?

(maybe intercept the reload event somehow?)

How Not To Reload Swf When Going To A New Page?
I have a flash navigation system in my html pages. I was wondering if there is any way for the swf to keep its state when i go to different pages? I know I can do it with frames, but I don't want to use frames. Everytime i click on a link in one of my pages the swf plays from the begining and I lose all the variables I passed to the dynamic text box's.

Please Help,
THanks

Force Reload Of Swf
I need to force a reload of a child swf. I am using the same logic that I use with loading variables, but it doesn't seem to work.

Code:
var rand = random(8564);
loadMovieNum("mymovie.swf?rand", 3);
Any tips on how to accomplish this?

Fade In On Reload
im using an empty clip to load images into a gallery. the client has asked for them to fade up when they come in. im already routing the load through a preloader. how would i add a fade into the process. can i just put some code on the clip that the images load into so that when it gets new material ( like an "onReload ") it fades from 0 ?

Reload Swf Question
Hi all,
Let's say i have the following situation:
I have a main movie...let's call it main.swf
This movie has a a few buttons, one of these buttons opens another swf (let's call it page1.swf) via loadMovie() onto another level, level1.
In this page1.swf i have a button that loads another swf (called caution.swf). This caution.swf upon another button action deletes an item in a mySQL DB via PHP. If the delete is successful it send a variable back to the caution.swf file telling it to close. All this works well.
My question is how can i then get the page.1.swf to reload so the new updates are present? I don't want to reload the main.swf, just the page1.swf.
Any ideas?

Cheers.

Reload .swf By Function Within
is there any way to reload .swf by function within ?

Don't Want To Reload The Movie
hiya!
Using Flash 5 - Sort of new to actionscript and get really confused! I used to know this but I need someone to remind me since it's been a while:

On release I want to check if a grballs.swf is already loaded on layer 1 - if it is then load pfol.swf on layer 2
BUT!
if grballs.swf is NOT already loaded on layer 1 then load grballs.swf on layer 1 first and then when it's finished load pfol.swf on layer 2.

help please..


Thanks!

Reload An External .swf
i have a window in my movie which loads an external .swf file into a container movie clip. is there any way to 'reload' or 'refresh' just the loaded mc without addressing it?

instead of:
code: on (release) {
container.loadMovie("experiments/ex01.swf");
}

can we do something like:
code: on (release) {
container.REloadMovie();
}instead?

this is to replicate to some extent the CONTROL+ENTER refresh you can do in flash itself... just to make the .swf go again.

i thaught it might be possiblt to use duplicateMovieClip() but apparently "If you have loaded a movie clip using MovieClip.loadMovie() or the MovieClipLoader class, the contents of the SWF file are not duplicated. "

please, has anyone got any ideas?

thanks

Reload Swf On Internet
I removed the old abc.swf and upload a newer abc.swf. when i go see on internet. it still displays the old one...

i tried to clear the cookies and temp files stuff. but useless.

what happen?

Copyright © 2005-08 www.BigResource.com, All rights reserved