[Flashcoders] fscommand Issue.

2010-12-12 Thread Omar Fouad
Hello all,

I'm trying to call a function in JavaScript from a SWF file (AS3).
fscommand(start, 1);
This function works fine. However, when I pass a variable to the fscommand
parameters argument, JavaScript doesn't work:
fscommand(start, myString); // this doesn't work.

Am I missing something?

Thanks in advance.

Cordially.

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


Re: [Flashcoders] fscommand Issue.

2010-12-12 Thread Omar Fouad
That doesn't work at all :D I already tried it...

On Sun, Dec 12, 2010 at 8:55 PM, Henrik Andersson he...@henke37.cjb.netwrote:

 Omar Fouad skriver:

  Hello all,

 I'm trying to call a function in JavaScript from a SWF file (AS3).
 fscommand(start, 1);
 This function works fine. However, when I pass a variable to the fscommand
 parameters argument, JavaScript doesn't work:
 fscommand(start, myString); // this doesn't work.

 Am I missing something?


 How about the ExternalInterface class?
 ___
 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] fscommand Issue.

2010-12-12 Thread Omar Fouad
Anyone??

On Sun, Dec 12, 2010 at 9:01 PM, Omar Fouad omarfouad@gmail.com wrote:

 That doesn't work at all :D I already tried it...


 On Sun, Dec 12, 2010 at 8:55 PM, Henrik Andersson 
 he...@henke37.cjb.netwrote:

 Omar Fouad skriver:

  Hello all,

 I'm trying to call a function in JavaScript from a SWF file (AS3).
 fscommand(start, 1);
 This function works fine. However, when I pass a variable to the
 fscommand
 parameters argument, JavaScript doesn't work:
 fscommand(start, myString); // this doesn't work.

 Am I missing something?


 How about the ExternalInterface class?
 ___
 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] ScrollRect and masking

2010-07-12 Thread Omar Fouad
What about extending movieClip and overriding the height property to return
the mask height

On Mon, Jul 12, 2010 at 12:14 AM, Glen Pike postmas...@glenpike.co.ukwrote:

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


Re: [Flashcoders] ScrollRect and masking

2010-07-12 Thread Omar Fouad
Well I will do as Glen suggested, the first option. In my custom class that
implements an IModuleConteiner interface, I will add a get
fixedHeight():Number function.

Thanks everyone for the help

On Mon, Jul 12, 2010 at 11:41 AM, Omar Fouad omarfouad@gmail.comwrote:

 What about extending movieClip and overriding the height property to return
 the mask height

 On Mon, Jul 12, 2010 at 12:14 AM, Glen Pike postmas...@glenpike.co.ukwrote:

 currentModule.myMask



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


Re: [Flashcoders] ScrollRect and masking

2010-07-10 Thread Omar Fouad
No one?

On Thu, Jul 8, 2010 at 10:34 AM, Omar Fouad omarfouad@gmail.com wrote:

 Thanks for the reply. I'm already doing that, as the list loads its data
 upon added to stage


 On Thu, Jul 8, 2010 at 8:25 PM, Ktu ktu_fl...@cataclysmicrewind.comwrote:

 you could try positioning it before you add the 'list' to the displayList
 of
 the container.

 Ktu;

 On Thu, Jul 8, 2010 at 12:49 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  Hello,
 
  I'm working on some project where I have a big container Sprite and
 based
  on
  what I need, I add some ui inside of it. Once I add this ui, and I make
  sure
  that everything is there on its place, I align this container sprite to
 fir
  in the center of my stage:
 
  private var currentModule:Sprite; // the container
 
  private function updateScreen(e:MouseEvent):void {
  if(currentModule) { // when I switch to another module
   removeChild(currentModule);
  currentModule = null; // clean it up
  }
 
  currentModule = new Sprite();
  addChild(currentModule);
  currentModule.addChild(children); //some children are added to
  currentModule
   currentModule.x = (stage.stageWidth * 0.5) - (currentModule.width *0.5)
 //
  aligns horizontally
  currentModule.y = (stage.stageHeight * 0.5) - (currentModule.height
 *0.5)
  //
  aligns horizontally
  }
 
  Now assume I add to the currentModule, a masked list. What I mean is a
  container that contains 100 list items one below the other, and a mask
 that
  shows just 5 items and the mask's height is 100.
  stage alignment doesn't work properly because the currentModule height
 is
  not just 100 px (as the mask's height) but it is actually the real
 height
  that the 100 list item are occupying and so, alignment fails.
 
  I could use myMask.height, but I need to align the whole currentModule
 as I
  use it as a wrapper to wrap some components under the same hood.
  What should I do? I tried tracing the mc's height after using
 scrollRect,
  as
  people said that it would return only the visible part's height but it
  didn't happen. I traced and the same number is there as if nothing were
  masked.
  Any Ideas?
 
  Thanks in advance
  ___
  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] ScrollRect and masking

2010-07-08 Thread Omar Fouad
Hello,

I'm working on some project where I have a big container Sprite and based on
what I need, I add some ui inside of it. Once I add this ui, and I make sure
that everything is there on its place, I align this container sprite to fir
in the center of my stage:

private var currentModule:Sprite; // the container

private function updateScreen(e:MouseEvent):void {
if(currentModule) { // when I switch to another module
 removeChild(currentModule);
currentModule = null; // clean it up
}

currentModule = new Sprite();
addChild(currentModule);
currentModule.addChild(children); //some children are added to currentModule
 currentModule.x = (stage.stageWidth * 0.5) - (currentModule.width *0.5) //
aligns horizontally
currentModule.y = (stage.stageHeight * 0.5) - (currentModule.height *0.5) //
aligns horizontally
}

Now assume I add to the currentModule, a masked list. What I mean is a
container that contains 100 list items one below the other, and a mask that
shows just 5 items and the mask's height is 100.
stage alignment doesn't work properly because the currentModule height is
not just 100 px (as the mask's height) but it is actually the real height
that the 100 list item are occupying and so, alignment fails.

I could use myMask.height, but I need to align the whole currentModule as I
use it as a wrapper to wrap some components under the same hood.
What should I do? I tried tracing the mc's height after using scrollRect, as
people said that it would return only the visible part's height but it
didn't happen. I traced and the same number is there as if nothing were
masked.
Any Ideas?

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


Re: [Flashcoders] ScrollRect and masking

2010-07-08 Thread Omar Fouad
Thanks for the reply. I'm already doing that, as the list loads its data
upon added to stage

On Thu, Jul 8, 2010 at 8:25 PM, Ktu ktu_fl...@cataclysmicrewind.com wrote:

 you could try positioning it before you add the 'list' to the displayList
 of
 the container.

 Ktu;

 On Thu, Jul 8, 2010 at 12:49 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  Hello,
 
  I'm working on some project where I have a big container Sprite and based
  on
  what I need, I add some ui inside of it. Once I add this ui, and I make
  sure
  that everything is there on its place, I align this container sprite to
 fir
  in the center of my stage:
 
  private var currentModule:Sprite; // the container
 
  private function updateScreen(e:MouseEvent):void {
  if(currentModule) { // when I switch to another module
   removeChild(currentModule);
  currentModule = null; // clean it up
  }
 
  currentModule = new Sprite();
  addChild(currentModule);
  currentModule.addChild(children); //some children are added to
  currentModule
   currentModule.x = (stage.stageWidth * 0.5) - (currentModule.width *0.5)
 //
  aligns horizontally
  currentModule.y = (stage.stageHeight * 0.5) - (currentModule.height *0.5)
  //
  aligns horizontally
  }
 
  Now assume I add to the currentModule, a masked list. What I mean is a
  container that contains 100 list items one below the other, and a mask
 that
  shows just 5 items and the mask's height is 100.
  stage alignment doesn't work properly because the currentModule height is
  not just 100 px (as the mask's height) but it is actually the real height
  that the 100 list item are occupying and so, alignment fails.
 
  I could use myMask.height, but I need to align the whole currentModule as
 I
  use it as a wrapper to wrap some components under the same hood.
  What should I do? I tried tracing the mc's height after using scrollRect,
  as
  people said that it would return only the visible part's height but it
  didn't happen. I traced and the same number is there as if nothing were
  masked.
  Any Ideas?
 
  Thanks in advance
  ___
  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] Getting Pixel color cooridnates

2010-07-07 Thread Omar Fouad
Hi,
I'm working on an application where the user should be able to switch his
camera, and when he smiles, a shining movieClip is placed on his
teeth/mouth. I'm creating a camera copy bitmap on enterframe to be able to
manipulate pixels. Till now what I only found a way to get the color of a
given pixel coordinate, but what If I need to get the coordinate of a given
pixel color (the opposite)? I would get the position of the user's upper lip
and stick a movieclip on it. Any ideas??

Thanks in advance.

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


Re: [Flashcoders] Getting Pixel color cooridnates

2010-07-07 Thread Omar Fouad
Thanks Buddies that was great :D

On Wed, Jul 7, 2010 at 1:04 PM, Glen Pike g...@engineeredarts.co.uk wrote:

 Hi,

You are probably looking at face recognition here, or at least mouth
 recognition...

That's a bit heavyweight / hardcore coding and quite processor
 intensive, but people have been experimenting with porting existing
 libraries to Flash using Alchemy...


 http://www.google.com/search?ie=UTF-8oe=UTF-8sourceid=navclientgfns=1q=flash+alchemy+face+recognition


 http://drawlogic.com/2009/03/16/as3-version-of-opencv-for-facial-detection-web-cam-object-detection-head-tracking-3d-library-integration-and-more-with-open-computer-vision-library/

http://mrdoob.com/blog/post/643

Prepare to get your hands very dirty if you go this route - if you pull
 it off though, would be very interested in your results - we have similar
 requirements / wishlist for features that are similar to this, but no time
 to do them :(

Glen


 On 07/07/2010 09:41, Omar Fouad wrote:

 Hi,
 I'm working on an application where the user should be able to switch his
 camera, and when he smiles, a shining movieClip is placed on his
 teeth/mouth. I'm creating a camera copy bitmap on enterframe to be able to
 manipulate pixels. Till now what I only found a way to get the color of a
 given pixel coordinate, but what If I need to get the coordinate of a
 given
 pixel color (the opposite)? I would get the position of the user's upper
 lip
 and stick a movieclip on it. Any ideas??

 Thanks in advance.

 Omar Fouad.
 ___
 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] Omar Fouad wants to stay in touch on LinkedIn

2010-05-18 Thread Omar Fouad
LinkedIn
Omar Fouad souhaite se connecter à vous sur LinkedIn :
--

Marc,

I'd like to add you to my professional network on LinkedIn.

- Omar Fouad

Accepter l'invitation de Omar Fouad
http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I2050469620_2/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYOnP0OdzASd30Rc399bQl7dSwPc5pSbPcNcz0Mej0NcP4LrCBxbOYWrSlI/EML_comm_afe/

Voir l'invitation de Omar Fouad
http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I2050469620_2/39vc38SejoQc3kMcAALqnpPbOYWrSlI/svi/
--

SAVEZ-VOUS que vous pouvez être le premier informé quand un membre de votre 
réseau change de poste ? Les Nouvelles du réseau sur votre page d'accueil 
LinkedIn vous informe des évolutions de carrière dans votre réseau. Soyez le/la 
premier(e) informé(e) ! 
http://www.linkedin.com/

 
--
(c) 2010, LinkedIn Corporation
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: FDT and AIR?

2010-01-31 Thread Omar Fouad
Nothing yet?

On Sat, Jan 30, 2010 at 9:39 PM, Omar Fouad omarfouad@gmail.com wrote:

 Hey guys,
 I'm using FDT with Eclipse 3.5 on Snow Leopard and I am trying to export an
 AIR package. I've set everything such as application descriptor xml file,
 certificate etc.
 I'm getting a strange error in the console:

 at least one file is required
 usage:
   adt -checkstore SIGNING_OPTIONS
   adt -certificate -cn name ( -ou org-unit )? ( -o org-name )? ( -c
 country )? key-type pfx-file password
   adt -help
   adt -migrate SIGNING_OTIONS air-file-in air-file-out
   adt -package SIGNING_OPTIONS air-file app-desc FILE_ARGS
   adt -prepare airi-file app-desc FILE_ARGS
   adt -sign SIGNING_OPTIONS airi-file air-file
   adt -version

 SIGNING_OPTIONS: -storetype type ( -keystore store )? ( -storepass
 pass )? ( -keypass pass )? ( -providerName name )? ( -tsa url )?
 FILE_ARGS: fileOrDir* (( -C dir fileOrDir+ ) | ( -e file path ))*

 Any suggestions?

 --
 Omar M. Fouad - Adobe™ Flash© Platform Developer
 http://omarfouad.net
 Cell: (+20) 234.66.33


 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
http://omarfouad.net
Cell: (+20) 234.66.33


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FDT and AIR?

2010-01-30 Thread Omar Fouad
Hey guys,
I'm using FDT with Eclipse 3.5 on Snow Leopard and I am trying to export an
AIR package. I've set everything such as application descriptor xml file,
certificate etc.
I'm getting a strange error in the console:

at least one file is required
usage:
  adt -checkstore SIGNING_OPTIONS
  adt -certificate -cn name ( -ou org-unit )? ( -o org-name )? ( -c
country )? key-type pfx-file password
  adt -help
  adt -migrate SIGNING_OTIONS air-file-in air-file-out
  adt -package SIGNING_OPTIONS air-file app-desc FILE_ARGS
  adt -prepare airi-file app-desc FILE_ARGS
  adt -sign SIGNING_OPTIONS airi-file air-file
  adt -version

SIGNING_OPTIONS: -storetype type ( -keystore store )? ( -storepass
pass )? ( -keypass pass )? ( -providerName name )? ( -tsa url )?
FILE_ARGS: fileOrDir* (( -C dir fileOrDir+ ) | ( -e file path ))*

Any suggestions?

-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
http://omarfouad.net
Cell: (+20) 234.66.33


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Caching loaded bitmaps

2009-12-30 Thread Omar Fouad
Hi all,

I have some sort of game that requires to load some bitmaps before it
starts. I do this by using the Loader class, and shifting from an array of
image Links on each time the Event.COMPLETE fires so that the images load
one by one. The project is a FLA file (CS4) using document class and some
other classes.

I did most of this project on my Mac Book today, and every time I test the
application I had to wait for all the images to load (which takes almost 2
minutes and it was so annoying).
By coincidence I moved the project to a PC (windows 7) and I noticed that
when I test the swf movie from Flash CS4, I have to wait until my 39 bitmaps
load only the first time, unless I restart Flash CS4, in all the others
movie tests, the bitmaps remain cached and they load in a heart beat (in
less than 2 secs). I would like to know what is the trick with that. Why
this does not happen on Mac? How can I enable this on Mac?

Thanks in advance.

-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
http://omarfouad.net
Cell: (+20) 234.66.33


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Caching loaded bitmaps

2009-12-30 Thread Omar Fouad
No one?

On Wed, Dec 30, 2009 at 10:54 PM, Omar Fouad omarfouad@gmail.comwrote:

 Hi all,

 I have some sort of game that requires to load some bitmaps before it
 starts. I do this by using the Loader class, and shifting from an array of
 image Links on each time the Event.COMPLETE fires so that the images load
 one by one. The project is a FLA file (CS4) using document class and some
 other classes.

 I did most of this project on my Mac Book today, and every time I test the
 application I had to wait for all the images to load (which takes almost 2
 minutes and it was so annoying).
 By coincidence I moved the project to a PC (windows 7) and I noticed that
 when I test the swf movie from Flash CS4, I have to wait until my 39 bitmaps
 load only the first time, unless I restart Flash CS4, in all the others
 movie tests, the bitmaps remain cached and they load in a heart beat (in
 less than 2 secs). I would like to know what is the trick with that. Why
 this does not happen on Mac? How can I enable this on Mac?

 Thanks in advance.

 --
 Omar M. Fouad - Adobe™ Flash© Platform Developer
 http://omarfouad.net
 Cell: (+20) 234.66.33


 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
http://omarfouad.net
Cell: (+20) 234.66.33


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Projects worklow

2009-12-20 Thread Omar Fouad
Thanks Everyone

On Sun, Dec 20, 2009 at 3:23 AM, Glen Pike postmas...@glenpike.co.ukwrote:

 Hi Omar,

   I have the same thing - I am coding in Flash Develop with hand-rolled
 button classes and other classes.  I was a little concerned at first with
 the public / private thing, but I am learning to live with it...

   I think the lesson/trick here is to work in the way you feel comfortable
 - Flash's IDE forces you to declare author-time instances public, but you
 can still use encapsulation as you see fit - having accessors and methods
 manipulate the public on-stage assets.  For me, I have created a custom
 class template in FD that clearly separates my IDE variables from my other
 class variables using comments.
   IMHO, If you understand the rules, then I guess it's okay to break them
 sometimes.

   The test is - can you return to your work in 6 months time and understand
 what you did, (maybe you don't have to)?  If so, then your coding is
 probably okay; cutting a few corners may wind up the purists, but the most
 important thing is that you are getting your work done in a way that's clear
 to you and possibly other people if they have to maintain your code :)

   Hope this helps and best wishes for the season.

   Glen


 Omar Fouad wrote:

 Hi all,

 I've been working with ActionScript 3.0 since 2006 and I used some
 technique
 in the last two years. I believed that this way is the best for splitting
 code from design, but today I asked myself whether this approach is REALLY
 professional or not.
 What I do is a create a pure ActionScript project in Flex Builder 3, and I
 create a FLA file with, which has in its library a bunch of assets that I
 use as components or models, such as buttons, list items, image containers
 with masks and so on - then I give each of the component a linkage name.

 For example, If I need to create a button I just create a MovieClip (or
 Sprite) in my library that represents this simple button designed the way
 it
 should be, this MovieClip contains a TextField named label and it is
 dynamic. It also contains a MovieClip named background, which is the bg
 of
 the button behind the label. Finally I give this button a linkage
 Identifier
 BasicButton.

 After that I publish the FLA and I create a Class that represents this
 button:


 package {

import flash.display.Sprite;

[Embed(source='Lib.swf', symbol='BasicButton')]
public class BasicButton extends Sprite{ // and not MovieClip because
 it
 is based on one frame only

// I declare the variables inside of it. They have to be
 public.
public var label:TextField;
public var background  :Sprite;

 public function BasicButton(labelString:String) {

 label.text = labelString;
  this.buttonMode = true;
 this.addEventListener(MouseEvent.ROLL_OVER, onOver);
this.addEventListener(MouseEvent.ROLL_OUT, onOut);
 }

private function onOver(e:MouseEvent):void {
//changes the background color on roll over
}
private function onOut(e:MouseEvent):void {
   //resets the background color on roll out
}

 }
 }

 Of course I can create an abstract button class that has all the roll over
 and roll out instructions in it, and just make BasicButton an extension of
 it, but whatever this is just an example.

 In the Main class:

 package {

import flash.display.Sprite;

public class Main extends Sprite{

private var myButton:BasicButton;

public function Main() {
 myButton = new BasicButton(Click Me);
 myButton.addEventListener(MouseEvent.CLICK, onClick);
 addChild(myButton);
}
public function onClick(e:MouseEvent) {
trace(button clicked);

}


 }

 This works and all of course. And I can also embed the button inside of
 Main
 and give it a variable of type Class, but in this cases I needed to have
 it
 in a different Class to be able to give it more functions.
 This gives me flexibility when I need to make design tweaks to this button
 (or all the other assets), but I've found a problem, which is that I
 cannot
 make things encapsulated since the variables label and background
 inside
 of BasicButton HAVE to be public (if I declare them as private it won't
 compile). So in a way getters and setters have no use for such instances.

 How can I maintain encapsulation in this case? Or it's just this a good
 way
 to create flash content?

 Thank you

 Cordially.





 --

 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




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
http://.omarfouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e

[Flashcoders] Flash Projects worklow

2009-12-18 Thread Omar Fouad
Hi all,

I've been working with ActionScript 3.0 since 2006 and I used some technique
in the last two years. I believed that this way is the best for splitting
code from design, but today I asked myself whether this approach is REALLY
professional or not.
What I do is a create a pure ActionScript project in Flex Builder 3, and I
create a FLA file with, which has in its library a bunch of assets that I
use as components or models, such as buttons, list items, image containers
with masks and so on - then I give each of the component a linkage name.

For example, If I need to create a button I just create a MovieClip (or
Sprite) in my library that represents this simple button designed the way it
should be, this MovieClip contains a TextField named label and it is
dynamic. It also contains a MovieClip named background, which is the bg of
the button behind the label. Finally I give this button a linkage Identifier
BasicButton.

After that I publish the FLA and I create a Class that represents this
button:


package {

import flash.display.Sprite;

[Embed(source='Lib.swf', symbol='BasicButton')]
public class BasicButton extends Sprite{ // and not MovieClip because it
is based on one frame only

// I declare the variables inside of it. They have to be
public.
public var label:TextField;
public var background  :Sprite;

public function BasicButton(labelString:String) {

label.text = labelString;
 this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, onOver);
this.addEventListener(MouseEvent.ROLL_OUT, onOut);
}

private function onOver(e:MouseEvent):void {
//changes the background color on roll over
}
private function onOut(e:MouseEvent):void {
   //resets the background color on roll out
}

}
}

Of course I can create an abstract button class that has all the roll over
and roll out instructions in it, and just make BasicButton an extension of
it, but whatever this is just an example.

In the Main class:

package {

import flash.display.Sprite;

public class Main extends Sprite{

private var myButton:BasicButton;

public function Main() {
 myButton = new BasicButton(Click Me);
 myButton.addEventListener(MouseEvent.CLICK, onClick);
 addChild(myButton);
}
public function onClick(e:MouseEvent) {
trace(button clicked);

}


}

This works and all of course. And I can also embed the button inside of Main
and give it a variable of type Class, but in this cases I needed to have it
in a different Class to be able to give it more functions.
This gives me flexibility when I need to make design tweaks to this button
(or all the other assets), but I've found a problem, which is that I cannot
make things encapsulated since the variables label and background inside
of BasicButton HAVE to be public (if I declare them as private it won't
compile). So in a way getters and setters have no use for such instances.

How can I maintain encapsulation in this case? Or it's just this a good way
to create flash content?

Thank you

Cordially.


-- 
Omar M. Fouad -
http://omarfouad.net
Cellular: (+20) 10 234.66.33


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Flash Projects workflow

2009-12-18 Thread Omar Fouad
No one?

On Fri, Dec 18, 2009 at 6:03 PM, Omar Fouad omarfouad@gmail.com wrote:

 Hi all,

 I've been working with ActionScript 3.0 since 2006 and I used some
 technique in the last two years. I believed that this way is the best for
 splitting code from design, but today I asked myself whether this approach
 is REALLY professional or not.
 What I do is a create a pure ActionScript project in Flex Builder 3, and I
 create a FLA file with, which has in its library a bunch of assets that I
 use as components or models, such as buttons, list items, image containers
 with masks and so on - then I give each of the component a linkage name.

 For example, If I need to create a button I just create a MovieClip (or
 Sprite) in my library that represents this simple button designed the way it
 should be, this MovieClip contains a TextField named label and it is
 dynamic. It also contains a MovieClip named background, which is the bg of
 the button behind the label. Finally I give this button a linkage Identifier
 BasicButton.

 After that I publish the FLA and I create a Class that represents this
 button:


 package {

 import flash.display.Sprite;

 [Embed(source='Lib.swf', symbol='BasicButton')]
 public class BasicButton extends Sprite{ // and not MovieClip because
 it is based on one frame only

 // I declare the variables inside of it. They have to be
 public.
 public var label:TextField;
 public var background  :Sprite;

 public function BasicButton(labelString:String) {

 label.text = labelString;
  this.buttonMode = true;
 this.addEventListener(MouseEvent.ROLL_OVER, onOver);
 this.addEventListener(MouseEvent.ROLL_OUT, onOut);
 }

 private function onOver(e:MouseEvent):void {
 //changes the background color on roll over
 }
 private function onOut(e:MouseEvent):void {
//resets the background color on roll out
 }

 }
 }

 Of course I can create an abstract button class that has all the roll over
 and roll out instructions in it, and just make BasicButton an extension of
 it, but whatever this is just an example.

 In the Main class:

 package {

 import flash.display.Sprite;

 public class Main extends Sprite{

  private var myButton:BasicButton;

 public function Main() {
  myButton = new BasicButton(Click Me);
  myButton.addEventListener(MouseEvent.CLICK, onClick);
  addChild(myButton);
 }
 public function onClick(e:MouseEvent) {
 trace(button clicked);

 }


 }

 This works and all of course. And I can also embed the button inside of
 Main and give it a variable of type Class, but in this cases I needed to
 have it in a different Class to be able to give it more functions.
 This gives me flexibility when I need to make design tweaks to this button
 (or all the other assets), but I've found a problem, which is that I cannot
 make things encapsulated since the variables label and background inside
 of BasicButton HAVE to be public (if I declare them as private it won't
 compile). So in a way getters and setters have no use for such instances.

 How can I maintain encapsulation in this case? Or it's just this a good way
 to create flash content?

 Thank you

 Cordially.


 --
 Omar M. Fouad -
 http://omarfouad.net
 Cellular: (+20) 10 234.66.33


 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
http://.omarfouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Flash Projects workflow

2009-12-18 Thread Omar Fouad
Thanks Karl, Jason, I'll wait for your answer. And tell me if the movie is
good. Have a good time.

On Sat, Dec 19, 2009 at 2:54 AM, Karl DeSaulniers k...@designdrumm.comwrote:

 Sorry for the echo. Forgot I already said that. :P

 Karl

 Sent from losPhone


 On Dec 18, 2009, at 6:42 PM, Karl DeSaulniers k...@designdrumm.com
 wrote:

  I am not an expert on classes, but couldn't you have a private var equal
 your public var after it gets initiated?

 Karl


 On Dec 18, 2009, at 3:58 PM, Omar Fouad wrote:

  No one?

 On Fri, Dec 18, 2009 at 6:03 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  Hi all,

 I've been working with ActionScript 3.0 since 2006 and I used some
 technique in the last two years. I believed that this way is the best
 for
 splitting code from design, but today I asked myself whether this
 approach
 is REALLY professional or not.
 What I do is a create a pure ActionScript project in Flex Builder 3, and
 I
 create a FLA file with, which has in its library a bunch of assets that
 I
 use as components or models, such as buttons, list items, image
 containers
 with masks and so on - then I give each of the component a linkage
 name.

 For example, If I need to create a button I just create a MovieClip (or
 Sprite) in my library that represents this simple button designed the
 way it
 should be, this MovieClip contains a TextField named label and it is
 dynamic. It also contains a MovieClip named background, which is the
 bg of
 the button behind the label. Finally I give this button a linkage
 Identifier
 BasicButton.

 After that I publish the FLA and I create a Class that represents this
 button:


 package {

   import flash.display.Sprite;

   [Embed(source='Lib.swf', symbol='BasicButton')]
   public class BasicButton extends Sprite{ // and not MovieClip because
 it is based on one frame only

   // I declare the variables inside of it. They have to be
 public.
   public var label:TextField;
   public var background  :Sprite;

 public function BasicButton(labelString:String) {

 label.text = labelString;
 this.buttonMode = true;
 this.addEventListener(MouseEvent.ROLL_OVER, onOver);
   this.addEventListener(MouseEvent.ROLL_OUT, onOut);
 }

   private function onOver(e:MouseEvent):void {
   //changes the background color on roll over
   }
   private function onOut(e:MouseEvent):void {
  //resets the background color on roll out
   }

 }
 }

 Of course I can create an abstract button class that has all the roll
 over
 and roll out instructions in it, and just make BasicButton an extension
 of
 it, but whatever this is just an example.

 In the Main class:

 package {

   import flash.display.Sprite;

   public class Main extends Sprite{

private var myButton:BasicButton;

   public function Main() {
myButton = new BasicButton(Click Me);
myButton.addEventListener(MouseEvent.CLICK, onClick);
addChild(myButton);
   }
   public function onClick(e:MouseEvent) {
   trace(button clicked);

   }


 }

 This works and all of course. And I can also embed the button inside of
 Main and give it a variable of type Class, but in this cases I needed to
 have it in a different Class to be able to give it more functions.
 This gives me flexibility when I need to make design tweaks to this
 button
 (or all the other assets), but I've found a problem, which is that I
 cannot
 make things encapsulated since the variables label and background
 inside
 of BasicButton HAVE to be public (if I declare them as private it won't
 compile). So in a way getters and setters have no use for such
 instances.

 How can I maintain encapsulation in this case? Or it's just this a good
 way
 to create flash content?

 Thank you

 Cordially.


 --
 Omar M. Fouad -
 http://omarfouad.net
 Cellular: (+20) 10 234.66.33


 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




 --
 Omar M. Fouad - Adobe™ Flash© Platform Developer
 http://.omarfouad.net
 Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you

Re: [Flashcoders] Reading text from PDF files or show PDF pages into Flash Player.

2009-08-26 Thread Omar Fouad
That is for generating PDFs on the server...

On Wed, Aug 26, 2009 at 7:05 AM, juju jlee...@gmail.com wrote:

 Hi Omar, take a look at AlivePDF.

 http://alivepdf.bytearray.org/

 HTH, juju


 On Tue, Aug 25, 2009 at 10:32 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  So,
 
  I'm creating an e-Library that consents users to read text from a pdf
  source
  and display it into a dynamic Text Field in Flash. But I am experiencing
 a
  problem which is that RTL languages (in my case it is ARABIC) are not
  displayed correctly. This is the famous Flash Problem since years I know,
  but today I felt frustrated when I uploaded an Arabic written document to
  scribd.com. iPaper just popped out and showed me the text wrapped and
  correctly formatted. I thought that is an image of the page but the text
 is
  perfectly selectable.
 
  I've tried the Text Layout Framework for FP 10 but it seems to be
  unsupported yet as in I can't find any documentation online.
 
  I'm wondering if there is something that would permit me to show pdf
 files
  directly in the Flash Player, instead of tying to fetch the text within
 it.
 
 
 
  Please help, I'm frustrated.
  --
  Omar M. Fouad - Adobe™ Flash© Platform Developer
  www.omar-fouad.net
  Cellular: (+20) 1011.88.534 / (+20) 1444.37.175
 
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  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




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Reading text from PDF files or show PDF pages into Flash Player.

2009-08-25 Thread Omar Fouad
So,

I'm creating an e-Library that consents users to read text from a pdf source
and display it into a dynamic Text Field in Flash. But I am experiencing a
problem which is that RTL languages (in my case it is ARABIC) are not
displayed correctly. This is the famous Flash Problem since years I know,
but today I felt frustrated when I uploaded an Arabic written document to
scribd.com. iPaper just popped out and showed me the text wrapped and
correctly formatted. I thought that is an image of the page but the text is
perfectly selectable.

I've tried the Text Layout Framework for FP 10 but it seems to be
unsupported yet as in I can't find any documentation online.

I'm wondering if there is something that would permit me to show pdf files
directly in the Flash Player, instead of tying to fetch the text within it.



Please help, I'm frustrated.
-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Arabic text loaded from database.

2009-08-23 Thread Omar Fouad
Ok I got it... But I cannot find a good documentation or getting started
guide...

On Wed, Aug 19, 2009 at 7:47 PM, Cedric Muller flashco...@benga.li wrote:

 Hi Omar,

 I did develop a dynamic arabic site using TextLayout Framework
 http://labs.adobe.com/technologies/textlayout/

 It all went well.

 hth,
 Cedric


  I'm creating an e-Library that consents users to read text from a pdf
 source
 and display it into a dynamic TextField in Flash. But I am experiencing a
 problem which is that RTL languages (in my case it is ARABIC) are not
 displayed correctly. This is the famous Flash Problem since years I know,
 but today I felt frustrated when I uploaded an Arabic written document to
 scribd.com. iPaper just popped out and showed me the text wrapped and
 correctly formatted. I thought that is an image of the page but the text
 is
 perfectly selectable.

 How that could be possible?

 Cordially.

 --
 Omar M. Fouad - Adobe™ Flash© Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Arabic text loaded from database.

2009-08-19 Thread Omar Fouad
I'm creating an e-Library that consents users to read text from a pdf source
and display it into a dynamic TextField in Flash. But I am experiencing a
problem which is that RTL languages (in my case it is ARABIC) are not
displayed correctly. This is the famous Flash Problem since years I know,
but today I felt frustrated when I uploaded an Arabic written document to
scribd.com. iPaper just popped out and showed me the text wrapped and
correctly formatted. I thought that is an image of the page but the text is
perfectly selectable.

How that could be possible?

Cordially.

-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] PHP Socket Question

2009-07-22 Thread Omar Fouad
hey,
My boss asked me to develop a Cards Game called Estimation (I don't know
if you heard about it). It is a Cards game similar to spades, where there
are tricks, bids, etc.
The game is going to be a Facebook application, so it is required a
multi-player option (real time).
At first I thought I would create a database and continuously let the client
send queries using AMF, to check for changes and update the display. But a
friend of mine told me this is insane. The data on the database he would
buge, and I have to take in mind, that anyone could leave the game at
anytime, so the data will remain in the database uselessly. He told me to
use sockets, and store the variables I need, such as the rooms, the player
nickname, the bids, the calls, the tricks, the scores, the rounds, the
hands, and all the crap that I would need in the server side script (PHP).
Is this true? If I will have to use sockets, should I store the data as
variables in the server side script?

I really need to figure out how to start. Thanks.

-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Video Class Problem

2009-07-16 Thread Omar Fouad
Ok I'll try and feed you back.

Thanks

On Thu, Jul 16, 2009 at 2:24 AM, Bob Wohl bob.w...@gmail.com wrote:

 I believe it would still be on top if it was from the start. Full
 screen doesn't change the swf's internal index.

 So with the video object's heightwidth, modify that on the resize
 event. You can set that to what ever value you want. So if your
 control bar is bellow the vid you could do video.height =
 Stage.stageHeight-controlBar.y. You would still need to set the
 control bar's y location before that to stage's height minus control
 bar height.


 B.

 On Wed, Jul 15, 2009 at 12:55 PM, Omar Fouadomarfouad@gmail.com
 wrote:
  You mean that first I set the stage to full screen than I set the video's
  width and height to the stage dimensions and switch it on top of the
 other
  display objects?
 
 
  On Wed, Jul 15, 2009 at 7:19 PM, allandt bik-elliott (thefieldcomic.com)
 
  alla...@gmail.com wrote:
 
  ___
   Flashcoders
 
 
 
 
  --
  Omar M. Fouad - Adobe™ Flash© Platform Developer
  www.omar-fouad.net
  Cellular: (+20) 1011.88.534 / (+20) 1444.37.175
 
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  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




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Video Class Problem

2009-07-15 Thread Omar Fouad
Hello,

I'm creating a custom shortcut class to play videos from a playlist.
The class uses the Video Class in conjuction with NetConnection and
NetStream of course (not using FLVPlayback component)

The problem is that I cannot bring the video to FullScreen mode by using:

stage.displayState = StageDisplayState.FULL_SCREEN;

Flash Player gets into full screen mode but the video is still there with
its same dimensions.
So after many searches I found out something that worked in a way but not
like I wanted:

var screenRectangle:Rectangle = new Rectangle(video.x,video.y, video.width,
video.height);
stage.fullScreenSourceRect = screenRectangle;
stage.displayState = StageDisplayState.FULL_SCREEN;

This apparently zooms the flash player to match the video boundaries,
which is acceptable but now I am facing another problem. I am creating a
custom video control bar, (with play pause scrub bar etc.) which I need it
to be visible when in full screen mode. Well, the controls are visible but
they are too large, because as I said before, flash player is zooming in
this video.

If I'm on the right path, how can I fix it?

Note: I am using SWFObject and coding with Flex Builder (actionScript
Project)

Cordially.


-- 
Omar M. Fouad -
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Video Class Problem

2009-07-15 Thread Omar Fouad
You mean that first I set the stage to full screen than I set the video's
width and height to the stage dimensions and switch it on top of the other
display objects?


On Wed, Jul 15, 2009 at 7:19 PM, allandt bik-elliott (thefieldcomic.com) 
alla...@gmail.com wrote:

 ___
  Flashcoders




-- 
Omar M. Fouad - Adobe™ Flash© Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534 / (+20) 1444.37.175


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: SWAddress logical workflow

2009-06-16 Thread Omar Fouad
No ideas?

On 6/14/09, Omar Fouad omarfouad@gmail.com wrote:
 Well i believe that group 94 are using a different technique to
 implement SWFAddress dynamically. Ty also took care of fast
 next-previous browsing. What do you think?

 On 6/14/09, Gerry noentour...@gmail.com wrote:
 That's strange, you might be setting the value later in your sequence.
 I've never had this happen before.
 Are you intending to change the title after the slide animation?
 I call setTitle at the same time I call the function to switch sections.
 On the undefined situation, you will probably have to write a
 conditional to handle undefined dates and/or
 include code to not allow future dates.
 -Gerry

 On Jun 13, 2009, at 2:19 PM, Omar Fouad wrote:

 Well i can do that but i don't use that syntax. i instead do
 /gallery/2. At the end i omit the first forward slash from the address
 value string, i split it to get an array of parameters such as, in
 this case, gallery and 2 which is the id of the photo to load.
 The dilemma now is to sync all this together. I don't know if you
 noticed but the address changing in the browser occurs after a second
 and not immediately. Check www.fwaphoto.com play with it and check the
 address behaviour after clicking. Today i discovered something
 interesting. In the address, replace the date of a picture to any date
 in the future like this www.fwaphoto.com/#/2009-6-20 and see what
 happens to the address when it finds nothing. The date changes to
 undefined! What the hell does this mean?

 On 6/13/09, Gerry noentour...@gmail.com wrote:
 Yeah, I understand. You'll need to figure out how to allow for extra
 params in the url.
 My function with the switch conditional code could be replaced with
 code that handles
 dynamic params.
 ie. do something with the string that includes /sectionName and if
 there is extra params
  after /sectionName?img=  do something else.
 I'm just spit balling but that might be what you have to do.
 I don't think I've ever seen any tutorials on how anyone else has
 handled that.

 -Gerry

 On Jun 13, 2009, at 12:15 PM, Omar Fouad wrote:

 Thanks Gerry this is exactly what i do. But as Matt says there is a
 problem when i rapidily fire next and previous, things screw up.
 Another thing, what if i have a section in my movie like a gallery,
 and i need to add an additional parameter to the address like the
 photo id to load the image, this is tricky.  i've been experiencing
 too much problems.

 On 6/13/09, Matt S. mattsp...@gmail.com wrote:
 Can you describe what the bugs are? SWFAddress can be tricky,
 especially with rapid-fire clicking of the browser previous/next
 buttons.

 .m


 I don't know if this is the right thing to do in this case. I just
 need
 some
 advice because things are too much buggy.

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


 --
 Sent from my mobile device

 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied, disclosed to, retained or used by, any other party. If you
 are
 not an intended recipient then please promptly delete this e-mail
 and
 any attachment and all copies and inform the sender. Thank you.

 ___
 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


 --
 Sent from my mobile device

 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied, disclosed to, retained or used by, any other party. If you are
 not an intended recipient then please promptly delete this e-mail and
 any attachment and all copies and inform the sender. Thank you.

 ___
 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


 --
 Sent from my mobile device

 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment

Re: [Flashcoders] Re: SWAddress logical workflow

2009-06-16 Thread Omar Fouad
Thanks Guys, for the replies I'll see your example Glen.

On Tue, Jun 16, 2009 at 11:27 PM, Steven Sacks flash...@stevensacks.netwrote:

 This is exactly how Gaia works.  goto() calls setValue on SWFAddress and
 the response is dispatched to the framework to handle the navigation.
  Interrupts are handled in both loading and transitions.  It's open source,
 so you're welcome to examine how it's done in Gaia.


 On Jun 16, 2009, at 1:08 PM, Glen Pike wrote:

 I see what you mean by setting a future date on the FWA site - I managed to
 screw up the history completely (FF2 WinXP) so got stuck forever on that
 date a bit like Groundhog Day :)
 I think the only way to deal with fast browsing is to allow your loading /
 transition process to be interrupted if you keep getting changes from
 SWFAddress.  Personally, I have not really thought about this in my stuff
 before, but the way you said you were approaching the SWFAddress bit seemed
 sensible to me - going a round-about way by setting the URL when you
 navigate in Flash then responding to the change via SWFAddress.  This seems
 much safer because everything goes through a single route.

 There is a nice example of doing the dynamic thing with PHP in the
 SWFAddress examples.  You can even tweak the whole site with Apache 
 mod_rewrite to get pretty URL's - this may / may not work with Zend AMF
 quite nicely so download and examine this example:
 http://www.asual.com/swfaddress/samples/seo/ which seems to be the
 smoothest one.

 If you are worried about fast clicking, have a look to see how an HTML
 site behaves with this - I guess you get half-assed page loading, etc. But
 people expect to wait a bit for something to load if they go back  forth,
 you just have to be prepared to interrupt what you are doing (I should
 probably take my own advice here and make sure my SWFAddress site behaves
 nicely)

 Hope this helps and if you come up with any interesting stuff, let us
 know!

 Glen


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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: SWAddress logical workflow

2009-06-16 Thread Omar Fouad
I almost forgot... what do you mean by interrupting the loading / transition
of the site?

On Wed, Jun 17, 2009 at 3:56 AM, Omar Fouad omarfouad@gmail.com wrote:

 Thanks Guys, for the replies I'll see your example Glen.


 On Tue, Jun 16, 2009 at 11:27 PM, Steven Sacks 
 flash...@stevensacks.netwrote:

 This is exactly how Gaia works.  goto() calls setValue on SWFAddress and
 the response is dispatched to the framework to handle the navigation.
  Interrupts are handled in both loading and transitions.  It's open source,
 so you're welcome to examine how it's done in Gaia.


 On Jun 16, 2009, at 1:08 PM, Glen Pike wrote:

 I see what you mean by setting a future date on the FWA site - I managed
 to screw up the history completely (FF2 WinXP) so got stuck forever on that
 date a bit like Groundhog Day :)
 I think the only way to deal with fast browsing is to allow your loading
 / transition process to be interrupted if you keep getting changes from
 SWFAddress.  Personally, I have not really thought about this in my stuff
 before, but the way you said you were approaching the SWFAddress bit seemed
 sensible to me - going a round-about way by setting the URL when you
 navigate in Flash then responding to the change via SWFAddress.  This seems
 much safer because everything goes through a single route.

 There is a nice example of doing the dynamic thing with PHP in the
 SWFAddress examples.  You can even tweak the whole site with Apache 
 mod_rewrite to get pretty URL's - this may / may not work with Zend AMF
 quite nicely so download and examine this example:
 http://www.asual.com/swfaddress/samples/seo/ which seems to be the
 smoothest one.

 If you are worried about fast clicking, have a look to see how an HTML
 site behaves with this - I guess you get half-assed page loading, etc. But
 people expect to wait a bit for something to load if they go back  forth,
 you just have to be prepared to interrupt what you are doing (I should
 probably take my own advice here and make sure my SWFAddress site behaves
 nicely)

 Hope this helps and if you come up with any interesting stuff, let us
 know!

 Glen


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




 --
 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] SWAddress logical workflow

2009-06-13 Thread Omar Fouad
Hi,

I've been involved into a project where the client required the deep linking
feature.
The project is built with pure AS3 embedding symbols from a SWF library
file, ZendAMF php and mysql,
Now the question is how can I sync the address with the current state of my
flash movie. All I know is that I have two things to do, which are to change
the flash state then change the address, and at the other hand to listen for
address changes and change the state based on that change.

What sounded logical to me is to change the link address directly when
changing the state so that when the address changes, the listener handler
logic brings the right flash state... like this:

HomeButton.addEventListener(MouseEvent.CLICK, onButtonClick);
SWFAddress.addEventListner(SWFAddressEvent.CHANGE, onAddressChange);

private function onButtonClick(e:MouseEvent):void {
//changes the address here to www.mysite.com/#/home
}
private function  onAddressChange(e:SWFAddressEvent):void {
   //reads the address, understands that refers to home, and changes the
state to home.
}

I don't know if this is the right thing to do in this case. I just need some
advice because things are too much buggy.

Cordially.



-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: SWAddress logical workflow

2009-06-13 Thread Omar Fouad
Thanks Gerry this is exactly what i do. But as Matt says there is a
problem when i rapidily fire next and previous, things screw up.
Another thing, what if i have a section in my movie like a gallery,
and i need to add an additional parameter to the address like the
photo id to load the image, this is tricky.  i've been experiencing
too much problems.

On 6/13/09, Matt S. mattsp...@gmail.com wrote:
 Can you describe what the bugs are? SWFAddress can be tricky,
 especially with rapid-fire clicking of the browser previous/next
 buttons.

 .m


 I don't know if this is the right thing to do in this case. I just need
 some
 advice because things are too much buggy.

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


-- 
Sent from my mobile device

Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.

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


[Flashcoders] Re: SWAddress logical workflow

2009-06-13 Thread Omar Fouad
Well i can do that but i don't use that syntax. i instead do
/gallery/2. At the end i omit the first forward slash from the address
value string, i split it to get an array of parameters such as, in
this case, gallery and 2 which is the id of the photo to load.
The dilemma now is to sync all this together. I don't know if you
noticed but the address changing in the browser occurs after a second
and not immediately. Check www.fwaphoto.com play with it and check the
address behaviour after clicking. Today i discovered something
interesting. In the address, replace the date of a picture to any date
in the future like this www.fwaphoto.com/#/2009-6-20 and see what
happens to the address when it finds nothing. The date changes to
undefined! What the hell does this mean?

On 6/13/09, Gerry noentour...@gmail.com wrote:
 Yeah, I understand. You'll need to figure out how to allow for extra
 params in the url.
 My function with the switch conditional code could be replaced with
 code that handles
 dynamic params.
 ie. do something with the string that includes /sectionName and if
 there is extra params
   after /sectionName?img=  do something else.
 I'm just spit balling but that might be what you have to do.
 I don't think I've ever seen any tutorials on how anyone else has
 handled that.

 -Gerry

 On Jun 13, 2009, at 12:15 PM, Omar Fouad wrote:

 Thanks Gerry this is exactly what i do. But as Matt says there is a
 problem when i rapidily fire next and previous, things screw up.
 Another thing, what if i have a section in my movie like a gallery,
 and i need to add an additional parameter to the address like the
 photo id to load the image, this is tricky.  i've been experiencing
 too much problems.

 On 6/13/09, Matt S. mattsp...@gmail.com wrote:
 Can you describe what the bugs are? SWFAddress can be tricky,
 especially with rapid-fire clicking of the browser previous/next
 buttons.

 .m


 I don't know if this is the right thing to do in this case. I just
 need
 some
 advice because things are too much buggy.

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


 --
 Sent from my mobile device

 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied, disclosed to, retained or used by, any other party. If you are
 not an intended recipient then please promptly delete this e-mail and
 any attachment and all copies and inform the sender. Thank you.

 ___
 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


-- 
Sent from my mobile device

Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.

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


[Flashcoders] Re: SWAddress logical workflow

2009-06-13 Thread Omar Fouad
Well i believe that group 94 are using a different technique to
implement SWFAddress dynamically. Ty also took care of fast
next-previous browsing. What do you think?

On 6/14/09, Gerry noentour...@gmail.com wrote:
 That's strange, you might be setting the value later in your sequence.
 I've never had this happen before.
 Are you intending to change the title after the slide animation?
 I call setTitle at the same time I call the function to switch sections.
 On the undefined situation, you will probably have to write a
 conditional to handle undefined dates and/or
 include code to not allow future dates.
 -Gerry

 On Jun 13, 2009, at 2:19 PM, Omar Fouad wrote:

 Well i can do that but i don't use that syntax. i instead do
 /gallery/2. At the end i omit the first forward slash from the address
 value string, i split it to get an array of parameters such as, in
 this case, gallery and 2 which is the id of the photo to load.
 The dilemma now is to sync all this together. I don't know if you
 noticed but the address changing in the browser occurs after a second
 and not immediately. Check www.fwaphoto.com play with it and check the
 address behaviour after clicking. Today i discovered something
 interesting. In the address, replace the date of a picture to any date
 in the future like this www.fwaphoto.com/#/2009-6-20 and see what
 happens to the address when it finds nothing. The date changes to
 undefined! What the hell does this mean?

 On 6/13/09, Gerry noentour...@gmail.com wrote:
 Yeah, I understand. You'll need to figure out how to allow for extra
 params in the url.
 My function with the switch conditional code could be replaced with
 code that handles
 dynamic params.
 ie. do something with the string that includes /sectionName and if
 there is extra params
  after /sectionName?img=  do something else.
 I'm just spit balling but that might be what you have to do.
 I don't think I've ever seen any tutorials on how anyone else has
 handled that.

 -Gerry

 On Jun 13, 2009, at 12:15 PM, Omar Fouad wrote:

 Thanks Gerry this is exactly what i do. But as Matt says there is a
 problem when i rapidily fire next and previous, things screw up.
 Another thing, what if i have a section in my movie like a gallery,
 and i need to add an additional parameter to the address like the
 photo id to load the image, this is tricky.  i've been experiencing
 too much problems.

 On 6/13/09, Matt S. mattsp...@gmail.com wrote:
 Can you describe what the bugs are? SWFAddress can be tricky,
 especially with rapid-fire clicking of the browser previous/next
 buttons.

 .m


 I don't know if this is the right thing to do in this case. I just
 need
 some
 advice because things are too much buggy.

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


 --
 Sent from my mobile device

 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied, disclosed to, retained or used by, any other party. If you
 are
 not an intended recipient then please promptly delete this e-mail
 and
 any attachment and all copies and inform the sender. Thank you.

 ___
 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


 --
 Sent from my mobile device

 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied, disclosed to, retained or used by, any other party. If you are
 not an intended recipient then please promptly delete this e-mail and
 any attachment and all copies and inform the sender. Thank you.

 ___
 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


-- 
Sent from my mobile device

Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain

Re: [Flashcoders] FLVPlaybacl Skin Question

2009-06-09 Thread Omar Fouad
Thanks Buddy just what I was looking for :)

2009/6/9 Sam Brown 4sambr...@gmail.com

 Hey Omar,
 Here's a couple of resources I found very useful:

 The first is a 2 part series and is very through.
 Expanding the Flash Actionscript 3.0
 Videoplayer
 http://www.thetechlabs.com/tutorials/xml/expanding-the-as3-videoplayer/
 The second is great for a very quick build. Uses a 3rd party component that
 handales all the logic for the
 player, all you have to do is build the UI and give them keyword instance
 names.
 Create an Attractive Flash Video
 Player
 http://flash.tutsplus.com/tutorials/screencasts/create-an-attractive-flash-video-player/
 
 Hope that helps.
 Sam
 @explrCre8 http://twitter.com/explrCre8





 On Mon, Jun 8, 2009 at 3:00 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  Hello everybody,
 
  I skinned the FLVPlayback skin, it works and all but I need to change
 it's
  show/hide transition. I've seen video controls that slides from the
 bottom
  like youtube etc.. The default for the skin is fade in and fade out even
 in
  FullScreen Mode.
 
  i don't know if skinning the controls is the best way to create custom
  controls to a video player in a web site, especially when I do it using
  pure
  ActionScript (embedding symbols from the Flash IDE Library) but this is
  what
  I could figure out till now.
 
  Any Ideas?
 
  Cordially
 
  --
  Omar M. Fouad - Adobe Flash™ Platform Developer
  www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: m...@omar-fouad.net
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FLVPlaybacl Skin Question

2009-06-08 Thread Omar Fouad
Hello everybody,

I skinned the FLVPlayback skin, it works and all but I need to change it's
show/hide transition. I've seen video controls that slides from the bottom
like youtube etc.. The default for the skin is fade in and fade out even in
FullScreen Mode.

i don't know if skinning the controls is the best way to create custom
controls to a video player in a web site, especially when I do it using pure
ActionScript (embedding symbols from the Flash IDE Library) but this is what
I could figure out till now.

Any Ideas?

Cordially

-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Papervision Help

2009-05-27 Thread Omar Fouad
Thanks buddies, I've switched to Away3D, which is (in my opinion) better
explained, supported and more straightforward in terms of API, than
Papervision3D.

Thanks for the supports guys!

On Wed, May 27, 2009 at 1:54 PM, Hans Wichman 
j.c.wich...@objectpainters.com wrote:

 nice tuts: http://papervision2.com/
 http://papervision2.com/
 http://pv3d.org/




 On Tue, May 26, 2009 at 4:10 PM, Merrill, Jason 
 jason.merr...@bankofamerica.com wrote:

  Have you tried the Papervision list?  I think these questions specific to
  Papervision are more appropriate there.
 
 
  Jason Merrill
 
  Bank of  America   Global Learning
  Shared Services Solutions Development
 
  Monthly meetings on the Adobe Flash platform for rich media experiences -
  join the Bank of America Flash Platform Community
 
 
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
  flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Omar Fouad
  Sent: Sunday, May 24, 2009 5:49 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] Papervision Help
 
  Well my concern now is, how can I apply a light and a shadow to a
  MovieMaterial. I've searched the whole google for it but invain.
 
  On Sun, May 24, 2009 at 9:18 AM, Ashim D'Silva as...@therandomlines.com
  wrote:
 
   Well, papervision will be able to do that, and the docs are quite
   helpful. You'll have to be specific when you search google for this
   stuff though. I did find some nice tutorials on lighting and shaders
   that should be helpful but that I can't remember offhand.
  
   However, you might want to re-evaluate using the default flash 10
   stuff. Lighting and shadowing live is only necessary if your object
   are going to change enough to make a difference. You might find you
   can get away with baking all that into textures and saving your
   processing power.
  
   Ashim
  
   The Random Lines
   My online portfolio
   www.therandomlines.com
  
  
  
   2009/5/24 Omar Fouad omarfouad@gmail.com:
Hi all,
   
I am working on a project where I need to create 6 circles (planes)
  with
different colors. the cirlces are placed one over the other and
  centered,
   so
when I move the mouse down those they rotate to show something like a
piramid. I could just use the native 3d in Flash but my boss needs
 each
circle to be clickable, have a shadow and be shaded (lighted).
   
I actually played around with papervision lately, using BasicView and
   some
kind of materials, but now I feel frustrated as I just can't figure
 out
   how
to do this work.
   
Any Ideas?
   
I also cannot find a decent papervision explanation on the net.
 What
  I
   am
looking for is a conceptual explanation about papervision not just
 how
  to
create some shapes and put them on the stage.
   
   
--
Omar M. Fouad -
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net
   
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
   copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
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
  
 
 
 
  --
  Omar M. Fouad - Adobe Flash™ Platform Developer
  www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: m...@omar-fouad.net
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any

Re: [Flashcoders] Papervision Help

2009-05-24 Thread Omar Fouad
Well my concern now is, how can I apply a light and a shadow to a
MovieMaterial. I've searched the whole google for it but invain.

On Sun, May 24, 2009 at 9:18 AM, Ashim D'Silva as...@therandomlines.comwrote:

 Well, papervision will be able to do that, and the docs are quite
 helpful. You'll have to be specific when you search google for this
 stuff though. I did find some nice tutorials on lighting and shaders
 that should be helpful but that I can't remember offhand.

 However, you might want to re-evaluate using the default flash 10
 stuff. Lighting and shadowing live is only necessary if your object
 are going to change enough to make a difference. You might find you
 can get away with baking all that into textures and saving your
 processing power.

 Ashim

 The Random Lines
 My online portfolio
 www.therandomlines.com



 2009/5/24 Omar Fouad omarfouad@gmail.com:
  Hi all,
 
  I am working on a project where I need to create 6 circles (planes) with
  different colors. the cirlces are placed one over the other and centered,
 so
  when I move the mouse down those they rotate to show something like a
  piramid. I could just use the native 3d in Flash but my boss needs each
  circle to be clickable, have a shadow and be shaded (lighted).
 
  I actually played around with papervision lately, using BasicView and
 some
  kind of materials, but now I feel frustrated as I just can't figure out
 how
  to do this work.
 
  Any Ideas?
 
  I also cannot find a decent papervision explanation on the net. What I
 am
  looking for is a conceptual explanation about papervision not just how to
  create some shapes and put them on the stage.
 
 
  --
  Omar M. Fouad -
  www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: m...@omar-fouad.net
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Papervision Help

2009-05-23 Thread Omar Fouad
Hi all,

I am working on a project where I need to create 6 circles (planes) with
different colors. the cirlces are placed one over the other and centered, so
when I move the mouse down those they rotate to show something like a
piramid. I could just use the native 3d in Flash but my boss needs each
circle to be clickable, have a shadow and be shaded (lighted).

I actually played around with papervision lately, using BasicView and some
kind of materials, but now I feel frustrated as I just can't figure out how
to do this work.

Any Ideas?

I also cannot find a decent papervision explanation on the net. What I am
looking for is a conceptual explanation about papervision not just how to
create some shapes and put them on the stage.


-- 
Omar M. Fouad -
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 Papervision Question

2009-04-30 Thread Omar Fouad
No one?

On Sun, Apr 26, 2009 at 8:49 AM, Omar Fouad omarfouad@gmail.com wrote:

 So there is a way to apply multiple movieClips, or material to a sphere?


 On Sun, Apr 26, 2009 at 8:41 AM, Christoffer Enedahl 
 christof...@enedahl.com wrote:

 That site is not using papervision, it's using prerendered clips, which is
 used celeverly with rotation.

 I havn't tried using a viewpoint as a material, but I think it should
 work, performance might be an issue though.

 /Christoffer

 Omar Fouad skrev:

 Hi all,
 I am wondering if I can create a 3D object in papervision, as a
 movieClip,
 and apply it as a material to a Sphere, like, for example some piramids
 placed on the Sphere.
 Another thing, If I would let each piramid on the sphere to have a
 specific
 click event, in this case I think that each piramid should be a different
 material object, so I can give to each one of them a different click
 event.
 Is this possible?
 I've seen this site http://www.bartleboglehegarty.com/, and I think,
 they
 did in a way, what I am trying to ask.

 Thanks in advance.




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




 --
 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 Loader() stupidity

2009-04-26 Thread Omar Fouad
Try to trace out what's in assets[i].assetPath inside the loop and see what
is returning. i also suggest to create the loader variable inside the loop.

for (var :uint = 0; iassets.length; i+=) {
   var myLoader:Loader = new Loader();
   trace(assets[i].assetPath);
   myLoader.load(new URLRequest(assets[i].assetPath));
}

Cheerz

On Mon, Apr 20, 2009 at 8:22 PM, Paul Andrews p...@ipauland.com wrote:

 - Original Message - From: Gregory Boland 
 breakfastcof...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Monday, April 20, 2009 4:36 PM
 Subject: Re: [Flashcoders] AS3 Loader() stupidity


  Paul,

 try to localize your error.  Pull this code out and put it in a separate
 swf
 and see if that is still happening.  I'm assuming that your assetLoader is
 a
 class variable.

 Doesn't look like anything from here is an issue.  You don't have a custom
 Loader class that is interfering with the Loader keyword do you?


 Hi Gregory, no - no custom Loader class.

 Thanks for the suggestion.

 I also posted on flash_tiger (for some reason posts on falshcoders
 sometimes take ages to appear). This is what I said:

 Thanks to everyone whose chipped in.

 I have a small example program that works perfectly, so somewhere in the
 larger app there's something interfering.

 Unfortunately I have a lot of classes involved and it's all fairly involved
 ( basically two or three XML feeds driving the construction of a website)
 and a loader bar that doesn't know how much there is to load untill all the
 assets have been identified from the XML.

 Thanks guys, more investigation to do.

 Paul









 On Mon, Apr 20, 2009 at 9:58 AM, Paul Andrews p...@ipauland.com wrote:

  I have:

 assetLoader =new Loader();
 var urlreq:URLRequest = new URLRequest(assets[i].assetPath);
 assetLoader.load(urlreq);


 I get:

 TypeError: Error #1006: load is not a function.

 at runtime.

 I've seen some stuff about this to do with nested swfs, but can't quite
 figure out the circumstances that may cause this error.

 Any ideas?

 Paul
 ___
 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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 Papervision Question

2009-04-25 Thread Omar Fouad
Hi all,
I am wondering if I can create a 3D object in papervision, as a movieClip,
and apply it as a material to a Sphere, like, for example some piramids
placed on the Sphere.
Another thing, If I would let each piramid on the sphere to have a specific
click event, in this case I think that each piramid should be a different
material object, so I can give to each one of them a different click event.
Is this possible?
I've seen this site http://www.bartleboglehegarty.com/, and I think, they
did in a way, what I am trying to ask.

Thanks in advance.

-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 Papervision Question

2009-04-25 Thread Omar Fouad
So there is a way to apply multiple movieClips, or material to a sphere?

On Sun, Apr 26, 2009 at 8:41 AM, Christoffer Enedahl 
christof...@enedahl.com wrote:

 That site is not using papervision, it's using prerendered clips, which is
 used celeverly with rotation.

 I havn't tried using a viewpoint as a material, but I think it should work,
 performance might be an issue though.

 /Christoffer

 Omar Fouad skrev:

 Hi all,
 I am wondering if I can create a 3D object in papervision, as a movieClip,
 and apply it as a material to a Sphere, like, for example some piramids
 placed on the Sphere.
 Another thing, If I would let each piramid on the sphere to have a
 specific
 click event, in this case I think that each piramid should be a different
 material object, so I can give to each one of them a different click
 event.
 Is this possible?
 I've seen this site http://www.bartleboglehegarty.com/, and I think, they
 did in a way, what I am trying to ask.

 Thanks in advance.




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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] link bar frustrating question

2009-04-22 Thread Omar Fouad
Well, mouseChildren did not help. The only thing it helped was checking
whether the e.target is enabled or not in the rollOut handler. According
that, I change the color or not.

Thanks folks for the replies.

On Wed, Apr 22, 2009 at 1:13 PM, Matt S. mattsp...@gmail.com wrote:

 What if the rollOut function looks like:


 private function onRollOut(e:MouseEvent):void {

  if(CurrentLink != e.currentTarget){
   //change colors here of e.currentTarget
 }

 }

 that way it will only change color back if its not currently the
 CurrentLink.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] link bar frustrating question

2009-04-21 Thread Omar Fouad
Hi all,
this is a silly problem that, because it is silly, makes me nervous and
frustrate at the same time.

I've got a class (extends Sprite) that has embedded some MovieClips. Those
MCs are actually containing textboxes with the name of the sections.

for each MC

MC.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
MC.addEventListener(MouseEvent.ROLL_OVER, onRollOver);

private function onRollOut(e:MouseEvent):void {
  //change colors here of e.currentTarget

}

private function onRollOver(e:MouseEvent):void {
  //change colors here of e.currentTarget

}

In the Main Class I am adding the above class to the displayList and I set
Click Listeners for each of its children

var CurrentLink:Sprite // assume it holds a reference of a link

var linkbar:LinkBar = new LinkBar();
linkBar.link1.addEventListener(MouseEvent.CLICK, onClick);

private function onClick(e:MouseEvent):void {
e.currentTarget.mouseEnabled = false;
CurrentLink.mouseEnabled = true;
CurrentLink = e.currentTarget;

}

The link clicked is now disabled but there is a little problem, the
CurrentLink still listens for RollOut events as its color change when i take
the mouse off it. I think it shouldn't because I am setting its mouseEnabled
to false.

Any Ideas?
-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] link bar frustrating question

2009-04-21 Thread Omar Fouad
Thanks Dave but No It does not change anything same problem.

On Tue, Apr 21, 2009 at 7:38 PM, Dave Watts dwa...@figleaf.com wrote:

  this is a silly problem that, because it is silly, makes me nervous and
  frustrate at the same time.
 
  I've got a class (extends Sprite) that has embedded some MovieClips.
 Those
  MCs are actually containing textboxes with the name of the sections.
 
  for each MC
 
  MC.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
  MC.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
 
  private function onRollOut(e:MouseEvent):void {
   //change colors here of e.currentTarget
 
  }
 
  private function onRollOver(e:MouseEvent):void {
   //change colors here of e.currentTarget
 
  }
 
  In the Main Class I am adding the above class to the displayList and I
 set
  Click Listeners for each of its children
 
  var CurrentLink:Sprite // assume it holds a reference of a link
 
  var linkbar:LinkBar = new LinkBar();
  linkBar.link1.addEventListener(MouseEvent.CLICK, onClick);
 
  private function onClick(e:MouseEvent):void {
 e.currentTarget.mouseEnabled = false;
 CurrentLink.mouseEnabled = true;
 CurrentLink = e.currentTarget;
 
  }
 
  The link clicked is now disabled but there is a little problem, the
  CurrentLink still listens for RollOut events as its color change when i
 take
  the mouse off it. I think it shouldn't because I am setting its
 mouseEnabled
  to false.

 I think that, for every rollover, there has to be a corresponding
 rollout before you can effectively disable the event listener.

 http://www.actionscript.org/forums/showthread.php3?t=157859

 I could be wrong about this, and would welcome correction if that's the
 case!

 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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] rotationX not working In Flex actionscript Projects

2009-04-14 Thread Omar Fouad
There is no compiler settings except to the html wrapper file that I don't
use...

On Sun, Apr 12, 2009 at 2:29 AM, Muzak p.ginnebe...@telenet.be wrote:

 In FlexBuilder, in the Project properties (right click the project select
 properties), set the required Flash Player to 10 in the Flex Compiler tab.
 By default FlexBuilder compiles to Flash 9, which doesn't have the new 3D
 stuff.

 regards,
 Muzak

 - Original Message - From: Omar Fouad omarfouad@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Saturday, April 11, 2009 10:51 PM
 Subject: [Flashcoders] rotationX not working In Flex actionscript Projects


 Hi all,

 Since I switched to Mac now, I am using Flex Builder for my ActionScript
 Projects, I've got the latest Flex SDK 3.2 (I think that is the latest) and
 edited the flex_config xml file. I've added the playerglobal swc file to
 the
 build path of Flex for Auto Completion and all.

 Here is the problem: it seems that the specific FP 10 new properties as .z,
 .rotationX, .rotationY and .rotationZ are not recognized by the compiler.

 mc.rotationX = 45; // this is not working as it is ignored.

 Using Tweener:
 Tweener.addTween(mc, { rotationX:45, time:1}); // throws Property
 rotationX
 not found on [object name ]  and there is no default value

 Is there anything wrong I am doing in flex?

 Thanks for the support.

 Cordially.

 --
 Omar M. Fouad - Adobe Flashâ„¢ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net


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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] rotationX not working In Flex actionscript Projects

2009-04-14 Thread Omar Fouad
Thanks Muzak. I'll feedback soon..

Cheerz

On Tue, Apr 14, 2009 at 4:44 PM, Muzak p.ginnebe...@telenet.be wrote:

 This might do the trick as well:

 In the project properties select Flex Build Path - Library Path.
 Select the playerglobal.swc and remove it.
 Select Add SWC.. and browse to frameworks/libs/player/10/playerglobal.swc
 inside the 3.2 SDK directory and click OK.

 That's probably what FB automatically does when you change the required FP
 version :)

 regards,
 Muzak

 - Original Message - From: Omar Fouad omarfouad@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, April 14, 2009 1:42 PM
 Subject: Re: [Flashcoders] rotationX not working In Flex actionscript
 Projects



 There is no compiler settings except to the html wrapper file that I don't
 use...

 On Sun, Apr 12, 2009 at 2:29 AM, Muzak p.ginnebe...@telenet.be wrote:

  In FlexBuilder, in the Project properties (right click the project select
 properties), set the required Flash Player to 10 in the Flex Compiler tab.
 By default FlexBuilder compiles to Flash 9, which doesn't have the new 3D
 stuff.

 regards,
 Muzak

 - Original Message - From: Omar Fouad omarfouad@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Saturday, April 11, 2009 10:51 PM
 Subject: [Flashcoders] rotationX not working In Flex actionscript Projects


 Hi all,

 Since I switched to Mac now, I am using Flex Builder for my ActionScript
 Projects, I've got the latest Flex SDK 3.2 (I think that is the latest)
 and
 edited the flex_config xml file. I've added the playerglobal swc file to
 the
 build path of Flex for Auto Completion and all.

 Here is the problem: it seems that the specific FP 10 new properties as
 .z,
 .rotationX, .rotationY and .rotationZ are not recognized by the compiler.

 mc.rotationX = 45; // this is not working as it is ignored.

 Using Tweener:
 Tweener.addTween(mc, { rotationX:45, time:1}); // throws Property
 rotationX
 not found on [object name ]  and there is no default value

 Is there anything wrong I am doing in flex?

 Thanks for the support.

 Cordially.

 --
 Omar M. Fouad - Adobe Flashâ„¢ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net


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




 --
 Omar M. Fouad - Adobe Flashâ„¢ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] rotationX not working In Flex actionscript Projects

2009-04-11 Thread Omar Fouad
Hi all,

Since I switched to Mac now, I am using Flex Builder for my ActionScript
Projects, I've got the latest Flex SDK 3.2 (I think that is the latest) and
edited the flex_config xml file. I've added the playerglobal swc file to the
build path of Flex for Auto Completion and all.

Here is the problem: it seems that the specific FP 10 new properties as .z,
.rotationX, .rotationY and .rotationZ are not recognized by the compiler.

mc.rotationX = 45; // this is not working as it is ignored.

Using Tweener:
Tweener.addTween(mc, { rotationX:45, time:1}); // throws Property rotationX
not found on [object name ]  and there is no default value

Is there anything wrong I am doing in flex?

Thanks for the support.

Cordially.

-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Zend AMF Framework Paramaters error

2009-03-22 Thread Omar Fouad
I tried sending an objec and I also tried sending a single array but no use!
:(

On Sun, Mar 22, 2009 at 3:16 AM, Muzak p.ginnebe...@telenet.be wrote:

 Haven't had a chance to look at the Zend remoting implementation yet.
 Have you tried sending an object ?

 var params:Object = {path:images/, ba:ba};
 NC.call(PHPClass.function, Res, params);

 Not sure about the syntax to retrieve those in PHP, as I don't do PHP :)

 // wild guess
 function writeJpg($args) {
   $args[path];
   $args[ba];
 }

 regards,
 Muzak

 - Original Message - From: Omar Fouad omarfouad@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Saturday, March 21, 2009 5:50 PM
 Subject: [Flashcoders] Zend AMF Framework Paramaters error



 Hello,

 I've got some trouble with the Zend Framework (AMF) and ActionScript, in
 sending multiple parameter to a PHP Function.
 The user loads an image file from the local hard drive using FileReference
 into the Flash Movie than I take the Image's Bitmap Data, encode it to with
 JPGEncoder (CoreLib), get the byteArray of it and pass it to a PHP function
 though a NetConnection Instance like this.

 Main.as -

 //ba is my byteArray from the encoder

 var NC:NetConnection = new NetConnection();
 var Res:Reponder = new Responder(onSuccess, onError);

 NC.connect(zend_amf_server);
 NC.call(PHPClass.function, Res, ba);
 [...]

 PHPClass.php -

 function __construct() {...} //the construct code here

 function writeJpg( $byteArray ) {
 $fp = fopen('data.jpg', 'wb');
   fwrite( $fp, implode(,$byteArray));
   fclose( $fp );
   return File Saved;
 }

 This work like a charm, the file is created I get the response. I tried to
 pass another argument to the function, a path string that holds the name of
 the folder to be created like this.

 Main.as -
 var path:String = images/
 NC.call(PHPClass.function, Res, ba, path);

 PhpClass.php -

 function writeJpg( $byteArray, $path ) {
 $fp = fopen($path.'data.jpg', 'wb');
   fwrite( $fp, implode(,$byteArray));
   fclose( $fp );
   return File Saved;
 }

 Apparently this does not work. in the response I get this message:
 Error #2044: Unhandled NetStatusEvent:. level=error,
 code=NetConnection.Call.BadVersion
   at fileUploader_fla::MainTimeline/onSave() the image file is corrupted
 and no folder is created.

 Apparently the NC.call, cannot pass more than one parameter. I've been
 searching about this problem on the web and I read that this is a bug in an
 older version of zendAMF, I've downloaded the latest release, restarted by
 MAMP server, but I still have the same problem...

 How can this be achieved?

 Thanks.

 --
 Omar M. Fouad - Adobe Flashâ„¢ Platform Developer

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




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Zend AMF Framework Paramaters error

2009-03-21 Thread Omar Fouad
Hello,

I've got some trouble with the Zend Framework (AMF) and ActionScript, in
sending multiple parameter to a PHP Function.
The user loads an image file from the local hard drive using FileReference
into the Flash Movie than I take the Image's Bitmap Data, encode it to with
JPGEncoder (CoreLib), get the byteArray of it and pass it to a PHP function
though a NetConnection Instance like this.

Main.as -

//ba is my byteArray from the encoder

var NC:NetConnection = new NetConnection();
var Res:Reponder = new Responder(onSuccess, onError);

NC.connect(zend_amf_server);
NC.call(PHPClass.function, Res, ba);
[...]

PHPClass.php -

function __construct() {...} //the construct code here

function writeJpg( $byteArray ) {
  $fp = fopen('data.jpg', 'wb');
fwrite( $fp, implode(,$byteArray));
fclose( $fp );
return File Saved;
}

This work like a charm, the file is created I get the response. I tried to
pass another argument to the function, a path string that holds the name of
the folder to be created like this.

Main.as -
var path:String = images/
NC.call(PHPClass.function, Res, ba, path);

PhpClass.php -

function writeJpg( $byteArray, $path ) {
  $fp = fopen($path.'data.jpg', 'wb');
fwrite( $fp, implode(,$byteArray));
fclose( $fp );
return File Saved;
}

Apparently this does not work. in the response I get this message:
Error #2044: Unhandled NetStatusEvent:. level=error,
code=NetConnection.Call.BadVersion
at fileUploader_fla::MainTimeline/onSave() the image file is corrupted
and no folder is created.

Apparently the NC.call, cannot pass more than one parameter. I've been
searching about this problem on the web and I read that this is a bug in an
older version of zendAMF, I've downloaded the latest release, restarted by
MAMP server, but I still have the same problem...

How can this be achieved?

Thanks.

-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Zend AMF Framework Paramaters error

2009-03-21 Thread Omar Fouad
No Ideas yet?

On Sat, Mar 21, 2009 at 6:50 PM, Omar Fouad omarfouad@gmail.com wrote:

 Hello,

 I've got some trouble with the Zend Framework (AMF) and ActionScript, in
 sending multiple parameter to a PHP Function.
 The user loads an image file from the local hard drive using FileReference
 into the Flash Movie than I take the Image's Bitmap Data, encode it to with
 JPGEncoder (CoreLib), get the byteArray of it and pass it to a PHP function
 though a NetConnection Instance like this.

 Main.as -

 //ba is my byteArray from the encoder

 var NC:NetConnection = new NetConnection();
 var Res:Reponder = new Responder(onSuccess, onError);

 NC.connect(zend_amf_server);
 NC.call(PHPClass.function, Res, ba);
 [...]

 PHPClass.php -

 function __construct() {...} //the construct code here

 function writeJpg( $byteArray ) {
   $fp = fopen('data.jpg', 'wb');
 fwrite( $fp, implode(,$byteArray));
 fclose( $fp );
 return File Saved;
 }

 This work like a charm, the file is created I get the response. I tried to
 pass another argument to the function, a path string that holds the name of
 the folder to be created like this.

 Main.as -
 var path:String = images/
 NC.call(PHPClass.function, Res, ba, path);

 PhpClass.php -

 function writeJpg( $byteArray, $path ) {
   $fp = fopen($path.'data.jpg', 'wb');
 fwrite( $fp, implode(,$byteArray));
 fclose( $fp );
 return File Saved;
 }

 Apparently this does not work. in the response I get this message:
 Error #2044: Unhandled NetStatusEvent:. level=error,
 code=NetConnection.Call.BadVersion
 at fileUploader_fla::MainTimeline/onSave() the image file is corrupted
 and no folder is created.

 Apparently the NC.call, cannot pass more than one parameter. I've been
 searching about this problem on the web and I read that this is a bug in an
 older version of zendAMF, I've downloaded the latest release, restarted by
 MAMP server, but I still have the same problem...

 How can this be achieved?

 Thanks.

 --
 Omar M. Fouad - Adobe Flash™ Platform Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Adobe Flash™ Platform Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Printing table receipt with Flex

2009-02-28 Thread Omar Fouad
Thanks all for the replies... However a datagrid would not be a good idea
because it would show scrollbars if any, also what is printed it is not
shown into the appliaction...
Cor your Idea is good I'll try that.

Cheerz

On Fri, Feb 27, 2009 at 11:41 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 Why not treat the textfield as a cell with absolute positioning?  They have
 their own x,y,width,height, along with visual styles, so why not just define
 them?

 Just look at the format of the object you want printed and separate them
 into their elements.

 I also wanted to mention that you don't have to convert to a bitmap, if you
 want to print with vectors, as is the default, you can just use PrintJob;
 yet, remember to give your object a 100% opaque coloured background of its
 own, using the drawing API, or you may run into problems with black printing
 in areas that are supposed to be transparent.

 PrintJobOptions (if you want to print as bitmap)
 PrintJobOrientation  (landscape of portrait)
 PrintJob (for everything else related to the pj such as addPage)

 I don't mean to be a snot and way you should check the livedocs; yet, these
 are a few useful resources:

 http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0332.html#wp127671

 http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0334.html

 http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e25.html

 http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d8f.html





 Muzak wrote:

 Dump them in a datagrid, print the datagrid..


 - Original Message - From: Omar Fouad omarfouad@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Friday, February 27, 2009 5:54 AM
 Subject: Re: [Flashcoders] Printing table receipt with Flex


  Thanks everybody for the replies... I've been thinking about rendering an
 HTML table into a TextField inside a sprite... But as far as I know,
 TextFields in flash does not support HTML tables.

 What else is recomended?


 ___
 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




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Printing table receipt with Flex

2009-02-26 Thread Omar Fouad
Hi all,I am working on a POS application in AIR and SQLite, and I am stuck
with this little problem. I need to send to a printer, some data from an
array and create a table.. in other words, I need to print a receipt.

Is there any way to create dinamically a table and fill it with strings and
print it out?

Thanks in advance

-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Printing table receipt with Flex

2009-02-26 Thread Omar Fouad
Thanks everybody for the replies... I've been thinking about rendering an
HTML table into a TextField inside a sprite... But as far as I know,
TextFields in flash does not support HTML tables.

What else is recomended?

On Thu, Feb 26, 2009 at 7:52 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 You beat me to it.  I was going to say that he could lat it out someway
 like outputing it all as html inside an mc like eric said,  convert the mc
 to a bitmap like you suggested, and then use printJob();

 Here is a decent tutorial...


 http://blog.tikikitchen.com/2008/04/18/printing-in-flash-in-10-simple-steps




 Glen Pike wrote:

 Omar Fouad wrote:

 Hi all,I am working on a POS application in AIR and SQLite, and I am
 stuck
 with this little problem. I need to send to a printer, some data from an
 array and create a table.. in other words, I need to print a receipt.

 Is there any way to create dinamically a table and fill it with strings
 and
 print it out?

 Thanks in advance



 Hi,

   Not sure about the dynamic table, but you can use the PrintJob class in
 ActionScript.  The best thing to do with this is to create a MovieClip the
 size of the thing to print and put a Bitmap inside it.  Do a grab of your
 Receipt table / MovieClip into the bitmap and use the PrintJob to print -
 this gets around problems with vector vs bitmap in printing because you are
 always printing a bitmap.  As long as you have a way of laying out your
 receipt you can print it from AS if you like...

   Glen
 ___
 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




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] orkut - Invitation to join from Omar Fouad

2009-02-12 Thread Omar Fouad



You have been invited to join Omar Fouad's (omarfouad@gmail.com)  
network of friends at orkut.


To join orkut click on the following link:

http://www.orkut.com/Join.aspx?id=4993EB61DCE44931

Having problems? If you get an error when you try to accept this  
invitation, you may need to copy and paste this URL into a new browser  
window.


* * *

orkut is a community of friends and trusted acquaintances that connects  
individuals through a social network that grows person by person.


With orkut, you can catch up with old friends, make new acquaintances  
through people you trust, and maybe even find that certain someone you've  
been looking for everywhere.


orkut helps you organize and attend events, join communities that share  
your interests, and find partners to participate in the activities you most  
enjoy.


* * *

If you're already an orkut member, make sure that the email address at  
which you received this note is entered into your orkut profile.  That way,  
you'll automatically be connected to all of your friends.


This invitation was sent on behalf of Omar Fouad (omarfouad@gmail.com).

You can block all orkut users from sending you email by visiting:

http://www.orkut.com/Block.aspx
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-13 Thread Omar Fouad
Well I would like you to contribute on the Application project if you don't
mind.

On Mon, Jan 12, 2009 at 11:19 PM, Ian Thomas i...@eirias.net wrote:

 Screenweaver is Neko. :-) It just happens to host an instance of the
 Flash Player, and so can run AS3/SWFs inside itself.

 You can't write a socket server in the Screenweaver AS3 API - however,
 you can write one in the host (neko) app, and talk to it via the AS3
 API you've pointed out, Anthony.

 And yes - as I already said, I'm not advocating this as a solution to
 Omar's problem per se - I was simply clarifying haXe's capabilities.

 Cheers,
   Ian

 (Who has a fair few Screenweaver apps kicking around...)

 On Mon, Jan 12, 2009 at 6:09 PM, Anthony Pace anthony.p...@utoronto.ca
 wrote:
  You can also do it if it is written in as3 using the screenweaver api.
 
  http://screenweaver.org/doku.php?id=docs:as_api
 
  I would suggest learning more about screenweaver and how it works with
 the
  neko vm; however, in this case, I think it is a bit of bloat when all he
  needed was a socket server.
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Omar Fouad
Ian I think it is too late, but I would like to know details about the
HaXe/neko approach.

By the way ppl, I've finished an AIR chat application, that uses the SQLite
way. I've posted it on my blog minutes ago here
http://omar-fouad.net/blog/?p=99

Thanks for the support and replies everyone :)

On Mon, Jan 12, 2009 at 5:20 PM, Ian Thomas i...@eirias.net wrote:

 You could write a socket server in haXe/neko rather than haXe/SWF.

 Ian

 On Mon, Jan 12, 2009 at 12:58 PM, Weyert de Boer w...@innerfuse.biz
 wrote:
  How do you mean? HaXe will still have the same limitations in the Flash
  Player/AIR: no server sockets. Of course, you could write the helper
  applications in any language of your choice. I only would prefer some
  language which can convert to native executables for OSX, Windows and
 maybe
  even Linux...
 
  Couldn't HaXe a good candidate for a solution?
 
  Omar Fouad wrote:
 
  Hi all,
 
  I wanted to ask if there is a way to let two AIR applications connect
 to
  each other through a home network (the same AIR application running on
  different computers) by using sockets or any other method.
 
  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 mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Omar Fouad
Wait a minute I don't get you. It is possible to open the Application's
sockets with HaXe?

On Mon, Jan 12, 2009 at 6:52 PM, Weyert de Boer w...@innerfuse.biz wrote:


  Absolutely. I was merely correcting this line:


 HaXe will still have the same limitations in the Flash Player/AIR: no
 server sockets.


 Yes, I wasn't aware of that bit :-)

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




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-12 Thread Omar Fouad
HaXe and neko I mean

On Mon, Jan 12, 2009 at 7:24 PM, Omar Fouad omarfouad@gmail.com wrote:

 Wait a minute I don't get you. It is possible to open the Application's
 sockets with HaXe?


 On Mon, Jan 12, 2009 at 6:52 PM, Weyert de Boer w...@innerfuse.biz wrote:


  Absolutely. I was merely correcting this line:


 HaXe will still have the same limitations in the Flash Player/AIR: no
 server sockets.


 Yes, I wasn't aware of that bit :-)

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




 --
 Omar M. Fouad - ActionScript Developer
 www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-11 Thread Omar Fouad
Thanks Guys for the Replies...

OK I agree with all this, but do you believe I hadn't thought about using an
online server and save the headache? As I said before, it is an option that
will let the users of an AIR POS application (that also stores and read data
in a database shared on the network and it works for 6 months now like a
charm) communicate to each other. The real challenge here is the ability to
do this offline. I don't want an Internet connection to do this.

Plus I don't see the security a big issue in this case. I don't need
security. I clean the tables every 24 hours (and compact). There are no
plenty of users. I don't think there will be more than 5 computers running
it at the same time. I've been thinking about using a PC running Apache and
MYSQL locally and let all the computers connect to it (not sure if this is
gonna work) but come on, SQLite is amazing in my opinion. I've been testing
it since AIR was released and It IS reliable. Of course It is dangerous when
accessed by many clients but, as long as the client amount is resoanable,
and the code is well written, nothing is impossible.


Cheers.

On Sun, Jan 11, 2009 at 10:24 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 Exactly.


 Nate Beck wrote:

 Dave, I was thinking the same thing.
 After reading through this thread again, I realized that this client to
 client thing can be handled using a simple server.  And there are already
 many open-source solutions out there that will accomplish this behavior.
  Red5, WebORB and BlazeDS all support concurrent connections and passing
 data from client to client.

 If you're already depending on the network for SQLite access, why not just
 host some server solution on said network?

 Cheers,
 Nate

 On Sat, Jan 10, 2009 at 9:44 PM, Dave Watts dwa...@figleaf.com wrote:



 I apologize if I've missed something that anyone has posted in this
 thread.



 Insecurity? A SQLite database is ment to be written by clients... of


 course


 it is not like a server database, with users, privileges and so on. But


 it


 still does the job.


 I don't think security is the main problem here, but rather the lack
 of concurrency control. SQLite is meant to be a single-user database,
 and has no multi-user concurrent capability.

 Since AIR can talk to remote web services, why not just set up an
 application server somewhere and let your AIR apps talk to that? Let
 your app server (and/or its backend database) handle concurrency
 control for you.

 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




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-11 Thread Omar Fouad
I was about to do this at the very beginning. But my boss is not OK with
it... So now I got two alternatives. Or I do it with SQLite, or I get fired
:)

By the way I am working on it with SQLIte and it works better than I
expected.. At the end of the day, It's just a job for the company I work at.


Thanks for the advices guys :D

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

 Since you need the session control to be centralized by one administrative
 computer in the internet Cafe, I would suggest the AIR to AMP(apache mysql
 php...cause it's free) server method; yet, that is my opinion and we are all
 free to differ in opinion.  If you want to use your method, you are giving
 yourself more work, to get it working properly, than it is worth; yet,
 again, this is only my opinion.

 Sever less message switching using shared files has been around for years.
  In fact I remember back in 2000 with flash 5 when I was still in my teens
 trying out a method just like this and getting it to work with XML; yet,
 realizing there were better ways I moved on.


 Omar Fouad wrote:

 Thanks Guys for the Replies...

 OK I agree with all this, but do you believe I hadn't thought about using
 an
 online server and save the headache? As I said before, it is an option
 that
 will let the users of an AIR POS application (that also stores and read
 data
 in a database shared on the network and it works for 6 months now like a
 charm) communicate to each other. The real challenge here is the ability
 to
 do this offline. I don't want an Internet connection to do this.

 Plus I don't see the security a big issue in this case. I don't need
 security. I clean the tables every 24 hours (and compact). There are no
 plenty of users. I don't think there will be more than 5 computers running
 it at the same time. I've been thinking about using a PC running Apache
 and
 MYSQL locally and let all the computers connect to it (not sure if this is
 gonna work) but come on, SQLite is amazing in my opinion. I've been
 testing
 it since AIR was released and It IS reliable. Of course It is dangerous
 when
 accessed by many clients but, as long as the client amount is resoanable,
 and the code is well written, nothing is impossible.


 Cheers.

 On Sun, Jan 11, 2009 at 10:24 AM, Anthony Pace anthony.p...@utoronto.ca
 wrote:



 Exactly.


 Nate Beck wrote:



 Dave, I was thinking the same thing.
 After reading through this thread again, I realized that this client to
 client thing can be handled using a simple server.  And there are
 already
 many open-source solutions out there that will accomplish this behavior.
  Red5, WebORB and BlazeDS all support concurrent connections and passing
 data from client to client.

 If you're already depending on the network for SQLite access, why not
 just
 host some server solution on said network?

 Cheers,
 Nate

 On Sat, Jan 10, 2009 at 9:44 PM, Dave Watts dwa...@figleaf.com wrote:





 I apologize if I've missed something that anyone has posted in this
 thread.





 Insecurity? A SQLite database is ment to be written by clients... of




 course




 it is not like a server database, with users, privileges and so on.
 But




 it




 still does the job.




 I don't think security is the main problem here, but rather the lack
 of concurrency control. SQLite is meant to be a single-user database,
 and has no multi-user concurrent capability.

 Since AIR can talk to remote web services, why not just set up an
 application server somewhere and let your AIR apps talk to that? Let
 your app server (and/or its backend database) handle concurrency
 control for you.

 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




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-10 Thread Omar Fouad
Yes Pablo, that is an issue that I am being thinking about today. I want to
enable user presence detection to the client.
I've been thinking to let each client logged to the chat, send it's id to
a table called ActiveUsers. When the user Closes the Application, the row is
deleted. At the same time, the application intervally queries the table to
see what users are online. This is a good Idea, but there is a problem. What
if the connection is cut, or the application is closed by an end task
command or by the system? How would I update the table and delete the user
from it?



On Sat, Jan 10, 2009 at 2:40 PM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 I think you could do take the same approach as in an http chat system
 (i.e., not a real chat solution but I've seen it used when data push from
 the server was not available thru FMS, Red5 or other)

 You have at a minumun 2 tables: users and messages.

 When the user logs in, it's inserted into the users table and an id (such
 as
 an autoincremental) is returned for using in further requests.

 In the messages table you have these fields:
 messageID
 senderID
 recipientID
 delivered.

 Have each client polling the DD.BB http://dd.bb/ at a regular (and
 reasonable interval) to get a list of available users (you can pass the
 data
 you need here, but the only realy necessary part is the userID).

 Each time a client polls the DD.BB http://dd.bb/. it also asks for
 pending
 messages (which could be a text message or whatever you need; not sure if
 SQLite supports BLOB fields, but if it does you could store serialized AS
 objects, I guess).

 A pending message is just any message that has the user's userID and the
 delivered flag set to 0. If there's any matching that criteria, return it
 to
 the user.

 When a client wants to send a message, it does an insert in the messages
 tables, passing the recipient userID (which you can grab from the users
 list
 you already have), it's own ID and a message.

 You could also put a timestamp in each record (both in users and messages
 tables) an every time a user logs in, delete any record whose timestamp is
 = 24 hs old.

 For many scenarios, this would a problematic approach (you don't have a
 central server managing users interation, too much resposibility on the
 client, etc), but under the circumstances, I think it should work fine.

 Cheers
 Juan Pablo Califano




 2009/1/10, Anthony Pace anthony.p...@utoronto.ca: - Ocultar texto citado
 -

  If you have ever run into problems when writing a file on the network
 when
  someone else is trying you will know what I mean, and now just imagine
 that
  you have an app requesting a write multiple times per second...  there is
 no
  reliance.
 
  Nifty solution for the short term; yet, not something that can be used
  reliably.
 
  I might be wrong; yet, I doubt it.
 
  scenario 1...  user1 opens the db file to put in their message; yet, user
 2
  opened the file for writing just a milisecond before me, but it took your
  request for a write longer to reach the file server than mine did
 
  this would result in user1's message being overwritten
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-10 Thread Omar Fouad
Yeah that is what I wanted to do... But as you said I have to tune the
Timings.

I'll try it out and let you know..

Thanks for the help.

Cheers.

On Sat, Jan 10, 2009 at 11:11 PM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 Well, I think your're facing conceptually the same problem that you have in
 php/apache with sessions.

 You have a stateless environment, where each request is handled by the
 server, the response is sent and all state is lost. In php, session data is
 stored in file by default (but could be stored in a DD.BB). When the
 client
 opens a session, the server generates and returns a piece of data that will
 allow the client to identify himself in following requests. But, since the
 server itself doesn't track the client, you have to set some expiration
 time
 for the session.

 Maybe you could do something similar.

 When a logged-in user sends a request, you store a lastActivity timestamp
 in
 the database (you can add a field in the activeUser table, since you
 already
 have it). At some point, you check that table and remove all users whose
 lastActivity field is older than some threshold value.

 There are a number things you should tune if you follow this path. For
 instance, you have to decide when to store the timestamp and when to check
 for unconnected users. If it doesn't hurt performance (and if you have a
 limited number of users, I think it wouldn't) maybe you could store the
 timestamp each time the client polls the DD.BB, and check for unconnected
 users at the same time. In that case, your time threshold could be small.

 Assuming, for instance, that you poll the DD.BB. every 5 seconds, you can
 consider disconnected a client that doesn't show activity in, say, the last
 20 seconds (I think it's a safe ratio, but again, tuning this would require
 testing the actual thing).

 Another option would be checking for disconnected clients with a longer
 interval and using a bigger threshold to consider a user disconnected. It's
 a trade-off. You'd lose accuracy, but the DD.BB would be less stressed
 (consider that each client will be performing these queries).


 Cheers
 Juan Pablo Califano

 2009/1/10, Omar Fouad omarfouad@gmail.com:

  Yes Pablo, that is an issue that I am being thinking about today. I want
 to
  enable user presence detection to the client.
  I've been thinking to let each client logged to the chat, send it's id
 to
  a table called ActiveUsers. When the user Closes the Application, the row
  is
  deleted. At the same time, the application intervally queries the table
 to
  see what users are online. This is a good Idea, but there is a problem.
  What
  if the connection is cut, or the application is closed by an end task
  command or by the system? How would I update the table and delete the
 user
  from it?
 
 
 
  On Sat, Jan 10, 2009 at 2:40 PM, Juan Pablo Califano 
  califa010.flashcod...@gmail.com wrote:
 
   I think you could do take the same approach as in an http chat system
   (i.e., not a real chat solution but I've seen it used when data push
 from
   the server was not available thru FMS, Red5 or other)
  
   You have at a minumun 2 tables: users and messages.
  
   When the user logs in, it's inserted into the users table and an id
 (such
   as
   an autoincremental) is returned for using in further requests.
  
   In the messages table you have these fields:
   messageID
   senderID
   recipientID
   delivered.
  
   Have each client polling the DD.BB http://dd.bb/ at a regular (and
   reasonable interval) to get a list of available users (you can pass the
   data
   you need here, but the only realy necessary part is the userID).
  
   Each time a client polls the DD.BB http://dd.bb/. it also asks for
   pending
   messages (which could be a text message or whatever you need; not sure
 if
   SQLite supports BLOB fields, but if it does you could store serialized
 AS
   objects, I guess).
  
   A pending message is just any message that has the user's userID and
 the
   delivered flag set to 0. If there's any matching that criteria, return
 it
   to
   the user.
  
   When a client wants to send a message, it does an insert in the
 messages
   tables, passing the recipient userID (which you can grab from the users
   list
   you already have), it's own ID and a message.
  
   You could also put a timestamp in each record (both in users and
 messages
   tables) an every time a user logs in, delete any record whose timestamp
  is
   = 24 hs old.
  
   For many scenarios, this would a problematic approach (you don't have a
   central server managing users interation, too much resposibility on the
   client, etc), but under the circumstances, I think it should work fine.
  
   Cheers
   Juan Pablo Califano
  
  
  
  
   2009/1/10, Anthony Pace anthony.p...@utoronto.ca: - Ocultar texto
  citado
   -
  
If you have ever run into problems when writing a file on the network
   when
someone else is trying you will know

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-10 Thread Omar Fouad
Yeah Juan I agree with you.

On Sat, Jan 10, 2009 at 11:58 PM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 Anthony, I'm curious as to why you consider using a raw file any better
 than
 using the SQLite engine (which uses a single file as a datastore, yes, but
 provides a higher level and way easier access to the data).

 The client has indeed a lot of responsibility, but isn't it the same (or
 perhaps even worse) if you use bare files on a network share? The client
 talks directly with the data base and in a web app, this would be a very
 bad
 decision. But given that this would be deployed in a LAN, as an Air app
 (which natively supports connecting to a SQLite database), I'd say it's
 probably not that bad, all in all.

 Cheers
 Juan Pablo Califano

 2009/1/10, Anthony Pace anthony.p...@utoronto.ca:
 
  This is just a bad way to do this.  The client becomes responsible for
  everything, and that leads to security issues like crazy.
 
  If this is for professional use, as you have stated multiple times, I
 would
  say find a better way.
 
  Write delay based on file stamping, with all the clients agreeing to work
  based on the same parameters, is the only way to make this work even
  marginally well in a production environment.
 
  If file has an id and range of time associated to it that has not lapsed,
  and my id is not the same, I cannot write.
 
 
  Omar Fouad wrote:
 
  Yes Pablo, that is an issue that I am being thinking about today. I want
  to
  enable user presence detection to the client.
  I've been thinking to let each client logged to the chat, send it's id
  to
  a table called ActiveUsers. When the user Closes the Application, the
 row
  is
  deleted. At the same time, the application intervally queries the table
 to
  see what users are online. This is a good Idea, but there is a problem.
  What
  if the connection is cut, or the application is closed by an end task
  command or by the system? How would I update the table and delete the
 user
  from it?
 
 
 
  On Sat, Jan 10, 2009 at 2:40 PM, Juan Pablo Califano 
  califa010.flashcod...@gmail.com wrote:
 
 
 
  I think you could do take the same approach as in an http chat system
  (i.e., not a real chat solution but I've seen it used when data push
 from
  the server was not available thru FMS, Red5 or other)
 
  You have at a minumun 2 tables: users and messages.
 
  When the user logs in, it's inserted into the users table and an id
 (such
  as
  an autoincremental) is returned for using in further requests.
 
  In the messages table you have these fields:
  messageID
  senderID
  recipientID
  delivered.
 
  Have each client polling the DD.BB http://dd.bb/ http://dd.bb/ at
 a
  regular (and
  reasonable interval) to get a list of available users (you can pass the
  data
  you need here, but the only realy necessary part is the userID).
 
  Each time a client polls the DD.BB http://dd.bb/ http://dd.bb/. it
  also asks for
  pending
  messages (which could be a text message or whatever you need; not sure
 if
  SQLite supports BLOB fields, but if it does you could store serialized
 AS
  objects, I guess).
 
  A pending message is just any message that has the user's userID and
 the
  delivered flag set to 0. If there's any matching that criteria, return
 it
  to
  the user.
 
  When a client wants to send a message, it does an insert in the
 messages
  tables, passing the recipient userID (which you can grab from the users
  list
  you already have), it's own ID and a message.
 
  You could also put a timestamp in each record (both in users and
 messages
  tables) an every time a user logs in, delete any record whose timestamp
  is
 
 
  = 24 hs old.
 
 
  For many scenarios, this would a problematic approach (you don't have a
  central server managing users interation, too much resposibility on the
  client, etc), but under the circumstances, I think it should work fine.
 
  Cheers
  Juan Pablo Califano
 
 
 
 
  2009/1/10, Anthony Pace anthony.p...@utoronto.ca: - Ocultar texto
  citado
  -
 
 
 
  If you have ever run into problems when writing a file on the network
 
 
  when
 
 
  someone else is trying you will know what I mean, and now just imagine
 
 
  that
 
 
  you have an app requesting a write multiple times per second...  there
  is
 
 
  no
 
 
  reliance.
 
  Nifty solution for the short term; yet, not something that can be used
  reliably.
 
  I might be wrong; yet, I doubt it.
 
  scenario 1...  user1 opens the db file to put in their message; yet,
  user
 
 
  2
 
 
  opened the file for writing just a milisecond before me, but it took
  your
  request for a write longer to reach the file server than mine did
 
  this would result in user1's message being overwritten
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-10 Thread Omar Fouad
Insecurity? A SQLite database is ment to be written by clients... of course
it is not like a server database, with users, privileges and so on. But it
still does the job.
We are talking about an AIR application that does not offer much
functionality as much as some powerful desktop frameworks such .NET. But I
like the idea to do with AIR things that cannot be done natively. It is a
kind of self satisfaction and in some cases, loyality.

On Sun, Jan 11, 2009 at 12:13 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 And did I mention unreliable?


 Anthony Pace wrote:

 Well of course you do, he seems to be backing up your bad method.  And
 again... the DB in your scenario is a file on the network being written and
 over written by each client; thus, as I stated, very insecure.

 Omar Fouad wrote:

 Yeah Juan I agree with you.

 On Sat, Jan 10, 2009 at 11:58 PM, Juan Pablo Califano 
 califa010.flashcod...@gmail.com wrote:



 Anthony, I'm curious as to why you consider using a raw file any better
 than
 using the SQLite engine (which uses a single file as a datastore, yes,
 but
 provides a higher level and way easier access to the data).

 The client has indeed a lot of responsibility, but isn't it the same (or
 perhaps even worse) if you use bare files on a network share? The client
 talks directly with the data base and in a web app, this would be a very
 bad
 decision. But given that this would be deployed in a LAN, as an Air app
 (which natively supports connecting to a SQLite database), I'd say it's
 probably not that bad, all in all.

 Cheers
 Juan Pablo Califano

 2009/1/10, Anthony Pace anthony.p...@utoronto.ca:


 This is just a bad way to do this.  The client becomes responsible for
 everything, and that leads to security issues like crazy.

 If this is for professional use, as you have stated multiple times, I


 would


 say find a better way.

 Write delay based on file stamping, with all the clients agreeing to
 work
 based on the same parameters, is the only way to make this work even
 marginally well in a production environment.

 If file has an id and range of time associated to it that has not
 lapsed,
 and my id is not the same, I cannot write.


 Omar Fouad wrote:



 Yes Pablo, that is an issue that I am being thinking about today. I
 want
 to
 enable user presence detection to the client.
 I've been thinking to let each client logged to the chat, send it's
 id
 to
 a table called ActiveUsers. When the user Closes the Application, the


 row


 is
 deleted. At the same time, the application intervally queries the
 table


 to


 see what users are online. This is a good Idea, but there is a problem.
 What
 if the connection is cut, or the application is closed by an end
 task
 command or by the system? How would I update the table and delete the


 user


 from it?



 On Sat, Jan 10, 2009 at 2:40 PM, Juan Pablo Califano 
 califa010.flashcod...@gmail.com wrote:





 I think you could do take the same approach as in an http chat
 system
 (i.e., not a real chat solution but I've seen it used when data push


 from


 the server was not available thru FMS, Red5 or other)

 You have at a minumun 2 tables: users and messages.

 When the user logs in, it's inserted into the users table and an id


 (such


 as
 an autoincremental) is returned for using in further requests.

 In the messages table you have these fields:
 messageID
 senderID
 recipientID
 delivered.

 Have each client polling the DD.BB http://dd.bb/ http://dd.bb/
 at


 a


 regular (and
 reasonable interval) to get a list of available users (you can pass
 the
 data
 you need here, but the only realy necessary part is the userID).

 Each time a client polls the DD.BB http://dd.bb/ http://dd.bb/.
 it
 also asks for
 pending
 messages (which could be a text message or whatever you need; not
 sure


 if


 SQLite supports BLOB fields, but if it does you could store serialized


 AS


 objects, I guess).

 A pending message is just any message that has the user's userID and


 the


 delivered flag set to 0. If there's any matching that criteria, return


 it


 to
 the user.

 When a client wants to send a message, it does an insert in the


 messages


 tables, passing the recipient userID (which you can grab from the users
 list
 you already have), it's own ID and a message.

 You could also put a timestamp in each record (both in users and


 messages


 tables) an every time a user logs in, delete any record whose timestamp
 is




 = 24 hs old.




 For many scenarios, this would a problematic approach (you don't have
 a
 central server managing users interation, too much resposibility on
 the
 client, etc), but under the circumstances, I think it should work
 fine.

 Cheers
 Juan Pablo Califano




 2009/1/10, Anthony Pace anthony.p...@utoronto.ca: - Ocultar texto
 citado
 -





 If you have ever run into problems when writing a file on the
 network




 when




 someone else is trying you will know what I mean, and now

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-10 Thread Omar Fouad
And why problematic on Macs?

On Sun, Jan 11, 2009 at 12:56 AM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 As far as I know, SQLite uses the OS file locking facilities (which do seem
 to be problematic in Macs). Anyway, I'm not saying this is the most robust
 possible solution. I'm just saying that given the circumstances, it could
 be
 good enough.

 Cheers
 Juan Pablo Califano

 2009/1/10, Anthony Pace anthony.p...@utoronto.ca:
 
  Well the db is a raw file; thus,  I was referring to the db.
 
  If you look at my last few lines, I was trying to tell him how his
 system,
  in which the file can be written to by all clients, can only work even
  marginally well with a timed write delay; yet, nowhere did I say it was
 more
  secure.  In fact, if you look at my first line, I note that it is a bad
 way
  to do things, and is very insecure.
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Omar M. Fouad - ActionScript Developer
www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Hi all,

I wanted to ask if there is a way to let two AIR applications connect to
each other through a home network (the same AIR application running on
different computers) by using sockets or any other method.

Thanks.

-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Ok but I don't know Java...

On Fri, Jan 9, 2009 at 10:43 PM, Weyert de Boer w...@innerfuse.biz wrote:

 If so, the code should be available on Google Code somewhere.

 Hi all,

 I wanted to ask if there is a way to let two AIR applications connect to
 each other through a home network (the same AIR application running on
 different computers) by using sockets or any other method.

 Thanks.




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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
it is not a matter of languages... I could achieve the same usiing C# .NET
but the idea is that I wanna achieve it with actionscript... In .NET I can
connect to any application that listen to socket connections attempt from
another application anywhere on a network or internet.
All I want to do with AIR is to be able to send and receive strings or
binary data to/from two computer running the same AIR application.

Can I connect to an Air application using sockets? that is my question. Plus
I think it is too late learning Java now.. I would like to stick with the
Adobe Platform (loyal user...) :)

cheers

On Fri, Jan 9, 2009 at 11:23 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 that is mean but funny... What languages do you know?


 Nate Beck wrote:

 http://www.amazon.com/Head-First-Java-Kathy-Sierra/dp/0596009208
 Enjoy!

 :)

 On Fri, Jan 9, 2009 at 1:10 PM, Omar Fouad omarfouad@gmail.com
 wrote:



 Ok but I don't know Java...

 On Fri, Jan 9, 2009 at 10:43 PM, Weyert de Boer w...@innerfuse.biz
 wrote:



 If so, the code should be available on Google Code somewhere.



 Hi all,

 I wanted to ask if there is a way to let two AIR applications connect
 to
 each other through a home network (the same AIR application running on
 different computers) by using sockets or any other method.

 Thanks.





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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Can you be more clear please? :)

On Sat, Jan 10, 2009 at 12:06 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 If I didn't make myself clear, the only way to do this is with an
 intermediary server running on the system being connected to.



 Anthony Pace wrote:

 You need to have a server to connect to, and, from what I know (only what
 I have read), is that adobe purposefully decided to block this and other
 media related capabilities.  they don't want us creating streaming server
 capability that avoids the use of their com server.

 if you want these features... everyone is going to have to bug them...

 http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

 Nate Beck wrote:

 http://www.amazon.com/Head-First-Java-Kathy-Sierra/dp/0596009208
 Enjoy!

 :)

 On Fri, Jan 9, 2009 at 1:10 PM, Omar Fouad omarfouad@gmail.com
 wrote:



 Ok but I don't know Java...

 On Fri, Jan 9, 2009 at 10:43 PM, Weyert de Boer w...@innerfuse.biz
 wrote:



 If so, the code should be available on Google Code somewhere.



 Hi all,

 I wanted to ask if there is a way to let two AIR applications connect
 to
 each other through a home network (the same AIR application running on
 different computers) by using sockets or any other method.

 Thanks.





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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Guys when there are deadlines and a Boss bugging you 24/7 there is no time
to pick a book and learn a language definitely different from the language
you are being writing for years.

I've found another way to share information between two applications by the
way. It is not a new way, it is the traditional use of a local SQLite
databse file. That will help and I'll implement some Ideas I already have to
do what is needed. But please don't tell my boss :D

Cheers.

On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer w...@innerfuse.biz wrote:

 If you want to open server sockets with AIR. You need an extra application
 alongside your AIR application. This application then opens the listening or
 server socket and then acts as some sort of middleman or proxy for your AIR
 application by redirecting the traffic back and forth of the listening
 socket to the open connection of the AIR application to this middle man.
 Like:

   1. Start helper application
   2. Helper application opens AIR application after opening connection (or
 use SocektMonitor to monitor it instead)
   3. AIR application open client connection to Helper application
   4. Any incoming data into the listening socket should be forward to the
 socket connected from the AIR application

 Yours,
 Weyert

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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Antony I have already 3 computers connected to the Same SQLite shared file
on the network and it works like a charm.  :)

On Sat, Jan 10, 2009 at 1:54 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 SQLite won't connect to another computer on the lan though...

 Since you know c#, just replace where it says java with c# that is somewhat
 similar; however, I do completely understand this is sometimes easier said
 than done.


 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=



 Nate Beck wrote:

 Good to hear Omar! I hate nagging bosses.
 On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad@gmail.com
 wrote:



 Guys when there are deadlines and a Boss bugging you 24/7 there is no
 time
 to pick a book and learn a language definitely different from the
 language
 you are being writing for years.

 I've found another way to share information between two applications by
 the
 way. It is not a new way, it is the traditional use of a local SQLite
 databse file. That will help and I'll implement some Ideas I already have
 to
 do what is needed. But please don't tell my boss :D

 Cheers.

 On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer w...@innerfuse.biz
 wrote:



 If you want to open server sockets with AIR. You need an extra


 application


 alongside your AIR application. This application then opens the
 listening


 or


 server socket and then acts as some sort of middleman or proxy for your


 AIR


 application by redirecting the traffic back and forth of the listening
 socket to the open connection of the AIR application to this middle man.
 Like:

  1. Start helper application
  2. Helper application opens AIR application after opening connection


 (or


 use SocektMonitor to monitor it instead)
  3. AIR application open client connection to Helper application
  4. Any incoming data into the listening socket should be forward to the
 socket connected from the AIR application

 Yours,
 Weyert

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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Weyert, the SQLite file is stored somewhere in a full access shared folder.
Each AIR application connects to it, and performs sql statements without any
problem, as long as the computer is connected to the same network.

Yours

On Sat, Jan 10, 2009 at 2:07 AM, Omar Fouad omarfouad@gmail.com wrote:

 Antony I have already 3 computers connected to the Same SQLite shared file
 on the network and it works like a charm.  :)


 On Sat, Jan 10, 2009 at 1:54 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 SQLite won't connect to another computer on the lan though...

 Since you know c#, just replace where it says java with c# that is
 somewhat similar; however, I do completely understand this is sometimes
 easier said than done.


 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=



 Nate Beck wrote:

 Good to hear Omar! I hate nagging bosses.
 On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad@gmail.com
 wrote:



 Guys when there are deadlines and a Boss bugging you 24/7 there is no
 time
 to pick a book and learn a language definitely different from the
 language
 you are being writing for years.

 I've found another way to share information between two applications by
 the
 way. It is not a new way, it is the traditional use of a local SQLite
 databse file. That will help and I'll implement some Ideas I already
 have
 to
 do what is needed. But please don't tell my boss :D

 Cheers.

 On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer w...@innerfuse.biz
 wrote:



 If you want to open server sockets with AIR. You need an extra


 application


 alongside your AIR application. This application then opens the
 listening


 or


 server socket and then acts as some sort of middleman or proxy for your


 AIR


 application by redirecting the traffic back and forth of the listening
 socket to the open connection of the AIR application to this middle
 man.
 Like:

  1. Start helper application
  2. Helper application opens AIR application after opening connection


 (or


 use SocektMonitor to monitor it instead)
  3. AIR application open client connection to Helper application
  4. Any incoming data into the listening socket should be forward to
 the
 socket connected from the AIR application

 Yours,
 Weyert

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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
I know Anthony, but the application is already an AIR application. I just
can't start over the application using a different technology like C#. Plus
I like Actionscript more than any other language in the world, even if Adobe
makes lots of restrictions, (because they wanna keep a good reputation which
is ridiculous because MS is doing all this stuff with no restrictions and
has a good reputation the same).
Hopefully Adobe will develop the language to get it more powerful and let us
do real stuff with it, not only cross applications but real things, real
control of hardware, OS, raw socket management and so on. Imagine creating
Powerful desktop applications with ActionScrpt, wouldn't that be cool?

On Sat, Jan 10, 2009 at 2:04 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 I used c# years ago very briefly... and I just realized that actionscript
 has a resemblance... I might want to start looking into .net again


 http://www.c-sharpcorner.com/UploadFile/dottys/SocketProgDTRP11222005023030AM/SocketProgDTRP.aspx

 the above is a nifty barebones tutorial to get you started.  I understood
 it in seconds; yet, it will take you less time since you are practised with
 the language.


 Anthony Pace wrote:

 SQLite won't connect to another computer on the lan though...

 Since you know c#, just replace where it says java with c# that is
 somewhat similar; however, I do completely understand this is sometimes
 easier said than done.


 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=


 Nate Beck wrote:

 Good to hear Omar! I hate nagging bosses.
 On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad@gmail.com
 wrote:



 Guys when there are deadlines and a Boss bugging you 24/7 there is no
 time
 to pick a book and learn a language definitely different from the
 language
 you are being writing for years.

 I've found another way to share information between two applications by
 the
 way. It is not a new way, it is the traditional use of a local SQLite
 databse file. That will help and I'll implement some Ideas I already
 have
 to
 do what is needed. But please don't tell my boss :D

 Cheers.

 On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer w...@innerfuse.biz
 wrote:



 If you want to open server sockets with AIR. You need an extra


 application


 alongside your AIR application. This application then opens the
 listening


 or


 server socket and then acts as some sort of middleman or proxy for your


 AIR


 application by redirecting the traffic back and forth of the listening
 socket to the open connection of the AIR application to this middle
 man.
 Like:

  1. Start helper application
  2. Helper application opens AIR application after opening connection


 (or


 use SocektMonitor to monitor it instead)
  3. AIR application open client connection to Helper application
  4. Any incoming data into the listening socket should be forward to
 the
 socket connected from the AIR application

 Yours,
 Weyert

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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Anthony,

File locking would be an issue i know but there are two ways to connect to a
SQLite file, one is with open() and the other is with openAsync() -
Basically a SQLite file is locked only within the execution of a SQL
statement and not while connected. The openAsync connection allows putting
several SQL statement on queue (fair enough) from many clients. So if the
file is locked, an incoming sql execution will be reserved untill the file
unlocks. Pretty neat ha?



On Sat, Jan 10, 2009 at 2:18 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 That is definitely a nifty way to avoid writing a server.  If it works
 that's cool; yet, what happens when they request or write to the file at the
 same time?
 I don't see this working with multiple connections  trying to write to the
 same file at once; considering there is no server handling the threading of
 requests to the db.


 Omar Fouad wrote:

 Weyert, the SQLite file is stored somewhere in a full access shared
 folder.
 Each AIR application connects to it, and performs sql statements without
 any
 problem, as long as the computer is connected to the same network.

 Yours

 On Sat, Jan 10, 2009 at 2:07 AM, Omar Fouad omarfouad@gmail.com
 wrote:



 Antony I have already 3 computers connected to the Same SQLite shared
 file
 on the network and it works like a charm.  :)


 On Sat, Jan 10, 2009 at 1:54 AM, Anthony Pace anthony.p...@utoronto.ca
 wrote:



 SQLite won't connect to another computer on the lan though...

 Since you know c#, just replace where it says java with c# that is
 somewhat similar; however, I do completely understand this is sometimes
 easier said than done.



 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=



 Nate Beck wrote:



 Good to hear Omar! I hate nagging bosses.
 On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad@gmail.com
 wrote:





 Guys when there are deadlines and a Boss bugging you 24/7 there is no
 time
 to pick a book and learn a language definitely different from the
 language
 you are being writing for years.

 I've found another way to share information between two applications
 by
 the
 way. It is not a new way, it is the traditional use of a local SQLite
 databse file. That will help and I'll implement some Ideas I already
 have
 to
 do what is needed. But please don't tell my boss :D

 Cheers.

 On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer w...@innerfuse.biz
 wrote:





 If you want to open server sockets with AIR. You need an extra




 application




 alongside your AIR application. This application then opens the
 listening




 or




 server socket and then acts as some sort of middleman or proxy for
 your




 AIR




 application by redirecting the traffic back and forth of the
 listening
 socket to the open connection of the AIR application to this middle
 man.
 Like:

  1. Start helper application
  2. Helper application opens AIR application after opening connection




 (or




 use SocektMonitor to monitor it instead)
  3. AIR application open client connection to Helper application
  4. Any incoming data into the listening socket should be forward to
 the
 socket connected from the AIR application

 Yours,
 Weyert

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





 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.









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




-- 
Omar M. Fouad

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
PS: loved this thread :D

On Sat, Jan 10, 2009 at 2:36 AM, Omar Fouad omarfouad@gmail.com wrote:

 Anthony,

 File locking would be an issue i know but there are two ways to connect to
 a SQLite file, one is with open() and the other is with openAsync() -
 Basically a SQLite file is locked only within the execution of a SQL
 statement and not while connected. The openAsync connection allows putting
 several SQL statement on queue (fair enough) from many clients. So if the
 file is locked, an incoming sql execution will be reserved untill the file
 unlocks. Pretty neat ha?




 On Sat, Jan 10, 2009 at 2:18 AM, Anthony Pace anthony.p...@utoronto.cawrote:

 That is definitely a nifty way to avoid writing a server.  If it works
 that's cool; yet, what happens when they request or write to the file at the
 same time?
 I don't see this working with multiple connections  trying to write to the
 same file at once; considering there is no server handling the threading of
 requests to the db.


 Omar Fouad wrote:

 Weyert, the SQLite file is stored somewhere in a full access shared
 folder.
 Each AIR application connects to it, and performs sql statements without
 any
 problem, as long as the computer is connected to the same network.

 Yours

 On Sat, Jan 10, 2009 at 2:07 AM, Omar Fouad omarfouad@gmail.com
 wrote:



 Antony I have already 3 computers connected to the Same SQLite shared
 file
 on the network and it works like a charm.  :)


 On Sat, Jan 10, 2009 at 1:54 AM, Anthony Pace anthony.p...@utoronto.ca
 wrote:



 SQLite won't connect to another computer on the lan though...

 Since you know c#, just replace where it says java with c# that is
 somewhat similar; however, I do completely understand this is sometimes
 easier said than done.



 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=



 Nate Beck wrote:



 Good to hear Omar! I hate nagging bosses.
 On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad@gmail.com
 wrote:





 Guys when there are deadlines and a Boss bugging you 24/7 there is no
 time
 to pick a book and learn a language definitely different from the
 language
 you are being writing for years.

 I've found another way to share information between two applications
 by
 the
 way. It is not a new way, it is the traditional use of a local SQLite
 databse file. That will help and I'll implement some Ideas I already
 have
 to
 do what is needed. But please don't tell my boss :D

 Cheers.

 On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer w...@innerfuse.biz
 wrote:





 If you want to open server sockets with AIR. You need an extra




 application




 alongside your AIR application. This application then opens the
 listening




 or




 server socket and then acts as some sort of middleman or proxy for
 your




 AIR




 application by redirecting the traffic back and forth of the
 listening
 socket to the open connection of the AIR application to this middle
 man.
 Like:

  1. Start helper application
  2. Helper application opens AIR application after opening
 connection




 (or




 use SocektMonitor to monitor it instead)
  3. AIR application open client connection to Helper application
  4. Any incoming data into the listening socket should be forward to
 the
 socket connected from the AIR application

 Yours,
 Weyert

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





 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: m...@omar-fouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be
 copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.









 ___
 Flashcoders mailing list
 Flashcoders

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Yeah I got it, it is just like bridging them to each other. Good idea I
know, but I find the SQLite a more Native approach. As I said, there is a
boss involved :D. But yes I will do it for personal projects. I also think I
might create a  custom library using C#/AIR bridging, that would be cool, to
extend the AIR capabilities.

On Sat, Jan 10, 2009 at 2:34 AM, Nate Beck n...@tldstudio.com wrote:

 The problem... is that once you start introducing OS, Direct device driver
 control, Direct X, etc... You lose almost all of your cross-platform
 status.  It's the same thing that Java has been trying to do for years.
 I think what the other guys are trying to say... is write a C# socket
 server
 that can talk to Actionscript.  Keep it lightweight, basically just a
 tunnel
 to make things communicate.  They weren't saying to re-write the whole
 application in C#, just the communication part.

 You AIR client communicates with your c# app installed beside it, the c#
 app
 communicates with other clients c# app installed, which then passes
 messages
 to their AIR clients.

 I believe that is what they are recommending.

 On Fri, Jan 9, 2009 at 4:25 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  I know Anthony, but the application is already an AIR application. I just
  can't start over the application using a different technology like C#.
 Plus
  I like Actionscript more than any other language in the world, even if
  Adobe
  makes lots of restrictions, (because they wanna keep a good reputation
  which
  is ridiculous because MS is doing all this stuff with no restrictions and
  has a good reputation the same).
  Hopefully Adobe will develop the language to get it more powerful and let
  us
  do real stuff with it, not only cross applications but real things, real
  control of hardware, OS, raw socket management and so on. Imagine
 creating
  Powerful desktop applications with ActionScrpt, wouldn't that be cool?
 
  On Sat, Jan 10, 2009 at 2:04 AM, Anthony Pace anthony.p...@utoronto.ca
  wrote:
 
   I used c# years ago very briefly... and I just realized that
 actionscript
   has a resemblance... I might want to start looking into .net again
  
  
  
 
 http://www.c-sharpcorner.com/UploadFile/dottys/SocketProgDTRP11222005023030AM/SocketProgDTRP.aspx
  
   the above is a nifty barebones tutorial to get you started.  I
 understood
   it in seconds; yet, it will take you less time since you are practised
  with
   the language.
  
  
   Anthony Pace wrote:
  
   SQLite won't connect to another computer on the lan though...
  
   Since you know c#, just replace where it says java with c# that is
   somewhat similar; however, I do completely understand this is
 sometimes
   easier said than done.
  
  
  
 
 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=
  
  
   Nate Beck wrote:
  
   Good to hear Omar! I hate nagging bosses.
   On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad@gmail.com
   wrote:
  
  
  
   Guys when there are deadlines and a Boss bugging you 24/7 there is
 no
   time
   to pick a book and learn a language definitely different from the
   language
   you are being writing for years.
  
   I've found another way to share information between two applications
  by
   the
   way. It is not a new way, it is the traditional use of a local
 SQLite
   databse file. That will help and I'll implement some Ideas I already
   have
   to
   do what is needed. But please don't tell my boss :D
  
   Cheers.
  
   On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer w...@innerfuse.biz
 
   wrote:
  
  
  
   If you want to open server sockets with AIR. You need an extra
  
  
   application
  
  
   alongside your AIR application. This application then opens the
   listening
  
  
   or
  
  
   server socket and then acts as some sort of middleman or proxy for
  your
  
  
   AIR
  
  
   application by redirecting the traffic back and forth of the
  listening
   socket to the open connection of the AIR application to this middle
   man.
   Like:
  
1. Start helper application
2. Helper application opens AIR application after opening
 connection
  
  
   (or
  
  
   use SocektMonitor to monitor it instead)
3. AIR application open client connection to Helper application
4. Any incoming data into the listening socket should be forward
 to
   the
   socket connected from the AIR application
  
   Yours,
   Weyert
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: m...@omar-fouad.net
  
   This e-mail and any attachment is for authorised use by the intended
   recipient(s) only. It may contain proprietary material, confidential
   information and/or be subject to legal privilege. It should not be
   copied,
   disclosed to, retained or used

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Sure.

On Sat, Jan 10, 2009 at 3:16 AM, Nate Beck n...@tldstudio.com wrote:

 That would be really cool Omar.
 Be sure to keep us posted!

 On Fri, Jan 9, 2009 at 4:46 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  Yeah I got it, it is just like bridging them to each other. Good idea I
  know, but I find the SQLite a more Native approach. As I said, there is
 a
  boss involved :D. But yes I will do it for personal projects. I also
 think
  I
  might create a  custom library using C#/AIR bridging, that would be cool,
  to
  extend the AIR capabilities.
 
  On Sat, Jan 10, 2009 at 2:34 AM, Nate Beck n...@tldstudio.com wrote:
 
   The problem... is that once you start introducing OS, Direct device
  driver
   control, Direct X, etc... You lose almost all of your cross-platform
   status.  It's the same thing that Java has been trying to do for years.
   I think what the other guys are trying to say... is write a C# socket
   server
   that can talk to Actionscript.  Keep it lightweight, basically just a
   tunnel
   to make things communicate.  They weren't saying to re-write the whole
   application in C#, just the communication part.
  
   You AIR client communicates with your c# app installed beside it, the
 c#
   app
   communicates with other clients c# app installed, which then passes
   messages
   to their AIR clients.
  
   I believe that is what they are recommending.
  
   On Fri, Jan 9, 2009 at 4:25 PM, Omar Fouad omarfouad@gmail.com
   wrote:
  
I know Anthony, but the application is already an AIR application. I
  just
can't start over the application using a different technology like
 C#.
   Plus
I like Actionscript more than any other language in the world, even
 if
Adobe
makes lots of restrictions, (because they wanna keep a good
 reputation
which
is ridiculous because MS is doing all this stuff with no restrictions
  and
has a good reputation the same).
Hopefully Adobe will develop the language to get it more powerful and
  let
us
do real stuff with it, not only cross applications but real things,
  real
control of hardware, OS, raw socket management and so on. Imagine
   creating
Powerful desktop applications with ActionScrpt, wouldn't that be
 cool?
   
On Sat, Jan 10, 2009 at 2:04 AM, Anthony Pace 
  anthony.p...@utoronto.ca
wrote:
   
 I used c# years ago very briefly... and I just realized that
   actionscript
 has a resemblance... I might want to start looking into .net again



   
  
 
 http://www.c-sharpcorner.com/UploadFile/dottys/SocketProgDTRP11222005023030AM/SocketProgDTRP.aspx

 the above is a nifty barebones tutorial to get you started.  I
   understood
 it in seconds; yet, it will take you less time since you are
  practised
with
 the language.


 Anthony Pace wrote:

 SQLite won't connect to another computer on the lan though...

 Since you know c#, just replace where it says java with c# that is
 somewhat similar; however, I do completely understand this is
   sometimes
 easier said than done.



   
  
 
 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=


 Nate Beck wrote:

 Good to hear Omar! I hate nagging bosses.
 On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad.net@
  gmail.com
 wrote:



 Guys when there are deadlines and a Boss bugging you 24/7 there
 is
   no
 time
 to pick a book and learn a language definitely different from
 the
 language
 you are being writing for years.

 I've found another way to share information between two
  applications
by
 the
 way. It is not a new way, it is the traditional use of a local
   SQLite
 databse file. That will help and I'll implement some Ideas I
  already
 have
 to
 do what is needed. But please don't tell my boss :D

 Cheers.

 On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer 
  w...@innerfuse.biz
   
 wrote:



 If you want to open server sockets with AIR. You need an extra


 application


 alongside your AIR application. This application then opens the
 listening


 or


 server socket and then acts as some sort of middleman or proxy
  for
your


 AIR


 application by redirecting the traffic back and forth of the
listening
 socket to the open connection of the AIR application to this
  middle
 man.
 Like:

  1. Start helper application
  2. Helper application opens AIR application after opening
   connection


 (or


 use SocektMonitor to monitor it instead)
  3. AIR application open client connection to Helper
 application
  4. Any incoming data into the listening socket should be
 forward
   to
 the
 socket connected from the AIR application

Re: [Flashcoders] Socket connection between two air applications on the same Network Area

2009-01-09 Thread Omar Fouad
Well I've beening talking about a similar application in my blog
http://omar-fouad.net/blog/?p=95

That is using the SQLite approach...

cheers.

On Sat, Jan 10, 2009 at 3:58 AM, Omar Fouad omarfouad@gmail.com wrote:

 Sure.


 On Sat, Jan 10, 2009 at 3:16 AM, Nate Beck n...@tldstudio.com wrote:

 That would be really cool Omar.
 Be sure to keep us posted!

 On Fri, Jan 9, 2009 at 4:46 PM, Omar Fouad omarfouad@gmail.com
 wrote:

  Yeah I got it, it is just like bridging them to each other. Good idea I
  know, but I find the SQLite a more Native approach. As I said, there
 is a
  boss involved :D. But yes I will do it for personal projects. I also
 think
  I
  might create a  custom library using C#/AIR bridging, that would be
 cool,
  to
  extend the AIR capabilities.
 
  On Sat, Jan 10, 2009 at 2:34 AM, Nate Beck n...@tldstudio.com wrote:
 
   The problem... is that once you start introducing OS, Direct device
  driver
   control, Direct X, etc... You lose almost all of your cross-platform
   status.  It's the same thing that Java has been trying to do for
 years.
   I think what the other guys are trying to say... is write a C# socket
   server
   that can talk to Actionscript.  Keep it lightweight, basically just a
   tunnel
   to make things communicate.  They weren't saying to re-write the whole
   application in C#, just the communication part.
  
   You AIR client communicates with your c# app installed beside it, the
 c#
   app
   communicates with other clients c# app installed, which then passes
   messages
   to their AIR clients.
  
   I believe that is what they are recommending.
  
   On Fri, Jan 9, 2009 at 4:25 PM, Omar Fouad omarfouad@gmail.com
   wrote:
  
I know Anthony, but the application is already an AIR application. I
  just
can't start over the application using a different technology like
 C#.
   Plus
I like Actionscript more than any other language in the world, even
 if
Adobe
makes lots of restrictions, (because they wanna keep a good
 reputation
which
is ridiculous because MS is doing all this stuff with no
 restrictions
  and
has a good reputation the same).
Hopefully Adobe will develop the language to get it more powerful
 and
  let
us
do real stuff with it, not only cross applications but real things,
  real
control of hardware, OS, raw socket management and so on. Imagine
   creating
Powerful desktop applications with ActionScrpt, wouldn't that be
 cool?
   
On Sat, Jan 10, 2009 at 2:04 AM, Anthony Pace 
  anthony.p...@utoronto.ca
wrote:
   
 I used c# years ago very briefly... and I just realized that
   actionscript
 has a resemblance... I might want to start looking into .net again



   
  
 
 http://www.c-sharpcorner.com/UploadFile/dottys/SocketProgDTRP11222005023030AM/SocketProgDTRP.aspx

 the above is a nifty barebones tutorial to get you started.  I
   understood
 it in seconds; yet, it will take you less time since you are
  practised
with
 the language.


 Anthony Pace wrote:

 SQLite won't connect to another computer on the lan though...

 Since you know c#, just replace where it says java with c# that
 is
 somewhat similar; however, I do completely understand this is
   sometimes
 easier said than done.



   
  
 
 http://www.google.ca/search?hl=enq=simple+socket+server+in+c%23btnG=Searchmeta=


 Nate Beck wrote:

 Good to hear Omar! I hate nagging bosses.
 On Fri, Jan 9, 2009 at 3:22 PM, Omar Fouad omarfouad.net@
  gmail.com
 wrote:



 Guys when there are deadlines and a Boss bugging you 24/7 there
 is
   no
 time
 to pick a book and learn a language definitely different from
 the
 language
 you are being writing for years.

 I've found another way to share information between two
  applications
by
 the
 way. It is not a new way, it is the traditional use of a local
   SQLite
 databse file. That will help and I'll implement some Ideas I
  already
 have
 to
 do what is needed. But please don't tell my boss :D

 Cheers.

 On Sat, Jan 10, 2009 at 12:32 AM, Weyert de Boer 
  w...@innerfuse.biz
   
 wrote:



 If you want to open server sockets with AIR. You need an extra


 application


 alongside your AIR application. This application then opens
 the
 listening


 or


 server socket and then acts as some sort of middleman or proxy
  for
your


 AIR


 application by redirecting the traffic back and forth of the
listening
 socket to the open connection of the AIR application to this
  middle
 man.
 Like:

  1. Start helper application
  2. Helper application opens AIR application after opening
   connection


 (or


 use SocektMonitor to monitor

Re: [Flashcoders] favourite programming environment

2008-12-29 Thread Omar Fouad
Here is some work around for getting similar functionalities of FlashDevelop
on Mac OS X.
www.omar-fouad.net

On Sat, Sep 27, 2008 at 6:25 PM, eric e. dolecki edole...@gmail.com wrote:

 Cosmos? Really?

 On Sat, Sep 27, 2008 at 11:52 AM, Glen Pike postmas...@glenpike.co.uk
 wrote:

  My Favourite coding environment:
 
  On a tropical beach under a parasol / coconut-less palm, preferably in a
  deckchair or similar comfortable reclining chair with a flatscreen
 display
  on a swan neck.
 
  Located close enough to the beach bar for the bar-person to bring me
 coffee
  in the morning, fruit juice in the afternoon and a Mai Tai or a
 Cosmopolitan
  as the sun passes the yardarm.
 
  Breaks between programming would include sailing, snorkelling, surfing
 and
  beach volleyball.
 
  My personal assistant would deal with all the client crap.
 
  Does not matter where the beach is, as long as it's not too busy with
  tourists.
 
  Sorry, have heard this debate to many times for it to be interesting
  anymore, so I thought I would freshen it up.  :)
 
 
 
  Ron Wheeler wrote:
 
  Eclipse with HAXE
 
  Ron
 
  Allandt Bik-Elliott (Receptacle) wrote:
 
  I'm sure it's been asked before but as these things change over time, i
  thought it worth rehashing now
 
  what's your favourite coding environment?
 
  I really like FlashDevelop but because I'm on a mac, I've been looking
  into other options (although FD with parallels is a pretty good setup).
 I've
  found eclipse and FDT to be shaky at best - the AS2 libraries are
 incomplete
  (the mx lib has to be added to the default setup, for instance) and it
 seems
  to be a little unstable (if it doesn't crash entirely once in a while,
 it
  seems to get slower over time - maybe there's a memory leak somewhere?)
 and
  FDT costs an astronomical amount for something that is supposed to go
  alongside the Flash IDE when doing AS2 (which seems to be still the
 most
  widely used version of Actionscript outside of full-on microsite
 design) as
  it doesn't have it's own AS2 compiler.
 
  I've seen that coda has started supporting AS code hinting but without
  real OOP class support, it really only is a curio at the moment.
 
  what do you guys think?
 
  thanks
  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
 
 
 
  --
 
  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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: m...@omar-fouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Omar Fouad
I thought about it, but when working with Pure AS, especially if it is
object oriented, it wouldn't be a good approach.

On Mon, Nov 17, 2008 at 3:19 PM, Ashim D'Silva [EMAIL PROTECTED]wrote:

 My last ditch effort with fussy type, it to make a dummy bitmap copy of the
 sprite (bitmapdata.draw(dispObj)) and use that for the animation times.
 Switch back to the original when you need selections/links to work...Not
 the
 most elegant, but it should work...

 2008/11/17 Meinte van't Kruis [EMAIL PROTECTED]

  fonts are cached as bitmap when they get turned in 3d space, same as when
  applying filters,
  you can;t turn that off.
 
  One last thing to try is to tween with rounded values only, but I'm quite
  sure that wont make a difference,
  I think any font moved or turned in 3d space gets a bit 'blurry'.
 
 
  On Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad [EMAIL PROTECTED]
  wrote:
 
   Nope i already tried it. It does not make any difference.
  
   On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
set .cacheAsBitmap to false.
   
On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
 gmail.com
   wrote:
   
So No ideas yet?
   
On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
 gmail.com
wrote:
   
 I've tried everything...By the way I am tweening from rotationX
 -90
  to
 rotationX 0 so I think that the font dimensions should return back
  to
their
 initial size...
 By the was if they are immediately cashed as bitmap, is there a
 way
  to
get
 the back as vectors and not bitmap?


 On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
   [EMAIL PROTECTED]
wrote:

 I'm pretty sure any text fields immediately become cached as
  bitmaps
when
 their dimensions are modified.

 On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad omarfouad.net@
  gmail.com
   
 wrote:

  I'm also placing the textField into whole pixel coordinates and
  the
 pixel
  font is in it's default size.
  Cordially
 
  On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad omarfouad.net@
   gmail.com
  wrote:
 
   Hi,I have a Sprite that contains some MovieClips and a
 Dynamic
   Text
  Field.
   I am using a simple transition where I tween Both the alpha
 and
   the
   rotationY property (flash Player 10).
   I noticed that when using rotationX(), rotationY and
  rotationZ(),
the
   TextField font that is inside the sprite tweened becomes
 blurry
   and
it
   becomes bold. I used Pixel fonts and non pixel fonts, checked
  and
  unchecked
   Auto Kerning, used all types of Anti-aliasing, bitmap text
 and
device
  font,
   but in vain!!!
   It definitively works and fonts look great without using any
 3d
 property
  as
   in when i use tween alpha only.
  
   Is there a solution to use those properties without loosing
 the
   font
   quality?
  
   Thanks
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use by the
   intended
   recipient(s) only. It may contain proprietary material,
   confidential
   information and/or be subject to legal privilege. It should
 not
   be
  copied,
   disclosed to, retained or used by, any other party. If you
 are
   not
an
   intended recipient then please promptly delete this e-mail
 and
   any
   attachment and all copies and inform the sender. Thank you.
  
 
 
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the
   intended
  recipient(s) only. It may contain proprietary material,
   confidential
  information and/or be subject to legal privilege. It should not
  be
 copied,
  disclosed to, retained or used by, any other party. If you are
  not
   an
  intended recipient then please promptly delete this e-mail and
  any
  attachment and all copies and inform the sender. Thank you.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by the
 intended
 recipient(s) only. It may contain proprietary material,
 confidential
 information and/or be subject to legal privilege. It should

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Omar Fouad
You mean I should create a copy of the MovieClip that will undergo the 3D
Tweening and when completed i'd remove it and show the real one that have
the interaction with it?
On Mon, Nov 17, 2008 at 4:39 PM, Ashim D'Silva [EMAIL PROTECTED]wrote:

 I don't see what OO has to do with it. It's a little processor intensive if
 you have heaps and heaps of text fields, but if you wrap it up nicely, it
 doesn't have to interfere with anything.

 2008/11/18 Omar Fouad [EMAIL PROTECTED]

  I thought about it, but when working with Pure AS, especially if it is
  object oriented, it wouldn't be a good approach.
 
  On Mon, Nov 17, 2008 at 3:19 PM, Ashim D'Silva [EMAIL PROTECTED]
  wrote:
 
   My last ditch effort with fussy type, it to make a dummy bitmap copy of
  the
   sprite (bitmapdata.draw(dispObj)) and use that for the animation times.
   Switch back to the original when you need selections/links to
 work...Not
   the
   most elegant, but it should work...
  
   2008/11/17 Meinte van't Kruis [EMAIL PROTECTED]
  
fonts are cached as bitmap when they get turned in 3d space, same as
  when
applying filters,
you can;t turn that off.
   
One last thing to try is to tween with rounded values only, but I'm
  quite
sure that wont make a difference,
I think any font moved or turned in 3d space gets a bit 'blurry'.
   
   
On Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad [EMAIL PROTECTED]
 
wrote:
   
 Nope i already tried it. It does not make any difference.

 On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
  set .cacheAsBitmap to false.
 
  On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
   gmail.com
 wrote:
 
  So No ideas yet?
 
  On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
   gmail.com
  wrote:
 
   I've tried everything...By the way I am tweening from
 rotationX
   -90
to
   rotationX 0 so I think that the font dimensions should return
  back
to
  their
   initial size...
   By the was if they are immediately cashed as bitmap, is there
 a
   way
to
  get
   the back as vectors and not bitmap?
  
  
   On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
 [EMAIL PROTECTED]
  wrote:
  
   I'm pretty sure any text fields immediately become cached as
bitmaps
  when
   their dimensions are modified.
  
   On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad omarfouad.net@
gmail.com
 
   wrote:
  
I'm also placing the textField into whole pixel coordinates
  and
the
   pixel
font is in it's default size.
Cordially
   
On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad omarfouad.net
 @
 gmail.com
wrote:
   
 Hi,I have a Sprite that contains some MovieClips and a
   Dynamic
 Text
Field.
 I am using a simple transition where I tween Both the
 alpha
   and
 the
 rotationY property (flash Player 10).
 I noticed that when using rotationX(), rotationY and
rotationZ(),
  the
 TextField font that is inside the sprite tweened becomes
   blurry
 and
  it
 becomes bold. I used Pixel fonts and non pixel fonts,
  checked
and
unchecked
 Auto Kerning, used all types of Anti-aliasing, bitmap
 text
   and
  device
font,
 but in vain!!!
 It definitively works and fonts look great without using
  any
   3d
   property
as
 in when i use tween alpha only.

 Is there a solution to use those properties without
 loosing
   the
 font
 quality?

 Thanks

 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by
 the
 intended
 recipient(s) only. It may contain proprietary material,
 confidential
 information and/or be subject to legal privilege. It
 should
   not
 be
copied,
 disclosed to, retained or used by, any other party. If
 you
   are
 not
  an
 intended recipient then please promptly delete this
 e-mail
   and
 any
 attachment and all copies and inform the sender. Thank
 you.

   
   
   
--
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]
   
This e-mail and any attachment is for authorised use by the
 intended
recipient(s) only. It may contain proprietary material,
 confidential
information and/or be subject to legal privilege. It should
  not
be
   copied,
disclosed to, retained or used by, any other party. If you
  are
not
 an
intended recipient then please promptly delete this e-mail
  and
any

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-17 Thread Omar Fouad
A bitmap clone

On Tue, Nov 18, 2008 at 12:45 AM, Ashim D'Silva [EMAIL PROTECTED]wrote:

 Not so much a copy, but a render of it within flash. As long as it's not
 animated.

 2008/11/18 Omar Fouad [EMAIL PROTECTED]

  You mean I should create a copy of the MovieClip that will undergo the 3D
  Tweening and when completed i'd remove it and show the real one that have
  the interaction with it?
  On Mon, Nov 17, 2008 at 4:39 PM, Ashim D'Silva [EMAIL PROTECTED]
  wrote:
 
   I don't see what OO has to do with it. It's a little processor
 intensive
  if
   you have heaps and heaps of text fields, but if you wrap it up nicely,
 it
   doesn't have to interfere with anything.
  
   2008/11/18 Omar Fouad [EMAIL PROTECTED]
  
I thought about it, but when working with Pure AS, especially if it
 is
object oriented, it wouldn't be a good approach.
   
On Mon, Nov 17, 2008 at 3:19 PM, Ashim D'Silva 
  [EMAIL PROTECTED]
wrote:
   
 My last ditch effort with fussy type, it to make a dummy bitmap
 copy
  of
the
 sprite (bitmapdata.draw(dispObj)) and use that for the animation
  times.
 Switch back to the original when you need selections/links to
   work...Not
 the
 most elegant, but it should work...

 2008/11/17 Meinte van't Kruis [EMAIL PROTECTED]

  fonts are cached as bitmap when they get turned in 3d space, same
  as
when
  applying filters,
  you can;t turn that off.
 
  One last thing to try is to tween with rounded values only, but
 I'm
quite
  sure that wont make a difference,
  I think any font moved or turned in 3d space gets a bit 'blurry'.
 
 
  On Mon, Nov 17, 2008 at 7:43 AM, Omar Fouad omarfouad.net@
  gmail.com
   
  wrote:
 
   Nope i already tried it. It does not make any difference.
  
   On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
set .cacheAsBitmap to false.
   
On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad omarfouad.net@
 gmail.com
   wrote:
   
So No ideas yet?
   
On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad omarfouad.net@
 gmail.com
wrote:
   
 I've tried everything...By the way I am tweening from
   rotationX
 -90
  to
 rotationX 0 so I think that the font dimensions should
  return
back
  to
their
 initial size...
 By the was if they are immediately cashed as bitmap, is
  there
   a
 way
  to
get
 the back as vectors and not bitmap?


 On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky 
   [EMAIL PROTECTED]
wrote:

 I'm pretty sure any text fields immediately become cached
  as
  bitmaps
when
 their dimensions are modified.

 On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad 
 omarfouad.net
  @
  gmail.com
   
 wrote:

  I'm also placing the textField into whole pixel
  coordinates
and
  the
 pixel
  font is in it's default size.
  Cordially
 
  On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad 
  omarfouad.net
   @
   gmail.com
  wrote:
 
   Hi,I have a Sprite that contains some MovieClips and
 a
 Dynamic
   Text
  Field.
   I am using a simple transition where I tween Both the
   alpha
 and
   the
   rotationY property (flash Player 10).
   I noticed that when using rotationX(), rotationY and
  rotationZ(),
the
   TextField font that is inside the sprite tweened
  becomes
 blurry
   and
it
   becomes bold. I used Pixel fonts and non pixel fonts,
checked
  and
  unchecked
   Auto Kerning, used all types of Anti-aliasing, bitmap
   text
 and
device
  font,
   but in vain!!!
   It definitively works and fonts look great without
  using
any
 3d
 property
  as
   in when i use tween alpha only.
  
   Is there a solution to use those properties without
   loosing
 the
   font
   quality?
  
   Thanks
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use
 by
   the
   intended
   recipient(s) only. It may contain proprietary
 material,
   confidential
   information and/or be subject to legal privilege. It
   should
 not
   be
  copied,
   disclosed to, retained or used by, any other party.
 If
   you
 are
   not
an
   intended recipient then please promptly delete this
   e-mail
 and
   any
   attachment and all copies and inform the sender.
 Thank
   you

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-16 Thread Omar Fouad
So No ideas yet?

On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad [EMAIL PROTECTED] wrote:

 I've tried everything...By the way I am tweening from rotationX -90 to
 rotationX 0 so I think that the font dimensions should return back to their
 initial size...
 By the was if they are immediately cashed as bitmap, is there a way to get
 the back as vectors and not bitmap?


 On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky [EMAIL PROTECTED]wrote:

 I'm pretty sure any text fields immediately become cached as bitmaps when
 their dimensions are modified.

 On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad [EMAIL PROTECTED]
 wrote:

  I'm also placing the textField into whole pixel coordinates and the
 pixel
  font is in it's default size.
  Cordially
 
  On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad [EMAIL PROTECTED]
  wrote:
 
   Hi,I have a Sprite that contains some MovieClips and a Dynamic Text
  Field.
   I am using a simple transition where I tween Both the alpha and the
   rotationY property (flash Player 10).
   I noticed that when using rotationX(), rotationY and rotationZ(), the
   TextField font that is inside the sprite tweened becomes blurry and it
   becomes bold. I used Pixel fonts and non pixel fonts, checked and
  unchecked
   Auto Kerning, used all types of Anti-aliasing, bitmap text and device
  font,
   but in vain!!!
   It definitively works and fonts look great without using any 3d
 property
  as
   in when i use tween alpha only.
  
   Is there a solution to use those properties without loosing the font
   quality?
  
   Thanks
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use by the intended
   recipient(s) only. It may contain proprietary material, confidential
   information and/or be subject to legal privilege. It should not be
  copied,
   disclosed to, retained or used by, any other party. If you are not an
   intended recipient then please promptly delete this e-mail and any
   attachment and all copies and inform the sender. Thank you.
  
 
 
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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




 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Blurry TextField Issue

2008-11-16 Thread Omar Fouad
Nope i already tried it. It does not make any difference.

On 11/16/08, Joel Stransky [EMAIL PROTECTED] wrote:
 set .cacheAsBitmap to false.

 On Sun, Nov 16, 2008 at 11:09 AM, Omar Fouad [EMAIL PROTECTED]wrote:

 So No ideas yet?

 On Tue, Nov 11, 2008 at 1:36 PM, Omar Fouad [EMAIL PROTECTED]
 wrote:

  I've tried everything...By the way I am tweening from rotationX -90 to
  rotationX 0 so I think that the font dimensions should return back to
 their
  initial size...
  By the was if they are immediately cashed as bitmap, is there a way to
 get
  the back as vectors and not bitmap?
 
 
  On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky [EMAIL PROTECTED]
 wrote:
 
  I'm pretty sure any text fields immediately become cached as bitmaps
 when
  their dimensions are modified.
 
  On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad [EMAIL PROTECTED]
  wrote:
 
   I'm also placing the textField into whole pixel coordinates and the
  pixel
   font is in it's default size.
   Cordially
  
   On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad [EMAIL PROTECTED]
   wrote:
  
Hi,I have a Sprite that contains some MovieClips and a Dynamic Text
   Field.
I am using a simple transition where I tween Both the alpha and the
rotationY property (flash Player 10).
I noticed that when using rotationX(), rotationY and rotationZ(),
 the
TextField font that is inside the sprite tweened becomes blurry and
 it
becomes bold. I used Pixel fonts and non pixel fonts, checked and
   unchecked
Auto Kerning, used all types of Anti-aliasing, bitmap text and
 device
   font,
but in vain!!!
It definitively works and fonts look great without using any 3d
  property
   as
in when i use tween alpha only.
   
Is there a solution to use those properties without loosing the
font
quality?
   
Thanks
   
--
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]
   
This e-mail and any attachment is for authorised use by the
intended
recipient(s) only. It may contain proprietary material,
confidential
information and/or be subject to legal privilege. It should not be
   copied,
disclosed to, retained or used by, any other party. If you are not
 an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
   
  
  
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use by the intended
   recipient(s) only. It may contain proprietary material, confidential
   information and/or be subject to legal privilege. It should not be
  copied,
   disclosed to, retained or used by, any other party. If you are not an
   intended recipient then please promptly delete this e-mail and any
   attachment and all copies and inform the sender. Thank you.
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  --Joel
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
 



 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


-- 
Sent from my mobile device

Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential

Re: [Flashcoders] Re: Blurry TextField Issue

2008-11-11 Thread Omar Fouad
I've tried everything...By the way I am tweening from rotationX -90 to
rotationX 0 so I think that the font dimensions should return back to their
initial size...
By the was if they are immediately cashed as bitmap, is there a way to get
the back as vectors and not bitmap?

On Mon, Nov 10, 2008 at 7:11 PM, Joel Stransky [EMAIL PROTECTED]wrote:

 I'm pretty sure any text fields immediately become cached as bitmaps when
 their dimensions are modified.

 On Mon, Nov 10, 2008 at 8:01 AM, Omar Fouad [EMAIL PROTECTED]
 wrote:

  I'm also placing the textField into whole pixel coordinates and the pixel
  font is in it's default size.
  Cordially
 
  On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad [EMAIL PROTECTED]
  wrote:
 
   Hi,I have a Sprite that contains some MovieClips and a Dynamic Text
  Field.
   I am using a simple transition where I tween Both the alpha and the
   rotationY property (flash Player 10).
   I noticed that when using rotationX(), rotationY and rotationZ(), the
   TextField font that is inside the sprite tweened becomes blurry and it
   becomes bold. I used Pixel fonts and non pixel fonts, checked and
  unchecked
   Auto Kerning, used all types of Anti-aliasing, bitmap text and device
  font,
   but in vain!!!
   It definitively works and fonts look great without using any 3d
 property
  as
   in when i use tween alpha only.
  
   Is there a solution to use those properties without loosing the font
   quality?
  
   Thanks
  
   --
   Omar M. Fouad - www.omar-fouad.net
   Cellular: (+20) 1011.88.534
   Mail: [EMAIL PROTECTED]
  
   This e-mail and any attachment is for authorised use by the intended
   recipient(s) only. It may contain proprietary material, confidential
   information and/or be subject to legal privilege. It should not be
  copied,
   disclosed to, retained or used by, any other party. If you are not an
   intended recipient then please promptly delete this e-mail and any
   attachment and all copies and inform the sender. Thank you.
  
 
 
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Blurry TextField Issue

2008-11-10 Thread Omar Fouad
Hi,I have a Sprite that contains some MovieClips and a Dynamic Text Field.
I am using a simple transition where I tween Both the alpha and the
rotationY property (flash Player 10).
I noticed that when using rotationX(), rotationY and rotationZ(), the
TextField font that is inside the sprite tweened becomes blurry and it
becomes bold. I used Pixel fonts and non pixel fonts, checked and unchecked
Auto Kerning, used all types of Anti-aliasing, bitmap text and device font,
but in vain!!!
It definitively works and fonts look great without using any 3d property as
in when i use tween alpha only.

Is there a solution to use those properties without loosing the font
quality?

Thanks

-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Blurry TextField Issue

2008-11-10 Thread Omar Fouad
I'm also placing the textField into whole pixel coordinates and the pixel
font is in it's default size.
Cordially

On Mon, Nov 10, 2008 at 3:00 PM, Omar Fouad [EMAIL PROTECTED] wrote:

 Hi,I have a Sprite that contains some MovieClips and a Dynamic Text Field.
 I am using a simple transition where I tween Both the alpha and the
 rotationY property (flash Player 10).
 I noticed that when using rotationX(), rotationY and rotationZ(), the
 TextField font that is inside the sprite tweened becomes blurry and it
 becomes bold. I used Pixel fonts and non pixel fonts, checked and unchecked
 Auto Kerning, used all types of Anti-aliasing, bitmap text and device font,
 but in vain!!!
 It definitively works and fonts look great without using any 3d property as
 in when i use tween alpha only.

 Is there a solution to use those properties without loosing the font
 quality?

 Thanks

 --
 Omar M. Fouad - www.omar-fouad.net
 Cellular: (+20) 1011.88.534
 Mail: [EMAIL PROTECTED]

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] TextField text selection question

2008-10-08 Thread Omar Fouad
Hi,I am developing a search Field in AS3 that by the time I type in it, it
shows suggestions under it from an XML file.
The search function works fine, it suggests words just as I type the first
letters. Each suggested keyword is rendered one above the other, in
TextFields that are created on runtime, by using a loop.

What I want to achieve is to select the same letters I type into the search
field,  in the suggestion fields.

For example if I am searching for Sunshine I'd start to type the first 2
letters as su and all the suggestions that begin with su like sun,
sunny, super appear, but I want that the Sand the U are selected in
the suggestions, Moreover if I add another letter to su to become sun,
the first three letters in this case would be selected in the suggestions.

I know it would be achieved using:

Suggestion.alwaysShowSelection = true;
Suggestion.setSelection(whatever,whatever);// but what whatever should I
put to much the InputTF letters to highlight in the Suggestion TextField?


Thanks

-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Adding Listeners in a loop

2008-09-17 Thread Omar Fouad
Hi,
I got this loop that creates some MovieClips one under another.
for (var i:uint = 0; i  data.length; i++) {
var R1:ResultLink = new ResultLink(data[i].CompanyName,
data[i].CompanyId); //
R1.addEventListener(MouseEvent.CLICK, function():void
{trace(R1.Label)});
BlackBox.addChild(R1);
//x and y here
   }
Where ResultLink is a Class that extends MovieClip and holds The Label, and
The Id property from a Dataset fetched from a SQLite database and returned
into the array 'data'.

Now when I click to each one of the created MovieClips, they trace the last
Label and not the corresponding label for each MovieClip Clicked. At this
point I think that the event listener is added to the same 'instace' that is
overridden everytime.

How can I fix this?

Thanks


-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Adding Listeners in a loop

2008-09-17 Thread Omar Fouad
Thanks Juan... That was so useful.

Cheers

On Wed, Sep 17, 2008 at 6:40 PM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:

 Hi, the problem is that by the time the event fires and your inline
 function
 is called, R1 points to the last object created in the loop.

 However, an event object is passed to the handler function. The target
 property of that object cointains a reference to the object that fired it,
 so you can do something like this.


  R1.addEventListener(MouseEvent.CLICK, function(evt:Event):void {
   trace(evt.target.Label)
  });
 Cheers
 Juan Pablo Califano
 PD: A was about to give you some heads up on using inline functions but I
 bet in minutes someone else will do take care of that, anyway ;)


 2008/9/17 Omar Fouad [EMAIL PROTECTED]

  Hi,
  I got this loop that creates some MovieClips one under another.
  for (var i:uint = 0; i  data.length; i++) {
 var R1:ResultLink = new ResultLink(data[i].CompanyName,
  data[i].CompanyId); //
 R1.addEventListener(MouseEvent.CLICK, function():void
  {trace(R1.Label)});
 BlackBox.addChild(R1);
 //x and y here
}
  Where ResultLink is a Class that extends MovieClip and holds The Label,
 and
  The Id property from a Dataset fetched from a SQLite database and
 returned
  into the array 'data'.
 
  Now when I click to each one of the created MovieClips, they trace the
 last
  Label and not the corresponding label for each MovieClip Clicked. At this
  point I think that the event listener is added to the same 'instace' that
  is
  overridden everytime.
 
  How can I fix this?
 
  Thanks
 
 
  --
  Omar M. Fouad - www.omar-fouad.net
  Cellular: (+20) 1011.88.534
  Mail: [EMAIL PROTECTED]
 
  This e-mail and any attachment is for authorised use by the intended
  recipient(s) only. It may contain proprietary material, confidential
  information and/or be subject to legal privilege. It should not be
 copied,
  disclosed to, retained or used by, any other party. If you are not an
  intended recipient then please promptly delete this e-mail and any
  attachment and all copies and inform the sender. Thank you.
  ___
  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




-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: A Question that I've been asking for years!!

2008-09-12 Thread Omar Fouad
Oh my! i was in a vacation and i can't believe this thread has grown
this way. ;) many thanks i'll really check out all this books and
links. I think now i have a better idea of what really is an
interface. Thank you ppl. :)

On 9/11/08, John McCormack [EMAIL PROTECTED] wrote:
 I have most of these books and for me the ones that help the most are...

 http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946
 http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568
 http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-Professional/dp/0201633612

 It's so easy to get confused by the jargon.
 An interface is just what is in-between - like the handle on a saucepan.
 The interface tells you know what the methods are.
 That's it.
 So then you know how to get hold of it, talk to it, call it, pick it up.
 And if something else has the same set of methods (same interface) then
 either one of them can be passed into some generic method (polymorphic -
 many forms, same interface) that's expecting an item with certain features.

 By the way, I am eternally grateful to you all for the thousands of
 comments of yours that enlighten me. Thank you!

 John
 (mutator)

 Ron Wheeler wrote:
 Second the recommendation.
 Great book - applies to ActionScript easily.

 Ron


 Steven Loe wrote:
 Check out Head First Design Pattens (oreilly). It's an easy to
 comprehend book on patterns and software design goodness. The book
 examples are in Java, so if you can read AS3 you'll be able to read
 sample code.
 It a great resource to learn not only what interfaces are, but why
 and when you want to use them. IMO its made EAS3 *much* easier going.
 Moock's interface / pattern explanations make much more sense after
 spending some time with Head First Design Pattens.


 -Steven Loe




 This could seem weird...
 But what the hell is an interface!!! I've

 read lots of books
 and

 posts without getting the answer. I bought

 Essential AS3 to read
 about

 interfaces and he says that helps for multi

 inheritance. In other
 places I

 read that it is a deal to ensure that a

 class has some methods and
 so on.

 But what is the real benefit that I can come out with

 using
 interfaces

 Maybe that is stupidity or I am not smart enough to

 get the concept
 but

 believe me... its is been two years now!!

 Please Help!!!

 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 This e-mail and any attachment is for authorised use

 by the intended

 recipient(s) only. It may contain proprietary

 material, confidential

 information and/or be subject to legal privilege. It

 should not be
 copied,

 disclosed to, retained or used by, any other party. If

 you are not an

 intended recipient then please promptly delete this

 e-mail and any

 attachment and all copies and inform the sender. Thank

 you.

 ___
 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




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



-- 
Omar M. Fouad - www.omar-fouad.net
Cellular: (+20) 1011.88.534
Mail: [EMAIL PROTECTED]

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] A Question that I've been asking for years!!

2008-08-25 Thread Omar Fouad
This could seem weird...
But what the hell is an interface!!! I've read lots of books and
posts without getting the answer. I bought Essential AS3 to read about
interfaces and he says that helps for multi inheritance. In other places I
read that it is a deal to ensure that a class has some methods and so on.
But what is the real benefit that I can come out with using interfaces

Maybe that is stupidity or I am not smart enough to get the concept but
believe me... its is been two years now!!

Please Help!!!

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-25 Thread Omar Fouad
Wow... Thanks!
Ben, would you please explain the last part that talks about type casting?
Another Question: I've also read that using interface is more OOP. How?

Cordially

On Tue, Aug 26, 2008 at 2:23 AM, ben gomez farrell [EMAIL PROTECTED]wrote:

 Hey I don't know what kind of development teams your working with, but I've
 found that on small one off projects done with a small team, they aren't
 that important.  It's more of a big team, long term project, lotsa code type
 thing.

 You can absolutely go with never using them, but it's a nice thing to
 learn, and starts to get useful with AS3 type checking.

 So, an interface file is like a contract you are setting up with your code.
  An interface (and you can see the syntax in your books), consists of public
 variables and functions and their return types.  These functions don't do
 anything in the interface itself, that is they don't run.

 Where your interfaces get used is when you have a class that implements
 one of your interfaces.  So lets say you have MyClass extends MySuperClass
 implements IMyInterface. (by convention interface files start with Ietc,
 but of course you don't have to)

 So, for your project to even compile (when you implement an interface),
 you'd better be damn sure that your MyClass has all the functions and
 variables YOU defined in IMyInterface
 It seems limiting, but, on a large team, you might have a dozen developers
 creating a hundred or so classes that are all supposed to plugin somewhere
 in your main project.  If you create an interface, and make it known that
 all developers must implement your interface, you can be sure that your
 dozen developers and your hundred classes are going to have the methods that
 YOU need to work in your project.

 And then if you make a large scale change to your project - you can just
 change the interface - maybe add another method to it that you need for
 additional functionality.  If your dozen developers update to the new
 interface file, all their code won't compile anymore - and they'll have to
 update to your new methods before they get a compile!

 So it's handy on large teams.

 I've also found it handy for typecasting in AS3.  Sometimes I might have 2
 classes that do sort of the same thing, but not quite. Maybe I have a mix of
 several similar (but not identical) objects in an array, and I want to loop
 through.

 So for example: list = [ myClassA, myClassB, myClassC, myClassA, myClassB,
 myClassC, myClassA, myClassB, myClassC ];
 Now I loop through my objects, and I want to assign them to like a
 temporary variable and perform an action on them.

 So var temp = list[c];
 But what do you type temp...you could do
 var temp:* = list[c]

 And you could put anything you wanted in the variable.  But we have type
 casting in AS3 for a reason!

 You could create an interface full of the common methods and variables uses
 by myClass A,B and C, make those classes implement your interface, and then
 do your typecasting as this:

 var temp:IMyClasss = list[c];

 Then you aren't using the wildcard to type your object AND you'll get
 auto-complete for code, and compile time checking of anything you're trying
 to do to your class that isn't supported.

 Hope this helps!
 ben



 Omar Fouad wrote:

 This could seem weird...
 But what the hell is an interface!!! I've read lots of books and
 posts without getting the answer. I bought Essential AS3 to read about
 interfaces and he says that helps for multi inheritance. In other places I
 read that it is a deal to ensure that a class has some methods and so
 on.
 But what is the real benefit that I can come out with using interfaces

 Maybe that is stupidity or I am not smart enough to get the concept but
 believe me... its is been two years now!!

 Please Help!!!



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




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-25 Thread Omar Fouad
Ok, but how does an Interface help in this case?

On Tue, Aug 26, 2008 at 4:10 AM, ben gomez farrell [EMAIL PROTECTED]wrote:

 H, not sure what you're stumbling on - of course all this stuff is a
 mouthful, so my point is I could've been unclear in ANYTHING!

 Anyway - so typecasting variables -
 Lets say you have a variable...in AS3 the compiler needs to know what type
 of variable it is.

 so var x = 4 will just throw a compiler error if I recall correctly.
 What you need to to is: var x:Number = 4;

 This way the compiler knows what you're type casting your variable as.

 Now - say you don't know what type of object to cast your variable as
 This may come up if you are throwing a bunch of different types of objects
 or classes into a variable with the same code.

 So you could do var x:Object = whatever or var x:* = whatever.

 The problem here is when you assume do really generic things like that, IF
 there is a bug, you'll only find out about it at runtime.

 Like lets say you had two classes MObjectA.as  and MyObjectB.as.   Let's
 also say I'm somewhere in my code, where I need to throw them into the same
 variable one after another (it can happen, in like a for loop when you have
 a bunch of different objects in an array, and you're looping through)

 Anyway, I want to do:

 var x = new MyObjectA();
 x.doSomething();
 x.doSomethingElse();

 x = new MyObjectB();
 x.doSomething();
 x.doSomethingElse();

 But that's not quite rightYou need to typecast x - but if it's the same
 class, you COULD either generically type it with an object: var x:Object or
 a wildcard var x:*

 But lets say you call a method that isn't there (or you mispelled your
 method name).  With such generic typecasting, it'll just compile, and you
 won't catch this error until runtime. The compiler will just say Well, it's
 generic, it could be anything - so I'll just compile it, and hope the
 programmer knows what they're doing!.

 But, if MyObjectA and MyObjectB have a common set of methods, like
 doSomething() and doSomethingElse(), I could create and interface with these
 two methods, and make MyObject A and B implement these two methods.

 Then I can type x as:
 var x:IMyObject = new MyObjectA or B()

 Now if I'm using something like Flex builder, I'll get full autocomplete
 when i start using my variable.  If I misspell a method, or try to use one
 that isn't there my COMPILER will complain before I even run it.

 So typecasting is just a little more organized and lets you know whats
 going on, and interfaces help if you have the above situation.

 And I don't know if i'd call it MORE OOP - i'd say it makes use of more
 spiffy things that OOP has to offer, but I don't think there really needs to
 be a contest on who's programming is more OOP, whatever works for the
 situation works for the situation.   It's like saying my backyard is more
 outdoors than your because you have a tree, but I have a tree and a bush and
 a flower garden.  We both have backyards, but I have more things in mine.
  That's my opinion anyway!

 good luck!
 ben



 Omar Fouad wrote:

 Wow... Thanks!
 Ben, would you please explain the last part that talks about type casting?
 Another Question: I've also read that using interface is more OOP. How?

 Cordially

 On Tue, Aug 26, 2008 at 2:23 AM, ben gomez farrell [EMAIL PROTECTED]
 wrote:



 Hey I don't know what kind of development teams your working with, but
 I've
 found that on small one off projects done with a small team, they aren't
 that important.  It's more of a big team, long term project, lotsa code
 type
 thing.

 You can absolutely go with never using them, but it's a nice thing to
 learn, and starts to get useful with AS3 type checking.

 So, an interface file is like a contract you are setting up with your
 code.
  An interface (and you can see the syntax in your books), consists of
 public
 variables and functions and their return types.  These functions don't do
 anything in the interface itself, that is they don't run.

 Where your interfaces get used is when you have a class that implements
 one of your interfaces.  So lets say you have MyClass extends
 MySuperClass
 implements IMyInterface. (by convention interface files start with
 Ietc,
 but of course you don't have to)

 So, for your project to even compile (when you implement an interface),
 you'd better be damn sure that your MyClass has all the functions and
 variables YOU defined in IMyInterface
 It seems limiting, but, on a large team, you might have a dozen
 developers
 creating a hundred or so classes that are all supposed to plugin
 somewhere
 in your main project.  If you create an interface, and make it known that
 all developers must implement your interface, you can be sure that your
 dozen developers and your hundred classes are going to have the methods
 that
 YOU need to work in your project.

 And then if you make a large scale change to your project - you can just
 change the interface - maybe add

Re: [Flashcoders] Binary Data Question

2008-08-16 Thread Omar Fouad
When I use ba without toString() amfphp says Object of class ByteArray
could not be converted to string.
I think there is something to be done in the php to convert the data back
from string into binary data, but I cannot find it out.

Ideas?

On Sat, Aug 16, 2008 at 9:02 PM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:

 I haven't used amfphp extensively, but it might be a problem in the type
 of data amfphp expects... I'm not sure this is a good idea:

 ba.toString()

 As with a JPG you'll sure get lots of 0's in the ByteArray; parsed as a
 char
 in a string, a 0 value is what's known as an embedded null, which
 traditionally is used to signal the end of the string, so probably at some
 point the data is being truncated.

 Maybe if you just send the ByteArray object, amfphp will figure out the
 type
 of the object and will be able to deserialize it correctly. I think that's
 the whole idea behind amfphp, it automatically serializes and deserializes
 native objects using the amf format.


 Cheers
 Juan Pablo Califano


 2008/8/16, Omar Fouad [EMAIL PROTECTED]:
 
  well I've been trying this amfphp and it does not work. amfphp responds
  back
  an error saying amfphp_runtime_error.
 
  I have this php file in the services dir which hace this function  that I
  call throuh actionscript
 
  function getData($image)
  {
 $data = mysql_query(Insert into table01 (image) values
  ('$image'));
 if($data == null) {
return false;
 }eles{
return true;
}
  }
 
  in the mysql database there is a longblob field image and in fd I wrote:
 
  [Embed(source = 'mail[1].jpg')]
 private var _img:Class;
 private var img:Bitmap = new _img();
 
 private var gw:NetConnection;
 private var res:Responder;
 private var TF:TextField = new TextField();
 
 private var ba:ByteArray;
 private var encoder:JPGEncoder;
 private var bd:BitmapData;
 
 public function Main():void {
 
 TF.autoSize  = TextFieldAutoSize.LEFT;
 addChild(TF);
 
 bd = new BitmapData(img.width, img.height);
 bd.draw(img);
 encoder = new JPGEncoder(90);
 ba = encoder.encode(bd);
 
 gw = new NetConnection();
 gw.connect(http://localhost/amfphp/amfphp/gateway.php;);
 res = new Responder(onResult, onFault);
 gw.call(Test.getData, res, ba.toString());
 }
 
 private function onResult(responds:Object):void {
 TF.text = String(responds);
 }
 
 private function onFault(responds:Object):void {
 for (var i:* in responds) {
 TF.text = String(responds[i]);
 }
 }
 
  Is there something I missed in the AS or PHP?
 
  Thanks
 
 
 
  On Sat, Aug 16, 2008 at 2:16 AM, Omar Fouad [EMAIL PROTECTED]
  wrote:
 
   Thanks.. I will try this now and feed you back.
  
  
  
   On Sat, Aug 16, 2008 at 1:41 AM, Juan Pablo Califano 
   [EMAIL PROTECTED] wrote:
  
   Yes. Using that particular class I mentioned, from the php side you'd
   receive the data like a regular html form post with multipart-encode,
  that
   means, you can retrieve the text variables you want to send with
   $_POST['someVar'] and the file (or files) with $_FILES['varName'] (or
  the
   name you choose). Treat it like if it were a html form.
  
   To add a text field to the form use the add
  addField(varName,varValue)
   method; to add a file, use addFile(varName, jpgByteArray,
   originalFileName, imageMimeType);
  
   For originalFileName, use whatever you want, like image.jpg, it
   doesn't
   really matter. That's what you'll get with $_FILES['varName']['name'].
  For
   the imageMimeType, use the constant in the class for JPG.
  
  
   Cheers
   Juan Pablo Califano
  
   2008/8/15, Omar Fouad [EMAIL PROTECTED]:
   
I guess I can send the ByteArray to the php that will handle its
   insertion
to the database. Right?
   
On Fri, Aug 15, 2008 at 7:07 PM, Juan Pablo Califano 
[EMAIL PROTECTED] wrote:
   
 With the newest player, I think, it's possible to save data into
 the
USER's
 hard drive without a trip to the server, but you want to store the
   data
on
 the server side, you need to send it to the server...

 You have to post that data using a URLLoader object, and
 specifying
   the
 input as binary data.

 I've wrapped up some code to do that and being able to pass
  variables
   as
 well. If you want to check it out:

 http://pastebin.com/f11a897cf

 (Sorry, comments are in Spanish, but the indentifiers are in
  English)

 A example of use (it's a copy  paste from some wortking code,
 just
  to
give
 you an idea):


 import ar.com.califa010.utils.FormData;

   // getEncodedImg() is a method that returns a JPG as a byteArray

   var rawJpg:ByteArray

Re: [Flashcoders] Binary Data Question

2008-08-15 Thread Omar Fouad
I see, all those tutorials shows how to save the image on the Hard Drive
(now with flash player is possible to do this without any server side
script).

But considering my question, what I should be putting in my database row,
the byteArray encoded by JPGEncoder?
Is there a method into this class that takes the ByteArray from the database
back, and translates it into a bitmap to be shown in the swf?

On Fri, Aug 15, 2008 at 12:42 PM, Glen Pike [EMAIL PROTECTED]wrote:

 Hi,

   Sorry, I put this in the wrong thread before - here is my 2c

   Hi,

  There are a few examples on the www about sending Bitmap data to the
 server Mario's is a good starting point -
 http://www.quasimondo.com/archives/000572.php  Anyway, there are other
 examples about which do compression/decompression on your data so you could
 save it into your DB too..

  Hope this is useful

  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




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Binary Data Question

2008-08-15 Thread Omar Fouad
I mean that You can save files to HDD now without using server side script
with the new flash player 10.

On Fri, Aug 15, 2008 at 6:16 PM, Glen Pike [EMAIL PROTECTED]wrote:

 Hi,

   You can't save an image from Flash without a server side script...

   Mario's example sends an image to the server, then uses FileReference to
 download it, or something similar.  If you want to store the image data, you
 would need to have 2 scripts - one to format it nicely and then put it in
 the database - Mario's script saves to a temporary file, you need to save
 the data to your DB here and get the id back.  The other one which takes in
 an ID of the data in the database and then echoes out headers and the data
 which means your browser / Flash will see an image.

   Mario's example PHP script is pretty chunky and not very easy to see
 where you would split the two bits of functionality, but instead of writing
 a temporary image file, you would store your data in a database and return
 the mysql_insert_id() to Flash, or similar.

   Then you can use this ID to retrieve the image using a second script.
  Provided you have encoded your JPG nicely, you can splurge it out - here
 are some searches that may help, but the basic principle is that you can do
 something like this:

   ?php
   ob_start();
  $error = false;
  $data = null;
  //You would need to write these functions the ob_start  ob_end stops
 you getting errors...
  $id = sanitizeUserInput($_REQUEST['imageid']);  // should return a
 nice number for your database ID, or FALSE if you have a problem
  if(FALSE === $id) {
 $error = true;
   } else {
  $data = readDataFromDB($id);  //should output your data as an
 entire JPEG file or return FALSE if you have a problem.
}
  if(FALSE === $data) {
 $error = true;
   }
  ob_end_clean();
  if(false == $error) {
  header(Content-type: image/jpeg);
  echo $data;
  } else {
 header(HTTP/1.0 404 Not Found);
  }
  exit();
   ?

   Some searches that might help you find some examples...


 http://www.google.co.uk/search?hl=enq=php+echo+image+from+databasebtnG=Google+Searchmeta=
 http://www.google.co.uk/search?hl=enq=php+echo+image+from+databasebtnG=Google+Searchmeta=
 


 http://www.google.co.uk/search?hl=ensa=Xoi=spellresnum=0ct=resultcd=1q=php+read+image+from+database+blobspell=1
 http://www.google.co.uk/search?hl=ensa=Xoi=spellresnum=0ct=resultcd=1q=php+read+image+from+database+blobspell=1
 

   Hope this helps a bit - it's a long time since I did any image
 manipulation in PHP, so apologies if the answers are a bit vague, but there
 are loads of examples out there for this.

   Glen



 Omar Fouad wrote:

 I see, all those tutorials shows how to save the image on the Hard Drive
 (now with flash player is possible to do this without any server side
 script).

 But considering my question, what I should be putting in my database row,
 the byteArray encoded by JPGEncoder?
 Is there a method into this class that takes the ByteArray from the
 database
 back, and translates it into a bitmap to be shown in the swf?

 On Fri, Aug 15, 2008 at 12:42 PM, Glen Pike [EMAIL PROTECTED]
 wrote:



 Hi,

  Sorry, I put this in the wrong thread before - here is my 2c

  Hi,

  There are a few examples on the www about sending Bitmap data to the
 server Mario's is a good starting point -
 http://www.quasimondo.com/archives/000572.php  Anyway, there are
 other
 examples about which do compression/decompression on your data so you
 could
 save it into your DB too..

  Hope this is useful

  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









 --

 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




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Binary Data Question

2008-08-15 Thread Omar Fouad
Glen, thanks for your help, I actually wanna store the Image in a mysql
database and not uploading it somewhere in my server.

On Fri, Aug 15, 2008 at 6:48 PM, Omar Fouad [EMAIL PROTECTED] wrote:

 I mean that You can save files to HDD now without using server side script
 with the new flash player 10.


 On Fri, Aug 15, 2008 at 6:16 PM, Glen Pike [EMAIL PROTECTED]wrote:

 Hi,

   You can't save an image from Flash without a server side script...

   Mario's example sends an image to the server, then uses FileReference to
 download it, or something similar.  If you want to store the image data, you
 would need to have 2 scripts - one to format it nicely and then put it in
 the database - Mario's script saves to a temporary file, you need to save
 the data to your DB here and get the id back.  The other one which takes in
 an ID of the data in the database and then echoes out headers and the data
 which means your browser / Flash will see an image.

   Mario's example PHP script is pretty chunky and not very easy to see
 where you would split the two bits of functionality, but instead of writing
 a temporary image file, you would store your data in a database and return
 the mysql_insert_id() to Flash, or similar.

   Then you can use this ID to retrieve the image using a second script.
  Provided you have encoded your JPG nicely, you can splurge it out - here
 are some searches that may help, but the basic principle is that you can do
 something like this:

   ?php
   ob_start();
  $error = false;
  $data = null;
  //You would need to write these functions the ob_start  ob_end stops
 you getting errors...
  $id = sanitizeUserInput($_REQUEST['imageid']);  // should return a
 nice number for your database ID, or FALSE if you have a problem
  if(FALSE === $id) {
 $error = true;
   } else {
  $data = readDataFromDB($id);  //should output your data as an
 entire JPEG file or return FALSE if you have a problem.
}
  if(FALSE === $data) {
 $error = true;
   }
  ob_end_clean();
  if(false == $error) {
  header(Content-type: image/jpeg);
  echo $data;
  } else {
 header(HTTP/1.0 404 Not Found);
  }
  exit();
   ?

   Some searches that might help you find some examples...


 http://www.google.co.uk/search?hl=enq=php+echo+image+from+databasebtnG=Google+Searchmeta=
 http://www.google.co.uk/search?hl=enq=php+echo+image+from+databasebtnG=Google+Searchmeta=
 


 http://www.google.co.uk/search?hl=ensa=Xoi=spellresnum=0ct=resultcd=1q=php+read+image+from+database+blobspell=1
 http://www.google.co.uk/search?hl=ensa=Xoi=spellresnum=0ct=resultcd=1q=php+read+image+from+database+blobspell=1
 

   Hope this helps a bit - it's a long time since I did any image
 manipulation in PHP, so apologies if the answers are a bit vague, but there
 are loads of examples out there for this.

   Glen



 Omar Fouad wrote:

 I see, all those tutorials shows how to save the image on the Hard Drive
 (now with flash player is possible to do this without any server side
 script).

 But considering my question, what I should be putting in my database row,
 the byteArray encoded by JPGEncoder?
 Is there a method into this class that takes the ByteArray from the
 database
 back, and translates it into a bitmap to be shown in the swf?

 On Fri, Aug 15, 2008 at 12:42 PM, Glen Pike [EMAIL PROTECTED]
 wrote:



 Hi,

  Sorry, I put this in the wrong thread before - here is my 2c

  Hi,

  There are a few examples on the www about sending Bitmap data to the
 server Mario's is a good starting point -
 http://www.quasimondo.com/archives/000572.php  Anyway, there are
 other
 examples about which do compression/decompression on your data so you
 could
 save it into your DB too..

  Hope this is useful

  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









 --

 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




 --
 Omar M. Fouad - Digital Emotions
 http://www.omarfouad.net

 This e-mail and any attachment is for authorised use by the intended
 recipient(s) only. It may contain proprietary material, confidential
 information and/or be subject to legal privilege. It should not be copied,
 disclosed to, retained or used by, any other party. If you are not an
 intended recipient then please promptly delete this e-mail and any
 attachment and all copies and inform the sender. Thank you.




-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain

  1   2   3   4   >