ActionScript 3.0 :: Creating A Site That Loads External .swfs As Pages?

Jan 28, 2009

I'm creating a site that loads external .swfs as pages. I have little understanding of how Loaders and instance names work with AS3 (even after reading the documentation), so I'm having some difficulties.

I'm loading the .swfs in a movie clip named "container." I want to replace the contents of "container" with the web page .swf that the user chooses, but I don't know how to write the condition to:
a) check to see if something is already inside "container"b) remove the contents by instance name or method of MovieClip. I'd prefer to remove whatever is inside of "container" rather than switching cases for different instances.

[Code]...

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Loads Choice Of 7 Different Web Pages / SWFs Depending On Buttons Clicked

Jul 9, 2009

I've got an SWF that'll be viewed via a webpage, that loads a choice of 7 different web pages/SWFs depending on buttons clicked.The problem is these files are quite big and take a good few seconds to load each, so for each SWF, I created a progress bar on frame 1, that then loads frame 2 (where all the code and content is) once it's ready. The code I used is as follows:[code]The problem is as you can see from is that it takes ages to load the loader! So I end up with a blankurl... screen then the loading bar, then the content. Making the loading screen pretty useless!

View 2 Replies

ActionScript 3.0 :: Implement Swf Address With Website That Uses External Swfs As The 'pages'?

Jul 18, 2011

I'm trying to implement swf address with my website that uses external swfs as the 'pages'.

[URL]

But I haven't been able to find an example file with example code that I can ferret out how to apply this to my website. I've also checked the swfaddress and while there is a link to this:[URL].Also... is it unwise to retroactively work in swfaddress to an already compiled as or should i be starting fresh, knowing that I am going to give unique urls to various buttons, that when clicked, bring up a certain 'page' or external swf?

View 8 Replies

Flash 10 :: Swf On Localhost And It Loads Another Swf From An External Site

Dec 16, 2010

I am running an swf on my localhost and it loads another swf from an external site. It gives me the following error:Connection to [external site] halted - not permitted from [localhost]localfile.swf.I have included the localhost directory in my Global Security Settings, as well as the local file. swf, so it should be trusted and allow the external link.

View 0 Replies

ActionScript 2.0 :: Loads External Swfs By Clicking A Button?

Jul 15, 2008

I've just recently started learning actionscript with most of knowledge coming from this site and others like it. My website loads external swfs by clicking a button. In these swfs is dynamic text and a slideshow. It load the text and images from an xml file. As you click around the website the slideshow stops working properly. I'm not really sure why this happening.

[Code]...

View 3 Replies

ActionScript 3.0 :: Load External Swfs As Pages Onto The Main Stage On The Click Of A Button

Jul 20, 2011

I have created a website which loads external swfs as pages onto the main stage on the click of a button. I am using Flash CS3 and Actionscript 3.0. Here is my code:

[Code]...

View 6 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 3.0 :: Site With External Swfs As Subsites?

Mar 16, 2009

I wanted to create a site that would load external swfs as subsites. So you've got main swf with menu and buttons which will load certain swf after click. (I provide the example in the zip folder).Loaded swf further loads a text and image for himself.My problem is that after some time clicking through different sub sites the site is starting to slow down. I'm not sure what am I doing wrong in my opinion it might be:

- wrong way of unloading swfs of the sub sites

- fact that externally loaded swfs load external data from xml and images

I provided only structure example in a .zip file (the problem is more visible with heavier swf's). In externaly loaded swf's there are couple of tweens and reflected images (created using reflect class)

View 2 Replies

ActionScript 2.0 :: Web Site Links As External SWFs?

Oct 26, 2004

I want one animation of a content area but i want the menu to run the animation and put in a certain .swf so i can have something like:when u click a button that is suposed to goto Home then it plays a MC that has Home as an external .swf loaded into it and when i click another link like Portfolio it starts that MC over but with Portfolio as an external .swf in it

View 1 Replies

ActionScript 2.0 :: HTML Page Opens Flash Site - Loads External Swf File

Jul 11, 2005

I have an HTML page with buttons. Each button needs to have a getURL to open the Flash site, but then somehow, needs to also load the appropriate swf into that Flash site... My reasoning is because I have some scripts under my site that need to be in HTML (or PHP) for search engines, that way I don't have to do the whole site in HTML.. I hate having a HTML index page, but it's the only solution I could come up with. So, when a visitor selects any of the navigation buttons, I don't want them to have to select that button again, when the Flash site loads. how to do this for Flash 7 / AS 2.0? Or if there are any posts here about it?

View 2 Replies

ActionScript 1/2 :: External Swfs Not Displaying When Site Is Uploaded?

Feb 2, 2010

I've created a flash website and have split it up into different swfs and have added pre loaders so it loads more cleanly. When I preview the site the links open up the external swfs no problem, but once the site it uploaded the swfs don't load, it appears that the main movie restarts insted of the external swfs (only the contact button works because it's part of the main movie).The 4 buttons at the bottom of the main page go to frames with the follwing or similar action script
 
designplay.loadMovie("design.swf");
 
This frame also contains the clip (designplay) which the design.swf should load into. It appears the issue is with the paths, I've spent a long time trying to fix this and just can't get it.

[URL]

View 2 Replies

ActionScript 2.0 :: Preloading Entire Flash Site With External SWFs

Jul 13, 2008

I've got a Flash site up that is almost finished, but it just needs preloaders. [URL]. I plan on using this type of preloader in the gallery section and before the root movie is launched. I'm looking for a preloader that preloads the _root movie, and all of the content it loads on it's level, which will be external SWF files. I plan on using the loader in two ways for the site:

- For the preloader that I will insert before the entire movie, I plan on loading the tattoos/merchandise/contact/news external SWFs which will makeup the content of the _root movie.
- For the preloader used in the tattoos/gallery I plan on using it to display a loading bar on top of the button thumbnail clicked, then displaying the pop-up enlarged image (which is an external SWF file) of the thumbnail on top of the entire movie once the loading is finished.

I've tried some of the preloader examples given in the tutorial section without much luck.

View 6 Replies

ActionScript 3.0 :: Load External SWFs - Parent Document Which Essentially Loads One Of The Ten Child Documents Onto The Respective Key Frame

Apr 29, 2011

I've got this interactive poem I've been working on for a class. I've basically finished each "episode" seperately. I made a parent document which essentially loads one of the ten child documents onto the respective key frame. Here's a sample of the code for the first key frame of the parent document:

stop();
import flash.net.URLRequest;
import flash.display.MovieClip;
import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME, LoadSWF2);
[Code]....

Well Two things are messed up about it, well my "ChildTimeline2" variable will off and on assosciate itslef not with the main time line of a child document, but of a nested symbol inside said child document. Even worse, the "gotoAndStop();" command I will give sometimes applies to Parent document... yaay! but often it will apply to the child document. The end result being this horrible looping moment where you are stuck in one child document for all time.

I wish I could attach the documents but they exceed the 300KB. how I can get Actionscript to listen fro the last frame of the maintimeline of the child document, or tell flash to gotoandStop for the parent document

View 4 Replies

ActionScript 2.0 :: Creating Movie With 3 External SWFs

Oct 29, 2004

I am trying, and have started to create a movie with 3 external swfs, and one nice chunky one to start. I am combining some aftereffects video stuff, so the files are kind of large. What I am doing so far, is setting up a simple preloader (one that I got from here) and then on frame three, embedding the first segment of my movie. Once that first segment plays, and gets to frame 220 or so, I then have a container placed with the loadmovie command, to load the next swf. And then so on, and so on.

It works fine, however, there is a pause when the _root gets to the next frame container to load the movie. The reason being I am sure, is that the movie isn't loading while the initial _root movie segment is playing. Is there a command I can use maybe on frame 3 of the _root, right after the preloader, to trigger the download of the next movies? I would like the preloader to still only load what is on the initial _root timeline, but as i said, have the other swfs loading while that first part is playing....

View 1 Replies

ActionScript 1/2 :: External Image / Once The Site Loads If Go To The "Contact Us" Page The Content Doesn't Load Correctly

Jun 11, 2010

[URL] Above is a link to view the project I'm working on. Once the site loads if you go to the "Contact Us" page the content doesn't load correctly. I'm using an extrnal .xml and .css files for the content. I'm also embedding the fonts dynamicly. If I test the file locally on my computer is works fine the image loads as it's supposed to and content looks correct. However when I post the files to the server (which work exactly the same way) I get the white box when you can see from the link above. I'm at a complete loss as to how to to fix this.

View 3 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

IDE :: Annoying Blink Between Html Pages As Swf Loads

Sep 16, 2008

So I'm making a Flash site that needs to have different swfs on a bunch of different html pages for easy linking purposes. The problem: Even though the swfs are small, as you navigate between pages there is what looks like a white flash just before the swf shows up. I know this is the background of the html page as the swf is loading. Is there any way to load the page in a certain way to avoid this? Would a preloader help? Here's an example of the site:

View 3 Replies

ActionScript 2.0 :: Loads An External Swf That Loads 2 External Swf Files

Nov 21, 2005

the best way to do it but i have a preloader the loads an external swf that loads 2 external swf files. one on layer o and the other 1.it seems to load the swf on layer 1 twice.url...if i run the swf that loads the 2 external swf files by it's self and the same problem happens.mouse over the navagation button and then mouse over the close button and follow the animation down to were it turns back into the navagation button. sometimes the close stays up.if i run the swf file that just contains the navagation it dosen't happen.

View 2 Replies

ActionScript 3.0 :: Animating Content Container As It Loads Additional Pages?

May 23, 2009

I am making a full flash site in which one container clip on the main timeline loads all the pages. I want to place a tween on this container so that once the content loads it animates as it enters. Code below.

Code:
import gs.TweenLite;
import gs.easing.*

[code].....

View 2 Replies

IDE :: Transitions Between External SWFs / Close Button For External Swfs

Aug 15, 2005

I recently created a site using the "Transitions between External SWFs" tutorial for Flash MX 2004. I use this to load the sections of my site into the main movie file. Each section is an External SWF file. When a viewer clicks on a navigation button, the specific external swf move will load and play. Currently, a viewer would need to click on another navigation option to close the current external swf file. I would like to add a close button to each of the external swfs so that a view has the option to close the window without clicking on a naviagtion link.

View 12 Replies

ActionScript 2.0 :: Using _level Script For Pages - Create 2 Buttons The First Page Automatically Loads?

Apr 5, 2007

I have attached a zip file which has a main.fla and a folder pages which contains 2 fla's p1.fla and p2.fla.The main page loads the first page which is p1 and as the main page has 2 buttons i am using _level script to know which page to load, actually i wanted to create 3 buttons. Since i have already created 2 buttons the first page automatically loads but when i click on the 2nd button it does'nt the p1 page goes but it comes back again.In the main there is a movie clip which has an instance name of page_mc and the code inside it is:

Code:

nextpage="pages/p1.swf";
loadMovieNum(nextpage,1);
b1.onRelease = function() {[code].....

View 2 Replies

Flash Web Site Animation For Pages?

Oct 11, 2009

I looked all over but I couldn't find what I would think is a pretty standard flash tutorial - so in sudden desperationI need a tutorial that teaches me a way you can make flash websites in as3 have an animation function when going to a page, as well as an animation function going to another page.

View 1 Replies

Print The Site Pages In High Resolution

May 4, 2009

I make my first flash site. I've insert images in 72 dpi. The site is ok on the web! Now, I want print the site pages in high resolution. Is possible to create the .fla file with image in 300 dpi (so I can print from original .swf files with images in high resolution) and ask to flash to reduce the images resolution in automatic only in the final publication?

View 1 Replies

AS3 :: Buttons Instead To Link To / Activate Two Other Pages In The Dreamweaver Site

Jun 22, 2009

I created a Flash CS4 document which contains 2 buttons. I used the code below to link the two buttons to well known web sites, tested them in Flash and the buttons work fine.

[Code]....

View 2 Replies

ActionScript 3.0 :: Make Several Banners For Individual Pages Of A Web Site?

Sep 17, 2009

i need to make several banners for individual pages of a web site. The banners will each contain different images that i want to have fade in the same way. Also, over the images will be the title of the page. I would like to load the images and text by xml.I was using the uiloader (loading images from a url) but could not figure out how use the xml file as source.Also, for the animation,is there anyway to apply a transition to the uiloader? Is the uiloader even the best way to load xml?

View 1 Replies

ActionScript 3.0 :: Recreate The Effect That Site Has When Transitioning Between Pages

Feb 5, 2012

First time on the site. I have been desperately looking for information on this transition, but I have only gotten so far. I was wondering how to recreate the effect that this site has when transitioning between pages. [URL] As you can see, there is a very nice fade out, then in effect. I know that u can fade in with a motion tween, but when u click the next link, the page just jumps into the next one instead of fading. How can I get that fading both in and out effect?

View 2 Replies

ActionScript 2.0 :: CoverFlow That Loads Swfs?

Jul 8, 2010

I recently puchased the CoverFlow component from here, and it was a mistake. I assumed it loaded swfs for some reason, when it does not.

similar Component that can load swfs?

View 0 Replies

IDE :: SWF Loads Twice On Page Of Multiple SWFs

Mar 6, 2009

I have a page that can be seen here: [URL]

As you should be able to see, it seems as though the Flash file on the left is causing the one on the right to reload upon final loading. The one on the right will reload itself once the one on the left finishes loading.

I have tested the flash files by themselves and both load only once when loaded by themselves. It seems as though one is causing the other to re-load which is just mind boggling to me.

View 2 Replies

ActionScript 2.0 :: Make Buttons In Flash That Link To Other Pages On The Site?

Jul 24, 2003

I Am Trying To Make Buttons In Flash That Link To Other Pages On The Site. When You Press On A Button, It Will Take You To A Page Like main.php?page=thepage. (Which Also Has Flash)I Am Trying To Use The Variable page (from The Url) In The Flash On The New Page. How Do I Get It From The Url, Into The Flash?I Have Looked All Over But Cannot Find A Solution That Works.

View 3 Replies

IDE :: Scale-able Site Pages / Change Size W/ Browser Window?

Apr 13, 2005

I'm a bit of a newbie, wondering how this scaling effect is possible. See www.sagmeister.com - when you scale your browser window, the entire site interactively shrinks or enlarges to fit. How is this done with Flash MX? Is it a publishing option or an actionscript or what?

View 8 Replies







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