ActionScript 2.0 :: Make A Button That Makes The Current Page Homepage?
Aug 10, 2005
how can make a button that makes the current page my homepage? im 99% sure there's Javascript involved and I've tried writing it my self P.S if its, I got one button to work (adding to favorites),
View 5 Replies
Similar Posts:
Aug 4, 2009
I have managed to create some buttons movie clips and understand how to link pages. The only question i have is how do you make the button/link for the current page highlight so the user can know what page they are on? Is there a way to have a current page indicator in flash as you can do with html/css?
View 2 Replies
Feb 2, 2004
Does anyone know how to make a button (code) that will set the internet page as the default homepage.
View 2 Replies
Sep 7, 2004
On this site [URL], the 'ENTER' button makes the next page view FULLSCREEN. The HTML coding they used for this was:
[Code]...
Is there anyway to do this by way of actionscripting a frame in a movieclip button.
View 1 Replies
Jul 25, 2006
I want to print the current page (web page) when user clicks on a button.
View 14 Replies
Jun 12, 2009
I currently creating a website which content some pages. example of homepage and aboutpage.I want to make it as below.
If the user clicks the 'home_mc' button i want it to disable to the content cant be loaded twice. If the user clicks 'products_mc' i want 'home_mc' to be enable again, and then disable 'products_mc'.This to prevent user to currently reading on homepage when click on the home_mc button again will cause the homepage animate in again.
but i still cant figure out how to make it. can we use some code like
if(nextPage == currentPage)
{
//disable the mouseEvent listener of the currentTarget button?
}
[Code].....
View 7 Replies
Aug 8, 2010
I have this code about navigation using movieclip buttons. I just made the currently selected button disabled when it is in the current page but I just cant figure out on how to maintain it in its hover state (It keeps on returning to its normal state).
Here's the code I've written on the first frame on the main timeline(scene1), I have 4 buttons namely mcButton1, mcButton2, mcButton3, mcButton4 and 4 labeled frames, page1, page2, page3 and page4.:
var page:String;
var btnArray:Array = [mcButton1, mcButton2, mcButton3, mcButton4];var pageArray:Array = ["page1", "page2", "page3", "page4"];
[Code].....
View 3 Replies
Nov 22, 2009
So I know Flashvars uses a lot different methods in AS3 because of the loader classes and all that. How do I disable the button and make it only display the second frame to the button corresponding to the page that the user is currently on?I've called a variable in the HTML document using query string (or I could use Flashvars just as easy if that makes it easier) called "currentPage" and on each page in the HTML give it a page name.I know how to grab the variable from the HTML into a text field in the SWF (see this tutorial) but I'm having trouble manipulating my menu buttons.
View 0 Replies
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
Aug 17, 2009
I want to make a button that makes you got to a random frame within a certain range (eg frame 41-50) when you press it. I have tried various codes but so far no luck. Im using AS 2
and the button is within a couple of movie clips, but you can still click it when you test
View 1 Replies
May 15, 2009
I'm creating my first website. I've managed to create a homepage. On the homepage is a enter site button, which once it is pressed starts thetimeline... I have an actions/labels layer which I am writing my code in. On frame number 'one' is my code below.
stop ();
enter_site_btn.addEventListener (MouseEvent.CLICK, buttonClicked)
function buttonClicked (event:MouseEvent): void
[code].....
View 5 Replies
Aug 5, 2011
I have a slideshow where you can click a button and it will bring you to a specific frame with an image on it. How can I code it so that the clicked button that represents the 'current' slide changes color until another button is clicked? When the other button is clicked, it will take on the 'current' color I bet this has been asked before, but I've only found responses for AS2.
View 3 Replies
Oct 25, 2010
How to make a cool homepage content slideshow like this one[url]...
View 2 Replies
Oct 19, 2010
I'm working on a pretty basic interactive children's book. I have it set up so that each page has audio relating to that specific page. Going forward, there is no issue with sound overlapping from the current and next pages. Going backward, however, there is an issue with sound playing on both the current and previous pages. How do I stop this?
Here is the script I'm using-
ActionScript Code:
stop();
import flash.events.MouseEvent;
[Code].....
View 3 Replies
Apr 8, 2011
i just started with actionscript and flash in general a few days ago.. so im sorry if i might ask dumb questions the last 2 days i was looking for answers on the interwebs, but im just not ready yet to read and understand tasks properly, so this is my first forumthreat ever my project: i want to make a homepage (mainly for learning) with a menu (loaded swf).that menu is a panorama with buttons on it, so the menu loops to left or right according to the mouseX position.i succeeded to have that menu work, the buttons work (until now) as well, but the code that should clone the loaded content doesnt!i took those code snippets from riacodes here is my code:
Code:
import flash.events.MouseEvent;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
[code]....
View 6 Replies
Feb 20, 2009
I have 2 buttons in flash.. and i need one that allow me to set as homepage for that webpage when i click. and another one allow me to bookmake that webpage when i click.
View 0 Replies
Jul 8, 2011
How does one program in AS2/AS3 a "set as homepage" button?
View 1 Replies
Jan 8, 2009
I bought one of those templates, and i was able to get around most of the stuff. But one last thing that I have issue with is that there is an AS2 script for a button, where you can change the page that you want to be updated. But every time that I click that button, it opens the new page. but then if I use the same button in the new page, and click on it, another page will open and that current page will get closed.
[Code]...
View 1 Replies
Sep 5, 2004
want to load a html page in a iframe when i click a flash button.
My code for the iframe:
[Code]....
Shouldn't that be alright? I've tried with _IFRAME too, but didn't work out. Instead of opening in the iframe, it opens in a new window. My flash button is on the main page, not in a iframe and the iframe is on the mainpage too.
View 2 Replies
Sep 5, 2004
want to load a html page in a iframe when i click a flash button.
My code for the iframe:
[Code]....
Shouldn't that be alright? I've tried with _IFRAME too, but didn't work out. Instead of opening in the iframe, it opens in a new window. My flash button is on the main page, not in a iframe and the iframe is on the mainpage too.
View 3 Replies
Apr 10, 2011
I have a SWF thats over 1000 pixels in height which is embedded in a HTML page, so some people will have to scroll down, and i want to put a 'Go to top' button in the bottom of the SWF which once clicked on makes the browser go to the top of the page.
For AS2 've seen ActionScript Code:
getURL("javascript:window.scroll(newXPos,newYPos)" )
But not sure how to convert that to AS3?
View 1 Replies
May 31, 2002
How do i use actionscript to make my button goto another page on my website?
View 4 Replies
Apr 20, 2009
how to make a button anchor to another page in the flash document? I made the pages with a basic flash tutorial, so I have other working buttons, but now I need to add other buttons and cannot seem to make them work. Here is my as:
sections.gotoAndStop("levenson");levenson_btn.onRelease = function() { sections.gotoAndStop("levenson"); sections.levenson.gotoAndPlay(2)}
View 9 Replies
Sep 9, 2009
I want to make a simple next and back button for an instruction page so far this is what I have
[Code]...
actually i prefer to do it using labels but i was expected to do it effectively,lesser code,lesser size,etc
View 1 Replies
Jun 15, 2003
I want to know how to make a Collision witch makes you go back a little.
See say when a car hits another one i want to know how to make it go back away from it any one got ideas.
View 5 Replies
Jul 28, 2010
I need to get the value from the current page url, (the value is sent by javascript)?
View 4 Replies
Mar 14, 2007
I am trying to make a class that makes a tiled background but i cant make it to work. Here is the code:
[Code]...
View 7 Replies
May 23, 2010
I need to sitelock a swf to All of the sitelock solutions I've found only lock the domain that the swf loads from, which means a user can still copy the source code of the page and load the page locally and alter the swf params (since the swf still loads from the same url
View 1 Replies
Sep 15, 2009
How do I determine the URL of the current page from within Flex?
View 7 Replies
May 16, 2010
there is no tags on flex paper. so make tag on flex paper.
How do i get the page number in flex paper. I want to add some events when page is changed.And i also want some events on particular some pages. so i need that current page number which is viewing by the user in flex paper.
View 2 Replies