ActionScript 2.0 :: Loaded External Swf Reloads After ~ 1sec?
May 31, 2007
I have this code (AS 2.0 / FLASH 8) for loading swf from an array, and it works great except one little thing. The lodaded swfs reloads after one second and then it plays like normal. I have placed the start and stop attribute to ensure that the swf doesn't start before its fully loaded, but then this happens.
PHP Code:
function loadSwf(sceneSelect){his.loader.loadMovie(scenes[sceneSelect]);
I'm building a website & I'm using External Swf's, Everything works fine, but on some pages, e.g "Videos" loads fine, but when I try to click a button into another SWF, it reloads the current SWF "videos" again,, is it something in the preloader script or something,
i want to duplicate a line 4 times, and move each line on Yaxis, with a delay of 1sec each time. I know i must use setinterval+duplicateMovieClip, but i've got pbs :-( actually, i've got my AS code on my line :
Using AS2, I have a simple flash navigation built using getURL to open various pages of the web site. I'm using _self because it's necessary to open the pages in the same window.The functionality works fine, the only problem is my flash navigation is on every page and when I "getURL" on the pages linked to from the menu, the flash reloads when the page loads. This creates a blank spot on the page until the flash loads.What's the best way to do my navigation so that it doesn't reload the flash on every page? Or at least I don't get the blank spot when going to a new page.
I have a movie clip with 4 frames. I programatically create 3instances of it, and send each one to a different frame. If I laterapply a color transform to one of the clips, it plays through allthe frames and goes back to it's correct frame. Why does it dothat, and can I stop it from doing that?
I have created a pre-loader that creates a movie clip holder then loads an external swf into the created movie clip holder. The pre-loader downloads the external swf but then the downloaded swf re-loads on entry into it's first frame.
For my current project I am working on a home page that has a series of tabs above a content box that each execute an ajax script to load new content into the content box. However, some of these pages contain a flash object called with SWFObject and when the ajax script calls the page, the SWFObject javascript is not executed and I am left with the no flash support error message.
I have tried defining a function for each video call (short of just designing a single function and passing variables to it) and having the function be called as part of the ajax function but I am left with the same results. I am not opposed to using something other than SWFObject though I have been lead to believe it is the best solution currently.
I used flash banner at html page in a iframe. But when I clicked at another navigation link (like index to contact page). flash reloads. & it takes time for low bandwidth user. Is there any solution that, i can go at any page without refresh whole page...(not reload flash). I don't want to reload flash when I click at another link.
I have a Flash movie that I need to jump to a one of 6 chosen frames when say a user hits the back button or home in the site. I just dont want the same user seeing the flash movie replay in the same spot everytime they go back to home.
I have a Flash movie that I need to jump to a one of 6 chosen frames when say a user hits the back button or home in the site. I just dont want the same user seeing the flash movie replay in the same spot everytime they go back to home.Here is what I have scripted:
I am very new to Flash AS3 and Flash Professional CS5. What I am try to do is show frames 4 to 10 (it just say CORRECT in bold) when a user selects the correct answer.On Frame 10 I have the code say "gotoAndPlay(2);", the problem is on Frame 2 I have action-script on that page and all my variables are re-declared and they all get reset as Frame 2 is loaded.How should I prevent the variables from being reset each time frame 2 is reloaded?
I'm working on an ezine, using the pageflip v2.11 from [url].... I can't get it to flip the covers unless they aren't hardcovers. It's killing me. All they do is show the shadow mask flipping, and not the page. I also have trouble with playing an mc, while it is located on the page. It reloads back to the beginning when you mouse over the corner of the page.
I have a flash within a holder div (flash container). I use swfobject to insert the flash object (if it makes any difference). I want to resize that holder div to make it smaller in width, when I achieve the "second level" in my "flash application". (with jQuery .animate() function). What "flash application" mean: I have a human body on wich I can click in different body areas. That is the first action - and the effect is to zoom onto that specific area of the body.
Then I can click again on a more specific zone into that area - and the effect consists in fetching some stuff via ajax. (it's some medical stuff, diseases etc.) - that's the "second level" in my "flash application". Then I can click on that stuff fetched via ajax - that's when I resize the flash holder. The problem is that, because of this resizing, my flash reloads and comes back to it's original state, without that zoom level. This reload appears in the "second level", and not when I click on the stuff fetched via ajax and the flash holder resizes. But that's the cause of the reload, because without this resizing, it's all ok. The problem is just in Firefox, I tested it in IE6,7,8, Opera 10, Safari latest and Chrome and there's nothing wrong there, the flash does not realod. Hope you understand what I'm saying here :) if not I cand send you a private message with the URL to see what I mean (I can't make it public)
[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent); function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
Main FLA: function removeF() { removeChild(bigboreLoader); }
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
I have trailed through endless forums and tried adding all the various codes.I have a movie that is embedded within a php page. The movie starts with an animation and at the end, an image emerges with buttons. The image that emerges is actually an xml run slideshow but I don't want to complicate it with this bit of information if it is not relevant. So the film stops there and the buttons remain with a changing background.
I would like to make it skip to the end frame if it has been played before, if someone returns to the page, so that the user doesn't have to watch the entire movie to get to the buttons.I have tried adding this to the first scene however it is pretty temperamental:
var myCookie:SharedObject = SharedObject.getLocal("checkFirstVisit");
if (_root.getBytesLoaded() == _root.getBytesTotal()) { // Flash Cookie[code].....
I'm trying to create a 'tickertape' (horizontal scrolling text that reloads and loops in a masked window once finished playing). At the moment for visual purposes I have generated the following. This is linking to a movieclip at the moment but doesn't loop once finished... it just keeps incrementally scrolling until it probaby ends up in infinity somewhere...
I've got a small (more than 100 hours of thinkwork up till now!) problem I can't seem to solve:
I want to populate an external loaded swf with an dynamicly loaded xml fil (loaded from my config.xml).
[Code].....
how do I get the external xml into the external swf as a variable for the actionscript in the external loaded swf (So I just want to put the path in the script in my external swf...).
I have a homepage with five "links" to each swf. Now the first swf I have a custom cursor that hides the mouse. When I click on that link it plays and when I quickly go to the homepage again it hides the mouse there when it's not supposed to do it.
Same with every other link. When I was busy with the first swf and want to go to the last swf of the five, my mouse just disappears! It is almost as if it keeps on "playing" without seeing the swf...
Here is the code that I have so far!
var currentpage:uint = 0; //one loader object per project: var loadingobject1:Loader = new Loader(); loadingobject1.x = 445;
I've managed to piece together a flash website with my limited as3 knowledge. The text is loaded from external text files and styled with an external css file.
It's working perfectly in Firefox and Explorer but it only works SOME of the time in Safari (on my mac).It's hit and miss. Sometimes it styles the text sometimes it doesn't.
I have javascript that loads external swf, appending tags "object" and "embed" when page has been loaded. I need to handle event when swf is completely load.
Can an external SWF, loaded using the Loader class, pass info to the host SWF?I am loading an external video player into an interface(host) and would like for the video player to tell the host that the video is done playing so that it can move on to the next one.
I'm having issues with my flash based contact form that uses PHP. My site is set up with a main movie and each page is loaded into that main movie as external swf's. The contact form loads in fine, it allows me to type my name, email, and message and then send. It even responds saying that the function worked and takes me to my success frame label. The email sends but when I open it up in my inbox none of the information is there. My labels are there from the PHP file but none of the information I entered into the form shows up. However, when I reset the paths in the actionscript and just view the swf online directly (not loading it into the parent movie) it works just like above but I can see the information I entered into the contact form, in the email. it works perfectly. so somewhere my actionscript is wrong when it's being loaded as an external swf.
I am trying to load an external swf-movie into my main swf, thou the swf loaded isn't being placed where I want it. So I created a main swf and in that swf I made a new layer and made a rectangle called holder, which holds the different movies being loaded. And then I created a layer made a smaller rectangle called loader which is suppose to load the external swf, but the loaded movie isn't being loaded into the loader-rectangle, it's being placed somewhere else in the main swf, I don't understand why.
However, here comes the code: var mcl:MovieClipLoader = new MovieClipLoader(); var mclL:Object = new Object(); mclL.onLoadProgress = function(target,loaded,total) { loader.percent.text = Math.round((loaded/total) * 100) + "%"; } mclL.onLoadInit = function() { loader._visible = true; loader.percent.text = ""; } mcl.addListener(mclL); mcl.loadClip("news.swf",loader);
I am using a zoom component which i purchased recently to load different external swfs on different button clicks. But instead of loading separate external swfs I would like to load a single swf and go to frame labels - "one", "two", etc. - I've been reading about casting the external swf as a movie clip, but I am confused how this would work with the code I have at the moment.
var image:String="introlocal.swf"; function loadContent () { var myLoader:Loader = new Loader();
I have a main movie menu which has sub movies loaded into levels 1 then section 2 into level 2. I have the subs loading on button but i cant get the subs to unload levels 1 and 2 once they have played.
I have my main movie, and from there an external movie is loaded which has a scrollpane on it. Problem is the preloader will not show when the external swf is loaded...when the button is clicked, nothing happens for about 3 seconds and then eventually the scrollpane comes up. I have the preloader on Scene 2, and it works for all my other external swfs so I know its the scrollpane issue.[code]I have tried have the "export to first" frame linkage thing but that doesnt work... does anyone know how best to do this?
I'm loading an external .swf via typing the swf name into an input text field and hitting a submit button.
The swf loads fine, but I'm trying to incorporate updating a status text field on a successful load or if there is an error during loading.
I can't find my mistake in the code - to me it should be making load_status_txt display "ok", but the swf just loads with no status update. All the text fileds are fine, because if I code load_status_txt.text = "hello" straight after addChild(loader); - load_status_txt displays "hello"[code]...