ActionScript 2.0 :: Create A Cool Effect Where When Click On Menu Item
Mar 21, 2005
How do I create a cool effect where when I click on a menu item, the layout chages size according to the size of the content on the page.URL...How did he do it? Actionscript or just transitions?
ive followed Senoculars drop-down menu tute [URL], awsome stuff, but it seems the submenu's dont disappear to well when you roll out. ..They only disappear if you click on another menu item or when you click outside the menu.
what was done to create the cool effect at this site? [URL]..When the links on the left are rolled-over an image appears in a small window that follows the cursor. Very cool.
I was hoping to learn how to do that, myself, but can't figure it out. No need for a step-by-step tutorial, just a word or two to point me in the right direction.
I'm using the following code to create a very cool rain effect. Problem is, I only want the rain to last about 10 seconds, then I'd like it to fade away. I can get the background to fade, but the raindrops still appear. How I can accomplish this?
Code: for (i = 0; i < 50; i++) { var newDrop = mcRaindrop.duplicateMovieClip ("mcRaindrop" + i, i); newDrop._x = random (350); newDrop._y = random (20); newDrop._xscale = random (100); [Code] .....
i wanted to place some credits item in the right button menu (no links, so no events, just a label with credits). i was looking the contextmenu help, and there is an example of how to add items, disable default items and so on, but i could not find how to attach the menu to the movie (the basic part). i tried both on 'stage' and it tells me that stage does not have a property called contextMenu, so i tried to attach it to a sprite, it runs ok and compiles ok but when i right click on the sprite i get the default menu
var _menu_item:ContextMenuItem = new ContextMenuItem("here goes [code].....
I have an array for my menu and submenus.It works fine, but I have to click again on the menu to close it.When it's open it's completly open it takes too much space.how I could make a menu close when I click on another menu item..this is the code on the frame on my main timeline:
I'm currently using a flash template for my online portfolio, but I've noticed that if you right click anywhere, it brings up the standard flash right-click menu with the following items:
Settings Global Settings About Flash Player 10
But directly above is a separate menu item that says "Made by JWD" and that takes you to a different website if you click it. I have the .fla file for the gallery - can I remove this menu item?
I have a menu system with 2 parts not connecting. I can't figure out how to write the code to make them work.
I have a movieClip with a dynamically created list of menu titles as an array from an AS3 file. My menu bars are linked to an AS3.0 file. The array is "empty" in the AS file to be added dynamically in the fla file.
1. I want to have one menu title flush left, then be able to add a submenu title indented with a different style to that same list. I have the listItem linking to an AS3.0 file now. I've got the main list working but not an indented submenu. How do I add that?
2. I need to be able to load a swf file when a menu item is clicked. How do I target the 'current' item clicked when added dynamically?[code]...
I'm having a major brain fog right now...I'm trying to add a click event for each menu item that is loaded from an XML file.
See code below:
function xmlLoaded(event:Event):void { xml = XML(event.target.data); xmlList = xml.children();
[Code].....
So basically everytime a click event occurs on a menu item, the related url from the xml file will be called. However the trace(imgURL) only shows the last item loaded from the XML file which makes sense.
I just can't see how to modify the code so the unique url is associated with each unique menu item click event.
i attach a image on what i must make..but i have like a blackout.. so i hoped u can inspire me for some cool effect?please if so help me also to the code? or at least a demo code so i can make me own?
I'm trying to get the menu width of a menu item in flex 4. I can get it but I have to show the menu first, then hide the menu, do a calculation, and show it again. Is there an easier way to get the item menu width without this hassle?
I have the following code but it only works when published for flash 6 and I need it to work for flash 8.Ive tried to tweak it but cant get it to work.I think it would be best if I could make a function out of it - ie:call the function like:myTextbox.textEffect("this is some decoding text");My actionscript is coming along but Im still learning.
Code: myString = "this is some decoding text"; charDisplay = myString.length;
I was taking a look at this site [URL] and really liked the drag functionality to navigate. You can drag up down, left and right. I wanted to try and get the same effect. I would assume creating one big movieclip and adding the drag functionality to that. My concern is that it might not be optimized. Do you think I will need to load content on the fly? Or do you think I will be able to load everything in the initial load and keep it running from there? If there is a specific name for this effect?
Can anyone tell me how to make a cool water ripple effect? I saw one that I loved on URL... (you'll see it on both the intro and the contact page).Does anyone know how to do that?
Actually I want to create a fisheye effect for my portfolio site, I tried to do that but other links get overlap on previous link .While I rollover a button all other button should move away from the target button(active button).
Code: Select allimport caurina.transitions.*; var k:Array = new Array(); for (var i=0; i<5; i++) {
I found a tutorial on how to make a cool water effect in as3 using bitmap data and a displacement filter. It works great but it is very heavy on the computer.
here is my code
Code: var bmd:BitmapData = new BitmapData(700, 398); var dmf:DisplacementMapFilter = new DisplacementMapFilter(bmd, new Point(0,0), 1, 2, 10, 30); var p1:Point = new Point(0, 0); var p2:Point = new Point(0, 0);
I was going to attempt to create a vertical accordion menu with a genie effect this week.So it'll be like your normal text based accordion menu but the entries will shrink and grow depending on where your mouse is.I've never ever seen this specific type of menu before and I'd quite like to get a look at one to visualize how it should behave.
When someone "click and holds" I want to fire off function over and over, say, once every 100ms while the mouse is clicked. Instead of MouseEvent.CLICK I would look for MouseEvent.MOUSE_DOWN and then start a timer on that event function that calls another function every 100ms. Then, on MouseEvent.MOUSE_UP I would stop the timer. Am I on the right track? Will I be able to get updated X and Y coordinates while the mousedown event is firing?
I was wondering if there's any way to create a custom right click menu like in context menu(or similar) without the "Settings" and "About Adobe Flash.." etc... options?
i want to add new Menu in flash IDE and i want to add inside the adobe flash menu. How i can add new menu in menubar and new menu item inside the help menu. is it possible to do this things if yes then which language i have to use for this. what is way to start development and what is the .MXP file and how to create this .MXP file.
Ive noticed a lot of flash websites have user defined items/links added to the default flash right click settings menu. In other words when we right click on such flash websites it shows links to the designers home page or associated site etc.