ActionScript 2.0 :: Unable To Put An Action In Buttons?
Apr 22, 2010ive been working on a porfolio and i mad all my buttons and symbols but when i go to put in actions it tells me im not able to put an action in.
View 6 Repliesive been working on a porfolio and i mad all my buttons and symbols but when i go to put in actions it tells me im not able to put an action in.
View 6 RepliesI want to apply an action to my button so that it plays a mc on frame 2 of the mc, but in the actions palette in the window to add an action it says: Current selection cannot have actions applied to it. This thing is definitely a button but I will say that I have a mc and text box in each of the 4 frames of the button. But why should that cause an issue? With the button on the stage, I can view the up/over/down states by going: control --> enable simple buttons, so it is acting as a button.
View 3 RepliesI have the same buttons, wich should have the same commands, several times in my movie. How do I make all of them to have the same actionscript?
View 1 RepliesOne if the reasons I used Flash 5 for my personal company website was the really simple programming through action script buttons an fill-out-forms (you know: Gotoandplay, fill out this, click there and so on ...).Im a good artist but im terrible att programming! Anyways now I got one of the latest versions of Flash and action Script is definatelly still there but in soooo many versions and and those action script buttons and fill-out-windows are not there any more, so Im lost! I dont have Flash 5 anymore otherwise I would use it.
Is there a button somewhere so I can get back my "useless newbie action script buttons"? Or what should I do?
I have 36 buttons I need action on. To avoid a lot of similar commands, I am trying to assign the button names in an array using a for loop. Tracing the array values, gives the correct button names, but there is no action when I press the buttons.Here is the code:
var farge_btn_tbl:Array = new Array(4); // Array assigning button instance names (works fine)
var farge_fr_tbl:Array = new Array(4); // Array assigning frame label names
[code]......
Can someone tell me how to make 2 different objects/buttons do the same action?I am building a band flash site.I have a music player with basic controls/buttons: stop, play, pause and volume bar.I have a video section and few videos in it. (They are on youtube and I am using this lightbox script for flash to activate them so they play on top of the site / not going on youtube).I want to make that video thumbnail link automatically stop the music (or pause it) and also to open video: I've tried some stuff but I am not too good at coding.[code]
View 0 RepliesSituation is I got a Mc called "thumb" which I am duplicating like this bellow
[Code]....
Now I need to make make these thumbs clickable for different action. Like if I click on "this.thumb3" it will return "3"; This problem was solved at this forum before but when actionscript.org was attacked by some hacker that post was lost. All I can remember that I got a code like bellow
[Code]....
[code]...
i have a buttons name list1, list2, list3 .... and so on and movieclips playlist1 , playlist2 .. and so on basically what i want to do is assign same action in the buttons, the code above is what i did and it doesn't work
I am currently having a problem adding the Tell Target action to a button. The following is the hierarchy of my timeline:
-Root
---Movie Clip (Instance Name="FadeIn")
------Button (Instance Name="Button")
----------Movie Clip (Instance Name="About")
The Movie Clip I'm trying to control is "About". This MC is also placed within the 'Over' state of "Button". I keep receiving the Target Not Found error in Base="_level0.FadeIn".
Ok Im trying to use flash to call up a java script window I have two buttons to open 2 different windows on the same page but the problem is for some reason only one link is opened by the two buttons. Each button opens the montage link any help as to why the mogo button dosn't open the right link? Below is all my code
[Code]...
I'm trying to pause a movie using a stop action. I'm using a button to do this. This is in the actionscripting attached to the button.
on (press) {
stop();
}
The button is in the main movie so I don't get why it's not working. I'm also trying to add a button next to it that would play the movie, after pausing it.
as a follow-up to my question earlier. Where would I be able to locate the transition script so that I can delete it alltogether and allow users to navigate with solely the previous and next action buttons. (And what verbiage [more or less] am I looking for)?
View 3 RepliesI've got a movieclip with an rollover function. The movieclip has buttons inside, but they don't work. The action applied to the movieclip is the the scale (I'm using Tweener to make the scale action).
View 1 RepliesAny hints for making magnetic buttons/mc? i.e. buttons/mc's float randomly around stage. When the mouse is within a certain range/distance the buttons speed up towards the mouse's position. When the user moves the mouse off the button again, it carries on it's random motion again.
View 8 RepliesI have a movie clip button that has 3 states:up, over, out, and press.the action script inside the movie clip button looks like this:
stop();
onRollOver = function () {
this.gotoAndstop("_over");
[code]....
I am new to flash as well as actionscript. I m using actionscript 3.0 and flash cs4. I have button "Music_btn" which i want to link to a HTML file which lies in C:Documents and SettingsAdministratorDesktopgindex.html. So, this I what I have tried
Music_btn.addEventListener(MouseEvent.CLICK, music);
function music(event:MouseEvent):void {
var url:String="C:Documents and SettingsAdministratorDesktopgindex.html";
var req:URLRequest=new URLRequest(url);
navigateToURL(req, '_blank');
}
Error Description: - 1120: Access of undefined property Music_btn.
But of no use.
I have three buttons on screen that navigate to different places on the timeline. I have set them all up as buttons using a generic button in the library and then given them all different instance names. I selected the button and changed the text colour for each state in the timeline (up, over, down) to keep it simple. The buttons are all, as far as I can analyse, identical in all but instance name.
When I test the movie, the first button changes text colour on 'over' and, when I click (i.e. down state) the colour changes again as designed. The navigation action doesn't occur until I release the mouse button, giving the feel of having 'clicked' the button.
With the other two buttons, which have been set up as far as I can tell in exactly the same way, when the down state occurs, I see a momentary flash of the text colour change and it performs the nav straight away. I really want it to perform the same way as the first button but cannot for the life of me see why they're behaving differently.
I have 2 buttons (prev and next) that should control the timeline of a moviclip called "container"
but it just doesn't work. at first it moves to the second frame on this movieclip then the container shows always the same content ( it has different content for each frame), the content of the second frame.[code]...
I have a movie clip on the main timeline in frame 1 that I named moveablekey. What it is supposed to be is a key for a map that you can move around on the map. When you scroll over/off the key it will hide/unhide the actual key. The key has some buttons that I want to allow to go to a different link when clicked. When I test the key without the code below it will work on the link and take me to the link, but when I put the code into the main timeline it stops the link from working. Here is what I think is happening: The code seems to make it so wherever I click on the movie clip it is doing the start/stop drag code and won't recognize the buttons within the movie clip. So is there a way that I can make just the header of the key to be clickable to start/stop the drag, but still move the entire key, and allow for the buttons to be clicked?
Code:
stop();
moveablekey.onPress = function(){
startDrag(this);
Mouse.hide();[code]..........
I m using actionscript 3.0 and flash cs4. I have button "Music_btn" which i want to link to a HTML file which lies in C:Documents and SettingsAdministratorDesktopgindex.html. So, this i what i have tried
Music_btn.addEventListener(MouseEvent.CLICK, music);
function music(event:MouseEvent):void {
var url:String="C:Documents and SettingsAdministratorDesktopgindex.html";
var req:URLRequest=new URLRequest(url);
navigateToURL(req, '_blank');
}
Error DeScription: - 1120: Access of undefined property Music_btn.
I am trying to assign buttons my on my 'gameScreen' to move my character. though I am receiving an error msg saying: Error #1010: A term is undefined and has no properties.at Mainas()
package{
import flash.display.MovieClip;
import flash.events.MouseEvent;[code]....
I have a file with 12 roll over buttons that make a sound on roll over, but I'm unable to change the volume to lets say .5.
View 0 RepliesI have an swf file, MyRoundButtons, which is a set of radio buttons I built (not components). It works fine, but if I import it into a parent it won't work anymore. I have to write a script to load it into a movieclip, (which I hate, because I'll have a several different swfs to assemble on my final stage. I really want to see them all on the stage together, not just at runtime.)
Even when I load it into a clip and the buttons work, however, it doesn't seem to have a separate timeline when double-clicked ,and:I can't make the imported buttons control the timeline of the parent.I defined a test function:
Code: Select allfunction goToNirvana() {gotoAndPlay("nirvana")};
Frame "nirvana," in th parent, has a Trace instruction in it.
goToNirvana works on its own in the parent. [code].....
Whether I define that function in the child, the parent, or both, the instruction won't work. Now, I'd prefer not to do the loadMovie thing at all if I can avoid it, I'd rather have fully rendered button clips onstage at authoring for me to arrange and move about, with fully independent timelines right there. But you see what I'm trying to do. I just can't get it done.
I've only used flash for 5 months now. As you expect, i'm a super novice. I've been trying to follow the books, tutorials i fould on web and was able to make some nice animations,buttons and stuff. But i'm not a programmer, i never been one and i just don't think i got the brains for it. I just know a little bit. Like i said, it's only been 5 months so i only know how to change other's script to suit mine, i can't create any complicated from top of my head. My question is...do I HAVE TO be an expert to make websites with Flash? After all, i'm only learning Flash so I can make interactive websites. I'm not looking forward to making games or drawing boards or anything. Just websites. How much knowledge of Actionscript(or XML) would I need to make a flash only website?
View 4 RepliesI've been trying to tweak the "image gallery + Bokel loader class" found on the laco web site. The image preloader is pretty nifty:
http:[url]....
I've added Previous/Next buttons which clients always seem to demand, and I've given the thumbnail buttons a static position (something I need to do). I'm having problems getting the buttons to stack in rows/columns though. I can't work with one long column or row of buttons - they need to be stacked in rows, say 6 buttons per row and 6 columns across so that there is a nice box arrangement to the buttons. But the way the functions are written its hard to make adjustments to the placement of clips.
I am in the middle of creating a website using Flash CS5. I opened up my .Fla file one day to continue my work but I am no unable to access buttons and movie clips. When creating movie clips or buttons I am unable to get inside them, when I hover my mouse over them there is a white hand icon which never used to be there it was always just a normal mouse icon. I double click to enter inside the buttons/movie clips but nothing happens. This happens to existing movie clips and buttons on the page and even when I create new ones. I really don't wanna have to start this website again.
View 1 RepliesCode:
_root.navigationMC.onPress = function() {
startPreload("blue.swf");
}
If I wanted to change an action from a button click to a frame-based action, what do I use instead of onPress? The hints from the AS editor are all click-based.
I have a slideshow that is looped ... it contains 5 slides.I am using a gotoandPlay action to control the slide show.
on (release) {
this._parent.gotoAndPlay("98");
}
There is a fade transition between slides.When a button is released ... I want to gotoandPlay (frame 98) ... and then have it stop 10 frames later on (frame 108). Frame 98 includes the transition ... if I just gotoandStop on frame 108 ... I loose the transition.Is there any way to incorporate a stop action, after a gotoandPlay action on my button ... without naming instances etc.I.E.
on (release) {
this._parent.gotoAndPlay("98");
STOP ON FRAME 108 INTEGRATED HERE
}
Everything I have attempted is not working.
I just want to make a simple button action using actionscript 2 but I can't get it to work! I'm sorry for even asking but I've been at this for too long now for it to not work I'm using Adobe Flash CS4 and I do the following --
File -> New Flash File (ActionScript 2.0)
Insert -> New Symbol
Name - test
Type - button
Export for ActionScript
Identifier - test
And then draw it in using the keyframes and add the code to 'Actions - Button' for my button
Code:
on(release) {
trace("trace");
}
I click on the button and it animates but no action event in the trace?
How can I get an action to follow another action when a button is clicked? When a button is clicked, I want the timeline to go to a certain frame and play and when it's done playing, to go to another frame and play. I basically want two actions in one function.
[Code]...