ActionScript 1/2 :: Add The OnLoadInit Function To Go To Frame 5 After Loading All The Swfs?
Apr 26, 2010
my_btn1.onRelease = function() {
_root.one_mc.one_one_mc2.loadMovie(www.web1/abc2.swf);
_root.two_mc.two_mc2.loadMovie(www.web1/abc3.swf);
[Code].....
How do I add the onLoadInit function to go to frame 5 after loading all the swfs?
View 2 Replies
Similar Posts:
Apr 28, 2010
This code is not functioning! How do I amend this code to go to frame 5 when all the SWFs are loaded?
[Code]...
View 2 Replies
May 20, 2007
How do I get the for-loop's i variable to be available inside the onLoadInit function????
Code:
for (var i = 0; i<nTotalPics; i++) {
main.createEmptyMovieClip("container"+i,i);
var container:MovieClip = main["container"+i];[code]....
This has been bugging me for about 2 months now. Maybe I'm looking at it the wrong way, but I need to create more things in the onLoadInit function using a for-loop.
View 5 Replies
Sep 9, 2009
I have this movie with 5 button (movie clips) that load 5 swf files/ I cannot get them to load. I can only load one movie. I am getting this error. TypeError: Error #1006: value is not a function.
[Code]....
View 3 Replies
Sep 11, 2009
I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf
View 3 Replies
Jun 24, 2009
An external swf file (swfEx), which contains a button, is loaded into another swf file(swfLd). When clicking the button contained in swfEx, it should navigate to a certain frame of the main timeline of the swfLd movie and at the same time remove swfEx from swfLd.
View 2 Replies
Aug 2, 2006
Flash - 8 : Above is an example of what I would like to do/have done. I've gotten as far as loading the "loaded.swf" into the "start.swf" but my problem is I'd love to use that little loading action I made earlier without copying and pasting into the new movie the same actions for a different link. So, how do I load "loaded2.swf" into "loaded.swf" via the link in "loaded.swf"?
View 1 Replies
Aug 13, 2010
I am loading multiple .swfs into multiple .swfs, but the .swf are never being properly unloaded. I thought they were unloading until I started monitoring my Page File Usage and seeing it increase everytime I loaded another external swf.
In using this function to load my content, what would be the proper way/function to unload the content?
[Code]...
View 2 Replies
Dec 15, 2009
I got my swfs to load on my web page. I have masked them once loaded. When I play one (click button) then jump to a different page (different frame) everything works fine. But, when I play one and then click another to play and then go to a different page, the mask seems to stay on screen (I am getting a white box in the mask area).
I want to eventually load all my swfs and mask them with their corresponding buttons and then jump to other pages (frames) on my website. I just can't seem to get rid of these boxes (masks).
Here is my code......
var Xpos: Number = 260;
var Ypos: Number = 80;
var swf: MovieClip;
var loader: Loader = new Loader ();
[Code].....
View 4 Replies
Nov 23, 2009
Using Flash 9.0 on Mac. Have externally loaded images as slideshow in swfs embedded in dreamweaver. The swfs load time after time in Firefox PC and Safari PC but only on the first try in IE7. Have not been able to test IE8 yet. [code]...
View 6 Replies
Feb 1, 2012
I have a SWF that contains 3 spaces for banners on a 'My Account' page. Initially they all showed the same banners to all customers but now we segment customers and that means each banner can have numerous variations. This has caused the SWF to be massive (over half a meg) for something we aim to have 80-100 Kb.
I believe the solution is to have the current 'main' SWF be a place-holder that decides what segment the customer is in for each banner then pull another SWF file from the server - so only the banner being displayed is the one being downloaded.I cannot find AS to download externally hosted SWFs...
View 6 Replies
Apr 9, 2009
The three buttons on the stage all load remote SWFs into the same location ... Each succesive button that is pressed is supposed to load a movie that takes the place of the one that is currently thereThe problem is, each button click merely loads it's movie underneath the existing one ... so they just keep stacking up on top of one another. I need a way for the code to check if a movie is loaded, and if so, unload that one first before it loads the current one I though an "if" statement could check to see if the "swfLoader" instance is fully loaded, and then if it is, it would know to remove child I know there must be a more efficient way to see if anything is on the stage
stop();
unit13_3br2ba.addEventListener(MouseEvent.CLICK, getUnitSWF);unit21_2bdStudy2ba.addEventListener(MouseEvent.CLICK,
[code]....
View 6 Replies
Feb 23, 2008
1) I made a german and an english swf-file, each of them containing the entire website. These two you catch from the main index-file, which is only a txt showing "german" and "english". When you click one of them, you load one of these two swfs.It takes some time, because the swfs contains a lot of heavy images which are glued to the swf. Ill get back to that loading swfs later...
2) inside each of these two swfs I made some PHPfunctions. One is a guestbook, the other is a form, where you send personal info (4 boxes, single-line) + a message in multiline to my email through PHP.When I publish the swfs individually and one at the time WITHOUT the main index (english/german) which loads the swfs it works almost fine. The input txt boxes appear on the screen, and you can type in the boxes. When I recieve this email through PHP, it up a bit. There is no space between " message" and "apartment of choice", its all one long line. Apart from that, it works...
However, when I load the swfs using the "main index file" with the german/english choice, the input boxes doesnt even SHOW on the screen. Only the txt telling you where to write what. The txt-curser shows, though, and you are aware, you should write something here, but you write using WHITE txt. When you click "send" in the GuestBook, the email looks good, the message is there, but writing the message on the website, you dont see what you write, because it white!
QUESTION:How do I load external swf-files ( not only images, but entire files, that itself is told to load other swfs) into a main, so that the PHP inside these swfs are working properly? If I am to write some script inside the indexs ASRunActiveContent, where do I write it?
View 1 Replies
Feb 13, 2009
I am loading a few thumbnails from XML.When they load in, I want them to perform a few simple functions.However, when I load them in, Only the LAST thumbnail takes the onLoadInit() function.
Code:
function AttachThumbs(xmlData)
{
xmlNode = xmlData.firstChild.childNodes;
var total:Number = xmlNode.length;
[code]....
It's as if I need to create multiple loadListener objects.. one for each thumbnail, but I dont know how to do that when declaring a variable .. ie: one cant say:
Code:
var ["loadObject"+i]:Object = new Object();
View 2 Replies
Aug 30, 2007
I'm trying to get this function to target myClip_mc and movethe frame head to another frame label.
var counter:Number = 1;
//textBeGone
invisible_btn.onRelease = function(){
counter++;
if(counter % 2 = true) {
[code].....
View 2 Replies
Dec 14, 2010
OK, I am trying to get the following functions to load and unload the video to my main timeline when I go in and out of a frame. I tried on Enter_FRAME but it is now working properly and load many instances.
What are the listeners I need to do to call the functions of oCoach when enetering a frame and fclickCV when leaving a frame?
[code]...
View 3 Replies
Oct 12, 2009
i have a pb of memory leak:i using flash.media.video to read video i have function to do frame by frame:FrameBuffer is an Array containing my video frame, lastimg is Bitmap object
[Code]...
View 1 Replies
Apr 18, 2010
I have a site that has one main file and then another five sub swfs that get loaded in when you click on various buttons. I would like to load these sub swfs behind the scenes, even before they click to open them. Is there a way to load them into some mc without adding it to the stage, but making it so that when they do click to actually load that swf in, it will already be cached? I'd prefer not to do a traditional preloader for each and every sub section. I'd rather just load in all the sub swfs, have them cached and ready to go so that when they do click on a section, it will be good to go.
View 1 Replies
Dec 2, 2009
I have been working on a project which has been giving me headaches. I want to be able to navigate through a presentation using the arrow keys - To do everything on the one timeline was going to be too complicated and messy so tried to create separate files but could not get the separate files loading -.My next problem is incorporating the two approaches - here is my code from my test files with my attempt added:
stop();
// create an array to hold the names of the frame labels
var labels:Array = new Array();
// take the name of each label in a MovieClip and put each
[code]....
I can either get the arrow key navigation to work or the previous movie to load but the left arrow key then doesn't navigate back. Although in saying this version doesn't work and I can't get it load again.
View 4 Replies
Nov 21, 2010
I have a conundrum in that I have 5 SWF files, I have various buttons in these SWF files linking to one another. Now all I want to do is have these buttons open up the relevant SWF file (and therefore completely replace the current SWF).I have been using a Loader class so far, but have just realised that this simply loads the new SWF into the original one! (Because I am dense), and everytime a button is clicked its loading the SWF on top of the original (slowing down my program quite a lot, as you can imagine!)
Is there no simple way of just linking these SWFs together without loading them on top of another? (I looked up unloadAndStop, but I can't get it to work in my SWFs! I have also read containers being mentioned, but I would rather stay clear of that as well if I can!)
View 1 Replies
Dec 11, 2010
I have a problem. We have a website www.onlinerealgames.com which hosts the game developed by our company. Recently we wanted to change the template. We are testing the new template in a subdomain of ours which is www.onlinerealgames.in . Everything is fine except that the swfs in the server are not loading. Instead they are showing Movie Not Loaded. If I directly access the swf with the URL it showing the download option window.
We are having seperate database for both sites. Both have same swfs. If we change the source from .in to .com then the swfs are loading properly (in the src property of embed tag)
View 3 Replies
Feb 1, 2010
I'm trying to load external SWFs in a for loop, and I have this problem that is really eating me: In the event handler I need to know the filename of the SWF that was loaded, but I can't obtain this.
function loadManySWFs(arrayOfFileNames:Array)
{
for(var i=0; i<arrayOfFileNames; i++)
{
[code]....
View 1 Replies
Jan 12, 2010
how can i load 3 external swfs into one movieclip at the moment i can only get it to load one or it may be loading each clip over the previous one.
View 3 Replies
Apr 27, 2011
A little while ago, I made a movie that toggles between 2 SWFs on 2 frames. You can see that here -- [URL]
Here's the code I used to make that happen:
ActionScript Code:
var swfholder:Loader=new Loader();
a_mc.addEventListener(MouseEvent.CLICK, loadLeg);
b_mc.addEventListener(MouseEvent.CLICK, loadHouse);
[Code]....
For just two SWFs, that is a TON of code. What's a technique I can use to shorten my coding process now that I have 6 SWFs to switch between?
View 2 Replies
Aug 13, 2009
how to load external swf files(9) into my master.swf file one after the other. This is the Actionscript i have written so far.....(AS2)
var myItems:Array = new Array("swf01.swf", "swf02.swf", "swf03.swf", "swf04.swf", "swf05.swf", "swf06.swf", "swf07.swf", "swf08.swf", "swf09.swf");
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();[code].......
The first swf loads alright into my master swf but i can't for the life of me work out how to load the rest after each one has finished loading. Don't know if i need a for loop or what?
View 3 Replies
Apr 27, 2006
I'm doing the tutorial for "transitions between external SWFs", but I'm having a problem because in the tutorial all of the buttons are on the main timeline, but in my site the buttons are on a different timeline. This is the actionscript that the tutorial tells me to use....
on (release) { if (_root.currMovie == undefined) { _root.currMovie = "work"; container.loadMovie("work.swf"); } else if (_root.currMovie != "work") { if (container._currentframe >= container.midframe) { _root.currMovie = "work";
[code].....
View 5 Replies
Dec 23, 2006
My site loads a .swf into a blank movie clip when the site loads.target.loadMovie("coachGameDay.swf");
When a viewer loads the site again, I want a different .swf to load. Or if I hit the refresh button on the browser, I want different .swf to load. Giving it the appearance of .swfs loading randomly.
View 6 Replies
Mar 1, 2009
i have main swf that loads external swf, here is the main FLA. the animation begins and stop at frame 71:
frame 71: there is empty movie clip with instance name container, this code in frame 1:
ActionScript Code:
var currMovie:String = "section1";
[Code].....
at this point, it loads sec1.swf, but when i click to load other swf, it will not respond.
View 3 Replies
Feb 22, 2009
iv made a flash site using as3 using the actionscript on thefirst frame, this by itself works fine.iv also used an online tutorial tocreate a dynamicslideshow/photo gallery which again works fine, but this time usingan external .as file.When i try to load the external slideshow/gallery into amovieclip in the site it dosnt work and i get this error:TypeError: Error #1009: Cannot access a property or method ofa null object reference.im pretty sure its because the code used in the main flashfile is on the timeline and the code in the external file to beloaded in is in an external as file.
the code im using to load the external flash file is:
var toload =new Loader();
toload.load(new URLRequest("newfile.swf"));
[code]....
View 2 Replies
Jul 2, 2009
I'm trying to create a site which loads external SWFs into a Moviefor its content, and the entire site is contained in a Movie Clip located on the main timeline.
I keep getting a 1009 error, so I'm assuming that AS isn't drawing the loader where I want it to be, so I'm fairly certain I'm doing something wrong..haha.
Here's a link to my Files: [URL]
View 2 Replies