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


Similar Posts:


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

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

ActionScript 2.0 :: Synchronize Movies Depending On User Choice?

May 1, 2011

I have a flash project where I have two movies that are supposed to synchronize, depending on user choices. Most of the time they do, randomly they do not. So I thought perhaps there is something wrong with the code I am using.

Code:
on (press){
this.movie1.gotoAndPlay(random(this.movie1._totalframes));
if(this.movierandom.enabled == false){
this.movie2.gotoAndPlay(this.movie1._currentframe);
}}

What's supposed to happen is, when the button is pressed, movie1 goes to a random frame and plays. If movierandom is not enabled, movie2 is supposed to go to the same frame as movie1 and play. Movie1 and movie2 have the same number of frames. Occasionally, movie2 goes to a different frame.

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

Certain Pages To Be Loaded Depending On Random Generated Number

Mar 2, 2010

I'm working on a game that needs certain pages to be loaded depending on a random generated number.Here's what I've done to make each room load up.[code]I know I'm meant to put the relevant page inside removeChild"(this)" but the 'mapButton' applies to all pages and there is in total, 36 of them.

View 2 Replies

ActionScript 2.0 :: Have A LoadMovie Command That Loads The Swf Depending On The Label Name?

Jun 23, 2009

My question is in bold and underlined in the AS below. How can I have a loadMovie command that loads the swf depending on the label name?

AS:

Code:
var menuArray:Array = [{mc:p1, name:"Hardin & Luckett (Marana)", label:"HardinLuckett" },
{mc:p2, name:"Dove Valley", label:"DoveValley" },
{mc:p3, name:"RESUME", label:"resume" },

[code]....

View 0 Replies

ActionScript 3.0 :: Randomize Multiple Choice Buttons

Oct 26, 2009

I want to randomly scramble 4 multiple choice buttons (assigning each of them to one of four different positions). I'm trying to (a) randomly extract an element from an array, (b) delete that element from the array, and (c) go through the same process 3 more times till I have 4 random numbers assigned to 4 separate variables. I should be able to assign the buttons to different positions after that. 

Here's the first round of what could loosely be called code:

var firstElement:Number = 0;var distList:Array = ["0", "1", "2", "3"];var distNum0:Number = 0;var distNum1:Number = 0;var distNum2:Number = 0;var distNum3:Number = 0;

[Code].....

View 9 Replies

ActionScript 2.0 :: Simple Multi Choice MC Buttons?

Jul 7, 2011

This is part of a large quiz I am building. The three choices here are part of a group of three from which you should only choose one. If so the other two are enabled=false.I can't change the method only modify since it is part of a much larger app that is runnung fine. So no radio buttons or codeing on maintimeline.

If you run the attached simple FLA and select the first choice you can see the enabled=false that is on the voted and pass framesworks fine, however if you choose the second the first is only disabled and the third is enabled and as logic would have it if you choose the third the first and second are enabled.The idea is to make it so the user can only choose one the other two are disabled while still having the choice to deselect.

View 0 Replies

ActionScript 2.0 :: [FMX04] Image Gallery - Resize Depending On What It Loads Using XML

Dec 7, 2005

I am using the fla's that were posted on [URL] regarding the image gallery where the box scales and resizes depending on what it loads(using XML) within it. The boxe's top left stays static which is the goal and the rest resizes according to what loads. Now inside the actionscript it has spacing of 10 which puts space around the bottom and right sides of the image that is loaded but does not put spacing on the left and top. I m trying to get the space so it is on the top and left also, basically so the image loaded is centered within the border. To clarify more simply I just want a even border around the images that it loads. Here is a link to the files being used: [URL] Also for some reason when I tried testing to download the .fla myself from the above link it loaded a page with a whole lot of characters.

View 14 Replies

ActionScript 2.0 :: Simple Multi-Choice MovieClip Buttons

Feb 6, 2011

This is part of a large quiz I am building. The three choices here are part of a group of three from which you should only choose one. If so the other two are enabled=false. I can't change the method only modify since it is part of a much larger app that is runnung fine. So no radio buttons or codeing on maintimeline. If you run the attached simple FLA and select the first choice you can see the enabled=false that is on the voted and pass framesworks fine, however if you choose the second the first is only disabled and the third is enabled and as logic would have it if you choose the third the first and second are enabled. The idea is to make it so the user can only choose one the other two are disabled while still having the choice to deselect.

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 3.0 :: Different Outcome Depending On Which Frame The Mouse Is Clicked?

Mar 1, 2011

I am currently developing a game in a school project using Flash CS4 and Actionscript 3.0.  I have searched the web for assistance, but have come up empty.  Here is what I am wanting to do...
 
I have a 3 by 3 grid on screen.  Each block in the grid contains a movie clip with four targets which cycle through at 24 fps.  Each target with have a different outcome depending on which frame the mouse is clicked.I do not want the animation to stop after the frame is clicked, however.  There are several different types of targets in the game.  Some add points, some subtract points, one target has the avility to freeze the animations for a set period, and another one is basically an instant game over.  Being as how I could not find any aid via the web prior to this post, I am not even positive that this is possible to code in AS3.0.Does anyone know if this is possible, and if so, how would I go about coding it?

View 2 Replies

ActionScript 1/2 :: Survey With Several Multipule Choice Questions Using Radio Buttons?

Nov 10, 2009

I have created a survey with several multipule choice questions using radio buttons. I want the last page of the survey to display results to the user kind of like a Cosmo quiz.like "50% A." "25% B." "25% C." "0% D." I can't find any info on how to do this with Actionscript.

View 1 Replies

ActionScript 2.0 :: Loading Swfs Depending On Screen Resolution

Dec 19, 2006

I had done a swf content for some major resolution ..flash800.swf,flash1200.swf,flash1600.swf. I load a swf at first which detects the x resolution of a screen and then loads appropriate content. the problem is that tke decision-making swf loads that flash movie into itself , so I have to do the checking resolution swf the maximum width and height the same as in the biggest (flash1600.swf) movie loaded into it....that makes all my work meaningless.

View 4 Replies

ActionScript 3.0 :: Call A Function And Run It With Specific Properties Depending On Which Button Is Clicked?

Nov 25, 2008

How would I do this in AS3? I want to call a function and run it with specific properties depending on which button is clicked.So how do the "_this" statement work in as3? in as2 I would write something like this and "this" would stand for the instance name:

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

ActionScript 2.0 :: Buttons To Stay Orange Once Clicked And Only Roll Out Back To Grey When The User Has Clicked On Another Button In The List

Feb 7, 2007

I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?

View 2 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 2.0 :: Buttons That Stay Clicked Until Another Is Clicked?

Feb 8, 2011

I haven't been able to find a solution that fits my project. I am working on a 50 state map, where I need each state to stay down once clicked, but go up when any other state is clicked. [code]...

View 9 Replies

Javascript :: Html - Provide Different Swfs Depending On Users Flash Player Version?

Dec 21, 2010

So I have swf9.swf swf10.0.swf and swf10.1 for fp 9.0, 10, 10.1. How to write such JS that would push difrent swfs to user? (I would like to keep using my default flex builder html swfobject.js script if possible - how to using it create code in main html file. )

View 1 Replies

ActionScript 2.0 :: Moved Mouse / Clicked Other Button / Pages Do Not Load As Expected

Nov 14, 2010

The page transition work fine after Respected tacos " changed the code but while transition between the pages if I quickly move the mouse and clicked the other button the pages do not load as expected.I tested several times and with lower frame rates this problem can be watched.

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

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 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 2.0 :: Create A Preloader That Loads Multiple SWFs

Apr 21, 2010

I need to create a preloader that loads multiple swfs that will be used in my project.

Attached is my file, which is the main swf of my project. All external swfs will be played in this:

[URL]

The files I need preloaded are:

intro.swf (2.92 MB)
pp_01_candidate.swf (0.75 MB)
pp_02_options.swf (8.49 MB)
pp_03_insurance.swf (1.21 MB)
pp_04_quiz.swf (0.11 MB)

View 9 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 2.0 :: XML Gallery At The Moment Which Loads In Thumbnails And Displays The Larger Images When Clicked

Sep 8, 2008

I have a xml gallery at the moment which loads in thumbnails and displays the larger images when clicked. What I am having trouble with is that some of the thumbnails have their own multiple images (more than 1 image for that thumbnail). I want to have a numbered menu 1,2,3,4 and when I click on the thumbnail depending how many sub photos there are for that one thumbnail I want to display an that image. And just to be dificult I also am displaying the larger images in another swf on the same page using local connection.

View 1 Replies







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