Actionscript 3 :: Navigate Through Swf Using Arrows?
Oct 21, 2011What is the best way to navigate through an actionscript swf using arrows?
View 1 RepliesWhat is the best way to navigate through an actionscript swf using arrows?
View 1 RepliesBased on the Kirupa tutorial, as well as actionscript tweaking from a forum member, I successfully made a gallery that calls in jpgs from the host. The Kirupa tutorial [URL] uses arrows to navigate the images. The actionscript tweak I used, allows the use of thumbnails instead of the arrows. What I need is to use thumbnails AND arrows to navigate... here is the actionscript:
[Code]...
I have a swf that I'd like to navigate with keyboard arrows to access each active button.
(a) navigating through 'hit state' buttons on a menu page using arrow keys
(b) a highlight_mc that remains on the focus item.In the same swf I also have key press methods in place.
I feel like this is an easy issue, but maybe some input form a PRO could unlodge my thinking.
It seems the simplest way is to use the UIScrollBar, but it will not work in my Flash file.I create the dynamic text box and drop the UIScrollBar on it from the components panel, the scroll bar attaches but only shows up as a white rectangle with no arrows. When I test it it stays the same. I don't think it's just the color because when I hover over or click where arrows should be nothing happens, the text will not scroll. I can click and highlight the text to make it scroll, so I know the additional text that isn't showing up is there, I just can't scroll down to see it.The weird thing is in another flash website I have the UIScrollBar does work. I can drag the problem one from the first file into the second and suddenly the arrows appear. I even tried creating a new text box with the UIScrollBar in the working file then dragging it over to the problem one, but the arrows disappear and the bar turns into a white rectangle again.
View 4 RepliesI have two arrays myArray1 and myArray2.[code]How can you compare two arrows?
View 3 RepliesI have them for my arrows to move my MovieClip. It works, but the thing is that my MovieClip is viewed from the side not the top view (and I want to keep it this way). So when I press the left arrow key the movieClip moves but it's facing the same direction all the time. So I tried rotation code but it works for the top view. Then I thought about flipping the miveClip through the y-axis (so that the front will be facing the way it is going), when the left key is pressed.
View 5 RepliesArrows moving on some path (to be determined by a function). Let's this path to be circle. I want several arrows (number of arrows must be determined dynamically so that arrows cover whole circle) to move on the circle and their speed to be controllable (all arrows will have same speed). But my knowledge in Flash is very-very little (I'm familiar with Java/C++ and other Computer Science stuffs, so you can give your advices accordingly). What I was able to achieve after 3 days of effort: Just one arrow moving along the circle. I've tried every possiblity (I saw), but still no success.
View 6 Repliesi have two Sprite.one sprite have background image and another has some drawing.Now i want to earse some part of drawing by eraser and want to store those point in server where eraser used.because i want use it again to show where user rubbed.
View 3 RepliesI was trying to use arrows keys for navigation. I got 12 frames to be navigated. So thought up the following code.
var position=0;
stage.addEventListener(KeyboardEvent.KEY_UP, moveRight);
function moveRight(e:KeyboardEvent):void {
switch (e.keyCode) {
case Keyboard.LEFT :
[Code]...
how to do a scrolling menu similar to the one on this site?I like how the arrows vanish when you get to the end of the menu.[URL]
View 4 RepliesI am not a programmer, but would like to know if someone can point me into the right direction of how I can create a simple scroll that only uses up and down arrows onPress, similar to this: [URL] only that it should be scrolling an mc.
I would like to be able to set the up and down movement to be a certain y value, like 10px up and down each time the user presses and the stop when the mc has reached a certain y position. Would that be possible? If so, how would I go about it?
I want to make a directed graph. Is there any way i could attach an arrow to the line between two nodes ? I used moveto/lineto to draw the line between source node and destination node and i want an arrowhead to point in the right direction.
View 2 RepliesScotty helped me create an XML pop-up gallery. I'm trying to alter the scroller for the thumbnails to make it look like the scroller on my other pages. However, it doesn't work right. The problem is the arrows... these are the problems that I'm seeing (and you can see, too!):
1) down_btn arrow does not work, but the up_btn arrow works? I'm confused because the coding looks correct for both?
2) I can use the dragger, but if I use the dragger, click on an arrow, and then try to drag the dragger, it will cut off the top of the thumbnails. If you use the dragger without clicking on an arrow, it works correctly.
3) The up_btn does not work with the slider. It will slide WAY UP, but I couldn't figure out how to stop it in a certain position.
4) I would like the arrows to have up/down states when you press the button, but I couldn't figure out how to do that. Would I place the actionscript on the mc or somewhere else? You can see the up and down states when you click on the mcs. But who knows how I can trigger them?? To cut this short, the scrollbar is messed up. I'm not sure how to fix it..
I am trying to create a slider bar that also has arrows. Basically the same thing youd see on the right border of most browsers or document editors.
Everything works fine except for the following: as soon as I use the "dragger", the up/down arrows break.I've poured over this code for several hours and just cant see why. I have a distinct feeling its something to do with the nested onEnterFrame in dragger.onPress.... this.startDrag().
Anyway, here's the code:
/// --------------------------------------------------------
var ratio = 0
var spd = 7;
var scroll = 0;
[code]....
I'm trying to alter the scroller for the thumbnails to make it look like the scroller on my other pages. However, it doesn't work right. The problem is the arrows... these are the problems that I'm seeing (and you can see, too!):1) down_btn arrow does not work, but the up_btn arrow works? I'm confused because the coding looks correct for both?2) I can use the dragger, but if I use the dragger, click on an arrow, and then try to drag the dragger, it will cut off the top of the thumbnails. If you use the dragger without clicking on an arrow, it works correctly.3) The up_btn does not work with the slider. It will slide WAY UP, but I couldn't figure out how to stop it in a certain position.4) I would like the arrows to have up/down states when you press the button, but I couldn't figure out how to do that. Would I place the ctionscript on the mc or somewhere else? You can see the up and down states when you click on the mcs. But who knows how I can trigger them??
View 10 RepliesAfter 2 days of trying, I was finally able to make a simple scrolling text with the up and down arrows. It is functioning fine, but it scrolls line by line which is kind of cumbersome. I want it to scroll smoothly until the mouse is released. May be some scripting. But I am almost at 0 point when it comes to action scripts.
View 4 RepliesI want to hide/remove the up and down arrows from the scrollbar - how can i do that? the scrollbar is to fat - the skin i am using is not that fat. How can i make the scrollbar thiner.
View 1 Repliesi have a problem with a game in flash , this game using up and down arrows, for some reason, when i click the game , the web page scrolls too, how can i fix it ? , i use this cheat in javascript but didn't work:
[Code]...
Also,this game is loading trought another flash that embeds an iframe loading the flash game.
I am trying to create a Flash application which will allow a user to draw arrows on the screen/canvas by using the mouse. So if they click and hold the left mouse button at coordinates 23,12 and release the left button at 84,45 a line would be drawn between the 2 points with an arrow head at the second coordinate.I also need each individual arrow to be selectable so they can be moved or deleted (I know how to do this part!).
View 1 RepliesI want arrows for next and back
if ( == "pic1") {
gotoAndPlay("pic2");
if what equals pic1
It's not currentFrame
I have an object like a ball i want to be able to control it and make it as if it jumps up and down and moves to the right and left with the Keyboard how can i do this please?
View 9 RepliesI'm making a portfolio site in flash. I've placed all these items horizontal in a movieclip (content_MC). In a layer on top of where this movieclip is placed in, I've got a left and a right arrow. What I want is to move this horizontal movieclip (with tweener) left and right by pressing the arrows. For example: when I press the right arrow, the content_MC should move -900px to the left. How can this be done? And if the user reaches the end of the movieclip (with 5 items that would be 4 clicks) the movement should disable.
View 9 RepliesI have a row of thumbnails (populated from an XML list). If you press the arrow, the thumbnails will scroll from the right or left. What I can't figure out is how to set a limit because right now if you continue to press the right or left arrow, the thumbnails will scroll off the stage.
View 11 RepliesWhat I intend to do, is to create a game in which a player can mouse-click in a circle, thus drawing an arrow from the center of the circle to the mouse_cursor. The length and direction of the arrow represent an acceleration for a moving-object moving in the scene. The script that moves this object should take the accelaration and calculate a velocity and postion out of it.
I would create such a "force-circle-object" and make instances of it in different colors, allowing the player to set different arrows as forces on the moving-object. I tried and made something like this in GameMaker. Now I wonder whether I would better do this in Flash. Can you recommend a tutorial site for this kind of issues? How do I create such a circle with drawable arrow in it? How to take the arrow-values and pass them on to the moving object etc? if Flash 8.0 (AS2.0) is still actual, or do I need an upgrade to Flash 10 / AS4? I am a relative noob when it comes to OOP...
How do I position the arrows I've placed inside the TileList so that they point from the center of the TileList object and towards the border of the TileList object?
Currently, they're positioned in the top-left, and they points toward the expected direction. Because they're positioned incorrectly, it doesn't look good (See submitted files)
[URL]
I have a menu that use a series of icons which the user can browse with arrows. When the user browse on this menu, it cycle through icons. The cycling have an animation, and it use the Tween function.
[Code]...
I'm trying to figure out how to rotate arrows on a 3D plane towards the mouse cursor using rotationY in Flash 10. Using the same technique as rotating towards the cursor on a 2D plane produces less than desirable results as you can see in the image below.
Code:
root.transform.perspectiveProjection.projectionCenter = new Point(stage.stageWidth/2, 0);
floor.rotationX = -90; // just a rectangle so we can see our plane
arrow1.rotationX = -90;
arrow2.rotationX = -90;
arrow3.rotationX = -90;
addEventListener(Event.ENTER_FRAME,pointToMouse);
[Code] .....
The arrows seems to be focusing in on a point offset from the mouse, but I'm not sure how to compensate to get it to line up.
I'm working on an online portfolio of design work. I've set the jpegs up to load dynamically into movie clips so I don't have to keep them in my .fla file. To see the issue: please open "help_.fla" and 3 jpegs (same folder as the .fla file). Run the flash movie. Click on the "NVIDIA" in the top navigation, then on CBS Cable. When the first page of CBS Cable appears, click on the right arrow to see the next CBS page. Then, click again on "NVIDIA" in the top navigation bar.
1. How can I hide the left or right arrows depending on which CBS page I'm on? When I'm on the first page, for example, the back arrows should be hidden. 2. When I'm back in the NVIDIA page again, how can I hide the arrows still showing from the CBS Cable pages? Finally, what's up with the brief flashing of the NVIDIA screen when I click on the right or left arrows of the CBS pages? Here's the code I'm using to call up the images dynamically into movie clips.
[Code]...
How can I move a ball to the left once the left arrow is pressed, so the ball moves to the left side and should automatically return to the right once it reaches the end of the stage... And the same thing should be applied to the right arrow.
View 1 RepliesI have made a flash site with input/dynamic text fields like 9 horrizontally and 9 vertically I want to use arrows to change WHERE I AM TYPING. if not arrows than i want the tab key to go vertically down rather than horizontally and if you can give me an exhample of the code needed in actionscript 3 to do this
View 2 Replies