ActionScript 3.0 :: Delete A Particular Part Of A Shape?

Jul 1, 2011

I am working in a complicated shape manuplation project. In that user can join 2 shapes , he can duplicate, he can delete a particular part of a shape ect;
 
In the following code copies a shape and adds to stage.
  
import flash.display.Shape;
var sh1:Shape = new Shape();
sh1.graphics.lineStyle(2,0x000000);sh1.graphics.drawRect(45,45,100,100);addChild(sh1);trace(sh1.x);trace(sh1.y);sh1.rotation = 45;
 
[Code]... 
 
In this all the properties of sh1 copied except the rotation value. But i dont want to assign it directly like sh2.rotation = sh1.rotation;

View 3 Replies


Similar Posts:


Delete Part Of A Motion Tween?

Sep 10, 2010

I've watched the tutorial video's and searched the thread -

I want to delete part of a motion tween ... I only seem to be able to delete all of it.

View 6 Replies

Flex :: Delete Part Of A String In Actionscript?

Mar 20, 2010

So my string is something like "BlaBlaBlaDDDaaa2aaa345" I want to get rid of its sub string which is "BlaBlaBlaDDD" so the result of operation will be a string "aaa2aaa345" How to perform such thing with actionscript?

View 1 Replies

ActionScript 2.0 :: AS3: Delete The Specific Shape?

Sep 29, 2009

I've made a functions which creates rectangles:

function makeSquare(sgu:String,clo:uint):void {
var squ:Sprite = new Sprite();
addChild(squ);

[code]....

Now my problem is; that i'm from another function would like to make a call, that deletes a specific rectangle previously generated by the above function.

View 9 Replies

Delete A Shape For Real In JSFL?

Sep 24, 2009

I have this big JSFL project I'm working on that involves deleting a raw shape (ungrouped) and then replacing it with another one. The problem is that the original shape doesn't always actually get erased (I haven't figured out the precise circumstances where this happens yet though).  Even if it does get deleted, though, when I draw the new shape on the stage (using Path.makeShape), the new shape has extra vertices where its edges cross those of the original shape. So even if I end up with the correct-looking shape on the stage without the one that was there before, my shape I just created is likely to have extraneous vertices (and I need the vertices to be unchanged).

View 2 Replies

ActionScript 3.0 :: Shape Displays In One Part Of Program, But Not In Other

Nov 16, 2011

I have multiple simple audio players displayed on the screen, each contained in an HBox. Each audio player has a Waveform, a Container that displays a waveform Shape that is drawn from samples.

The issue I've been having is that in one part of the program, where multiple audio players are just added to a tab from top to bottom, the waveform displays fine, as well as the bar that tracks the current position of the audio playing (a child of WaveForm). However, in the main part of the interface, where audio players are indented such that each audio player has a visible "child" audio player that can be expanded/hidden, the WaveForms don't display at all.

The strange thing is that these sound player objects are being created by the main tab where the waveform isn't displayed, and are occasionally sent to the other tab where the waveform works - they're the exact same objects, and the WaveForm objects retain the same parameters and visibility etc when they're passed, they just aren't drawn. In the tab where they aren't being drawn, the only additional parent graphical component is an HBox containing all of the sound players - I can't figure out for the life of me if I'm missing some sort of parameter or what.

View 0 Replies

Flex :: Deleting Row Of Datagrid By Clicking A Button Part Of That Row In Delete Column?

Nov 23, 2010

I want to delete a row of my datagrid when someone click a button part of that row located below Delete Column. I tried many different way one of those were to

<mx:DataGrid id="userGrid" dataProvider="{userGridData}" width="800" height="500" itemClick="userGrid_itemClickHandler(event)" creationComplete="userGrid_creationCompleteHandler(event)">
<mx:columns>

[Code].....

The item render ev.renderers.UserGridEditRender has a delete button listing for click event it basically do userGridData.removeItemAt(userGrid.selectedIndex);
(UserGridData = Data provider of grid with id "userGrid") But whenever I click the button an exception is throw

RangeError: Index '-1' specified is out of bounds.

View 1 Replies

ActionScript 3.0 :: Delete Line Shape If Button Is Pressed Again?

Mar 8, 2010

I have a line that is being drawn following a route when a play button is pushed. At the end of the movieclip the whole route is shown with the beginning and end. How do I clear that line if the user hits play again? Right now it connects the beginning and ending points and creates another line on top of the old one.

Actionscript Code:

var shape : Shape = new Shape();shape.graphics.lineStyle( 4, 0x9C1E26);shape.graphics.moveTo( arrow.x, arrow.y );addChild( shape );addEventListener( Event.ENTER_FRAME, loop );function loop( event : Event ) : void{    shape.graphics.lineTo( arrow.x, arrow.y );}

View 1 Replies

Actionscript 3 :: Making A Delete Button To Delete Text In The Inputtext Field

Nov 12, 2010

I got these four errors when I tried to create a button on the stage that would delete the text I inputted in the inputtext(ti). Based on the scripts I have and the errors, what should I write to create the delete button?

[Code]....

View 2 Replies

Flex :: Combobox Backspace Or Delete Key Does Not Delete Highlighted Text

Mar 26, 2010

I am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st'

1) the data provider is filtered to show all items starting with 'st'
2) text is set to auto-suggest string such that the un-typed part is highlighted.

So for instance, the combobox text may contain st'ackoverflow', where 'ackoverflow' is highlighted using setSelectedIndex()When I hit back-space or delete, and check the 'this.text' value, I expect that the last un-highlighted character ('t' in the above case) gets deleted and the data provider is filtered to show all items starting with 's'. However the text property contains 'st', as before

View 2 Replies

ActionScript 3.0 :: New Shape - 1046: Type Was Not Found Or Was Not A Compile-time Constant: Shape

Nov 30, 2009

ActionScript Code:
package {
import flash.display.MovieClip;
public class Base extends MovieClip {
public var baseHP:int = 50;
var newRect:Shape = new Shape();

1046: Type was not found or was not a compile-time constant: Shape. 1180: Call to a possibly undefined method Shape. What does it mean by "undefined method"? I am somewhat of a newby, so sorry if there are any stupid errors

View 1 Replies

Professional :: Adding Shape Hints Makes Shape Disappear In Between Frames

Jun 22, 2010

Whenever I add shape hints to a shape tween the shape disappears in the between frames. I am using CS5 on Vista. I using files from [URL]to practice.

View 2 Replies

ActionScript 3.0 :: Draw The Shape Of A Existing Movieclip Which Is Irregular Shape?

Oct 11, 2011

need to draw the shape of a existing movieclip which is irregular shape.

View 2 Replies

ActionScript 3.0 :: Draw The Shape Of A Existing Movieclip Which Is Irregular Shape

Oct 11, 2011

need to draw the shape of a existing movieclip which is irregular shape.

View 1 Replies

ActionScript 1/2 :: Shape Colliding Another Shape, Not The Rectangleof A Movieclip?

Jul 9, 2009

Id like to know if there is a way to do a shape hitTest.Not as the normal hitTest would do, but shape colliding another shape, not the rectangleof a movieclip.It can be in a movieclip.

View 23 Replies

Regex :: If Part Of Substring Is True Then Replace Part Of Substring With Running Var?

Mar 9, 2011

Ok perhaps ive bitten off too much here...I know you are not supposed to parse xml/html to regex but the thing is there just arent many other options.Im using AS3.im parsing the source of textflowlayout text to a different format.

string to parse :

< fontFamily=Verdana encoding=unicode fontWeight="bold"> some text < fontFamily=Verdana encoding=unicode > some text < fontFamily=Arial encoding=unicode fontStyle="italic"> some text < fontFamily=Arial encoding=unicode fontWeight="bold" fontStyle="italic"> some text

what i really need is:

< fontname=Verdanabold encoding=unicode> some text < fontname=Verdana encoding=unicode > some text < fontname=Arialitalic encoding=unicode > some text < fontname=Arialbolditalic encoding=unicode > some text

logically i think of it as taking apart the string into substrings

checking if there are fontWeight or fontStyle in the substring

if there is then appending the font name with the weight or style so so that the font name becomes font NameWeightStyle.then rebuilding the string.The font could be any font with variouse styles or weights..so far:

pattern = /<(.*?)>/gixsm;
var matches:Object = pattern.exec(str);
var finalstring:String = "";[code]...........

View 1 Replies

Flash :: Flv/video Player Which Allows To Seek For Part Of Not Loaded Video Part?

Mar 11, 2012

I'am looking for a flv/video player which allow to seek for not loaded part of the video,just like on youtube.

View 1 Replies

Professional :: Change The Shape Of A Shape?

Oct 19, 2010

using the shape tool you can draw basic shapesthen using the subselection tool you can re-shape them by relocating certain points

What i want to do is create a tween whereby one of the points is movedthe problem is you have to convert to a symbol first and after you have done that you cant change the shapes shape.so how do i go about using a motion tween to change the shape of a shape?

View 1 Replies

ActionScript 3.0 :: Multiple Textbox At Run Time - Delete A Textbox By Delete Key

Jul 30, 2009

i have ade moultiple textbox at run time now i want to delete a textbox by delete key how it is possible .

View 4 Replies

Xml :: Flex - Nodes Will Not Delete Despite Calling "delete"?

Feb 9, 2011

I'm trying to use the delete keyword to remove nodes from an xml file and it just plain won't work.Here's a stripped down example of what I'm working with. Every node has a child named "deleteme". If its value is equal to 1 I want to remove it from the xml file. If its anything else I want to leave it be. The delete method is deffinately gettig call but it's having no effect.

<?xml version="1.0" encoding="utf-8"?>
<stuff>
<i>

[code]......

View 1 Replies

ActionScript 3.0 :: Delete A Mc With Delete Key?

Sep 17, 2009

i have A,B,C,D moveiclip
  
now i want to delete a mc with delete key .if i select A then press delete key it will delete .

View 4 Replies

ActionScript 2.0 :: How To Add The PHP Part

Jul 26, 2009

Here is the code I have in my flash

System.useCodepage = true;
send_btn.onRelease = function() {
my_vars = new LoadVars();

[code]....

I need help figuring out how to add the PHP part, I have no idea about how to script it. I looked over some tutorials but I just don't understand it. I got this code from when I was in college, I used it before but I can't find the original PHPcode I used. It's for my website, just a simple email form with a name, email, and message

View 2 Replies

How To Delete The Line

Oct 20, 2009

I draw a line from point A to point B (lineMove & lineTo). Am I able to delete the line by either a button or other way ?

View 7 Replies

ActionScript 2.0 :: How To Delete A MC

Oct 19, 2003

I have a movie containing a movieclip in which an empty movieclip is created with AS, showing an externally loaded pic.At the click of a button i want the pic to unload again, but it does'nt work. I tried removeMovieClip and Delete.

View 3 Replies

Button To Go To Different Part Of Timeline?

Apr 9, 2009

I am using a template that the buttons have actionscript in them already. I tried replacing "get url" with "gotoAndPlay" a certain frame. I need the button to go to frame 113 after i click on this button.

on (rollOver) {
if (_root.link<>p) {
gotoAndPlay("s1");

[Code].....

View 2 Replies

Made A Part With Photoshop?

May 13, 2009

I'm constructing a site, at least I'm trying :P I made a part with photoshop but now I'm continuing in iweb because I thought oh it's ease to insert a photo page, because that's the only reason. I'm a little bit a noob in html and php and so on and also in flash so that was the solution at least that was wath I taught... :roll: this is how it looks in iweb:that is how it should look on the internet, it does as you can see here:but when I click on a picture to enlarge normally you should get a nice screen but I have this:As you can see that is a problem, everything moved and so on

View 1 Replies

Wow The Preloader Is The Hardest Part

Aug 12, 2009

Ok i have been making a website and i need to put a preloader in that loads my website. I have downloaded 3 different preloader and replaced the pic that they had in with my own and when i do that it either no longer works or it has a white screen until about 50% then it does work! WTH is going on??????

View 7 Replies

ActionScript 2.0 :: CS3 Removing Part Of Mc Img

Nov 3, 2009

What i am trying to do is when i click on a part of an img to delete it.[code]i read on setpixels and getpixels but this did ot help.

View 2 Replies

Animating A Part Of An Image?

Oct 21, 2010

I have the attached image of a bioreactor. I want to animate the area marked with the red outline (and a cross) to be filled with a bluish transparent liquid. I am trying to create an animation for students to show how the residue in the bioreactor behaves and I have to show the animation in a real picture (cant draw).

View 9 Replies

Export Part Of Timeline

Sep 23, 2011

I am needing to export portions of my timeline as separate .mov files. Exporting the entire thing at Best quality yields too big of a file. Does anyone know how to do this from within Flash pro?

View 1 Replies







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