ActionScript 2.0 :: Mouse Movement (up And Down) To Control The Expansion / Collapsing Of A Menu?
Apr 7, 2004I need the mouse movement (up and down) to control the expansion / collapsing of a menu.
View 3 RepliesI need the mouse movement (up and down) to control the expansion / collapsing of a menu.
View 3 RepliesI need the mouse movement (up and down) to control the expansion / collapsing of a menu.
View 3 RepliesI have created this site with a expanding / collapsin menu. When a user selects a menu e.g. "hammers" then the menu is loaded and show the submenues. When the users closes the menu by moving the mouse away from the area the menu collapses. If the user expands the menu again the menu should have remember the last visit menu and show the menu.
View 4 RepliesIs there a way to control mouse movement with actionscript.Based upon an event I want to programmatically move the mouse to a specific location.
View 3 RepliesI made a simply drop-down menu in MX with an invisible perimeter around the drop-down part that will collapse the menu when rolled over. Most of the time, this works. However, I've noticed that when running the mouse quickly over the button (side to side quickly, for example), the menu will occasionally open but not close, and I have to roll over it again (crossing the perimeter) to collapse it.
View 2 RepliesI have created this site with a expanding / collapsin menu. When a user selects a menu e.g. "hammers" then the menu is loaded and show the submenues. When the users closes the menu by moving the mouse away from the area the menu collapses. If the user expands the menu again the menu should have remember the last visit menu and show the menu.
View 3 RepliesSo if you click on Capital Strategies group on this page: [URL] you'll find a .swf file that has a collapsible menu (accordion menu). Everything works great except for two problems:
1. There is some sort of wierd masking occuring that's clipping the bottom of the menu as you'll see.
2. The items don't collapse entirely.
I assume this has something to do with actionscript but as I'm sifting through it I'm just not having much luck.
I need to make an xml generated menu that when the user clicks on an option, the menu closes down to show only the clicked item, then it opens a new submenu. unfortunatly my knowledge of AC is VERY limited
here's the code I'm using so far
Code:
// ActionScript Document
GenerateMenu = function(container, name, x, y, depth, node_xml) {
var curr_node;
[Code]....
I'm trying to work out how to take a mc with a jpg image sequence in it and then control the playback by using the left and right mouse movement. I've searched the web and various flash forums for quite sometime but cannot find any info on how this is achieved. Perhaps I'm searching for the wrong terms? An example of what I want to do can be found here (flash animation at top of page). Click and drag on the computer or 360 button to spin it around. I want to do this but with one of my own 3d models that I've rendered out as an image sequence(jpgs).
View 1 RepliesReferring to this senocular menu, ho can I add an ease effect for collapsing submenu sections? Here il the code for menuOpen and menuClose:
Code:
// MenuOpen: this function opens a menu when its title is clicked
MenuOpen = function(){
[code].....
I am an extreme novice in Flash and I've built a drop down menu following a tutorial from YouTube - sadly this took me days! It functions BUT fast mouse movement away from the menu drop down seems to prevent the drop down menu from closing. Does anyone know of a fix for this?
Second question - I know how to create text links but when I do this the text's position jumps down without me having told it to. So is there a way to apply a link to a button rather than the text in the button, and is it possible to also apply a link to a movie clip?[URL]...
I've been searching through here constantly for a thread about a horizontal scrolling menu for actionscript 3, but I can't find any that are what I need. I have something that has been written for AS2, but I don't know how to write it for AS3.
This is the script I have now, that I got from a website called Sitepoint (Flash Script - Scrolling Menu With A Scrolling Background, I'd link but this is my first post here).
xm = 0;
function xpos(bar_length,mul)
{
hpos = 400;
[Code].....
I like it because its all based on the x position of the mouse which I feel makes the scrolling easier to control than a variable speed, not that it matters too much.
I have designed a menu that When you mouse over it, a custom cursor appears. When you mouse down it disappears and when you mouse up it returns. If you happen to mouse down and then drag the mouse off of the menu (whilst in mouse down) and then mouse up outside the menu, the custom cursor disappears. All good. The only issue is: If you happen to mouse down on the menu and then drag the mouse off of the menu AND off of the stage, i.e the SWF (whilst in mouse down) and then mouse up completely off of the stage, the custom cursor appears at the point it left the menu. I have tried to fix this using MOUSE_LEAVE but this dosnt work when the mouse button is pressed down. I have attached an FLA, SWF and the AS below.
Code:
stop();
import com.greensock.*;
import com.greensock.easing.*;
import flash.events.MouseEvent;
[code]....
I have a mc (fStrip) which looks like a piece of filmstrip with thumbnail images in it. I want this mc to move when the users mouse is positioned over it, but I only want it to move only along it's x-axis and in a direction opposite that of the mouse. And I want it to move or flow smoothly.
I've been trying to figure this out (see my lame attempt below) but without much luck.
onClipEvent (mouseMove) {
buffer=20 //movement buffer
mousePos=_root.fStrip._xmouse //store mouse position
if (mymouse!=_root.fStrip._xmouse){ //if the mouse has moved
[Code].....
I have been working on a horizontal AS3 draggable menu for some time now and i am almost there with it. I am basically trying to replicate the menu at [url]...
So far i have got everything to work apart from the easing movement when the menu is dragged. The menu is quite simple, it is made up of a container mc.Inside this container there are 6 buttons which fill the dimensions of the container.The container itself is bigger than the stage and the user must click and drag the menu horizontally to see the rest of the menu.This is working. However, i am still after an easing effect when the menu is being dragged as it stops dead (because it is using the startDrag and stopDrag commands).how to implement an easing effect on the dragging of this menu i would be so grateful as i cannot manage to do it! (perhaps using tweenlite or tweenmax if its easier, or by using simple physics - I have attached a zip file that contains a compiled SWF and a CS4 FLA file.This is the AS3 i have so far:
Code:
stop();
import com.greensock.*;
import com.greensock.easing.*;
import flash.events.MouseEvent;[code].........
Im looking for a quick solution (if its out there) using the autohide feature using the FLV Playback Component.
Current situation: Using ActionScript 2. The FLV component fills the stage. Autohide is set to true.
It looks to me that since the video fills the stage, the skin will not hide. What I would like to do is have the skin fade out if the mouse doesnt move for a certain period of time.
i need to fire separate method for individual menu item clicked ,so that individual item can handle separate method.and i need know what all the properties are available in menu item like type="radio".
<mx:MenuBar id="jj" labelField="@label" itemClick="MenuItemClick(event)" x="23" y="228">
<mx:XMLList>
<menuitem label="File">[code]......
I'm using a very wide object in Flash CS3, and I didn't have a problem with the pasteboard automatically expanding to contain it in Flash 8 Pro, but apparently CS3 has limits as to how far it'll let the pasteboard expand, -2880 px to 3620 px or thereabouts. This means I have to move my object off of x:0 y:0 to work with it. This won't kill me, but it does seem to be a step down from Flash 8. Anyone have any news on why this change was made, and if there's any way to correct it?
View 4 RepliesSo Google Play has come out with their new Expansion Pack setup, allowing apps to shoot past the 50meg limit. I've set up a 42 meg APK file, and tested it manually by placing my main expansion file in shared storage as outlined in this massive document: [URL]. Everything tests fine, but the problem I'm having is that Google Play won't download the expansion file automatically when you download the application.
Meaning I have to run a check inside my application, and download it in there. Now that's all well and good, but I'm working in AS3 + Air, and my native extension code that deals with the license checking needs to be altered to allow the extra expansion pack URL field to come through, but I'm at my wit's end. Long story short, has anyone had any luck with downloading expansion files in an AS3 application compiled in AIR?
Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.
How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:
<mx:Script>
<![CDATA[
// Import the Menu control.
import mx.controls.Menu;
[code]....
I am new to AS but trying to control my MC to move up and down. It's working but I want it to stop at a point so it doesn't go to high and stop at a point where it doesn't go too low.
I got this so far
moveUp.onPress = function() {
gtr_MC.onEnterFrame = function() {
this._y -= 1; };};
moveUp.onRelease = function() {
delete gtr_MC.onEnterFrame;
[Code] .....
I've been struggling with a horizontal scroll bar controlling vertical content movement. Can anyone help me? I'm using AS2 in CS3 and I have tried the search function....in vail..
View 4 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'm using Adobe CS4 Professional flash to create the basis of the website, a photo background with an interactive menu overlay on top. Does anyone know any good tutorials for an interactive menu (roll you mouse over certain things and the sub-menu comes up which lead to other pages of the site etc.)
View 1 RepliesI'm creating an animated (in and out) drop down menu. I've managed to get the menu to open when the user mouses over, with the buttons all selectable. However I can't seem to find an efficient method of making the drop down menu close whenever the mouse is not over the menu. Actions:
[Code]...
How to get mass speed movement like in this intro site. [URL]. How to control the multiple clip mass speed movement....using actionscript.
View 12 RepliesI have a menu bar that when a user mouses over it, a second menu slide out beneath it.when I move my mouse off the first menu bar, the second menu bar disappears. Im not sure how to organize my hit areas so that the second bar stays even if I mouse off the first menu bar.
View 1 RepliesI am trying to control movement of an object in one frame based on timing. I have the movement working correctly. What I need assistance on is determining when it should move.I tried using timer() mod 1000 but am having no luck.What is a way that I can implement this portion?
View 2 RepliesMy sliding, gliding thumbnail menu is located at the bottom of the page, and it reacts to the cursor movements as intended. However if I were to move the cursor around the page somewhere on the top the menu is still reacting to the cursor movements. I would like it to become inactive once the cursor off the menu. You can check the page at [URL] and then go to "applications".
The menu consist
[Code]....
The position of the cursor moves the Sliding Gliding animated menu even if it is not on bgClip_mc. For the first time it works as it should but once it is activated and I move the cursor away from the bounding parameters of the bgClip_mc the Sliding Gliding Menu is still reacting to the mouse movements.
I'm trying to develop an infinite menu (horizontal scroller) for a Portfolio. It works but not properly the way it should. After few loops the images get out of sync I don't know why. And if possible can you also help to add some easing to the movement? What I did was, I add to instances of the menu one called menu and another called menu1. Than add the following code to the timeline: import flash.events.Event;
[Code]....