Flex :: Actionscript - Rotating An Ellipse From The Bottom Instead Of Middle

Jun 18, 2011

got another little provlem with flex ... i've made a ellipse and i want to rotate it dynamicly. made a h:slider which change the rotate="" value of the ellipse. and it rotates fine. but the rotation point is in the middle of the ellipse.

i want it at the bottom (y) and middle (x).

there are some transformY and transformX arguments for the ellipse, but they have no effect?

my function

private function rotateRadius():void {
if(wind.selected) {
selected.radiusDisp.rotation = radiusRotate.value;

[Code]....

View 2 Replies


Similar Posts:


Actionscript 3 :: Creating A Flash Drag And Drop Jeweler Game - Rotating The Ellipse?

Nov 22, 2011

I'm trying to design a child's bracelet game, where they can drag and drop beads onto a string (circle) but I'm having trouble snapping the object onto my ellipse (circle), Currently the ball (bead) is stuck rotating around the ellipse, but I need it and multiples to be dragged from the bottom of the screen and then be able to snap to the ellipse once its closer, basically so that the child can choose a bead and drag it onto a string, to create their very own bracelet,

[Code]...

View 1 Replies

ActionScript 2.0 :: Rotating Movieclip Around Its Middle?

Jan 7, 2011

How do I make an mc constantly rotate? I know this must be simple but i dont know how to do it. I just want it to rotate around its middle. How would i do this?

View 1 Replies

Actionscript 3 :: Flex : Draw Ellipse On Image?

Jul 18, 2011

I have an Image object, and i wish to draw an elipse on it.

i have tried with

imageObj.graphics.beginFill( 0x0000FF, 0.5 );
imageObj.graphics.drawEllipse( position.x, position.y, 10, 10 );
imageObj.graphics.endFill();

but it doesnt draw anything at all.

how to draw graphic primitive on Image object ?

View 1 Replies

Flex :: Access The Property Of An Ellipse Inside A Group?

Jan 3, 2012

Let's say I have the following MXML:

<s:Group id="b01">
<s:Ellipse x="267" y="96" width="30" height="28">
<s:stroke>[code]....

And that I have a dozen more of these groups with different ID's. How can I modify the fill color of each Ellipse using ActionScript? I know I can do something like this:

b01.getElementAt(0).width;

And that will give me the width of the Ellipse. But how can I access the SolidColorStroke color or the SolidColor fill?

View 2 Replies

Flex :: Insert Text In The Middle Of String

Mar 18, 2010

can you please help me with this issue the String class does not have insert method it has only replace :( .

what I need is:

- if I have string "I stackoverflow"
- I need to insert "love " at index 2 to have "I love stackoverflow"

so what I need is insertAt(index, String)

View 2 Replies

Flex :: 4 - Which Middle-tier Framework Has Better Integration

Apr 2, 2012

I am about to start a Flex project. For the GUI, I'll follow the Cairngorm 3 guidelines and use (most likely) Parseley. I have experience with Grails, Spring, Seam and also have played with PHP. So, which one of these framework has a better integration with Flex? By "better integration", I mean, in the order of importance, coding-friendly, documentation, maturity, size of community (of the integration framework/library), support.

View 2 Replies

Flex4 :: Placing Flex-component In Middle Of Screen

Sep 6, 2011

When using BasicLayout (i.e. absolute positioning) - what is the best approach to place a Flex component in the center of the application?In the test case below I'm using x="{width/2}" but this gives me at least 2 problems:How do I account for the component dimensions (the ProgressBar in the test case)?Is the binding {width/2} a good idea to use? Wouldn't it send unnecessary DATA_CHANGE events in some cases?And finally I wonder, how this all applies to full screen applications using StageScaleMode.SHOW_ALL - because currently my application is aligned to the top-left in the full screen mode and there is a white dead zone on the right of it. (Which is at least a change from pure Flash/AS3 behaviour, where the full screen content is displayed in the center of the screen and 2 dead zones on the left and right).[code]

View 2 Replies

Flash :: Flex :: Interactive Console In The Middle Of Debugging?

Jan 25, 2012

I tried to search, but couldn't find anything on the topic. In many languages in eclipse you can execute code in the middle of debug session. Usually it's done through the console.

Is there a way to do the same thing in the Flash Builder? EDIT: Ok, i'll to explain better. Is there a way to execute some code in the middle of the debug session? Like in python you can type in console in pydev(eclipse) when the program is paused(being debugged) and run any code you want.

View 1 Replies

Flex :: Ensure That Text Elements Are Truly Aligned To The Vertical Middle?

Sep 13, 2011

If I want to align things vertically in a container, I'll use verticalAlign="middle", but this doesn't exactly solve the problem of truly aligning text vertically. Text is always too high vertically, so in the past, I've just adjusted paddingTop and paddingBottom to compensate, but that doesn't work as the font for _sans differs from operating system to operating system.

Given the following layout code, you'll see the problem:

<?xml version="1.0"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code]....

What happens is pretty clear. The horizontal line gets aligned to the exact middle of the box, but the text is offset by some arbitrary amount. I assume that this is because of the text baseline alignment or something. Is there a way to fix this regardless of the font size and face? I'd like to have the line essentially go right through the middle of the text, ignoring the extra space possibly needed for below the logical line of text (ie: ignore the bottom part of "g's" and "j's" when laying things out).

View 3 Replies

ActionScript 2.0 :: DrawingAPI An Ellipse?

May 17, 2005

I want to draw a ellipse using a function that looks like this :

Code:
function crearecerc(mcClip:MovieClip)
{

[code].....

View 1 Replies

ActionScript 3.0 :: Convert Ellipse To Isometric?

Aug 15, 2010

how to convert an exact point on a 2d grid to an isometric grid with the following function:

code:
function convertToIso(pointSent:Point) {
var returnPoint:Point=new Point((pointSent.x- pointSent.y),(pointSent.x+pointSent.y )/2);

[Code].....

View 1 Replies

ActionScript 2.0 :: DrawingAPI An Ellipse Using A Function

May 17, 2005

I want to draw a ellipse using a function that looks like this :

[Code]...

This function creates a circle but I want to create an ellipse knowing just the center , right distance and down distance like in this figure : figure mcClip is the movie clip. the center and the distances I take from a input text.

View 1 Replies

Flash - Trig Equations To Create Ellipse

Feb 13, 2011

I am working with this function that moves an object around a center point in a perfect circle and am trying to modify it to move it in an oval shape that is 1/2 as high as it is wide?

Basically, I have a set speed
var myVelocity:Number = 0.25;
Then I calculate my Sine and Cosine based on the speed
var myCos:Number = Math.cos(myVelocity);
var mySin:Number = Math.sin(myVelocity);

Then I figure the distance of the the object from a fixed center points along each axis and
var x1:Number = myBall.x - centerX;
var y1:Number = myBall.y - centerY;
var x2:Number = myCos * x1 - mySin * y1;
var y2:Number = myCos * y1 + mySin * x1;
myBall.x = centerX + x2;
myBall.y = centerY + y2;

I have another function that figures x and y based upon myBall.x = centerX + cos(angle) * radius; that is easy enough to modify the radius to become an ellipse, but is there an easy way to mod the one above to become an ellipse? I want to do this to be more efficient with the code and reduce the number of math function calls

View 1 Replies

ActionScript 2 :: Tween Around Ellipse From Different Start Points

Jun 14, 2011

I have 7 movieclips on stage I want to tween around an ellipse from different start points. I am having lots of trouble doing this. I used a circle formula at first and then divided the y value by the width of the ellipse over the height. This sort of worked but after every rotation the y value was a little of. That code is:

this._x += (Math.cos(angle * Math.PI/180) * radius);
this._y += (Math.sin(angle * Math.PI/180) *radius)/1.54;

I also have trouble finding the angle of the start point, if it is off they won't travel in the same ellipse but they all have different starting angles.

View 2 Replies

ActionScript 3.0 :: Papervision Camera Orbit In Ellipse?

Oct 14, 2010

I'm in the final stages of my Papervision project and I need to have the camera orbit around its target in an ellipse rather than a circle on a mouse drag. The tricky part is I already am using some complicated logic to get it easing as well and I need them to work together.

ActionScript Code:
private function upHandler(event:Event):void {
isCameraRotating = false;
} private function downHandler(event:Event):void {
isCameraRotating = true;
previousMousePoint = new Point(mouseX, mouseY);
[Code] .....

View 8 Replies

ActionScript 3.0 :: [papervision3d] Draw The Outine Of An Ellipse?

Sep 28, 2009

have been messing around with ppv3d for a small project whereby a ball orbits some text. I would like the path of the orbit to be a visible line with a glow effect on it.at the moment I have a sphere located on an invisible spinning cylinder, with the text in the middle so the sphere orbits it. I've tried drawing lines from one point to another on the cylinder but it's not working.

View 2 Replies

Flex :: Fill An HBox In From The Right - VBox From The Bottom?

Jan 27, 2010

I only really need the HBox answer but figure that if we get a good answer in here I'm trying to do a similar thing with a VBox. It would be nice to know this in both actionscript and MXML. So I have an HBox that I want some text aligned from the left and some radios from the right. Like so:

[CODE]...

View 2 Replies

Flex :: Any Way To Bottom Left Align Components?

May 4, 2010

Any way to bottom-left align components? An <HBox .../> nested in a <Canvas .../> doesn't work because the elements in the HBox are top-aligned instead of bottom aligned.

For example, I'd like my components to be aligned like this:
+-------------+ <-- container
| components |
| | V |
| V +--+ |
| +-+ | | |
| +-+ +--+ |
+-------------+

View 2 Replies

Flex :: Flash - Scroll Page To Bottom?

Jun 16, 2010

I have a Flex application, I want to scroll the page to bottom when a button is pressed.Scroll bars is added by browser, they do not belong to flex app or component.I can do this by javascript but is there a way to do this with action script?

View 1 Replies

Flex :: Programmatically Scroll To The Bottom Of A Mx:TextArea?

Jun 22, 2010

Consider the following mx:TextArea <mx:TextArea id="textArea"/>

periodically being updated with new lines of text using ..
textArea.text += newLineBeingAdded + "
";

how do I make sure the textarea is scrolled down to the bottom so that the last line added is visible to the user?

View 4 Replies

Flex :: Rounded Bottom Corners On Window?

Sep 30, 2010

I'm making a flex 3.5a/air2 application and I've made a popup window but I can't seem to get its bottom corners rounded. Setting cornerRadius seems to only affect the top corners. There doesn't seem to be a roundedBottomCorners property like there is for panels, and adding a controlbar with a cornerRadius also has no effect.

View 2 Replies

Actionscript 3 :: Flex 3 Or 4. To Have TabNavigator With The Button On The Bottom

Nov 21, 2010

Is it possible to place the Tabs on the bottom of a TabNavigator?

Currently, I want to see if Flex4 can cretae tabs for me positioned on the bottom.

Currently I can use [URL] for his positionedTabNavigator and yet it looks wonky, when I apply rounded corners on the tab, it rounds the wrong end.

View 1 Replies

Flex :: Open Window On Right Bottom Corner?

Mar 1, 2011

I am developing a flex air application and i want to it open in right bottom corner as notification..How do i do this.

View 1 Replies

Flex :: BorderContainer Corner Rounding Only At Top Or Bottom

Jul 9, 2011

I need to round at only the top or bottom of a border container not all four corners, is their some CSS that I can use or do I have to create two new skins. I was reading their used to be a property for this for HBox back in the old days, is their not a property for BorderContainer now?

View 1 Replies

Flex :: Get ActionBar At The Bottom In Mobile Application?

Aug 22, 2011

ViewNavigator has ActionBar on top by default. I want move at the bottom.

navigator.actionbar.y=415 //gets actionbar at bottom

but in next view it comes back on top. You can set height in each view but it will show bar at the top for few seconds before bring back to bottom.

View 1 Replies

Flex :: TabNavigator - Gap Between The Top Of The List And The Bottom Of The Tab Menus?

Oct 23, 2011

Apologies for the rookie Q - trying to learn Flex/Actionscript and just having some basic layout issues. (Using FlashBuilder 4, with Flex 4.5 HERO SDK) I have a TitleWindow, and have embedded a mx:TabNavigator within it. I have then placed a list within the first tab and set its width/height to 100% However, there appears to be a gap between the top of the list, and the bottom of the tab menus. Why is this happening and what is the best way to ensure the top of the list aligns up flush with the top of the VBox?

[Code]...

View 1 Replies

ActionScript 2.0 :: Rotating Menu With Non-Rotating Labels?

Nov 1, 2005

I have a rotating menu that sets the selected button to the 3:00 position once clicked. I need the labels for the buttons to stay in the upright position as they rotate with the button. I have attached an image. Anyone know of an action script that would keep the labels upright?

View 8 Replies

ActionScript 3.0 :: Connect My Text Box Edges As A Circle Or Ellipse?

Sep 7, 2009

In my application i am having one input field and the text fields edges are connected,that means with in one ellipse[movie clip] the input field will appear,if i increase the width and height of the field then ellipse should be increase as per the size of input field.

View 1 Replies

Flex :: Positioning AIR Desktop App Window To The Bottom Right Corner?

Aug 18, 2009

how this can be achieved? It needs to work on all resolutions .. is there any parent/stage object available to find out the resolution of the system?

View 3 Replies







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