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,
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..
1. I have a flash movie embedded in an html page. When the user clicks on a button in the movie it should open the new in the SAME or CURRENT window NOT in a new tab (leaving that window open).
Here's the code..getURL("imageTest.html", _self);
2. I can't get my block navigation to show the CURRENT link.I want the current link or page on the navigation bar to be a different color than the other links.
I'm able to get the font to change color but I can't get the background or "block color" to change color.
I am trying to create a link on a page that mimicks the existing flash navigation and get it to work as expected, meaning that when you click the link, the site navigation reflects the change. The problem I'm having is that I don't understand the hierarchy since I'm working from outside the navigation system itself. I can get the animation to change on rollOver and rollOut but when I click the link, the page changes from page1 to page2 but the navigation is still showing page1.
I'm trying to make a rollover activated animation ( i think it is 40 frames) and the animation will play, then stop at a predetermined location, when you roll "out" of that button the movie clip should play back to the original(start) position. but if you roll over another button, it will move to position... and react the same with each buttons.I uploaded a fla for a more comprhensive explanation, considering i've been working for the past 15 hours, my englis idn't whud id wons wus.i've tried a few different ways to imitate this, but each has made me mad and i have to have a working demo by friday, otherwise i'd take my time and try a few more methods but i still have the rest of the damn thing to put together, tons of animations.
I am trying to add several FLA videos on the same flash page and control them with different navigation buttons.So, Button 1 to play video 1, Button 2 to play video 2, etc .I have already put two navigation buttons and added two videos.However, I need to know Action Script to enable navigation button to do above.
as3 is new for me, but i would like to write a script using loader to load an external swf, and control the external swf. But I find I can't control the swf, because there are no fixed instance name. here is my script.
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]
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.
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() {
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)){
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?
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.
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.
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.
I usually wouldn't post on here as I like to find the answer myself, but after looking through Google literally all day I'm at the end of my tether, so I'm going to impose on you all and ask. This is the situation;
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.
Is it possible to load an external SWF and control is with play/pause buttons, seekbar, and volume bar?Basically it would be something like this:controller.swf - this would load the external swf file and control itmovie.swf - this is the actual content that I'd like to control
I am trying to learn how to import external swf to my projects to make them more lightweight
I have succeeded in importing an external swf to a specific movie clip in the scene (Using actions in the timeline, not an as file). However, I cannot seem to get control over the loaded swf using gotoAndPlay or gotoAndStop.[code]...
I am studying yet. so I am using Macromedia Flash 8. I've created a swf file as (main project.swf) and Loaded a external swf using loader component. the file is main_slide. Now I want send a command or data to project file, from loaded main_slide.
I want to create the following: Suppose I have 2 swfs open in an HTML doc. The first sfw has 3 buttons: red, green, blue. When I hover over these buttons, I want the words "red", "green", "blue" to appear respectively in the second swf.
I found out that I can use "local connection" to to this, but it's too advanced for me.
which controls a component instance, i want to use this code in a button on another swf file, how can i do this?, is posible to use a statement, i do not understand the concept of target path yet.
ive figured out timeline transitions, and timeline based preloaders......so now i have a problem.....i have my MAIN swf file that i load all my pages in externally ( external swf files )....when i click a button ( for example ) my "about us" button - the transition begins....i have a keyframe with the following code on frame 40 ( inside a movie clip named "pages" in my main SWF where all the buttons/transitions are ):
var Xpos:Number=0; var Ypos:Number=0; var swf:MovieClip;
I'm creating a gallery for my swf files. Now I can open the external swf files in the gallery. But a lot of my swffiles use stage.stagewidth for dimensions, so they get streched across my screen.
Is there any way i can control the size? Make a virtual stage or something and load them into there? Any workarounds cause I really dont have time to rewrite all my swf's
Can i control the animation(i.e. play/stop) of an external swf that was created in macromedia flash professional 9 or older version using actionscipt 3.
I have earlier loaded swf files created in flash CS3 and controlled their animation in the parent swf by calling the play() and stop() methods.
But when i use the same code in case the loaded content was created in flash professional 9 or earlier version, the play() and stop() methods dont work.
how to build a scrubber bar to control an external SWF. I have a template built that will load external SWF files into a content area. I already built a play/pause button into it but cannot figure out how to make it so the progress bar moves and is scrubbable. I know it has something to do with the total frames/length of the loaded SWF, the width of the progress bar and making the progress bar's tab draggable/constrained but not sure how to put it all together to make it work. I've tried a few things but none of them worked (I'd attach the code I tried, but I trashed it and reverted back to what worked last time).