ActionScript 3.0 :: Linking SWFs Together Without Loading On Top Of Another?

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


Similar Posts:


ActionScript 3.0 :: Linking Swfs Or Exe Files?

Jun 17, 2011

I needed to break it in smaller pieces because it is a large file (over 300 mb) and every time I wanted to publish the entire project flash crashed.
 
Here is my test: I have two exe files that should link back and forth. Intro_YIM.exe, which has a button that links to Videos_FrontPage_YIM.exe Here is my code, which is in Intro (button name= nav_4).
 
[code]...

Problem: The link seems to work, but there is a message that says save or run. When I click run, there is another message that says the file can't be open.
 
Questions:

1. Is there a better way to handle links using executable files using Flash CS5 and AS3?

2. If swfs were used, how can I have a main page displaying all other swfs as they are linked?

View 5 Replies

ActionScript 3.0 :: Deep Linking - External Swfs And Swfaddress

Aug 23, 2011

I'm implementing swfaddress in my project, which starts with a main swf with various menus. When a menu item is clicked, it signals a url change, and the url change loads a corresponding external swf. All works swimmingly here. But... what if I wanted to have another menu from within the loaded external swf, and have that have its own loaded external swfs, url change etc, as well? For example, on my home page, there is a menu item called "news".

Once "news" is clicked, the url changes and loads a "news.swf" into a holder on the main swf. Now, in the "news.swf" there is yet another menu, this one with two buttons: one button says "Article 1" and the other "Article 2" and each would signal a URL change and load "article1.swf" and "article2.swf" respectively when clicked. Is there a way to get the menus on the external swf to communicate with the swfaddress that is happening from within the main swf so that every swf has it's own url address and different events triggered by that change? so the url for article 1 would look something like [URL]

View 11 Replies

ActionScript 2.0 :: CS3 Buttons In Loaded Swfs Loading Other External Swfs Into The Main Timeline?

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

ActionScript 3.0 :: Linking External SWFs To The Main Flash File Error 1120

May 16, 2011

I have made a menu bar and linked each separate swf file to the corresponding button. Upon testing my main movie, all the text on the main page is disappearing, the new swf file is not loading and the message 1120 error appears for all my buttons. I have checked the instance names and they match along with publish settings and folder settings. I cant understand why its not working

[Code].....

View 2 Replies

ActionScript 2.0 :: Loading Other Swfs From Loaded Swfs?

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

IDE :: Linking To A Certain Frame When Loading A Swf?

Mar 4, 2009

I have a main movie in which all my buttons are, this movie loads the other swfs in a contentHolder movie clip.Now the problem is that I need to link to a certain frame in the loaded swf.

button_btn.onPress = function() {
contentHolder.loadMovie("investment.swf");
};

Now in the investment.swf I want it to go straight to frame 5. I have done lots of looking online, but cant seem to find the answer. I think I need to use variables but am not sure

View 1 Replies

Flash 9 :: Linking To A SWF File, But It Isn't Loading The FLV?

Sep 25, 2008

basically I want to embed a SWF file on one site, and then I want to be able to send that code to people so they can easily embed the file on their site,however, when I tried this on a separate site, the embedded FLV didn't play

Code:
<script type="text/javascript" src="http://www.urlhere.com/videos/swfobject.js"></script>
<div id="shares">

[code].....

View 1 Replies

Linking SWF Files Without Loading In File

Jun 26, 2009

Files: Attached is a link to a file I made named "index". [URL] I would have liked to have included the following files but was limited due to "you-send-it" not uploading folders. Files not included: [but functioning and vital to the site as well as the question]

- xml list
- images [folder]
- thumbnails [folder]

Project scope: Website is an online-art gallery. I was able to get a functioning xml rolling thumbnail bar as well as have it load images. [Due to certain circumstances I was forced to put the project on hold until now.] It consist of 17 buttons, on the index [home] page, which are to call upon an xml file to load the appropriate scrolling thumbnail bar and the images which it loads upon clicking.

Problem
When you open up the index file, go to the actions layer. You will see the script needed to load in the xml scrolling thumbnails as well as the associated images. The actionscript is fine and works in as much as when I save out an swf file the thumbnails dynamically load in and when I click on them the associated image loads to stage as well. [again if you download the index file you will not see this as not all the files were able to be uploaded due to "you-send-it" as mentioned.]

[Code]....

View 8 Replies

ActionScript 3.0 :: Loading/linking To An External URL Within A Movie Clip?

Sep 15, 2009

I am wondering how/if I can link to an external URL within a movie clip. It is easy to create a link that functions within my site, but I am having trouble linking to an independent site.

View 2 Replies

ActionScript 3.0 :: Loading Multiple .swfs Into Multiple .swfs?

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

ActionScript 3.0 :: SWFs Not Loading After First Try

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

ActionScript 3.0 :: Loading SWFs From Another SWF?

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

ActionScript 3.0 :: SWFs Loading On Top Of Each Other?

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

ActionScript 2.0 :: Loading Swfs That Contain PHP?

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

ActionScript 3.0 :: Loading Sub SWFs Behind The Scenes Into MC

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

Navigation With Keys And Loading SWFs?

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

Professional :: Swfs Are Not Loading From Server?

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

AS3 :: Flash - Loading SWFs In A For Loop?

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

ActionScript 3.0 :: Loading External Swfs Into Mc?

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

ActionScript 3.0 :: Loading 6 SWFs On 6 Frames?

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

Actionscript 2.0 :: Loading Multiple Swfs?

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

ActionScript 2.0 :: Possible To Loading External SWFs?

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

ActionScript 2.0 :: Loading .swfs Randomly?

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

ActionScript 3.0 :: Loading Different SWFs In The Same Container?

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

ActionScript 3.0 :: Loading External Swfs?

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

ActionScript 3.0 :: Loading And Unloading SWFs?

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

IDE :: Loading Swfs Into Another From Home Menu?

Feb 2, 2010

I have several swfs that now need to be brought together from one navigation menu/home screen that I need to create. This was easily done in as2 (replacing one swf with another when loading). Is this at all possible with as3? and if so what's the best approach?further info:the navigation screen will be an arial shot of a cartoon village, when you click on a house it should open up the swf activities than i've already created.

View 2 Replies

ActionScript 3.0 :: Loading Swfs From Different Folders?

May 20, 2010

I got a webpage with a main swf.

That main swf is trying to load language files xml files and other swfs in other folders...

I got the error code that the source path can not be found... I have checked this and it is the correct source path because if I run the single swf that doesnt work from its specific folder than it is all fine. but the swf and its connected xml files doesnt work from another folder.

However if I move all the files to one folder and change the source paths then it works... I can not divide the languages into different folders and then load these files from the main swf...

How can I load different swfs with connected xmls from different folders without source paths problems?

View 7 Replies

ActionScript 2.0 :: Loading Swfs From Inside Two Different Mcs

May 20, 2004

I felt this was game for the actionscript forum as well. The site: [URL] Ok, I thought this site was done, but turns out that some people are having troubles viewing the images (nothing happens when you click on the thumbnails). At first I thought it was compatibility issues, but then I noticed it happened on my computer too! This is very strange because it works sometimes, and other times it doesn't.

I having a feeling that it has something to do with the code loading swf's from inside of two different movie clips. The code was originally made for the main timeline, but because of the style of navigation I ended up splitting it in two - and now the same code lies in two different mcs. *still with me? Each MC holds 30 thumbnails that call on the swfs. Check out the site link above to see how it works... or doesn't work. Keep refreshing and trying to load the images again if you want to see how it messes up (it just doesn't do anything)Here's the code that is in the two mcs:

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved