[Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
Hi Guys

Im in need of finding out how or even if its possible to convert an object to 
an array?

Basically I am trying to output some vars from flash to an PHP script, yet when 
PHP recieves the $_POST['textVars'] as [object Object] which is a string and 
not an array so I can't access it with $_POST['textVars'][0]['x'], which should 
output the value of textBox1.x.

var textVars:Object = new Object;

textVars[0] = {
 x  :textBox1.x,
 y  :textBox1.y,
 width  :textBox1.width,
 height  :textBox1.height,
 rotation :textBox1.rotation
};

textVars[1] = {
 x  :textBox2.x,
 y  :textBox2.y,
 width  :textBox2.width,
 height  :textBox2.height,
 rotation :textBox2.rotation
};

sendVars.textVars = textVars;

sendRequest.data = setVars;
sendRequest.url = process.php;
sendRequest.method = URLRequestMethod.POST;
sendToURL(sendRequest);

Thanks
SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Glen Pike

Hi,

   You could create a loop to look through each object and then make up 
your arrays a bit like this - untested:


   sendVars.textVars = new Array();

   var numVars:int = textVars.length;
   for(var i:int = 0;i  numVars;i++) {
  
  var obj:Object = textVars[i];
  
  for(item:String in obj) {

 trace(itm +  =  + obj[itm]);
 sendVars.textVars[i][itm] = obj[itm];
  }
   }
   //then send your data...

   SWXFormat handles this sort of thing quite nicely, but they were 
still working on AS3 when I last looked.


   HTH

   Glen

SJM - Flash wrote:

Hi Guys

Im in need of finding out how or even if its possible to convert an object to 
an array?

Basically I am trying to output some vars from flash to an PHP script, yet when 
PHP recieves the $_POST['textVars'] as [object Object] which is a string and 
not an array so I can't access it with $_POST['textVars'][0]['x'], which should 
output the value of textBox1.x.

var textVars:Object = new Object;

textVars[0] = {
 x  :textBox1.x,
 y  :textBox1.y,
 width  :textBox1.width,
 height  :textBox1.height,
 rotation :textBox1.rotation
};

textVars[1] = {
 x  :textBox2.x,
 y  :textBox2.y,
 width  :textBox2.width,
 height  :textBox2.height,
 rotation :textBox2.rotation
};

sendVars.textVars = textVars;

sendRequest.data = setVars;
sendRequest.url = process.php;
sendRequest.method = URLRequestMethod.POST;
sendToURL(sendRequest);

Thanks
SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Muzak

use remoting:
http://www.amfphp.org/

- Original Message - 
From: SJM - Flash [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 29, 2008 2:19 PM
Subject: [Flashcoders] (AS3) Object to an Array


Hi Guys

Im in need of finding out how or even if its possible to convert an object to 
an array?

Basically I am trying to output some vars from flash to an PHP script, yet when PHP recieves the $_POST['textVars'] as [object 
Object] which is a string and not an array so I can't access it with $_POST['textVars'][0]['x'], which should output the value of 
textBox1.x.


var textVars:Object = new Object;

textVars[0] = {
x  :textBox1.x,
y  :textBox1.y,
width  :textBox1.width,
height  :textBox1.height,
rotation :textBox1.rotation
   };

textVars[1] = {
x  :textBox2.x,
y  :textBox2.y,
width  :textBox2.width,
height  :textBox2.height,
rotation :textBox2.rotation
   };

sendVars.textVars = textVars;

sendRequest.data = setVars;
sendRequest.url = process.php;
sendRequest.method = URLRequestMethod.POST;
sendToURL(sendRequest);

Thanks
SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Pete Hotchkiss
Or SWX format

http://www.swxformat.org/

Pete 


 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: 29 April 2008 14:09
To: Flash Coders List
Subject: Re: [Flashcoders] (AS3) Object to an Array

use remoting:
http://www.amfphp.org/

- Original Message -
From: SJM - Flash [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 29, 2008 2:19 PM
Subject: [Flashcoders] (AS3) Object to an Array


Hi Guys

Im in need of finding out how or even if its possible to convert an
object to an array?

Basically I am trying to output some vars from flash to an PHP script,
yet when PHP recieves the $_POST['textVars'] as [object 
Object] which is a string and not an array so I can't access it with
$_POST['textVars'][0]['x'], which should output the value of 
textBox1.x.

var textVars:Object = new Object;

textVars[0] = {
 x  :textBox1.x,
 y  :textBox1.y,
 width  :textBox1.width,
 height  :textBox1.height,
 rotation :textBox1.rotation
};

textVars[1] = {
 x  :textBox2.x,
 y  :textBox2.y,
 width  :textBox2.width,
 height  :textBox2.height,
 rotation :textBox2.rotation
};

sendVars.textVars = textVars;

sendRequest.data = setVars;
sendRequest.url = process.php;
sendRequest.method = URLRequestMethod.POST;
sendToURL(sendRequest);

Thanks
SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
Hey Glen thanks for your speedy response its much appriciated! Ive tried the 
code you provided but am still getting the same output.

   var textVars = new Array();
   
   textVars[0] = {
a   :0,
b   :1,
c   :2
   };
   textVars[1] = {
d   :3,
e   :4,
f   :5
   };
   
   var numVars:int = textVars.length;
   for(var i:int = 0;i  numVars;i++)
   {
  var obj:Object = textVars[i];
   
  for (var itm:String in obj)
  {
  trace(itm +  =  + obj[itm]);
  textVars[i][itm] = obj[itm];
  }
   }
   
   
   var sendRequest:URLRequest = new URLRequest(process.php);
   var setVars:URLVariables = new URLVariables();
   
   setVars.textVars = textVars;
  
   sendRequest.data = setVars;
   sendRequest.method = URLRequestMethod.POST;
   
   sendToURL(sendRequest);

Basically we are trying to output a $_POST array that is formated similar to 
below...


Array
(
 [textVars] = Array
  (
   [0] = Array
   (
[a] = 0
[b] = 1
[c] = 2
)

   [1] = Array
   (
[d] = 3
[e] = 4
[f] = 5
   )
  
  )

)

instead we are getting:

Array
(
 [textVars] = [object Object]
)


Thanks
SM
  - Original Message - 
  From: Glen Pike 
  To: Flash Coders List 
  Sent: Tuesday, April 29, 2008 1:43 PM
  Subject: Re: [Flashcoders] (AS3) Object to an Array


  Hi,

  You could create a loop to look through each object and then make up 
  your arrays a bit like this - untested:

  sendVars.textVars = new Array();

  var numVars:int = textVars.length;
  for(var i:int = 0;i  numVars;i++) {
 
 var obj:Object = textVars[i];
 
 for(item:String in obj) {
trace(itm +  =  + obj[itm]);
sendVars.textVars[i][itm] = obj[itm];
 }
  }
  //then send your data...

  SWXFormat handles this sort of thing quite nicely, but they were 
  still working on AS3 when I last looked.

  HTH

  Glen

  SJM - Flash wrote:
   Hi Guys
  
   Im in need of finding out how or even if its possible to convert an object 
to an array?
  
   Basically I am trying to output some vars from flash to an PHP script, yet 
when PHP recieves the $_POST['textVars'] as [object Object] which is a string 
and not an array so I can't access it with $_POST['textVars'][0]['x'], which 
should output the value of textBox1.x.
  
   var textVars:Object = new Object;
  
   textVars[0] = {
x  :textBox1.x,
y  :textBox1.y,
width  :textBox1.width,
height  :textBox1.height,
rotation :textBox1.rotation
   };
  
   textVars[1] = {
x  :textBox2.x,
y  :textBox2.y,
width  :textBox2.width,
height  :textBox2.height,
rotation :textBox2.rotation
   };
  
   sendVars.textVars = textVars;
  
   sendRequest.data = setVars;
   sendRequest.url = process.php;
   sendRequest.method = URLRequestMethod.POST;
   sendToURL(sendRequest);
  
   Thanks
   SM
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
 

  -- 

  Glen Pike
  01326 218440
  www.glenpike.co.uk http://www.glenpike.co.uk

  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
Unfortunalty we are only testing in PHP, the application is going to be on an 
ASP coded website so we really need to fix this from flash! :o(
  - Original Message - 
  From: Muzak 
  To: Flash Coders List 
  Sent: Tuesday, April 29, 2008 2:09 PM
  Subject: Re: [Flashcoders] (AS3) Object to an Array


  use remoting:
  http://www.amfphp.org/

  - Original Message - 
  From: SJM - Flash [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Tuesday, April 29, 2008 2:19 PM
  Subject: [Flashcoders] (AS3) Object to an Array


  Hi Guys

  Im in need of finding out how or even if its possible to convert an object to 
an array?

  Basically I am trying to output some vars from flash to an PHP script, yet 
when PHP recieves the $_POST['textVars'] as [object 
  Object] which is a string and not an array so I can't access it with 
$_POST['textVars'][0]['x'], which should output the value of 
  textBox1.x.

  var textVars:Object = new Object;

  textVars[0] = {
   x  :textBox1.x,
   y  :textBox1.y,
   width  :textBox1.width,
   height  :textBox1.height,
   rotation :textBox1.rotation
  };

  textVars[1] = {
   x  :textBox2.x,
   y  :textBox2.y,
   width  :textBox2.width,
   height  :textBox2.height,
   rotation :textBox2.rotation
  };

  sendVars.textVars = textVars;

  sendRequest.data = setVars;
  sendRequest.url = process.php;
  sendRequest.method = URLRequestMethod.POST;
  sendToURL(sendRequest);

  Thanks
  SM
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Glen Pike

Hi,

   This may be a formatting thing with how you post arrays and my 
answer may need revising:


   Look in the PHP manual for Variables from outside PHP and see that 
you can post arrays from HTML forms, by having the fields named as an 
array..


   so my original code below is a bit wrong, sorry.

   The loop will have to build the pseudo array for each text var 
object so you can post textVars[0][a]=0textVars[0][b]=1, etc.:


   setVars = new Object();

textVars[0] = {
   a   :0,
   b   :1,
   c   :2
  };
  textVars[1] = {
   d   :3,
   e   :4,
   f   :5
  };
  
  var numVars:int = textVars.length;

  for(var i:int = 0;i  numVars;i++)
  {
 var obj:Object = textVars[i];
  
 for (var itm:String in obj)

 {
trace(itm +  =  + obj[itm]);
//check the quotes and braces carefully, but basically you want to end up 
with setVars.textVars[0][a] = 0, etc
setVars[textVars[ + i + ][ + itm + ]] = obj[itm];
 }
  }

I think that may fix it...

You probably also want to make sure your PHP script is behaving by temporarily changing 
$_POST to $_REQUEST then writing a manual query string as above...

HTH

Glen


SJM - Flash wrote:

Hey Glen thanks for your speedy response its much appriciated! Ive tried the 
code you provided but am still getting the same output.

   var textVars = new Array();
   
   textVars[0] = {

a   :0,
b   :1,
c   :2
   };
   textVars[1] = {
d   :3,
e   :4,
f   :5
   };
   
   var numVars:int = textVars.length;

   for(var i:int = 0;i  numVars;i++)
   {
  var obj:Object = textVars[i];
   
  for (var itm:String in obj)

  {
  trace(itm +  =  + obj[itm]);
  textVars[i][itm] = obj[itm];
  }
   }
   
   
   var sendRequest:URLRequest = new URLRequest(process.php);

   var setVars:URLVariables = new URLVariables();
   
   setVars.textVars = textVars;
  
   sendRequest.data = setVars;

   sendRequest.method = URLRequestMethod.POST;
   
   sendToURL(sendRequest);


Basically we are trying to output a $_POST array that is formated similar to 
below...


Array
(
 [textVars] = Array
  (
   [0] = Array
   (
[a] = 0
[b] = 1
[c] = 2
)

   [1] = Array

   (
[d] = 3
[e] = 4
[f] = 5
   )
  
  )

)

instead we are getting:

Array

(
 [textVars] = [object Object]
)


Thanks

SM
  - Original Message - 
  From: Glen Pike 
  To: Flash Coders List 
  Sent: Tuesday, April 29, 2008 1:43 PM

  Subject: Re: [Flashcoders] (AS3) Object to an Array


  Hi,

  You could create a loop to look through each object and then make up 
  your arrays a bit like this - untested:


  sendVars.textVars = new Array();

  var numVars:int = textVars.length;
  for(var i:int = 0;i  numVars;i++) {
 
 var obj:Object = textVars[i];
 
 for(item:String in obj) {

trace(itm +  =  + obj[itm]);
sendVars.textVars[i][itm] = obj[itm];
 }
  }
  //then send your data...

  SWXFormat handles this sort of thing quite nicely, but they were 
  still working on AS3 when I last looked.


  HTH

  Glen

  SJM - Flash wrote:
   Hi Guys
  
   Im in need of finding out how or even if its possible to convert an object 
to an array?
  
   Basically I am trying to output some vars from flash to an PHP script, yet 
when PHP recieves the $_POST['textVars'] as [object Object] which is a string and 
not an array so I can't access it with $_POST['textVars'][0]['x'], which should 
output the value of textBox1.x.
  
   var textVars:Object = new Object;
  
   textVars[0] = {
x  :textBox1.x,
y  :textBox1.y,
width  :textBox1.width,
height  :textBox1.height,
rotation :textBox1.rotation
   };
  
   textVars[1] = {
x  :textBox2.x,
y  :textBox2.y,
width  :textBox2.width,
height  :textBox2.height,
rotation :textBox2.rotation
   };
  
   

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Juan Pablo Califano
You can also use JSON, a format close to javascript syntax, used for
serializing / deserializing objects. It's rather standard and you can find
libraries for parsing it in most mainstream languages (including, of course,
AS 2.0  AS 3.0, and PHP)


Cheers
Juan Pablo Califano



2008/4/29, SJM - Flash [EMAIL PROTECTED]:

 Hey Glen thanks for your speedy response its much appriciated! Ive tried
 the code you provided but am still getting the same output.

   var textVars = new Array();

   textVars[0] = {
a   :0,
b   :1,
c   :2
   };
   textVars[1] = {
d   :3,
e   :4,
f   :5
   };

   var numVars:int = textVars.length;
   for(var i:int = 0;i  numVars;i++)
   {
  var obj:Object = textVars[i];

  for (var itm:String in obj)
  {
  trace(itm +  =  + obj[itm]);
  textVars[i][itm] = obj[itm];
  }
   }


   var sendRequest:URLRequest = new URLRequest(process.php);
   var setVars:URLVariables = new URLVariables();

   setVars.textVars = textVars;

   sendRequest.data = setVars;
   sendRequest.method = URLRequestMethod.POST;

   sendToURL(sendRequest);

 Basically we are trying to output a $_POST array that is formated similar
 to below...


Array
(
 [textVars] = Array
  (
   [0] = Array
   (
[a] = 0
[b] = 1
[c] = 2
)

   [1] = Array
   (
[d] = 3
[e] = 4
[f] = 5
   )

  )

)

 instead we are getting:

Array
(
 [textVars] = [object Object]
)


 Thanks
 SM
 - Original Message -
 From: Glen Pike
 To: Flash Coders List
 Sent: Tuesday, April 29, 2008 1:43 PM
 Subject: Re: [Flashcoders] (AS3) Object to an Array


 Hi,

  You could create a loop to look through each object and then make up
 your arrays a bit like this - untested:

  sendVars.textVars = new Array();

  var numVars:int = textVars.length;
  for(var i:int = 0;i  numVars;i++) {

 var obj:Object = textVars[i];

 for(item:String in obj) {
trace(itm +  =  + obj[itm]);
sendVars.textVars[i][itm] = obj[itm];
 }
  }
  //then send your data...

  SWXFormat handles this sort of thing quite nicely, but they were
 still working on AS3 when I last looked.

  HTH

  Glen

 SJM - Flash wrote:
  Hi Guys
 
  Im in need of finding out how or even if its possible to convert an
 object to an array?
 
  Basically I am trying to output some vars from flash to an PHP script,
 yet when PHP recieves the $_POST['textVars'] as [object Object] which is a
 string and not an array so I can't access it with
 $_POST['textVars'][0]['x'], which should output the value of textBox1.x.
 
  var textVars:Object = new Object;
 
  textVars[0] = {
   x  :textBox1.x,
   y  :textBox1.y,
   width  :textBox1.width,
   height  :textBox1.height,
   rotation :textBox1.rotation
  };
 
  textVars[1] = {
   x  :textBox2.x,
   y  :textBox2.y,
   width  :textBox2.width,
   height  :textBox2.height,
   rotation :textBox2.rotation
  };
 
  sendVars.textVars = textVars;
 
  sendRequest.data = setVars;
  sendRequest.url = process.php;
  sendRequest.method = URLRequestMethod.POST;
  sendToURL(sendRequest);
 
  Thanks
  SM
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 

 --

 Glen Pike
 01326 218440
 www.glenpike.co.uk http://www.glenpike.co.uk

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Reading SWF headers with ASP

2008-04-29 Thread Helmut Granda
thanks for your insight Juan.

On Mon, Apr 28, 2008 at 8:34 PM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:

 In native classic ASP (without any extra components installed in the
 server), I'd say it's almost impossible. Maybe if the swf is uncompressed,
 you can give it a shot, reading the file with a FileSystemObject -which is
 meant to read text files- and using some single-byte string encoding and
 reading the chars values with de asc() function. Ugly, but it should be
 possible (it's not a peace of cake, though, considering the fact that VBS
 doesn't even have a syntax for bit shifting, so you'd have to craft
 some functions for that).

 But the biggest problem is, most swf's are compressed since version 6, and
 except the first 8 bytes (signature + version + file_size), the rest of
 the
 header itself is deflated (as well as the rest of the file). As far as I
 know, classic ASP doesn't support deflating natively, so that would be a
 major problem -- and I'm not sure if there's some work around to that
 limitations.


 Cheers
 Juan Palblo Califano


 2008/4/28, Helmut Granda [EMAIL PROTECTED]:
 
  Hi All,
 
 I have done some extensive research in the subject and the
 only
  solution I found is a ASP class some one wrote in 2001 and it is
 outdated.
  Does anyone knows how to read the SWF headers with ASP? I know how to do
  it
  with PHP but I havent found a solution with ASP.
 
  Mainly I am trying to get width and height.
 
 TIA
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
...helmut
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Reading SWF headers with ASP

2008-04-29 Thread Helmut Granda
I am creating some dynamic pages and they need to embed SWF movies in their
page with the right size (width/height) and that is why i need asp to get
the information before they are being loaded into the page.

On Mon, Apr 28, 2008 at 10:31 PM, [EMAIL PROTECTED] wrote:

 Are you trying to get width  height in a live situation, or would an
 offline solution do?

 -Buzz

  -- Original message --
 From: Helmut Granda [EMAIL PROTECTED]
  Hi All,
 
  I have done some extensive research in the subject and the
 only
  solution I found is a ASP class some one wrote in 2001 and it is
 outdated.
  Does anyone knows how to read the SWF headers with ASP? I know how to do
 it
  with PHP but I havent found a solution with ASP.
 
  Mainly I am trying to get width and height.
 
  TIA
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
...helmut
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] XPath

2008-04-29 Thread Glen Pike

Hi,

   Does anyone know who to speak to about bugs in XFactorStudio's XPath 
api?


   Thanks

   Glen
--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash to Database to DWG

2008-04-29 Thread Stephen Matthews

Hi guys,

I am creating a floor planning application which needs to be able to  
store any floorplan data to be output later on as a DWG file.

Has anyone had any experience with this.

What would be the best way to store the data within the application  
before sending it to the server?

How would it be stored on the server?

( BTW - it's easy to go the other way, but I want to go Flash   
DataBase  DWG )


Cheers

Stephen Matthews

I will also be looking for a way to output the Data as a DWG file  
directly from the server, if you have any info.

I have been googleing this for a few days now.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Muzak

ASP .NET ?

use remoting ;-)
http://www.themidnightcoders.com/weborb/dotnet/

- Original Message - 
From: SJM - Flash [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 29, 2008 3:52 PM
Subject: Re: [Flashcoders] (AS3) Object to an Array


Unfortunalty we are only testing in PHP, the application is going to be on an ASP coded website so we really need to fix this from 
flash! :o(
 - Original Message - 
 From: Muzak

 To: Flash Coders List
 Sent: Tuesday, April 29, 2008 2:09 PM
 Subject: Re: [Flashcoders] (AS3) Object to an Array


 use remoting:
 http://www.amfphp.org/


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FlipBook/Page AS3 OpenSource?

2008-04-29 Thread Patrick J. Jankun

Hi everyone,

Does anybody knows any good opensourced and somehow free flipBook or  
flipPage?
All i founded googlin is 10.000 licensed components with some strange  
licensing.


Greetings,
Patrick
--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XPath

2008-04-29 Thread Pete Hotchkiss
Bugs - interesting I've used this extensively for some time now and
never had a problem with it

What specifically are you seeing Glen ?

Pete


 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen
Pike
Sent: 29 April 2008 15:20
To: Flashcoders mailing list
Subject: [Flashcoders] XPath

Hi,

Does anyone know who to speak to about bugs in XFactorStudio's XPath
api?

Thanks

Glen
-- 

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FlipBook/Page AS3 OpenSource?

2008-04-29 Thread Glen Pike

Hi,

   Have a look at quietlyscheming's Flex book:
  
   http://www.quietlyscheming.com/blog/components/flexbook/


   
http://www.quietlyscheming.com/blog/2007/03/14/flexbook-updated-source-now-available/


   Obviously this is Flex based, but you may be able to make it into an 
SWC that you can use with Flash.


   Glen
  


Patrick J. Jankun wrote:

Hi everyone,

Does anybody knows any good opensourced and somehow free flipBook or 
flipPage?
All i founded googlin is 10.000 licensed components with some strange 
licensing.


Greetings,
Patrick
--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Loosing full-screen when loosing focus

2008-04-29 Thread Bart Goormans

Thanks for the tip Rich.

I had a look at the mProjector. This third-party projector will probably 
solve several questions in the project we're doing. Only hope the 
project manager will allow for third-party pluggs. We are developing a 
desktop app. Not a browser based, so it would certainly be a valid option.
Have to check with people from mProjector in detail (not found in 
docu/examples)


Would this not be something the flashplayer should support by itself, a 
fixed (regardless of having the focus or not) fullscreen mode?


Thanks again for the tip!
Bart


Rich Shupe schreef:


I don't think it's possible to prevent this in the browser. It's probably
possible when using a third-party projector enhancer like mProjector, but
you'd have to test.

Rich
http://www.LearningActionScript3.com


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



--
Ontwerpbureau ZieZo
-
Bart Goormans
Schoterweg 282, 3980 Tessenderlo.
T+32 13 67 80 73M+32 473 94 27 34


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] CS3 Datagrid p

2008-04-29 Thread Burns, Rusty
There has to be some way to target the textfield inside the list component. I 
can't find anything on html links using Flash CS3 and Actionscript 3, which 
seems pretty remarkable to me. I'm surprised Adobe didn't code the datagrid to 
recognize when an html link is being clicked in the grid.

The code below tells me where I am in the grid, but how to target the textfield 
in this cell?

dg.addEventListener(ListEvent.ITEM_ROLL_OVER, TestMe);

function TestMe(event:ListEvent):void {
txtVars.text = column:  + event.columnIndex + \n + row :+ 
event.rowIndex;
//  Target the textfield here somehow?
}





 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burns, Rusty
Sent: Friday, April 25, 2008 2:23 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] CS3 Datagrid p

We have been using the Advanced Datagrid located here: 
http://demo.tufat.com/datagrid/flash6/index.html

I am currently trying to get the CS3 Datagrid component to function the same 
way, but I am having difficulty figuring out how to resize rows based on the 
amount of content and getting html links to work.


Has anyone done anything like this with actionscript 3?





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
I was about to reply the same thing. But I don't think it is being
developed any more, so it might be a matter of fixing it yourself...

Peter


On Tue, Apr 29, 2008 at 4:52 PM, Pete Hotchkiss
[EMAIL PROTECTED] wrote:
 Bugs - interesting I've used this extensively for some time now and
  never had a problem with it

  What specifically are you seeing Glen ?

  Pete


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Reading SWF headers with ASP

2008-04-29 Thread Juan Pablo Califano
You're welcome, Helmut.

I forgot to mention it, but If you can run ASP.NET, parsing the swf header
shouldn't be too difficult. (I already have written some C# code to do that
for an open source project and I bet you can find other .NET OS projects
that deal with that same task).

But the again, you need ASP.NET installed on the server (maybe you already
have it if you're deploying to a Windows Server...).

Cheers
Juan Pablo Califano


2008/4/29, Helmut Granda [EMAIL PROTECTED]:

 thanks for your insight Juan.

 On Mon, Apr 28, 2008 at 8:34 PM, Juan Pablo Califano 
 [EMAIL PROTECTED] wrote:

  In native classic ASP (without any extra components installed in the
  server), I'd say it's almost impossible. Maybe if the swf is
 uncompressed,
  you can give it a shot, reading the file with a FileSystemObject -which
 is
  meant to read text files- and using some single-byte string encoding and
  reading the chars values with de asc() function. Ugly, but it should be
  possible (it's not a peace of cake, though, considering the fact that
 VBS
  doesn't even have a syntax for bit shifting, so you'd have to craft
  some functions for that).
 
  But the biggest problem is, most swf's are compressed since version 6,
 and
  except the first 8 bytes (signature + version + file_size), the rest of
  the
  header itself is deflated (as well as the rest of the file). As far as I
  know, classic ASP doesn't support deflating natively, so that would be a
  major problem -- and I'm not sure if there's some work around to that
  limitations.
 
 
  Cheers
  Juan Palblo Califano
 
 
  2008/4/28, Helmut Granda [EMAIL PROTECTED]:
  
   Hi All,
  
  I have done some extensive research in the subject and the
  only
   solution I found is a ASP class some one wrote in 2001 and it is
  outdated.
   Does anyone knows how to read the SWF headers with ASP? I know how to
 do
   it
   with PHP but I havent found a solution with ASP.
  
   Mainly I am trying to get width and height.
  
  TIA
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 ...helmut
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
I used to use it, but AS3 made it obsolete.  What bugs do you see?  I
found that it had serious performance flaws on large datasets, but
otherwise worked really well.

Jason Merrill 
Bank of America 
Global Technology  Operations LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Glen Pike
Sent: Tuesday, April 29, 2008 10:20 AM
To: Flashcoders mailing list
Subject: [Flashcoders] XPath

Hi,

Does anyone know who to speak to about bugs in 
XFactorStudio's XPath api?

Thanks

Glen
-- 

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Loosing full-screen when loosing focus

2008-04-29 Thread Rich Shupe
Yes, the Flash projector will stay in fullscreen mode when changing
focus--at least when Command-Tabbing on the Mac. I assume it will behave
similarly on Windows.

I didn't mean to preclude that out of the box. I just never use the built-in
projectors because they're a hair shy of worthless for desktop apps. About
the only thing they can do is go fullscreen. I think they can still launch
an app if you provide the exact path to it, but nothing more.

That's also why I didn't include AIR, which might be another option for you.
Adobe was very specific that they were not creating a desktop APP tool, but
rather a desktop extension for RIAs. Hence looking to third-party apps.

[I have no desire to get into a 'my tool is better than yours' discussion
here. AIR is great and those are Adobe's (paraphrased) words.]

It all depends on what your app needs to do. If you were previously
contemplating delivering via the browser, you may not need any of the
functionality that makes mProjector so great.

AS version and cross-platform delivery are also issues. AIR can't do
anything special with AS2 projects (AIR is AS3 but you can load AS2 SWFs if
you don't need to communicate with them), mProjector is in beta for AS3,
other tools can do AS3 but can't do cross-platform as well, etc.

Good luck,

Rich
http://www.LearningActionScript3.com


On 4/29/08 11:03 AM, Bart Goormans wrote:

 Thanks for the tip Rich.
 
 I had a look at the mProjector. This third-party projector will probably
 solve several questions in the project we're doing. Only hope the
 project manager will allow for third-party pluggs. We are developing a
 desktop app. Not a browser based, so it would certainly be a valid option.
 Have to check with people from mProjector in detail (not found in
 docu/examples)
 
 Would this not be something the flashplayer should support by itself, a
 fixed (regardless of having the focus or not) fullscreen mode?



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Glen Pike

Hmmm,

   Seems my original reply did not go to the list:

   Here is the email again, but don't worry too much about it, as I 
have a workaround...


   (The sitemap snippet is also missing some activity 
file=activity1.swf type=SWF/ entries too - I can't just search for 
//animation/@file[...] )


   It's a bit of a sneaky one, but I have a workaround - I just wanted 
to flag it up...


Here is the email I sent back to Pete...

I am trying to find all nodes with an attribute called file which ends 
in (can't do this in XPath 1.0 so contains will have to do) .swf.


Here is my XPath string;

//@file[contains(., .swf)]

I am comparing the AS XPath implementation with this online testbed - 
which is also very useful :)


http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm

My workaround is to pull out all nodes with an attribute called file, 
then compare the values with .swf myself.


//@file

Below is a snippet of the XML I am using...

sitemap
section label=Home
   intro
   animation file=animations/MainIntro.swf/
   animation file=animations/AndyIntroDuffy.swf/
   animation file=animations/duffy_intro_1.swf/
   animation file=animations/duffy_intro_2.swf/
   animation file=animations/duffy_intro_3.swf/
   /intro
   section label=Geography
   intro
   animation file=animations/geog_quiz_intro.swf/
   /intro
   quiz file=geography.xml/
   activity type=PDF label=Duffy's Oceans 
file=geo-1-duffys-oceans.pdf/
   activity type=PDF label=Duffy's Coasts 
file=geo-2-duffys-coasts.pdf/
   activity type=PDF label=Geography Glossary 
file=geo-glossary.pdf/

   /section
   section label=English
   intro
   animation file=animations/english_quiz_intro.swf/
   /intro
   quiz file=english.xml/
   activity type=PDF label=A Home For Duffy 
file=eng-1-home-for-duffy.pdf/
   activity type=PDF label=A Sad Story 
file=eng-2-a-sad-story.pdf/
   activity type=PDF label=Duffy's Day 
file=eng-3-duffys-day.pdf/
   activity type=PDF label=Do The Duffy Rap 
file=eng-4-duffy-rap.pdf/
   activity type=PDF label=English Glossary 
file=eng-glossary.pdf/

   /section
/section
sitemap
--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
In XPath 1.0, an attribute is an axis, not a node, and so cannot be
used as a context node. (ie the self axis that you are attempting to
access with . does not exist). I could be wrong on this, but I
implemented my own xpath library for AS3 from the w3c spec, without
referencing the xfactorstudio code, and it does not work either
(actually it throws an error).

I wonder if the test site that you mention is completely compliant.
For example certain XPath 2.0 features such as a/(b | c) work in
there, but are not valid in XPath 1.0, so it's possible that they
support more than is required.

Anyway, the following will work instead:

//*[contains(@file, '.swf')]/@file


Peter


On Tue, Apr 29, 2008 at 6:06 PM, Glen Pike [EMAIL PROTECTED] wrote:
 Hmmm,

Seems my original reply did not go to the list:

Here is the email again, but don't worry too much about it, as I have a
 workaround...

(The sitemap snippet is also missing some activity file=activity1.swf
 type=SWF/ entries too - I can't just search for //animation/@file[...]
 )

It's a bit of a sneaky one, but I have a workaround - I just wanted to
 flag it up...

  Here is the email I sent back to Pete...

  I am trying to find all nodes with an attribute called file which ends in
 (can't do this in XPath 1.0 so contains will have to do) .swf.

  Here is my XPath string;

  //@file[contains(., .swf)]

  I am comparing the AS XPath implementation with this online testbed - which
 is also very useful :)

  http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm

  My workaround is to pull out all nodes with an attribute called file, then
 compare the values with .swf myself.

  //@file

  Below is a snippet of the XML I am using...

  sitemap
  section label=Home
intro
animation file=animations/MainIntro.swf/
animation file=animations/AndyIntroDuffy.swf/
animation file=animations/duffy_intro_1.swf/
animation file=animations/duffy_intro_2.swf/
animation file=animations/duffy_intro_3.swf/
/intro
section label=Geography
intro
animation file=animations/geog_quiz_intro.swf/
/intro
quiz file=geography.xml/
activity type=PDF label=Duffy's Oceans
 file=geo-1-duffys-oceans.pdf/
activity type=PDF label=Duffy's Coasts
 file=geo-2-duffys-coasts.pdf/
activity type=PDF label=Geography Glossary
 file=geo-glossary.pdf/
/section
section label=English
intro
animation file=animations/english_quiz_intro.swf/
/intro
quiz file=english.xml/
activity type=PDF label=A Home For Duffy
 file=eng-1-home-for-duffy.pdf/
activity type=PDF label=A Sad Story
 file=eng-2-a-sad-story.pdf/
activity type=PDF label=Duffy's Day
 file=eng-3-duffys-day.pdf/
activity type=PDF label=Do The Duffy Rap
 file=eng-4-duffy-rap.pdf/
activity type=PDF label=English Glossary
 file=eng-glossary.pdf/
/section
  /section
  sitemap


  --

  Glen Pike
  01326 218440
  www.glenpike.co.uk http://www.glenpike.co.uk

  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
Thanks for your help guys i went down the JSON route and won! :o)


  - Original Message - 
  From: Muzak 
  To: Flash Coders List 
  Sent: Tuesday, April 29, 2008 3:35 PM
  Subject: Re: [Flashcoders] (AS3) Object to an Array


  ASP .NET ?

  use remoting ;-)
  http://www.themidnightcoders.com/weborb/dotnet/

  - Original Message - 
  From: SJM - Flash [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Tuesday, April 29, 2008 3:52 PM
  Subject: Re: [Flashcoders] (AS3) Object to an Array


  Unfortunalty we are only testing in PHP, the application is going to be on an 
ASP coded website so we really need to fix this from 
  flash! :o(
- Original Message - 
From: Muzak
To: Flash Coders List
Sent: Tuesday, April 29, 2008 2:09 PM
Subject: Re: [Flashcoders] (AS3) Object to an Array


use remoting:
http://www.amfphp.org/


  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FlipBook/Page AS3 OpenSource?

2008-04-29 Thread Patrick J. Jankun
Has anyone got any alternatives? I googled for an hour now and all i  
find is crappy as2 components

nowhere to find an as3 based with sources tho :|
On Apr 29, 2008, at 4:54 PM, Glen Pike wrote:


Hi,

  Have a look at quietlyscheming's Flex book:
http://www.quietlyscheming.com/blog/components/flexbook/

  
http://www.quietlyscheming.com/blog/2007/03/14/flexbook-updated-source-now-available/

  Obviously this is Flex based, but you may be able to make it into  
an SWC that you can use with Flash.


  Glen

Patrick J. Jankun wrote:

Hi everyone,

Does anybody knows any good opensourced and somehow free flipBook  
or flipPage?
All i founded googlin is 10.000 licensed components with some  
strange licensing.


Greetings,
Patrick
--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Loosing full-screen when loosing focus

2008-04-29 Thread Bart Goormans
Our app will be a sort of backoffice in which we will be dealing with 
the filesystem extensively. It will be managing mediafiles and dig into 
its xml metatags. From the start on, this project is completely AS3 
based. So I 'd better test the mProjector thoroughly beeing in beta for AS3.


I haven't had too much experience on building full scale apps in flash 
but this will be an adventurous challenge. Hope to get the squares out 
of the wheels soon and start rollin'  ;-)) Thx!


Cheers,
Bart


Rich Shupe schreef:


Yes, the Flash projector will stay in fullscreen mode when changing
focus--at least when Command-Tabbing on the Mac. I assume it will behave
similarly on Windows.

I didn't mean to preclude that out of the box. I just never use the built-in
projectors because they're a hair shy of worthless for desktop apps. About
the only thing they can do is go fullscreen. I think they can still launch
an app if you provide the exact path to it, but nothing more.

That's also why I didn't include AIR, which might be another option for you.
Adobe was very specific that they were not creating a desktop APP tool, but
rather a desktop extension for RIAs. Hence looking to third-party apps.

[I have no desire to get into a 'my tool is better than yours' discussion
here. AIR is great and those are Adobe's (paraphrased) words.]

It all depends on what your app needs to do. If you were previously
contemplating delivering via the browser, you may not need any of the
functionality that makes mProjector so great.

AS version and cross-platform delivery are also issues. AIR can't do
anything special with AS2 projects (AIR is AS3 but you can load AS2 SWFs if
you don't need to communicate with them), mProjector is in beta for AS3,
other tools can do AS3 but can't do cross-platform as well, etc.

Good luck,

Rich
http://www.LearningActionScript3.com


On 4/29/08 11:03 AM, Bart Goormans wrote:

 


Thanks for the tip Rich.

I had a look at the mProjector. This third-party projector will probably
solve several questions in the project we're doing. Only hope the
project manager will allow for third-party pluggs. We are developing a
desktop app. Not a browser based, so it would certainly be a valid option.
Have to check with people from mProjector in detail (not found in
docu/examples)

Would this not be something the flashplayer should support by itself, a
fixed (regardless of having the focus or not) fullscreen mode?
   





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



--
Ontwerpbureau ZieZo
-
Bart Goormans
Schoterweg 282, 3980 Tessenderlo.
T+32 13 67 80 73M+32 473 94 27 34


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Glen Pike

Hi,

   Your query works fine, thanks for that :)

   I guess the online tool is useful, but will treat results with some 
scepticism and will try to get my head around axes and nodes, etc.  a 
bit more...


   Cheers

   Glen

Peter Hall wrote:

In XPath 1.0, an attribute is an axis, not a node, and so cannot be
used as a context node. (ie the self axis that you are attempting to
access with . does not exist). I could be wrong on this, but I
implemented my own xpath library for AS3 from the w3c spec, without
referencing the xfactorstudio code, and it does not work either
(actually it throws an error).

I wonder if the test site that you mention is completely compliant.
For example certain XPath 2.0 features such as a/(b | c) work in
there, but are not valid in XPath 1.0, so it's possible that they
support more than is required.

Anyway, the following will work instead:

//*[contains(@file, '.swf')]/@file


Peter


On Tue, Apr 29, 2008 at 6:06 PM, Glen Pike [EMAIL PROTECTED] wrote:
  

Hmmm,

   Seems my original reply did not go to the list:

   Here is the email again, but don't worry too much about it, as I have a
workaround...

   (The sitemap snippet is also missing some activity file=activity1.swf
type=SWF/ entries too - I can't just search for //animation/@file[...]
)

   It's a bit of a sneaky one, but I have a workaround - I just wanted to
flag it up...

 Here is the email I sent back to Pete...

 I am trying to find all nodes with an attribute called file which ends in
(can't do this in XPath 1.0 so contains will have to do) .swf.

 Here is my XPath string;

 //@file[contains(., .swf)]

 I am comparing the AS XPath implementation with this online testbed - which
is also very useful :)

 http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm

 My workaround is to pull out all nodes with an attribute called file, then
compare the values with .swf myself.

 //@file

 Below is a snippet of the XML I am using...

 sitemap
 section label=Home
   intro
   animation file=animations/MainIntro.swf/
   animation file=animations/AndyIntroDuffy.swf/
   animation file=animations/duffy_intro_1.swf/
   animation file=animations/duffy_intro_2.swf/
   animation file=animations/duffy_intro_3.swf/
   /intro
   section label=Geography
   intro
   animation file=animations/geog_quiz_intro.swf/
   /intro
   quiz file=geography.xml/
   activity type=PDF label=Duffy's Oceans
file=geo-1-duffys-oceans.pdf/
   activity type=PDF label=Duffy's Coasts
file=geo-2-duffys-coasts.pdf/
   activity type=PDF label=Geography Glossary
file=geo-glossary.pdf/
   /section
   section label=English
   intro
   animation file=animations/english_quiz_intro.swf/
   /intro
   quiz file=english.xml/
   activity type=PDF label=A Home For Duffy
file=eng-1-home-for-duffy.pdf/
   activity type=PDF label=A Sad Story
file=eng-2-a-sad-story.pdf/
   activity type=PDF label=Duffy's Day
file=eng-3-duffys-day.pdf/
   activity type=PDF label=Do The Duffy Rap
file=eng-4-duffy-rap.pdf/
   activity type=PDF label=English Glossary
file=eng-glossary.pdf/
   /section
 /section
 sitemap


 --

 Glen Pike
 01326 218440
 www.glenpike.co.uk http://www.glenpike.co.uk

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FlipBook/Page AS3 OpenSource?

2008-04-29 Thread Glen Pike

http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flash-example-with.html

Patrick J. Jankun wrote:
Has anyone got any alternatives? I googled for an hour now and all i 
find is crappy as2 components

nowhere to find an as3 based with sources tho :|
On Apr 29, 2008, at 4:54 PM, Glen Pike wrote:


Hi,

  Have a look at quietlyscheming's Flex book:
http://www.quietlyscheming.com/blog/components/flexbook/

  
http://www.quietlyscheming.com/blog/2007/03/14/flexbook-updated-source-now-available/ 



  Obviously this is Flex based, but you may be able to make it into 
an SWC that you can use with Flash.


  Glen

Patrick J. Jankun wrote:

Hi everyone,

Does anybody knows any good opensourced and somehow free flipBook or 
flipPage?
All i founded googlin is 10.000 licensed components with some 
strange licensing.


Greetings,
Patrick
--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
Curious why not use AS3 instead?  Is your audience still using FP8?

Jason Merrill 
Bank of America 
Global Technology  Operations LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Loosing full-screen when loosing focus

2008-04-29 Thread Rich Shupe
If you are only READING files, you have a bit more options. If you are
writing files, or dealing with the OS extensively in traditional application
ways, you pretty much have to go with a projector enhancer. You can't really
use the browser, and you can't use AIR.

Some may say that their are other options by extending those environments
(server-based saving--to server or locally, Java applets that add
functionality to the browser, etc., but I don't consider them realities for
the average user.

mProjector is AS3-stable on the Mac, but not yet released on Windows, so
that probably isn't a reality for an AS3 project. I've heard good and
terrible things about Zinc, so I can't offer any opinions there. I'm sure
others have used it and may be able to help. Finally, I've never had the
slightest interest in any product that isn't cross-platform, so I can't
speak to any of the Windows-only, or Mac-only (if there are any) options.

Anyone else have any opinions on proj-enhancers?


On 4/29/08 2:31 PM, Bart Goormans wrote:

 Our app will be a sort of backoffice in which we will be dealing with
 the filesystem extensively. It will be managing mediafiles and dig into
 its xml metatags. From the start on, this project is completely AS3
 based. So I 'd better test the mProjector thoroughly beeing in beta for AS3.
 
 I haven't had too much experience on building full scale apps in flash
 but this will be an adventurous challenge. Hope to get the squares out
 of the wheels soon and start rollin'  ;-)) Thx!

Rich
http://www.LearningActionScript3.com


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers

Merrill, Jason wrote:


Curious why not use AS3 instead?


I don't speak for the OT here, just a comment to your earlier comment 
that AS3 made XPath obsolete. This is not really true.


It is true that with E4X you have almost the same functionality as 
XPath, but E4X fails badly if your query comes from an external source, 
like if your application needs to deal with arbitrary XML and the 
queries are dynamic in nature (for example provided by a user, etc).


Cheers,
Claus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
I don't speak for the OT here, just a comment to your earlier 
comment that AS3 made XPath obsolete. This is not really true.

It is true that with E4X you have almost the same 
functionality as XPath, but E4X fails badly if your query 
comes from an external source, like if your application needs 
to deal with arbitrary XML and the queries are dynamic in 
nature (for example provided by a user, etc).

OK, so I'll concede AS3 only 98% makes it obsolete. :) 

Jason Merrill 
Bank of America 
Global Technology  Operations LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] XPath

2008-04-29 Thread Merrill, Jason
Although i 
think obsolete is a somewhat binary term, like pregnant, no?

I don't think so.  

Is Windows 98 obsolete?  Yes.  Is it still used in places around the
world, and therefore has uses? Yes. 

But we're just arguing symantics now, who really cares.  The main point
is, for most people, AS3 should handle what they want to so with XML.
For a few, Xpath may still have some apparent uses.

Jason Merrill 
Bank of America 
Global Technology  Operations LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Claus Wahlers
Sent: Tuesday, April 29, 2008 4:20 PM
To: Flash Coders List
Subject: Re: [Flashcoders] XPath

Merrill, Jason wrote:

 I don't speak for the OT here, just a comment to your earlier 
 comment that AS3 made XPath obsolete. This is not really true.

 It is true that with E4X you have almost the same 
functionality as 
 XPath, but E4X fails badly if your query comes from an external 
 source, like if your application needs to deal with arbitrary XML 
 and the queries are dynamic in nature (for example provided by a 
 user, etc).
 
 OK, so I'll concede AS3 only 98% makes it obsolete. :)

For you, maybe. For me it'd be more like 25%. Although i 
think obsolete is a somewhat binary term, like pregnant, no?

Cheers,
Claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FlipBook/Page AS3 OpenSource?

2008-04-29 Thread Patrick J. Jankun

Thank you Glen!
This should do the trick

Patrick
On Apr 29, 2008, at 8:50 PM, Glen Pike wrote:


http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flash-example-with.html

Patrick J. Jankun wrote:
Has anyone got any alternatives? I googled for an hour now and all  
i find is crappy as2 components

nowhere to find an as3 based with sources tho :|
On Apr 29, 2008, at 4:54 PM, Glen Pike wrote:


Hi,

 Have a look at quietlyscheming's Flex book:
   http://www.quietlyscheming.com/blog/components/flexbook/

 
http://www.quietlyscheming.com/blog/2007/03/14/flexbook-updated-source-now-available/

 Obviously this is Flex based, but you may be able to make it into  
an SWC that you can use with Flash.


 Glen

Patrick J. Jankun wrote:

Hi everyone,

Does anybody knows any good opensourced and somehow free flipBook  
or flipPage?
All i founded googlin is 10.000 licensed components with some  
strange licensing.


Greetings,
Patrick
--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--
fancy skills to pay the bills
www.jankun.org

Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] random char

2008-04-29 Thread Corban Baxter
hey guys I'm looking for a little help with doing something similar to
this: 
http://www.zeuslabs.us/2008/01/17/source-code-for-custom-textfields-with-cool-effects/...
but in AS2. Can someone point me in the right direction? thanks!

-- 
Corban Baxter
http://www.projectx4.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] random char

2008-04-29 Thread Pedro Taranto
you can download the code, why dont you port it to AS2?

--
Pedro Taranto


On Tue, Apr 29, 2008 at 5:53 PM, Corban Baxter [EMAIL PROTECTED] wrote:

 hey guys I'm looking for a little help with doing something similar to
 this:
 http://www.zeuslabs.us/2008/01/17/source-code-for-custom-textfields-with-cool-effects/.
 ..
 but in AS2. Can someone point me in the right direction? thanks!

 --
 Corban Baxter
 http://www.projectx4.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Ricky Bacon

Claus Wahlers wrote:

Merrill, Jason wrote:


Curious why not use AS3 instead?


I don't speak for the OT here, just a comment to your earlier comment 
that AS3 made XPath obsolete. This is not really true.


It is true that with E4X you have almost the same functionality as 
XPath, but E4X fails badly if your query comes from an external source, 
like if your application needs to deal with arbitrary XML and the 
queries are dynamic in nature (for example provided by a user, etc).


Curious about this: like using eXist or doing interactive queries?

-Ricky
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Glen Pike

Hi,

   The choice not to use AS3 is because I am re-using a lot of code 
from a very similar previous project.  Both projects were/are for a 
not-for-profit organisation, so the budget is small and we are trying to 
concentrate on the content rather than rewriting lots of code for AS3.


   Glen

  


Merrill, Jason wrote:

Curious why not use AS3 instead?  Is your audience still using FP8?

Jason Merrill 
Bank of America 
Global Technology  Operations LLD 
eTools  Multimedia 

Join the Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GTO Innovative Learning Blog  subscribe. 

 
___

Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers

Ricky Bacon wrote:


Claus Wahlers wrote:

Merrill, Jason wrote:


Curious why not use AS3 instead?


I don't speak for the OT here, just a comment to your earlier comment 
that AS3 made XPath obsolete. This is not really true.


It is true that with E4X you have almost the same functionality as 
XPath, but E4X fails badly if your query comes from an external 
source, like if your application needs to deal with arbitrary XML and 
the queries are dynamic in nature (for example provided by a user, etc).


Curious about this: like using eXist or doing interactive queries?


In my particular case it's about rendering XForms, which relies a great 
deal on XPath for data binding (E4X can't help me there)


http://www.w3schools.com/xforms/xforms_xpath.asp

Cheers,
Claus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders