ActionScript 3.0 :: Have The Menu Load Different External SWFs?

Sep 28, 2009

currently, I have a XML menu. I followed the tutorial from here: http://tutorials.flashmymind.com/200...-menu-via-xml/. It needs more work and tweaking, but that's for later. The menu.swf is from an external SWF and it's loaded into my index.swf using the loader.

how can I have the menu load different external SWFs, in other words, different part of the website. Do I create another loader in the index.swf for loading the website's content? Can I use the existing XML file for the loading the SWFs?Here are the codes I have so far:

Index.swf

Code:
import flash.display.*;
import flash.net.URLRequest;
var menuldr:Loader = new Loader();

[code]....

View 8 Replies


Similar Posts:


ActionScript 3.0 :: XML Menu To Load External SWFs?

Sep 25, 2009

currently, I have a XML menu. I followed the tutorial from here: [URL]. It needs more work and tweaking, but that's for later. The menu.swf is from an external SWF and it's loaded into my index.swf using the loader.My question is how can I have the menu load different external SWFs, in other words, different part of the website. Do I create another loader in the index.swf for loading the website's content? Can I use the existing XML file for the loading the SWFs?

Here are the codes I have so far:

Index.swf
ActionScript Code:
import flash.display.*;
import flash.net.URLRequest;

[code]....

View 3 Replies

ActionScript 3.0 :: External Swfs Load - Remove The Swfs And Sound After A New Button Is Clicked

Nov 13, 2010

I am loading eight external swfs by way of eight buttons with actionscript to remove the swfs and sound after a new button is clicked. This works fine except that as soon as you get to the frame where the actionscript is all the swfs load at one time on top of each other. I don't want any to load until the button is clicked for the right one. MouseEvent listener works but only after all the swfs have loaded. How do I get the swfs to load only when the buttons are clicked. I can't figure out what I am doing wrong.

[Code]...

View 5 Replies

ActionScript 2.0 :: Load Swfs From The Menu?

Jul 24, 2008

i'm using hga77's xml menu you can view here.ok, so i'm trying to load swfs from the menu, what i've got so far is:

Code:
function executeAction()
{
loadMovie("NEWS.swf", _root.content);
trace(NEWS.swf);

[code]....

but the menu stops working. is there anything i can stick in this bit "function executeAction()" that will make the loadmovie load a different swf each time, rather than creating loads of loadmovie functions.

View 2 Replies

ActionScript 2.0 :: [FMX04] Xml Menu And Transition Between External SWFs?

Jan 21, 2006

I am am loading external SWF files into main file from XML created menu.I want to make TRANSITIONS between loaded files, but this Kiripa tutorial does not work for me since I can not give each button sepparate code. All buttons come from xml.

At the moment If I do all by tutorial all menu buttons start to load same link which and transition works, but yeah I need menu to understand that it must load new swf not that same.I know it is possible, but I do not know how it is made, so if anyone could help me I would be very happy!

Now comes code that needs to be modified :

if (_root.currMovie == undefined) {
_root.currMovie = _root.link[this.i].attributes.url;
_root.Konteiner.loadMovie(link[this.i].attributes.url, "_blank");
} else if (_root.currMovie != link[this.i].attributes.url, "_blank" ) {

[code]....

View 3 Replies

ActionScript 3.0 :: Flash Xml Menu And Loading External Swfs?

Jul 29, 2011

I found some handy script on xml flash menu, in which I've modified the code to how I would like everything to look and behave. Only, because I am new to this business of not having anything on the timeline, I do not know how to set the menu buttons as links to external swfs. I would like the buttons (menu items) to load an external swf into a holder on click. Then I would like the menu to collapse as it does when another main menu is clicked.

View 2 Replies

AS2.0 :: IDE - Get The Sub Menu Movies To Load The New Swfs Onto The Root Timeline?

Mar 2, 2009

I have created a menu that loads external swf files using this code:

[Code]....

Check out [URL] to see its operation. I am now testing a sub menu within one of these menu movie clips. When the mouse hovers over the movie clip, the sub menu movie clips appear. The sub menu movie clips have this same code (with the intention of the user being able to click on the sub menu movie clips and the new swf file kicks the current swf out of level 30 and loads the new one) however the swf file fails to load to level 30.

[Code]....

View 1 Replies

ActionScript 3.0 :: External Swfs Load In Different Places On 2nd Load

Oct 19, 2009

I'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.

This is the bare bones of it:

Code:

sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);

[Code].....

View 1 Replies

ActionScript 3.0 :: Load External Swfs Which Load Videos

Apr 11, 2009

Okay so I am trying to load external swfs which load videos dynamically.

I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error

[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]

Is there some specific method to casting within external swfs?

My code for loading the videos is this:

[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);

[Code].....

View 1 Replies

ActionScript 3.0 :: [CS4] Dynamically Loads External Swfs When Click The Menu Buttons

Dec 18, 2009

I am currently doing a project that to create a full flash website. The website contains a preloader, an introduction movie, and dynamically loads external swfs when click the menu buttons. I am struggling with the preloader part. My preloader movie does not shown until 50% and disappears at 90%. I have searched for solutions on the internet for days but could not find any. I attached my source file as well as the swf.

View 7 Replies

ActionScript 1/2 :: Load External SWFs Through XML

Feb 15, 2010

I am using this thumbnail gallery attached but instead of loading images through the xml I want to load external SWF'S. I also want to be able to control each SWF loaded in individually apparently in order to do that I need to give the container different instance names..however I don't know how to extend the code inorder to achieve this..

View 7 Replies

ActionScript 3.0 :: Cannot Get External .swfs To Load

Apr 29, 2010

Im trying to load an external .swf, from one of those lazy-do-it-for-you photo gallery creators. Well, it just simply refuses to work
 
Ive tried using AS3 code straight off adobes site and i get this:

[CODE]
var request:URLRequest = new URLRequest("4melogo.jpg");
var loader:Loader = new Loader()
loader.load(request);

[Code]....

View 12 Replies

ActionScript 2.0 :: Using XML To Load External SWFs?

Jul 6, 2010

I've got this down using ActionScript 3, but I am in over my head trying to revert back to ActionScript 2.

I have a main swf that acts as a shell and calls up external swfs via XML upon a button click.

I've read a number of tutorials over the past few hours, and have learned the basics of how to trace the XML information; however, I'm struggling getting the content to appear on stage.

View 3 Replies

ActionScript 3.0 :: External SWFs Don't Load

Aug 4, 2010

I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha...

//Import classes for easier use
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code]...

View 1 Replies

Actionscript 3.0 :: External SWFs Won't Load

Jul 16, 2009

I'm loading external swfs into my main swf and they should just be playing automatically. When I test in Flash, the system works. Upon loading the swf into an HTML page, the system seems to shut down. It seems liike the exteranl swfs aren't even loading. This is what I've got so far.

var clips:Array = ["amerishelf2.swf", "bedHardware.swf"];
var index:int = 0;
var thisLoader:Loader = new Loader();
thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);

[code]....

View 3 Replies

ActionScript 3.0 :: External SWFs Don't Load All The Way

Aug 4, 2010

I am working on a an automatic slideshow that's also clickable with buttons...I got the code to work fine on my sample file, but now that I brought it over to the actual file I need to make a slideshow out of - the external SWFs don't load all the way! The first default one loads ok - and the rest remain at about 80% Alpha... Does anyone have any idea what may be the prob lem??

//Import classes for easier use
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code].....

View 1 Replies

ActionScript 3.0 :: Load External SWFs (previous, Next)?

Mar 4, 2010

I am delving into AS3 and need a little bit of help. I am building an application that allows users to view content by clicking "next" and "previous" with a visual cue telling the user what slide they have loaded (slide 1 of 15, slide 2 of 15 etc etc) but I am really struggling with it. I want to load each slide as an external SWF because they are heavy.

I found this code online which loads swfs when you hit a "next button" but I have no idea how to get it to work to load swfs when you click a "previous button" and how to add the slide reference:

[Code]...

View 1 Replies

ActionScript 3.0 :: Load Multiple External Swfs At Once/

Jul 26, 2011

I want to load the first swf, if the load is complete, load the second swf, etc. This seems logical but I get a compile error: Scene 1, Layer 'scripts', Frame 1, Line 24 1120: Access of undefined property swfLoader3.[code]...

View 3 Replies

ActionScript 2.0 :: Load And Unload External Swfs?

Oct 2, 2007

I have a small problem,(among many others...) i am loading an external swf using:

this.onRelease = function(){
loadMovieNum ("contentLondon.swf",50)
}

So the ext SWF loads on top of my main SWF, but i have other buttons that will load other ext SWF's. What i would like to do is when an ext SWF is loaded and the user choses to click another link from the main SWF, i would like to have the already loaded one "unload" so that the new one can load in place of it

View 3 Replies

ActionScript 2.0 :: Load Order In External Swfs

Nov 13, 2008

I was wondering if there was a way to specify the order in which I load in external swfs. I have my main swf which loads in music, navigation and content, they all load at the same time, say i wanted to load in the music swf after the content has finished loading, how would i do that?

View 1 Replies

ActionScript 2.0 :: Transitions Between External SWFs - Looks Crap As The Size Of External SWFs Grow?

Sep 2, 2006

[URL]regarding this tutorial I started my site [URL] to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions.

View 1 Replies

ActionScript 2.0 :: Load External Swfs With Main Swf Preloader

Sep 3, 2009

My external swfs are taking 8-10 secs gap in loading inside main swf, that's why i want to load my external swfs with dynamic content at the same time when my main swf loads.

Code of preloader

Code on 1st frame:
onClipEvent (load) {
total = _root.getBytesTotal();
}

[Code].....

View 3 Replies

ActionScript 3.0 :: Use One Button To Load And Unload External Swfs?

Jun 24, 2011

How can I use one Button to load and unload a sequence of external swfs, Like a Next Button and Previous Button?

View 1 Replies

ActionScript 3.0 :: Using One Button To Load And Unload External Swfs ?

Jun 24, 2011

How can I use one Button to load and unload a sequence of external swfs, Like a Next Button and Previous Button?

View 5 Replies

ActionScript 3.0 :: Load External SWFs From XML And Place Into PageHolders

Aug 12, 2009

I have a problem loading in external swf's. I have one MovieClip in main.swf that is called pageHolders, and I assigned a class: Main.as. My problem is that I am trying to load external swf's from XML and place them into pageHolders, but I cant understand how.

ActionScript Code:
package {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import pageHolders;
[Code] .....

View 4 Replies

ActionScript 2.0 :: Long Gaps Before External Swfs Load?

Sep 4, 2009

I need a bit of help with an issue I am experiencing. I am trying to load external swfs on menu link clicks, inside my main movie. However, the external swfs are taking 8-10 secs gap in loading inside main swf.

The external swfs fetch data from a mysql database. My question is - Should I load the external swfs at the time of loading the main menu to override this problem? The concern here is that it might take longer for the main movie to load then.

View 6 Replies

ActionScript 3.0 :: Load / Unload External SWFs With Transitions?

Nov 3, 2009

I'm trying to load & unload external SWFs with transitions in Actionscript 3.I was able to do this in AS2 on the timeline but can't figure it out in AS3. Or if I can do it with straight Actionscript.[url]...

View 0 Replies

ActionScript 2.0 :: Load Three External SWFs And Select One To Be Visible

Feb 16, 2010

This actionscript loads three external SWF's. It also creates three buttons to select which SWF is visible. How can I: The actionscript sets the alpha to - for the swf's that are not active, so they are invisible. Instead of making them invisible..how can I remove them completely without having to load them again when their designated button is selected? The problem is that they are stacking ontop of each other, even though not visibly, and greatly slowing down the movie that is visible.

Code:
var j = 0;
myarray = [];
cliparray = [];
createEmptyMovieClip("paper", -1);
_global.preloaderf = function(klip) {
[Code] .....

View 0 Replies

ActionScript 3.0 :: Load In External SWFs Slowing Project Down

Mar 13, 2011

I have created a small website using Flash CS4/AS3. Each of the pages is a seperate swf which i am loading into a container swf file when a button is clicked.

However when i test the site, it gets progressively slower every time another page is loaded in.

All my buttons are located in the external swf files and call the 'page load functions' in my container swf

Here is the code from my container swf where all the swfs are loaded into[code]...

View 2 Replies

ActionScript 2.0 :: Use LoadMovie To Load External SWFs Into 200x200 MCs?

Mar 2, 2007

I've been trying to use loadMovie to load external SWFs into 200x200 MCs arranged on the stage. What I get is a strange placement of the loaded movies, and, the loaded movies don't appear as they should. The loaded movies are really all the same: they display 4 squares that change randomly every 3 seconds.

1) The loaded movies seem to use their center point as the registration point instead of the top left corner. Why? How can this be changed?

2) The loaded SWFs ("1.swf", "2.swf", "3.swf") get transformed from 200x200 pixels to 100x100 pixels. Why?

View 3 Replies







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