Re: [flexcoders] Regexp matching string between two nodes

2008-04-25 Thread Claudia Barnal
Hi Shaun,

Thanks a lot for your help. But was tying to avoid using the loop,
given that it might slow down the process if there are a lot of items
matching the regexp.

Claudia

On Wed, Apr 23, 2008 at 8:46 PM, shaun [EMAIL PROTECTED] wrote:






 Hi Claudia,



  Claudia Barnal wrote:
   Hi there,
  
   I have a string that needs to have some portions extracted through
   regexp and add them to an array.
  
   the string is something like this:
  
   fruitsbanana /orange //fruits vehiclessuv /pickup
   /vehicles fruitsapple /banana //fruits
  
   So the regexp should return all that's between all fruits and
   /fruits in this case, it should be something like this:
   banana /orange /apple /banana /
  
   then using
   myArray = myString.split(myRegexp);
  
   I would get an array that looks like this
   [banana /orange /, apple /banana /]
  
   I've tried this regexp: fruits.*?/fruits but it's not really
   working, as it gives me whatever is outside the fruit nodes.
  
   Any pointers?
  

  private function init():void{

  var s:String = fruitsbanana /orange //fruits+

  vehiclessuv /pickup/vehicles fruits+
  apple /banana//fruits;

  var r:RegExp = /fruits([\w\s\\\/]*?)\/fruits/gi;
  var result:Array;

  do {

  result = r.exec(s);

  if (result!=null)
  trace(result[1]);

  }while(result!=null);
  }

  HTH.

  cheers,
  - shaun

  


[flexcoders] Regexp matching string between two nodes

2008-04-23 Thread Claudia Barnal
Hi there,

I have a string that needs to have some portions extracted through
regexp and add them to an array.

the string is something like this:

fruitsbanana /orange //fruits vehiclessuv /pickup
/vehicles fruitsapple /banana //fruits

So the regexp should return all that's between all fruits and
/fruits in this case, it should be something like this:
banana /orange /apple /banana /

then using
myArray = myString.split(myRegexp);

I would get an array that looks like this
[banana /orange /, apple /banana /]

I've tried this regexp: fruits.*?/fruits but it's not really
working, as it gives me whatever is outside the fruit nodes.

Any pointers?

Thanks,
Claudia


[flexcoders] Video ads in AIR application

2008-03-03 Thread Claudia Barnal
Hi, is there a known framework or best practices for including
(streaming/progressive) video ads in an AIR application?

Thanks,
Claudia


[flexcoders] Loaded Runtime Style Sheet rendering

2008-02-03 Thread Claudia Barnal
Hi,

Is there any kind of event that is dispatched once a runtime style
sheet (theme) is loaded to an application and the change is _visible_
to the user?

It's possible to know when the theme has been implemented, but I
haven't been able to catch when the theme is actually rendered and
visible to the user.

Depending on the theme and components being used, the loaded runtime
style sheet rendering might vary, which is why I need some sort of
event to tell me when it's initialized.

Thanks,
Claudia


Re: [flexcoders] Loaded Runtime Style Sheet rendering

2008-02-03 Thread Claudia Barnal
Thanks Igor,

I'm not sure this is what I need.
I'm not loading CSS files, I'm loading compiled CSS SWFs. And my
question was really regarding an event being dispatched when the CSS
(SWF) has been loaded and rendered in the application.

Claudia

On Feb 3, 2008 4:14 PM, Igor Costa [EMAIL PROTECTED] wrote:






 Hi there Claudia

 here`s a small piece component that was develop by Rubens that gets what
 you`re looking for.


 Here`s the link http://www.rubenswieringa.com/blog/index.php?tag=css

 Best regards
 Igor Costa



 On Feb 3, 2008 5:04 PM, Claudia Barnal [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  Hi,
 
  Is there any kind of event that is dispatched once a runtime style
  sheet (theme) is loaded to an application and the change is _visible_
  to the user?
 
  It's possible to know when the theme has been implemented, but I
  haven't been able to catch when the theme is actually rendered and
  visible to the user.
 
  Depending on the theme and components being used, the loaded runtime
  style sheet rendering might vary, which is why I need some sort of
  event to tell me when it's initialized.
 
  Thanks,
  Claudia
 



 --
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org 


[flexcoders] Debugging outside browser

2007-12-16 Thread Claudia Barnal
Hi all,

I'm trying to debug an application that is outside the the browser (it
is being used inside another executable). I can't find any
documentation that indicates how I can setup and launch a debug
session with a SWF file that is outside the browser.

Any hints and pointers are much appreciated,
Claudia


[flexcoders] Sort object by property name

2007-10-31 Thread Claudia Barnal
Hi,

How can I sort an Object?

For example I have the following object:
{banana:yellow, apple:green, lemon:yellow, cherry:red}

and I need to sort it so that it looks like this:
{apple:green, banana:yellow, cherry:red, lemon:yellow}

I need to assign the colors in a for in loop, for which the order is important.

Thanks,
Claudia


Re: [flexcoders] Sort object by property name

2007-10-31 Thread Claudia Barnal
Thank you Edward... just what I needed.

On 10/31/07, Edward Yakop [EMAIL PROTECTED] wrote:

Hi,
 Hi

  How can I sort an Object?
 
  For example I have the following object:
  {banana:yellow, apple:green, lemon:yellow, cherry:red}
 
  and I need to sort it so that it looks like this:
  {apple:green, banana:yellow, cherry:red, lemon:yellow}
 

 code
 var notSorted:Object= {banana:yellow, apple:green, lemon:yellow,
 cherry:red};
 var properties:Array = new Array();
 for ( var abc:Object in notSorted )
 {
 properties.push( abc );
 }
 properties.sort();

 // Now the property names are sorted
 for each ( var prop:Object in properties )
 {
 trace( prop ); // Do something Or u can do notSorted[ prop ], to
 access the value.
 }
 /code

 Regards,
 Edward Yakop
 



Re: [flexcoders] Swapping color from Bitmap

2007-10-28 Thread Claudia Barnal
Thanks, I'll look into this.

On 10/27/07, Bailey [EMAIL PROTECTED] wrote:

   Alex probably meant BitmapData.threshold()

 Anyways perhaps this actionscript example might help you
 http://www.sephiroth.it/tutorials/flashPHP/thresold/

 On 10/27/07, Alex Harui [EMAIL PROTECTED] wrote:
 
 Maybe BitmapData.threshhold()
 
 
   --
 
  *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of
  *Claudia Barnal
  *Sent:* Friday, October 26, 2007 6:26 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Swapping color from Bitmap
 
 
 
  Hi there,
 
  I'm told it is possible to swap a color value from a Bitmap in Flex.
 
  Say for example I want to change all the pixels that have the red
  0xFF value to any other color value (ex 0xF94A3C), what would it
  take?
 
  Are you aware of any examples/tutorials I can be pointed to?
 
  Thanks,
  Claudia
 
 
  



[flexcoders] Find colors used in an image

2007-10-28 Thread Claudia Barnal
Hi,

what is a quick way to find out what colors are being used in a Bitmap
(loaded image)? As far as I know it is only possible looping through
each pixel in the bitmap.

Basically, I need to find the each color instance to create a Color
Palette/Swatch/Table for that image.

Thanks,
Claudia


[flexcoders] Swapping color from Bitmap

2007-10-26 Thread Claudia Barnal
Hi there,

I'm told it is possible to swap a color value from a Bitmap in Flex.

Say for example I want to change all the pixels that have the red
0xFF value to any other color value (ex 0xF94A3C), what would it
take?

Are you aware of any examples/tutorials I can be pointed to?

Thanks,
Claudia


[flexcoders] Simluate async method

2007-10-15 Thread Claudia Barnal
Hi,

How could I make an async method in actionscript.

Something like this:

function doSomething():void
{
asyncCall(makeOrangeJuice, orageJuiceReady);
}

function makeOrangeJuice():void
{
   ExternalInterface.call(openModalAlert);
}

function orageJuiceReady():void
{
trace(No timeout error!!!);
}


Or how else can I avoid the timeout error with a modal JavaScript Alert.

Thanks,
Claudia


[flexcoders] Find original color of a Shape

2007-09-21 Thread Claudia Barnal
Hi,

I'm trying to get the color of an embedded shape with this code:
trace(Shape(embeddedSprite.getChildAt(0)).transform.colorTransform.color);

but all I get is 0.

If I add a color to the colorTransform, I'm able to retrieve it.

So I'm guessing the colorTransfor only returns a color once you have
explicitly assigned one to it.

So, how would one be able to retrieve the color of that shape without
using the colorTransform?

Any pointers would be great,
Thanks


Re: [flexcoders] Decorator Pattern 101

2007-09-14 Thread Claudia Barnal
Yep, makes sense now. Thank you Michael. I appreciate your effort.

Claudia

On 9/13/07, Michael Schmalle [EMAIL PROTECTED] wrote:

   Hi,

  1. Why does the Decorator become limited because the UIComponent needs
 to be added to the display list?

 This goes back to what I said about what decoration is.

 True decoration means,

 var juiceMaker:JuiceMaker = new JuiceMaker(); // Button
 juiceMaker = new JuiceMaster(juiceMaker); // implements IJuiceMaker

 juiceMaker.makeJuice(apple);

 - which then calls JuiceMaster's makeJuice, which then would call
 JuicMaker's makeJuice().

 I think you were mixing apples and oranges(no pun intended) when you first
 thought about this.

 As you can see after you decorate the Button with JuiceMaster, even
 thought it would implement the same type,
 juiceMaker is no longer a DisplayObject and thus, you cannot do this;

 myBox.addChild(juiceMaker);

 Does that make sense?

 Peace, Mike



 On 9/13/07, Claudia Barnal [EMAIL PROTECTED] wrote:
 
Thanks a lot Michael! One never stops learning.
 
  I'll be using this stuff from now on, but I still have one question
  about all this (sorry to take your time).
 
  In your first post, you wrote this:
  You can't decorate a UIComponent since it is a DisplayObject and needs
  to be added to the display list.
 
  1. Why does the Decorator become limited because the UIComponent needs
  to be added to the display list?
 
  Thanks!
 
 
 
 
  On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:
  
 arrg, I'm doing to many things today..
  
   in the construct that would be
  
   makerImpl = new JuiceMaster();
  
   instead of;
  
   makerImpl = new JuiceMaker();
  
   I'm sure you knew that but,  I'm just a perfectionist even with
   irrelevant emails. :)
  
   Mike
  
  
   On 9/12/07, Michael Schmalle  [EMAIL PROTECTED] wrote:
   
Hi,
   
below is the 'concrete' version;
   
   
class JuiceMaster
{
   public function makeJuice(type:String):void
   {
  trace(Happily making, type, juice!, Tralalala!);
   }
}
   
public class JuiceMaker
  extends Button
{
   
   private var _makerClass:Class;
   private var makerImpl:JuiceMaster;
   
   public function set makerClass(value:Class):void
   {
   _makerClass = value;
   makerImpl = new _makerClass();
   }
   
   public function set makerClass():Class
   {
   return makerImpl;
   }
   
   public function JuiceMaker()
   {
  super();
   
  // you could just make the default implementation here
  // thats about as concrete as it gets
  makerImpl = new JuiceMaker();
   }
   
   public function makeJuice(type:String):void
   {
  if (makerImpl is JuiceMaster)
 makerImpl.makeJuice(type);
   }
}
   
   
Notice the types are concrete meaning you are programming to an
implemented class, no polymorphism here.
   
And note this is not 'real' decoration either.
   
Real decoration means you pass a reference to an instance of the
decorator and actually call the decorators methods.
   
This is like Composition Decorating, and maybe there is some other
OO word for it. I don't care about the technical of it just that it IS a
pattern good for DisplayObjects.
   
Peace, Mike
   
On 9/12/07, Claudia Barnal  [EMAIL PROTECTED] wrote:

   Yeah, I had thought about something using composition. But
 somewhere I had read that the Decorator was what I needed :(

 I'll do it as you mentioned, but I would still love to hear about
 the Concrete class that you mention :)

 Thanks Michael!

 On 9/12/07, Michael Schmalle  [EMAIL PROTECTED] wrote:

Oh yeah
 
  JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
  myJuiceMaker.makeJuice('orange') /
 
  is supposed to be;
 
  JuiceMaker id=myJuiceMaker makerClass={JuiceMaster} click=
  myJuiceMaker.makeJuice('orange') /
 
 
   On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:
 
Hi,
  
   You can't decorate a UIComponent since it is a DisplayObject
   and needs to be added to the display list.
  
   You have to either us composition or subclass Button and use
   an interface and pass the class to decorate the Button with.
  
   JuiceMaker id=myJuiceMaker decorator={JuiceMaster}
   click=myJuiceMaker.makeJuice('orange') /
  
  
   class JuiceMaster
implemented IJuiceMaker
   {
  public function makeJuice(type:String):void
  {
 trace(Happily making, type, juice!, Tralalala!);
  }
   }
  
   public class JuiceMaker
 extends Button
 implemented IJuiceMaker
   {
  
  private var _makerClass:Class;
  private var makerImpl:IJuiceMaster;
  
  public

[flexcoders] Fill outline of a Sprite

2007-09-14 Thread Claudia Barnal
Hi,

How can I fill the outline of Sprite?

I have Sprites with different shapes, but only the outline. And I want
to give the shapes a background color.

In Flash you can do something like a fill with the Paint Bucket
Tool... but how can you do that in ActionScript?

Any pointers?

Thanks,
Claudia


Re: [flexcoders] Fill outline of a Sprite

2007-09-14 Thread Claudia Barnal
Hi Alex, I appreciate your help, but could you be a bit more explicit?

As far as I know, the beginFill requires you to assign the shape by using
the lineTo subsequently.

In my case I don't have all the coordinates of the lines of the shape.

Thanks,
Claudia

On 9/14/07, Alex Harui [EMAIL PROTECTED] wrote:

Flash.graphics.beginFill


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Claudia Barnal
 *Sent:* Friday, September 14, 2007 7:21 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Fill outline of a Sprite



 Hi,

 How can I fill the outline of Sprite?

 I have Sprites with different shapes, but only the outline. And I want
 to give the shapes a background color.

 In Flash you can do something like a fill with the Paint Bucket
 Tool... but how can you do that in ActionScript?

 Any pointers?

 Thanks,
 Claudia

  



Re: [flexcoders] Fill outline of a Sprite

2007-09-14 Thread Claudia Barnal
Thanks Alex,

I had already tried this. But as I mentioned in my first post, the Sprite
has different shapes. these could be for example the outline of a triangle,
of a circle etc. and this is what I want to fill. The beginFill works great
for the squares and rectangles.

So what I'm guessing is that I need to find the bounds of the outline and
fill whatever is inside that.

I'm not sure there is something like this available within ActionScript
(maybe some custom API).

Thanks

On 9/14/07, Alex Harui [EMAIL PROTECTED] wrote:

A sprite has width and height, so normally you can fill the whole thing
 in with



 beginFill(0xFF) //red

 drawRect(0, 0, width, height);

 endFill();


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Claudia Barnal
 *Sent:* Friday, September 14, 2007 8:47 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Fill outline of a Sprite



 Hi Alex, I appreciate your help, but could you be a bit more explicit?

 As far as I know, the beginFill requires you to assign the shape by using
 the lineTo subsequently.

 In my case I don't have all the coordinates of the lines of the shape.

 Thanks,
 Claudia

 On 9/14/07, *Alex Harui* [EMAIL PROTECTED] wrote:

 Flash.graphics.beginFill


  --

 *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On
 Behalf Of *Claudia Barnal
 *Sent:* Friday, September 14, 2007 7:21 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Fill outline of a Sprite



 Hi,

 How can I fill the outline of Sprite?

 I have Sprites with different shapes, but only the outline. And I want
 to give the shapes a background color.

 In Flash you can do something like a fill with the Paint Bucket
 Tool... but how can you do that in ActionScript?

 Any pointers?

 Thanks,
 Claudia



  



Re: [flexcoders] Decorator Pattern 101

2007-09-13 Thread Claudia Barnal
Thanks a lot Michael! One never stops learning.

I'll be using this stuff from now on, but I still have one question about
all this (sorry to take your time).

In your first post, you wrote this:
You can't decorate a UIComponent since it is a DisplayObject and needs to
be added to the display list.

1. Why does the Decorator become limited because the UIComponent needs to be
added to the display list?

Thanks!



On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:

   arrg, I'm doing to many things today..

 in the construct that would be

 makerImpl = new JuiceMaster();

 instead of;

 makerImpl = new JuiceMaker();

 I'm sure you knew that but,  I'm just a perfectionist even with irrelevant
 emails. :)

 Mike


 On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:
 
  Hi,
 
  below is the 'concrete' version;
 
 
  class JuiceMaster
  {
 public function makeJuice(type:String):void
 {
trace(Happily making, type, juice!, Tralalala!);
 }
  }
 
  public class JuiceMaker
extends Button
  {
 
 private var _makerClass:Class;
 private var makerImpl:JuiceMaster;
 
 public function set makerClass(value:Class):void
 {
 _makerClass = value;
 makerImpl = new _makerClass();
 }
 
 public function set makerClass():Class
 {
 return makerImpl;
 }
 
 public function JuiceMaker()
 {
super();
 
// you could just make the default implementation here
// thats about as concrete as it gets
makerImpl = new JuiceMaker();
 }
 
 public function makeJuice(type:String):void
 {
if (makerImpl is JuiceMaster)
   makerImpl.makeJuice(type);
 }
  }
 
 
  Notice the types are concrete meaning you are programming to an
  implemented class, no polymorphism here.
 
  And note this is not 'real' decoration either.
 
  Real decoration means you pass a reference to an instance of the
  decorator and actually call the decorators methods.
 
  This is like Composition Decorating, and maybe there is some other OO
  word for it. I don't care about the technical of it just that it IS a
  pattern good for DisplayObjects.
 
  Peace, Mike
 
  On 9/12/07, Claudia Barnal  [EMAIL PROTECTED] wrote:
  
 Yeah, I had thought about something using composition. But somewhere
   I had read that the Decorator was what I needed :(
  
   I'll do it as you mentioned, but I would still love to hear about the
   Concrete class that you mention :)
  
   Thanks Michael!
  
   On 9/12/07, Michael Schmalle  [EMAIL PROTECTED] wrote:
  
  Oh yeah
   
JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
myJuiceMaker.makeJuice('orange') /
   
is supposed to be;
   
JuiceMaker id=myJuiceMaker makerClass={JuiceMaster} click=
myJuiceMaker.makeJuice('orange') /
   
   
 On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:
   
  Hi,

 You can't decorate a UIComponent since it is a DisplayObject and
 needs to be added to the display list.

 You have to either us composition or subclass Button and use an
 interface and pass the class to decorate the Button with.

 JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
 myJuiceMaker.makeJuice('orange') /


 class JuiceMaster
  implemented IJuiceMaker
 {
public function makeJuice(type:String):void
{
   trace(Happily making, type, juice!, Tralalala!);
}
 }

 public class JuiceMaker
   extends Button
   implemented IJuiceMaker
 {

private var _makerClass:Class;
private var makerImpl:IJuiceMaster;

public function set makerClass(value:Class):void
{
_makerClass = value;
makerImpl = new _makerClass();
}

public function set makerClass():Class
{
return makerImpl;
}

public function JuiceMaker()
{
   super();
}

public function makeJuice(type:String):void
{
   if (makerImpl is IJuiceMaker)
  makerImpl.makeJuice(type);
}
 }


 public interface IJuiceMaker
 {
 function makeJuice(type:String):void;
 }


 The above is something that would help what you are trying to
 achieve with display object.

 You could also drop the interfaces and use concrete types but hey,
 if your asking about decorators, your asking about design patterns. 
 ;-)

 Peace, Mike

 On 9/12/07, Claudia Barnal  [EMAIL PROTECTED] wrote:
 
I believe I might be missing something with the Decorator
  Pattern.
  I've tried to get a simple example to work, but I get too mixed
  up
  with all the abstracts and what not.
 
  Here's what I'm trying to do:
 
  Extend a Button and add some functionality to it gotten from
  another

[flexcoders] Decorator Pattern 101

2007-09-12 Thread Claudia Barnal
I believe I might be missing something with the Decorator Pattern.
I've tried to get a simple example to work, but I get too mixed up
with all the abstracts and what not.

Here's what I'm trying to do:

Extend a Button and add some functionality to it gotten from another
class (non visual). From what I can understand, this is what the
Decorator Pattern is for.

In pseudo code this is the basic functionality I want:

class JuiceMaster
{
public function makeJuice(type:String):void
{
trace(Happily making, type,  juice!, Tralalala!);
}
}

class JuiceMaker extends Button
{
public function JuiceMaker()
{
Super();
makeJuice(apple);
}
}

And in MXML, I should be able to do something like this:

JuiceMaker id=myJuiceMaker click=myJuiceMaker.makeJuice('orange') /

Of course this example isn't going into any detail, and doesn't make
much sense, but this is somewhat my need.

Any explicit explanation on how to get something like this to work
with the Decorator Pattern is greatly appreciated.

Thanks!


[flexcoders] Running Executables from AIR

2007-09-12 Thread Claudia Barnal
Is it possible to run executables or command lines from an AIR
application, if so... any pointers to where that procedure is
explained?

Thanks!
Claudia


Re: [flexcoders] Decorator Pattern 101

2007-09-12 Thread Claudia Barnal
Yeah, I had thought about something using composition. But somewhere I had
read that the Decorator was what I needed :(

I'll do it as you mentioned, but I would still love to hear about the
Concrete class that you mention :)

Thanks Michael!

On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:

   Oh yeah

 JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
 myJuiceMaker.makeJuice('orange') /

 is supposed to be;

 JuiceMaker id=myJuiceMaker makerClass={JuiceMaster} click=
 myJuiceMaker.makeJuice('orange') /


 On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:
 
  Hi,
 
  You can't decorate a UIComponent since it is a DisplayObject and needs
  to be added to the display list.
 
  You have to either us composition or subclass Button and use an
  interface and pass the class to decorate the Button with.
 
  JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
  myJuiceMaker.makeJuice('orange') /
 
 
  class JuiceMaster
   implemented IJuiceMaker
  {
 public function makeJuice(type:String):void
 {
trace(Happily making, type, juice!, Tralalala!);
 }
  }
 
  public class JuiceMaker
extends Button
implemented IJuiceMaker
  {
 
 private var _makerClass:Class;
 private var makerImpl:IJuiceMaster;
 
 public function set makerClass(value:Class):void
 {
 _makerClass = value;
 makerImpl = new _makerClass();
 }
 
 public function set makerClass():Class
 {
 return makerImpl;
 }
 
 public function JuiceMaker()
 {
super();
 }
 
 public function makeJuice(type:String):void
 {
if (makerImpl is IJuiceMaker)
   makerImpl.makeJuice(type);
 }
  }
 
 
  public interface IJuiceMaker
  {
  function makeJuice(type:String):void;
  }
 
 
  The above is something that would help what you are trying to achieve
  with display object.
 
  You could also drop the interfaces and use concrete types but hey, if
  your asking about decorators, your asking about design patterns. ;-)
 
  Peace, Mike
 
  On 9/12/07, Claudia Barnal  [EMAIL PROTECTED] wrote:
  
 I believe I might be missing something with the Decorator Pattern.
   I've tried to get a simple example to work, but I get too mixed up
   with all the abstracts and what not.
  
   Here's what I'm trying to do:
  
   Extend a Button and add some functionality to it gotten from another
   class (non visual). From what I can understand, this is what the
   Decorator Pattern is for.
  
   In pseudo code this is the basic functionality I want:
  
   class JuiceMaster
   {
   public function makeJuice(type:String):void
   {
   trace(Happily making, type, juice!, Tralalala!);
   }
   }
  
   class JuiceMaker extends Button
   {
   public function JuiceMaker()
   {
   Super();
   makeJuice(apple);
   }
   }
  
   And in MXML, I should be able to do something like this:
  
   JuiceMaker id=myJuiceMaker click=myJuiceMaker.makeJuice('orange')
   /
  
   Of course this example isn't going into any detail, and doesn't make
   much sense, but this is somewhat my need.
  
   Any explicit explanation on how to get something like this to work
   with the Decorator Pattern is greatly appreciated.
  
   Thanks!
  
 
 
 
  --
  Teoti Graphix
  http://www.teotigraphix.com
 
  Blog - Flex2Components
  http://www.flex2components.com
 
  You can find more by solving the problem then by 'asking the question'.




 --
 Teoti Graphix
 http://www.teotigraphix.com

 Blog - Flex2Components
 http://www.flex2components.com

 You can find more by solving the problem then by 'asking the question'.

  



[flexcoders] Embed MP3 through CSS

2007-05-30 Thread Claudia Barnal
Hi,

I'm trying to define a sound trough CSS, but it wont work. It will
only work if I embed the MP3 trough ActionScript. I find it a bit
unfair (for the MP3 file) that it will only work with images and not
with MP3s.

Below is an ActionScript embed of a PNG and an MP3 file and a CSS
embed of the same files. In the first one both files are embedded, in
the second, only the PNG is embedded... Why?



// This works for both files:

[Embed(source=image.png)]
public var image:Class;

[Embed(source=sound.mp3)]
public var sound:Class;




// This works only for the PNG:

MyComp
{
image: Embed(source=image.png);
sound: Embed(source=sound.mp3);
}



Thanks,
Claudia


[flexcoders] Lightweight Image Embedd

2007-05-15 Thread Claudia Barnal
Hi all,

What is the most lightweight way to embed an image.

I am guessing it would involve Extending/Implementing the DisplayObject class.
I don't want the overhead involved using anything spawned of the UIComponent.

Thanks,
Claudia


Re: [flexcoders] Click through a Container

2007-04-28 Thread Claudia Barnal

Yeah, as Juan told me, tried it and it works great :) Thanks!

So here is another question... What if I have other controls in that
container that also need mouse interactivity?

As it is, the mouseEnabled property works great if I want to click through
the container, but what if that container has controls that need to be
clicked and stuff?

Thanks again,
Claudia

On 4/27/07, Gordon Smith [EMAIL PROTECTED] wrote:


   Isn't there something like turn shield on or off?
Doh! I forgot! Try setting the mouseEnabled property of your Canvas to
false.

- Gordon


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Claudia Barnal
*Sent:* Thursday, April 26, 2007 3:46 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Click through a Container



Hi Gordon,

I do need as much interactivity as possible :)

Isn't there something like turn shield on or off? I noticed that if you
don't define a background color or alpha, you can interact with the button.

As for the actual WHY question... the answer is: The designer wants it.
It is really not just one button under the translucent piece... it is a
part of the application, and the button and other controls happens to be
right there.

Thanks,
Claudia

On 4/26/07, Gordon Smith [EMAIL PROTECTED] wrote:

I don't think this is easy to do. How much interactivity with the
 Button do you actually need? When you roll over the button, do you need it
 to highlight? When you click, do you need the button to depress? Or do you
 just need the button's click handler to execute?

 And I'm curious... why do you need to have a translucent Canvas over a
 Button?

 - Gordon

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Claudia Barnal
 *Sent:* Thursday, April 26, 2007 3:30 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Click through a Container



 Hi,

 How can I click through a Container (Canvas in my case) that has a
 backgroundColor set and a 0.2 backgroundAlpha.

 I want to be able to interact with a button that is under the Container.

 Thanks,
 Claudia


  



[flexcoders] Click through a Container

2007-04-26 Thread Claudia Barnal
Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia


Re: [flexcoders] Click through a Container

2007-04-26 Thread Claudia Barnal

Hi Gordon,

I do need as much interactivity as possible :)

Isn't there something like turn shield on or off? I noticed that if you
don't define a background color or alpha, you can interact with the button.

As for the actual WHY question... the answer is: The designer wants it.
It is really not just one button under the translucent piece... it is a part
of the application, and the button and other controls happens to be right
there.

Thanks,
Claudia

On 4/26/07, Gordon Smith [EMAIL PROTECTED] wrote:


   I don't think this is easy to do. How much interactivity with the
Button do you actually need? When you roll over the button, do you need it
to highlight? When you click, do you need the button to depress? Or do you
just need the button's click handler to execute?

And I'm curious... why do you need to have a translucent Canvas over a
Button?

- Gordon

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Claudia Barnal
*Sent:* Thursday, April 26, 2007 3:30 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Click through a Container

 Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia

 



Re: [flexcoders] Re: Click through a Container

2007-04-26 Thread Claudia Barnal

Yep, that did the trick...

Thanks Juan!

On 4/26/07, scalenine [EMAIL PROTECTED] wrote:


  Try this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:Button x=48 y=31 label=Press Me click=input.text='Im under
a canvas';/
mx:TextInput x=170 y=31 id=input/
mx:Canvas x=10 y=10 width=152 height=69
backgroundColor=#f085f0 backgroundAlpha=.2 mouseEnabled=false
/mx:Canvas
/mx:Application

The trick is setting mouseEnabled=false on the Canvas.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Claudia
Barnal [EMAIL PROTECTED] wrote:

 Hi Gordon,

 I do need as much interactivity as possible :)

 Isn't there something like turn shield on or off? I noticed that if you
 don't define a background color or alpha, you can interact with the
button.

 As for the actual WHY question... the answer is: The designer wants it.
 It is really not just one button under the translucent piece... it
is a part
 of the application, and the button and other controls happens to be
right
 there.

 Thanks,
 Claudia

 On 4/26/07, Gordon Smith [EMAIL PROTECTED] wrote:
 
  I don't think this is easy to do. How much interactivity with the
  Button do you actually need? When you roll over the button, do you
need it
  to highlight? When you click, do you need the button to depress?
Or do you
  just need the button's click handler to execute?
 
  And I'm curious... why do you need to have a translucent Canvas over a
  Button?
 
  - Gordon
 
  --
  *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
  Behalf Of *Claudia Barnal
  *Sent:* Thursday, April 26, 2007 3:30 PM
  *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  *Subject:* [flexcoders] Click through a Container
 
  Hi,
 
  How can I click through a Container (Canvas in my case) that has a
  backgroundColor set and a 0.2 backgroundAlpha.
 
  I want to be able to interact with a button that is under the
Container.
 
  Thanks,
  Claudia
 
 
 


 



Re: [flexcoders] Re: Usage of showDefaultContextMenu in Application/

2006-09-05 Thread Claudia Barnal
Thanks a lot Tim, it works fine.

I'm surprised Adobe decided to not leave this as a default setting, as
in Flex 1.5. I am quite sure very few apps are meant to be zoomed in.

On 9/5/06, Tim Hoff [EMAIL PROTECTED] wrote:




 This might not be the best way, but it works:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=callLater(init);

 mx:Script
   ![CDATA[

 private function init():void {
 stage.showDefaultContextMenu = false;
 }

   ]]
 /mx:Script

 /mx:Application


 -TH

 --- In flexcoders@yahoogroups.com, Claudia Barnal [EMAIL PROTECTED] wrote:
 

  Tim,
 
  Thanks for your reply :)
 
   You'll have to wait until the stage object is available to the 
   application.
 
  How would I do that?
 
   It only removes the top three menu options.
 
  I'm quite happy with that. I basically want to remove the scaling
  options and whatnot.
 

  On 9/4/06, Tim Hoff [EMAIL PROTECTED] wrote:
   Hi Claudia,
  
   You are correct on both counts. You're getting an error because of
   timing. You'll have to wait until the stage object is available to
   the application. However, setting the showDefaultContextMenu
   property to false doesn't entirely remove the context menu. It only
   removes the top three menu options. As far as I know you can't
   eliminate the context menu completely.
  
   -TH
 



 


 

 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Usage of showDefaultContextMenu in Application/

2006-09-04 Thread Claudia Barnal
I tried doing this:

mx:Script
   ![CDATA[
  stage.showDefaultContextMenu = false; 
   ]]
/mx:Script

But it throws an error. How should I apply this, to avoid having the
default contect menu showing in my flex app?

Thanks,
Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Usage of showDefaultContextMenu in Application/

2006-09-04 Thread Claudia Barnal
Is this one of those things that are too simple to explain, or is it
one of those things that are impossible to do, for which there is no
explanation?

Thanks,
Claudia

On 9/4/06, Claudia Barnal [EMAIL PROTECTED] wrote:
 I tried doing this:

 mx:Script
   ![CDATA[
  stage.showDefaultContextMenu = false;
   ]]
 /mx:Script

 But it throws an error. How should I apply this, to avoid having the
 default contect menu showing in my flex app?

 Thanks,
 Claudia



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Usage of showDefaultContextMenu in Application/

2006-09-04 Thread Claudia Barnal
Tim,

Thanks for your reply :)

 You'll have to wait until the stage object is available to the application.

How would I do that?

 It only removes the top three menu options.

I'm quite happy with that. I basically want to remove the scaling
options and whatnot.

On 9/4/06, Tim Hoff [EMAIL PROTECTED] wrote:
 Hi Claudia,

 You are correct on both counts.  You're getting an error because of
 timing.  You'll have to wait until the stage object is available to
 the application.  However, setting the showDefaultContextMenu
 property to false doesn't entirely remove the context menu.  It only
 removes the top three menu options.  As far as I know you can't
 eliminate the context menu completely.

 -TH


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: creationComplete on custom non UI component

2006-06-15 Thread Claudia Barnal
Gordon and Michael,

Thanks a lot for your help, that does the trick.

(Michael, sorry I didn't reply to your last question, but I have just
checked my emails since)

On 6/14/06, Michael Schmalle [EMAIL PROTECTED] wrote:

 Ah,

 I see the light, I was wondering about that.

 Thanks Gordon.

 Peace, Mike

 On 6/14/06, Gordon Smith [EMAIL PROTECTED] wrote:
  Declare that your non-visual component implements IMXMLObject. The 
  initialize() method will be called when the MXML properties have been set 
  on your component:


 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: creationComplete on custom non UI component

2006-06-13 Thread Claudia Barnal
So, is there no way to catch when the MXML variable values are
accessible in the AS of a custom component?

On 6/11/06, Claudia Barnal [EMAIL PROTECTED] wrote:
 Is there a best practice for making something similar to a
 creationComplete method on a non UI component that extends
 EventDispatcher?

 I am not sure this is what I need, but let me explain my situation:

 !-- In the MXML --
 MyComponent someValue=10 

 The problem is that I can't get to the someValue (10 in this case) i
 have set in the MXML before the component has been instantiated or
 something. So my question is really:

 How do I know when I have access to the someValue=10 set in MXML,
 within the AS component?



 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: creationComplete on custom non UI component

2006-06-13 Thread Claudia Barnal
Hi Michael, thanks for your reply.

 So it's not subclassed from the Flex framework?
Exactly, it is a non visual AS component.

Example:
!-- In the MXML --
MyComponent someValue=10 

// In the AS
class MyComponent{

   public var someValue:Number;

   public function MyComponent(){

  trace(someValue); // I am not getting the value set in MXML

   }
}

I am using the mx.binding.utils.ChangeWatcher to check when the var
receives the value from MXML, but I don't think it is the way to go,
but it is the only solution I could find :|

Any ideas?

Thanks.


 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: creationComplete on custom non UI component

2006-06-13 Thread Claudia Barnal
That would also work, the problem is that I really don't want to check
each time the value changes, I only wan't to know _when_ I have access
to the value assigned on the MXML for the first time. Having that
value I can continue with the rest of the component's execution.

Thanks again for your help Michael,
Claudia



On 6/13/06, Michael Schmalle [EMAIL PROTECTED] wrote:


 Hi,

 What about adding;

 [Bindable]
 public function set someValue(value:Number):void
 {
trace(value changed, value)
// do something
 }


 I don't know if that is what you are looking for..

 Peace, Mike


 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: creationComplete on custom non UI component

2006-06-13 Thread Claudia Barnal
That works just fine :) I really appreciate your help, thanks.

But...
It is somewhat the same principle as the ChangeWatcher idea. I even
get the same warning when compiling using both methods:
warning: unconverted Bindable metadata in class blah blah

So, I am wondering if there is no way to know when the values are accessible.

What do our Adobe friends say about this little question? Is it
something that could possibly be done without warnings in the IDE? Is
it something that could be done?

Thanks again Michael, for your time and persistence.
Claudia

On 6/13/06, Michael Schmalle [EMAIL PROTECTED] wrote:


 Hi,

 what about;

 What about adding;

 private var bInitialized:Boolean = false;


 public function set someValue(value:Number):void
 {

if (!bInitialized) {
   initialize()
   bInitialized = true;
}
 }

 private function initialize():void
 {
// execute one time only code for component initialization
 }

 ? :)

 Peace, Mike


 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: creationComplete on custom non UI component

2006-06-13 Thread Claudia Barnal
 why do you need it bindable if you are only checking it once? (IE if you used 
 a setter with a boolean flag) ?

I really wish I didn't need to bind, but that is the only way I can
catch a change, after the _first_ change I unvatch the property. For
some reason I get the same warning when using the setter with a
boolean flag(???).

I also have very little experience with this kind of problem :)


 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] creationComplete on custom non UI component

2006-06-11 Thread Claudia Barnal
Is there a best practice for making something similar to a
creationComplete method on a non UI component that extends
EventDispatcher?

I am not sure this is what I need, but let me explain my situation:

!-- In the MXML --
MyComponent someValue=10 

The problem is that I can't get to the someValue (10 in this case) i
have set in the MXML before the component has been instantiated or
something. So my question is really:

How do I know when I have access to the someValue=10 set in MXML,
within the AS component?


 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] [F2 B3] Calling functions on loaded SWF

2006-06-01 Thread Claudia Barnal



Thanks a lot Stephen! I'll have a look at it now.

On 5/31/06, Stephen Gilson [EMAIL PROTECTED] wrote:
 If you are using Beta 3, you can see an example here:

 Flex 2.0 Developer's Guide  Flex Programming Topics  Embedding Assets  Embedding asset types  Embedding SWF files  Embedding SWF files that represent Flex 2.0 applications at

 http://livedocs.macromedia.com/labs/1/flex20beta3/0994.html#175759

 One note though, in this line:

 mx:SWFLoader id=myLoader width=300
 source=@Embed(source='local.swf')
 creationComplete=initNestedAppProps();/

 do not use the @Embed, but import at run time using this line:

 mx:SWFLoader id=myLoader width=300
 source=local.swf
 creationComplete=initNestedAppProps();/

 Stephen






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] [F2 B3] Calling functions on loaded SWF

2006-05-31 Thread Claudia Barnal



Yeah, I am using the Loader and content property, but I can't get
access to the _methods_ inside a Script tag within the Application
(main.mxml) of the loaded SWF.

Am I supposed to put the functions somewhere else, or is there
something else I might be missing?

Thanks,
Claudia

On 5/30/06, Tracy Spratt [EMAIL PROTECTED] wrote:
 How are you loading the swf? Typically you can access public members of a swf loaded by Loader or Image using the content porperty.

 myLoader.content.myPublicMember;

 For going up, I think you use parentDocument.

 Tracy






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] [F2 B3] Calling functions on loaded SWF

2006-05-31 Thread Claudia Barnal



I think that is only when you are not trying to communicate between
two Flex 2 apps (SWFs). But I am trying to communicate between two
Flex 2 SWFs (FP9), But can't find any useful documentation.

On 5/31/06, Tim Scollick [EMAIL PROTECTED] wrote:

 I think that the only way to communicate between AVM1 and AVM2 movies other than with frame actions (gotoAndPlay, stop, etc) is through a SharedObject.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] [F2 B3] Calling functions on loaded SWF

2006-05-30 Thread Claudia Barnal



Is there any documentation on how to call methods on a loaded SWF in
F2 B3 and the other way around? I am not able to find anything.

I.e. Main app calls method on external SWF. External SWF calls method
on Main app.

Thanks for any help






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Flex 2 - Cairngorm 2 Tutorial

2006-05-19 Thread Claudia Barnal



I am trying to get my hands on a turorial or sample app that covers
Flex 2 and Cairngorm 2.

I know these are both in beta, but I can only find Cairngorm 0.99
stuff, so any directions would be great.

Thanks,
Claudia






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Checking for ApplicationControlBar on parent

2006-05-18 Thread Claudia Barnal



Just checking if anyone is able to reproduce this, or if anyone has a
better way to do this.

Thanks,
Claudia

On 5/17/06, Claudia Barnal [EMAIL PROTECTED] wrote:
 Sure (and thanks for looking into this):

 APP:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* 
 mx:ApplicationControlBar dock=true
 mx:Button label=Button/
 /mx:ApplicationControlBar
 MyPanel width=100% height=100% /
 /mx:Application



 COMPONENT (MyPanel):
 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml
 creationComplete=creationCompleteHandler()
 mx:Script
 ![CDATA[
 private function creationCompleteHandler():void
 {
 // trace(parent); // Works
 trace(parent.controlBar); // Gives warning
 }
 ]]
 /mx:Script
 /mx:Panel

 On 5/17/06, Manish Jethani [EMAIL PROTECTED] wrote:
  On 5/17/06, Claudia Barnal [EMAIL PROTECTED] wrote:
 
   This is the error message I get:
   Access of possibly undefined property controlBar through a reference
   with static type flash.display:DisplayObjectContainer.
 
  So you're accessing the controlBar property, which is public, and
  getting this error? Can you post a small sample that reproduces this
  problem?







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Checking for ApplicationControlBar on parent

2006-05-18 Thread Claudia Barnal



 You have to cast 'parent' to type Application.

Thanks Manish, that's what I needed :)






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] [F2B3] Class Library

2006-05-16 Thread Claudia Barnal



Hi, I'm building a Class Library for Flex 2 B3 (both .as and .mxml)
that I want to reuse and expand throughout most of my projects, if not
all.

What is the best way to handle this and how would I do it (settings in
Eclipse, folder location, import values in AS, etc.)?

I couldn't find any Best Practice documentation for Flex 2, so I
thought you guys could help me out.

Thanks,
Claudia






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Re: [F2B3] Class Library

2006-05-16 Thread Claudia Barnal



Hi Stefan,

Thanks for your info, I'm looking into Cairngorm too, but I was
reffering more on my own custom components and classes that I want to
reuse in a proper way rather than say, copy and paste the needed
files into each project folder I build.

Thanks,
Claudia

On 5/16/06, stefan_schmalhaus [EMAIL PROTECTED] wrote:
 --- In flexcoders@yahoogroups.com, Claudia Barnal [EMAIL PROTECTED] wrote:

  I couldn't find any Best Practice documentation for Flex 2, so I
  thought you guys could help me out.

 Claudia,

 Maybe you should take a look at the Cairngorm framework first before
 you start from scratch. A lot of common design problems have already
 been solved here. Steven Webster's six-part article series is an
 excellent introduction:

 http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html


 Stefan






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Re: [F2B3] Class Library

2006-05-16 Thread Claudia Barnal



I seperate Projects in FB2, but use the same classpath for SHARED core things.

This sounds just about what I am looking after... and is what I can't achieve.

How do you import these classes if they are outside your project folder/package?

It might be an extremely obvious answer, but I can't get hold of it :(

Thanks Michael,
Claudia

On 5/16/06, Michael Schmalle [EMAIL PROTECTED] wrote:


 Hi,

 Use classpaths.

 I have one classpath that is hooked into subversion. IE c:/Flex/classes/com/teotiGraphix/...

 I seperate Projects in FB2, but use the same classpath for SHARED core things. But a component or application that needs it's own 'tear off class file stub', I create it in the project directory. IE If you wanted to zip up the 'component' dependencies without the core. Also, it's a way to not look at everything at once.

 This then acts as multiple layers that exist in that core classes class path.

 Don't take my word for it, trying to find info like this is hard right now becasue Flex is still creating best proctices.

 Peace, Mike

 PS, I am a framework component developer and this works great for libraries that you speak of.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Re: [F2B3] Class Library

2006-05-16 Thread Claudia Barnal



Great, that's what I was looking for.

Thanks a lot Mike

Obviously you are less of a newbie than I am ;)

On 5/16/06, Michael Schmalle [EMAIL PROTECTED] wrote:


 Hi,

 Ok, you need to;

 1) Open you Project in FB2
 2) Right Click on your Project's main node
 3) Select properties
 4) Select Flex Build Path
 5) Select the Source path Tab
 6) hit Add Folder
 7) Navigate to your shared classes folder
 - if say you have /classes/com/teotiGraphix
 8) Select the classes folder as the root becasue it contains the start of your classpath 'com'
 9) hit OK and you now are sharing your classpath with any project you want.

 Things to note;

 When you do this, you can create new folders, .as, .mxml files right in the linked classpath.
 Watch if you use subversion when deleting files.

 Other than that from a newbie with Eclipse, it works good for me right now.

 Peace, Mike




 On 5/16/06, Claudia Barnal [EMAIL PROTECTED] wrote:

 
 
 
 
  I seperate Projects in FB2, but use the same classpath for SHARED core things.
 
 
  This sounds just about what I am looking after... and is what I can't achieve.
 
  How do you import these classes if they are outside your project folder/package?
 
  It might be an extremely obvious answer, but I can't get hold of it :(
 
  Thanks Michael,
  Claudia
 
 
  On 5/16/06, Michael Schmalle [EMAIL PROTECTED] wrote:
  
  
 
   Hi,
  
   Use classpaths.
  
   I have one classpath that is hooked into subversion. IE c:/Flex/classes/com/teotiGraphix/...
  
   I seperate Projects in FB2, but use the same classpath for SHARED core things. But a component or application that needs it's own 'tear off class file stub', I create it in the project directory. IE If you wanted to zip up the 'component' dependencies without the core. Also, it's a way to not look at everything at once.
  
   This then acts as multiple layers that exist in that core classes class path.
  
   Don't take my word for it, trying to find info like this is hard right now becasue Flex is still creating best proctices.
  
   Peace, Mike
  
   PS, I am a framework component developer and this works great for libraries that you speak of.
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
 
 
  SPONSORED LINKS
  Web site design development Computer software development Software design and development
  Macromedia flex Software development best practice
 
 
  
YAHOO! GROUPS LINKS
 
 
 
  Visit your group flexcoders on the web.
 
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
 
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 
  

 
 




 --
 What goes up, does come down.

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




 SPONSORED LINKS
 Web site design development Computer software development Software design and development
 Macromedia flex Software development best practice

 
YAHOO! GROUPS LINKS


 Visit your group flexcoders on the web.

 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] PLEASE: Could someone at Adobe/Macromedia do a Carnigorm Video Intro.

2006-04-26 Thread Claudia Barnal



Hi Michael,

I would love to have a look at your sample app! And I guess many
others might be, and surely many others will be in the future when
Flex 2 comes out. So be prepared to receive many requests. ;)

Thanks,
Claudia


On 4/26/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have a very (very) simple sample app that I use to illustrate how to get
 the ball rolling with Cairngorm2 that I can send to you. It includes
 documentation on how to add your own dispatchEvent in step-by-step
 instructions. I'm not knocking the Cairngorm2 'Login' example, but I think
 that a 'hold-your-hand' example is helpful for those getting familiar with
 patterns.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] F2B2 : Eclipse : Changing the Documents location

2006-04-07 Thread Claudia Barnal
Matt,

Based on this and on our conversation 4 days ago
(Developing/Compiling Java in Flexbuilder 2), will you guys be
recomending using the Eclipse plugin over the standalone install in
the future?

Thanks,
Claudia

On 4/7/06, Matt Chotin [EMAIL PROTECTED] wrote:
 Unfortunately the bug that we have filed for that was deferred.  If you
 use the Eclipse plugin instead of the standalone install you don't run
 into this (not much comfort I know).

 Matt


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] [OT] Developing/Compiling Java in Flexbuilder 2

2006-04-03 Thread Claudia Barnal
Matt, you are right. It might be overkill including the whole thing,
but why not provide some friendly and helpful instructions on how
create different development setups with the required
plugins/downloads. I think most of us would find that a time saver,
plus you get the benefit of letting Flex newcomers know that they can
develop Java (and others) in the same IDE. I'm sure most of them would
find that very attractive.

See, now you have a new sales pitch for Flex(builder) 2 :)

Thanks,
Claudia

On 4/2/06, Matt Chotin [EMAIL PROTECTED] wrote:
 Do you guys really want the installer to grow by that much more?  I
 think it's fine if we want to include docs on how to download Eclipse,
 but I'm not sure you really want Adobe re-bundling the Java IDE in its
 own installer.  I suppose we could make the installer more clear to say
 when you're selecting what to install that you should do the plugin if
 you want to develop Java also.  But I think it's probably not a great
 idea for us to include the JDT itself.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] [Flex 1.5] Tweening _xscale and _yscale

2006-04-03 Thread Claudia Barnal
Could anyone shed some light on how to make a tween transition of
_xscale and _yscale of a component in Flex 1.5. I don't want to use
the Zoom class, as it doesn't really do what I want.

Thanks,
Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] [OT] Developing/Compiling Java in Flexbuilder 2

2006-03-30 Thread Claudia Barnal
Hi,

I've been told I can use Flexbuilder 2 to do my Java stuff, as it is
an Eclipse based IDE. But I am a bit lost with ALL the Java plugins
needed (and available) for Eclipse. So I was wondering if you guys
knew the required steps and plugins needed to make Flexbuilder 2 Java
enabled, or if you know any links to a tutorial that explains these
steps.

(By the way, I have been using  Flexbuilder 2/Eclipse for a few days,
so there are a lot of things I have yet to learn about it)

Thanks,
Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] [OT] Developing/Compiling Java in Flexbuilder 2

2006-03-30 Thread Claudia Barnal
Richard,

Thanks for the info, I had thought of doing so, but had (still have)
the doubt if there was an easier way of integrating Java, being the
case that I have already installed Flexbuilder and what not.



On 3/30/06, Richard Leggett [EMAIL PROTECTED] wrote:

 Don't install the standalone FlexBuilder 2, instead download the Eclipse SDK
 (eclipse.org) along with the JDK 1.5 (java.sun.com), unzip that to a
 directory, and then install FlexBuilder2 as a plug-in. That way you will
 automatically have the JDT and everything required for J2SE development (and
 J2EE if you have your app container already).

 Richard


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Focus within the Browser

2006-02-27 Thread Claudia Barnal
How can I know if the Application has the focus within the Browser.

I need to do something like this:

if ( playerHasFocus == true )
{
myMC._visible = true;
}
else
{
myMC._visible = false;
}

Thanks,
Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Help installing Cairngorm 0.99

2006-02-08 Thread Claudia Barnal
Yes, that actually did help removing some bugs, but I still couldn't
get the thing to compile, so I replaced the whole xml with the one
included in the cairngorm zip.

Thank you so much for your help.

On 2/6/06, Andrew Spaulding [EMAIL PROTECTED] wrote:
 Hi Claudia,

 What seems to be missing is the namespace declaration in the
 flex-config.xml file.

 You can find the flex-config.xml file in your Flex server instance at
 flex_root/WEB-INF/flex/flex-config.xml

 Look for the namespaces tag. It will look like this:

 namespaces
namespace uri=http://www.macromedia.com/2003/mxml;
manifest/WEB-INF/flex/mxml-manifest.xml/manifest
/namespace
 /namespaces

 and change it to:

 namespaces
namespace uri=http://www.macromedia.com/2003/mxml;
manifest/WEB-INF/flex/mxml-manifest.xml/manifest
/namespace
namespace uri=http://www.iterationtwo.com/cairngorm;
manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest
/namespace
 /namespaces

 You will also need to make sure that you have the
 cairngorm-manifest.xml file in your flex_root/WEB-INF/flex/
 directory. This can be found where you extracted cairngorm and inside
 the bin directory.

 This should solve your namespace problems. Let me know how you go.

 Thanks,

 Andrew Spaulding
 Adobe Systems




 --- In flexcoders@yahoogroups.com, Claudia Barnal [EMAIL PROTECTED] wrote:
 
  Maybe if I include the errors I get when trying to compile the login
  sample, you would be able to tell me what's wrong.
 
  7 Errors found.
 
  Error
 /login/webapp/org/nevis/cairngorm/samples/login/business/Services.mxml:22
  Namespace http://www.iterationtwo.com/cairngorm has not been
  associated with component manifest.
 
 
  Error
 /login/webapp/org/nevis/cairngorm/samples/login/business/Services.mxml:22
  No type for element
 http://www.iterationtwo.com/cairngorm:ServiceLocator;
 
 
  Error
 /login/webapp/org/nevis/cairngorm/samples/login/business/Services.mxml:22
  Unexpected root element
  http://www.iterationtwo.com/cairngorm:ServiceLocator; does not extend
  MovieClip
 
 
  Error /login/webapp/Index.mxml:43
  Don't know how to parse element
  org.nevis.cairngorm.samples.login.business.*:Services. It is not a
  known type or a property of mx.core.Application.
 
 
  Error /login/webapp/Index.mxml:46
  Don't know how to parse element
  org.nevis.cairngorm.samples.login.control.*:DemoControl. It is not a
  known type or a property of mx.core.Application.
 
 
  Error /login/webapp/Index.mxml:50
  Don't know how to parse element
  org.nevis.cairngorm.samples.login.view.*:IndexViewHelper. It is not
  a known type or a property of mx.core.Application.
 
 
  Error /login/webapp/Index.mxml:53
  Don't know how to parse element
  http://www.macromedia.com/2003/mxml:ViewStack;. It is not a known
  type or a property of mx.core.Application.
 
  Claudia
 







 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Help installing Cairngorm 0.99

2006-02-06 Thread Claudia Barnal
Heh, none taken...

I've been playing arround with Flex for some months already (MXML and
ActionScript). I have quite a big understanding of what Cairngorm is
and what it could be used for (I use ARP for Flash) but I would love
to give Cairngorm a go.

The fact that I am a GUI girl and usually never mess with the server
(I do interact with servers, not set them up) wuldn't really mean I
don't have a need for Cairngorm to develop a Flex app.

Claudia

On 2/6/06, Alex Uhlmann [EMAIL PROTECTED] wrote:


 Hi Claudia,


 No offense here, but maybe it's best if you start looking at Flex itself 
 first before diving into an architectual framework, such as Cairngorm. Get 
 some Flex examples running, that connect to the serverside. When you've build 
 some applications, you can also much more easily understand why we use those 
 pattterns because you might imagine the problems that can come up.

 With problems such as user_classes you can find those in the Flex 
 documentations, such as livedocs.macromedia.com. The user_classes folder is 
 often used for Flex components packaged as SWC files, such as cairngorm.swc. 
 Just drop this file into user_classes, and you have the framework code in 
 your project availaible.

 Anyway, I'll check the docs for things we can make better.


 Best,
 Alex







 Alex Uhlmann
 Technical Consultant (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6969
 m: +44 (0) 7917 428 951
 [EMAIL PROTECTED]





 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
 Claudia Barnal
 Sent: 06 February 2006 03:25
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Help installing Cairngorm 0.99


 Hi Andrew,

 Thanks for the reply.

 Basically, I couldn't understand much of anything I read (imagine Charlie 
 Brown listening to his teacher).

 I am not a person who has dealt with any servers (JRun, Flex, etc.) for which 
 I believe that the explanation is far to simple, expecting that the user 
 knows what is being said.

 I would love an explanation where you tell the user what to do with each 
 specific file (included in the zip) with some more detail.

 1. Grab x and put it in y.
 2. Replace i with j.
 3. Don't do anything with k, as it is only for documentaion.
 n. ...
 Done

 For example, I am not sure if I should copy over the cairngorm.swc
 or the org.nevis.cairngorm.* package to the user_classes folder in Flex.

 I am by no means saying that the description doesn't cover every necessary 
 step, but it is very hard to follow if you really don't have a clue of what 
 is being said, and all you want to do is start using Cairngorm to develop 
 your Flex apps.

 Thanks again for the reply,
 Claudia


 On 2/5/06, Andrew Spaulding [EMAIL PROTECTED] wrote:
  Hi Claudia,
 
  The installation instructions were quite specific. Can you please
  provide some further information as to what exactly isn't working?
  This will help me (us) better provide a solution to your problem.
 
  Thanks,
 
  Andrew Spaulding
  Adobe Systems
 
 
  --- In flexcoders@yahoogroups.com, Claudia Barnal [EMAIL PROTECTED] wrote:
  
   Hi,
  
   Would it be possible if you guys could give me a hand installing
   Cairngorm (I'm using Flex 1.5).
  
   I tried following the the installation guide
   (InstallationGuide.pdf), but all I achieved was to get even more
   lost, as it doesn't really give you any simple and descriptive 
   instructions.
  
   I have installed Flex with the integrated JRun Server and everything
   is in the default installation folder.
  
   Thanks a lot for any guidance.
  
   Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Help installing Cairngorm 0.99

2006-02-06 Thread Claudia Barnal
Maybe if I include the errors I get when trying to compile the login
sample, you would be able to tell me what's wrong.

7 Errors found.

Error /login/webapp/org/nevis/cairngorm/samples/login/business/Services.mxml:22
Namespace http://www.iterationtwo.com/cairngorm has not been
associated with component manifest.


Error /login/webapp/org/nevis/cairngorm/samples/login/business/Services.mxml:22
No type for element http://www.iterationtwo.com/cairngorm:ServiceLocator;


Error /login/webapp/org/nevis/cairngorm/samples/login/business/Services.mxml:22
Unexpected root element
http://www.iterationtwo.com/cairngorm:ServiceLocator; does not extend
MovieClip


Error /login/webapp/Index.mxml:43
Don't know how to parse element
org.nevis.cairngorm.samples.login.business.*:Services. It is not a
known type or a property of mx.core.Application.


Error /login/webapp/Index.mxml:46
Don't know how to parse element
org.nevis.cairngorm.samples.login.control.*:DemoControl. It is not a
known type or a property of mx.core.Application.


Error /login/webapp/Index.mxml:50
Don't know how to parse element
org.nevis.cairngorm.samples.login.view.*:IndexViewHelper. It is not
a known type or a property of mx.core.Application.


Error /login/webapp/Index.mxml:53
Don't know how to parse element
http://www.macromedia.com/2003/mxml:ViewStack;. It is not a known
type or a property of mx.core.Application.

Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Help installing Cairngorm 0.99

2006-02-05 Thread Claudia Barnal
Hi,

Would it be possible if you guys could give me a hand installing
Cairngorm (I'm using Flex 1.5).

I tried following the the installation guide (InstallationGuide.pdf),
but all I achieved was to get even more lost, as it doesn't really
give you any simple and descriptive instructions.

I have installed Flex with the integrated JRun Server and everything
is in the default installation folder.

Thanks a lot for any guidance.

Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Help installing Cairngorm 0.99

2006-02-05 Thread Claudia Barnal
Hi Andrew,

Thanks for the reply.

Basically, I couldn't understand much of anything I read (imagine
Charlie Brown listening to his teacher).

I am not a person who has dealt with any servers (JRun, Flex, etc.)
for which I believe that the explanation is far to simple, expecting
that the user knows what is being said.

I would love an explanation where you tell the user what to do with
each specific file (included in the zip) with some more detail.

1. Grab x and put it in y.
2. Replace i with j.
3. Don't do anything with k, as it is only for documentaion.
n. ...
Done

For example, I am not sure if I should copy over the cairngorm.swc
or the org.nevis.cairngorm.* package to the user_classes folder in
Flex.

I am by no means saying that the description doesn't cover every
necessary step, but it is very hard to follow if you really don't have
a clue of what is being said, and all you want to do is start using
Cairngorm to develop your Flex apps.

Thanks again for the reply,
Claudia


On 2/5/06, Andrew Spaulding [EMAIL PROTECTED] wrote:
 Hi Claudia,

 The installation instructions were quite specific. Can you please
 provide some further information as to what exactly isn't working?
 This will help me (us) better provide a solution to your problem.

 Thanks,

 Andrew Spaulding
 Adobe Systems


 --- In flexcoders@yahoogroups.com, Claudia Barnal [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Would it be possible if you guys could give me a hand installing
  Cairngorm (I'm using Flex 1.5).
 
  I tried following the the installation guide (InstallationGuide.pdf),
  but all I achieved was to get even more lost, as it doesn't really
  give you any simple and descriptive instructions.
 
  I have installed Flex with the integrated JRun Server and everything
  is in the default installation folder.
 
  Thanks a lot for any guidance.
 
  Claudia


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/