Motion After Button Press Navigation?
Aug 1, 2011i want the main page to drop off after button press
View 2 Repliesi want the main page to drop off after button press
View 2 RepliesI am making a navigation menu in that I want a curtain to show up on the same page. In other words the user just stays in the same page and different curtains show up according to which menu button he presses with the corresponding content showing up in a curtain. I've given diferent names for each menu button which i converted to Movie Clips: bt_eol; bt_mar; bt_hid; bt_amb; bt_who. Then I created a Movie clip for the curtain and put it on frame 40 so that I can load a .doc file that has the content for the Menu button bt_eol.
Code:
function bt_eol(e:Event) {
mc_conteudo.gotoAndStop(40);
mc_conteudo.source="Conteudos/eolica.doc";
} bt_eol.addEventListener(MouseEvent.CLICK,bt_eol);
The mc_conteudo is the curtain. But I get this two errors: Incompatible override and Duplicate function definition. Or is it better to use a UILoader? This is probably easy to do as I've saw this on other websites,the user just presses a menu button and a frame/curtain/window whatever shows up with the content.
How can i make it so a when you press a button it starts a countdown but every other press dosent reset it?
View 14 RepliesI was trying to work through a Flash navigation menu tutorial [URL] and pretty much have it done except for a motion tween that is not working. Im working with a number of movie clip buttons with some tweens except my motion tweens are not working. When i right click in the time line to and click motion tween the frames turn blue but there is no arrow, and when I test, the project works except without a motion tween. I believe it's steps 16-18 that are giving me problems.
View 2 RepliesI want the press button to detect the last button pressed and if the shapes match, make them do something...obviously. I think I'm going at it the wrong way. I need to stick a "triange" id into the button/mc then if compares that and then if there is a match works then... right?
[Code]...
i'm designing a website in flash8... now i have created some buttons, and i want that when i click on the button stars will fly from them and there will be a sound... i have already created the animation of the stars seperatly and it's in the library, i have also the sound file.... i just can't remember how to put everything together.... when i'll press on the button the stars will be flying from the button and the sound will play?
View 3 RepliesI'm loading in 5 jpegs from an external file using "loadMovie" and i have 5 corresponding buttons (1-5) to load them with.
I want to change the jpeg the button loads in depending whether a separate navigation button has been pressed -
i.e.
navigation buttons:
-motorbike pics
-car pics
-lorry pics
If a user clicked on "car pics" then the loading buttons 1 to 5 would load "car1.jpg", "car2.jpg" and so on...
similarly if the user clicked on "lorry pics", the same loading buttons 1 to 5 would load "lorry1.jpg" and "lorry2.jpg"
here is my code,
[Code]....
This is running on Enterframe but I want to ratate 180 degree and on button press and hold button
i have a set of buttons cranked out from and XML file. how can i emulate, in code, a press on one of those buttons? i'd like to 'press' one of them for an initial state so that the list it controls will load first off instead of waiting for the person to click it manually and THEN show the list it's connected to. thing is, the first loaded list is going to be random, so i need to 'press' what on another day/load would be a button that the user would press themselves.
in other words, i have 3 buttons. on random, i have to 'press', say button 2, to start. users can press 1 or 3 and then 2 again if they like. another time, it's button 1 that gets 'pressed' on load, etc. make sense? i have a sneaking suspicion it might be easy... or stupidly convoluted.
I'm trying to create a set of 4 vertically arranged buttons that 'split' apart when those buttons are pressed. For example, if you click the topmost (1st) button, the bottom three buttons will drop down so submenus (for the 1st button) can now be revealed beneath. Again, when you click the 2nd button from the top, the bottom two buttons drop down, revealing submenus, and so on.
Now, is there a way that I can use actionscripting to tween the buttons to not only motion tween a drop down when a button is first pressed, but also to motion tween the button to return up to its original spot when another button is then pressed? Right now, I have two keyframes, side-by-side which each containing a different y-scale value for an object. Can I do some actionscripting to get the object to motion tween upward to its original spot instead of "clicking," or snapping back to is original spot when another button is pressed?
I have 6 button call m1-m6...ok my problem is how to disabled button when one of the button being press...and also stt.text will display crrently selected button...coz currently when I press the button it never stated and also 'stt.text ' also show nothing.
[Code]...
I have a button which on press will go to next frame. I want to disable this button by on press another button.[code]
View 2 RepliesI'm using flash for the first time to create my graphic design portfolio and I'm having trouble keeping the file size small, and can reduce it by (hopefully) doing the following:
My resume has a lot of classic tweens with alpha channels (to create fadein/fadeout effects) and as of right now, I need to create a separate layer of fadein, fadeout for each transition. IE: My resume to portfolio page needs one 20-frame transition, my portfolio page to resume needs a 20-frame transition, my 2nd page of my portfolio page to my biography needs a 20-frame transition, etc. It's getting out of hand.
I could easily remedy this by using a lot of separate fadeins fadeouts and then coding buttons to navigate from, say, frames 120-130 (resume fadeout) then go to frame 160-170 (biography fadein), then navigate to a static page. I'm not sure if this is possible, as my buttons would have to change functions each frame.
Another possible way is that currently for each button I have different layers in order to direct the button to different frames, and have placing hem in the same spot. I'm wondering if there's any way to have buttons go to separate frames on different frames, if you get what I mean (on frame 120 it'll go to 130, on frame 150 it'll go to 160 but still be the same button". Right now each button is coded with on release gotoandplay <frame>.
I know how to make a button and all.. but what do I do to make it go to the next scene?
scene 1: Startsidan
scene 2: Sidan
I made a frontpage and when I click on the picture I want it to go to scene 2, where it enters the inside.
the button is called PortalenKnappen, I want to be able to just press on it and it will go to the "sidan(scene 2)" that's empty at the moment.
what would I have to write? I've tried "portalenKnappen.onPress nextScene("sidan", 1"); but it doesn't work.
I know theres a way to do this.how to press a button with AS[code]...
View 7 RepliesOK, say I have a button that does something, like go to the next frame, is there anyway to have it play a simple sound located in the library without looping?
View 8 RepliesHow can i do that when you press on a button you will go to another frame of the layer?I am using Macrome6dia Flash Professional 8!
View 1 Replieswhen i press on Button and hold down i want to increment.[code]
View 6 RepliesI'm still struggling with a move from AS2 to AS3 so please be gentle with me I have this code for a submit button used with a log in form and I'd like to allow users to press the enter key as well as clicking the button.
[Code]...
I have a TextArea with undo/redo which is performed via ctrl+z, ctrl+y. My app is a mobile app with no cntrl on the soft keyboard so I want to make an undo and a redo button which simulates the keypresses. How do you simulate keys in Flex?
View 1 Replieshow can i run a php script when i press a button in flash? i have a php script that save data to database.. and i want to control this script by a button in the flash.. so the data saved only if i press the button in flash.. what function i must use in AS3?
View 1 RepliesI am developing a application which loads different swf's on press of a button. I am using flash.display.Loader class. This works fine in normal scenario. When the network is slow, and the user clicks on the button several times, it tries to load many swf's. This results in ambiguous results such as showing up a different swf. How do I make sure only one swf is loaded at a time?I found a method Loader.close() which closes the connection, the problem I face with that is how do I know if the load is happening. There is a property connected in URLStream, which I cannot use here since i am using display.Loader.
View 1 RepliesI'm using a movie clip as a button, and I want actionscript to 'press' this when the site loads. I've searched the forums and have only come across using onPress to do so, but it doesn't work.
Code:
_root.Interface.Sculpture.Button01.onPress();
stop()
[code].....
I was wondering if anyone could take a look at my movie, and tell me why this code is not firing:
Code:
this.selectRoute.presenter_btn.onRelease = function() {
trace("pressing");
[code].....
how come this isn't working?
Code:
on(release){
_root.terrain.clear = true;
}
"terrain" is the line that is drawn by the mouse and i want to make a button with AS to delete the lines when pressed.
I have a button on stage and when it is pressed I would like to add a movieclip in increments of one. For example if I press the button once I get "mc1", if I press it twice I get "mc2". Does anyone know what I'm doing wrong? Right now its just counting straight to 9.
Code:
private function more_text_ButtonPressed(event:MouseEvent) {
for (var i:Number = 0; i < 9; i++)
{
[code]....
i have 10 buttons on stage. bt01,bt02,bt03...for every button in my code i have bt01.onPress = function()all buttons call the same function: animation(this);How can i detect any button pressed? i dont want to use bt01.onPress. etc etc. etc... they are not Dynamic.something like buttons.prototype.onPressed = function(){animation(this)}or a for..i tryied for but it only work with dynamic buttons.
View 1 Repliesim currently trying to make a game for a college project, im using flash professional 8,
the game rquires a random sound to be played on a button click, but i have no idea how to do that? all my sounds have instant and libary names of sound_1, sound_2 ect and i currently have this actionscript in place on the button, the button is called play_sounds.
play_sounds.on(mouseDown) = function(){
var randNum = Math.ceil(Math.random() * 10);
var mySound = new Sound();
[code]....
I am looking to have a button respond to both the Page Up button and the right arrow button.Basically we have a slideshow that we want the user to be able to either click on the button itself, hit the right arrow on the keyboard or use a handheld presentation clicker.I know you can't have two on (keyPress) events, but I wasn't sure what the work around for it was. I don't want to get into having multiple buttons with the same code if that is possible.
View 2 Replieshow do I join so that when you press a button, it remains pressed?
View 1 Replies