ActionScript 3.0 :: Secondary Navigation Using External SWF Files

Dec 20, 2010

Everything was going fine on a website project I've been working on, until yesterday. I'll try to explain the whole scenario first, and I'll put the code in here too so anyone can try to figure out what is wrong. Here's the breakdown of the site:

1) There is a MAIN SWF file that plays an intro and then stops on the last frame with the "Main" Navigation buttons.

2) Inside the Root folder where the MAIN SWF resides, there is another folder called "swfs" which contains six main external navigation pages, as well as another folder called "galleries" which contains additional external swf files for six gallery pages.

3) On one of the layers of the MAIN SWF, there is a movie clip called "mySWFLoadingClip" that the "Main" Navigation buttons load and unload the main swf pages onto. These all work perfectly. The problem start on the next step. This is the code I used for the navigation buttons on the MAIN SWF timeline:

var Xpos:Number = 0.0;
var Ypos:Number = 0.0;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/home_page_swf.swf");
[Code] .....

4) One of the external navigation SWF pages is called "portfolio_page_swf" and gets loaded into the "mySWFLoadingClip" moveclip on the MAIN SWF. This is where the problem begins. The "portfolio_page_swf" has six buttons that call out to an additional external swf from the galleries folder. Now when I open the "portfolio_page_swf" file to test out if the buttons work, they work perfect. When I click the buttons, the external swf gallery files show up like they should. But the problem is that when I open the "MAIN SWF" file to test out the site, I can click the Main Navigation buttons and they work. I click on the Portfolio button on the Main SWF time line, and it places the "portfolio_page_swf" onto the stage like it should, but when I click the buttons that are within the "portfolio_page_swf" the galleries don't show up. The buttons from the "portfolio_page_swf" page only work if I open the "portfolio_page_swf" file directly.

Here is the code that is used in the "portfolio_page_swf":
var Xpos:Number= 0.0;
var Ypos:Number = 0.0;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("galleries/gallery_print_swf.swf");
[Code] .....

How to load an External SWF onto the main time line and then load an additional external swf from within the first external swf.

View 1 Replies


Similar Posts:


Playing FLV Files On The Timeline In Secondary Scene?

Nov 2, 2009

I'm currently working on a project where I mix animation sequences with short videos. My project also has two scenes and the FLV will be placed on the main time line of the second scene. The problem I am having is, if the movie is previewed from the first scene, or exported, the FLV on scene 2 won't load. the timeline on the playhead will just spin. I'm currently using "Load external video with playback component" as the method for importing the flv file.I have already worked with this video multiple times in other flash files and have never had a problem loading the video. Is there a limitation to FLV playback in multiple scene movies?

View 5 Replies

ActionScript 2.0 :: Navigation On Multiple External Swf Files?

Jun 30, 2008

I have a file (main.fla) which loads external movieclips on it,using an empty movieclip as loader (loader_mc).Now,I want to create a navigation,with two buttons (previous / next) which will allow me to navigate through the external movieclips.So,I have created these two buttons.For the "next" button I am using this code,to load the first external swf file (example1.swf):

Code:
on (release) {
if(this._parent.loader == Number(this._parent.loader_mc)){

[code]....

View 4 Replies

ActionScript 3.0 :: Converting Navigation In Main Movie That Loads External Swf Files

Aug 19, 2009

I am diving in to learn AS3 and converting my site over to AS3. The majority of my code is for my navigation in my main movie that loads external swf files. Here is what I have and I don't know where to start to convert it. I know I need to do this in steps. So the audio is not important now or my other swf files.

[Code]...

View 10 Replies

ActionScript 2.0 :: Navigation Between Swf Files?

Jul 2, 2009

I have a home.swf and a purchase.swf. What AS2 code do I need so that when I click on a mc in the home.swf, it takes me and displays either the purchase screen or a particular mc on the purchase screen.

View 1 Replies

ActionScript 3.0 :: Navigation Within Swf Files That Use Different Version

Sep 6, 2011

I have multiple swf files that need to link up together, the problem is this, some of the files was developed a few years ago with Flash MX and actionscript 1 while some of these files was developed recently in CS 5 with actionscript 3.Is it possible to navigate within different version of actionscript files in the same flash player?I found that actionscript 1 file will not work once i have navigated to actionscript 3 file.

View 4 Replies

ActionScript 3.0 :: Navigation Between Multiple SWF Files?

Aug 20, 2009

I'm still working on this project and it got literally huge... at least huge enough to consume all of my 3 GB RAM memory and crash my Adobe Flash CS4. Anyway, I decided to put the site on several swf's but the problem is that I've never done that before so I have no idea how to navigate between them.

Basically I have a main swf file, inside it there's an image (let's say its instance name is "projects_btn") that should take me to "Projects.swf", and I want to click on an "x" sign (its instance name is "xSign_btn") inside Projects.swf that would take me back to the main swf file "Bnaider2.swf".

View 8 Replies

Flash :: Launch AIR App In Secondary Monitor?

Sep 16, 2011

Is there a mechanism by which an AIR application can manually display in whichever monitor I choose? I can look at the display list in Screen.screens, but I'm unclear on how to actually force the drawing of the app into one of those.

View 1 Replies

Actionscript 3.0 :: XML Load Via Secondary Class?

May 28, 2010

I have three Class files: Main, Sub, XMLLoad.

XMLLoad is a simple XML loader Class.
Main calls the XMLLoad.
Main also loads Sub as a navigation.

I want to access the xmlData that XMLLoad loads. How do I go about that?

Code: Select allpublic function Main()[code].........

View 11 Replies

Professional :: Preview An Animation In A Secondary Browser?

Jun 15, 2010

Does anyone know of a way to get Flash CS5 for Windows to preview an animation in a secondary browser?
 
Dreamweaver CS5 lets you specify a browser as a secondary browser -- pressing Ctrl+F12 launches it. In Flash, however, F12 and Ctrl+F12 both launch the primary browser...

View 1 Replies

ActionScript 3 :: DispatchEvent Does Not Work In Secondary Class

Jan 14, 2011

I have a SWF called Application.swf that loads another SWF called jeu.swf. My main class (don't know how to call it haha), is called Main.as. Another class is called actionObjets.as. When I call:
dispatchEvent(new MicroJeuEvent(MicroJeuEvent.JEU_TERMINE, 8, ""));
It works perfectly from Main.as, it works perfectly.

But when I call it from actionObjets, it doesn't work. No error either. I tried putting this line in a static function, doesn't work either. Why can I dispatch an Event from my main class and not from another one? I'm not a programmer and I just don't get a few of the basic principles of as3. Is there a way of doing differently?

View 1 Replies

ActionScript 3.0 :: Protect Files (make External Then Unopenable Such As .lib Files)

Jul 19, 2011

I'm working on making a pretty chunky game engine for games I plan on making, but I was wondering if you make external AS files unopenable such as .lib files, so that if I give it to a friend that wants to use it, he/she cannot change my code. Is there anyway to make external AS files unopenable? Also, obfuscation isn't an option for this problem as it only stops the people who hack the finished product, not stopping people who have access to the actual files.

View 2 Replies

Actionscript 3.0 :: Navigation With External SWFs

May 27, 2009

I am having problems with navigation.. I do not know how to load external swfs to each button item clicked.. And it removes child and put the new child on it.Code: Select all// Its for menu animation, the arrow starts stopped at home_mc but its like a refference;[code]

View 9 Replies

ActionScript 2.0 :: Navigation Control With External Swf's

Mar 25, 2004

I'm currently building a demo tour in flash, I created a main swf that has an intro and navigation. Each link on the main.swf calls a loadMovie and loads each section with external swf's in an empty movie clip. What I'd like to add is 2 buttons, which are next and back, giving the user the flexibility of going through each section, using these 2 buttons. Its just that since each section is an external swf file, I'm not sure how to script the 2 back and next buttons..

View 4 Replies

ActionScript 2.0 :: Navigation Control With External Swf's?

Mar 25, 2004

I'm currently building a demo tour in flash, I createda main swf that has an intro and navigation. Eachlink on the main.swf calls a loadMovie and loads eachsection with external swf's in an empty movie clip.What I'd like to add is 2 buttons, which are next andback, giving the user the flexibility of going througheach section, using these 2 buttons. Its just thatsince each section is an external swf file,

View 4 Replies

ActionScript 2.0 :: Can't Call Specific Label / Frame In A Secondary MC

Mar 16, 2009

I'm having a problem trying to call an specific label or frame in a secondary MC.

-There is a main time line (120 frames) with an Intro animation stop in frame 103.

-There is 2 buttons in frame 103 (b1,b2). On release this buttons play 104 and stop in the last frame of the main time line (120).

-In the frame 120 these 2 buttons fade and an MC called navmenu and an empty mc (to load external flash) appear

-MC navmenu is the main menu with 6 frames, one for each button.

I'm trying that when I click on b1, it play 104 go to the end of the main time line, and call frame 3 on navmenu MC, plus load movie on empty MC.[code]...

View 6 Replies

ActionScript 3.0 :: Unloading An External Swf From Menu Navigation?

Jun 1, 2010

i loaded an external swf in my main page to showcase a photo album but i can't seem to clear it when the user moves on from that point.

ActionScript Code:
gallery_btn.addEventListener(MouseEvent.MOUSE_DOWN, gallery_click);
function gallery_click(event:MouseEvent):void {
function startLoad() {

[code]....

View 9 Replies

ActionScript 3.0 :: Loading External Swfs With Their Own Navigation

Oct 31, 2009

I am trying to teach myself Flash and AS3 using the two Adobe Classroom in a Book Series so I am not sure if I am framing my question correctly. I have found lots of information regarding loading and unloading, but not about establishing communication between parent and child.I have a home page with four buttons that have nice Mouse Over effects. When I click on them, they load the external swfs nicely. When I click on the external swf, it also unloads just the way I want it to.[code]Inside the external swf, I have two back and forward buttons (it is a slide show type of thing), that are not accessible when I click on them because if I do, I just unload the content from myLoader. If I remove the unloadcontent function from my main home page FLA, the swf's buttons work great, but I can't remove the external swf. I have also experimented with having a close button appear on frame 2 of my home page's main timeline, and tried adding code for it to unload the swf, to no avail.It seems to me that I can't be the only one who has this problem. Lesson 9 of the Adobe Classroom in a Book definitely implies that this can be done, but doesn't have instruction on how to do it. Can anyone help me or point me in the direction of a good tutorial on communication between swfs?

View 3 Replies

Flex :: Show / Hide Datatips On A Chart With A Secondary Series

Feb 13, 2011

I have a line chart with a column chart as a secondary series. When I roll over the line, the datatips appear. However, if I move the mouse to a spot where a column appears while still on the line, the data tip item appears for the line AND the column. How do I get it so that I only show datatips for the line but not the column?

[Code]...

View 2 Replies

ActionScript 3.0 :: Flash Movie - Launching Main And Secondary SWFs?

Jul 26, 2011

I have a main flash movie, that launches an external swf. Now this works fine, but this external SWF, launches more external mini SWFs. What happens is that after going opening and closing these mini swfs, is that eventually the main swf, will start to to run beneath the the 1st external swf. i.e. I have a small animation that is suppose to stop and remain invisible until the secondary swf is closed.

But this is not the case, and very randomly this will start to happen, and it makes everything look like crap. At first I thought it was the fonts that I was using through out the swfs, because there were some design changes, but after updating the SWFs with the new embedded font I am still running into this issue.
Look at it like this.
main swf---->2nd swf--->numerous 3rd swfs

View 4 Replies

ActionScript 2.0 :: Loading Main Navigation In External SWF Through Container Movie

Dec 30, 2008

I have attached two pictures. Basically I am making a website. The main navigation loads in external swf's through a container movie. For this I have used this tutorial : [URL]. What I want to do is- when you rollover the navigation bar, be it the text or the coloured block- I want it to scroll down and reveal the 'sub navigation'. (pic2) It's like a drop down menu but kind of the other way around. Then, when you either rolloff of the navigation bar or click on a menu button, it slides back up to its original state. (Pic1). I have played around and only managed a sloppy version which doesn't work very well, especially when you resize. I think a simple answer to this is if I could get my buttons to work inside a movie clip. I had tried this but then the swfs wouldn't load properly.

View 3 Replies

ActionScript 3.0 :: Main .swf With Buttons On A Navigation Menu That Loads External .swf(s)?

Dec 18, 2011

I am using a main .swf with buttons on a navigation menu that loads external .swf(s) - these load external videos (I use them as their backgrounds).In the main .FLA I have used the following code (in the first and unique frame):

CODE

var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");[code].....


I can make each button on the menu load each external .swf correctly with videos included - but when I leave that .swf using the navigation buttons to go to another section, the video and audio keep working in the background.

View 4 Replies

ActionScript 2.0 :: External Text Files Wont Load Into External Swf File?

May 28, 2007

Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.

View 4 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

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:

[Code]....

View 1 Replies

ActionScript 3.0 :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?

View 2 Replies

ActionScript 1/2 :: External Class Files Not Updating When "Delete ASO Files" Executed?

May 3, 2009

I've got an external .as file in the same folder as my flash file. In the process of writing the code, whenever I make a change and then test the movie, the flash movie is obviously still looking at the OLD information. I tried using the "Delete ASO Files" on the menu, to no avail.I can' find these ASO files anywhere on mycomputer.Aha! I tried something else. I quit flash,restarted and ran the same script with no changes. It returned the data correctly, but then gave me this unpleasant message:256 levels of recursion were exceeded in one action list.This is probably an infinite loop.Further execution of actions has been disabled in this movie.There are no loops of any kind in the code, which is below.

//This is the Person.as file:
class Person { public var HomName:String = "unknown"; public var HomEmail:String = "unknown"; public var HomPhone:String = "unknown"; public var HomSaveFreq:Number = 0;

[code]......

View 27 Replies

IDE :: Loading External Swf That Loads Other External Files?

Apr 24, 2010

I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any security limitation or setting preventing external swfs loading other content?

View 3 Replies

ActionScript 3.0 :: Navigation System That Would Load External SWFs - Error #1034: Type Coercion Failed: Cannot Convert Flash?

Aug 13, 2009

I found a tutorial that showed how to create a navigation system that would load external SWFs. I am trying to create an image gallery in essentially the same manner but instead of loading SWFs, I want to load external bitmap images.However, when I replace the SWFs with images, I keep getting an error message:

Code:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Bitmap@3e91d2e1 to flash.display.MovieClip.at image_Loader_fla::menu_1/isLoaded()

So obviously, it is trying to convert the bitmaps to movieclips. Due to my newbiness with AS3, I'm not really sure what I need to do with my existing code to fix this issue.I've provided a sample of the gallery if anyone wouldn't mind taking a look.

P.S. In the sample I provided, you will notice that on mouse-over, an external will load. The only one that won't work is the first one (Home) as it is trying to load an external PNG.

View 3 Replies

Flash :: Make Video Primary And HTML5 Video Secondary?

Apr 4, 2011

I need to make a video page. i used a flash player and implemented the videos on the pages. now my client needs that, the same page have to work with ipads, i know that we have to use html5 video player for that.

My question is in case eventhough html5 video supportable player available that should play the flash content first. in case it will not run the flash player then it should run the html5.

View 2 Replies

Actionscript 3 :: Array Cascades Its Changed To Secondary Temp Array

Jul 19, 2011

I have an array of three values.focal[x,y,z]these values change based on user input.however when the change occurs, they are logged into a new array to test for valid changed.A simplified psuedo version of my code:[code]However, when the focal[1]++; focal[0]--; ect, ect, code takes place. It also changed the temp array.and since it changes my temp, it never resets me original code back to its previous nature.I have never seen this behavior and its kinda throwin' me off.

View 2 Replies







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