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




Reload Vars Each Second



Folks,

How do I get a movie to re-load data from an asp page each second?

Any ideas.

Munki



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-26-2005, 05:19 PM


View Complete Forum Thread with Replies

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

PHP Window Reload With Vars.
Unless you can solve my memory issue: http://board.flashkit.com/board/showthread.php?t=686775

(basically i have 1.1 megs of memory to work with and loading external pictures in flash 6 never go away)

When it is time to load the next picture, I want the swf to use php and reload the page but with post data so when it reloads the flash file will pick up the post data, remember the picture it is on and do that every time it goes to another pic. Most of the PHP examples I found were about email forms or some data base stuff.

Thanks in advance if you can fill this tall order.

Reload Vars Manually. Possible?
:: I have this thing in flash set up where you can type something in. Only by pressing send, it's sent to a txt file. Flash needs to read the data, and print out the vars --> This only happens after pressing the button.

- Is it possible to load the vars from a file called data.php without having to press send? Thus, loading the text manually...

- If this can be done using php, tell me. If this can be done using actionscript, tell me also.

- Thanks .

Reload Vars Manually. Possible?
:: I have this thing in flash set up where you can type something in. Only by pressing send, it's sent to a txt file. Flash needs to read the data, and print out the vars --> This only happens after pressing the button.

- Is it possible to load the vars from a file called data.php without having to press send? Thus, loading the text manually...

- If this can be done using php, tell me. If this can be done using actionscript, tell me also.

- Thanks .

Vars From Text File, Not Updating Changes, Must Clear Cache, Then Reload Page.
I am having some cache problems.

The code below is for updating a users profile,
When a user makes changes,
he/she is redirected back to the SWF where the editor is,
but the values remain the same.
They might think it did'nt update their changes,
but it did.

I tried using:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
in the html where the swf is embeded,
but it did not work.

Is there some sort of cache control,
or a way to reload the new vars using actionScript.

I'm open to any ideas,
The code is below. Thanks.


Code:
stop();

loadText = new LoadVars();
loadText.load("../members/" + _root.username + "/profile.txt");
loadText.onLoad = function() {
genderSex.text = this.genderSex;
DOB.text = this.DOB;
location.text = this.location;
aboutMe.text = this.aboutMe;
};

function updateSex(){
this.genderSex.text = genderSex_drop.getSelectedItem().label;
}

//
function editProfile(){
username = _root.username;
password = _root.password;
genderSex = this.genderSex.text;
dob = this.DOB.text;
location = this.location.text;
aboutMe = this.aboutMe.text;
//secret = "HIDDEN";
getURL ("../change.cgi", "", "POST");
};

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

POLL: Best AS3 Send Vars And Load Vars Method
Hi Guys,

Can you help me decide which way to go with as3 to php and back again.

I generally use sqlite, xml or mysql for a database. I don't know if that matters. And sometimes (rarely) I don't use a database at all.

In the past (with as2) I always went custom. Im not sure If id be better off doing something else.

If you have another suggestion please let me know.

Converting ALL Vars Of A Clip To Global Vars -possible?
I wonder if it is possible to convert ALL variables set within a movie clip to global variables, using a self-defined prototype like movieclip.varsToGlobal or something like that. Here's the code I tried:


Code:
for (z in this) {
if (typeof (this[z]) != "movieclip") {
eval("_root."+z) = eval(z);
}
}


This seems to work, it copies ALL items found in the clip (excepted movie clips) to the root. But I am not sure WHAT things are duplicated to the root exactly. Just the variables? Or anything else I don't expect?

Mike
x-pressive.com

Local Vars Versus Class Vars
Hey guys, if a function gets call alot of times, such as a collision detection function in a game, will it be quicker to run if the variables for the function are declared and initialised outside the function as class variables? Or should they are declared and initialise inside the function as local variables everytime it is called, for good software engineering?

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?

How To Reload Movieclip
Hi,

I have two frames to my website containing two different language versions of the site, a main English & Spanish movieclip.

On the 1st frame loading, the universal scrollers work perfect but on clicking on the spanish version (2nd frame) the us arrows disappear with the bar only remaining.

I realise that somehow I need to clear the function and then have it reload, any idea how to do this?!

Any help would be greatly appreciated.

thanx,
mt

Reload Movie
What I need to do is basically get back to frame one but have everything reset to default. If i use gotoAndPlay(1); it goes back to frame one but some dynamic variables are still set, I need it to be just like i first loaded the movie.

Reload Button
I have an instance in my movie that displays a random word.
I want to make a button that, when clicked, "refreshes" the word.
Any help es muy bueno.

[F8] Reload Inside A <div>
Is there anyway to make my webpage start and finish a flash movie... then replace the movie with an Html Table with pictures in it. I cannot redirect to another page, I just have one.

[F8] Go To Different Scene On Reload
Hi,

I have embedded a swf movie into an html page. The movie rotates through a number of scenes, each of which contain static pictures. I would like the user to go to the start of a different scene each time the page is reloaded. Can this be domne with action script in the fla/swf file or will I need javascript or php in the html to make it happen? Thanks

Button To Reload?
ok so. I have a stage with a background where when the user clicks and drags it puts movie clips onto the stage. Its pretty much drawing with the MC's i have made (different colored gradiented circles) My problem is i want my button to clear everything except my background off the stage. I can't figure out a way to do it. Is there some kind of code to essentially reload my swf? I cant go back frames because the movie clips arent on a layer. help?

How To Reload A Movie
Hi there

I am having trouble with the unload movie coding etc.

Basically I want the user to be able to press a button and the whole movie start again... it is only one frame long so is not a case of go back to frame 1.

I am also doing within key detection so basically the user will press J and the whole screen will be cleared.


Thanks!

[as3] Reload List
I followed a tutorial to build a list loader and it works great.
I added in to the tutorial code, what I thought would reload the list but, instead it adds to the list . it does not remove previous list
is there a way I can remove the previous list?
any help will be greatly apreciated, sincerely sybershot

Code:
var b = "menue.rss";
var c = "catering.rss";
var d = "employees.rss";

btn2.addEventListener(MouseEvent.CLICK, btn_click2);
btn3.addEventListener(MouseEvent.CLICK, btn_click2);
btn4.addEventListener(MouseEvent.CLICK, btn_click2);

function btn_click2(event:MouseEvent){
var selected_list:String
if(event.target == btn2) {
selected_list = b;
} else if(event.target == btn3) {
selected_list = c;
} else if(event.target == btn4) {
selected_list = d;
}
xmlLoader.load (new URLRequest(selected_list));
}

import fl.managers.StyleManager;

var xmlLoader:URLLoader = new URLLoader();
var logURL:URLRequest = new URLRequest("menue.rss");
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(logURL);

var logXML:XML = new XML();
logXML.ignoreWhitespace = true;

var logFormat:TextFormat = new TextFormat();
logFormat.font = "Verdana, Arial, Helvetica";
logFormat.size = 12;
logFormat.bold = true;

StyleManager.setStyle("textFormat", logFormat);

function xmlLoaded(evt:Event):void {
logXML = XML(xmlLoader.data);

for (var item:String in logXML.channel.item) {
trace(logXML.channel.item[item].title);
liLog.addItem({label:logXML.channel.item[item].title});
}
}

function selectLog(evt:Event):void{
taLog.htmlText = logXML.channel.item[evt.target.selectedIndex].description;

if (logXML.channel.item[evt.target.selectedIndex].link == undefined){
trace("no link");
ldLog.unload();
}else{
trace("image");
ldLog.source = logXML.channel.item[evt.target.selectedIndex].link;
}
}

liLog.addEventListener(Event.CHANGE, selectLog);

MovieClips Seems To Reload Over Again
Alright, I've been trying to work around this problem for a couple of weeks doing every little thing I can think of.

I am doing a Flash project for my company that is a flip book for users to view an introduction of a course. And when the user hits the next button the page they are currently on(which is a movieclip) plays and simulates a page turning. Now I got all the swapDepths down and everything. The problem I am having is that I want to place a back button. At first I had all pages(movieClips) load on the first frame and the back button worked but the Flash was really slow. Then I switch it to where I start the page(movieClip) only when needed. For example I don't need pageThree until the user is on pageTwo. I got that down and understood the depths as far as where they load when they reach that part of the timeline. I placed a temporary back button on pageTwo which seems to work fine but when it goes back to a frame I designated to stop so pageOne plays in reverse to reveal it again it seems as it loads another pageOne underneath the original pageOne and plays in reverse just fine except it looks as though there is a page flipped up still instead of just the frontCover. And I have it set up so once a movieclip is introduced it stays for the rest of the timeline so there is no break in where pageOne is. Now the order I have it set up as far as depths first frame frontCover>pageOne>backCover frame 20 - pageOne>backCover>pageTwo>frontCover the first frame of each pages movieClip loads behind the backCover. Now when I hit the back button on pageTwo it goes and stops at frame 21 so the swapDepths don't offset each other but still have pageOne buttons available and also on that frame have the action pageOne.gotoAndPlay("reverse") which on that time line tells the movieClip inside which is turnPageOne(the movieclip that gives the effect of the page turning to also play in reverse) which works but like I said it seems as it loads another pageOne movieclip. I don't knwo if this makes any sense but would appreciate anybody's help on this.

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