Movie Clips That Won't Stop Playing. Do I Need To Clear The Cache?
I'm having a problem with movieclips continuing to play in frames where there's no movieclip instance in the frame where the playhead stops.
I have keyframes with stop actions on frames 1 and 5. Movie1 is in Frame1. I'm using a button rollover that goes to frame 5 where Movie2 starts playing, but the original clip from frame 1 is still playing so there's a nasty overlap happening. On rollout the playhead is set to go back to frame 1 and you can guess what happens here. Movie1 starts playing again so I've got Movie1 playing twice on the same spot. Bloody annoying.
I'm sorry if I've not explained this very well but it's the only way I can think of. I'll be happy to send the file over to anyone who wants to help. Hopefully someone will.
Cheers
FlashKit > Flash Help > Flash ActionScript
Posted on: 12-16-2002, 12:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Stop And Clear MC From Playing
I have an MC called MCShip.
I want to assign a button an Action Script ... that onPress, the MCShip movie clip will stop playing and clear itself from the screen.
How do I type that Action Script?
Hey Guys, Is There A Way To Stop Movie Clips From Continuesly Playing?
ok basicly im in the iddle of making an intro and I have come to a problem, all my movie clips are symbols witch each have thir own animation and there is a bit where i want them to stop moving and stay in that final position but when i add stop action nothing happens they just go again, Ive set it out so it symbols within symbols.... any one think they can help me?
Preloaded Flash Movie Not Playing From IE Cache
Hi 'Kitters
Up against it today, so looking for a speedy reply if possible..
I have created a Flash movie that uses the first 4 frames to run a preloader that plays the rest of the movie once the whole thing has loaded. However, I then use navigation buttons to load a subsequent standard HTML page. On this HTML page, clicking 'Home' sends the user back to the Flash movie... but... it loads itself again with the preloader etc.
Is it not possible that once the movie has pre-loaded, that it can just be read back from the browsers cache and needn't load in again?
How might this be done?
Thanks in advance for any advice offered.
Deuxbieres
How Do You Clear Text, Buttons And Movie Clips?
Hi. How do you clear text, buttons and movie clips.
I know how to clear graphics:
ActionScript Code:
graphics.clear();
But need to know how to do the same for text fields/text, buttons and movie clips. Thanks.
Can You Preload Or Cache Next Movie While Existing Movie Playing?
Is there a way to cache the next movie in the playing sequence without using levels? I would like to cache the next movie and have it "ready" to play seamlessly with the current one since these 2 files use the same background. Currently the loading period between these 2 movies causes a flashing effect.
thanks
Button Action To Clear Previous Movie Clips
Hello
I am quite new to flash as this message will make apparent. My situation is that I have created four buttons that once pressed play different movie clips (the movie clips are four different pages that slide in from the sides). My problem is that when I press on the buttons one after the other the movie clips play over the top of each other. How do I get a newly activated button to remove all/the previous movie clip/s before playing its own. For example when I press on the "home" button the home page sildes in. But when I then press on the "links" button the the links page slides in over the top of the previous page making a mess. The home page should disappear or slide out before the links page moves in.
Any help would be gratefully received.
Cheers,
Hitto
Clear Cache
Whilst this is not a strictly flash question when I upload a new version of a swf file I have cache troubles with viewing latest versionI run ie6 with windows xp
can anyone advise on sure fire way to clear cache or any other tips on viewing my updates on line
Clear IE Cache
He there,
i have this file: http://www.diamond4it.nl/textveld.html. Only the first time the website is visited you see the counter. The next time it skips this part because the file is already cached.
The tick with <meta pragama=no-cache bla bla is not working.
Is there any way to clear the cache of IE by Action Scripting?
Clear Cache? (k)
I have a flash movie that seems to choke at a certain point in the movie. I'm pretty confident it is a caching issue. My reason for this theory is if I remove several photos prior to the hanging photo, the movie plays fine.
http://www.pbjewelrydesigns.com/index2.html
I sped up the movie to get to the hangup point faster. You'll notice when it hits 24 of 38 it stops fading and just goes right to the next frame. I have triple checked my code and it is the same throughout.
I use the tween class to do the fade. Here is the code I am using:
Attach Code
stop();
// import tween classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
var Animation:Object;
//
Animation = new Tween(this["mcPhoto"+(_global.varPhotoName-1)], "_alpha", Regular.easeInOut, _global.AlphaStart, _global.AlphaEnd, _global.TweenSpeed, true);
Animation.onMotionFinished = function() {
Animation = null;
_root.nextFrame();
stop();
};
Clear Cache With As
is there any way to clear a flash file and html file from cache as soon as the browser is closed?
i hate having to clear my cache everytime!
[FP8, AS2] Preview Movie, Loading Videos Via XML, Testing... How To Stop Cache?
The summary/title pretty much says it all.
I really do not want to add a random number query string to the end of each movie via my XML file... Is there any way to prevent the flash player from caching the videos for testing purposes?
I am testing locally, but loading videos from the net.
Tips?
Many TIA!
Cheers,
Micky
Clear Cache Problems
I hope someone might be able to help me out.
I am uploading my site and adjusting various things but am having trouble clearing the cache to see the updated page. I've been through the preferences and cleared the cache but to no avail.
I'm on a Mac and using IE 5 and netscape comm. 4.7
Help!
Cheers
Michael
How Do You Clear The Cache For REAL + $$$ For U
I am losing my mind because I have a flash presentation that reflects changes fine when I make them locally but when I upload the file the client tells me the changes are NOT working. He has cleared his cache, restarted his computer, etc. Any ideas?
The flash in question is here : http://backupzone.com/test/ams/ams.swf
Can anybody viewing this message:
a) Offer tips for unloading / reloading the cache for these people!
b) Telling me if you are able to click on high-quality / low-quality and if the presentation starts or doesn't start. We had several users say that they couldn't view the presentation at all, but they were persons who had viewed it as recently as last night making me think the issue is also one of caching.
Help and thank you! PS - If anybody wants to build a much cooler looking pre-loader for me I have $$$ in hand for an artist / flash programming guru that can help us finish this off!
zL
Ways To Clear Cache?
hey, i keep uploading my new swf files but i can't seem to clear the cache to view them online? I've tried F5 and deleting my temp internet file through the browser. still the old swf files are present. any good ways of clearing cache?
thanks
How To Clear Flash Cache
How is it possible to clear the flash cache ? Can you do that by right clicking over a flash player movie or image and choosing Settings and then moving the slider bar over to the left side which reduces the storage to 0Kbs
Edited: 10/30/2006 at 09:40:30 AM by eh936
ActionScript (MX) How To Clear Cache(?)
I am working on a slideshow based on the XML slideshow from this site. However, I have multiple slideshows, based on what the user selects. I have a problem however, when I try to change "views". The old timer won't reset, and the new view starts skipping images and the 6 sec delay is right out the window.
See what I mean here:
Bestcon Site
click Paradise Key then view 1, switch views to Pkey view 2, and back again to view one and the slideshow starts going crazy.
How do I reset this?
Here is my AS Code:
Code:
delay = 6000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
descr = [];
var myArray:Array = Array("lakes", "key", "oaks", "preserve");
logo.gotoAndStop(myArray[dev]);
total = xmlNode.childNodes[dev].childNodes[ang].childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[dev].childNodes[ang].childNodes[i].childNodes[0].firstChild.nodeValue;
descr[i] = xmlNode.childNodes[dev].childNodes[ang].childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("bestconSlide.xml");
/////////////////////////////////////
//In case you want to use a key script to control slideshow
/*listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};*/
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = descr[p];
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = descr[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = descr[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}
stop();
Clear Cache Mp3 Player
Hi everyone,
I have an mp3 player nearly finished. Thing is, it is acting up.
You load tracks by clicking buttons linked to an XML file.
I know although the mp3's are said to stream, there is informations cached in the flash player.
When I click on the same button to load in the track again after loading a couple of other tracks it messes the timing information up.
I would like to know if there is a way of clearing previously loaded info on another button click?
Thx
BRb
Clear Cache When Browser Closed
is there a way to clear a file (flash or html) from the cache when the browser gets closed
this so people who don't regularly clear out their cache get the new version of the website everytime
FF Cache Won't Clear Flash Content
I thought this must be a problem for thousands of people but can't google it - incredibly frustrating...!!!
I can't clear flash content out of my FireFox cache. I have done "clear now" in advanced and Privacy dialogue boxes. I have even deleted all the files from the folder under Documents and Settings. But still it displays cached content (only an issue with swf).
I am working in a government department so am guessing this could be an apache server issue perhaps? If so, is there something I can ask the IT guys to change?
Javascript To Force A Server Cache To Clear
I have a series of flash games that communicate with a database. Every time there is communication between the 2, the protocol carries a version number for the software, in case a new version is now being used, and the software should be reloaded.
Does anyone know of a javascript function that I can place in the HTML code of my Engine's HTML file that can force the server cache to clear?
LoadVars Works Once, Then I Have To Clear My Browser Cache
Hello All!
Here is my problem. I have a basic Action Script 2 issue, I have a LoadVars() variable, I get a "promocode" from from a php script. The code works fine, but when I reload the page, all the variables collected become undefined. Maybe this has something to do with my <?php session_start(); ?> in my php scripts?
The result is: First time I run the flash page everything works fine, reload and all the variables I collected become undefined. I "clear private data" (cache) and the page works again. Hmm...
Any Help would be greatly appreciated, Thanks in advance!
I have included my code below:
AS2:
var myPromo:LoadVars = new LoadVars();
myPromo.onLoad = function () {
if (this.code) {
_global.promo[0] = this.code;
_global.promo[1] = this.type;
_global.promo[2] = this.amount;
}
}
myPromo.load("http://www.test.com/pro/getPromo.php");
PHP:
<?php
session_start();
$pc = $_SESSION['pc'];
include('../sqlconnect.php');
$query = "SELECT * FROM promos"
."
WHERE promo_id='$pc'";
$result = mysql_query($query);
$result = mysql_fetch_array($result);
$temp = explode(".",$result[2]);
$temp = $temp[0];
print("code=".$result[0]."&type=".$result[1]."&amount=".$temp);
?>
Animation Wont Play A 2nd Time....how Do I Clear Cache?
Hey,
I have the following code that brings in a movie animation. My problem is that once the animation is finished and the user presses the 'back' button to navigate elsewhere on the website, if they go back to the animation and click the 'great_btn' the animation won't play again.
ActionScript Code:
_root.main_cntr.btns_mc.great_btn.onRelease = function() {
loadscrollIt(); disableBtns(btnArray);
_root.homepage_cntr._alpha = 0;
_root.photos_cntr._alpha = 0; _root.btns_cntr.alphaTo(0,1,"easeOutCubic");
_root.main_cntr.main_txt.alphaTo(0,.4,"easeOutCubic")
_root.sub_cntr.main_txt.alphaTo(0,.4,"easeOutCubic")
_root.main_cntr.sub_txt.alphaTo(0,.4,"easeOutCubic")
_root.sub_cntr.sub_txt.alphaTo(0,.4,"easeOutCubic")
_root.main_cntr.btns_mc.alphaTo(0,1,"easeOutCubic")
_root.great_cntr.loadMovie("great_lengths.swf");
_root.pattern_cntr1.background1.alphaTo(25,0.8,"easeOutCubic",0.5);
_root.pattern_cntr2.background2.alphaTo(25,0.8,"easeOutCubic",0.5);
_root.main_cntr.back_btn1.alphaTo(100,1,"easeOutCubic",24)
}
I tried adding this line of code to the back_btn so that the animation is actually loaded in on every click of 'great_btn' but it's not working.
ActionScript Code:
_root.great_cntr.unloadMovie("great_lengths.swf");
Any ideas?
Cx
How Do I Stop A Movie From Playing Over And Over
I have a square movie in the center of my page, i want it to animate anytime i resize the window, but i want it to animate only once, but it keeps going and going everytime i resize the window, how do i make it to play only once?
this is my actionscript:
stop();
square_mc.stop();
Stage.scaleMode = "noScale";
Stage.align = "LT";
Stage.height = 100;
Stage.addListener(square_mc);
square_mc.onResize = positionSquare;
function positionSquare()
{
square_mc._x = Stage.width/2 - (square_mc._width/2);
square_mc._y = Stage.height/2 - (square_mc.height/2);
square_mc.play();
}
positionSquare();
square_mc.stop();
Stop 1 Movie When Playing Another
I have a project with 5 flv files in it. I have buttons to take the user to whichever clip they would like to hear (they are audio only, with controllers).
The problem is, once you have started any of the clips playing, if you click to go to another one, the first one continues to play at the same time. Is there a simple script to tell whatever may already be playing to stop before the other one begins?
This is my first Flash project,btw-- I don't know anything! :)
Movie Should Stop...but Keeps Playing
ok...I promise...I'm not on drugs.
I also apologize for the length of this...but I have to explain.
This is driving me nuts....I've done a simple presentation....large, but simple.
It's basically a demo of a product that tracks trucking fleets via GPS.
Anyway, the movie starts....goes to a certain keyframe, loads all the pretty graphics and such and the navigation, then....STOPS....waiting for a mouse click on one of the buttons. So far so good.
Now....if you click the "View Demo" button, it simply jumps down the timeline...and starts playing the demo movie...like it's supposed to.
Here's where the weird stuff starts.
Within this demo movie...I have a simple button, that allows the user to escape the demo....when clicked...it simply goes back to the begining of the timeline to a particular keyframe with a stop action on it.
And then....it stops....All good so far.
However, after a few seconds....maybe 5 or 10....it starts the demo again....just jumps down the timeline and starts playing again!!!!....There is no fancy Action Script or anything.....I'm very confused.....and am hoping that someone may shed a little light on this.
The file is huge...so posting it is no good.
Anyone?
Stop A Movie From Playing
Hi
I have this clock which I just want the hand to move only by 180 degrees
So I have this code like ( not complete code here)
Code:
this.createEmptyMovieClip("myclock", 3);
/*..
...
.. some code here and then
*/
myclock.onEnterFrame = function () {
myclock.secondsHand._rotation+=1;
if( myclock.secondsHand._rotation==180)
{
trace("Wow");
myclock.stop();
}
}
but this is not working
Can someone tell me how I can stop it at 180?
I do get a trace "Wow" but it keeps on playing
Thanks
How Do I Stop A Movie From Playing
hi guys...
heres my problem. I have two movies ( A and B) playing continously in a scene ( looping). After a few seconds, I would like movie A to stop ( freeze) while movie B continues on.
How do i do this? I tried putting a "stop" action on movie A but it stops everything else including movie B.
thanks!
Movie Should Stop...but Keeps Playing
ok...I promise...I'm not on drugs.
I also apologize for the length of this...but I have to explain.
This is driving me nuts....I've done a simple presentation....large, but simple.
It's basically a demo of a product that tracks trucking fleets via GPS.
Anyway, the movie starts....goes to a certain keyframe, loads all the pretty graphics and such and the navigation, then....STOPS....waiting for a mouse click on one of the buttons. So far so good.
Now....if you click the "View Demo" button, it simply jumps down the timeline...and starts playing the demo movie...like it's supposed to.
Here's where the weird stuff starts.
Within this demo movie...I have a simple button, that allows the user to escape the demo....when clicked...it simply goes back to the begining of the timeline to a particular keyframe with a stop action on it.
And then....it stops....All good so far.
However, after a few seconds....maybe 5 or 10....it starts the demo again....just jumps down the timeline and starts playing again!!!!....There is no fancy Action Script or anything.....I'm very confused.....and am hoping that someone may shed a little light on this.
The file is huge...so posting it is no good.
Anyone?
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");
};
Movie Just Stop Playing After Compile To Swf
Hi,
I m currently doing a flash assignment where after i compile to exe or swf is about 6MB, with about 148 scenes. It runs fine but if i add in more scenes and then i compile, it is about 6.1MB then is where my problem starts. The exe or swf will play my movie half way before it stops and just can't continue anymore.
My movie is just a simple animation which doesn't involve much scripting.
Is is because there are too many scenes or the file size too big?
Please help...
Stop Playing Movie On Next Frame
Hello,
I have a movie that is called from a button. I use the following actionscript.
on (press) {
this.attachMovie("printoptmc", "window", 1);
window._x = 473.6;
window._y = 252.3;
}
I have navigation buttons on the screen. When the user click the next frame nav button or prev frame button I would like the movie to stop.
How do I go about this? I tried stop(); but it does not go away.
Any help appreciated.....
Thanks
Stop Movie From Playing Automatically
I imported video using Flash 8 wizard.
The video starts automatically playing as soon as the page loads. Is there a simple way to fix it so that it will only start playing when the user clicks the start button?
Thank you.
How To Stop A Movie That Is Playing In Reverse?
Hey guys, newbie to the forum here. I'm glad i found it.
I have this project that contains two buttons and right and left side of the stage. Basically, when you click on the right, the movie plays backwards and when you click on the left the movie plays forwards.
I'm upset because, as the movieclip plays forwards, i've inserted several stop(); commands to stop at key junctures. However, when my movieclip plays backwards, it does not obey my stop(); commands.
I would appreciate any help that can be given to me.
Thanks.
My Movie Wont Stop Playing
Someone help me witht his simple problem I made a button to call a movie and it calls the movie so thats good but I put a stop action on frame 10 inside my movie so it could stop and its not stopping it keep restarting to frame 1 and then stopping why is it doing that?
This is the action I used for the button Ive used this action before and it work and the movie stopped also but its not working now.
on (release) {
tellTarget ("_root.window") {
gotoAndPlay(2);
}
}
Stop Movie From Playing On Refresh?
I recently had to edit a link on the flash banner. Previously it played once and I assume had a cookie to prevent replays every time you changed pages. Now it plays EVERY TIME. Please help. I would like to play once for a new user, then thats it.
Why This Movie Wont Stop Playing?
Hi there ,
Im really needing some help with my flash file here,
i have been following tutorial on how to make this animated gallery
( http://www.flash-game-design.com/flash-tutorials/gallery-flash-tutorial.html)
and i seem to be going fine with it, but when it came to includeing this into a flash web site,
i came across this issue, the way i have the site set up, is each button " adventures" "photos"
etc.. each button takes you to a different location in the time line, but it seems once
the gallery movie has loaded, no matter where else on the time line i got to , it will keep playing.
even thoguh it isnt actually on the frame it is playing it on.
this may be a little confusing.. but IM VERY CONFUSED.
can any one help with this? or do you have simpler way of doing what im trying to do ?
any help would be great!
cheers.
littlehiphopbunny@hotmail.com
Swapping Movie Clips With Variables And Just Playing A Friggin' Movie..
Ok i am trying to do 2 very simple things..
i just want to jump to frame 2 of this movie called solotab just when the movie first runs..
Then i want the clickable tabs to enlarge - move to the edge and replace each other and for this there are the variables current and currenttab to store the respective instances to be targetted.
I don't know why it doesn't work as the target path is correct and the variable is correct - the trace action shows this..
with your help i could become cleverer..the file is on this thread - http://www.kirupa.com/forum/showthread.php?t=217591
Si
Playing 2 Movie Clips Before Going To Swf
I have 4 swf's and I want 2 transitional movie clips (8 altogether) between each swf. How do I script my button so that it will play 2 movie clips before going to another swf? Thanks!
My Movie Clips Are Not Playing
Hi everyone!
Im trying to get my actionscript to work here. I have all my instances named properly (and not using the names from the library) and such but still they dont play when needed.
//Instance MC Functions:
mov1 = plays on [rollOver]
mc1 = plays the menu on [onRelease]
cube1 = plays the button mc with an invisible button behind it.
//Here is the script:
on (rollOver, dragOver) {
_root.mov1.play();
_root.cube1._alpha = 100;
}
on (rollOut, dragOut) {
_root.cube1._alpha = 30;
}
on (release) {
_root.mc1.play();
}
//End of Script
Playing Movie Clips
please help me out, im new in flash (mx)... i have created 3 movie clips and i want to play them in succession from one clip to another. i tried the goto function but it seems that it only loops the first clip, it does not jump to the next one. please give me the proper way of doing it. thanks in advance.
Playing Movie Clips On Top Of Each Other
Hi,
I am very new to this forum although I have been using Flash for a couple of years now.
I am doing a little presentation here at work. It is very simple. All I have are three square cubes hanging in a row on the center of a white canvas. Each cube is a movie clip that falls in to the canvas and stops until you click on it. The idea is that each cube represents a section of the presentation and that when you click on any of these cubes it should expand to cover the whole canvas. Then, when that particular section is finished, they return to their original shape and size.
The problem is that I want each cube to overlap the other two when it expands and I dont know how to do it. Right now if I click on the cube to the left it will expand behind the other two. If I click on the one in middle, it will cover the left one but not the one to the right. And likewise the one to the right will cover the other two cubes.
Each cube is a movie clip. I have them all placed in the same keyframe and they overlap each other in the order that I placed them within the frame.
What can I do to make each movie clip play on top of the other two ?
thanks
|