class:
/**
* A collection of 2D matrix functions for AS3.
**/
public dynamic class Matrix2D extends Array
{
public function Matrix2D(nRows:int=0,nCols:int=0)
{
for (var k:int=0;k
Bookmarked - thanks!
This class works:
public dynamic class Matrix2D extends Array
{
public function Matrix2D(nRows:int=0,nCols:int=0)
{
for (var k:int=0;k
Never tried the Vector class - can one get FB3 to recognize it?
The option to create the matrix layout in a fixed manner is the crux. Most of
the available matrix algebra algos (Transpose,Gauss-Jordan,etc) are coded with
this 2D layout with exceptions of course.
http://livedocs.adobe.com/flex/3/html/help.html?content=10_Lists_of_data_7.html
discusses extending the Array class as a subclass using the dynamic attribute.
better yet:
http://code.google.com/p/flexlib/wiki/HowToBuild
Here's the fix:
http://stuffthathappens.com/blog/2007/11/09/howto-publish-javadoc-on-google-code/
Thanks - you guys rock!
Good point about the geom matrix class. I'm coding some matrix algebra
algorithms. Actually I hadn't given it much thought just considered the
possibility of using the sorting function in the Array class.
This compiles OK but fails at this point in the class:
this[i]=new Array(numCols);
with the error: Cannot create property 0 on [the class] i.e i being 0 on the
first for loop when calling:
var a:MatRix = new MatRix(3,3);
Interesting. Yep, I tried using Firefox.
I'm trying to extend an Array into a 2D matrix. Any suggestions? The following
code fails but I don't understand why.
public class MatRix extends Array
{
public function MatRix(numRows:int=0,numCols:int=0)
{
super(numRows);
Documentation link doesn't work for me - opens as html text in browser.
Tried this - not sure if it plays swf?
http://www.fxcomponents.com/flex-video-player/
--- In flexcoders@yahoogroups.com, "gmoniey22" wrote:
>
> I'm looking for a simply (and reliable) flex component which can play a flv
> or a swf and has the basic controls (Play/Pause/Progress bar)
>
> Any s
Calling mssql procs through flex can be done using pyamf. Here's some code
using pyamf: http://freevryheid.x10hosting.com/drupal/?q=node/15
--- In flexcoders@yahoogroups.com, "Mic" wrote:
>
> I have to embed my SQL within Flex until I can work out how to call a
> SQLServer proc from within Fl
I've developed a frontend to the Crafty chess engine. A win32 alpha version is
available for download at:
http://flexiboard.riaforge.org/
The zip contains everything you need to play chess. Check the INSTALL.TXT file
for instructions. The source code is also available via subversion at riaforge
ActionJack isn't mentioned:
http://www.beamjive.com/weblog/?p=38
--- In flexcoders@yahoogroups.com, Alex Ninan wrote:
>
> Take a look at the attached link
>
> http://www.summa-tech.com/blog/2009/01/14/selecting-the-right-flex-application-framework/
>
> On Tue, Mar 3, 2009 at 11:38 AM, Adrian
swf files appear to be compressed - headers start with PK. I was
comparing the swf filesizes of different flex frameworks Cairngorm,
Mate, PureMVC, etc and found significant differences. Cairngorm, for
example, was down to 11 KB. How does one compress your swf down to
this size.
s.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of smitade
> Sent: Thursday, February 26, 2009 9:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Define repeaters at runtime
>
>
> It works - please ignore the previous post. Wow, the ability to push
> co
It works - please ignore the previous post. Wow, the ability to push
components into arrays like this opens up so many possibilities -
especially when working with flex frameworks. I find it strange the
documentation doesn't highlight this feature - otherwise I missed it.
Thanks again!
Tried this but it failed:
In Model.as
public var a_red:Array=new Array();
then later:
Model.getInstance().a_red[1].source=Model.getInstance().red_source;
where red_source is a png image.
for (var i:int=0;i<64;i++)
{
Model.getInstance().a_red.push(Model.getInstance().red);
}
then:
trace("Red I
Thanks Pedro
So is it possible to define an Image Array without a repeater? I'd
like to run through 64 Images using:
for each (var img:Image in ImageArray)
{
... etc
}
Back to google.
Is it possible to define repeaters at runtime? I've scanned the web
and didn't find anything. I would like an Image array defined within a
repeater but WITHOUT using the mxml
.
.
.
.
so that I can access it later in the code: myImage[10].source=...
Thanks
Is pair (http://pair.collab.eu/) dead? Pair is an Actionscript3
implementation of the Python standard library. It's been a while since
the site was updated. Any alternatives out there?
--- In flexcoders@yahoogroups.com, Shailesh Mangal
wrote:
>
> Have you looked at Merapi?
>
> You can either use JNI with Merapi to call you dll or write similar
> socket based bridge in C++
>
> -Shailesh
>
> On Feb 22, 2009, at 7:50 AM, Priya Shah wrote:
>
> > Hi everyone,
> >
> > I am in di
Ok - let me provide some code. First define one of many images. That's
what ChessPiece is.
Then in the movePiece function create the event listener. cv is my
canvas on which the images are:
private function movePiece(e:MouseEvent):void
{
if (drag)
{
cv.currentTarget.addEventListener(MouseEvent.
I'm developing an app with click and drop as opposed to drag and drop.
I have a bunch of images on a canvas. When I click an image it adds a
MOUSE_MOVE event listener to the canvas. I then relocate the image
based on the canvas mouseX and mouseY movement. This event is removed
when I click the mous
I'm connecting my Flex 3 app to a web service that doesn't have a
crossdomain.xml file. I've set up a proxy (php file I got off the web)
to read the WSDL from the web service and this works when I connect to
the service through Flex Builder. When I upload the flex app to my
server, however, the app
28 matches
Mail list logo