ActionScript 2.0 :: MOVIECLIP Not Reloading?
Nov 5, 2009
I have frame 1 and frame 2 which are almost the same. Both have a movie clip TAB. This tab has buttons: button 1, button 2, button 3. When I click button 1, it will show a text, and so on..If I am at frame 1, and I click button 2, it is ok. But when I go to frame 2, TAB movieclip is still at button 2! I think it is not reloading.
View 2 Replies
Similar Posts:
Jun 16, 2011
URL...Once you get to my portfolio menu homepage, click on Print design. Everything there loads fine.The trouble is going back to the portfolio movieclip and having it display those menu buttons again.As you can see, if you try to click the view portfolio button at the top, it loads that movieclip to wherever you left off at.Basically, my question is: How can I have my "view portfolio" button reload/refresh the movieclip (page1) from the beginning in my pagecontainer_mc?
-page1 is a movieclip that shows my portfolio buttons.
-page2 is a movieclip that show the "about me" section.
-pagecontainer_mc is an empty movieclip that loads page1 or page2.[code]
View 5 Replies
May 19, 2009
I have a website i'm working onnd it works fine in safari and firefox, but when I run it in explorer it doesn't Whats going on is that when you go to the homes section of the site, each home's section is a swf that is loaded into the main movieclip.In explorer these swfs load fine the first time around, but when you return and want to load the swf/section and see it again, they get stuck and although they appear to load, i'm not sure if they have and are getting stuck on the first frame or they are not loading, or there is something going on with the cache.I am loading from the main movieclip using a container with the following code:
var homeLdr:Loader = new Loader();var homeURL:String = (MovieClip(root).gotoArea)+"Eng.swf";
//gotoArea names the swf to loadvar homeURLReq:URLRequest = new
[code].....
View 6 Replies
Jun 18, 2006
i am working on a flash website and i have for the first time made everything dynamically loading from outside of the SWF to reduce the file size. I have a text file which is dynamically loaded into a text box, which i have defined in a variable called "textfile". I want to reload the movieclip on the click of a button and at the same time change the variable for the text file to be opened into the text box. so as i click content, the variable changes to content and the movieclip reloads, showing content.txt in the text box
View 1 Replies
Jan 30, 2009
I have build a simple flash application to try to make changes to an xml and save it. The application has two buttons: load xml - that loads the xml and write xml - that saves whatever is in the textbox to the xml. Then when pressing load xml again, it should load the modified xml.
You can see the file here: [URL]
It works fine on localhost, but as I uploaded it to the sever it doesn't work!
flash code:
Code: Select allvar myLoader:URLLoader = new URLLoader;
var xml:XML;
var myRequest:URLRequest;
[Code].....
View 2 Replies
Dec 29, 2009
I have an image that I am attempting to load, and then reload. Here is my code for the loading of the image:
public function loadImage(url:String, _w:int, _h:int):void
{
this._stwidth = _w;
[code].....
View 3 Replies
Feb 18, 2011
I have a flash animation made on the main timeline of the SWF with a couple of layers, some functions and some keyframe labels. For example, i have a movieclip of a star that come across the screen and then triggers a dispatchEvent for the main timeline to go to frame label "next".[code]That SWF alone works perfectly. Problem comes when I try to load this SWF into another one.What happens is the loader keeps reloading the SWF over and over, overlapping them and the actionscript that's on the main timeline of the loaded SWF is ignored, the timeline plays continuously. Here is the code i use to load the SWF:[code]I have found a workaround by putting the entire animation inside one main movieclip and put that movieclip on the main timeline (one keyframe, one layer, no actionscript) and then load it. That way it works fine but it feel more like a patch than a solution. I would really like to know why it's bugging when you try to load an external SWF that use the main timeline with multiple layers, keyframes and actionscript.
View 1 Replies
Jun 26, 2009
I have an external SWF with some classes.I have a separate (main) SWF with the design and basic code that calls on the external SWF's classes.If I had to change code in the external swf and republish it, how do I use the updated SWF's class without having to republish the main SWF (the one with the design)?
View 0 Replies
May 26, 2009
I have 4 buttons on Layer 1. button_1 to button_4. On Layer 2 I have 4 movie clips each with a timeline span of 5 kf's and a second layer above with a Stop action on the 1st and 5th kf. Each button has a piece of AS on it as follows:
on (release) {
_root.slide_1.play();
}
Each movie clip has an instance name from slide_1 to slide_2. Now when I preview the SWF and click on each button each MC will load and play BUT I have to click on the same button again to make the MC disappear. If I click 1-4 in that order once I click the 4th button and the MC loads for slide_4 I cannot make any of the previous MCs load anymore.
Now I realize there are more advanced ways to make this happen and I am using Flash CS4 but I'm not much of a programmer and can't seem to figure out why this is happening.
View 13 Replies
Jun 12, 2009
I created an external .swf that plays an mp3 and functions as a mute/unmute sound toggle.On its own it plays/toggles fine, but when I use loadMovie to load it into my main .swf it just starts reloading over and over until the song has started one after the next and it becomes a jumbled mess of overlapping songs.I'm going to keep searching through the forums, but does anyone have any clues? I use loadMovie for an animated gif .swf in the same main .swf and that doesn't give me any issues so I'm curious to know what my oversight is.
View 2 Replies
Jan 26, 2011
I have to dynamically load an image in 2 separate places, but I don't want to have to load the same image twice (this consumes more bandwidth and makes the user wait longer than needed).Is there a way to, say, copy the contents of a UILoader into the contents of another? I am aware that flash performs caching, but I still see a slight loading delay on subsequent reloads.I am using as3, btw, on flash cs5.
View 1 Replies
May 15, 2011
I'm having an odd issue with reloading SWFS. I start of with loading my SWF:
var req:URLRequest = new URLRequest( "RegionalIntro.swf" ); introSWF = new Loader();introSWF.load(req);addChild(introSWF);Then once I'm finished I unload:
removeChild(introSWF);introSWF.unloadAndStop(true);Now when I want to reload the SWF I run the first bit of code again I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.I cant work out why I'd get that the second time it loads and not the first. It's supposed to just be the same? This is being done inside Windows Projector .exe file, it's going to run as a kiosk application. I can catch the error by surrounding all of the code in the function at the top of the stack trace with a try/catch block. I trace the error and its the same, the weird thing is all the code executes as expected. All works fine and then throws an error
View 2 Replies
Apr 9, 2010
I have a SWF movie inside of a jQuery UI tab, and the problem I'm having is that the SWF gets reloaded everytime I click away from the tab onto another tab, and then click back. I can inspect the DOM and see that the div containing the SWF is still in the DOM when I click away, so I don't know why this it seems to reload it when I click back to the tab.[code]...
View 2 Replies
May 12, 2011
I'm having an odd issue with reloading SWFS. I start of with loading my SWF:
var req:URLRequest = new URLRequest( "RegionalIntro.swf" );
req.method = URLRequestMethod.POST;
req.data = true; // POST requests require non-null data
[Code]....
What I can't work out is why that works the first time, but when it's reloaded it doesn't work?
EDIT2: The plot thickens, I can catch the error by surrounding all of the code in the function at the top of the stack trace with a try/catch block. I trace the error and its the same, the weird thing is all the code executes as expected. All works fine and throws an error ... very odd! I'd hate to leave it like this without finding out why it's doing it though ...
View 2 Replies
Aug 27, 2011
show flash object in a popup, without copying DOM "object"? I need same instance of flash in the popup.
I guess something similar Stop reloading flash file when using show and hide methods, but I really haven't found yet any good solution for popuping in that case.
View 2 Replies
Jun 9, 2010
I did a simple full flash website, but my boss wants to separate the things out, he wants the button on top to be FLASH, and the content below all in HTML format. The problem is in the full flash site I made when you click button on top example: (chemical) you'll notice that the pressed button is being highlighted with a gray color so the users knows where they are, but when i tried to separate the button part i notice the gray highlight didnt stay to where it should be when the button is pressed. how to prevent the flash for being reloaded when the whole page reloads or any alternative to do this.
[URL]
View 4 Replies
Jan 29, 2009
I have an XML image that I loaded into a sprite and then the sprite into an array, I'm trying to now retrieve the [object Loader] that is in the original array, and display it. however, I keep getting a blank space instead.
View 5 Replies
Mar 4, 2007
My code:
Code:
siteLoader.loadMovie("a1.swf");
loadingBar._xscale = 1;[code]....
Problem: Once "a1.swf" is loaded by the user, flash doesnt reload it again when accessing it (my "a1.swf" file gets updated every few hours, so my users will currently not load the updated version). Now what I want is for the code to REload the file everytime its activated, even if the swf file has been preloaded in the past. I tried using 'reloadmovie' instead of 'loadmovie' and it didnt work
View 3 Replies
Jan 25, 2005
I have a flash header that receives random text from a database through a PHP page. I'm using the loadVariables function to bring in the first random text and that works fine. I then have a button that should access the PHP again and retrieve another random text set from the database (once again using the loadVariables function).
Whenever I use the loadVariables function on the button to renew the random text, it brings up the same text over and over again. When I use loadVariablesNum it works, but opens up a blank page with the output of the variables (getURL also works, opening up a blank page).
Is there a way for me to use the loadVariablesNum without having the page popup with the variables printed out? Or better yet, is there a way to just use the loadVariables to renew the info?
View 3 Replies
Aug 10, 2007
how I can prevent flash from reloading when my page is refreshed? When I user clicks the search button the whole page reloads with the data they were looking for but the flash animation at the top of the page also reloads and I would like to prevent this.
View 9 Replies
Mar 24, 2009
I've seen a site a while back that as you went through it it would change the url without reloading the page/swf. I want to know how do you build a Flash banner and buttons and as they the movie plays or they click on buttons have it change the url and the html text but leave the swf playing? Can this be achieved without too much hassle or will it require advanced coding?
View 2 Replies
Sep 19, 2011
Flash CS5, CS4
Actionscript 2
What I want the SWF to do is play from the beginning when someone hits the index.php file and gotoAndStop(234) when someone goes to a sub-page (like contact.htm).What I did first was:
<CODE>
function checkSO() {
var SO = SharedObject.getLocal("siteSO");
if (SO.data.visitedAlready != undefined) {
[code]....
And that worked in the sense of no cookie-it loads and plays the swf from the beginning. If
there is a cookie it starts from frame 234.
As it sits now as long as the cookie exist in the TIF everytime they return to my page it will not play the opening animation it will just jump to then end even on the index.php.
Someone else suggested:
<CODE>
import flash.external.*;
var currentURL:String = String(ExternalInterface.call("window.location.hre f.toString"));
[code]....
I just don't know what string (I think) to put in the /** ...flush.. **/ part
View 3 Replies
May 21, 2010
I have a Flash game that runs fine, and if the player loses he can retry by clicking the retry button. For some reason I have listeners from previous scenes that won't go away, or are malfunctioning, when the user hits retry and the game and starts back at frame one in the first scene (the actual game is at scene 2 but the retry takes them to scene 1). Is there a way that I can reload the whole movie so previous data won't show up when the player restarts the game? I am kind of looking for a "refresh movie" script for the .swf file.
View 3 Replies
Sep 19, 2011
What I want the SWF to do is play from the beginning when someone hits the index.php file and gotoAndStop(234) when someone goes to a sub-page (like contact.htm).What I did first was:
[code]function checkSO() {var SO = SharedObject.getLocal("siteSO");if (SO.data.visitedAlready != undefined) {this.gotoAndPlay(234);}else {SO.data.visitedAlready = "yes";SO.flush(); }}checkSO();[/code]
And that worked in the sense of no cookie-it loads and plays the swf from the beginning. If there is a cookie it starts from frame 234.
As it sits now as long as the cookie exist in the TIF everytime they return to my page it will not play the opening animation it will just jump to then end even on the index.php.
[code].....
View 11 Replies
Feb 2, 2008
i have 1 PHP page in which i have a Flash animation. this flash swf file, display 2 fields and 1 button.
this php page is called "test.php".
i'm able to send data from Flash to a PHP page, but i would like to send the content of those 2 fields to the "test.php" and display them. however, i do not know how to do it.
i see that it works but i'm not able to display or refresh the PHp page to display the result.
as walkaround i was thinking to collect the webpage address where is executed the flash and to send it to another PHP page. and this 2nd PHP page, will reload the test.php with parameters...
but once again, how to get under flash, the address of the actual executed php page ?
View 9 Replies
Jan 29, 2009
I can load the xml in the first time just fine but when i try to reload the xml to get the new data it comes up undefined. What do I need to do? Do i need to clear the xml object and then reload the data? Am i reloading it wrong? I call the code again using this function and the data comes up undefined
[Code]....
View 1 Replies
Aug 27, 2009
I have a flash in my page, In my flash there is a movieclip that has a click event..the time you click it, it will navigate you to the other page..
My question is.. Is there any function or anything that can reload the page, without reloading flash?
View 6 Replies
Nov 2, 2009
I'm now able to create a .sol file which stores the variables required to continue a game where a player left off.
Now, I don't know how to retrieve the saved information back into the game.
I'm using Flash MX.
Here's my situation:
The game stores six vaiables when a button is pressed:
SaveFile = SharedObject.getlocal("gameinfo");
SaveFile.data.str = player.str;
SaveFile.data.fir = player.fir;
SaveFile.data.end = player.end;
[Code].....
Now, I have a button, named "LoadButton_bt", which, when pressed, I wish to have the game load the saved variables in "gameinfo.sol". The tutorial on the web site by Jesse Stratford doesn't explain how to retrieve the data from a .sol object. I'm sure there's a simple code to accomplish this. Can someone help me with the script?
Remember, I'm a novice non-programmer who just managed to learn this much by self-education and research and asking questions like this which probably have obvious answers to pros like you guys, so talk down to me!
View 0 Replies
Apr 24, 2010
I'm trying to stop the swf from reloading when the buttons are clicked.just want it to load once [default.html] and then onclick or onrelease get the correct URL [without reloading the complete page]
[Code]...
View 9 Replies
Nov 19, 2010
I have a small flash animation with an image in it. when I move the mouse over the image a webpage opens. However when I stay with the mouse on the image and move it, the animation repeats and so it keeps flickering. I used the code below on the image:
on (rollOver) {
getURL("page1.html");
}
How can it be done that when I move the mouse on the image it only loads once?
View 6 Replies