ActionScript 2.0 :: Create Menu For Most Used Actions?
Jun 20, 2007can i create a menu for the most used actions i define it by my self???
View 3 Repliescan i create a menu for the most used actions i define it by my self???
View 3 Replieshaving previously made webpages just in html.I have a flash movie and wanted to add a series of links.I've made some buttons, but when I rightclick on them and go to actions, I don't get the 'basic actions>geturl' command that the help screens tell me I should have. I get some other crazy menu with options like 'Global Functions', 'Actionscript 2.0 Classes' etc.how I can bring up the actions menu that will allow me to create a link from my buttons?
View 2 RepliesI want to add actions (other than "gotoURL") to the XML Driven Drop Down Menu (tutorial on this site) - particularly internal site navigation - ie, gotoAndStop().
View 1 RepliesI have 2 classes that deal with making my menu. One creates a button and the other creates a menu using the buttons. I have XML set up to set the text in each button. What I cannot figure out is the best way to have each button do something different. I do not have much time to complete the site so the way I thought about doing it was giving each of the buttons a name and setting that to what the text was inside the button. All this is happening in my menu class. [code]...
View 2 RepliesI have a master SWF which has a menu and loads other swf's into holders so they can be animated. I have button's in one of the loaded swf's but i am unable to make these buttons alter whats in the main swf. I.e. addEventListener to button and root(but the root doesnt seem to root to the holding swf).
View 2 RepliesI keep getting this message in flash cs4 when I try to actions to the my menu buttons
"TypeError: Error #1009: Cannot access a property or method of a null object reference. at Enigma_fla::MainTimeline/frame1()"
[Code]...
Frame 1 on the timeline is empty, so I have no idea what I'm doing wrong.
I have a dropdown style menu that has some movieclip buttons inside it and when I click on the movieclips the actions aren't working.
Here is the file I'm working on. Rollover the head on the border and you'll see what I mean. [URL]
I tried searching but couldn't find any threads that answered my question about why the MC doesn't work when its embedded inside another MC.
Here is the code (first frame of root timeline) that is used for the movieclip button:
Code:
_root.odinHead_mc.videoGalleryButton_mc.onPress = function() {
_root.videoGallery_mc._visible = true;
};
I have got the banner on this webpage [URL] made from a guy in India but i want to add an additional feature. When i click the left or right button multiple times how do i get the picture menu to keep moving and not just for the first time i click on the arrows.. Is there some action script that i can include??
View 3 RepliesHow create Context menu in AIR application plus how add sub menu against any parent item in Flex?
View 2 RepliesAnybody know how to create a custom context menu (right click menu) in Flash?
If it's not possible, wouldn't it be a good idea for Macromedia to put some kind of event or something in there?
I have created a sliding menu. But that is static( the number of rows are fixed). i want to create a menu with the number of rows dynamic.I have attached the fla file here.
View 10 RepliesI'm looking to create an infinate menu BUT navigating my menu from left to right using drag rather than the position of the mouse. If there's any links or tutorials around Pleeeeese let me know.
[Code]....
I am creating an animated menu for my personal website. All I need is a MouseOver and a MouseUp event on the same object. Because of the scrolling nature of the menu, I need to have MouseOver events on each menutab. Each menu item is hidden until a MouseOver event, then it scrolls out to reveal its title. If the user clicks on the now-revealed tab, it should become the current page. If the user does NOT click the now-revealed tab, it reverts to displaying the current page's tab instead.
This means that I need to have a MouseOver and a MouseUp (or Release) tag on my items. Since I probably confused you all as much as I just confused myself, here is the example. [URL]. The "Family" section should be displayed. As you can see, when the user runs the mouse over other tabs, they are revealed. When the mouse goes away, it reverts to the Family section because nothing else was selected. The menu operates on frame 2 - frame 1 sets the initial variables as shown.
Code:
var sel = "family";
var games = "0";
var movies = "0";
var artwork = "0";
var yugi = "0";
var about = "0";
var links = "0";
Frame 2 operates my rollovers in a frame action as shown.
[Code] ......
I've finally got the animation and MouseOver events done - all I need is a MouseUp event! Why it doesn't accept MouseUp or OnRelease events? This is, of course, a work in progress. A few artifacts of testing:
* The green squares on the left of each tab are invisible buttons to activate my rollover. I wanted to see them during testing.
* The blue rectangles sometimes visible over the tabs' text was a theory gone wrong; I was hoping I could click those rectangles, which are buttons (which would be invisible) to initiate the MouseUp event instead of the actual tab, which is a movie clip.
* Needless to say, graphics are temporary! LOL
* Coding is also not optimized yet, so it's a little messy for now.
i want to create a menu with sub menus but i don't know what's a menu structure and how can i create it
View 3 Replieshow can I create a button with two actions.I mean for example I want after the first Click show something on stage, and after second click on it hide previus movieclip (or etc...) or even show something else.. . for example we have 3 symbols here s1,s2 and s3 s3 is our movieclip button. after first click in s3, I want to show s2. and after second click I want to hide s2.
[Code]...
Lets say I have 5 instances of a movie named BB1,BB2, BB3, BB4 and BB5 and I want to say move them 5 pixels to the right. Is there a way to do this in one statement and not have to post it 5 times? asically how can I shorten this to one instance to affect all of them?
on (release) {
_root.BB1._x += 5;
_root.BB2._x += 5;
_root.BB3._x += 5;
_root.BB4._x += 5;
_root.BB5._x += 5;
}
Second question is, let say I want to create a Movie with different actions in each frame. then I want to continually call that one frame action from a button release. How would I go about this?Action on frame is: _root.MM._x += 5;
Button on stage to trigger this action over and over would be?. I've tried gotoandPlay but it only works once on (release) {
Taken from http:[url].....Creating the DNA effect like in the FlashBox banner.Create an object like the one shown below.Give it an instance name of dna1.You can use any colours but the colours I used are as follows: A radial gradient set with colours from left to right:
255.255.255 at alpha 100%
255,255,200 at alpha 50%
255,255,255 at alpha 100%
243,126,12 at alpha 40%
255,255,255 at alpha 0%
Now create a layer and name it actions. In the first keyframe give action:
Code:
for (i=2; i<30; i=i+1)
{
duplicateMovieClip ("/dna1", "dna" add (i), i);
I'm interested in learning how to create a "3d" object that a user can interact with using their mouse. I've taken 60+ pictures of a camera rotating by 5 degree increments and I'm trying to put together something similar to what Verizon has on their website for phones - Where your mouse rolls over an object and rotates it.
I've seen this done with Java as well, but I'm interested in how flash does it.
I have an application in which I need to create mx.states.State objects on the fly, as I'm reading external data in order to create the states. Each State only has a single child, so here's my code which I was using to accomplish this[code]...
View 2 RepliesI found this flash tutorial about old scratchy movie: [URL]. Tells me to create a movie clip "line" and "actions" and create a line as big as the movie: 400. Then tells me to put this on the action panel of "actions".
Code:
onClipEvent(enterFrame){
_root.line._x=random(400);
}
I did that and it tells me to test the movie so I did but I get this error:
Code:
**Error** Symbol=actions, layer=Layer 1, frame=1: Line 1:
Clip events are permitted only for movie clip instances
onClipEvent(enterFrame){
Total ActionScript Errors: 1 Reported Errors: 1
It is possible to create a menu in the contextmenu making it possible to create a window (component�) ?
example:
function tab()
{
}[code]....
I have a series of frames one the timeline. Each frame has a graphic and a mouse click leads to the next frame. Think Myst.
[Code]...
When the middle frame is returned to, clicks no longer change anything. I believe that the actions of the 'left' frame are replacing the one's in the middle frame so then it is told to gotoAndStop to itself.
I'd like to know if that is indeed what is happening and how I can make it stop.
1. Can i put another set of actions in frame 2 of the actions layer?i tested but it doesn't seem to work..it has 836 rows of code and it's getting annoying when tryin to search for a function..
2. I am not that familiar with classes, i usually put all the code into movieclips or in actions layer.. i am not sure if i can call a function from a actionscript class..
3.I am curios if there is any way i could specify an alternative for the if statement like in this pseudocode:
if ( apple is not clean BUT is tasty)
{
eat(apple)
}
I have a very simple problem but I can't find the very simple solution to it. I've create an animated menu with animated movie clips inside to work as buttons. All the main buttons work perfectely but I've got just on button with a sub-menu. On this sub-menu I've placed an invisible hitarea button in order to place some gotoAndStop action. The thing is, it seems to me like this submenu hitarea are underneath something else (even though is the seccond layers right about the actions layers). I've placed a simple trace action whenever the mouse rolls over this area but I get nothing... Am I doing something really wrong? I'm losing all my hair already.
View 2 RepliesI am having a hard time trying to create a sub-menu using xml. The main menu works but the sub-menu is not being populated. Here is the AS and the XML
Code:
Object.registerClass ("item1",src.button);
Object.registerClass ("item2",src.button);
Object.registerClass ("item3",src.button);
Object.registerClass ("item4",src.button);
import src.button;
[Code] .....
I'm trying to create a menu through XML and i'm using 2 attributes in dat XML one is buttons name and another is link.This link is not a URL this is a name of another swf which i wanna load.
stop();
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
[code]....
i'm tring to understand how can i do a menu like thisthat dinamically change based on a sitemap in xml or something similar...
View 1 RepliesI am trying to create a header with a menu bar that will be embedded at the top of each page of the site. I have it looking like I want it, but I am having trouble making it do what I want it to do. I have three text areas that I have made into movie clips. I want them to "fade in" one after the other, then stop with all three visible, then wait for a click on the menu bar. I can make them fade in, but not stop. I have tried several different things, but no success.
View 1 RepliesI dunno if this is the right place im posting, but im looking for a resource file, similar to this menu: MENU (That rolling menu
View 8 RepliesI wan to create Drop-Up menu in flash with AS-2. see the attachment or go thorugh this link [URL] , i want to create some thing like this type of Drop-Up menu.
View 1 Replies