Hello,
I have a BitmapData and use the draw() method to add sprite data. Then I
get the ByteArray through the BitmapData.getPixels() method. This
byteArray is compressed and cached.
Then when i need it, i decompress the ByteArray and use the
BitmapData.setPixels() and add all that to a new
I've done this before but can't find my file(s). I am currently googling but
haven't found the answer yet (I'm sure it's out there, just need to
rediscover it).
I have a circle, registration at 0, 0.
If I have an angle from it's center, I'd like to get x,y where the angle
would intersect with the
This Tutorial proved handy for me:
http://www.codylindley.com/Tutorials/trigonometry/
On Tue, Mar 17, 2009 at 9:17 AM, Eric E. Dolecki edole...@gmail.com wrote:
I've done this before but can't find my file(s). I am currently googling but
haven't found the answer yet (I'm sure it's out there,
In AS3, Point.polar()
Jason Merrill
Bank of America | Learning Performance Solutions Instructional Technology
Media
Monthly meetings on the Adobe Flash platform for rich media experiences - join
the Bank of America Flash Platform Community
-Original Message-
From:
Hi,
From the docs:
Generates a byte array from a rectangular region of pixel data. Writes an
unsigned integer (a 32-bit unmultiplied pixel value) for each pixel into the
byte array.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html
The resulting byte array
I have the angle (say 0 degrees).
The length would then be pixels from the
center (ie. radius)?
Yes, radius is pixel distance from starting point (in your case, the center
point of the circle). Then you just need to convert angle to radians and
you're good to go.
var cartesianPoint:Point =
Okay this thing may be the coolest thing I've seen in a while. However it's
acting funny.
If I do this:
var coord:Point = Point.polar( _radius, angle );
It works great. But I am after a point further out than _radius. So
naturally I pad it a little...
var coord:Point = Point.polar( _radius +
Hi,
You have the position of the point in polar coordinates (radius,
angle), so you want to get the point in cartesian (x, y) - this function
converts it. You need the angle in radians though.
It's shorthand for:
x = radius * sin(theta); y = radius * cos(theta);
Where theta
sorry - found my pilot error. this ROCKS - thanks, I never would have found
that. LOTS of cool stuff in the Point class.
On Tue, Mar 17, 2009 at 10:34 AM, Eric E. Dolecki edole...@gmail.comwrote:
Okay this thing may be the coolest thing I've seen in a while. However it's
acting funny.
If I do
On Tue, Mar 17, 2009 at 2:17 PM, Eric E. Dolecki edole...@gmail.com wrote:
I've done this before but can't find my file(s). I am currently googling but
haven't found the answer yet (I'm sure it's out there, just need to
rediscover it).
I have a circle, registration at 0, 0.
If I have an angle
After seeing Jason's mail, I notice I should add that the angle is
supposed to be in radians (i.e., degrees / 180 * Math.PI). However, he
already provided a convenient set of functions, so you probably don't
need that anymore... :)
Mark
On Tue, Mar 17, 2009 at 3:50 PM, Mark Winterhalder
var coord:Point = Point.polar( _radius, angle );
Yeah, did you see my post? :) Point.polar takes radians, not angle. They are
not the same thing. I posted some methods for you which do the heavy lifting
and conversion of angle to radians. Try it out and see if any of those methods
work for
Seems that the encoder use the BitmapData.getPixel(). So that doesnt
give me the insight I am hoping for :(
J.
Romuald Quantin wrote:
I guess you need some kind of specification, how the bytes for a
bitmapdata are created and stored.
I have no idea if you can find that.
Basically they're
Thanks man, you just changed my world.
On Tue, Mar 17, 2009 at 10:26 AM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
I have the angle (say 0 degrees).
The length would then be pixels from the
center (ie. radius)?
Yes, radius is pixel distance from starting point (in your case,
The x and y coordinates are
X = r * Cos(angle)
Y = r * Sin(angle)
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
Sent: Tuesday, March 17, 2009 9:15 AM
To: Flash Coders List
Subject: Re:
Lots of cool stuff in the Rectangle class too, in case you didn't
know :)
Piers
On 17 Mar 2009, at 15:00, Eric E. Dolecki wrote:
Thanks man, you just changed my world.
On Tue, Mar 17, 2009 at 10:26 AM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
I have the angle (say 0
Have you tried something like this?
var pixelPos:int = col + row * totalCols; // or x + y * width
buffer.position = pixelPos * 4;// each pixel takes 32 bits == 4 bytes
var pixelValue:uint = buffer.readUnsignedInt();
Or, if the order is column-major (but I don't think it is)
var pixelPos:int
Yup - .polar is working GREAT (and yes, using radians)
now lets say I have a position somewhere and I want to see where an angle
from it intersects a rectangle (assuming the point is within the
rectangle)... is there a similar method to get that x, y?
On Tue, Mar 17, 2009 at 11:36 AM, Piers
Thank you , i will try it tommorrow and let you know if that worked.
I am just wondering if there is no begin offset in the ByteArray. So
maybe I should not start at position=0.
Do you know something about that, anyway I will try and see tomorrow.
Jiri
Juan Pablo Califano wrote:
Have you
I have a component I am building that has a default size set with an
avatar clip. When it's placed on stage by hand, it uses that dimension and
it removes that clip. Great. I have overriden height and width mutators and
accessors.
When I resize the component on stage, it works correctly, but I
What class are you subclassing to make your component? UIComponent defines
a protected measure() function which some other internals use to figure out
how big a component is. Maybe you need to implement an override of that?
The docs show InteractiveObject having a focusRect property, but they
I was asking about the required method overrides for AS3 components in
Flex to do some similar things, and Muzak posted this here back on Feb
2nd - even if you're not using Flex, much of this is likely still
relevant. Unfortunately, Adobe doesn't really have great documentation
on this:
This is not for Flex, this is straight AS3 and using the IDE to generate the
SWC. I am subclassing Sprite.
On Tue, Mar 17, 2009 at 2:33 PM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
I was asking about the required method overrides for AS3 components in
Flex to do some similar
Hi coders, I have a externally loaded swf which loads inside a movie
clip but I don't know how to instruct the button inside of the loade
swf to have eventlisteners, anyone knows?
this is pretty much my code:
function creatis(e:MouseEvent):void{
var newMC:MovieClip = new MovieClip();
Gustavo,
Unlike AS2, in AS3 loading external clips into MovieClips does not add
the MovieClip's children/properties to the root of the containing MC.
Also, you are essentially adding a Loader component, instead of a
MovieClip, you probably want to do loader.content instead (which isn't
populated
It works, man you saved my life...thanks so much :)
Gustavo
On Mar 17, 2009, at 3:54 PM, Taka Kojima wrote:
var loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
completeHandler);
loader.load(new URLRequest(myswf.swf));
function
The RSSviewer example works fine on my computer when it comes to put
in my server, it has this odd error,
anyone knows what is that?
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL:
http://maflephoto.com/newwebmafle/RSSData/mafleFeedAtom.rss
at
That error is usually indicative of a bad URL - I went there, got a page
not found error - is it a public web location?
Jason Merrill
Bank of America | Learning Performance Solutions Instructional
Technology Media
Monthly meetings on the Adobe Flash platform for rich media
Does anyone have a good link to something like this for reasonable price or
free?
Configurable meaning skinnable and sizeable?
Thank you everyone :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
If you're looking to get setup with very little up front money. I'd
recommend using Influxis (a Flash Media Server) hosting company.
As you can see in their applications, they have text chat applications.
http://influxis.com/applications/
You of course could also build your own with their
Hi,
I found this a few years ago which worked out of the box.
http://www.tufat.com/s_flash_chat_chatroom.htm
It's a bit cheeky tho' because the guy is packaging up some stuff
with AMFPHP and not honouring the license properly...
Glen
TS wrote:
Does anyone have a good link
I built a flash chat room client (using the Flash IDE) about 3 months
ago using Jabber (OpenFire) as the chat server and the XIFF API
http://www.igniterealtime.org/projects/xiff/
The only real issue I ran into was that the XIFF API uses native Flex
classes, so I had to figure out how to get
Yeah I did see this. It seems great except it has some quarks that are a
little unbearable.
Thanks for the info.
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Tuesday, March 17, 2009 5:33
I guess another nice feature or feature instead of any other feature would
be just a shoutbox similar to facebook's instant messaging app. Where the
state gets saved from page to page. Anyone seen anything like this?
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
34 matches
Mail list logo