Flex :: Get Global Coordinate Position Of A Component?

Aug 9, 2010

In flex, how to get global coordinate position of a component?

View 1 Replies


Similar Posts:


Flex :: Get Global Y Coordinate Of Datagrid Selecteditem?

Aug 5, 2011

Here's the situation: I have a populated datagrid and I want to move a form to be inline (same y position) with the datagrid's selectedItem. I cannot rely on a mouseClick event because the selected item may change with a keyboard event. The datagrid does not have an itemRenderer, just plain old dataField.Anyone done this before?

Here's some stubbed out example code for all those interested based on Jacob's answer.

[Code]...

View 3 Replies

Flex :: Onmouseclick - Global Coordinate Value On Mouse Click

Jul 22, 2010

I am using event.event.localX to get the x-axis but it is with reference to local coordinates. How can I get or pass the value of the HBox's xAxis that is clicked by the user so that I can add it in the xAxis of the local coordinate. In other words, I need the global coordinate value? (i.e. x-axis & y-axis)

View 1 Replies

Flex :: Move Coordinate Position Of Flash Download Progress Bar?

Oct 12, 2011

I am extending the Flash DownloadProgressBar component for use as a preloader with Flex. Is it possible to override the x and y coordinate position of the progress bar? (the default is to center the bar)

View 1 Replies

Copy X And Y Coordinate From One Flex Component To Another?

Mar 17, 2010

I would like to base one component's x and y cooridnates according to another, I tried using the binding notation but it doesn't seem to work

[Code]...

View 1 Replies

Professional :: Possible To Set Coordinate System In Flash To Global?

Jul 13, 2010

trying to located imbedded movie symbols @ an exact location (relative to the root) and the X & Y values differ depending where the higher lvl movie symbol is located.

View 5 Replies

Flex :: Get Global X,y Position,when Clicking In A Datagrid Cell?

Feb 2, 2010

How we get global x,y position,when we are clicking in a datagrid cell.

View 1 Replies

Flex :: Getting The Global Coordinates Of A Component?

Dec 15, 2011

I have a texInput component,which is placed inside containers like following

<s:BorderContainer ...>
<mx:VBox ...>
<mx:HBox ...>

[code].....

View 1 Replies

Flex :: Bind To Global Variables Inside Component?

Aug 19, 2009

I've developed a component which is a combination of a few items (canvas, labels, etc...) but when I try to bind it to a variable such as: {stationXML.getItemAt(1).AAA.@value}, it doesnt work. Before I combined all the items in a component, they were all in the main MXML file at which time they worked. Not sure if it matters, but the "stationXML" arraycollection variable is declared inside the file "Station.as".

View 2 Replies

Flex :: Getting The Global Coordinates Of The Visible Area Of A Component?

Oct 19, 2010

I 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?

View 2 Replies

Flex :: Getting The Global Coordinates Of A Component+flex?

Feb 20, 2012

I have a texInput component,which is placed inside containers like following

<s:BorderContainer ...>
<mx:VBox ...>
<mx:HBox ...>
<mx:TextInput ...>

[code]....

Now after initialization i want to get the location of my textInput with respect to Application.I tried with with localToGlobal(PointofLocalCoridnate), then it is not giving the correct location of textInput.

View 8 Replies

Actionscript 3.0 :: Position Of The X Coordinate?

Apr 20, 2009

to get the position of a movieClip in the x axis, we use: trace(movieClip.x);is there an alternative for ".x"???

View 3 Replies

Flex :: Set Bottom-left Coordinate Of Component Instead Of The Top-left?

May 12, 2010

I've some components with dynamic heights. They have to be aligned with respect to the bottom of my canvas container, so I cannot set the same y for all components.

I could compute their heights and successively set the y but I was wondering if there was an easier way to do it.

View 2 Replies

ActionScript 3.0 :: Get Y Coordinate Of Text Baseline Position?

Mar 21, 2011

I'm trying to measure the y position of a single line text field, specifically at the baseline position, i.e where the bottom of the letters without tails like 'y' has sit. I guess I either need to know the y position at baseline or the height of the font not including the stuff under the baseline.

The reason I'm needing to do this is that I'm using alive pdf and i'm trying to add text in the same relative position on the pdf as the window that the user designs something, and alive pdf's addText function sets y a the baseline position it seems.

View 1 Replies

Actionscript 3 :: Position A Component In Flex That Is Fixed?

Nov 23, 2011

Just like in HTML / CSS you can set the position of a div to be 'fixed' using css. For example, a header that is fixed at the top of the web page when the user scrolls down the webpage.

Is this possible in Flex?

I have had a look at the

VDividedBox

control which kind of does what I'm after but don't like the 'divider'.

View 2 Replies

Flex :: Mobile: Can't Position The Component Properly In Titlecontent Area Of ActionBar

Apr 5, 2012

Things go weird when i tried position a button in titleContent of ActionBar. Set both the "left" and "horizontalCenter" can't move my button.Code as below:

<s:titleContent>
<s:Button label="HELLO" left="50"/>
</s:titleContent>

How can I position a Button at the middle of this Actionbar??

View 1 Replies

ActionScript 2.0 :: Get The Global Position Of The Movieclip?

Oct 23, 2003

I have one movieclip A within another movieclip B , and I use button to move movieclip B up and down. Then how can I get the position value of the movieclip A ( the global position not the relative position to movieclip B ).

View 3 Replies

Actionscript 3 :: Find Coordinate Of Child In Its Parent's Coordinate System?

Mar 31, 2010

I have 3 square. smallest square s3 is inside s2. s2 is in side s1. each is 10px larger [code]how can I find the coordinate of child in its parent's coordinate system?

View 1 Replies

ActionScript 3.0 :: Nested Movieclip Global Position (with Scale)

May 18, 2010

Let me try my best to explain this... On the stage I have a master movieclip, for explanation purposes, let's call this movieclip "body". Nested inside of body are several other movieclips (we'll call them anatomy items like: arm, hair, foot, etc) Now let's say we scaled body to 200% (body.scaleX = body.scaleY = 2.0)

When I run localToGlobal on one of the nested anatomy movieclips (e.g. arm), actionscript is returning the x and y values of the initial state, not reflecting the scale of body and how it actually caused the arm's position to shift globally.

View 0 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click?

Sep 23, 2009

Does anyone know the code for finding the global positioning of X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it,so underneath the buttons are still rotating so other people can click them where they are?

to explain the context, I'm trying to design a mock up of a circular interactive table Dynamically placing movie clip at the angle and global position of a mouse click (button) which is constantly rotating.when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the top.

I've included my .fla file which shows the four buttons moving and a little diagram explaining what I'm trying to do.

View 3 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click

Sep 23, 2009

Does anyone know the code for finding the global positioning of X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it, so underneath the buttons are still rotating so other people can click them where they are?

I'm trying to design a mock up of a circular interactive table when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the top.

I've included my .fla file which shows the four buttons moving and a little diagram
explaining what I'm trying to do.

View 1 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click (button) Which Is Constantly Rotating?

Sep 23, 2009

Does anyone know the code for finding the global positioning of X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it (so underneath the buttons are still rotating so other people can click them where they are)to explain the context, I'm trying to design a mock up of a circular interactive table when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the topI've included my .fla file which shows the four buttons moving and a little diagramexplaining what I'm trying to do.

View 5 Replies

How Do Flex Developers Coordinate With Designers

Oct 18, 2010

I've usually designed Flex applications myself but this time I'll need a designer to assist with skinning the application. I've worked with this designer for a while, and we could work well on an HTML/CSS environment. He can't code, he sends me sliced PSDs which I could convert to clean code. But I'm not sure how to have him assist me with Flex UI as he's not familiar with the components.How do you guys interface with designers for your applications?

View 2 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

Flex :: Mystery Coordinate Offset On GetCharBoundaries?

Jun 19, 2009

I've ran into a weird problem with getCharBoundaries, I could not figure out what coordinate space the coordinates returned from the function was in. What ever I tried I could not get it to match up with what I expected. So I made a new project and and added simple code to highlight the last charater in a textfield, and all of a sudden it worked fine. I then tried to copy over the TextField that had been causing me problems, into the new project. And now the same weird offset appeared 50px on the x axis.Everything else was spot on. So after some headscracthing comparing the two TextFields, I simply can not see a difference in their properties or transformation.

So I was hoping that someone might now what property might affect the coordinates returned by getCharBoundaries.

View 4 Replies

ActionScript 3.0 :: Get Global Position Of Movieclip Inside A Movieclip?

Feb 10, 2010

I have a movie clip called "myMC". I set its x value as such:

[AS]
var myMC:MovieClip = new MovieClip();
addChild(myMC);
myMC.x = 100;

[Code]....

I know I could proboly acheive this with a math equation but is there a function that can get the exact global position of "myShape"? So that I can position another movieclip or sprite around that movieclip?

View 3 Replies

Flex :: Keep Track Of All The Changes Of Coordinate System Origin When Writing Components?

Dec 23, 2010

I am faced with a dilemma. I am writing components with nested components. What sort of coordinate system scheme should I implement? I want to be able to pass points to the components without having to worry about where the origin is in absolute terms. At the same time, I want to have some sort of encapsulation when it comes to origins and stuff. Is there any sort of guideline to follow when it comes to nested components and such?

View 1 Replies

Professional :: Assign A Global Var To Each Global Filter Var To Determine If It Should Be Shown Or Not

Apr 2, 2010

I have some filters set up, and have assigned some global vars to them, which I then use in my Filters code to display the filters: myText:Filters [globals.data.glow1, globals.data.stroke1, globals.data.shad1] Works perfectly. Now I want to assign a global var to each global filter var to determine if it should be shown or not. So...

[Code]...

View 7 Replies

AS3 :: Setting Scroll Position For ScrollPane Component?

May 19, 2009

I ve got a series of frames, each with its own instance of a scrollPane called actionText. When navigating from frame to frame I want the vertical scroll position of actionText to reset to 0.For some reason these separate instances of the component are inheriting scroll positions from one another,for example,if I scroll to 50% in one frame, jump to a new frame with a new instance of actionText, that new instance starts at 50%, not 0.

I should be able to set the scroll position by actionText.vPostion = 0 but I get Position is an undefined property of the object actionText .Roll over either the star one or star twotabs and select any action item, scroll the text down (actually a pdf converted to swf), then navigate to another action item and the new scrollPane does not default to 0. Only stars one and two are coded.[url]......

View 3 Replies

Change Position Of FMS Chat Component In Different Frames?

Aug 18, 2010

I have developed an application using various FMS2 Communication Components. One of those is the Chat component. The application has various display modes (minimized, normal, maximized). These display modes require the Chat component instance to be resized and repositioned on the screen. I took the approach of having a separate frame represent each of the display modes.

The problem I am having is that the Chat component won't resize or relocate from the size/position on the first frame. The visual layout isn't respected, and calling this.moveTo(x,y) has no effect either. The only way I can get the component to have the desired behavior is to comment out the last line of the Chat component actionscript[code]...

View 2 Replies







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