Actionscript 3 :: GetLatLngBounds Returns Weird Bounds

Feb 29, 2012

I'm working with the Flash Api for Google Maps in my Actionscript/Air project. I now need the latLngBounds (the top left, top right, bottom right and bottom left) values of the current view of the map. The function map.getLatLngBounds should do that, but it always gives me a really low lat/lng bounds back. Always somewhere around:

[Code]...

View 1 Replies


Similar Posts:


ActionScript 3.0 :: How Ever Load Always Returns True And Write Always Returns False

Nov 4, 2011

I have a load file and a write to file method. We all know what they do. How ever load always returns true and write always returns false....Right there you know somethings wrong. Because The forums have an issue with me posting code...I posted it here: [URL] Based on this code what is the issue here? why is write always returning false and why is load always returning true? (even for files that do not exist). My understanding is that if flash cannot find the file it should write to it will create it and if it cant load said file, then that method should return false.

View 6 Replies

ActionScript 2.0 :: Menu Navigation System - Dropdown Appears And Returns When The Dropdown Returns

Jul 15, 2004

I'm having with a menu navigation system. I'm using Flash MX. I have created a menu system for the site I'm building ([URL]) where one of the buttons "Choose photographer" drops down a list of names. All the other buttons just jump to another page. The drop down is currently using tweens also the logo moves to the left as the dropdown appears and returns when the dropdown returns. All working fine apart from its a bit jerky.

It's I just wanted to get away from tweening and use action scripts instead, as I'm a newbie to all things Flash I trawled the net for tutorials and examples so that I could cobble together the exact same effect. I have managed to get the drop down work and return using the action script and it does seem smoother and works slightly better. But can I get the logo to move to the left and back in time with the drop down...no.

View 1 Replies

Put Links Into These Weird Buttons?

Nov 18, 2009

ive got a flash template, but its really difficult to edit. heres the thing: there are 4 main categories buttons, and when i click each categorie, 3 options appears. for example

[Code]...

green, blue, red and yellow are already with button codes, for when i click it, it opens their 1, 2 and 3 option buttons, but these 1 2 and 3 for each color are not links, and when i try to add a code to them, ALL of them get the same link, like their instances from the same thing. and when i try to set a button to be instance of another thing, all of them change again.

its really difficult and i've tried everything. even creating another box for these 1,2and 3, but when i create a box on this section, another 2 boxes are created at its sides.

View 2 Replies

Flashp 8 :: Weird Blink With Glow?

May 25, 2011

ill try and give as much detail as possible: im trying to teach myself and make a flash site at the same time, so far so good, i already had one, but didn't like the layout

im using Macromedia flash 8 to make this. when i use the glow effect on text, and make a new keyframe to dim the glow again theres a weird blink on that keyframe and im not sure what is wrong.

live demo:[URL]...

View 7 Replies

Installation Instructions For .tar.gz Weird Fantasy?

Nov 20, 2009

On Linux (Debian Lenny) the installation instructions for the *installer*.tar.gz download file say:Unpack file.Navigate into directory or folder created.Run install program.But no directory created; no install program - what the hell is going on??What you get is a single *.so file.  What do you do with it?I got it to work in the past, but perhaps by a different method.

View 1 Replies

ActionScript 3.0 :: RollOver And RollOut Weird Action?

Sep 9, 2009

basically its a movieclip button with 2 other movieclip within it. i managed to code the rollover and rollout script for it but there is a funny spot that keeps triggering my rollover and rollout script endlessly if i leave my mouse hovering on it....any expert out there can clear this doubt of mine pls^^?^

View 3 Replies

ActionScript 2.0 :: Basic Slideshow Acting Weird

Feb 18, 2010

I am trying to create a very basic slide show of images that automatically revolves every 4 seconds. everything works fine but for a short time. After 2 cycles the images start to show up out of order, in less than 4 seconds and single images may repeat instead of playing the next image.

View 1 Replies

ActionScript 3.0 :: Weird Masking Graphic Glitch?

Jul 31, 2010

Anyone has had white vertical lines along one or both sides of their masks?Looking for the lines and can't find them (Mask are made in the visual interface).The mask is a black rectangle, it moves over a 2 black rectangles, one 100% alpha, the other one 35% alpha. White lines only show on 35% alpha part.

View 1 Replies

ActionScript 3.0 :: Width And Components Acting Weird?

Feb 22, 2009

I have a parent Sprite A, that I add a Label component and aList component to. The Label is placed directly above the Listinside of Sprite A. No matter how I change the width of the Labeland the List, Sprite A always reports a width of 115. How can I fixthis so that it reports the actual width?

View 10 Replies

ActionScript 3.0 ::drag And Drop - Weird Behavior?

Jan 21, 2010

I'm using AS3. I have a timeline with 12 labeled frames (page 1...page12). On frames 1 to 10, I have 3 objects that users can drag and drop onto matching places. There is a timer (60 seconds) and a counter. Users should match 15 objects correctly. If so, they go to frame 12 (congratulations!). If not, they go to frame 11 (Sorry, try again), which returns them to frame 1 (page 1).

ISSUE: When users drag an object (mouseDown) and don't release it when time is over, the dragged object remains on the screen. When users go to frame 11 and game starts over, the object remains throughout the entire game.How can I get rid of the dragged object that isn't dropped when the time is over?Here ism y code:

// TIMER
var time1:int=60;var myTimer1:Timer = new Timer(1000, time1);[code]..................

View 13 Replies

Professional :: Flash Text Weird On Mac / Fine On PC?

Apr 7, 2011

Basically it's a font called Scene Pro and it's Open Type. I have a guy working on a Mac and the font does this on his computer.But it's completely fine on my PC. It's the same font.He has Font Book and we disabled all the fonts except Scene Pro - and still this happens. We need this guy to do more work in Flash but on a Mac he's kinda held back a bit with the text behaving like this. I end up Publishing the file from my computer. 

View 17 Replies

Flash :: Set Mc Size On Stage Yields Weird X , Y?

May 19, 2011

I have an empty movie clip instance on stage with x=y=w=h=0.0. Anytime I try to set a non-zero width or height in the properties palette, the corresponding x or y value goes insanely huge, sometimes negative. When I lock the padlock, and set width to 1.0, the other goes like "-1.$".

View 1 Replies

ActionScript 2.0 :: Weird Compression When Importing Jpgs

Mar 6, 2008

Fairly new to Flash but I was wondering something. When I look at a jpg in Photoshop, the quality is fantastic and the white border is sharp.

When I import that same jpg into flash and convert it to a button, it somehow looks a tad odd around the edges, like it's been scaled by 0.1% or something, enough to make the once crisp white edge, look anti-aliased.

View 5 Replies

ActionScript 3.0 :: Button Hitarea Is Off/ Distorted (weird)?

Aug 13, 2010

Got this weird issue going on today. The hitarea, the 'interactive space' of some of my buttons is off/ distorted. I created several buttons in a class with the pen tool and converted them to Buttons. I added some eventlisteners, but when I tested my Movie, I noticed the interactive space of some buttons was gone or at a different position or not the size I made it.

I made another button using the rectangle tool, and tested again. I noticed the visual button was at the place I put it, but the 'interactive space' was at the bottom right. Whenever I would move over this interactive space with my cursor, the visual button would instantly go to the place the interactive space is. Whenever I move the mouse out of the interactive space, the visual button goes back to its inital place.

Check it: (press start, 2 times the right arrow, then the window, then go to one of the buildings in the landscape and click on it)[URL].. Here you see two rectangle shape buttons. Hover over them, no interactivity. Move the mouse somewhat down to the right, and weirdness happens.

[Code]...

View 4 Replies

ActionScript 3.0 :: Weird Error Involving Classes And Loaded SWF

Jan 28, 2010

My project is about a header.swf that calls a nav.swf (with a menu and other stuff) and also inits a slideshow through a Slideshow class.This is in header.swf:[code]I renamed the XmlParser class to "XmlParser2.as" (as well as other references to it) and then...it worked...what the hell was going on here?

obs: I tried that also: I commented all the code inside the "initSlideShow" function, keeping the XmlParser instantiation, and the nav.swf didn't show as well.

obs2 : i didn't had XmlParser.as imported cause it was in the root directory. ( i explicitely imported it and tried to compile but same thing happened)

obs3: nav.swf uses the XmlParser.as to load two menus, however I don't believe it has anything to do it since it's a file that is already compiled, at the point I try to load it into header.swf, right?

View 2 Replies

ActionScript 3.0 :: Weird Yellow Stroke On Flash Buttons?

Dec 30, 2010

there is a yellow stroke appearing on my Flash buttons sometimes and i really have no idea why..anyone had this before? I didnt put there...and sometimes it appears on random buttons..

View 5 Replies

ActionScript 2.0 :: Flash CS3 Weird Error When Trying To Autoformat A File?

Feb 9, 2008

I get this error when I try to Auto format my script in an .as file inside flash CS3, though when I just check Syntax it says the script contains no errors. This is the error:

Code: ActionScript 2.0 class scripts may only define class or interface constructs. I just moved to CS3, and I use AS2 still, on flash 8 it didn't do that, so now I can't Auto format my .as files. I found out this question was asked on these forums and the answer was just not to use Auto format.

[Code]...

View 5 Replies

ActionScript 3.0 :: After Reinstall, Weird Flash Does Not Seem To Compile Any Script?

Oct 18, 2010

First, the tab areas of the window panes in Flash go blank.See:[url].....I could understand if I was working on a slow PC. My system scores a WEI of 7.2. I'm running Win7 Pro 64-bit. It's very bizarre and distracting. I have to open and close the windows to make them look normal again.Secondly, and even more importantly, Flash does not seem to compile any actionscript! I created a new AS3 file. I tried a simple trace command, and it won't even output the trace.

ActionScript Code:
trace("Hello?");

Why would it ignore everything in the AS pane? Even obvious errors ( import com.blah; ) don't cause problems.

View 2 Replies

ActionScript 3.0 :: Sounds Play A Little Delayed/weird Detection?

Jan 25, 2012

I'm trying to make an instrument type thing.[URL]... How come the sounds play about half a second after you hover your mouse on one of the circles? I need it to be completely instant.

[Code]...

Also, sometimes, it just doesn't detect the hover at all and doesn't play a sound (if you hover too fast)..

View 5 Replies

ActionScript 2.0 :: Get To 9 O'clock Position It Spins Around In Weird Fashion

Aug 1, 2006

What I'm working on is a spinning menu, and it's sort of working, but there is a particular spot where in order to achieve the rotation that I want, the menu spins entirely around instead of just going the 3 degrees or whatever that it needs. I can't quite figure out how to fix it.Note how when you get to the 9 o'clock position it spins around in a weird fashion.[code]

View 12 Replies

ActionScript 2.0 :: Weird Behaviour With ColorTransform And Nested Movieclips?

Jul 2, 2009

I'm getting nuts on a really weird problem using colorTransform.See hereThere is an parent_mc that contains several child_mcs. I use colorTransform to change the color of either one or more child_mcs or the complete parent_mc.When you change the color for the parent_mc like this:

Code:
trans = new Transform( parent_mc )
colorTrans.rgb = colorOut;

[code].....

View 1 Replies

Android :: Flex DropDownList Working Weird In Mobile Devices?

Jul 15, 2011

I try to use spark DropDownList Controller for flex mobile project but its not working properly. Is there any alternative solution available?

View 2 Replies

ActionScript 3.0 :: Paramters Passed To Flash Movie Get Killed By Wmode (weird)?

Sep 23, 2009

I wasn't to sure where to post this exactly since I'm not sure if this is a actionscript or some other problem.Ok here it goes. The problem is this if in the embed in the HTML document I put in wmode="transparent" for the flash movie the parameter I am passing to the flash movie never gets passed ... I don't see how wmode can do such a thing but then again this is really my first time working with wmode in general.I tested it numerous times to make sure it really does come down to wmode and it does.Here is the code I currently have I hope there is someone out there that could explain to me why it's doing this.

Code:
<param name="movie" value="header.swf?playMovie=stop" />
<param name=quality value=high />
<embed src="header.swf?playMovie=stop"[code]........

Update: I have isolated the problem to a single browser which is Firefox. I've tested it with IE8, Safari and Chrome and they all work without any issues except for Firefox.

View 4 Replies

ActionScript 3.0 :: MovieClip Weird Behaviour Involving Sprites And Drag&Drop

May 6, 2011

I have created a movie clip called mc_Border comprising of a rectangular border and an empty movie clip called mc_SpriteContainer.I am trying to dynamically add a sprite to mc_SpriteContainer.Everything works fine until I drag the mc_Border.mc_Border behaves as it should but the sprite remains in position when mc_Border is dragged.I know this can be solved by adding a line to move the mc_SpriteContainer, but I thought that as it has been added to a MovieClip, its position should remain relative to the movie clip.Just wondering if I'm missing something. Below is the code that I am using to add the MC and the Sprite to the stage.[code]

View 0 Replies

IDE :: SWF That Draws Outside Its Bounds?

Mar 3, 2009

I opened up the NY Times homepage, and they have this giant Apple addvertisement that has animations over the entire top half of the page, outside the area occupied by the swf.

View 1 Replies

ActionScript 2.0 :: Mask Mc Going Out Of Bounds

Nov 10, 2011

Although I put _x = player._x etc. code in an onEnterFrame function the masking mc is moving without the player

You see...the player is held within some borders. When cornered and then hit, the mask moves according to how it would move normally, but without the player (because he is held in place by some borders)...

Also, if I don't have a problem but I'm missing a crucial piece of code,

code on masking mc

ActionScript Code:
stop();
this._x = _root.player._x;
this._y = _root.player._y;
radiance = 180 / Math.PI;

[Code]...

View 1 Replies

ActionScript 2.0 :: Tell If Something Is Within The Stage Bounds?

Jun 23, 2009

I have a bunch of images going on all at once, some on the stage, and some off, and i would like to find a way of telling whether or not they are currently on the stage or not....

I know i can do the whole

checkStage = function () {
if ((mc._x>=0) && (mc._x<=Stage.width) && (mc._y >= 0)&&(mc._y >=Stage.height)) {
//have mc do whatever here

[Code].....

that way i can satisfy my laziness AND achieve what i'm trying to do without having to deal with long winded paths and a bunch of else if's

View 1 Replies

Flex :: Setting Bounds For WindowedApplication

Jul 9, 2010

for some reason this flex 4 code gives me an error but I can't figure out why. In my WindowedApplication I have:[code]That seems like a bogus error since I can assign pref.bounds to rect without an error. I don't know why this isn't working. It works under flex 3 compatibility mode but that also breaks a lot of my spark components so I can't use it.

View 1 Replies

ActionScript 3.0 :: Random Motion Within Bounds

Mar 12, 2008

I have a script that produces random motion along the y axis, however, I want that motion to occur within the movie clip that is centered on the stage, or I should say within the bounds of that movie clip.
The movie clip has a height of 335 px

[Code]....

View 9 Replies







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