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.
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:
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?
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.
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:
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?
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.
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?
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
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.
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.
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]
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?
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]
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.
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?
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]...
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.
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?
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.
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.
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