Flex :: Converting Ordanance Survey Coordinates Into Valid Esri Coords

Sep 4, 2011

I've been searching extensively for a way of converting from ordanance survey coords to valid esri coordinates. I've found quite a few pages that convert to lat long (if a little off) but nothing to convert to esri (which I believe is utm.)This is for use in python or JavaScript / actionscript etc - I'm not too worried about syntax more an understanding of the maths involved.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Converting Papervision Coordinates Into Cartesian 2D Coordinates?

May 3, 2010

Im making a little app in flash using papervision I want to make a regular movieClip show up in the same place as a papervision object. The coordinates seem like perspective is affecting the number displayed.

View 2 Replies

Get 3D Coords On Some Plane For 2D Mouse Coords In Flash With Away3D?

Aug 1, 2011

Waht is the right way to get 3D coords from 2D mouse coords using Away3D. (version 3.6.0) It's ambigoius problem in general, so there is restriction that 3D point belongs to some fixed plane.

There are some examples with camera.unproject and plane.getIntersectionLineNumbers methods, but they don't work if camera is rotated or plane is not trivial.

View 1 Replies

ActionScript 3.0 :: Flex - Valid JavaScript Code That Is NOT Valid Code?

Mar 12, 2010

Most JavaScript code is also syntactically valid ActionScript 3.0 code. However, there are some exceptions which leads me to my question:

Which constructs/features in JavaScript are syntactically invalid in ActionScript 3.0? Please provide concrete examples of JavaScript code (basic JavaScript code without DOM API usage) that is NOT valid ActionScript 3.0 code.

View 6 Replies

Actionscript 3 :: Convert Global Coordinates To Local Coordinates Of A UIComplenent In Flex Project?

Dec 19, 2011

I was trying to convert global coordinates to local coordinates of a UIComplenent in my flex project using below code using below code

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point

uic is UIComponent in which I have subclass of Sprite for drawing something I have set the sprite's mouseEnabled and mouseChildren to false to not interrupt the mouse event. above code is within uic's mousemove event where I was tracing the gp and lp gp was giving correct value and suprisingly lp was giving negetive values. when I move the move to the top left corner of uic i expect lp to be 0,0 but it is giving the -width of of uic. I broke my head for hours and ended up finding an alternate by using offsets. Infact my original code was much simpler like this which was same issue

var lp:Point = new Point(e.localX,e.localY);

I am not sure what exactly is causing this problem. the workaround had lot of issues and it creating a mess in my rest of the algorithms.Just now I found even more interesting thing (which is actually weird). for some reason I went and create a new lp2

var lp2:Point = new Point(e.localX,e.localY);

now surprisingly it was giving correct values as expected and I went back and changed the code as

var gp:Point = new Point(e.stageX,e.stageY); //global point
var lp:Point = uic.globalToLocal(gp); //local point
var lp2:Point = new Point(e.localX,e.localY);
var lp2:Point = uic.globalToLocal(gp);

now it is expected to have all the lp, lp2 and lp3 variables to be same but weiredly lp two is giving wrong value and lp2 and lp3 were giving correct. I am suspecting using the variable lp has something to do. I am not sure about that but above proves it so right now I am using lp2.

View 1 Replies

ActionScript 3.0 :: Flash Map (ESRI Shape File)

Nov 30, 2009

I need some idea regarding the GIS and flash I have a requirement to use .shp(ESRI shape file) and dbf file create to create a map form that any idea regarding this [URL]

View 3 Replies

Flash :: AIR, Flex - Check If Regex Is Valid?

Aug 23, 2011

i want to check in Adobe AIR if given regex is valid. I'm looking for somtehing similar like here: How to check if a given Regex is valid?

I dont want to compare regex and text-value - i jus want to check if this regex is valid. If someone type invalid regex - for example: "x{5,-3}" or "(((^^$$$)//)" or something like this i just need to communicate to him that this regular expression is not valid - its not proper regular expression.

In Java it can be done by:

[code]
try {
Pattern.compile(userInputPattern);
} catch (PatternSyntaxException exception) {

[Code]...

View 4 Replies

Flex :: Sockets And Looping - Getting The Valid Connection?

Jan 13, 2012

On my network I have a couple of pc's all running a bespoke server which will return the username of the person logged in when queried.I have the following piece of code.

private function LoopAndList():void
{
var loopSocket:Socket;
var fourthOctet:Number = 6;

[code]....

Now when this runs it doesn't work as I first thought. The iterations go though. the fourthOctet value is decremented. But somethinjg strange happens. You will notice in the above code that I have a hardcoded IP address in the loop. I have put this there to ensure that there is always a valid connection. So am aware it will always be connecting to 192.168.0.4.

But the connection only happens on the last connect call.

The ouput is:

192.168.0.6
Connecting to 192.168.0.6
192.168.0.5
Connecting to 192.168.0.5

[code]....

View 2 Replies

Flex :: When Add A Valid Statement To Code It Will No Longer Compile

Nov 22, 2011

I am having a problem with my build. When I add a valid statement to the code it will no longer complie and it fails with errors from an unrelated file.I experience these issues building with ant or building with mxmlc on the command line.Adding a valid statement to an myLittleBox.mxml will cause this error.All the errors are in ViewerMain.mxml.This file is not the main mxml file but it is referenced from the main mxml file.Before changing myLittleBox.mxml ViewerMain.mxml had no compile errors.There are no errors related to myLittleBox.mxml myLittleBox. mxml has no references to ViewerMain and only uses spark components ViewerMain.mxml has no direct references to myLittleBox.mxml. Its children's children's children would have a reference to myLittleBox.mxml.The valid statement added to myLittleBox.mxml could be many things (they all break it) including a comment.[code]

I noticed that the Model was using a constant in Viewer 1.This was causing all of Viewer 1 to be built when Viewer 2 is built.I moved the constant from Viewer 1 to the the Model (where it really should have been anyways) and my project built successfully since Viewer 1 and Viewer 2 were not being built at the same time.It makes sense that this would resolve the issue however this is just resolving a symptom of the issue.I am still very curious what was causing the the compiler to fail on ViewerMain.mxml when I add a comment to myLittleBox.mxml.I guess that it will remain a mystery for now.

View 1 Replies

Flex - List All The Valid Arguments For Setstyle() Function For UIcomponents?

Oct 25, 2010

i am working with actionscript flex and using UIcomponents i need all the valid arguments for this function for example component.setStyle("borderColor","white");

i need all valid strings for first string parameter and 2nd valid argument for there value setting,

i have some of them that are given below but i need all possible values for this function

[Code]...

View 2 Replies

Flex :: Adobe - RSL Error: The Loaded File Did Not Have A Valid Signature

Sep 26, 2011

I'm using Flex SDK 4.5 to create swf files, recently I got the following error when try to open my swf file:

[Code]...

I totally have no idea whats going on with rsl loading step. how to solve this without have to statically linking rsl into swf file?

View 1 Replies

Flex :: Declare Compile Options As Valid Symbols Under IntelliJ IDEA?

Feb 23, 2010

I've got the following Flex code in an MXML file:

<mx:Label id="lblVersion" styleName="versionID" bottom="0" right="10" text="Version { BUILD::version }"/>

where the "BUILD::version" is meant to be substituted from symbols defined in compiler options:

-define BUILD::version "'LOCAL'"

The Flex plugin doesn't seem to understand the compiler option usage syntax and flags "BUILD" and "version" as "unresolved variable or type"

View 1 Replies

ActionScript 3.0 :: Creating An Exe Survey File With Particular Features

Jan 17, 2012

I was hoping i could get some assistance. I need to create a survey as an executable file and thought of doing this in flash. There are 4 pages. 1st would have basic info and allows the user to select one of three options.. which will then direct them to the next 3 pages respectively.. eg Option 1 would be page 2, option 2 page 3, option 4 page 4.

My question is can the flash file allow the user to input text data and retain it in the file, also upload an attachment. I suppose the best way i can descibe it would be to think of it along the lines of having a word document.. so if you pretend the word docucment is the "Survey software" file.. then when you open word it has questions and hyperlinks to other pages.. and you can also insert/embed other files into it.. Then when you save and close it, its just a word document which contains other files inside. Am i completely on the wring track of thinking to use Flash to do this?

View 3 Replies

Actionscript 3.0 :: Flash Survey Form Communicating With Php

Apr 16, 2009

i keep getting this error..and nothing works..here is my php code and i have attached the fla file [code]

View 2 Replies

ActionScript 2.0 :: CS3 Exporting Flash Survey Results To Html?

Jan 25, 2010

I'm creating a Flash banner ad that has two buttons as part of a survey, "yes" and "no". I need to export the total number of Yes and No clicks to a separate html document that will display the results of the survey as they stand at that moment.

View 1 Replies

ActionScript 1/2 :: Survey With Several Multipule Choice Questions Using Radio Buttons?

Nov 10, 2009

I have created a survey with several multipule choice questions using radio buttons. I want the last page of the survey to display results to the user kind of like a Cosmo quiz.like "50% A." "25% B." "25% C." "0% D." I can't find any info on how to do this with Actionscript.

View 1 Replies

ActionScript 2.0 :: Converts 3d Coordinates To 2d Coordinates - Difference Between MoveTo And LineTo?

May 21, 2007

I was reading the 'Isometric Transformations' tutorial by Danko Kozar and I have a few questions. I understand what all the code does, but not how it does it. First of all, how does the following code work:

transforms x,y,z coordinates into Flash x coordinate
xFla = function (x, y, z) {
// cartesian coordinates[code].....

I understand that it converts 3d coordinates to 2d coordinates, but I don't understand how. What numbers whould be punched into x, y, and z to acquire certain desired effects?Also, what's the difference between moveTo and lineTo:

red line
style(1, "0xFF0000", 100);
plot(0, 0, 0);
draw(200, 0, 0);

View 4 Replies

ActionScript 2.0 :: MC Gets Deleted Before It Can Hit The Last Coords

Mar 8, 2005

I'm trying to save some CPU resorces here but donno how.. my MC script is deleted before it can reach the current point.. what should I do?..

[Code].....

View 3 Replies

ActionScript 2.0 :: MC Gets Deleted Before It Can Hit The Last Coords?

Mar 8, 2005

I'm trying to save some CPU resorces here but donno how.. my MC script is deleted before it can reach the current point.. what should I do?..

MovieClip.prototype.moveIt = function() {
this.onEnterFrame = function() {
menu._x = Math.round(border._x - ((border._width/2) + 68))+5;

[code].....

View 3 Replies

Determine The X/y Coords Of A Spot On The Stage?

Jun 23, 2009

Is there any way for me to move the mouse to a spot on the stage and determine what the x/y coords are? It's really hard writing some action script and just continually guessing what x/y coord i want until i get it close enough.

View 1 Replies

ActionScript 2.0 :: Mc To Zoom To Mouse X&y Coords

Jul 12, 2007

I have an mc that when I press a key it will either zoom in or out. Right now it zooms in/out, but it does with with the up-left corner as the point to zoom from. Can anyone direct me on how to zoom in/out where ever the mouse is relative to the mc? If the mouse is in the middle, then it zooms from the middle and so on.

View 5 Replies

ActionScript 2.0 :: MovieClip Cannot Get Back To Coords It Was Before

Feb 25, 2005

If you check my site I'm trying to make [URL] and click one of my buttons the menu/logo/music/.. will move to the coords..

Here's the script I used:
1st frame:
speed = 5;
Frame in which the action will take place:
MovieClip.prototype.move = function() {
[Code] ....

But if you try to click for example on the "contact" button and after "about" button you can see that my music button (right side) is closer to the main border... so why the mc's coords are little off if you had clicked different button before (or if the mc's coords are different than before)? [note that I need to use Math.floor and Math.round to make it look sharp and that the speed value is for all MC's number 5]. Also my MC location is set up to hole pixels..

View 14 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 :: Strange Coords After RemoveChild Is Called

Jan 24, 2010

I create a few squared sprites and then remove the first one and display the coords.[code] The x coordinate is still 0, though width has changed,getBounds shows correct values.I would expect x to change as well.Because of the wrong value of x, globalToLocal and localToGlobal work incorrectly.If you click somewhere on the left side of the second (still visible) rectangle you get: 2 28 (x=2, y=28)which is good for nothing. The values in brackets should be in stage coords and they are not.[code]

View 1 Replies

Actionscript 3 :: Express Difference Between Two Xy Coords As A Number Between 0 And 1?

Nov 8, 2010

I've created a movieclip spawner class and animator class which animate movieclips along a set of x,y points.I've used Greensock's TweenMax to accomplish the animation and I have set the speed to be 1 second between each point. The issue is that when the distance between two points is small it looks too slow.

What I would like to do is somehow calculate the distance between the two points and output a speed in the range of 0 to 1 seconds so that the speed is to be correct for the shorter distances as well as the longer distances.

View 3 Replies

ActionScript 2.0 :: Locking Y Coords On Dynamic Scroller?

Feb 26, 2010

I have an image gallery that loads images/text through xml, but I'm having an issue with the scolling, I need to lock the ymouse coords right now it scrolls only on the xmouse, basically I need it to work in the scrolling area only, say 400width by 200height..

[Code]...

View 0 Replies

ActionScript 2.0 :: Tell The Target To Goto The Tellers Coords?

Jun 18, 2004

How do I tell the target to goto the tellers coords?

Code:
tellTarget("/Flame_" + (_global.numFlame-1) +"_mc"){
this._x = 100;
this._y = 100;
}

This is what I have and it tells the Fluid (the place where the above code is) to go to 100,100. that was kind of jumbled but I think I got it all in..

View 5 Replies

ActionScript 2.0 :: Make The Movie/survey Appear At The Top Of The Html Page When The User Hits The "continue" Button?

Apr 13, 2005

i am working on a survey form in MX-04 Pro. I have the main .swf file embedded in an HTML page. The document's width is longer than the viewable screen so the person taking the survey has to scroll down to answer the remaing questions and hit the "continue" button to proceed to the next page/frame in the movie. When the user hits the "continue" button the next frame in the movie appears but the HTML page is still scrolled to the bottom. Is there any ActionScript I can inclued in the frame or continue button to make the movie/survey appear at the top of the html page when the user hits the "continue" button?#2

Is it possible to make the items in a List component sort randmoly? or maybe alternate between "ASC" & "DESC" order? Furthermore, there would be an "Other" option included in my list but I would like that to remain at the bottom of the list while the other items in the list were sorted randomly?

View 2 Replies

Flash :: Professional - CS5 - Position X / Y Coords Change By Themselves After Typing

Sep 20, 2010

I've been working in CS5, with an older FLA I originally built in CS3. On the timeline, I have different MCs and button symbols which need to stay in the same coordinate position. Usually if I notice some sort of 'wiggle', I will go and check the position coords by hand, updating the x/y position by typing numbers directly in the Properties panel.

However today, I repeatedly saw the coordinates change -by themselves- after I typed and hit Enter. For example, typing '165' in the Y field changed immediately to '164.95'. With one symbol, this behavior continued, no matter what I typed, with the number changing by 10 pixels sometimes, every time I just selected the symbol. Not only was I not able to keep the symbols at the same coords (I tried making  them all 164.95), the 'automatic decimal' numbers would actually change further, as I was trying to correct them. I was only able to resolve this by creating an entirely new MC symbol in the Library, and placing it on a new timeline layer.

I've noticed this sort of behavior before in CS3 and CS4 (the CS4 Alpha slider never wanting to go to 0 or 100%), but never to this extent, or as consistently. It's gone from an annoyance to a genuine problem in my workflow.

View 1 Replies

ActionScript 2.0 :: X And Y Coords Of A Movie Clip Declared In A Variable?

Nov 25, 2004

How come this PHP Code:

function drop (thumbClip, xCoord, yCoord) {
thumbClip._x = xCoord;
thumbClip._y = yCoord;
trace (thumbClip);
trace (xCoord);
trace(yCoord);


receives the variables (specified in a later function) and traces them all right, but refuses to deposit the variable thumbClip in the x and y coordinates being specified?

I replaced thumbClip with a specific movie clip, and the fucntion worked perfectly. Does this mean Flash cannot use variables to set the x and y coords to?

View 3 Replies







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