ActionScript 2.0 :: Flash Website / Dynamic Page Indicator

Jun 21, 2004

I have my main movie, which contains the logo and navigation.I have a blank movieclip created with actionscript that loads the individual movie swf files.That works fine.What I want to do, and which I can't figure out is dynamically have the main navigation buttons' text indicate what page you the user is on. Right now the code is on each button instance, example:[code]so the variable aMenu holds the moveclip names of the buttons. pageHolder holds the the name of the current page that is loaded.Thats how I change the pages to be loaded. To explain, if you look at the button code, the text for each button is by default greay and when you rollover it becomes black and off and it becomes gray again. That is on the first frame. On the second frame the text is black.In the code I tried to make the black dynamically, but it didn't work, so I settled for going to the second frame and stopping.My second question(much shorter I promise).I guess its preference, but is it generally good to put the code on each instance of a button or put in in the main frame where your code lies.

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Main Navigation Buttons - Dynamic Page Indicator

Jun 21, 2004

I have a website, basic overview. I have my main movie, which contains the logo and navigation. I have a blank movieclip created with actionscript that loads the individual movie swf files. That works fine. What I want to do is dynamically have the main navigation buttons' text indicate what page you the user is on. Right now the code is on each button instance, example:

Code:
//work button Definition
on(press){
if(_root.pageHolder != "work") {
_root.pageHolder = "work";
_root.mcContainer.loadMovie(_root.pageHolder+".swf", this);
[Code] .....

Each button has the same code, just pointing to their respective pages. Here is the code in the first frame for setCurrentMarker()n function:
var aMenu = new Array(home, jschaer, work, contact);
function setCurrentMarker(){
for(i=0; i<= (_root.aMenu.length-1); i++){
if(_root.aMenu[i] == pageHolder){
[Code] .....

So the variable aMenu holds the moveclip names of the buttons. PageHolder holds the the name of the current page that is loaded. Thats how I change the pages to be loaded. To explain, if you look at the button code, the text for each button is by default greay and when you rollover it becomes black and off and it becomes gray again. That is on the first frame.

On the second frame the text is black. In the code I tried to make the black dynamically, but it didn't work, so I settled for going to the second frame and stopping. How do you get those little scroll boxes where you can put code. I guess its preference, but is it generally good to put the code on each instance of a button or put in in the main frame where your code lies. Is there any benefit either way?

View 5 Replies

ActionScript 2.0 :: SWFs + GetURL + Current Page Indicator On Nav Button?

Aug 8, 2006

I have a .swf file containing a navigation bar and also an animation. I was going to use getURL on the nav buttons so that a different html page would launch onRelease. The animation in the swf file that contains the nav buttons plays as soon as the swf is loaded and there's also a movie clip in the file which continues its animation even after the file has loaded and played. As each of the nav buttons are pressed and the correct html page loads, I don't want the entire swf file to reload and therefore play the entire animation again as it did on the home page, but instead I just want it to appear as though it's already loaded but I do want the separate movie clip in the swf file to continue to play. Is there any way to make this happen?

Also, I wondered what code I'd need to make the current page nav button appear in a different state to all the other buttons to make a "you are here" effect.

View 3 Replies

ActionScript 3.0 :: This Array / Position - Change The Page Indicator When The User Scrolls

Feb 26, 2009

I have a scroll pane component with SWFs loaded in them vertically like a PDF viewer. I need to be able to change the page indicator when the user scrolls. I have an event listener on the scroll pane listening for scroll. I have an array of the Y values of each page; looks something like this: 0,800,1600,2400,3200 etc What kind of equation would I do to determine the correct number. My scroll event looks like this:

[Code]...

View 6 Replies

Add A New Page To A Flash Template Website?

Feb 3, 2011

I've been playing with this cool template and I'm trying to figure out on how to add another page and link it. Looking at the actionscript below

for (var i = 1; i<=5; i++) {
var butNum = _root.menu["b"+i];
var butNum2 = _root.footer["b"+i];

[Code]....

View 2 Replies

IDE :: Import Website Page Into Flash?

Jul 14, 2009

This is what i am trying to do. I want to insert a webpage inside of a predefined space in flash. Kind of like an iframe in html. Here is where i want the webpage to appear:

How can i define the area where the website will appear and essentially insert an iframe?

View 3 Replies

ActionScript 2.0 :: Possible To Password A Flash Website Page?

Aug 7, 2008

Is is possible to password a flash website page so that username and password are needed for access?

Is this something that can be created within Flash app itself or is third-party software needed?

View 4 Replies

Professional :: Add A Flash Splash Page To HTML Website?

Jan 11, 2010

I think I have to add getURL() on the last frame of the timeline, but it's not working for me.I have:[URL]

View 2 Replies

Add An Html Link / Banner To A Page In My Flash Website?

Feb 21, 2010

I purchased a flash website template and am in the process of editing my main.fla file.  In order to get listed on an advertising website with a higher rating, I have to place a reciprocal link to them on my site.  However, I cannot figure out how to place an html link/banner on my site for other businesses.  If I paste the html code in a text box, all that shows up is the html code rather than the image and link it is meant to generate.

View 1 Replies

Professional :: Page Turning Effect On A Flash Website?

Nov 8, 2010

I want to make a flash website which looks like a bookwhen a link is pressed i want it to have a page turning effect

View 3 Replies

ActionScript 3.0 :: Load Html Page Or Website In Flash?

Jan 25, 2012

how to load html page or web link in flash as3.

View 3 Replies

Install Links Into A Flash Flip Page Website?

Nov 20, 2010

I am not at all that informed on how to do this I am walking in the dark on this one.

View 1 Replies

ActionScript 2.0 :: Insert A Facebook Fan Page On A Flash Website?

Oct 28, 2009

how to insert a facebook fan page on a flash web site?

View 4 Replies

ActionScript 2.0 :: Website Continuity From Page To Page?

Jul 8, 2009

I want to learn how to make web page transitions continuous.. Take Virgin free fest for example.. [URL]. when you move from one page to another it has a closing animation of the page you are on before it begins the animation to the next page.. where in the script do I tell it to play the closing animation to this page before playing the opening animation to the next page?

View 1 Replies

Html :: Flash Website Display Blank Page On Server?

Mar 14, 2011

I have a website made in flash uploaded on a server. It was working fine tomorrow and today it shows blank page, why so ?? this is the link [URL] . There's an index.html page and main.swf file

View 2 Replies

ActionScript 2.0 :: Looking For A Flash Menu Indicator Tutorial?

Jul 12, 2007

I'm looking for a tutorial that shows you how to create a menu indicator from an mc.

Basically when you click a menu button I want an mc of a box to tween with easing to that button as an indicator as to what section the user is currently viewing.

Ive seen one awhile back but cannot seem to find the tutorial on it.

View 3 Replies

Professional :: Create A Music Flash File That Will Play On Every Page Of The Website

Sep 16, 2010

How can I create a music flash file that will play on every page of the web site, I am going to have about 7 pages.

View 1 Replies

ActionScript 1/2 :: Flash Website / Linking Drop Down Menus To Main Page

Nov 17, 2010

I am making a website purely on flash (actionscript 2.0), for a school project, and I have set up one frame for each page. I also made a drop down menu, but unfortuantely I can't link them to the actual pages, since the drop down menu is a movie clip, if I use an actionscript such as:[code]it goes to the 3rd frame in the movie clip and not the main scene.

View 3 Replies

Professional :: Cant Stop Flash Page From Flashing Repeatedly (making Website)

Nov 20, 2011

Well first off here is my script so far on the page:
 
[URL]
 
Using Pastie to keep amount of text on thread low to make things easier to read.
 
Here are the errors I get everytime I try to debug or Test Movie:
 
[URL]
 
Also maybe if you can help a bit with it heres the check list that this is graded on. Also no I am not trying to make you guys do my work for me its just he gave us this project but I have been at work (17) and unable to finish it at all. Please help I dont want  a bad GPA this ending semester.[URL]

View 1 Replies

Flash :: AS3 Slideshow On Website - Home Page Won't Disappear When Changing Pages

Jul 29, 2011

I'm building a site in flash using as3. I implemented an xml slideshow on the home page but it wont disappear when changing pages. Anyone could tell me how to remove it on other pages?

[Code]...

View 2 Replies

Actionscript :: Progress Indicator Using Flash.display.Loader

Jun 13, 2009

I need to do a simple progress indicator while loading an image on background. I'm using the flash.display.Loader class in what seems to be the standard way. The problem is that even though I can see that flash.display.LoaderInfo fires the ProgressEvent.PROGRESS at regular intervals using tracing, a dynamically updated text (or any other graphics object) is updated only once when the loading finishes. It looks like if the display update queued and caused only one update at the end. This is a simplified version of the function which initiates the loading:[code]

View 2 Replies

Actionscript 3 :: Flash - PHP Multiple File Upload With Progress Indicator

May 29, 2011

I am trying to upload image files to my server using AS3 and PHP, and at the moment I am succeeding in uploading multiple files and restricting it to images only, but since I am finding it difficult to figure out how to have a loader bar show when the files are being uploaded, as well as executing a function once all files have been uploaded to go to a specified frame.

Here is my code thus far,

AS3:

import flash.net.FileReferenceList;
import flash.events.Event;
import flash.net.URLRequest;

[Code]....

1: how can I display a percentage or a uploading bar indicating the progress of the files being uploaded?

2: How can I launch a callback function after ALL files have been uploaded successfully?

3: How can I make the file browser appear on click, and not upon loading the flash file?

View 1 Replies

ActionScript 2.0 :: [Flash 8] MC - Make A 95% Black MC Cover Everything On The Website Page (full Screen OnResize)

May 16, 2007

how I can make a 95% black MC cover everything on the website page (full screen onResize) so I can present an externally loaded image by itself? I have seen this done before in a few flash portfolio websites but I can't seem to find the solution on any previous thread. I may have missed some threads. is there an actionscript that can do all of the above without having to resize an MC?

View 4 Replies

IDE :: Flash Page Dynamic Resizing

Mar 26, 2009

How the resizing effect is accomplished. I generally use an HTML container with a 800 x 600 flash page but I'm interested in producing this full screen effect so I can control the background graphic elements. [url]...

View 1 Replies

Professional :: Swf On 1 Page Of Website?

Jul 29, 2010

I have created a simple flash swf which I have added to all the pages of my website. For some reason when I load one particular page a blank screen appears. When I delete the swf the page appears.

[Code]...

View 9 Replies

ActionScript 2.0 :: Getting Values From A Dynamic PHP Page Into Flash?

Sep 1, 2008

I'm a front end designer, so I don't have much experience with coding and I'm having a lot of trouble finding a solution to this problem. What I want to do is take the value of $MyState in the php code below and get a flash file located on the same page to recognize the value..

PHP Code:
$MyState = $_GET['MyState']; 
MyState is defined dynamically through the address bar, i.e. http://www.mysite.com/mypage.php?MyState=Something

The value of MyState is constantly changing so doing a loadvars from mypage.php won't work. Is there a way to loadvars and get the value of what is in the address bar? _url also does not work. _url is seen as mysite.com/myflashfile.swf.

Or does anyone know of any other ways to get the results I'm looking for?

View 1 Replies

ActionScript 3.0 :: Website With SWF File Per Page

Feb 18, 2009

I want to have a separate swf file, with a separate load associated with it for each page of my website. I'm not quite sure how to do this. i want people to be able to go to specific pages in my flash site. For example, if they wanted to go to the home page they could go to: [URL]. If they wanted to go to the about page, they could go to: [URL]. I believe this means that I would have to have a separate swf file for each unique page, I'm not sure how to jump from one swf file to another. I've read in some other posts something about the GoToAndPlay function.

View 6 Replies

ActionScript 3.0 :: One Page Website Want Only One Swf To Play At The Time

Jun 14, 2011

I have a one page web site with 5 links to pseudo pages, so my problem is that on every part of the web site the swf files start playing. (Of course I understand that I can set the first one to play and the others to stop mode, but that doesn't solve the problem) What I try do do is this: *When the web site starts only the first pseudo page let the swf play. *When clicking a link to an other pseudo page that particular movie on the linked page starts playing. *All other swf movies don't play.

View 6 Replies

ActionScript 2.0 :: Link Website To Facebook Page?

Apr 12, 2010

just using getURL doesn't work if :1)the user doesn't have auto login for facebook turned o2)did not have facebook already opened on 1 of the pages of his browser. o:It will instead redirect user to login pg after which a search page with search results. The page i want user to see is actually way back on the list. How do i link a flash website to a facebook page

View 4 Replies

ActionScript 2.0 :: Create A Login Page For A Website?

Aug 27, 2004

I need to know how to create a login page for a website, allowing the user with a correct name and password to view a movieclip with saved inforation.

View 2 Replies







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