Re: [Flashcoders] capture and email

2008-01-09 Thread Leandro Ferreira
If its AS2 you could create an array of rgb values captured from a ButeArray
and send it via AMF also.


   Leandro Ferreira

On 1/8/08, Matthew James Poole [EMAIL PROTECTED]
wrote:

 If its AS3 You could use the JPEGEncoder class to send a ByteArray over
 remoting using AMF3 and create the jpg serevr side and add it to an
 attachment of an email you send or embed it...

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Bo
 Parker
 Sent: 08 January 2008 17:26
 To: Flashcoders mailing list
 Subject: [Flashcoders] capture and email

 I have an application that allows people to build, and customize
 buildings. The client would like the functionality available to screen
 capture their final building and attach to an email through a flash
 based email form. The email form is no problem but
 1) Im not sure how to is best to capture what they have built on screen
 
 2) not sure how to take that capture and attach the email.

 Can you guys possibly steer me in the right direction?

 Thanks,

 --
 Bo Parker, AIGA
 Bo Co. Design
 650 W Vickery
 Suite 130
 Fort Worth, Texas  76104

 817.332.4700 phone
 817.332.4710 facsimile

 www.rmcfw.com


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

 __
 This e-mail has been scanned for viruses by the Virtual Universe e-mail
 security system - powered by MessageLabs.
 http://www.virtual-universe.net

 __

 Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London  NW6
 6RJ

 Tel:  +44 (0) 870 788 6000

 Fax: +44 (0) 870 788 6689

 Web:www.virtual-universe.net


 -

 CONFIDENTIALITY NOTICE

 This e-mail may contain information which is confidential and privileged.
 If you are not the named addressee of this e-mail, you may not copy or use
 it, or forward or otherwise disclose it to anyone else. If you have received
 this e-mail in error, please e-mail the sender by replying to this message
 and then fully delete it from your system.

 Any views or opinions presented in this e-mail are solely those of the
 author and do not necessarily represent those of Amplefuture Group.
 Amplefuture Group reserves the right to monitor e-mail communications from
 both external and internal sources for the purposes of ensuring correct and
 appropriate use of our communication equipment.



 __
 This e-mail has been scanned for viruses by the Virtual Universe e-mail
 security system - powered by MessageLabs. http://www.virtual-universe.net

 ___
 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] using graphics from flash 8 with flex 2 sdk

2008-01-15 Thread Leandro Ferreira
I don't get it: why don't you use flash CS3?


   Leandro Ferreira

On Jan 15, 2008 12:15 PM, Gregory N [EMAIL PROTECTED] wrote:

 Hi all,

 I have an application made a while ago in as1 (flash 6).

 Now I need to make new version of it in AS3.
 Fortunately, there's no code in clips, only in frame 1 on _root :-).
 But all graphics currently is in FLA.
 And I haven't upgraded to Flash CS3 yet (hope not to do it at all).

 I've seen this article:
 http://www.adobe.com/devnet/flash/articles/flex2_flash.html

 But it mentions Flex Builder 2, not SDK.

 Question:
 Can I (if yes, how) use graphics from flash 8 with flex 2 sdk?

 I can think of loading graphics-only swfs (as2) into final (AS3) swf...
 But doubt that I'll be able to access their assets (not code, just mc's).


 --
 --
 Best regards,
 GregoryN
 
 http://GOusable.com
 Flash components development.
 Usability services.
 ___
 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] placing mc on the stage

2008-01-16 Thread Leandro Ferreira
You could also use random(500), but is deprecated -
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary630.html



- how do i do to define the x and y position of each mc separately?

I don't get it.. what do you want to do here?


   Leandro Ferreira

On 1/16/08, Bob Leisle [EMAIL PROTECTED] wrote:

 Hi Pedro,

 Try this instead:

 Math.random()*500;

 Here's a simplistic but clear tutorial on the subject:
 http://animation.about.com/od/flashanimationtutorials/ss/mathrandom.htm

 hth,
 Bob

 Pedro Kostelec wrote:
  Hello
  i got this code:
 
  this.createEmptyMovieClip(canvas,this.getNextHighestDepth());
 //creates an
  empty MC in which i attach 2 textMCs
  canvas._x = random500;//should place the MCs to a random position when
 they
  load but it doesn't work?!?-What is wrong
 here?
  canvas._y = random100;
 
  attachMovieInterval = setInterval(attachMovies, 200);//set interval for
  green mc reload
 
  function attachMovies() {
  for (var i = 0; i2; i++) {
  canvas.attachMovie(code,code+i,this.getNextHighestDepth());
  canvas.code1._x = random500;
  canvas.code1._y = random100;
  canvas.code2._x = Stage.width/2;
  canvas.code2._x = Stage.height/2;//how do i do to define the x
 and y
  position of each mc separately?
  }
  }
 
  sorry for writing it so briefly. My keyboard doesn't work well and i
 cannot
  type a lot
  -
 
 

 --
 Thanks,
 ~
 Bob Leisle
 Headsprout Software  Engineering
 http://www.headsprout.com
 Where kids learn to read!

 ___
 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] Re: [AS3] Lock to Root or similar

2008-01-20 Thread Leandro Ferreira
like this? LoaderInfo( this.root.loaderInfo ).parameters;


   Leandro Ferreira

On 1/17/08, Helmut Granda [EMAIL PROTECTED] wrote:

 Since the stage properties were scacely needed, i was able to transfer
 those
 properties to the shell but I am still courios on how to get the stage
 values to new loaded SWFs without having to actually pass the parameters
 through a function...

 TIA

 On 1/17/08, Helmut Granda [EMAIL PROTECTED] wrote:
 
  HI all,
 
  I am working on a site and everything is working properly. I decided to
  add a shell movie and then load the app movie into the shell movie
 but
  the app movie uses the stage class to determine some basic factors...
 the
  idea is that since I am loading app into shell, now app things that the
  stage is = to null.
 
  Any suggestions of how to adjust this minor issue? AS3
 
  --
  ...helmut




 --
 ...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] Animating sprite.graphics.lineTo

2008-02-01 Thread Leandro Ferreira
You could do it sending and object to TweenLite and monitoring its variables
to create lines from A to B.


   Leandro Ferreira


On 1/29/08, Merrill, Jason [EMAIL PROTECTED] wrote:


 Tried on another Flash  list without any luck, so I'll try here.

 I'm trying to see if there is a way to combine TweenLite and the draw
 functions (i.e. sprite.graphics.lineto) to slowly draw a line from point
 A to point B. Maybe there isn't, but I thought I would ask.

 Is it possible or would it have to be accomplished instead by drawing
 slowly from point A to a point approaching B, then clearing, drawing
 further, then clearning, etc. until the endpoint is reached? I'd like
 to avoid that because it's 1) kludgy, 2) processor intensive, 3) time
 consuming to code, 4) does not use easing (easily anyway), and 5) would
 not look smooth. Any thoughts?

 Oh, and any method suggested has to be done dynamically with the draw
 API, not a timeline solution, since this is in regards to rendering a
 dynamic graphic.  Thanks.



 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community


 ___
 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] How do you do this?

2008-02-26 Thread Leandro Ferreira
http://www.euclideanspace.com

On Tue, Feb 26, 2008 at 6:30 AM, Martin Klasson [EMAIL PROTECTED] wrote:

 for me, everything in Math is difficult.
 are there any great resources into making math more easy for me online?
 -I am already in a great position, so breaking out from my job and start
 studying
 full time is not an option.

 but if any of you have great resources online, than I would be thankful.

 / martin


 2008/2/26, [EMAIL PROTECTED] [EMAIL PROTECTED]:
 
  this is very simple in math... you've only circles so you don't need
 other
  than z-sorting and 3d coords/object calculations. if you've the z-index
  you
  can calc the x-y blur for the circles and its size. that's all...
  n
 
 
  - Original Message -
  From: Cory Petosky [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Monday, February 25, 2008 23:23
  Subject: Re: [Flashcoders] How do you do this?
 
 
   Can you verify that this is Papervision? I'd think Papervision would
   be far too slow for something like this. A simple homebrew 3D engine
   optimized for this particular use-case seems more likely considering
   that this app is designed as a performance benchmark.
  
   On 2/25/08, eric e. dolecki [EMAIL PROTECTED] wrote:
   tons of math and some papervision3d.
  
  
  
On Mon, Feb 25, 2008 at 4:40 PM, Jim Robson 
 [EMAIL PROTECTED]
wrote:
  
  
 Hello all,

 There's a neat 3D CS3 demo from a Japanese tour. I'd like to know
  how
   to
 go
 about creating this kind of effect; my (few and rare) attempts at
 3D
 animation in Flash have not performed nearly this well:


 http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf

 Any ideas/hints/urls/etc?

 - Jim

 ___
 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
  
  
  
   --
   Cory Petosky : Lead Developer : PUNY
   1618 Central Ave NE Suite 130
   Minneapolis, MN 55413
   Office: 612.216.3924
   Mobile: 240.422.9652
   Fax: 612.605.9216
   http://www.punyentertainment.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
 



 --

 Martin Klasson
 Flash Developer
 Parkgatan 9-11
 S-411 24 Göteborg
 Sweden
 Office +46 (0) 31 711 54 50
 Cell +46 (0) 730 964 561
 [EMAIL PROTECTED]
 www.kokokaka.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] dictionary vs array

2008-03-18 Thread Leandro Ferreira
There's also a performance issue there, since some array operations(ie.
splice) are more expensive than in dictionaries and some dictionaries
operations(ie.
for in) are more expensive than array ones.


   Leandro Ferreira

On 3/11/08, Hans Wichman [EMAIL PROTECTED] wrote:

 On a sidenote, it's pretty easy to implement for as2 too btw, although the
 performance is probably not uber.
 I gotta admit once you get used to object-to-object mapping ... ;)
 On Tue, Mar 11, 2008 at 9:07 PM, Claus Wahlers [EMAIL PROTECTED]
 wrote:


  Claus Wahlers wrote:
 
   An associative Array behaves similar to a Dictionary.
 
  (if you are using string keys)
 
  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

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


Re: [Flashcoders] AS2: Tweening a very large vector file causes shaking

2008-03-24 Thread Leandro Ferreira
video card? how come?

On 3/21/08, Merrill, Jason [EMAIL PROTECTED] wrote:

 Fuse is really really bad IMO for tweening when performance (like with
 your complex vector graphic) is a concern.  I dropped it because it
 became unusable for me in high stress situations.  My current
 tweener-of-the-month I like is TweenLite.

 Also, Flash does have a hard time, tweening aside, when very very
 complex vector graphics are used.  We designed a very complex
 photo-realistic assets representing the inside of an ATM machine, which
 took us several days to build, and had performance issues that were
 unrelated to any code (we tested it in fresh .flas with no code) - and
 these graphics were done with only Flash drawing tools.  We used a ton
 of gradients to achieve photo-realistic rendering, but it came with a
 price.  The main problem we had was sometimes the Flash player (8 at the
 time) would not load the graphic, sometimes it would - completely
 random.  We finally got it working fine, but learned there are limits to
 what the browser/player/memory can render.  Possible it was related to
 the video card too, to be fair.  Anyway, something to keep in mind.

 Jason Merrill
 Bank of America
 GTO and Risk LLD Solutions Design  Development
 eTools  Multimedia

 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

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


Re: [Flashcoders] removeChild - targeting question

2008-04-01 Thread Leandro Ferreira
emitter.parent?


   Leandro Ferreira

On 4/1/08, Forrest Maready [EMAIL PROTECTED] wrote:

 The code below has a problem. The  line within the removeDead function
 is supposed to removeChild on the emitter object.
 I can't for the life of me figure out what the path is- is it
 event.target.parent.removeChild(event.target) or is it parent.removeChild(
 event.target) or what? I've tried everything I can think of to no avail-
 lots of The supplied DisplayObject must be a child of the caller.

 Any ideas? Thank you Flashcoders. May your brightness never dim.




 public class Main extends MovieClip
 {

 var emitter:PEmitter;
 var pArray:Array;

 public function Main()
 {
 stage.addEventListener(MouseEvent.MOUSE_MOVE, createPEmitter);
 }

 public function createPEmitter(event:MouseEvent)
 {
 if (event.buttonDown == true)
 {
 emitter = new PEmitter(event.target.mouseX,
 event.target.mouseY, circle, 5, 0x00, 3, 3, 95, 90);
 //  PEmitter (PositionX:Number, PositionY:Number,
 spriteType:String, amount:Number, color:uint, velocity:Number,
 velocityRandom:Number, emissionRange:Number, emissionAngle:Number)
 addChild(emitter);
 emitter.mouseChildren = false;
 emitter.addEventListener (Event.ENTER_FRAME, removeDead);
 }
 }

 function removeDead(event:Event)
 {
 if (emitter.pParticle.pArray.length == 0)
 {
 trace (No more particles);
   *parent.removeChild(emitter); // THIS LINE NEEDS HELP-- DO
 YOU
 KNOW WHAT PATH WILL REMOVE THE ABOVE EMITTER INSTANCE?
 emitter.removeEventListener (Event.ENTER_FRAME,
 removeDead);
 }
 }

 }
 ___
 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 properties of a textbox [AS3]

2008-04-15 Thread Leandro Ferreira
Window - Other Panels - Strings

On 4/15/08, Stuart (FunkDaWeb) [EMAIL PROTECTED] wrote:

 Hi Cory ive finally got round to adding your code 'embedFonts = true ' but
 i still have the same problem!

 when i use the function it removes the text! then when i click again it
 displays the text again no bold/italic!

   - Original Message -
   From: Cory Petosky

   To: Flash Coders List
   Sent: Thursday, April 03, 2008 8:43 PM
   Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


   Replace that with:

   formatter.italic = !currentFormat.italic;

   The conditionals aren't necessary in that situation. :)

   On Thu, Apr 3, 2008 at 1:21 PM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
 wrote:
YAY! It works! Thank you! :o)
   
 Wont work with embedFonts = true thought! :o(
   
 Onwards and upwards!
   
 Thanks for your help!
   
 SM
   
   
  - Original Message -
  From: jonathan howe
  To: Flash Coders List
  Sent: Thursday, April 03, 2008 6:53 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
   
   
  Okay, but in the simple example, you are using it for both:
   
  Okay, but formatter should not be treated as a property of
 _selectedBox.
  _selectedBox has no property named formatter.
   
  This is the offending line:
   
  if (_selectedBox.formatter.italic == false)
   
  You already have set formatter to the value of
 _selectedBox.getTextFormat();
  Thus your conditional should read:
   
  if (formatter.italic == false)
   
  To simplify it to keeping formatter separate from the current
 format, let's
  rewrite:
   
  var currentFormat:TextFormat = _selectedBox.getTextFormat();
  var formatter:TextFormat = new TextFormat();
   
if (currentFormat.italic == false)
{
 formatter.italic = true;
}
else
{
 formatter.italic = false;
}
   
   _selectedBox.setTextFormat(formatter);
   
   
  -jonathan
   
   
  On Thu, Apr 3, 2008 at 1:19 PM, Stuart (FunkDaWeb) 
 [EMAIL PROTECTED]
  wrote:
   
   formatter is a blank variable and has nothing to do with reading
 the text
   propperties its used for setting them! I need to figure out how to
 tell if a
   text field is set to italic or not! once i can do this i can fix
 the if
   statement!
  
   do you have any idea how to do this?
  
  
  
  
 
  
  
   FUI - New code is this
  
   var formatter:TextFormat = _selectedBox.getTextFormat();
  
  if (_selectedBox.formatter.italic == false)
  {
  formatter.italic = true;
 }
 else
 {
  formatter.italic = false;
 }
  
_selectedBox.setTextFormat(formatter);
 - Original Message -
From: jonathan howe
To: Flash Coders List
 Sent: Thursday, April 03, 2008 5:53 PM
Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
  
  
Hi, Stuart,
  
Based on the error message sounds like maybe you are trying to
 access
_selectedBox.formatter or something else invalid. Can you repaste
 your
   new
code after the change?
  
-jonathan
  
  
On Thu, Apr 3, 2008 at 11:15 AM, Stuart (FunkDaWeb) 
 [EMAIL PROTECTED]
   
wrote:
  
 thanks Jonathan for some reason i get this error when i change
 to your
 code...

 ReferenceError: Error #1069: Property formatter not found on
 flash.text.TextField and there is no default value.
   - Original Message -
  From: jonathan howe
  To: Flash Coders List
  Sent: Thursday, April 03, 2008 4:04 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox
 [AS3]


  var formatter:TextFormat = _selectedBox.getTextFormat();

  On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) 
   [EMAIL PROTECTED]
 
  wrote:

   Hi all im tring to write a button that changes the format of
 a
   textbox
   from normal to italic and back again. I have written the
 below code
   but
 i
   cannot seam to get it to work!
  
   var formatter:TextFormat = new TextFormat();
  
 if (formatter.italic == false)
 {
  formatter.italic = true;
 }
 else
 {
  formatter.italic = false;
 }
  
 _selectedBox.setTextFormat(formatter);
  
   So my question is how do i read the properties of a textbox
 in order
   to
   create an if statment to change the properties?
  
   SM
   

[Flashcoders] drag and rotate, where do I begin?

2008-07-02 Thread Leandro Ferreira
Hi there,

I was trying to understand how this(
http://www.ffiles.com/flash/templates/drag_and_rotate_website_1670.html )
kind of movement works, but I have no idea on what to search for.
At first I got an physics book about classical mechanics, but didn't find it
useful, and can't find the exact theories involved in order to look for and
applied use.
Then I began working 'intuitively' in it, with some trigonometics and so,
but things got ugly and now I'm kind of stuck.

Does anyone here know where can I find some information/article/readable
source about this?



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


Re: [Flashcoders] drag and rotate, where do I begin?

2008-07-02 Thread Leandro Ferreira
Sure, drag and throw is not a problem, nor is rotation based on an arbitrary
point, but deciding how an object should rotate based on where the user
pressed and how he dragged it. But thanks anyway.

About ready-made classes: with APE or box2D I could manage to recreate this,
but that's not the point: what I want is to understand how it's done.
Anyone?


  Leandro Ferreira

On Thu, Jul 3, 2008 at 1:19 AM, Ashim D'Silva [EMAIL PROTECTED]
wrote:

 Basically it's using velocity well. The dragging and throwing is
 pretty easy to figure out with basic physics (velocity and
 decay/friction). The rotation is a little trickier I imagine using
 some sort of Matrix transformations to dynamically decide a point to
 rotate around. Look for rotations around an arbitratrary point. I
 don't have enough knowledge to actually help you out directly but
 hopefully this will lead you in some direction.

 Maybe there are some ready made classes...

 Ashim

 --
 Random Lines 3D
 My online portfolio
 www.therandomlines.com

 2008/7/3 Leandro Ferreira [EMAIL PROTECTED]:
  Hi there,
 
  I was trying to understand how this(
  http://www.ffiles.com/flash/templates/drag_and_rotate_website_1670.html)
  kind of movement works, but I have no idea on what to search for.
  At first I got an physics book about classical mechanics, but didn't find
 it
  useful, and can't find the exact theories involved in order to look for
 and
  applied use.
  Then I began working 'intuitively' in it, with some trigonometics and so,
  but things got ugly and now I'm kind of stuck.
 
  Does anyone here know where can I find some information/article/readable
  source about this?
 
 
 
  Thanks,
   Leandro Ferreira
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Random Lines 3D
 My online portfolio
 www.therandomlines.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] drag and rotate, where do I begin?

2008-07-04 Thread Leandro Ferreira
Downloaded, but the code is not quite readable... I'm studying it tho.

Thanks for your help.


On Thu, Jul 3, 2008 at 4:52 AM, jonathan howe [EMAIL PROTECTED]
wrote:

 I see a link into the place where they got the physics right in the
 project description:


 http://www.ffiles.com/flash/physics_and_motion/drag_and_rotation_with_easing_1649.html

 Have you tried registering and downloading - maybe it contains source?

 --jonathan

 On Thu, Jul 3, 2008 at 6:32 AM, Leandro Ferreira [EMAIL PROTECTED] wrote:

  Sure, drag and throw is not a problem, nor is rotation based on an
  arbitrary
  point, but deciding how an object should rotate based on where the user
  pressed and how he dragged it. But thanks anyway.
 
  About ready-made classes: with APE or box2D I could manage to recreate
  this,
  but that's not the point: what I want is to understand how it's done.
  Anyone?
 
 
   Leandro Ferreira
 
  On Thu, Jul 3, 2008 at 1:19 AM, Ashim D'Silva [EMAIL PROTECTED]
  wrote:
 
   Basically it's using velocity well. The dragging and throwing is
   pretty easy to figure out with basic physics (velocity and
   decay/friction). The rotation is a little trickier I imagine using
   some sort of Matrix transformations to dynamically decide a point to
   rotate around. Look for rotations around an arbitratrary point. I
   don't have enough knowledge to actually help you out directly but
   hopefully this will lead you in some direction.
  
   Maybe there are some ready made classes...
  
   Ashim
  
   --
   Random Lines 3D
   My online portfolio
   www.therandomlines.com
  
   2008/7/3 Leandro Ferreira [EMAIL PROTECTED]:
Hi there,
   
I was trying to understand how this(
   
  http://www.ffiles.com/flash/templates/drag_and_rotate_website_1670.html)
kind of movement works, but I have no idea on what to search for.
At first I got an physics book about classical mechanics, but didn't
  find
   it
useful, and can't find the exact theories involved in order to look
 for
   and
applied use.
Then I began working 'intuitively' in it, with some trigonometics and
  so,
but things got ugly and now I'm kind of stuck.
   
Does anyone here know where can I find some
  information/article/readable
source about this?
   
   
   
Thanks,
 Leandro Ferreira
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
  
  
  
   --
   Random Lines 3D
   My online portfolio
   www.therandomlines.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
 



 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
 ___
 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] Flashdevelop + Flex SDK - runtime error

2008-08-06 Thread Leandro Ferreira
How do you guys debug your movies using FlashDevelop + Flex SDK?

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


Re: [Flashcoders] Flashdevelop + Flex SDK - runtime error

2008-08-06 Thread Leandro Ferreira
That's really great, thanks, but I still can't find a way to debug runtime
errors.
Any ideas?


   Leandro Ferreira

On Wed, Aug 6, 2008 at 10:04 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 Good article, I had no idea FlashDevelop had a Check Syntax On Save
 feature - good to know!  It's something I had always wished it, uh, had.

 Jason Merrill
 Bank of America
 Enterprise Technology  Global Risk LLD
 Instructional Technology  Media

 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 Steven Sacks
 Sent: Wednesday, August 06, 2008 6:59 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Flashdevelop + Flex SDK - runtime error
 
 http://www.stevensacks.net/2008/04/30/flashdevelop-flexbuilder
 -style-error-reporting-on-save/
 
 
 Leandro Ferreira wrote:
  How do you guys debug your movies using FlashDevelop + Flex SDK?
 
 Leandro Ferreira
  ___
  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

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


Re: [Flashcoders] Increase Recursion Level?

2008-10-01 Thread Leandro Ferreira
I think that in player 9 it changed from 256 levels of recursion to 15s of
processing, not sure though.
Anyway, when I genuinely needed that level of recursion, I divided it in
cycles (or frames) in order to work.


   Leandro Ferreira


On Wed, Oct 1, 2008 at 3:21 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 I think recursion limits are set at the Flash player level, but not at the
 published .swf level, so even if you could increase it (I don't think you
 can), the end user could not change it.  I could be wrong.  I don't know if
 it's necessarily a huge no-no, but I would say it would be recommended to
 avoid recursion as much as possible - puts a ton of strain on the processor
 and the player.  What are you using recursion for?

 Jason Merrill
 Bank of America
 GCIB  Staff Support LLD
 Instructional Technology  Media
 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  Innovative Learning Blog  subscribe.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Doug Coning
 Sent: Wednesday, October 01, 2008 1:59 PM
 To: Flash Coders List
 Subject: [Flashcoders] Increase Recursion Level?

 Is there an actionscript command that can increase the recursion level
 within a flash movie?  I have a legitimate method that calls itself and may
 exceed the 256 recursion limitiation.

 Or, is it just best not to use recursion in Flash?

 Thanks,

 Doug

 ___
 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] FLVPlayback - Buffering

2008-10-21 Thread Leandro Ferreira
Let me get this: you want to set the buffer or just get its percentage? If
so, you expect a percentage from what?
If you want to change the buffer length, try bufferTime.


   Leandro Ferreira

On Tue, Oct 21, 2008 at 10:14 AM, Karim Beyrouti [EMAIL PROTECTED] wrote:

 Hello groovy list...

 I can't seem to find a property for buffering percentage in the FLVPlayback
 component -
 there must be something as there is a bufferingBar property.

 any thoughts?


 Kind regards


 Karim



 ___
 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] Rotating device text in AS3 for Flash 10

2008-10-30 Thread Leandro Ferreira
http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WSd60f23110762d6b883b18f10cb1fe1af6-7d29a.html#WSd60f23110762d6b883b18f10cb1fe1af6-7d1ea
For static text, font outlines are exported in a published SWF file. For
horizontal static text, you can use device fonts instead of exporting font
outlines.

I guess that's an answer: no formal way, maybe workarounds.
Question: why do you need it to be a device font, file size?


   Leandro Ferreira

On Wed, Oct 29, 2008 at 11:42 PM, Zeh Fernando [EMAIL PROTECTED] wrote:

 List, you're my last resort.

 Has anyone ran into any way of rotating textfields that use 'device' fonts
 in Flash 10? Other than making a BitmapData copy and using that instead,
 that is.

 I'm not sure this is at all possible now, but with so many changes to the
 way text works, I'm having a hard time getting a definitive answer.

 Embedding them in /real/ time would do too, if there's anything crazy like
 that.

 Thanks,
 Zeh
 ___
 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] design pattern diagrams...

2009-01-07 Thread Leandro Ferreira
Well It's your job as a developer to be able to priorize one thing over
another... development time, scalability, flexibility, speed, etc.It always
depends on what It's more important for the project.


   Leandro Ferreira

On Wed, Jan 7, 2009 at 9:16 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 But I am trying to understand why you would go through all that trouble,
 when calling the function in the parent, if it is a very small application
 unlikely to be expanded upon, is so much simpler?  maybe for code re-use in
 a bigger application sure; however, doesn't it seem weird that tightly woven
 and fast executing code is not prized anymore, and there is a preference for
 bloated object oriented frameworks?  All in the name of making the
 development cycle smaller and thus less costly; yet, what about increased
 file size issues and decreased performance?

 More objects and more event listeners == less performance and higher memory
 usage in my understanding.




 Ron Wheeler wrote:

 Head First Design Patterns is very easy to pick up. No typos, lots and
 lots of pictures, illustrations and code examples.

 http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns

 http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a
 typical illustration

 http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on the
 Observer Pattern. It might be what you are looking for.

 Merrill, Jason wrote:

 I think just a quick answer to your questions which may help a lot is to
 check into understanding MVC - the Model-View-Controller design pattern.
  Probably one of the most common pattern used and one that other coding
 design frameworks use as well for part of their operations.

 So there are also frameworks like Cairngorm which takes MVC and other
 patterns together and go a lot further, it has things like Commands to
 facilitate communication.  But simple MVC using event listeners and
 dispatchers is probably the best place to start to get what you want to do
 going.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America
 Flash Platform Developer Community Interested in innovative ideas in
 Learning?  Check out the Innovative Learning Blog and subscribe.






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
 Sent: Wednesday, January 07, 2009 3:48 PM
 To: Flash Coders List
 Subject: [Flashcoders] design pattern diagrams...

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 that things be black boxes all the time.

 when a person talks to another person the environment that they are in
 has to facilitate the communication; thus, if I have two objects
 instantiated in the same class and I want them to communicate with each
 other, I have to have a function in the main class or somewhere globally
 that allows those objects to communicate.

 How do I accomplish this without calling to the function in the parent?
 ___
 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


 ___
 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] change the origin of rotation for a movieclip?

2009-01-10 Thread Leandro Ferreira
The easiest way is to wrap it arount another object, move its position and
rotate the wraper.

Leandro Ferreira


On Sat, Jan 10, 2009 at 10:11 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 How do you change the origin of rotation dynamically? can it be done?  or
 will it always be 0,0

 I was hoping that with the new features of as3 that this I would be able to
 indicate where I wanted the origin; yet, I am starting to think that I was
 hoping for too much.


 ___
 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] Garbage Collection difficulty

2009-02-02 Thread Leandro Ferreira
quick trick:
http://blogs.eyepartner.com/adrian/flex/flex-tip-6-garbage-collection-in-flex/



On Thu, Jan 29, 2009 at 6:41 AM, Sander Schuurman 
sander.schuur...@oswaldandruby.com wrote:

 Thnx! ran a few tests on a server; and indeed my code is doing great, and
 the GC occurs when some more memory is needed... thnx again...

 I think the concept of this GC is key in AS3 development

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck
 Sent: Wednesday, 28 January 2009 17:34
 To: Flash Coders List
 Subject: Re: [Flashcoders] Garbage Collection difficulty

 Ah yes... I knew I read it somewhere... It's in that Grant Skinner article.


 *Deferred GC and Indeterminacy*
 A *very* important thing to understand about the Garbage Collector in FP9
 is
 that it's operations are deferred. Your objects will not be removed
 immediately when all active references are deleted, instead they will be
 removed at some indeterminate time in the future (from a developer
 standpoint). The GC uses a set of heuristics that look at RAM allocation
 and
 the size of the memory stack (among other things) to determine when to run.
 As a developer, you must accept that fact that you will have no way of
 knowing when (or even if) your inactive objects will get deallocated. You
 must also be aware that inactive objects will continue to execute
 indefinitely (until the GC deallocates it), so code will keep running (ex.
 enterFrames), sounds will keep playing, loads will keep happening, events
 will keep firing, etc.

 It's very important to remember that you have no control over when your
 objects will be deallocated, so you must make them as inert as possible
 when
 you are finished with them. Strategies to manage this will be the focus for
 a future article.


 On Wed, Jan 28, 2009 at 8:31 AM, Nate Beck n...@tldstudio.com wrote:

  It was my understanding that Garbage Collection doesn't always occur
 right
  away.  When you have orphaned objects sitting on the heap, they are *
  eligible* for garbage collection.  That doesn't mean they will be removed
  from memory right away.  Especially if you're testing for JUST that to
  happen.  Usually GC occurs when more memory is needed.
 
  Someone else could probably speak to this topic much more intelligently
  than me.. but that was my understanding of how GC in general works.
 
  Cheers
 
On Tue, Jan 27, 2009 at 6:04 AM, Sander Schuurman 
  sander.schuur...@oswaldandruby.com wrote:
 
  Thnx for the links... tried some, but still with no success... I now
 have
  the following:
 
  public class Image extends MovieClip
  {
   private var _thumbLoader:Loader;
   private var _largeLoader:Loader;
 
   private var _thumb:Bitmap;
   private var _large:Bitmap;
 
   public function loadThumb() :void
   {
   _thumbLoader = new Loader();
   _thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 thumbLoaded, false, 0, true);
   _thumbLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
 errorOccured, false, 0, true);
   _thumbLoader.load(new URLRequest(_tu));
   }
 
   private function thumbLoaded( e :Event ) :void
   {
   _thumb = Bitmap(e.currentTarget.content);
   _thumb.smoothing = true;
 
   addChild(_thumb);
 
   _thumbLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
 
   thumbLoaded);
 
  _thumbLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,
 
   errorOccured);
   _thumbLoader = null;
 
   dispatchEvent(new Event(Image.IMG_LOADED));
   }
 
   public function loadLarge() :void
   {
   _largeLoader = new Loader();
   _largeLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 largeLoaded, false, 0, true);
   _largeLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
 errorOccured, false, 0, true);
   _largeLoader.load(new URLRequest(_lu));
   }
 
   private function largeLoaded( e :Event ) :void
   {
   _large = e.currentTarget.content;
   _large.smoothing = true;
   addChild(_large);
 
   _largeLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
 
   largeLoaded);
 
  _largeLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,
 
   errorOccured);
   //_largeLoader.content.dispose();
   _largeLoader = null;
 
   dispatchEvent(new Event(Image.IMG_LOADED));
   }
   public function disposeLarge() :void
   {
   if (_large)
{
 removeChild(_large);
 _large.bitmapData.dispose();
 _large = null;
}
   }
 
  public function dispose() :void
   {
   disposeLarge();
 
   removeChild(_thumb);
   _thumb.bitmapData.dispose();
   _thumb = null
   }
 
  }
 
  Anyone some tips? The large bitmap stays in memory...
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
  

Re: [Flashcoders] using Bitmap for hitArea

2009-06-22 Thread Leandro Ferreira
BitmapData.hitTest:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1410.html


  Leandro Ferreira


On Mon, Jun 22, 2009 at 19:21, Andrew Sinning and...@learningware.comwrote:

 If I draw a circle using the Graphics and Shape classes, and then add the
 shape to a sprite, I can use the sprite for the hitArea of another sprite
 and it works just fine.  Everything within the circle is a hit, everything
 outside of it is a miss.

 However, if I create a sprite containing a Bitmap drawn from this same
 circle and try to use this sprite for the hitArea, the entire rectangle
 becomes the hit area.  I've played around with different alpha-levels, using
 white and black, and using the opaqueBackground setting.  Nothing seems to
 work.  Am i missing  something or is this a known limitation?

 I'm using AS3 under Flash CS3.

 Thanks!
 ___
 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] Youtube Videos cache

2009-06-28 Thread Leandro Ferreira
According to this site, Youtube can now cache his videos on the browser
YouTube managed to achieve something incredible: browsers now cache YouTube
videos and you can load the same video multiple times from the local cache.
 (
http://googlesystem.blogspot.com/2009/06/browsers-cache-youtube-videos.html)
I though that FLV files were normally cached by the browser, but apparently not.
Anyone got info about that?



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


Re: [Flashcoders] re: gotoStopAndWait

2009-08-04 Thread Leandro Ferreira
Have you tried addFrameScript?


  Leandro Ferreira
Sent from Brasilia, DF, Brazil

On Tue, Aug 4, 2009 at 15:30, Mario Gonzalez ma...@wddg.com wrote:

 (I think there was a problem when i sent my initial email so resending)

 Hey list,

 Here's a problem i've had to lesser or greater degrees for pretty much
 ever. I'm sure everyone's come across it.
 Depending on what's going on, on the site, or especially if it's during the
 application initialization.

 Here's an example scenario,

 You have 10 different illustrated pants for a character in a MovieClip,
 each mapped to a different label.
 Based on the database information, you load the proper 'pants' swf, then
 switch to the variation of it based on the frame label using gotoAndStop.
 However when you try to access, pants.getChildByName('thing') you receive
 null.

 Sometimes the assets are just not ready yet, period case closed.

 I've tried different solutions to this problem on different projects,
 ranging from
 -moving asset initialization function (sometimes just not an option)
 -creating a FrameDelay class,
 -creating enterframe listener checking then killing itself once the asset
 is accessible,
 - and shamefully even sometimes having to use setTimeout with 250 ms when
 the site was live and there was no time for elegant work arounds
 --

 I'm aware of how the flash player works, that it needs a step sometimes to
 process the assets in the frame.
 Does anyone have a kind of magic bullet solution or workaround for this or
 in general i'm interested in hearing how you guys have dealt with this
 problem.
 --

 Mario Gonzalez
 http://www.onedayitwillmake.com



 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4305 (20090804) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.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] flash forms problem

2009-08-07 Thread Leandro Ferreira
As far as I know, the loader.dataFormat refers to the loaded data, not the
one you are about to send. My guess is that the error is on trying to decode
the variables name/value pair on the loaded data (see that the error is
triggered by URLLoader/onComplete())



  Leandro Ferreira
Sent from Brasilia, DF, Brazil

On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 Hi coders, I have this code for a flash form


 import flash.display.*;
 import flash.events.*;
 import flash.text.*;
 import flash.net.*;

 this.sent.addEventListener(MouseEvent.CLICK, sendMessage);

 function sendMessage(e:Event):void
{
var variables:URLVariables=new URLVariables();
variables.nombre=nombre.text;
variables.email=email.text;
variables.phone=phone.text;
variables.address= address.text;
variables.eventos=eventos.text;
variables.details=details.text;



var request:URLRequest=new URLRequest();
request.url='sendMail.cfm';
request.method=URLRequestMethod.POST;
request.data=variables;

var loader:URLLoader=new URLLoader();
loader.dataFormat=URLLoaderDataFormat.VARIABLES;
try
{
loader.load(request);
}
catch (error:Error)
{
trace('Unable to load requested document.');
}
}

 the fields are on the stage and those are input text.
 when I click on the button,

  suddenly it sends this message Error: Error #2101: The String passed to
 URLVariables.decode() must be a URL-encoded query string containing
 name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables()
at flash.net::URLLoader/onComplete()


 does anyone knows what this means?
 help here pls.


 Gustavo



 ___
 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] flash forms problem

2009-08-07 Thread Leandro Ferreira
Getting rid of loader.dataFormat, that is.



  Leandro Ferreira


On Fri, Aug 7, 2009 at 20:27, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 Hi Leandro so getting rid of this part would be ok then and the error
 wouldn't appear again.


  var loader:URLLoader=new URLLoader();
   loader.dataFormat=URLLoaderDataFormat.VARIABLES;
   try
   {
   loader.load(request);
   }
   catch (error:Error)
   {
   trace('Unable to load requested
 document.');
   }


 Gustavo



 On Aug 7, 2009, at 7:23 AM, Leandro Ferreira wrote:

  As far as I know, the loader.dataFormat refers to the loaded data, not the
 one you are about to send. My guess is that the error is on trying to
 decode
 the variables name/value pair on the loaded data (see that the error is
 triggered by URLLoader/onComplete())



  Leandro Ferreira
 Sent from Brasilia, DF, Brazil

 On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas 
 gdue...@leftandrightsolutions.com wrote:

  Hi coders, I have this code for a flash form


 import flash.display.*;
 import flash.events.*;
 import flash.text.*;
 import flash.net.*;

 this.sent.addEventListener(MouseEvent.CLICK, sendMessage);

 function sendMessage(e:Event):void
   {
   var variables:URLVariables=new URLVariables();
   variables.nombre=nombre.text;
   variables.email=email.text;
   variables.phone=phone.text;
   variables.address= address.text;
   variables.eventos=eventos.text;
   variables.details=details.text;



   var request:URLRequest=new URLRequest();
   request.url='sendMail.cfm';
   request.method=URLRequestMethod.POST;
   request.data=variables;

   var loader:URLLoader=new URLLoader();
   loader.dataFormat=URLLoaderDataFormat.VARIABLES;
   try
   {
   loader.load(request);
   }
   catch (error:Error)
   {
   trace('Unable to load requested
 document.');
   }
   }

 the fields are on the stage and those are input text.
 when I click on the button,

  suddenly it sends this message Error: Error #2101: The String passed to
 URLVariables.decode() must be a URL-encoded query string containing
 name/value pairs.
   at Error$/throwError()
   at flash.net::URLVariables/decode()
   at flash.net::URLVariables()
   at flash.net::URLLoader/onComplete()


 does anyone knows what this means?
 help here pls.


 Gustavo



 ___
 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

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


Re: [Flashcoders] flash forms problem

2009-08-08 Thread Leandro Ferreira
Ask it elsewhere, this is not a coldfusion list. Besides, I have no idea.




  Leandro Ferreira


On Sat, Aug 8, 2009 at 13:38, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 Hi leandro, it went good, now I'm attempting to send it via email suing a
 cfm page, this is the code of the coldfusion, so far is not working, would
 you help me?

 Regards,


 Gus



 cfmail from=#FORM.email# to=i...@maflephoto.com subject=Booking
 information from #FORM.nombre# cc=#FORM.email# replyto=#FORM.email#
 type=html



 table width=741 height=203 border=0
  tr
td width=108 height=29Name:/td
td width=617 bgcolor=##FFB #FORM.nombre# /B/td
  /tr
  tr
td height=24Email:/td
td  bgcolor=##FF#FORM.email#/td
  /tr
  tr
td height=29Address:/td
td  bgcolor=##FF#FORM.address#/td
  /tr
  tr
td height=22Phone:/td
td  bgcolor=##FF#FORM.phone#/td
  /tr
  tr
tdDate of the session:/td
td  bgcolor=##FF#FORM.eventos#/td
  /tr
  tr
td  bgcolor=##FFComments:/td
td  bgcolor=##FFp#FORM.details#/td
  /tr
 /table



 /cfmail

 ___
 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] mac vs pc

2009-08-10 Thread Leandro Ferreira
50/50. Win XP/ Flashdevelop at work, osX and FlashDevelop at home.


  Leandro Ferreira


On Mon, Aug 10, 2009 at 16:02, FlashDev fl...@funkdaweb.com wrote:

 100% Win XP Prof (Waiting for 7 to be shipped), CS4  FlashDevelop

 We use a mac to test websites and air applications thats about it!

 SJM


 Allandt Bik-Elliott (Receptacle) wrote:

 i'd completely understand if nobody wanted to touch this one but i thought
 i'd throw it out there

 a bit of background: I've been developing on mac for 7 or 8 years, the
 first 5 were as an enthusiastic amateur but more recently i've gone full
 time flash developing. As time has progressed, i've started to use more
 tools to help with coding, I've tried FDT on Eclipse for mac which i found
 (at the time) to be overpriced, overfinicky, flaky and unreliable (i realise
 that with the release of the standalone FDT package the flakiness is
 something that has been rectified) and flexbuilder just doesn't have any of
 the text manipulation tools that a good coding IDE should imo (duplicating /
 transposing lines of code shouldn't require a mouse) so i've settled for
 using FlashDevelop (which i LOVE) with Parallels as a vm to run it.

 This setup has kept me going for a while but it's not without it's
 problems: the keyboard changes from my mac-based Flash IDE to the pc-based
 FlashDevelop IDE has been a headache, I have 3 sources of program failures
 as opposed to 2 (Flash, FlashDevelop AND Parallels) which, while they don't
 account for a lot of my day, are usually pretty savage when they do occur.
 However, as I've been using a pc at work, I've really started to seriously
 consider simply buying a pc on my next round of hardware spend (end of this
 year, beginning of next) and be done with it. The mac will always be at the
 center of my home media but this is for my take along, work machine.

 So the question I'm really getting to is, how many people use osX (using
 windows in boot camp doesn't count) and how many are using windows for their
 main work machine and what kind of software setup are you using?

 thanks for your time guys
 Allandt


 ___
 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] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Leandro Ferreira
A good CODER must go beyond a good CODE be fast when needed. That's MHO, and
It gets clear when we compare the number of lines we use to express
ourselves.



  Leandro Ferreira
Sent from Brasília, Brazilian Federal District, Brazil

On Tue, Aug 18, 2009 at 18:17, Paul Andrews p...@ipauland.com wrote:

 Dave Watts wrote:

 snip
 It really depends on the language. Since I'm moving (more or less)
 from Java to AS3, more or less, I'm usually using explicit expressions
 because that's what people do in Java. On the other hand, in the
 ColdFusion code I've written, I usually use implicit Boolean
 evaluation.


 I don't think writing good code is related to languages, despite the
 different constructs available between them. I think good coding style is
 based on simple principles, and brevity or speed of coding is not included.

 Short coding constructs may be perceived as elegant and aid coding speed,
 but that wholly misses the point - coding isn't a race nor is optimising the
 number of bytes in the source code. Showing a deep knowledge of a software
 language through use of the language in ways that are not so clear to mere
 mortals less familiar with the language, isn't good. It is rarely a good
 idea to optimise code by using a faster programming construct that makes the
 intention of the code less clear.

 Good coding should be clear - even for those less familiar with the
 language. Truncated coding constructs may be efficient and even elegant, but
 will they be easily understandable by someone else (or even the same person
 much later)? Code minimalism can hide the true intention of the code and
 introduce unintended behaviour when mistakes are made. When code is
 expansive (verbose even) the intention of the code is clear. When someone
 relies on some language behaviour for handling null values, the reader may
 be left wondering whether the original developer really intended that the
 code should handle nulls in this way, or is it some accidental happenstance
 of using that construct? Are nulls really relevant here in this code snippet
 or not. Testing specifically for nulls is explicit and unambiguous.

 Maintainability - truncated constructs can sometimes mean that changes for
 updates mean undoing the efficient constructs that performed well for
 specific case they were coded for, but will have to be ditched completely
 for the more complicated case, leaving the  updater to unwind the intention
 of the shorter construct and translate that to the wider case.

 As far as fast coding goes, everybody likes a helpful ide or editor, but
 really fast coders really aren't team coders and the need for speed is
 less important than the need for clarity. I'm not a fast coder. Sometimes I
 wish I was an even slower coder, because then I'd realise I could code
 things rather better than going rushing in to get things done.

 I once worked with a guy who had a clear desk and often sat reading the
 newspaper. It did attract some critical comment, but that guy had the right
 idea. Before he started coding he spent a lot of time on the design, getting
 that right. A faster code editor or fancy programming wouldn't have made him
 a better developer. He spent most of his time getting it right before his
 hands hit the keyboard. He was the best developer I ever met.

 So, in my insignificant opinion - brevity == BAD, fast coding ==BAD.

 Paul


  Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!

 ___
 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] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Leandro Ferreira
That's plain bad english, I assure you :)A good CODER must go beyond a good
CODE and be fast when needed.



  Leandro Ferreira


On Tue, Aug 18, 2009 at 22:02, Peter B pete...@googlemail.com wrote:

 2009/8/19 Leandro Ferreira dur...@gmail.com:
  A good CODER must go beyond a good CODE be fast when needed. That's MHO,
 and
  It gets clear when we compare the number of lines we use to express
  ourselves.
 

 Indeed. And you unintentionally help to illustrate the point. Paul's
 post, though long, is clear in what it communicates. Your post is
 brief, but I am finding it difficult to extract any meaning from it.
 ___
 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] Who uses Adobe Flex?

2009-11-24 Thread Leandro Ferreira
You can also get Flex 3 for free if you are a student or unemployed:
https://freeriatools.adobe.com/



  Leandro Ferreira
Sent from Brasília, Brazilian Federal District, Brazil

On Mon, Nov 23, 2009 at 16:32, kinda...@gmail.com kinda...@gmail.comwrote:

 And if you buy it in europe, it costs aproximatly 799 € + VAT... or 799 £ +
 VAT...

 Last time i checked Adobe prices, it was cheaper to get a round-trip plane
 to NY, spend there the weekend, with hotel and all... but the retail
 package, and back...

 And you would even get it cheaper!

 [it was a master collection CS3 at the time]

 ;)


 On 19-11-2009 12:51, Henrik Andersson wrote:

 Sid Ferreira wrote:

 And Adobe Flash?


 799 USD for one standalone normal license. 299 USD for the upgrade deal.
 There are packages and student discounts available.
 ___
 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] Array in loop

2009-12-07 Thread Leandro Ferreira
_root[ arrayName[i] ]._alpha = 0;


  Leandro Ferreira


On Mon, Dec 7, 2009 at 15:28, Lehr, Theodore ted_l...@federal.dell.comwrote:

 Seems like this should be simple:

 how do I replace x with arrayName[i] in the following:

 _root.x._alpha = 0;

 it is in a for loop...
 ___
 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] Flash Player integrated with Chrome

2010-05-17 Thread Leandro Ferreira
type about:plugins and disable Shockwave Flash


  Leandro Ferreira


On Mon, May 17, 2010 at 21:26, Steve Mathews happy...@gmail.com wrote:

 It makes me feel like there isn't a way to have the debug player installed
 on Chrome.

 I'm sure I am wrong, but I haven't found how to change it yet.

 On Mon, May 17, 2010 at 2:05 PM, Ktu ktu_fl...@cataclysmicrewind.com
 wrote:

  How did I miss this?
  I searched the list and saw no posts about it. Is that true?
 
  Bringing improved support for Adobe Flash Player to Google
  Chrome
 
 http://blog.chromium.org/2010/03/bringing-improved-support-for-adobe.html
 
  How does this make you feel? - It makes me feel a bit funny inside.
 
  Ktu
  ___
  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] Actionscript 4?

2010-11-10 Thread Leandro Ferreira
You can't say someone is better or worse than you based on his job title,
that's pretty naive
/offtopic


   Leandro Ferreira


On Tue, Nov 9, 2010 at 18:56, Kenneth Kawamoto kennethkawam...@gmail.comwrote:

 What?!

 I don't know which Kenneth Kawamoto you're referring to, Kerry, but I do
 not work for Adobe and I'm definitely not an ECMA Script Committee member
 either!

 May be you got mixed up with someone else from my Director-list days?
 Anyway it's good to be confused with someone better than I, rather than
 someone worse than I... ;)

 Kenneth Kawamoto
 http://www.materiaprima.co.uk/


 On 09/11/2010 18:01, Kerry Thompson wrote:

 I think we have at least one ECMA Script committee member on the list,
 Kenneth Kawamoto (I think he works for Adobe). Maybe he'll chime in
 and tell us what he's allowed to say :-)

 Cordially,

 Kerry Thompson


  Thanks Kerry - yeah, I have seen that Moock article, but I'm looking for
 something more recent.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: Tuesday, November 09, 2010 11:47 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] Actionscript 4?

 Jason Merrill wrote:

  Anyone heard or know anything about Actionscript 4?  I know I can look
 at the latest ECMA specs to get an idea of what may be coming, but I'm
 curious about what Adobe's doing and when.

 --

 Colin Moock talked about it at FIT in Amsterdam, in 2008. A bit dated,
 but there are some tantalizing tidbits:
 http://moock.org/lectures/newInECMAScript4/

 Or, if you want it straight from the horse's mouth, here's a 40-page pdf,
 also a couple of years old:
 http://www.ecmascript.org/es4/spec/overview.pdf

 Cordially,

 Kerry Thompson

 ___
 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] Call method by name: A few questions...

2011-01-15 Thread Leandro Ferreira
You must declare each class or they are not gonna be compiled. Just put all
the class names you need separated by comma: ZoomControl, PositionControl,
ScaleControl;


*
*
*   @leandroferreira*
*   55 61 91151257*



On Sat, Jan 15, 2011 at 07:31, Henrik Andersson he...@henke37.cjb.netwrote:

 You want the getDefinitionByName function, not the dynamic property access
 syntax.


 ___
 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] [Job] Activescript 3 development

2011-02-01 Thread Leandro Ferreira
http://www.nusphere.com/kb/phpmanual/install.windows.activescript.htm

*
*
*   @leandroferreira*
*   55 61 91151257*



On Tue, Feb 1, 2011 at 14:58, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Just curious, what's Activescript?

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning





 ___

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of lists...@fo.com
 Sent: Tuesday, February 01, 2011 11:56 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] [Job] Activescript 3 development

 [Job] Activescript 3 development:

 Looking for an additional off-site freelancer to the west (Downingtown,
 Exton, Malvern, West Chester) of Philadelphia.

 Straight AS3, non-timeline, part-time AIR/FLASH development.

 If interested, please email me off-list with resume | cv | portfolio and
 off-site rate requirements.

 Thank you,
 ~Bill
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 --
 This message w/attachments (message) is intended solely for the use of the
 intended recipient(s) and may contain information that is privileged,
 confidential or proprietary. If you are not an intended recipient, please
 notify the sender, and then please delete and destroy all copies and
 attachments, and be advised that any review or dissemination of, or the
 taking of any action in reliance on, the information contained in or
 attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a
 solicitation of any investment products or other financial product or
 service, an official confirmation of any transaction, or an official
 statement of Sender. Subject to applicable law, Sender may intercept,
 monitor, review and retain e-communications (EC) traveling through its
 networks/systems and may produce any such EC to regulators, law enforcement,
 in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling of
 EC, and EC may be archived, supervised and produced in countries other than
 the country in which you are located. This message cannot be guaranteed to
 be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a
 Condition to Any Banking Service or Activity * Are Not Insured by Any
 Federal Government Agency. Attachments that are part of this EC may have
 additional important disclosures and disclaimers, which you should read.
 This message is subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you
 consent to the foregoing.
 ___
 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] [Job] Activescript 3 development

2011-02-01 Thread Leandro Ferreira
Really?

*
*
*   @leandroferreira*
*   55 61 91151257*



On Tue, Feb 1, 2011 at 15:14, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

  http://www.nusphere.com/kb/phpmanual/install.windows.activescript.htm
  @leandroferreira*

 Yeah, possible, but somehow I don't think so.  I think they meant
 Actionscript, since they talked about Activescript 3... non-timeline,
 part-time AIR/FLASH development.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning




 --
 This message w/attachments (message) is intended solely for the use of the
 intended recipient(s) and may contain information that is privileged,
 confidential or proprietary. If you are not an intended recipient, please
 notify the sender, and then please delete and destroy all copies and
 attachments, and be advised that any review or dissemination of, or the
 taking of any action in reliance on, the information contained in or
 attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a
 solicitation of any investment products or other financial product or
 service, an official confirmation of any transaction, or an official
 statement of Sender. Subject to applicable law, Sender may intercept,
 monitor, review and retain e-communications (EC) traveling through its
 networks/systems and may produce any such EC to regulators, law enforcement,
 in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling of
 EC, and EC may be archived, supervised and produced in countries other than
 the country in which you are located. This message cannot be guaranteed to
 be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a
 Condition to Any Banking Service or Activity * Are Not Insured by Any
 Federal Government Agency. Attachments that are part of this EC may have
 additional important disclosures and disclaimers, which you should read.
 This message is subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you
 consent to the foregoing.
 ___
 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] Calling native code from Flash

2011-07-19 Thread Leandro Ferreira
Have you tried Alchemy?
http://labs.adobe.com/technologies/alchemy/

*
*
*   @leandroferreira*
*   55 61 91151257*



On Tue, Jul 19, 2011 at 07:04, Gerry Beauregard 
gerry.beaureg...@sonoport.com wrote:

 Thank you Paul and Karl for your responses!  Interesting discussion!

 On 2011-07-19  , at 17:36 , Paul Andrews wrote:

  On 19/07/2011 10:27, Karl DeSaulniers wrote:
  Hi Paul, Gerry,
  Are these runtime calls, or calls to set up runtime?
  How is the swf published? Local? Server?
  If Local, you could try javascript.
  Calling the javascript before you need the results in flash.
  Then que the results so there is no latency, like a buffer?
 
  If server, I would go with Paul's socket suggestion or a perl script.
  Or call the php before you need the results in flash.
  A small php script takes milliseconds to execute.
 
  Maybe, but there's network latency to be added to that. DSP usually
 requires fast real-time processing, so latency defeats the object of using
 native code. My suggestion about the socket server would be to install that
 on the client, not a remote server. Even so I suspect the latency will be
 too big.
 

 The application involves real-time audio DSP with very low latency. Audio
 data would need to be passed from the AS3 code to the native code for
 processing, with results passed back from the native code to AS3.  It'd be a
 lot of data, easily a half dozen streams of 16-bit 44.1kHz audio.

 Given the amount of data involved and the real-time low-latency
 requirements, it's almost certainly not practical to go through php, perl,
 or javascript bridging code.

 I sort of expected that calling native code in an efficient way wouldn't be
 possible, due to the security sandbox issues as Paul mentioned. I was just
 hoping there was some trick to do it...   Maybe with signing of native
 binaries so they're considered trusted by Flash?  Maybe having the user give
 permission to use native code (analogous to how the user needs to give
 permission to use the microphone input, for example)?  But I guess there
 isn't :-(

 Looks like I'll have to squeeze whatever performance I can from code
 written in AS3. Looking on the bright side, at least I can stick to one
 language :-)

 Thanks again for all your suggestions and feedback!

 -Gerry




 ___
 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