ActionScript 3.0 :: Textinput Moveable Or Dragable?
Oct 13, 2010Is there anyway to drag and re-size a textinput field?i am trying to build an editor for a friend similar to signazon dot com...
View 3 RepliesIs there anyway to drag and re-size a textinput field?i am trying to build an editor for a friend similar to signazon dot com...
View 3 Replieshave a bunch off mc's that are controllable through buttons and using the key controls, but i need to make it so they stay within a 600*600 area within the stage
View 3 RepliesI have an MC that is a giant text box that contains 20different items laid out vertically, like this for example:ABCDEetcI want to make the list infinitely moveable/draggabl on itsy position, meaning the user can drag this list up and down but thelist never ends.....In other words when the user drags to the lastitem in the list, the list, the list starts over again. And thesame works in the reverse; if the user is dragging up and gets tothe first item, the last item pops up after and then goes inreverse. In other words no ending. Think The Price Is Right Wheelor the alram clock on the iPhone or iPod touch.
View 1 RepliesI am quite new at Flash and I am trying to produce a .swf of a fuel gage. I need the pin on the fuel gage to be able to move 180 degrees when you hover over with your cursor. So the user can click and drag the pin.
View 1 RepliesI'm having trouble figuring out how to make a static mask with dynamic content (as in a picture you can zoom/pan) in ActionScript. I've seen a lot of the opposite (see here), where you have static content (like an image) and a dynamic mask on top that you can manipulate. I would like to do the opposite - have a static mask (set at some size at some area) with dynamic content underneath. So for example, a user could zoom in/drag around some content, and the display size wouldn't change, while the content would move. You could imagine Google Maps being confined to a smaller square and being able to zoom in/manipulate the map through that square, and have whitespace outside of that square.
View 1 RepliesI have an elearning course that I make flash lessons for and, surprise!!! I am new with AS3. I use a moveable/clickable seekbar in the lessons that scrubs the main timeline. The problem I am having is that I am not able to put my script into custom classes due to my skill level, so I put my AS3 code into the timeline as I do my timeline animations. AS3 code only runs when the first frame is entered, if that frame is skipped with the seek bar then that code is not ran. I have AS3 code that runs my template controls - seek/scrubber bar, volume, mute etc. that loads on first frame of project after preloader, but I use AS3 code throughout the timeline for some tweens, user interactions, links etc.. How can I combine usage of the seek/scrub bar with AS3 code in the timeline?
View 1 RepliesI created several components that are placed inside a VGroup. in one of the components code, i want to add an image and to move it. i don't want the image to be part of the vgroup and to be bound to the vgroup area, i want it to be like float in css. how can I do that?
update I want to be able to move the element in the entire area of the application. not to move it within the vgroup. i don't want this object to be attached to any container besides the main application window in order for me not to have limits how much can i move it and where.
[Code]...
How I can make a dragable thing like this? [url]...
View 5 RepliesI'm new in actionscript 3, and I'm trying to make a dragable map. a Map that the user can drag, something like google earth with zoom in. But I can't find the way to make the margins work.
View 4 RepliesHere, I have draggalble box but I need to drag in limitation. just say position of x and y is greater than 30 and less than 130 . But have no idea to do limitation.
package {
import flash.display.Sprite;
import flash.display.Shape;
[Code]....
I have a mc which you can drag. The user can drag the mc and drop it to a place and then press a check-button to see if the place is the right one. After the user has pressed the check-button I don't want the mc to be dragable any more. How can I do this?
View 4 RepliesOkay I've gone through a good hundred posts on this site and some others but I can't seem to find what I want (Or I just simply don't understand the code.)First thing first. I have no idea how to code what so ever. I just copy and paste stuff into other stuff and hope it works.Objective; Birdseye view perspectiveOkay so I have this background layer, in that background layer is a "Table top spinner" which I've set as a movie clip. What i'm trying to achieve is when you click the movie clip it will trigger a simple animation (spinner on it's side into spinner upright) You are then able to drag the spinner in a set space on the stage (Table) Whilst you are dragging it the spinner will rotate (I've tried animating a rotation but it just looks clunky) and when you release the drag the spinner will start to slow down and come to a stop triggering another animation which will revert it back to it's side
View 0 RepliesI'm currently working on a flash puzzle game and I was wondering if anyone knew of an easy way to keep my puzzle pieces from being able to be drug out of frame?
View 1 Repliesim trying to create a dragable mask in actionscript 3 but can only find tutorials for actionscript 2. Is there anything i could do to make it compatable with actionscript 3.0? codes below
onClipEvent(load)
{
_root.createEmptyMovieClip('square',0);
function drawSquare()
[code]...
I am basically trying to create a menu which can be dragged across the stage. I have created a main movieclip which acts as the holder. This is the movieclip that gets dragged around.Within that movieclip there are 6 buttons. I am using the MouseEvent.MOUSE_DOWN and MouseEvent.MOUSE_UP eventlisteners to control the dragging however it is not working correctly.When i compile to SWF it is fine. I click down the mouse button on the movieclip and It will start dragging however if i let go of the button it registers a click. Obviously i don't want it to do that but i'm not sure why it is registering a click as i thought that i was just releasing the button...
The second problem is if i move the mouse cursor off of the movieclip but i still have the mouse button pressed it will continue dragging the movieclip about, even if i then let go of the button.... The elements i have are:main holder movie clip whose dimension is 1800x280 and it is called : container_mcwithin this movie clip i have 6 buttons whose dimensions are each 300x270 and the names of the buttons are:
linkbtn1
linkbtn2
linkbtn3
[code]....
I have a bunch of objects that are dragable. You click and hold the mouse button to drag them around, then release the mouse button to put them back down. The problem is that when an object is dragged so that another object is between it and the mouse cursor, and the mouse button is released, the object gets stuck to the cursor. Clicking and releasing the mouse button is the only way to drop the object. Is there any way to fix this? Or, better yet, is there a way to make it so an object is immediatelly moved in front of every other object when it's clicked on?
View 3 RepliesI wanted to create a dragable Mc with an "attached" Textfield (which will also be dragged together with the Mc). Below my script. The logo.gif is dragable but no TextField visible (or attached). What am I doing wrong???
var imag:MovieClipLoader = new MovieClipLoader();
imag.loadClip("logo.gif",
this.createEmptyMovieClip("myHolder", this.getNextHighestDepth()));
[code]......
I just want to create a scrollbar for some text, but instead of the up and down arrows im trying to create a single dragable bar. This actualy looked kinda simple, but now i just cant seem to get this right... I know i have to move the text up or down the same percentage i move the bar up or down, and the drag motion is combining mouse_down and mouse_move, the thing i cant seem to get right is the "how much up or down" part. Im trying to simply drag the bar up and down, without worrying about the text, but i just cant make it follow the mouse when i drag cause i cant find a way to tell that the mouse has gone "x" up or "x" down...
View 6 Replies[URL] on this page, on clicking the porfolio button the page berings up a page wich has a horizontal dragable scroll bar, any have seen or have similar script
View 2 RepliesI have a main movie.In the main movie I have a button (load_btn) which on press load a swf (loaded.swf) into an empty movieclip called holder.In the loaded movie I have a button called drag.I want the loaded swf to be dragable when I press the button drag.Is it possible.
Code:
_root.load_btn.onPress=function() {
_root.createEmptyMovieClip('holder',_root.getNextHighestDepth());
[code].....
Ive seen this alot of times.Can anyone point me in the direction of a good tutorial?(i don't care if it involves a game or whatever i just need one)
View 4 RepliesI have a box that i made dragable by clicking at it. I would like a green line attached to a point in the frame and the other end of the line attached to the movieclip being dragged. Hope i made it clear lol.
How would i go about to achive this effect? If possible without having the line itself being within the dragable movieclip (because the dragable box is in more than one frame and i only want the line in one frame)
I have been reading some posts and it said that keeping the ability edit a textfield and have it dragable is impossible.
Is this the case?
I am basically trying to build a simple version of illustrator for class... Really basic, i just want to pull a textfield around a work area.
I have flash and i wat to recreate a dragable object that will blur anything behind it.
View 3 RepliesI have six movieclips, actually five digits and one komma lined horizontally. Like this.63,585The decimalkomma is a movieclip which is dragable. I want the digits to move when I move the komma so that the komma has enough space and the digits are evenly spread. I hope you understand what I mean.
View 2 RepliesSwf I am referring URL...I have an issue with getting my buttons to work when they are masked in the dragable mc (content_mc). Is there anyway of making these buttons work at all as is vital for me to have content in the scrolling mc?URL...It is probably a little messy but have been running around in circles trying to figure it out
View 9 RepliesI have created two emty mocieclips (holder and holderx) in which some lines is beeing drawn. I want to do holderx dragable but can�t succeed. (holderx is the red lined). I attach the fla because its diffycult to explain whats it all about.
[Code]...
I am trying to create a dragable menu.
However I do not want the user to be able to drag the menus out of the movies edge.
how can I get the dragable movie to know when it is at the edge of the screen and to let go.
I have tried but dont know how to go about it.
more specific, can you put a if() or hittest() statement in a on (press) statement
so the movie knows when to let go ?
I tried both ways but I may have stuffed the script
Ok i have a dragable window that i want text to be loaded into from a .txt. I used loadvariable and when i click my button and the window pops up no text. the close button on the window works, and i can drag it but no text. i tried pulling the text window and all its code out of the Window symbol but then the text didnt follow the window.
View 1 RepliesI have two MC's, circular in shape. One of the circles is stationary and you can drag the other. I'm trying to get the moveable circle to be able to move around the circumference of the stationary circle, but not overlap. I'm able to detect when they overlap, not using hittest. I just can't figure out how to code it so that the draggable circle can't be moved over the stationary circle.
View 4 Replies