ActionScript 2.0 :: Make Rectangle Created With LineTo Draggable?

Feb 24, 2010

I have four points which all are dragable. I have a line beeing drawn between the points. Now I wonder if it is possible that when you are ready dragging the points and you have the rectangle you want, to stop dragging and move the whole rectangle. In some way make the drawen rectangle an object where you can get the height and width and coordinates. And move it. Can this be done?

PHP Code:
for(var i = 1; i <41; i++) {
this["point"+i].onPress = function() {
this.startDrag();
this.gotoAndStop(2);
onMouseMove = drawLines;
[Code] .....

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Changing Color Of Rectangle Done With LineTo

Feb 27, 2010

I have a rectangle drawn
Code:
line1.clear();
line1.beginFill(0xFFFF00);
line1.lineStyle(4, 0x000000);
line1.moveTo(_root.point1._x, _root.point1._y);
line1.lineTo(_root.point2._x, _root.point2._y);
line1.lineTo(_root.point3._x, _root.point3._y);
line1.lineTo(_root.point4._x, _root.point4._y);
line1.lineTo(_root.point1._x, _root.point1._y);
line1.endFill();
line1._alpha=10;
updateAfterEvent();

After the rectangle is drawn I have a button that inactivates the points. I can now change the alpha of the rectangle but not the color. Is there a way to change the color of the rectangle line1? I have tried with
line1._color=0x000000;
But it doesn't work.

View 2 Replies

ActionScript 2.0 :: Making Rectangle Via LineTo Method?

Oct 16, 2004

I found out how to make for example a rectangle via the LineTo method. But how can I change the size of this rectangle and SEE it changing (ie a tween), not jumping from one format to the other? I guess it has to do with using "elapsing time" in the actionscript? I find it hard to get info on this subject. Though it seems important because otherwise it is impossible to create animations.

View 5 Replies

Actionscript 3 :: Accessing The Gradient Of A Rectangle Created In The Flash Editor?

Jan 7, 2011

I need to export the gradient settings of a rectangle created with the Flash editor. Our artist creates a rectangle with the gradient in a .fla. Is it possible to retrieve the gradient parameters from the .swf or from a flash plugin I could write?

View 3 Replies

How To Make Draggable Items

Aug 29, 2004

I only started yesterday with no knowledge at all.How do you make draggable items? I looked around and I saw things about actionscript and all that but what do you do?

View 5 Replies

Buttons Which To Make Them Draggable?

Apr 16, 2009

I have 4 buttons which i have to make them draggable. The problem is that i have 3 conditions

condition #1. Only 1 button/mclip is draggable in its axis [done].

condition #2 .The 4 button/mclip must be dragabble at the same time, that is, when i drag one, the others should drag at the same time in their own axis.

[Code]...

View 2 Replies

Make A Draggable Pull Down Button?

Feb 23, 2010

I just started making some simple banners for web sites. I got a new one to do this morning, and I was asked to make a button that says drag/pull here. as you drag/pull down, it reveals the layer below it. Also, as the button reaches halfway, it needs to go all the way automatically as well, so the users don't have to drag all the way down themselves. Is that something I need to do in actionscript

View 3 Replies

Flex :: How To Make Panel Draggable

Jan 17, 2011

I give my users the ability to create items. The Create item dialogs such as:

<s:Panel id="postitNoteCreatePanel"
horizontalCenter="0" verticalCenter="0"
...

How can I make panel draggable so that users can move it around the page so it doesn't block other items

View 5 Replies

ActionScript 3.0 :: How To Make MovieClip Draggable

Nov 4, 2007

I'm just trying to simply make a movie clip draggable (it was all oh so easy in AS2!) I'm getting "1120- access of undefined property "waves_mc"). Yes, I have the clip named waves_mc.

View 9 Replies

IDE :: Make An Input Textbox Draggable?

May 12, 2009

I want to have a draggable input textbox on the stage (it will b placed ontop of an image of a tshirt).I want the user to be able to enter text and then move the textbox around to where they want it on the tshirt.I know how to make a movieclip draggable, I have been using this:

PHP Code:
on (press) {
startDrag(this, false, 240, 90, 290, 290) // target, lockcenter, t, l, b, r

[code]......

View 2 Replies

ActionScript 3.0 :: Possible To Make Dynamic Field Draggable?

Dec 10, 2009

Is this possible at all? I have tried to use the startDrag method for dynamic text field but I still can not drag it. If I converted the dynamic textField into MovieClip symbol then it becomes draggable. But I had to keep it as dynamic textField object because I am also applying formats defined in textFormat object to that textField. If it is converted to MC symbol, then I can no longer apply textFormat. Is there any solution. Basically I want to be able to drag and change its text format for given textField.

View 1 Replies

ActionScript 2.0 :: Make Elastic Box Draggable Menu?

Feb 9, 2004

A client of mine has seen this elastic menu box effect and has asked me to see if I can loosely recreate it. elastic box menu Does anyone know how to A; create it? or B; create a draggable elastic box and I'll go from there!!

View 12 Replies

ActionScript 3.0 :: Make Dynamic Text Draggable?

Aug 10, 2011

I have a game where the user inputs text and this text is shown on different scenes. I used the following code, where 'input1_txt' is the input text box and 'output1_txt' is the dynamic text box where it is displayed:

Code:
textenter_btn.addEventListener(MouseEvent.CLICK,textdisplay);
var enteredText:String = "";

[code]....

View 12 Replies

ActionScript 3.0 :: Make Flex Component Be Draggable And Selectable?

Sep 7, 2009

I need to make Text box to be Draggable And Selectable

View 1 Replies

ActionScript 3.0 :: Make A Draggable Object Snap Into Place?

Jul 23, 2010

I'm new to Flash (sort of - I used it a bit back in 1999-2000, but it's changed a LOT since then). I'm making an educational game for my company that involves dragging labels from a word-bank to their correct position on a diagram. I want the kids to be able to drag any one of the five labels and move them to any one of five marked positions on the diagram. I'm using Flash CS5 with Actionscript 3. I used code snippets, so that each individual label has the following code associated with it:

[Code]...

View 22 Replies

Actionscript :: Make A Graphic Symbol Draggable In FLASH?

Dec 24, 2009

Could you tell how the actionscript code would look like for such a job?

View 4 Replies

ActionScript 2.0 :: Make A Draggable And/or Clickable Curtain Rope?

Aug 9, 2005

I'm having a heck of a problem with the startDrag function in Flash right now. I'm trying to make a draggable and/or clickable curtain rope, which works now to a certain extent. When the user single clicks on the rope, it opens/closes itself. When a user clicks and drags the rope part of the way, it opens/closes itself the rest of the distance. A user can also click and drag the rope the whole way if they like. Everything does what it is supposed to when a user single clicks. If a user double clicks, the curtain is permanently draggable, which is obviously not what I'm going for.Variable used to determine whether the curtain goes up or down

drag = 1
// Starts the dragging[code].....

View 2 Replies

Professional :: Make Objects [that Conbtain Links] Draggable By The Viewer?

Feb 18, 2010

I'd like to create a bunch of objects which the viewer can move around and, at any time, click on some text [within that object] to go to an external URL.
I can get objects to be moved around and can create URL request.I don't know how to combine the moveable object with an external link: for example, a black square with some white text - the whole thing can be moved and the white text is a link [to the web page].

View 11 Replies

ActionScript 2.0 :: Make Draggable Object Disappear When Moving To A Different Frame?

Jan 16, 2012

I have script like this to drag an object a1 to a different location for a matching exercise.

ActionScript Code:
a1.onPress = function():Void  {
temp1 = a1._x;

[code].....

View 2 Replies

ActionScript 2.0 :: Make The Contents Of A Window Draggable And Disabling The Scrollbars On It?

Jul 18, 2006

I'm currently trying to make the contents of a window draggable and disabling the scrollbars on it.

This is the code i got to create the window and add the contents to the window. The window creates flawlessly and the contents gets loaded too but i can't get the contents to drag by clicking on the contents itself.

Code:
zoom_win = mx.managers.PopUpManager.createPopUp(_root, Window, true, {title:page_url, closeButton:true});
zoom_win.createObject("ScrollPane", "zoom_pane", 0, {contentPath:page_url, _x:3, _y:31});

View 1 Replies

ActionScript 2.0 :: Make A Draggable Movie Clip With An Input Text Box In It?

Aug 27, 2004

I want to make a draggable movie clip with an input text box in it. It's going to be a "Make your own comic" game, where you can type in the speach bubbles what you want the characters to say.

View 7 Replies

Actionscript 3 :: - Library To Make Draggable / Resizable / Rotatable Objects In Flex?

Apr 1, 2010

I would like to have in my Flex application the ability to post objects (for instance images or text items) where user can drag/drop for absolute positioning on the screen, resize it and rotate it (although not high priority). I'm wondering if there is a library that would do so out of the box or do you recommend implementing my own?

View 3 Replies

ActionScript 2.0 :: Controlling Duplicate Movieclips - Communicate With Those Clips Specifically To Make Them Draggable

Aug 5, 2004

how to communicate with those clips specifically to make them draggable and also to change the _rotation with Key.Right, Key.Left.

View 7 Replies

ActionScript 2.0 :: Controlling Duplicate Movieclips - Make Draggable And Change The _rotation With Key.Right, Key.Left

Aug 5, 2004

I found the tutorial on duplicating movieclips, especially the line-by-line translation of the code. how to communicate with those clipsïż½specifically to make them draggable and also to change the _rotation with Key.Right, Key.Left.

View 7 Replies

Make An Invisible Rectangle On Stage?

Oct 9, 2007

how to make an invisible rectangle on stage that could be clicked for example

View 0 Replies

ActionScript 2.0 :: Make The Round Rectangle?

Aug 11, 2008

i making a full flash web site. and i have a 1 problem. that is how can i make round Rectangle in AS2.0.

View 4 Replies

ActionScript 3.0 :: Make A Rectangle Display Object?

Jul 15, 2009

I currently have some Flash code that adds a rectangle movie clip from my Library ("MaskRectangle") to use as a mask:

private function makeMask(w:Number,h:Number,posX:Number, posY:Number):void {
var msk:MaskRectangle = new MaskRectangle();
container.addChild(msk);
msk.x=posX;

[Code]....

View 5 Replies

IDE :: Make A Rounded Gradient Rectangle Programatically?

Mar 6, 2009

I'm trying to achieve a roundedRectangle in gradient by using just code but i'm getting stuck.I was able to achieve the gradient part but adding the rounded piece its difficult, please see me code,

Code:

package com.callwave.web.fuze.view.skinLibrary
{
import mx.core.UIComponent;
import flash.filters.DropShadowFilter;
import mx.graphics.LinearGradient;

[code]....

View 1 Replies

ActionScript 3.0 :: Rectangle - How To Make Boundary Fill In Flash

Oct 29, 2009

How to make boundary fill in flash, like paint brush. If I click on any position bounded area will be filled with particular color. I have tried to make it
import flash.display.Bitmap;import flash.display.BitmapData;
var bmd1:BitmapData = new BitmapData(20, 20, false, 0x00000000);
var bm1:Bitmap = new Bitmap(bmd1);this.addChild(bm1);
function boundary_fill(x:Number, y:Number,  fcolor, bcolor){
[Code] ..... 
I have rectangle now I want to fill it with red color but it show attach overflow error .

View 5 Replies

Make The Menu Bar - Where The Rectangle Slides Onto The Word Which The Mouse Is Over?

May 28, 2009

In [URL], first off, how big is the dimensions of the site? Also, would you know how to make the menu bar, where the rectangle slides onto the word which the Mouse is over?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved