ActionScript 1/2 :: Cursor Visible In Non Editable Text Area?
Oct 25, 2010I would like to know how to have the cursor visible in non editable Text Area.
View 7 RepliesI would like to know how to have the cursor visible in non editable Text Area.
View 7 RepliesI need to put together an editable text area that has a custom caret (cursor) which is different from the default blinking vertical line. Is the caret a "skinnable" property of text input? note that I am not asking about the mouse pointer cursor which can be set using the CursorManager.
View 1 RepliesI have a class which inherit from ComboBox .i want to implement a function to control the position of the cursor.Any builtin function?
// Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors.
// All Rights Reserved. The following is Source Code and is subject to all
// restrictions on such code as contained in the End User License Agreement
[code].....
Which Flash Component should I use? DataGrid, ScrollPane, TextArea?
View 1 RepliesI have a movie clip named circle_mc(see the image on the link below) and a mask object(movie clip) which determines visible area of the circle. User can change the portion which is visible (extend the red area and make it red+blue, gray area is invisible). I need to find proportion of visible area to invisible area (red+blue/gray) so that I can calculate angle.
View 1 Replieshow to create an area on my flash website that is editable by others? I'd like them to be able to add photos online. So... a photo album type thing?how to achieve this? I'd like to have the uploaded images specified / limited area space (eg.75 pixles x 75 pixles) so the user could see it online after it's been uploaded. I use flash 8.
View 1 RepliesI've got a few questions for the technical side of a project we're working on and I'd really just like to know if it would be possible before I present it to the rest of my group. The idea is to create a wall on which the user can write down several words on their chosen locations (like a brainstorm), then click one of them to continue with it..
Is it possible to create an editable textfield at the cursor's position on a mouseclick and (if even needed) make it active so the user doesn't have to click twice? And then repeatable on multiple locations on the workarea..
I'm assuming the text autoresize function would still work and that I could add a random small rotation to it (It has to look like you're writing on a wall).
Then, on the next step, I'd like the user to be able to pick one and click on that to continue.
I'm guessing it involves creating a movieclip with a textfield in it and then load that from the library on the canvas on mouseclick.. What I'm most worried about is the user having to click twice to actually start typing..
does anyone know how to make the initial text in an input text box disappear once your cursor changes from the arrow to the type cursor? For example, I have an input text box which has the text visible saying "enter your email address here" I want this text to disappear automatically when the user goes to type something there...
View 3 RepliesIn many cases the pieces have artifacts outside of their visible area. For example, a piece can have a picture of a dog's face, but one of the long ears is off to the side, outside the visible region of the piece. The path data is extremely detailed, so our designers didn't crop it off. They used a mask (at least I think it's a mask, I'm not a graphics guy and know little about that stuff) and this makes it invisible in Flash, when we turn them into movie clips. Also, in Flash when I look at the width and height of the piece, it does reflect only the visible area.However, in ActionScript when I try to get the width and height using, for example
Code:
pieceObject.width
I get the width of the piece including the part that is hidden, i.e. a larger width than the visible area.Is there a way in AS 3.0 to get the height / width of the bounding box of visible area only?
I have a AS2 movie clip that has a drag navigation. The movie clip is bigger then the visible area. How can I find the center xy of the current visible area when I stop the drag?
View 2 RepliesI'm working on a game where if the person puts there mouse over a card, it should pop out over the other cards, and when moved off, the card should go back to where it was, i can get the card to pop out no problem, and go back to it's location, the thing is, i don't want the card to go back when i move off the entire image, only when the mouse moves off of what was originally visible, and i'm not certain how to obtain a pre-visible area that i can use to test if the object should still be over all the other cards.
View 5 RepliesI'm making a first-person adventure game where I have the different frames in the root movie be the various locations that the user can interact with. I want to have fading transitions between the scenes and I was wondering if this was possible in flash. What I've tried for now is to create an array with all the current children then when the frame is changed I add those objects on top of the new frame and use a (alpha) Tween object to fade them out. This doesn't seem like a good idea and feels very hackish, so I had a few questions:
1. Is there an event that is called when a frame is changed (Event.FRAME_CHANGE doesn't exist ) since the way I'm doing it now is to have a local variable which I compare with this.currentFrame.
2. This may sound weird, but is there a way to create a screenshot of the current visible area and use that as one would any other visible object? This would allow me to Tween that one out instead of the array of children that I'm using now. I know it's possible in OpenGL, to render the current view scope to a texture array, but does Flash have this capacity?
PS: This is all done inside a separate class, in case that matters (I am very noobish).
I'm trying to know if there's a way in ActionScript 3 to load a PNG image and make some sort of button or sensible area applicable only for the visible area of that PNG??Maybe there's a simple way to define a polygonal area on execution time, I mean, dynamically and make it sensible to mouse events??
View 4 RepliesI am trying to determine the global coordinates of the visible rectangle that is currently rendered on the stage.
Specifically, if a canvas has an explicit height and width and is a child of a panel that has a scrollbar, the scrollbar can "hide" a part of the canvas. ContentToGlobal(x,y) provides the global position of the content at the time, but content coordinates can scroll off the boundaries of the parent panel and continue to give x,y coordinates that are not visible.
Is there a way to determine the viewable rectangle that is not hidden by anything?
How to make the cursor visible in a TextField (either flashing or still). I have created an on screen keyboard to use with a TextField so that the TextField doesn't receive direct keyboard/mouse input, but there is no cursor to see where you currently are. I have tried the setSelection() stuff with no luck..
View 1 RepliesI've got the following situation, where I have an outer Vbox that is set at a fixed width, and then inside it there is a header made from an HBox and a content area (Canvas) that is much wider than the enclosing VBox (and therefore requires scrollbars on the outer VBox to see it all).
I would like to set the width of the header to fill the entire width of the outer container, but only the visible part, and to remain fixed so that when I scroll to view the content, the header doesn't move.
[Code]...
I have camera input app in flash (AS3) and I draw some graphics over it. I want to take the image snapshot of the stage visible area but only the video an graphics I draw over video. I want to exclude controls from the image snapshot. My display object layout is in following relation:
-stage
--canvas (Sprite)
---video (Video)[code]..........
Stage size is fixed and I want to take a image snapshot of everything that is child of my canvas element (camera input video and overlayed graphics, but excluding controls). I am able to make this image snapshot when overlayed graphics are inside the bounds of stage size. I do it like this:
var bmpd:BitmapData = new BitmapData(canvas.width, canvas.height);
bmpd.draw(canvas, new Matrix(1, 0, 0, 1, canvas.x, canvas.y));
But this gives me unwanted result when graphics which I draw on top of video on canvas exceed the bounds of stage display area. How do I limit the image snapshot only in the bounds of visible area inside stage?
I have some movieClips on stage which are draggable and I don't want them to be draggable outside of a visible stage area. Problem is these movieClips are inside a sprite which is panable and then for whatever reason this bounds doesn't work anymore as I intend it to. How do I fix this bounds?
Code:
var arr:Array = [m1,m2,m3,m4,m5,m6,m7,m8,m9,m10];
var thumbSprite:Sprite = new Sprite();
addChild(thumbSprite);
for each (var item in arr) {
item.addEventListener(MouseEvent.MOUSE_DOWN, startDragCard, false, 0, true);
[Code] .....
I want to make two custom cursors. One to be visible on rollover and second visible only on mouse down. Is this possible. I want to make game where cursor changes into mc1 and moves around with mouse but when you click mc1 is changing to mc2. Till now i managed to hide cursor, make mc1 to move with cursor but dont have any idea how to change mc1 with mc2 on mouse down and then mc1 to come back on release. Is there any other way to make this, my idea was to make 2 clips to follow cursors and use as to determine when each clip is visible, but it doesn't work.
View 4 RepliesI creat a custom cursor in Flash.
function inicialGames():void {
cursor = new Cursor;
addChild(cursor);
Mouse.hide();
[code]....
But when add other object whit addchild(); mouse cursor stay under the other object and is not visible,but when I click is work;How i make a mouse cursor visible over the other object;
I am trying to make a feed backbox for visitors on my website. I have made the editable text field and scroll bar and set all of my preferences, but when the typing reaches the border on the right of the text field it just continues to type further horizontaly. I can start a new line by pressing enter but I would like it to start a new line on its own when it reaches the boundary.
View 3 Replieswhat i want to happen is have images in a movie clip scroll up and down but i don't want to have to move the mouse to the top of the page to see the top image
here is my code so far
frame 1:
if (_root._ymouse > _root.circle._y) {
_root.circle._y = (_root.circle._y + 10);
} else {
[Code].....
what i want to happen is have images in a movie clip scroll up and down but i don't want to have to move the mouse to the top of the page to see the top image here is my code so far
[CODE]...
I am using a movie clip with graphics as a cursor.
However, it appears that the actual 'hit' area of the movie clip is related to specifically the normal arrow cursor.
I would like to be able to define an area of the graphic, in this case it's a hand holding a billy club so I'd like just the tip of the billy club the 'hit area.'
Is this possible via AS2.0?
I'm trying to make a movie clip follow my mouse. I have that working. But I want to designate a specific area where this the following of the cursor happens. Outside of this area the house would be visible and functional normally. startDrag("myMovieclip", true);
Mouse.hide();
I want to zoom the area wherever my cursor is placed. I don't want all the area to be zoomed. How can I achieve this?
View 5 RepliesI have a flash cs3 file where I want a mask to move on the y axis (up and down) when the user is scrolling over the navigation area.
In my code, I have:
maskMC.startdrag();
How do I limit the area where the mask will move, then make it return it back to it's original position when the user moves away from the specific area (in this case the navigation).
My problem is that my final .swf is embedded onto an html page and stretches for the entire width of the users screen. This means that if they have a particularly high resolution, the width of the .swf file stretches significantly beyond the initial stage settings. I'm okay with this, as I really need the .swf to fill the width of the screen.
However, it means that the cursor is able to be pointed more than 100% left or right of the stage, causing the panning image to move further left or right than it should.
What I need to know is how to get around this. I'm assuming I could set a boundary at the left and right of the stage where the code wouldn't be active?
Here's my code:
Code:
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
constrainedMove(fg_mc, 4, 1);
[Code].....
I'd like to be able to use a pencil image (custom cursor?) to draw in a defined area - its the 'ol pencil drawing a line idea on a pad. I don't know how to define the area? I've tried creating either a btn or mc instance called pad_mc & trying rollOver/Out which confines the pen but not the line. This is what I have so far, which works (ie it draws the line) but obviously it goes everywhere, not just over the mc of the pad.
Code:
createEmptyMovieClip("Line",1);
Line.lineStyle(1, 0x666666, 65);
onMouseDown = function () {
Mouse.hide();
pen_mc.startDrag(true);
[Code] .....
Also, I've got an onClipEvent on my pen_mc to try & define where its allowed to be dragged.
What I'm trying to do: build a super simple button skin (say a small circle when in up state, slightly larger circle when in over / down states) that has a larger mouse hit area than visible area. In other words, I'd like the button to look like a 5x5 circle when in up state, but transition to over state when the mouse is in a 15x15 pixel area around such circle - in order to make clicking on the button easier.
What I've done in the past is to use a transparent ellipse behind the the visible ellipse. This works nicely but seems like a waste of memory (not much, although if you start having a lot of these buttons it adds up) and rendering cycles (transparency). I thought I could avoid this by wrapping the ellipse in a group with a given size and listen to its mouse events, but somehow no mouse events seem to fire on such a group - not sure why.
I guess I'd love to know if anyone knows an efficient way to do this. Also would love to know why such a group won't fire mouse events, but I guess that's secondary. Simple code snippet below:
[Code]...