ActionScript 2.0 :: Making Button That Will Go To Another Screen?
May 14, 2010How to make a button that will go to another screen?
View 1 RepliesHow to make a button that will go to another screen?
View 1 RepliesI am making a flash presentation I have buttons on the top presentation that will navigate to differnt slides.The question i have is for each button I have the behaviors set to show the screen I want and hide all of the other screens.I have to go to each button and do a hide each screen one by one, I have about 40 of them. Is there a easy way to do that in bulk. I.E. If i have button 1 I want it to show only screen 1 and hide screens 2-40. Button 2 will show only screen 2 and hide screens 1, 3-40
View 1 RepliesIs a command for AS2 to make my movie file play fullscreen (stretch, fit to screen, anything).
goFullScreen(); is great but it leaves white bars left and right. What's odd is that I'm using Adobe Flash Media Live Encoder and it seems to display a perfect widescreen that I want as an input and output but once compiled in flash, it's more square leaving me with white bars left and right. The frame for the video in flash is also widescreen looking.
edit: I ended up stretching the width of the frame but if there is a better way through a command that would make my life easier so I don't have to adjust to every monitor that I run this on.
I've been following the book "Beggining Flash Programing for Dummies" and I have come up to a part where I create a very simple game.
The script involved in the frames are FRAME here:
stop();
btnGoThere.onRelease = function(){ _root.gotoAndStop("there");
} //end event handler
Frame there
btnGoHere.onRelease = function(){ _root.gotoAndStop("here");} // end release
When I test the movie and click the button, the frames don't seem to change.
So I have an html page that contains a link which opens another html page with a swf embedded in it. In the swf, the user has to type in some information in order to advance through the swf. The problem is that in order to type in information, the user has to click inside the swf in order to make it work. Is there a way to make the swf automatically active so that they don't have to click inside the window first? [URL]
That's the link and I hope it opens for you if you want to see it. This is the HTML that opens after you click on the link inside the main HTML.
I have a bitmap which copies the contents of a movieclip and is drawn to the size of the stage. My question is how do I resize this bitmap to full screen on resize? I'm having a fair bit of trouble getting this to work
View 5 RepliesI've built my first flash application and it's very close to being finished. I have a problem with two buttons that are on the are on the left and right of the stage. When the browser is enlarged these buttons don't remain on the edge of the browser. Not sure if I explained that very well so here is a link to the application [URL] if you make you browser wider you will see my problem.
View 2 RepliesI have just finished a flash movie for a client which is an interactive payslip to explain all the different sections. They have got back to me and said it's great but I need to make this accessible for screen readers etc, and sent me the following link: [URL]. I have read through it all and I am slightly confused as to now how to make my complete movie accessible. Can I just add in the text links on the Accessible panel for the movie clips or will I have to create a whole separate column of hidden content for people to tab through?
View 2 Replieswhere abouth can i donwload a trial version of macromedia flash 5.0 and is there any stuff on making a flash clip come out of the flash screen or window
View 1 RepliesI am using an XML Gallery on my website and I would like to make it full screen (take up the entire browser) -- instead of its current size. I have played around with the code for hours and pulled most of my hair out and STILL I have no luck on making it fullscreen... I get the positions changed but I can't manage to enlarge it to the whole browser.
Here is my code used to align the holder on the stage and the gallery components (bttnPrev and bttnNext are on the left and right of the image to control movement to other images):
Code:
alignPic = function () {
holder._x = (stageW-holder._width)/2;
holder._y = (stageH-holder._height-menu_mc._height)/2;
bg_mc.bg._x = holder._x;
[Code]....
i am making a flash website and need to know how to make the site 4 times the size of the screen and when the user gets to the edge it pans the site.
View 3 RepliesI've made a slideshow with externally loading text and images. How can I make it so after the title screen flashes off, the first thing is the first photo/caption without having to click on the next button?
View 2 RepliesI'm working on a Flash video slideshow (which you can preview here).
I would like to be able to make it so you can click a button (I've got one made in the doc already) that will make just the video on each "slide" go full screen, similar to how you can do so with other videos on sites like YouTube and others.
While what I've linked to above is just a template I'm messing with, I'd like to be able to have a video on the right, let's say, with text on the left, and then be able to click a button (perhaps under the video that says "full screen) and have the video that is there fill the whole window and play. And then, hitting escape would bring you back.
I've seen plenty of tutorials for making Flash go fullscreen, but nothing out there yet for just the FLV contained on the page go full screen.
I am making items that minimize onto the side of the screen as little icons, I have that figured out. What i am trying to accomplish is making them minimize to a dynamic spot if there is not already one there. There a bunch of posistions that they could minimize to, i would like them to choose the next highest avaliable spot. Heres some code that will make them do that:
Code:
var minspots:Array = [60, 100, 140, 180, 220, 260];
var minspotstaken:Array = [false, false, false, false, false, false];
_global.sizedown = function(target:MovieClip) {
[code]....
It almost appears as if the tween action for the "_y" is holding its first value, as it always goes back to where it went when the movie loads.
I'm making a game where little parcels appear and if they aren't dragged to the correct zone within 5 seconds, they disappear and the player loses points. The problem i'm having is that i'm generating the movieclip parcel objects as follows:
[Code]...
currentParcel is 1 of 3 (randomly selected) movieclip names (redParcel, yellowParcel and orangeParcel).
What I need to do is add some code to say "after a movieclip has been generated...if it is still here in 5 seconds time. It sounds simple but I can't figure it out for the life of me! I've tried setInterval with something like: timedProcess = setInterval(timeCheck, 5000);
but how can I pass the actual movieclip "handle" along with the function so that timeCheck knows which movieclip to delete?
I am making a Full Screen flash site and I need my BG to scale proportionately. Currently I am using:
Code:
_root.attachMovie("bg3","bg3",_root.getNextHighestDepth());
bg3._x = Stage.width/2;
bg3._y = Stage.height/2;[code]...
I have a movieClip, with other movieClips inside of it, objects that I want when hit to lose points. But when I have the movieClips inside that one, it just has a giant "boundry box". I want the points to go down when you hitting only one of those items,instead it just goes does throughout the entire thing.
There is no way for me to scroll all those objects across the screen without either making a tween on the main timeline for each object (almost 20), or somehow making a giant movieClip scroll all of them all the way across, bypassing the first boundry box, and acknowledging the movieClips.
I wnat to display a FLVPlayback full screen the same as when you click on the Full Screen component button.
function goFullScreen():void {
vidPlayer.enterFullScreenDisplayState();
}
var vidPlayer:FLVPlayback;
[code]....
I have many buttons (symbols). This is what I want it to do: -Select a button on the screen, and then a movieclip plays. - If the user selects any OTHER button on screen, a message box displays a message.
View 2 Repliesi new to actionscript and am not sure where to begin so i will explin what i would like to do. i have a myspace site that i have created a div overlay with...<a [URL] now what i would like to do is use actionscript so when you click on the menu button a image wil pop up in the ipod screen and when u click the play button something else will pop up
View 6 Repliesin my homepage [URL].. I've made "screens" that when you click on one it changes the y-coordinate of itself and the (in some cases) other screens. It's not good-looking at all, since there's no "flow" in the movement...
So, I thougt about making motion tweens for each "screen", but that would be a lot of motiontweens and a lot of frames used...
it seemed like a simple process but I cant seem to get this right... I got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)
reserve.onRelease=function(){
getURL("http://www.redeggnyc.com/menu2.htm");
}
[code].....
i have a friend who are dentist and ive agreed to do a web site for him. I do it in cs4. Like so: ive made a pretty simple and nice layout i plan to use for all pages with some images an so on .Now ive made lots of buttons wich all opens in a timeline nice and slow (not to slow). On the index page i have a menu called "treatments" wich requir some room. I want to make a button called "treatments" wich can open and collaps to 3-4 minor buttons wich then again can link to diffrent pages describing different treatments. Now i need the treatment button to open up the 3-4 minor buttons one by one smooth(tweened with the alpha slider) with same frame rate as the other ones on the page and collaps again.
View 1 RepliesI have an object on the stage (with an instance called mcBlackboard) that contains two buttons.I'm trying to make these buttons link to pages on my site but I get the following error(s):1120: Access of undefined property buttonAboutUs1120: Access of undefined property buttonFAQsMy guess is that it's not finding the buttons in the movieclip (since the script worked fine when the objects were on the stage).I may have done things in an odd way, but it's the result of days trying to figure this out mysel
Code:
function myButton(button:MovieClip,url:String) {
var buttonPath = "mcBlackboard." + button;
[code].....
i am looking to use mc's for my buttons instead of buttons. what is the as i need to give a mc to geturl [URL] and a diff one to load another mc is it..
View 8 RepliesI got a button there, but the URL wont go, ie, the click does nothing.I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot.
Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." I did select the transparent box, no color, and tried alpha, both same result)
I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I dont have any effects here btw, as simple as we can get.After that I right clicked on the buttonand entered the action script ("reserve" is the name of my button symbol)
[Code]...
which gave no errors on validation.When I preview in Flash, everything looks good except the thin black border and the fact that when the button is pressed, nothing happens.
I have made a button to function like a switch in that it has both an on and off state. However, I can only get it to switch between the on and off state once when it's pressed, with nothing happening after it has been turned off.The code is as follows:
Code:
switch1.onPress = function() {
switch1.gotoAndStop("on");
_root.onEnterFrame = function() {
[code]....
is there a way to make it so that the switch works continuously, not just one time?
I need help making a few of my buttons open images, I need the images to basically pop-up full size, and with a click on the image, it goes away. I require some sort of framework script for this
View 1 RepliesI have one button instance that stretches across many frames, and I would like to make it invisible in some of the frames and visible in others. How do I do this with ActionScript 3?
View 1 RepliesI'm very new at Flash and while Ive picked up the basics of tweening and creating animations. I'm trying to create an image of a post it note that is revelaed via a mask when a user rolls over a seperate image. I have created the animation of the mask and it revelas the note fine. My question is how do I create an invisible button and code it in action script so when I roll over image 1 my mask tween begins playing to reveal the post it.
View 2 Replies