[flexcoders] Re: Populate Tree with data from a query?

2007-02-08 Thread malik_robinson
Hi,

Just wanted to post back and say I got it all working with the help you
guys provided.  The problem was my initial xml was incorrect.  I did not
need a label function at least from what I can tell.  I used
"labelField="@name" and that worked fine.

Thanks,

Malik
--- In flexcoders@yahoogroups.com, "malik_robinson" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I will try this tonight and see how it goes.  It seems with
> RemoteObjects you can't have the resultFormat = e4x like you can with
> an HTTPService call.  With e4x its much easier to get at the xml from
> what I understand.
>
> -Malik
>
>
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote:
> >
> > You will need a labelFunction() to define the label for complex xml.
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> > Behalf Of jensen.axel
> > Sent: Wednesday, February 07, 2007 3:33 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Populate Tree with data from a query?
> >
> >
> >
> > Malik,
> >
> > I'm not sure if your xml has to be formatted that way, depending on
> > what your working with(if your getting your xml from a service that
is
> > already in place, and other code is already using that formatted
xml)
> > then you would be forced to use the xml as is...
> >
> > but if at all possible, try to format your xml this way
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > now you can use the label="@name" in your mx:Tree
> >
> > there are also some things you will definitely want to look at in
the
> > example on my blog...
> >
> > This issue was pondering me, so i made and example to see what was
> > going on, and your right it is acting weird in the tree... so anyway
> > check out the example... it's at the bottom of the page on my
blog...
> > it says "CLICK HERE TO VIEW THE EXAMPLE"
> >
> >
http://axel.cfwebtools.com/index.cfm/2007/2/6/Returning-a-query-to-flex-
> > as-xml
> >
 > -as-xml>
> >
> > I'm always looking for more subscribers and comments, so please
> > subscribe... I usually put up and example on almost every post,
unless
> > i'm just throwing up a link i want to remember.
> >
> > --- In flexcoders@yahoogroups.com

> > , "malik_robinson"
> >  wrote:
> > >
> > > Hi Tracy,
> > >
> > > When I do a trace as you indicated. I see this:
> > >
> > > 
> > > 
> > > 
> > > Bill Bates
> > > 
> > > 
> > > Mark Smith
> > > 
> > > 
> > > 
> > > 
> > > Larry Jobs
> > > 
> > > 
> > > 
> > >
> > > And this is what I see when my tree is rendered also.
> > >
> > > -Malik
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
> >  , "Tracy Spratt" 
wrote:
> > > >
> > > > Have you determined that model.treeData contains valid xml?
> > > > (trace(treeData.toXMLString())) If it does, then the tree should
> > work
> > > > like you have it. You will need to set the "labelField" property
for
> > > > the label, or use a labelFunction if the data you want for the
label
> > > is
> > > > not a top-level porperty/attribute of the item node.
> > > >
> > > >
> > > >
> > > > Also, I am not familiar with RemoteObject, so this may not
apply,
> > but
> > > > you may need to set resultFormat="e4x". Also, if the data
service
> > was
> > > > HTTPService, I would do the result handler like this:
> > > >
> > > > public function result( event:ResultEvent ):void {
> > > > var xmlResult:XML = XML(event.result);
> > > >
> > > > trace(xmlResult.toXMLString());
> > > > model.treeData = xmlResult;
> > > > }
> > > >
> > > >
> > > >
> > > > if you see good xml but are still having difficulty, take the
model
> > > > class out of the picture and assign the dataProvider directly:
> > > >
> > > > acTree.dataProvider = xmlResult;
> > > >
> > > >
> > > >
> > > > Tracy
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com
> > 
> > [mailto:flexcoders@yahoogroups.com

> > ]
> > > On
> > > > Behalf Of malik_robinson
> > > > Sent: Tuesday, February 06, 2007 3:09 PM
> > > > To: flexcoders@yahoogroups.com

> >
> > > > Subject: [flexcoders] Re: Populate Tree with data from a query?
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > That helps a bit, in my tree I am seeing the actual xml when I
run
> > my
> > > > application in flex. I have CFC function returning a string, I
tried
> > > > having return xml and same thing.
> > > >
> > > > ***
> > > > After I make my remote object call in my result handler I have
this:
> > > >
> > > > public function result( data:Object ):void {
> > > > var event:ResultEvent = data as ResultEvent
> > > > model.treeData = event.result as XML;
> > > > }
> > > >
> > > > It seems I have to cast it as XML otherwise in my "mode

[flexcoders] Re: Populate Tree with data from a query?

2007-02-08 Thread malik_robinson
Hi,

Just wanted to post back and say I got it all working with the help you
guys provided.  The problem was my initial xml was incorrect.  I did not
need a label function at least from what I can tell.  I used
"labelField="@name" and that worked fine.

Thanks,

Malik
--- In flexcoders@yahoogroups.com, "malik_robinson" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I will try this tonight and see how it goes.  It seems with
> RemoteObjects you can't have the resultFormat = e4x like you can with
> an HTTPService call.  With e4x its much easier to get at the xml from
> what I understand.
>
> -Malik
>
>
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote:
> >
> > You will need a labelFunction() to define the label for complex xml.
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> > Behalf Of jensen.axel
> > Sent: Wednesday, February 07, 2007 3:33 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Populate Tree with data from a query?
> >
> >
> >
> > Malik,
> >
> > I'm not sure if your xml has to be formatted that way, depending on
> > what your working with(if your getting your xml from a service that
is
> > already in place, and other code is already using that formatted
xml)
> > then you would be forced to use the xml as is...
> >
> > but if at all possible, try to format your xml this way
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > now you can use the label="@name" in your mx:Tree
> >
> > there are also some things you will definitely want to look at in
the
> > example on my blog...
> >
> > This issue was pondering me, so i made and example to see what was
> > going on, and your right it is acting weird in the tree... so anyway
> > check out the example... it's at the bottom of the page on my
blog...
> > it says "CLICK HERE TO VIEW THE EXAMPLE"
> >
> >
http://axel.cfwebtools.com/index.cfm/2007/2/6/Returning-a-query-to-flex-
> > as-xml
> >
 > -as-xml>
> >
> > I'm always looking for more subscribers and comments, so please
> > subscribe... I usually put up and example on almost every post,
unless
> > i'm just throwing up a link i want to remember.
> >
> > --- In flexcoders@yahoogroups.com

> > , "malik_robinson"
> >  wrote:
> > >
> > > Hi Tracy,
> > >
> > > When I do a trace as you indicated. I see this:
> > >
> > > 
> > > 
> > > 
> > > Bill Bates
> > > 
> > > 
> > > Mark Smith
> > > 
> > > 
> > > 
> > > 
> > > Larry Jobs
> > > 
> > > 
> > > 
> > >
> > > And this is what I see when my tree is rendered also.
> > >
> > > -Malik
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
> >  , "Tracy Spratt" 
wrote:
> > > >
> > > > Have you determined that model.treeData contains valid xml?
> > > > (trace(treeData.toXMLString())) If it does, then the tree should
> > work
> > > > like you have it. You will need to set the "labelField" property
for
> > > > the label, or use a labelFunction if the data you want for the
label
> > > is
> > > > not a top-level porperty/attribute of the item node.
> > > >
> > > >
> > > >
> > > > Also, I am not familiar with RemoteObject, so this may not
apply,
> > but
> > > > you may need to set resultFormat="e4x". Also, if the data
service
> > was
> > > > HTTPService, I would do the result handler like this:
> > > >
> > > > public function result( event:ResultEvent ):void {
> > > > var xmlResult:XML = XML(event.result);
> > > >
> > > > trace(xmlResult.toXMLString());
> > > > model.treeData = xmlResult;
> > > > }
> > > >
> > > >
> > > >
> > > > if you see good xml but are still having difficulty, take the
model
> > > > class out of the picture and assign the dataProvider directly:
> > > >
> > > > acTree.dataProvider = xmlResult;
> > > >
> > > >
> > > >
> > > > Tracy
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com
> > 
> > [mailto:flexcoders@yahoogroups.com

> > ]
> > > On
> > > > Behalf Of malik_robinson
> > > > Sent: Tuesday, February 06, 2007 3:09 PM
> > > > To: flexcoders@yahoogroups.com

> >
> > > > Subject: [flexcoders] Re: Populate Tree with data from a query?
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > That helps a bit, in my tree I am seeing the actual xml when I
run
> > my
> > > > application in flex. I have CFC function returning a string, I
tried
> > > > having return xml and same thing.
> > > >
> > > > ***
> > > > After I make my remote object call in my result handler I have
this:
> > > >
> > > > public function result( data:Object ):void {
> > > > var event:ResultEvent = data as ResultEvent
> > > > model.treeData = event.result as XML;
> > > > }
> > > >
> > > > It seems I have to cast it as XML otherwise in my "mode

Re: [flexcoders] Re:HTML in Flex

2007-02-08 Thread dorkie dork from dorktown

I was going to wait until it i had a few more things done but what the
heck... http://www.judahfrangipane.com/

On 2/8/07, Robi Ray <[EMAIL PROTECTED]> wrote:


You can use the iframe trick, but rather than iframe try using the 'div' &
'layer' html tags along with JavaScript. This will remove cross browser
issues.

Cheers !



--
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] Re: Find Next functionality of FlashPaper

2007-02-08 Thread vinaypillay
I have already implemented flashpaper api with the help of that site
The problem is i am not able to work with search functionality
Any help in that area is highly appreciated 



[flexcoders] Catching IOError on Loader

2007-02-08 Thread Robb Cundick
Hello, all:
 
I am using a Loader to retrieve a jpeg file that may or my not exist. If
it doesn't exist, I'm getting an Actionscript error message:
 
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never
Completed.
 
I would like to catch this error and handle it gracefully; however I
have not been able to figure out how to catch it. Try/catch doesn't work
(probably because it's an asynchronous process). But I also tried adding
an event listener as follows:
 
function myPictureLoader()
{
  var pictLdr:Loader = new Loader();
  var pictURL:String = "photos/NzPicture.jpg"
  var pictURLReq:URLRequest = new URLRequest(pictURL);
  pictLdr.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
  pictLdr.load(pictURLReq); 
}  

function handleIOError(event:IOErrorEvent) : void {
  Alert.show('file not found', 'IO error');
}   

However the listener function never fires and I still get the
Actionscript error box popping up. Any ideas?
 
TIA,
Robb Cundick


Re: [flexcoders] How to set component's position programmatically

2007-02-08 Thread Mikhail Shevchuk

Thanks guys for your help!

2007/2/9, Gordon Smith <[EMAIL PROTECTED]>:


   They're styles, not properties, so you write



foo.setStyle("left", 10);



- Gordon


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Mikhail Shevchuk
*Sent:* Thursday, February 08, 2007 1:14 AM
*To:* Flex
*Subject:* [flexcoders] How to set component's position programmatically



Hello there,

How to set the values to right/left/top/bottom properties programmatically
using AS3 ?

Thanks

--
A vivid and creative mind characterizes you.

 





--
A vivid and creative mind characterizes you.


RE: [flexcoders] How to set component's position programmatically

2007-02-08 Thread Gordon Smith
They're styles, not properties, so you write

 

foo.setStyle("left", 10);

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mikhail Shevchuk
Sent: Thursday, February 08, 2007 1:14 AM
To: Flex
Subject: [flexcoders] How to set component's position programmatically

 

Hello there,

How to set the values to right/left/top/bottom properties
programmatically using AS3 ?

Thanks

-- 
A vivid and creative mind characterizes you. 

 



RE: [flexcoders] Re: properties in components..

2007-02-08 Thread Gordon Smith
Here's why the statement

 

x.label="jim";

 

causes the compilation error "Access of undefined property x":

 

A  is a place to declare vars and functions; you generally
don't want to put bare statements there. A bare statement in an
 doesn't do what you'd expect. Most people expect it to
initialize the component in some way, but it actually becomes part of
the "class constructor", which executes before any instances get
created. There is no class-level (i.e., "static") property named x on
this class, so your statement doesn't compile.

 

If you comment out this line, you then get another compilation error,
"Attempting to initialize inherited property 'x' of type 'Number' with
value of incompatible type 'mx.controls.Button'." 

 

This is because your component inherits an instance property x from
DisplayObject. When you use 'x' as the id of a component, the MXML
compiler autogenerates another property named x to hold the reference to
that component. Your component would have two properties named x, which
isn't allowed.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pauland2513
Sent: Thursday, February 08, 2007 2:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: properties in components..

 

OK, thanks guys, I guess I do need that coffee. The problem goes away
if the code is wrapped in a function (to be called on initialisation
or creation complete_ - I guess thats the only way to safely access
the properties since otherwise they may not exist. The thing that
really threw me was that the compiler only raised objections when the
component was added to the main application.

Anyway, problem solved.

Paul

--- In flexcoders@yahoogroups.com 
, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> In Addition of Rich Tretola solution
> 
> here's anothe one.
> 
> 
> 
> 
> 
> public function setLabel():void
> {
> labelfill.label = "my Label";
> }
> 
> 
> 
> Best
> 
> On 2/8/07, Rich Tretola <[EMAIL PROTECTED]> wrote:
> >
> > The 1st problem is that you can not name your button id x as it is a
> > reserved word.
> >
> >
> > Not sure what you are trying to accomplish. If your goal is to be
able to
> > set the label from the main application, you should do something
like this:
> >
> >
> > 
> > http://www.adobe.com/2006/mxml
 " width="400"
> > height="300">
> > 
> > 
> > 
> > 
> > 
> >
> >
> >
> > 
> > http://www.adobe.com/2006/mxml
 "
> > layout="absolute" xmlns:local="*">
> > 
> > 
> >
> > Rich
> >
> >
> >
> > On 2/8/07, Paul Andrews < [EMAIL PROTECTED]> wrote:
> > >
> > > OK, this is driving me nuts. I'm using Flex Builder 2.01 on a PC.
> > >
> > > I have a very simple component (say test.mxml), code below,
where I set
> > > a
> > > label value on a button using actionscript.
> > >
> > > I can get this to compile very simply and we're all happy.
> > >
> > > As soon as I edit the main application(main.mxml) to include this
> > > component:
> > >
> > > 
> > > 
> > >
> > > main.mxml is happy but now I get a compile error (access of
undefined
> > > property) in test.mxml saying that the button id is an undefined
> > > property.
> > > When I edit the test.mxml code, flexbuilder will happily give me
code
> > > hints
> > > about the properties after I've put in the button id.
> > >
> > > What's going on? Maybe I just need more coffee?
> > >
> > > Paul
> > >
> > > 
> > > http://www.adobe.com/2006/mxml
 " width="400"
> > > height="300">
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > >
> >
> >
> > --
> > Rich Tretola
> > 
> > http://www.EverythingFlex.com  
> > 
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.org
> www.igorcosta.com
> skype: igorpcosta
>

 



RE: [flexcoders] Re: Yahoo API: Vote for Flex 2 version

2007-02-08 Thread Mike Anderson
Oh yeah - that Yahoo Maps API is simply incredible - 

What really gets me excited, is I think I can take my existing Lake Maps
& other topographical Land Maps for my commercial website, and overlay
the Yahoo Maps information on top of my existing information.

Talk about giving the user the power to get incredible amounts of
information, for any given area.  I am sure Yahoo is only getting warmed
up, with what they plan to do with that whole thing.

Raw Data is one thing - but to deliver *meaningful* data to the masses,
is where the true power of information comes into play.

It's a very exciting time to be a programmer right now, you just need to
carve out your niche and deliver the best product that you can.

Thanks and take care :)

Mike 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of TJ Downes
Sent: Thursday, February 08, 2007 10:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Yahoo API: Vote for Flex 2 version

Thanks Mike! Now, I see we have over 5600 members on this group. If we
could only get 10% of the group to vote... Already this suggestions has
more votes than any other suggestion.





--- In flexcoders@yahoogroups.com, "Mike Anderson" <[EMAIL PROTECTED]> wrote:
>
> You've got my vote!
> 
> I've been hot to get this new version for a LONG time now, because 
> doing this 1.5 hack is for the birds!
> 
> Thanks for the link - I will vote immediately, if it will help the 
> cause.
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> On Behalf Of TJ Downes
> Sent: Thursday, February 08, 2007 7:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Yahoo API: Vote for Flex 2 version
> 
> Currently the Yahoo Maps Flex API is limited to Flex 1.5. In order to 
> use Yahoo Maps in Flex 2 applications we are forced to hack it in 
> using the Flash API. This works, but is not the easiest or optimal
solution.
> 
> Yahoo has implemented a suggestion box. Suggestions are rated by the 
> number of votes they receive. Someone posted a suggestion for Flex 2 
> API for Yahoo Maps. I would love to see more people provide their 
> input on this in hopes of getting a Flex 2 API for Yahoo Maps in a 
> timely fashion. So, show your support and vote for the Flex 2 API!
> http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208
> 
> (this is a repost from my blog, so for those of you who have already 
> seen it on my blog I apologize for the redundancy!)
> 
> 
> 
> --
> 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





RE: [flexcoders] Re: How to get object by id?

2007-02-08 Thread Gordon Smith
Assigning a name property is not recommended; the framework expects to
be able to use the name property of some DisplayObjects for its own
purposes.

 

Simply declare a public var in your  such as

 

public myButton:Button;

 

When you dynamically create the component, store it in this var:

 

...

myButton = new Button();

...

 

Then you can use myButton just as if it had been declared with

 



 

The purpose of the id property is simply  to tell the MXML compiler what
to name the var that it automatically creates to hold the reference.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mikhail Shevchuk
Sent: Thursday, February 08, 2007 4:47 AM
To: Flex
Subject: [flexcoders] Re: How to get object by id?

 

Heh, the solution was close enough to me.

I just have to assign a name property, not the id one. After that, I can
access to the text property of this object by:

Object(super.getChildByName("dateFrom")).text 



2007/2/8, Mikhail Shevchuk <[EMAIL PROTECTED]
 >:

I decided to extend this question a little bit: There are some objects
of DateField, TextInput, and others that are created using AS3
dynamically. I have also an array of ids as String objects. How can I
access these objects using that array? 

2007/2/8, Mikhail Shevchuk <[EMAIL PROTECTED]
 >: 

Is there any way to get the programmatically created object if
it's id is known? 
Or how can I get a property of such object?

Thanks in advance!

-- 
A vivid and creative mind characterizes you. 




-- 
A vivid and creative mind characterizes you. 




-- 
A vivid and creative mind characterizes you. 

 



RE: [flexcoders] BigInteger class for ActionScript

2007-02-08 Thread Gordon Smith
> public var myNumber:Number = reachs 32k digits positive or negative 

 

Number has nothing to do with 32k of anything.

 

> public var myotherNumbre:int = reachs only integer numbers more than 0

 

int is for both positive and negative integers; uint is for non-negative
integers.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Igor Costa
Sent: Thursday, February 08, 2007 2:25 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] BigInteger class for ActionScript

 

Kaleb

Use Number as usual was in Flash.

public var myNumber:Number = reachs 32k digits positive or negative

public var myotherNumbre:int = reachs only integer numbers more than 0

public var ler:uint; 

Etc.

Best.

On 2/7/07, kaleb_pederson <[EMAIL PROTECTED]
 > wrote:

Hello all,

Does anybody know of a BigInteger class (eg. one that supports
virtually unlimited precision and digits) that's available? It will
be used for encryption (generating random primes and such), so it
needs to support at least 512 digits.

Thanks.

--Kaleb




-- 

Igor Costa
www.igorcosta.org  
www.igorcosta.com  
skype: igorpcosta 

 



[flexcoders] Re: Yahoo API: Vote for Flex 2 version

2007-02-08 Thread TJ Downes
Thanks Mike! Now, I see we have over 5600 members on this group. If we
could only get 10% of the group to vote... Already this suggestions
has more votes than any other suggestion.





--- In flexcoders@yahoogroups.com, "Mike Anderson" <[EMAIL PROTECTED]> wrote:
>
> You've got my vote!
> 
> I've been hot to get this new version for a LONG time now, because doing
> this 1.5 hack is for the birds!
> 
> Thanks for the link - I will vote immediately, if it will help the
> cause. 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of TJ Downes
> Sent: Thursday, February 08, 2007 7:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Yahoo API: Vote for Flex 2 version
> 
> Currently the Yahoo Maps Flex API is limited to Flex 1.5. In order to
> use Yahoo Maps in Flex 2 applications we are forced to hack it in using
> the Flash API. This works, but is not the easiest or optimal solution.
> 
> Yahoo has implemented a suggestion box. Suggestions are rated by the
> number of votes they receive. Someone posted a suggestion for Flex 2 API
> for Yahoo Maps. I would love to see more people provide their input on
> this in hopes of getting a Flex 2 API for Yahoo Maps in a timely
> fashion. So, show your support and vote for the Flex 2 API!
> http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208
> 
> (this is a repost from my blog, so for those of you who have already
> seen it on my blog I apologize for the redundancy!)
> 
> 
> 
> --
> 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
>




RE: [flexcoders] Re: StartDrag() versus DragManager.doDrag()

2007-02-08 Thread Gordon Smith
> The startDrag is a method on the Sprite class and it used for any
> object dragging. All dragging in Flash/Flex comes from that function
> (even the DragManager uses the startDrag method)

 

I can't find anywhere that we use startDrag()in the framework, including
in the DragManager.

 

But that doesn't mean you shouldn't use it.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Grigg
Sent: Thursday, February 08, 2007 1:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: StartDrag() versus DragManager.doDrag()

 

Hey Mike,

My understanding of the DragManager is that it is used to facilitate
drag and drop operations, ie moving nodes from a trees, rows from a
grid, etc. It's purpose is more for moving data from point A to point
B with some type of visual reference.

The startDrag is a method on the Sprite class and it used for any
object dragging. All dragging in Flash/Flex comes from that function
(even the DragManager uses the startDrag method) so I don't think it
will be deprecated anytime (if ever).

I would say the startDrag is always the preferred method for dragging
items around and only consider using the DragManager when you actually
need to move/copy data from source to target by mouse interaction.

Hope that helps,

Derrick Grigg
--
www.dgrigg.com

 



[flexcoders] Re:HTML in Flex

2007-02-08 Thread Robi Ray
You can use the iframe trick, but rather than iframe try using the 'div' &
'layer' html tags along with JavaScript. This will remove cross browser
issues.

Cheers !



RE: [flexcoders] What's the "official" consensus of using CodeBehind??

2007-02-08 Thread Gordon Smith
I must admit that I just don't understand the interest in code-behind.
When you write

 

MyComponent.mxml:

 





public var foo;

public function bar():void { ... }





 

you are writing a subclass (of Canvas in this case) and declaring a
property foo and method bar() of that subclass. It's just MXML notation
for

 

public class MyComponent extends Canvas

{

public var foo;

public function bar():void { ... }

}

 

So if you love packages and classes, what's the problem with
?

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Thursday, February 08, 2007 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What's the "official" consensus of using
CodeBehind??

 

Hello All,

Could some of you more savvy coders, please take a moment of your
valuable time and throw some words of wisdom out there regarding
CodeBehind?

Since I love using Packages and Classes, it feels very natural for me to
use this method.

BUT, based on where things are going with Flex, is this considered to be
a "good programming practice"?

I would love to know sooner versus later, so that I don't have to back
and redo a bunch of coding. I am a REAL stickler when it comes to good
coding practices.

Thanks in advance for your time on this,

Mike

 



RE: [flexcoders] Re: HTML in Flex

2007-02-08 Thread Gordon Smith
> html support is not planned for the Flash player (and therefore Flex)
anytime soon.

 

Flex applications running on Apollo will be able to render HTML, which
will be just another kind of DisplayObject. But there are no plans to
add this capability to the browser players. The reason is the available
HTML rendering libraries are too large to include in the browser
players, which Adobe needs to keep as small as possible to maintain
near-ubiquity. And the HTML renderers in the browsers themselves can't
be accessed from a browser plugin, and, even if they could, their
behavior would vary from platform to platform, browser to browser, and
version to verison, which would violate one of the main benefits of
Flash.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coderdude2
Sent: Thursday, February 08, 2007 10:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HTML in Flex

 

>From what I've read so far, html support is not planned for the Flash
player (and therefore Flex) anytime soon. 

What people are doing is combining Flex/Flash with AJAX/HTML on the
same browser page and using something like
http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge
 
to pass messages from one to the other.

It's even possible to position an html iframe on top of a region of
your flex app to make it seem like it's part of the app. See
http://ajax.sys-con.com/read/223822.htm
  for some ideas.

Good luck.

--- In flexcoders@yahoogroups.com 
, "Robert Shaw" <[EMAIL PROTECTED]> wrote:
>
> I already think I know the answer, but I will ask anyway. We buy
medical knowledge from a company in HTML page format. Question is,
using Flex, is their any way I can read these HTML pages into Flex and
display. I know I can do this in Java, but it would take forever and
my boss wants to get away from the page refresh.
> 
> 
> Robert Shaw
> 972-463-3515
>

 



RE: [flexcoders] Yahoo API: Vote for Flex 2 version

2007-02-08 Thread Mike Anderson
You've got my vote!

I've been hot to get this new version for a LONG time now, because doing
this 1.5 hack is for the birds!

Thanks for the link - I will vote immediately, if it will help the
cause. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of TJ Downes
Sent: Thursday, February 08, 2007 7:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Yahoo API: Vote for Flex 2 version

Currently the Yahoo Maps Flex API is limited to Flex 1.5. In order to
use Yahoo Maps in Flex 2 applications we are forced to hack it in using
the Flash API. This works, but is not the easiest or optimal solution.

Yahoo has implemented a suggestion box. Suggestions are rated by the
number of votes they receive. Someone posted a suggestion for Flex 2 API
for Yahoo Maps. I would love to see more people provide their input on
this in hopes of getting a Flex 2 API for Yahoo Maps in a timely
fashion. So, show your support and vote for the Flex 2 API!
http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208

(this is a repost from my blog, so for those of you who have already
seen it on my blog I apologize for the redundancy!)



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





RE: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-08 Thread Gordon Smith
> Didn't I read somewhere that the order you add listeners is the order
they get dispatched in as3 now?

 

That's correct.

 

> Plus you can use priorities.

 

This can be tricky, as the framework uses different priorities for
various purposes. If you need to ensure the order in which multiple
event handlers get called, try to add them in the right order.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Thursday, February 08, 2007 6:56 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

 

Yes Johannes & Michael

I'm not using it either.
I just wanted to show what is possible. 

Since i don't use code behind, i don't have this kind of problems
anyways ;) 
Cheers,
Ralf. 



On 2/8/07, Michael Schmalle <[EMAIL PROTECTED]
 > wrote:

Ralf,

That is an interesting approach.

I just have never had the need for something like that.. yet.

Didn't I read somewhere that the order you add listeners is the order
they get dispatched in as3 now? Plus you can use priorities. 

PS From an OOP standpoint, I wouldn't do it , I would just write a
wrapper method that calls it. Much better from a maintainence aspect and
intent aspect.

Peace, Mike

On 2/8/07, Ralf Bokelberg <[EMAIL PROTECTED]
 > wrote: 



Yes that's possible, but semantically it is slightly different. 
Inside the binding tag, the sequence of function calls is given
by the sequence in your code. 
If you use mulitple addEventListener calls the sequence is not
guaranteed. 

Another possibility, which maintains the sequence, would be to
use an anonymous function

myButton.addEventListener( MouseEvent.CLICK, function(){
 myFunction1();
 myFunction2();
 myFunction3(); 
})
Cheers,
Ralf. 

 

On 2/7/07, dougmccune < [EMAIL PROTECTED]
 > wrote:

You can make as many calls to addEventListener as you want. So
you can
add 2 or more event listeners that get triggered for the same
event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by
using
removeEventListener and specifying the particular function you
want
removed.

Doug

--- In flexcoders@yahoogroups.com
 , "Mike Anderson" <[EMAIL PROTECTED]>
wrote:
>
> Hello All,
> 
> I have a problem, and maybe I am overlooking something here...
> 
> What I need to do, is attach multiple functions, to an Event
for a
> particular Component.
> 
> Using inline MXML, this is easy - you just separate out each
function,
> with a semi-colon and list them one after another.
> 
> BUT, I am trying NOT to put my functions within the MXML - I
am using
> Code-Behind, and I need to add my Event Listeners within the
> ActionScript - using the Object.addEventListener() method.
> 
> Thing is, how do I add several functions using this type of
methodology?
> Or can it even be done?
> 
> Thanks in advance for any help you can offer regarding this,
> 
> Mike
>





-- 
Ralf Bokelberg < [EMAIL PROTECTED]
 >
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 




-- 
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'. 




-- 
Ralf Bokelberg <[EMAIL PROTECTED]
 >
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 

 



Re: [flexcoders] Fwd: Problems painting an swf from a wrapper

2007-02-08 Thread Jack Park

Problem solved!
Sketching what I did plays like paired coding. It hit me like a freight
train. Wrong outputstream code. Fixed that in my servlet and swf's painting
nicely now.

Talk about happy campers!
Many thanks for listening...
Jack


On 2/8/07, Jack Park <[EMAIL PROTECTED]> wrote:


Just hit
http://localhost:8080/flex/HelloWorld.swf
That brought down the binary file, showing a blank screen. Essentially,
uninterpreted. View source shows the binary image. I am aware that Flex 9 is
installed. Now I am wondering if the swf is being corrupted by being sent
through the same code that sends gifs, jpgs, pngs, js and css. The only
difference being that the response is set to the mime type for the shockwave
application, application/x-shockwave-flash or something like that.

I did strip the html and finally coaxed the raw html to boot the swf
outside the servlet. It's failing only inside the servlet, strongly
suggesting I have the wrong code for converting a swf into an outputstream
and sending it through a printwriter.

Thoughts?
Many thanks for taking such time on my bug. It's liable to be a rather
dumb bug but it's slightly above me right now.
Jack

On 2/8/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:
>
>Hit the swf directly from a browser:
>
> http://myserver/mysite/Helloworld.swf
>
>
>
> Then do the same for your real swf.
>
>
>
> Tracy
>
>
>  --
>
> *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com]
> *On Behalf Of *Jack Park
> *Sent:* Thursday, February 08, 2007 3:32 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Fwd: Problems painting an swf from a wrapper
>
>
>
> I just tried that. One wonders why I didn't try that before. I did a
> saveAs on the page, cleaned up the html to reflect the swf and js in the
> same directory and voila. Nothing!
>
> Makes one wonder if it's a browser issue. The browser, with this code,
> would toss an exception if it didn't have version 9 available. Version 9 is
> installed. It's Firefox 1.5.09
> IE, after first tossing a fit over a script, then showed, again,
> nothing.
>
> That leaves me to wonder what it is about the swf itself that might be
> faulty. The swf code I presented below is precisely what I hand compiled
> with the sdk. It should at least say something. Yes? My earlier trials used
> an swf I compiled with the Eclipse application builder. In that builder,
> running as a Flex application showed it to work fine. But, it never showed
> in a browser through a servlet engine.
>
> Thanks to the suggestion, I'm now left with two candidates: flex is
> installed but not working -- I've gone out on the web and have reason to
> believe I have exercised it on swf objects elsewhere enough to have reason
> to believe it is working, or, there is something about the swfs I am
> creating that is faulty.
>
> I am eager to hear other ideas or be pointed to something dumb or
> obvious that I overlooked.
>
> Many thanks
> Jack
>
> On 2/8/07, *Tracy Spratt* <[EMAIL PROTECTED]> wrote:
>
> Have you simplified things by removing "jetty" (of which I am ignorant)
> from the equation?  Put the swf in the same folder as the wrapper.
>
>
>
> From a browser on the server hosting the wrapper, can you hit the jetty
> / swf url?
>
>
>
> Tracy
>
>
>   --
>
> * From:* flexcoders@yahoogroups.com [mailto: flexcoders@ yahoogroups.com]
> *On Behalf Of *Jack Park
> *Sent:* Thursday, February 08, 2007 11:09 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Fwd: Problems painting an swf from a wrapper
>
>
>
> 
> I really hope someone can tell me what I am missing here.
> Many thanks
> Jack
>
> In an earlier thread, I got engaged in the issue of history.js and a
> history.html iframe. There is a template that doesn't use history.
> That's as barebones as it gets. I am running the simplest possible
> test to validate that my servlet can paint swf content. I went so far
> as to craft a simple helloworld as follows:
> 
>
> http://www.adobe.com/2006/mxml";
> pageTitle="HelloWorld Sample" >
>
> 
>
> 
>
> 
>
> I then adapted a template as follows (note the classpath to the swf
> file -- this is an embedded Jetty server) -- the servlet prints a
> trace that clearly shows it sending the swf file. What I get is a
> colored box set to the background color (which, to me, indicates flex
> is interpreting something from the html) but nothing from the content
> itself. What am I missing?
> Thanks
> Jack
>
>  "DTD/xhtml1-transitional.dtd">
> http://www.w3.org/1999/xhtml " xml:lang="en" lang="en">
> 
> 
> FlexDev
> 
> 
> 
>
> 
> 
> 
>
> 
> 
















>> > >  Change settings via the  
>> Web(Yahoo!
>>   
>> ID required)
>> > > Change settings via email: Switch delivery to Daily  
>> Digest<[EMAIL PROTECTED]:+Digest>|  
>> Switch
>> > > format to  
>> Traditional<[EMAIL PROTECTED]:+Traditional>
>> > >  Visit Your Group
>> > >  
>> |
>>   
>> Yahoo!
>> > > Groups Terms of Use  |  
>> Unsubscribe
>> > > <[EMAIL PROTECTED]>
>> > >   Recent Activity
>> > >
>> > >-  111
>> > > New  
>> Members

RE: [flexcoders] What's the "official" consensus of using CodeBehind??

2007-02-08 Thread Alex Uhlmann
I agree with Ralf's view and have recently blogged about it.
http://weblogs.macromedia.com/auhlmann/archives/2007/02/best_practice_c.
cfm
 
Best,
Alex
 

 

 

Alex Uhlmann 
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]
http://weblogs.macromedia.com/auhlmann

Adobe Systems Europe Limited | Registered office: 151 St. Vincent
Street, Glasgow G2 5NJ | Company No. SC101089

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: 08 February 2007 21:25
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What's the "official" consensus of using
CodeBehind??



This is just my personal view though, i'm not aware of an "official"
version. 
Cheers,
Ralf. 


On 2/8/07, Ralf Bokelberg < [EMAIL PROTECTED]
 > wrote: 

What is your reasoning to use code behind? Why would you want to
double every class and add an additional inheritance layer just to
separate Mxml from ActionScript? Why would you want to declare every
component you are using twice, once in AS and the second time in Mxml?
Is it to separate presentation from functionality? Generally this is a
good idea, but i think it is important where to draw the line between
the two. When you think of traditional systems with a template engine as
the presentation layer, the templates also contain some code to build
the presentation, while the functionality is implemented by plain
classes. Now if we translate this thinking to Mxml and ActionScript, we
should leave all the code we need to build the presentation inside the
Mxml files and factor out the real functionality into classes. So i'd
say, there is no! thing wrong with ActionScript in Mxml files as long as
it is strictly presenation related. 

Cheers
Ralf. 




On 2/8/07, Mike Anderson < [EMAIL PROTECTED]
 > wrote: 

Hello All,

Could some of you more savvy coders, please take a
moment of your
valuable time and throw some words of wisdom out there
regarding
CodeBehind?

Since I love using Packages and Classes, it feels very
natural for me to
use this method.

BUT, based on where things are going with Flex, is this
considered to be
a "good programming practice"?

I would love to know sooner versus later, so that I
don't have to back
and redo a bunch of coding. I am a REAL stickler when it
comes to good
coding practices.

Thanks in advance for your time on this,

Mike







-- 
Ralf Bokelberg <[EMAIL PROTECTED]
 >
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 




-- 
Ralf Bokelberg <[EMAIL PROTECTED]
 >
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 

 


att77266.gif
Description: att77266.gif


Re: [flexcoders] StartDrag() versus DragManager.doDrag()

2007-02-08 Thread Daniel Freiman

Both startDrag and doDrag will most likely continue to be supported because
they are for different purposes (also, startDrag is a Sprite  method and the
flash package is relatively stable).  startDrag simple moves and object from
point A to point B (based on the cursor position).  doDrag uses the
DragManager to create a proxy for the object, move that proxy, handle where
the proxy can be dropped, handle what happens when the proxy is dropped in a
legal or illegal place.

In other words, startDrag is for movement/dragging, doDrag is for 'Drag and
Drop' functionality.

Use whichever one works better with impunity.  If you're not changing the
parent of the dragged object, i see no reason to use the DragManager.

- Dan

On 2/8/07, Mike Anderson <[EMAIL PROTECTED]> wrote:


  Hello All,

I am getting confused, as to which method I should use, for simply
panning around an Image/SWF file.

I did follow Michael's suggestions, and looked at the quick "Dragging an
Image to Canvas" tutorial contained in the help files. My understanding
is a little deeper, when it comes to using DragManager - but in my case,
I am getting some odd results.

For the purposes of strictly panning Objects around, startDrag() is
providing me better "Visual Results" - as it happens in real-time when
dragging the mouse around. When using doDrag(), it makes a copy of the
Object (I suppose, it's the Proxy being dragged) and then finishes the
move, upon the mouse release. Also, for some reason, when using
doDrag(), the Object doesn't always move the same distance, when
compared to the distance of the mouse drag. Really weird... And it
gets worse, the more distance I move the mouse. One last thing too, the
ImageProxy appears Outside of the container, when dragging the Image -
and in my case, my SWF File is 2,000 x 2,200 - so you can imagine the
whole screen filling up with my Image.

Since I am not doing any advanced functions, and just want to move the
Image around on the Screen, would it be acceptable to use startDrag()?

I guess what I REALLY need to find out, is if startDrag() and stopDrag()
will eventually be deprecated, or be considered NOT the way to handle
dragging Objects around.

Could any of you shed some additional light on this topic?

Thanks in advance,

Mike
 



[flexcoders] Re: BigInteger class for ActionScript

2007-02-08 Thread kaleb_pederson
Jim,

Thank you very much for the link; I'll consider porting it to 
ActionScript.  You are right, I'd definitely see much better 
performance if it could be written in C or something else, 
but there isn't any way to hook into that from Flex is there?  
Presumably, if there were, that would obviate most of the security 
measures that have been put into place in Flex.

I won't need to do too much heavy lifting, I just need it to 
implement Diffie-Hellman key exchange so I can establish a shared 
key with a server (that could be tunneled through SOAP, etc.).  I 
have a working Rijndael/AES algorithm that's compatible with Java 
and .NET and has tested out plenty fast for our needs.

Thanks.

--Kaleb

--- In flexcoders@yahoogroups.com, Jim Cheng <[EMAIL PROTECTED]> wrote:
> If you're planning on doing a lot of such heavy lifting, I suspect 
that 
> you'd likely see markedly better performance using a numerical 
analysis 
> library compiled with processor-specific optimizations into native 
code, 
> but to each his own



Re: [flexcoders] please help me

2007-02-08 Thread Daniel Freiman

did you set tabEnabled?

- Dan

On 2/8/07, h8me4everplus1 <[EMAIL PROTECTED]> wrote:


  Please, someone take a look and at least tell me there is no way to do
it the way I'm doing it.

Setting tabIndex doesn't do anything.

I have no idea what to do...

--- In flexcoders@yahoogroups.com ,
"h8me4everplus1" <[EMAIL PROTECTED]> wrote:
>
> I would like to set a specific "tab loop" for each state of the
> application I'm working on.
>
> I thought that I would just set the tabIndex of the components and
> that the default tab index order would be overridden. This did not
> work. Tabbing behaves as if no tab index has been set.
>
> I have made sure that I am targeting the right property and the right
> components since I've written a loop to automate the indexing.
> Everything seems okay, I've even traced the tabIndex of the components
> and they display the index I've set.
>
> I am programming in pure AS3 using the flex framework, so there is
> just a main component in the MXML document that extends UIComponent.
> Everything is a child of this main component.
>
> I have a container that has a complex pattern of children. The
> children of the container have children, and they are the targets for
> my tab loop. I have a public function for the containers children that
> gathers the components that will comprise the tab loop. I loop through
> the array of UIComponents and set their corresponding tabIndex
> property. This is done in the childrenCreated() function of the
container.
>
> The structure looks like this
>
> [mxmlDocument]
> [main]
> [container] <- childrenCreated() here sets tabIndex of children
> [A][B]
> [childOfA][childOfA][childOfB]
>
> That is the basic idea, and it does nothing...
>
> Thanks guys,
>
> Melih
>

 



[flexcoders] Re: StartDrag() versus DragManager.doDrag()

2007-02-08 Thread Derrick Grigg
Hey Mike,

My understanding of the DragManager is that it is used to facilitate
drag and drop operations, ie moving nodes from a trees, rows from a
grid, etc. It's purpose is more for moving data from point A to point
B with some type of visual reference.

The startDrag is a method on the Sprite class and it used for any
object dragging. All dragging in Flash/Flex comes from that function
(even the DragManager uses the startDrag method) so I don't think it
will be deprecated anytime (if ever).

I would say the startDrag is always the preferred method for dragging
items around and only consider using the DragManager when you actually
need to move/copy data from source to target by mouse interaction.

Hope that helps,

Derrick Grigg
--
www.dgrigg.com



Re: [flexcoders] What's the "official" consensus of using CodeBehind??

2007-02-08 Thread Ralf Bokelberg

This is just my personal view though, i'm not aware of an "official"
version.
Cheers,
Ralf.

On 2/8/07, Ralf Bokelberg <[EMAIL PROTECTED]> wrote:


What is your reasoning to use code behind? Why would you want to double
every class and add an additional inheritance layer just to separate Mxml
from ActionScript? Why would you want to declare every component you are
using twice, once in AS and the second time in Mxml? Is it to separate
presentation from functionality? Generally this is a good idea, but i think
it is important where to draw the line between the two. When you think of
traditional systems with a template engine as the presentation layer, the
templates also contain some code to build the presentation, while the
functionality is implemented by plain classes. Now if we translate this
thinking to Mxml and ActionScript, we should leave all the code we need to
build the presentation inside the Mxml files and factor out the real
functionality into classes. So i'd say, there is nothing wrong with
ActionScript in Mxml files as long as it is strictly presenation related.

Cheers
Ralf.


On 2/8/07, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
>   Hello All,
>
> Could some of you more savvy coders, please take a moment of your
> valuable time and throw some words of wisdom out there regarding
> CodeBehind?
>
> Since I love using Packages and Classes, it feels very natural for me to
> use this method.
>
> BUT, based on where things are going with Flex, is this considered to be
> a "good programming practice"?
>
> I would love to know sooner versus later, so that I don't have to back
> and redo a bunch of coding. I am a REAL stickler when it comes to good
> coding practices.
>
> Thanks in advance for your time on this,
>
> Mike
>  
>




--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] HistoryManagement Trouble

2007-02-08 Thread s_hernandez01
Okay this is may sound weird, but Flex 2.0 automatically enables the
HistoryManagement to the accordion, tabNavigator, and viewstack
components.  However, when I run the app using Internet Explorer 7 the
browser back button does not light up to go back, BUT when I run the
app on Firefox 1.5 IT WORKS! Why is that? Can anyone give me some advice?

Thanks
Sal



Re: [flexcoders] What's the "official" consensus of using CodeBehind??

2007-02-08 Thread Ralf Bokelberg

and last but not least you can put your Mxml files into packages just like
classes - that's what they really are after all: classes.
Cheers
Ralf

On 2/8/07, Ralf Bokelberg <[EMAIL PROTECTED]> wrote:


This is just my personal view though, i'm not aware of an "official"
version.
Cheers,
Ralf.

On 2/8/07, Ralf Bokelberg < [EMAIL PROTECTED]> wrote:
>
> What is your reasoning to use code behind? Why would you want to double
> every class and add an additional inheritance layer just to separate Mxml
> from ActionScript? Why would you want to declare every component you are
> using twice, once in AS and the second time in Mxml? Is it to separate
> presentation from functionality? Generally this is a good idea, but i think
> it is important where to draw the line between the two. When you think of
> traditional systems with a template engine as the presentation layer, the
> templates also contain some code to build the presentation, while the
> functionality is implemented by plain classes. Now if we translate this
> thinking to Mxml and ActionScript, we should leave all the code we need to
> build the presentation inside the Mxml files and factor out the real
> functionality into classes. So i'd say, there is nothing wrong with
> ActionScript in Mxml files as long as it is strictly presenation related.
>
> Cheers
> Ralf.
>
>
> On 2/8/07, Mike Anderson < [EMAIL PROTECTED]> wrote:
> >
> >   Hello All,
> >
> > Could some of you more savvy coders, please take a moment of your
> > valuable time and throw some words of wisdom out there regarding
> > CodeBehind?
> >
> > Since I love using Packages and Classes, it feels very natural for me
> > to
> > use this method.
> >
> > BUT, based on where things are going with Flex, is this considered to
> > be
> > a "good programming practice"?
> >
> > I would love to know sooner versus later, so that I don't have to back
> > and redo a bunch of coding. I am a REAL stickler when it comes to good
> > coding practices.
> >
> > Thanks in advance for your time on this,
> >
> > Mike
> >Messages in this topic
> > 
(
> > 1)  Reply (via web post)
> > 
|
 Start
> > a new topic
> > 

> >  
Messages
> >  --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >  [image: Yahoo! 
Groups]
> >  Change settings via the 
Web(Yahoo!
 ID required)
> > Change settings via email: Switch delivery to Daily Digest<[EMAIL 
PROTECTED]:+Digest>| Switch
> > format to Traditional<[EMAIL PROTECTED]:+Traditional>
> >  Visit Your Group
> > 
|
 Yahoo!
> > Groups Terms of Use  | Unsubscribe
> > <[EMAIL PROTECTED]>
> >   Recent Activity
> >
> >-  111
> > New 
Members
> >
> >  Visit Your Group
> > 

> >  Give Back
> >
> > Yahoo! for 
Good
> >
> > Get inspired
> >
> > by a good cause.
> >  Y! Toolbar
> >
> > Get it 
Free!

Re: [flexcoders] What's the "official" consensus of using CodeBehind??

2007-02-08 Thread Ralf Bokelberg

What is your reasoning to use code behind? Why would you want to double
every class and add an additional inheritance layer just to separate Mxml
from ActionScript? Why would you want to declare every component you are
using twice, once in AS and the second time in Mxml? Is it to separate
presentation from functionality? Generally this is a good idea, but i think
it is important where to draw the line between the two. When you think of
traditional systems with a template engine as the presentation layer, the
templates also contain some code to build the presentation, while the
functionality is implemented by plain classes. Now if we translate this
thinking to Mxml and ActionScript, we should leave all the code we need to
build the presentation inside the Mxml files and factor out the real
functionality into classes. So i'd say, there is nothing wrong with
ActionScript in Mxml files as long as it is strictly presenation related.

Cheers
Ralf.


On 2/8/07, Mike Anderson <[EMAIL PROTECTED]> wrote:


  Hello All,

Could some of you more savvy coders, please take a moment of your
valuable time and throw some words of wisdom out there regarding
CodeBehind?

Since I love using Packages and Classes, it feels very natural for me to
use this method.

BUT, based on where things are going with Flex, is this considered to be
a "good programming practice"?

I would love to know sooner versus later, so that I don't have to back
and redo a bunch of coding. I am a REAL stickler when it comes to good
coding practices.

Thanks in advance for your time on this,

Mike
 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


Re: [flexcoders] How to get Flex2 Maven Plugin?

2007-02-08 Thread Christian Gruber
Only versions 1.0-alpha-1 and 1.0-alpha-2 have been published.  The
snapshots are not published at present.  I am currently on a two week trip
away, and will be publishing further changes when I return, which will be
available within a few hours of their publishing on ibiblio.

In the mean-time, please feel free to e-mail me with comments, thoughts,
missing features, problems, etc.

Regards,
Christian Gruber


On 2/6/07 12:47 AM, "Thijs Triemstra | Collab" <[EMAIL PROTECTED]> wrote:

>  
>  
>  
> 
> I created a new project with maven and edited the pom.xml so it looks
> like this:
> 
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance"
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://
> maven.apache.org/maven-v4_0_0.xsd">
>  4.0.0
>  nl.collab.flex.maven
>  flex-maven-test
>  swf
>  1.0-SNAPSHOT
>  
>  /Developer/SDKs/Flex
>  
>  
>  
>  
>  net.israfil.mojo
>  maven-flex2-plugin
>  1.0-SNAPSHOT
>  true
>  
>  ${flex.home}
>  true
>  src/main/resources/services-config.xml dataServicesConfig>
>  main.mxml
>  
>  
>  
>  
>  
>  
>  junit
>  junit
>  3.8.1
>  test
>  
>  
> 
> 
> And when I try 'mvn compile' I get the error below. Is the plugin
> going to be available in the main repository (central)? How do I get
> the plugin to work?
> 
> [INFO] Scanning for projects...
> [INFO]  
> --
> [ERROR] BUILD ERROR
> [INFO]  
> --
> [INFO] Failed to resolve artifact.
> 
> GroupId: net.israfil.mojo
> ArtifactId: maven-flex2-plugin
> Version: 1.0-SNAPSHOT
> 
> Reason: Unable to download the artifact from any repository
> 
> net.israfil.mojo:maven-flex2-plugin:pom:1.0-SNAPSHOT
> 
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
> 
> [INFO]  
> --
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> --
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Feb 05 23:40:52 CET 2007
> [INFO] Final Memory: 1M/2M
> [INFO]  
> --
> 
> Thanks,
> 
> Thijs
>  
> 




[flexcoders] Registration Points and Flex -

2007-02-08 Thread Mike Anderson
Hello All,

As all of you Flash People know, whenever you have Assets in your
Library, they all have a Registration Point.  I know 99% of you already
know this, but for those who don't, the Registration Point is the spot
on the Object, that is considered to be 0,0.

Typically, it's either in the upper-left-hand corner, or smack-dab in
the middle.

This way, whenever you are Scaling your Object, the sizing will get
bigger downwards and to the right, or it will scale evenly from the
Center Out.

With this said, after embedding all my Graphical Icons (which will serve
as WayPoints for my Map Application), how can I control the nature of
how these Icons Scale??

Some of my Icons, are drawn in such a way, where they have a little
arrow in the upper-left-hand corner.  That way, it's obvious to the
user, that wherever they drop their WayPoint on the Map, the top of the
Pointer on the Icon, IS precisely the spot where the WayPoint
coordinates are referring to (and will scale accordingly from that
point).

Then again, some of my other Icons, are just general in nature, and
those need to specifically scale from the CENTER Out.

In Flash, I was able to tweak the Registration Points, so that they
would automatically Scale the way I needed them to.

BUT, in Flex, I don't even know where to start with something like this.

Could anybody shed some light on this topic for me?

Thanks in advance,

Mike


[flexcoders] Re: tree of extended components? possible?

2007-02-08 Thread tinkiknit
Ok, things seem to work. sort of. I made the itemRenderer of the tree 
my custom component and YES, my tree nodes are now my custom 
components, which actually pop up and let you build your query. Is 
there a property that I need to be setting in my custom component so 
that the tree can figure out what the "value" of that node is (the 
query term)? Also, is there a way to set things so that the root of 
the tree is just a label (as in AND for my query operator)...

Thanks for any help!

Christine


--- In flexcoders@yahoogroups.com, "tinkiknit" <[EMAIL PROTECTED]> wrote:
>
> Thanks! I shall give it a try...
> 
> christine
> --- In flexcoders@yahoogroups.com, "Michael Schmalle" 
>  wrote:
> >
> > Yes,
> > 
> > Look at the itemRenderer property of the Tree. It's exactly what 
> you want.
> > 
> > You might also check out dataDescriptiors if your model is 
> complicated and
> > you want to extend the tree using your custom component
> > children(itemRenderer) and model.
> > 
> > Peace, Mike
> > 
> > On 2/8/07, tinkiknit  wrote:
> > >
> > >   Hello...
> > >
> > > Here is my idea. I'm working on a query tool for a simple data
> > > repository. I have 3 operators, AND, OR and NOT. What I would 
> like to
> > > do is use a tree control to form the queries.
> > >
> > > Example in rudimentary text drawing:
> > >
> > > AND
> > > |
> > > - query term
> > > |
> > > - query term
> > > +
> > >
> > > (the plus sign is to open up a new term builder (this is my 
custom
> > > component, already coded)
> > >
> > > Is it possible to have custom components as the children of a 
tree
> > > node? ie to have them as leaves?
> > >
> > > Tried to search the archive for this but I don't think I had a 
> decent
> > > search query to come up with anything...
> > >
> > > Thanks for any help!
> > >
> > > Christine
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > 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] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-08 Thread Chris Luebcke
I'll add my voice to the chorus of "Yes, we'd be very interested."

--- In flexcoders@yahoogroups.com, "brian.knorr" <[EMAIL PROTECTED]> wrote:
>
> 
> Automating functional tests is critical to the way we develop software
> at my company.  And there are two big things that stop us from using
QTP.
> 
> 1) It's record and playback - we want to write test scripts
> 2) It costs a lot of money - we want a tool that is free and community
> driven
> 
> At my company we are writing several applications in Flex2 and are
> building out an as3 library that allows us to write test scripts in
> as3 to drive the Flex ui as if the user was interacting with it.  If
> you are familiar with the Java Swing testing tool called Jemmy, it's
> very similar in design.
> 
> Is there any interest out there for a tool like this?  I am about to
> create a sourceforge project, but first wanted to get a feel for the
need.
> 
> Thanks,
> 
> Brian
>




[flexcoders] http service

2007-02-08 Thread wifi19

hie.

when i use httpservice to request xml i want to use .lastresult and i 
may be use a index to my xml file or à fisrt result command.

can you help me 

my httpservice

http://xxx.dyndns.org/livre/request.php"; useProxy="false" 
method="POST" result="init1()">
  

thanks !



[flexcoders] Flex 2 + Wiimote + PaperVision 3D = good times

2007-02-08 Thread slangeberg

By way of bytearray.org:

http://blog.je2050.de/2007/02/02/wiiflash-and-papervision3d/

: : ) Scott


Re: [flexcoders] Getting duration of FLV 1.0 videos

2007-02-08 Thread Jim Cheng
beecee1977 wrote:
> Hi,
> 
> I want to be able to get the duration of any flv file using the 
> videoDisplay object. This works fine most of the time (just 
> myVideoDisplay.totalTime)... However, for older flv files (before 
> 1.1) this metadata is not included.

If you're not streaming them from FMS, you can also load the entire FLV 
into a ByteArray and parse the timestamps from the FLV tags for yourself 
using a bit of AS3 ByteArray magic.  Provided there's nothing strange 
about your FLV, the timestamp on the last tag should be your duration.

I recently ended up having to do exactly this to diagnose a particularly 
pestilent bug where some of my FLVs were reporting patently wrong 
durations as a result of corrupt tag timestamps.

You can get the FLV file format documentation from Adobe here:

   http://www.adobe.com/licensing/developer/

If you go this route, watch out for the timestamp byte order, it's a 
32-bit unsigned integer, but is formatted as a big-endian UI32 followed 
by a most significant UI8 rather than the typical order expected by the 
built-in readUnsignedInt() method.

Jim Cheng
effectiveUI


Re: [flexcoders] Fwd: Problems painting an swf from a wrapper

2007-02-08 Thread Jack Park

I just tried that. One wonders why I didn't try that before. I did a saveAs
on the page, cleaned up the html to reflect the swf and js in the same
directory and voila. Nothing!

Makes one wonder if it's a browser issue. The browser, with this code, would
toss an exception if it didn't have version 9 available. Version 9 is
installed. It's Firefox 1.5.09
IE, after first tossing a fit over a script, then showed, again, nothing.

That leaves me to wonder what it is about the swf itself that might be
faulty. The swf code I presented below is precisely what I hand compiled
with the sdk. It should at least say something. Yes? My earlier trials used
an swf I compiled with the Eclipse application builder. In that builder,
running as a Flex application showed it to work fine. But, it never showed
in a browser through a servlet engine.

Thanks to the suggestion, I'm now left with two candidates: flex is
installed but not working -- I've gone out on the web and have reason to
believe I have exercised it on swf objects elsewhere enough to have reason
to believe it is working, or, there is something about the swfs I am
creating that is faulty.

I am eager to hear other ideas or be pointed to something dumb or obvious
that I overlooked.

Many thanks
Jack

On 2/8/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:


   Have you simplified things by removing "jetty" (of which I am ignorant)
from the equation?  Put the swf in the same folder as the wrapper.



From a browser on the server hosting the wrapper, can you hit the jetty /
swf url?



Tracy


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Jack Park
*Sent:* Thursday, February 08, 2007 11:09 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Fwd: Problems painting an swf from a wrapper




I really hope someone can tell me what I am missing here.
Many thanks
Jack

In an earlier thread, I got engaged in the issue of history.js and a
history.html iframe. There is a template that doesn't use history.
That's as barebones as it gets. I am running the simplest possible
test to validate that my servlet can paint swf content. I went so far
as to craft a simple helloworld as follows:


http://www.adobe.com/2006/mxml";
pageTitle="HelloWorld Sample" >







I then adapted a template as follows (note the classpath to the swf
file -- this is an embedded Jetty server) -- the servlet prints a
trace that clearly shows it sending the swf file. What I get is a
colored box set to the background color (which, to me, indicates flex
is interpreting something from the html) but nothing from the content
itself. What am I missing?
Thanks
Jack


http://www.w3.org/1999/xhtml " xml:lang="en" lang="en">


FlexDev












http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab";>




http://www.adobe.com/go/getflashplayer";>











[flexcoders] StartDrag() versus DragManager.doDrag()

2007-02-08 Thread Mike Anderson
Hello All,

I am getting confused, as to which method I should use, for simply
panning around an Image/SWF file.

I did follow Michael's suggestions, and looked at the quick "Dragging an
Image to Canvas" tutorial contained in the help files.  My understanding
is a little deeper, when it comes to using DragManager - but in my case,
I am getting some odd results.

For the purposes of strictly panning Objects around, startDrag() is
providing me better "Visual Results" - as it happens in real-time when
dragging the mouse around.  When using doDrag(), it makes a copy of the
Object (I suppose, it's the Proxy being dragged) and then finishes the
move, upon the mouse release.  Also, for some reason, when using
doDrag(), the Object doesn't always move the same distance, when
compared to the distance of the mouse drag.  Really weird...  And it
gets worse, the more distance I move the mouse.  One last thing too, the
ImageProxy appears Outside of the container, when dragging the Image -
and in my case, my SWF File is 2,000 x 2,200 - so you can imagine the
whole screen filling up with my Image.

Since I am not doing any advanced functions, and just want to move the
Image around on the Screen, would it be acceptable to use startDrag()?

I guess what I REALLY need to find out, is if startDrag() and stopDrag()
will eventually be deprecated, or be considered NOT the way to handle
dragging Objects around.

Could any of you shed some additional light on this topic?

Thanks in advance,

Mike


[flexcoders] please help me

2007-02-08 Thread h8me4everplus1
Please, someone take a look and at least tell me there is no way to do
it the way I'm doing it.

Setting tabIndex doesn't do anything.

I have no idea what to do...

--- In flexcoders@yahoogroups.com, "h8me4everplus1" <[EMAIL PROTECTED]> wrote:
>
> I would like to set a specific "tab loop" for each state of the
> application I'm working on.
> 
> I thought that I would just set the tabIndex of the components and
> that the default tab index order would be overridden. This did not
> work. Tabbing behaves as if no tab index has been set.
> 
> I have made sure that I am targeting the right property and the right
> components since I've written a loop to automate the indexing.
> Everything seems okay, I've even traced the tabIndex of the components
> and they display the index I've set.
> 
> I am programming in pure AS3 using the flex framework, so there is
> just a main component in the MXML document that extends UIComponent.
> Everything is a child of this main component.
> 
> I have a container that has a complex pattern of children. The
> children of the container have children, and they are the targets for
> my tab loop. I have a public function for the containers children that
> gathers the components that will comprise the tab loop. I loop through
> the array of UIComponents and set their corresponding tabIndex
> property. This is done in the childrenCreated() function of the
container.
> 
> The structure looks like this
> 
> [mxmlDocument]
> [main]
> [container] <- childrenCreated() here sets tabIndex of children
> [A][B]
> [childOfA][childOfA][childOfB]
> 
> That is the basic idea, and it does nothing...
> 
> Thanks guys,
> 
> Melih
>




Re: [flexcoders] Re: BigInteger class for ActionScript

2007-02-08 Thread Jim Cheng
kaleb_pederson wrote:
> Number isn't suitable for my needs; it allows for very large 
> numbers, but its precision is limited to 53-bits.  I need between 
> 1024 and 4096 bit precision.  Specifically, I will need to generate 
> prime numbers that are between 128 and 512 decimal digits in length, 
> determine if numbers are relatively prime with those numbers, etc.  

If you don't mind porting some Javascript, Leemon Baird has written a 
public-domain Javascript library for handling arbitrary-precision 
arithmetic that you can try out and get the source code to here:

http://www.leemon.com/crypto/BigInt.html

If you're planning on doing a lot of such heavy lifting, I suspect that 
you'd likely see markedly better performance using a numerical analysis 
library compiled with processor-specific optimizations into native code, 
but to each his own

Jim Cheng
effectiveUI



[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-08 Thread chuvakgu

> why is FDS such a problem. there are free license options availible

But automation doesn't work with Express, AFAIK.

See http://tech.groups.yahoo.com/group/flexcoders/message/61470



[flexcoders] Can't deploy .swf

2007-02-08 Thread John Buono
This might sound to trivial, but it is frustrating.

i have just gotten Flex 2.  I have gone through the tutorial in the book.  I 
sucessfully built the 
RSS reader.  So far so good

but when I sent the .html file and the .swf file per the documentation to a 
friend, all we got 
was error messages about all the missing files.

When we put up the missing files (history.html, history.js, and a couple of 
others), either it 
did not work or we got a crossdoimain.xml missing error

What do I need to do to deplay the .swf files i create in flex.  I know it has 
to be something 
simple that I am missing.

thanks

John



[flexcoders] Re: HTML in Flex

2007-02-08 Thread h8me4everplus1
An overkill solution for you: if the context allows for it, you could
parse the html document so just the supported html tags are left.

--- In flexcoders@yahoogroups.com, "Robert Shaw" <[EMAIL PROTECTED]> wrote:
>
> I already think I know the answer, but I will ask anyway. We buy
medical knowledge from a company in HTML page format. Question is,
using Flex, is their any way I can read these HTML pages into Flex and
display.  I know I can do this in Java, but it would take forever and
my boss wants to get away from the page refresh.
> 
> 
> Robert Shaw
> 972-463-3515
>



[flexcoders] Distance between items on a HorizontalList

2007-02-08 Thread João Saleiro
Hello,

how do i change the distance between items on a HorizontalList?

Thanks,

João Saleiro



[flexcoders] What's the "official" consensus of using CodeBehind??

2007-02-08 Thread Mike Anderson
Hello All,

Could some of you more savvy coders, please take a moment of your
valuable time and throw some words of wisdom out there regarding
CodeBehind?

Since I love using Packages and Classes, it feels very natural for me to
use this method.

BUT, based on where things are going with Flex, is this considered to be
a "good programming practice"?

I would love to know sooner versus later, so that I don't have to back
and redo a bunch of coding.  I am a REAL stickler when it comes to good
coding practices.

Thanks in advance for your time on this,

Mike


[flexcoders] Change distance between items on a HorizontalList

2007-02-08 Thread João
Hello, 

is there a way to change the distance between items on a HorizontalList?

Thanks, 

João Saleiro



Re: [flexcoders] Re: HTML in Flex

2007-02-08 Thread Clint Tredway

as far as my own testing, the iFrame trick only works in IE.

On 2/8/07, coderdude2 <[EMAIL PROTECTED]> wrote:


  From what I've read so far, html support is not planned for the Flash
player (and therefore Flex) anytime soon.

What people are doing is combining Flex/Flash with AJAX/HTML on the
same browser page and using something like
http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge
to pass messages from one to the other.

It's even possible to position an html iframe on top of a region of
your flex app to make it seem like it's part of the app. See
http://ajax.sys-con.com/read/223822.htm for some ideas.

Good luck.

--- In flexcoders@yahoogroups.com , "Robert
Shaw" <[EMAIL PROTECTED]> wrote:
>
> I already think I know the answer, but I will ask anyway. We buy
medical knowledge from a company in HTML page format. Question is,
using Flex, is their any way I can read these HTML pages into Flex and
display. I know I can do this in Java, but it would take forever and
my boss wants to get away from the page refresh.
>
>
> Robert Shaw
> 972-463-3515
>

 





--
http://indeegrumpee.spaces.live.com/


[flexcoders] Re: HTML in Flex

2007-02-08 Thread coderdude2
>From what I've read so far, html support is not planned for the Flash
player (and therefore Flex) anytime soon. 

What people are doing is combining Flex/Flash with AJAX/HTML on the
same browser page and using something like
http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge
to pass messages from one to the other.

It's even possible to position an html iframe on top of a region of
your flex app to make it seem like it's part of the app. See
http://ajax.sys-con.com/read/223822.htm for some ideas.

Good luck.

--- In flexcoders@yahoogroups.com, "Robert Shaw" <[EMAIL PROTECTED]> wrote:
>
> I already think I know the answer, but I will ask anyway. We buy
medical knowledge from a company in HTML page format. Question is,
using Flex, is their any way I can read these HTML pages into Flex and
display.  I know I can do this in Java, but it would take forever and
my boss wants to get away from the page refresh.
> 
> 
> Robert Shaw
> 972-463-3515
>




[flexcoders] Re: BigInteger class for ActionScript

2007-02-08 Thread kaleb_pederson
Number isn't suitable for my needs; it allows for very large 
numbers, but its precision is limited to 53-bits.  I need between 
1024 and 4096 bit precision.  Specifically, I will need to generate 
prime numbers that are between 128 and 512 decimal digits in length, 
determine if numbers are relatively prime with those numbers, etc.  

For more information on what Number does support, see:

http://livedocs.macromedia.com/labs/as3preview/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0036.html

Thanks.

--Kaleb

--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> 
wrote:
>
> Kaleb
> 
> Use Number as usual was in Flash.
> 
> public var myNumber:Number = reachs 32k digits positive or 
negative
> 
> public var myotherNumbre:int = reachs only integer numbers more 
than 0
> 
> public var ler:uint;
> 
> Etc.
> 
> Best.
> 
> On 2/7/07, kaleb_pederson <[EMAIL PROTECTED]> wrote:
> >
> >   Hello all,
> >
> > Does anybody know of a BigInteger class (eg. one that supports
> > virtually unlimited precision and digits) that's available? It 
will
> > be used for encryption (generating random primes and such), so 
it
> > needs to support at least 512 digits.
> >
> > Thanks.
> >
> > --Kaleb
> >
> >  



[flexcoders] Any example on writing a video player in flex

2007-02-08 Thread gr8.walk
If any one knows of a video player(FLV in particular) application done
using flex
please let me know.
I am new to flex and this will help me come to speed with the tech.

TIA



RE: [flexcoders] Fwd: Problems painting an swf from a wrapper

2007-02-08 Thread Tracy Spratt
Have you simplified things by removing "jetty" (of which I am ignorant)
from the equation?  Put the swf in the same folder as the wrapper.

 

>From a browser on the server hosting the wrapper, can you hit the jetty
/ swf url?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jack Park
Sent: Thursday, February 08, 2007 11:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Fwd: Problems painting an swf from a wrapper

 


I really hope someone can tell me what I am missing here.
Many thanks
Jack

In an earlier thread, I got engaged in the issue of history.js and a
history.html iframe. There is a template that doesn't use history.
That's as barebones as it gets. I am running the simplest possible
test to validate that my servlet can paint swf content. I went so far
as to craft a simple helloworld as follows:


http://www.adobe.com/2006/mxml
 "
pageTitle="HelloWorld Sample" >







I then adapted a template as follows (note the classpath to the swf
file -- this is an embedded Jetty server) -- the servlet prints a
trace that clearly shows it sending the swf file. What I get is a
colored box set to the background color (which, to me, indicates flex
is interpreting something from the html) but nothing from the content
itself. What am I missing?
Thanks
Jack


http://www.w3.org/1999/xhtml 
" xml:lang="en" lang="en">


FlexDev












http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab

">




http://www.adobe.com/go/getflashplayer
 ">







 



[flexcoders] tab index

2007-02-08 Thread h8me4everplus1
I would like to set a specific "tab loop" for each state of the
application I'm working on.

I thought that I would just set the tabIndex of the components and
that the default tab index order would be overridden. This did not
work. Tabbing behaves as if no tab index has been set.

I have made sure that I am targeting the right property and the right
components since I've written a loop to automate the indexing.
Everything seems okay, I've even traced the tabIndex of the components
and they display the index I've set.

I am programming in pure AS3 using the flex framework, so there is
just a main component in the MXML document that extends UIComponent.
Everything is a child of this main component.

I have a container that has a complex pattern of children. The
children of the container have children, and they are the targets for
my tab loop. I have a public function for the containers children that
gathers the components that will comprise the tab loop. I loop through
the array of UIComponents and set their corresponding tabIndex
property. This is done in the childrenCreated() function of the container.

The structure looks like this

[mxmlDocument]
[main]
[container] <- childrenCreated() here sets tabIndex of children
[A][B]
[childOfA][childOfA][childOfB]

That is the basic idea, and it does nothing...

Thanks guys,

Melih



[flexcoders] HTML in Flex

2007-02-08 Thread Robert Shaw
I already think I know the answer, but I will ask anyway. We buy medical 
knowledge from a company in HTML page format. Question is, using Flex, is their 
any way I can read these HTML pages into Flex and display.  I know I can do 
this in Java, but it would take forever and my boss wants to get away from the 
page refresh.


Robert Shaw
972-463-3515

[flexcoders] Planning large flex projects...is there a good method?

2007-02-08 Thread Rick Schmitty
How do you guys/gals plan out large projects?  Something you can the
client can both see and get a feel for the working/flow without
actually programming the whole big thing but still being able to show
how requirements will be met


If this is a trade secret type thing, could you at least point me in
the right direction for some words to google :)

I've always been 'sheltered' from clients and just have been told what
to do by mouth or maybe a whiteboard...also its always been
Coldfusion/html pages, Flex brings a lot more possibilities for user
interaction


TIA

-Rick


Re: [flexcoders] Storing a Singleton in a Clientside Shared Object

2007-02-08 Thread Webdevotion

Thanks Ralf,

Finally got it :)

I think this has solved my issue.


[flexcoders] help needed on tree rllover

2007-02-08 Thread Matt Wicks
Hi all -

how the heck do you customize the rollover of a tree ? I don't mean  
the colour I mean the shape - at the moment the tree looks great and  
then you rollover (or select) and this horrible rectangle appears ::   
appreciated as ever any help

Matt



[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-08 Thread brian.knorr

Yes you are correct...we could get a free FDS Express license for each
of our developers and have them install FDS locally.  We decided a
while back to stay away from FDS because of the cost of using it in
production.  But for testing purposes we could use the free licenses,
which begs my other questions to be answered, because we are very
interested in using the existing system that is in place.

Is there any documentation on writing your own adapter for the
automation packages?

Can the automation packages be leveraged for scripting, not record and
playback?



--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
wrote:
>
> why is FDS such a problem. there are free license options availible
> 
> On 2/8/07, brian.knorr <[EMAIL PROTECTED]> wrote:
> >
> >
> > Yes - we are very interested in leveraging the existing automation
> > packages...we need some questions answered first...please see my
> > response here:
> >
> > http://tech.groups.yahoo.com/group/flexcoders/message/64177
> >
> > Two most important things for us to consider using the automation
> > packages:
> >
> > 1) They enable scripting, not record and playback
> > 2) They don't require FDS
> >
> > --- In flexcoders@yahoogroups.com ,
> > slangeberg  wrote:
> > >
> > > Brian,
> > >
> > > I am very interested in in a testing library like you speak of,
and was
> > > wondering what you thought of Matt's reply? Does your current system
> > utilize
> > > mx.automation and/or are you considering leveraging this?
> > >
> > > Thanks,
> > >
> > > -Scott
> > >
> > > On 2/7/07, Matt Chotin  wrote:
> > > >
> > > > I am not looking to derail any interest in you guys building
> > > > alternatives, but would like to point out that the Flex team did a
> > large
> > > > amount of work to enable the kind of functionality you're looking
> > for (minus
> > > > the tool). Check out the mx.automation packages and you'll see the
> > > > infrastructure that is in place to solve problems like using
> > semantic events
> > > > instead of x/y coordinates, etc. Admittedly, this is the portion
> > that we
> > > > consider the more interesting IP rather than the plugin that
> > enables QTP to
> > > > leverage this functionality (and what you need to pay to use). If
> > you have
> > > > FDS or are willing to invest money in the APIs even if not in QTP
> > itself,
> > > > I'd encourage you to build on top of this system. Interest
from other
> > > > vendors is increasing as well and I hope that we'll see
offerings in
> > > > addition to QTP in the future (they will be built using this
> > framework).
> > > >
> > > >
> > > >
> > > > As I stated previously we will continue to examine licensing
> > options for
> > > > things like the automation package, but do not expect any changes
> > in the
> > > > short term.
> > > >
> > > >
> > > >
> > > > Matt
> > > >
> > > >
> > > > --
> > > >
> > > > *From:* flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com ] *On
> > > > Behalf Of *brian.knorr
> > > > *Sent:* Wednesday, February 07, 2007 4:02 PM
> > > > *To:* flexcoders@yahoogroups.com 
> > > > *Subject:* [flexcoders] Re: any interest in an alternative to
QTP to
> > > > automate Flex apps?
> > > >
> > > >
> > > >
> > > > I took a look at imacros...my only concern is that it uses
WINCLICK to
> > > > automate flash apps. This means everything is x/y coordinate
based. We
> > > > want to interact with the actual ui components, finding them
by their
> > > > properties or type. For example here is a short snippet of a
simple
> > > > test we are using...I added the comments in order to explain
what is
> > > > going on:
> > > >
> > > > //find the first ComboBox in the app
> > > > var comboBoxOperator:ComboBoxOperator =
flexOperator.find(ComboBox) as
> > > > ComboBoxOperator;
> > > >
> > > > //select the option with the specified label
> > > > //upon user selection the app fires an event that sets a label
> > component
> > > > with the text 'You selected: X'
> > > > comboBoxOperator.select("MasterCard");
> > > >
> > > > //find the label with the specified properties and assert the
correct
> > > > selection was made
> > > > assertEquals("You selected:
> > > >
MasterCard",LabelOperator(flexOperator.find({id:"myLabel"})).text);
> > > >
> > > > Thoughts?
> > > >
> > > > --- In flexcoders@yahoogroups.com
,
> > "Allen
> > > > Riddle"  wrote:
> > > > >
> > > > > I've posted on here before about this topic. I think this is
> > something
> > > > > that lacks in the Flex community. Just curious if you or your
> > company
> > > > > have looked at a product called imacros. I downloaded the demo
> > and it
> > > > > was pretty decent. It's a lot cheaper than QTP. It also lets you
> > > > script
> > > > > out tests. I've also wondered if it was possible to get
Ruby's Watir
> > > > > tool to work with Flex, that would be my first choice if so.
Cool
> > > > > suggestion, we'd use it.
> > > > >
> > > > >
> > > > >
> > > > > 

RE: [flexcoders] WARNING: css type selectors are not supported in components?

2007-02-08 Thread Brian Holmes
No, it's exactly the following:
 
http://www.adobe.com/2006/mxml";>
 
 
 
   .some components.
 
 

 
 
 
 
 
The wierd thing is that it's not just one warning, it's several of the
same warnings and everytime I compile it's as if it arbitrarily adds
a few more warning messages give or take. I've tried cleaning and some
of them will disappear but never all of them. By the end of the day, I
usually have about 20 to 30 warning messages. It makes it hard to
quickly pick up the warning messages I need to get.
 
I've looked through all my components to see if I can find a reference
to a stylesheet and haven't found it. I probably missed it though.
 
Thanks,
 
Brian..
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, February 07, 2007 1:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] WARNING: css type selectors are not supported
in components?



Is your  tag inside an  tag or
inside something like ?

 

If it is the latter, I think the MXML compiler thinks
 is a component rather than an application.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Wednesday, February 07, 2007 12:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] WARNING: css type selectors are not supported
in components?

 

Yeah, I know,

 I don't have any of that in any components. The only thing is in my
application fine, i have a  reference to my

style sheet. 

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Wednesday, February 07, 2007 1:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] WARNING: css type selectors are not supported
in components?

Hi,

In a custom component you cannot have;

Button {
...
}

You have to specify them in the Application.

Peace, Mike

On 2/7/07, Brian Holmes <[EMAIL PROTECTED]
 > wrote: 

I'm getting this warning message since I upgrade to FB 2.01 and i can't
seem to get rid of it. I don't have any inline css,

but I do have a reference to a style sheet in my application shell. 

 

Anybody else out there experiencing this?

 

B..



***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information. 
*** 




-- 
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'. 



***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information.
*** 

 


***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


Re: [flexcoders] Storing a Singleton in a Clientside Shared Object

2007-02-08 Thread Ralf Bokelberg

Yes, it knows about the type, so the shared object knows
which class to use when recreating the instance. It's just -
if you don't assign the user object from the SharedObject to the
static _instance your User class simply returns a different user object.
There is no implicit connection between these instances.

Cheers,
Ralf.

On 2/8/07, Webdevotion <[EMAIL PROTECTED]> wrote:


  I allready use

registerClassAlias("be.webdevotion.business.User",User);

to register the User class in the so.data.

This way the shared object knows about the data type ; )
 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] Re: tree of extended components? possible?

2007-02-08 Thread tinkiknit
Thanks! I shall give it a try...

christine
--- In flexcoders@yahoogroups.com, "Michael Schmalle" 
<[EMAIL PROTECTED]> wrote:
>
> Yes,
> 
> Look at the itemRenderer property of the Tree. It's exactly what 
you want.
> 
> You might also check out dataDescriptiors if your model is 
complicated and
> you want to extend the tree using your custom component
> children(itemRenderer) and model.
> 
> Peace, Mike
> 
> On 2/8/07, tinkiknit <[EMAIL PROTECTED]> wrote:
> >
> >   Hello...
> >
> > Here is my idea. I'm working on a query tool for a simple data
> > repository. I have 3 operators, AND, OR and NOT. What I would 
like to
> > do is use a tree control to form the queries.
> >
> > Example in rudimentary text drawing:
> >
> > AND
> > |
> > - query term
> > |
> > - query term
> > +
> >
> > (the plus sign is to open up a new term builder (this is my custom
> > component, already coded)
> >
> > Is it possible to have custom components as the children of a tree
> > node? ie to have them as leaves?
> >
> > Tried to search the archive for this but I don't think I had a 
decent
> > search query to come up with anything...
> >
> > Thanks for any help!
> >
> > Christine
> >
> >  
> >
> 
> 
> 
> -- 
> 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'.
>




Re: [flexcoders] tree of extended components? possible?

2007-02-08 Thread Michael Schmalle

Yes,

Look at the itemRenderer property of the Tree. It's exactly what you want.

You might also check out dataDescriptiors if your model is complicated and
you want to extend the tree using your custom component
children(itemRenderer) and model.

Peace, Mike

On 2/8/07, tinkiknit <[EMAIL PROTECTED]> wrote:


  Hello...

Here is my idea. I'm working on a query tool for a simple data
repository. I have 3 operators, AND, OR and NOT. What I would like to
do is use a tree control to form the queries.

Example in rudimentary text drawing:

AND
|
- query term
|
- query term
+

(the plus sign is to open up a new term builder (this is my custom
component, already coded)

Is it possible to have custom components as the children of a tree
node? ie to have them as leaves?

Tried to search the archive for this but I don't think I had a decent
search query to come up with anything...

Thanks for any help!

Christine

 





--
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] Re: Help Extending TabNavigator/ButtonBar

2007-02-08 Thread dougmccune
And I just posted my latest version of an extended TabNavigator with
the source.

http://dougmccune.com/blog/2007/02/07/quest-for-the-perfect-tabnavigator-part-3-with-source/

Doug

--- In flexcoders@yahoogroups.com, "Jason Hawryluk" <[EMAIL PROTECTED]> wrote:
>
> Bump...
> 
> My version is now up with source for those that wish to have a look.
> 
>
http://flexibleexperiments.wordpress.com/2007/02/05/flex-201-extending-the-t
> ab-navigator/
> 
> Enjoy.
> 
> Jason
> 
> 
>   -Message d'origine-
>   De : flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] la
> part de Doug McCune
>   Envoyé : mardi 23 janvier 2007 09:45
>   À : flexcoders@yahoogroups.com
>   Objet : Re: [flexcoders] Help Extending TabNavigator/ButtonBar
> 
> 
>   I know Jason said he's going to be releasing a new TabNavigator
component,
> but I couldn't resist trying my hand at it.
> 
>   Here's my enhanced TabNavigator:
>
http://dougmccune.com/blog/2007/01/23/the-quest-for-the-perfect-tabnavigator
> /
> 
>   It uses existing code for closeable and draggable tabs, and adds in
> functionality for scrolling tabs if there are too many, and also
displaying
> the drop-down list on the right side. No source code yet, but that
will come
> in another day or two after I clean it up a bit.
> 
>   Jason, I'll be interested to see how you approach it...
> 
> 
>   Ciarán wrote:
> 
> Thanks Jason, would be a great help. Just subscribed to the feed. =)
> 
> -Ciarán
> 
> On 1/22/07, Jason Hawryluk <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > I'm working on a blog post for something similar, but more
toward the
> way flex builder does it with a drop down at the end. Plus a bunch
of other
> goodies. ;)
> >
> >
> >
> > I may have it up this week, need to finish this current post
first,
> plus do some paying work. :)
> >
> >
> >
> > I'll also provide source.
> >
> >
> >
> > jason
> >
>




Re: [flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-08 Thread Johannes Nel

why is FDS such a problem. there are free license options availible

On 2/8/07, brian.knorr <[EMAIL PROTECTED]> wrote:



Yes - we are very interested in leveraging the existing automation
packages...we need some questions answered first...please see my
response here:

http://tech.groups.yahoo.com/group/flexcoders/message/64177

Two most important things for us to consider using the automation
packages:

1) They enable scripting, not record and playback
2) They don't require FDS

--- In flexcoders@yahoogroups.com ,
slangeberg <[EMAIL PROTECTED]> wrote:
>
> Brian,
>
> I am very interested in in a testing library like you speak of, and was
> wondering what you thought of Matt's reply? Does your current system
utilize
> mx.automation and/or are you considering leveraging this?
>
> Thanks,
>
> -Scott
>
> On 2/7/07, Matt Chotin <[EMAIL PROTECTED]> wrote:
> >
> > I am not looking to derail any interest in you guys building
> > alternatives, but would like to point out that the Flex team did a
large
> > amount of work to enable the kind of functionality you're looking
for (minus
> > the tool). Check out the mx.automation packages and you'll see the
> > infrastructure that is in place to solve problems like using
semantic events
> > instead of x/y coordinates, etc. Admittedly, this is the portion
that we
> > consider the more interesting IP rather than the plugin that
enables QTP to
> > leverage this functionality (and what you need to pay to use). If
you have
> > FDS or are willing to invest money in the APIs even if not in QTP
itself,
> > I'd encourage you to build on top of this system. Interest from other
> > vendors is increasing as well and I hope that we'll see offerings in
> > addition to QTP in the future (they will be built using this
framework).
> >
> >
> >
> > As I stated previously we will continue to examine licensing
options for
> > things like the automation package, but do not expect any changes
in the
> > short term.
> >
> >
> >
> > Matt
> >
> >
> > --
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com ] *On
> > Behalf Of *brian.knorr
> > *Sent:* Wednesday, February 07, 2007 4:02 PM
> > *To:* flexcoders@yahoogroups.com 
> > *Subject:* [flexcoders] Re: any interest in an alternative to QTP to
> > automate Flex apps?
> >
> >
> >
> > I took a look at imacros...my only concern is that it uses WINCLICK to
> > automate flash apps. This means everything is x/y coordinate based. We
> > want to interact with the actual ui components, finding them by their
> > properties or type. For example here is a short snippet of a simple
> > test we are using...I added the comments in order to explain what is
> > going on:
> >
> > //find the first ComboBox in the app
> > var comboBoxOperator:ComboBoxOperator = flexOperator.find(ComboBox) as
> > ComboBoxOperator;
> >
> > //select the option with the specified label
> > //upon user selection the app fires an event that sets a label
component
> > with the text 'You selected: X'
> > comboBoxOperator.select("MasterCard");
> >
> > //find the label with the specified properties and assert the correct
> > selection was made
> > assertEquals("You selected:
> > MasterCard",LabelOperator(flexOperator.find({id:"myLabel"})).text);
> >
> > Thoughts?
> >
> > --- In flexcoders@yahoogroups.com 
,
"Allen
> > Riddle"  wrote:
> > >
> > > I've posted on here before about this topic. I think this is
something
> > > that lacks in the Flex community. Just curious if you or your
company
> > > have looked at a product called imacros. I downloaded the demo
and it
> > > was pretty decent. It's a lot cheaper than QTP. It also lets you
> > script
> > > out tests. I've also wondered if it was possible to get Ruby's Watir
> > > tool to work with Flex, that would be my first choice if so. Cool
> > > suggestion, we'd use it.
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 

[mailto:
> > flexcoders@yahoogroups.com 
]
> > On
> > > Behalf Of Simeon Bateman
> > > Sent: Wednesday, February 07, 2007 3:56 PM
> > > To: flexcoders@yahoogroups.com 

> > > Subject: Re: [flexcoders] any interest in an alternative to QTP to
> > > automate Flex apps?
> > >
> > >
> > >
> > > I am interested in this. I had been playing with the thought of
using
> > > the FA Bridge to allow you to use Selenium to test your
applications.
> > > Then you could use the Firefox plugin to record our actions and test
> > the
> > > movie.
> > >
> > > Not sure how feasible it is but even that would start with having a
> > > testing framework in flex to tie into.
> > >
> > >
> > > simeon
> > >
> > > On 2/7/07, brian.knorr wundahwheel@
> > >  wrote:
> > >
> > >
> > > Automating functional tests is critical to the way we develop
software
> > > at my company. And there are two big things that stop us from using
> > QTP.
> > >
> > > 1) It's record and playback - we want to write test scripts
> > > 2) It costs a lot o

[flexcoders] Can anyone help me with Drag and Drop for a tree control in Flex 2.0?

2007-02-08 Thread chrislpigg
I'm trying to get a node when dropped to demote and to become a child.
 I've looked and tried everything.  If anyone could help or give me a
quick example I would appreciate it... very much so.

So far I have a simple tree structure as such.
var temp:String = ""+
""+
""+
""+
""+
""+
   "";

I want to be able to drop node1 on node3 and for node1 to become a
child of node3.



[flexcoders] Fwd: Problems painting an swf from a wrapper

2007-02-08 Thread Jack Park

I really hope someone can tell me what I am missing here.
Many thanks
Jack


In an earlier thread, I got engaged in the issue of history.js and a
history.html iframe. There is a template that doesn't use history.
That's as barebones as it gets. I am running the simplest possible
test to validate that my servlet can paint swf content. I went so far
as to craft a simple helloworld as follows:


http://www.adobe.com/2006/mxml";
pageTitle="HelloWorld Sample"  >







I then adapted a template as follows (note the classpath to the swf
file -- this is an embedded Jetty server) -- the servlet prints a
trace that clearly shows it sending the swf file. What I get is a
colored box set to the background color (which, to me, indicates flex
is interpreting something from the html) but nothing from the content
itself. What am I missing?
Thanks
Jack


http://www.w3.org/1999/xhtml " xml:lang="en" lang="en">

 
  FlexDev
 











  http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab";>




http://www.adobe.com/go/getflashplayer";>




 



Re: [flexcoders] Re: Tree queston

2007-02-08 Thread Matt Wicks

ok forget it  got it when I turned my brain on -
On 8 Feb 2007, at 14:33, Matt Wicks wrote:


Hi All,

just looking for help on something with the tree control : its
default behaviour is to open a leaf when the user click on the arrow
- I want to make it behave in the same way when the user clicks on he
actual text (ie the FOLDERopenIcon or the text text to it ...

any suggestions ? I imagine its a case of extending teh Tree but just
wanted to see if I have missed anything else?

Thanks

Matt







[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-08 Thread brian.knorr

Yes - we are very interested in leveraging the existing automation
packages...we need some questions answered first...please see my
response here:

http://tech.groups.yahoo.com/group/flexcoders/message/64177

Two most important things for us to consider using the automation
packages:

1) They enable scripting, not record and playback
2) They don't require FDS


--- In flexcoders@yahoogroups.com, slangeberg <[EMAIL PROTECTED]> wrote:
>
> Brian,
> 
> I am very interested in in a testing library like you speak of, and was
> wondering what you thought of Matt's reply? Does your current system
utilize
> mx.automation and/or are you considering leveraging this?
> 
> Thanks,
> 
> -Scott
> 
> On 2/7/07, Matt Chotin <[EMAIL PROTECTED]> wrote:
> >
> >I am not looking to derail any interest in you guys building
> > alternatives, but would like to point out that the Flex team did a
large
> > amount of work to enable the kind of functionality you're looking
for (minus
> > the tool).  Check out the mx.automation packages and you'll see the
> > infrastructure that is in place to solve problems like using
semantic events
> > instead of x/y coordinates, etc.  Admittedly, this is the portion
that we
> > consider the more interesting IP rather than the plugin that
enables QTP to
> > leverage this functionality (and what you need to pay to use).  If
you have
> > FDS or are willing to invest money in the APIs even if not in QTP
itself,
> > I'd encourage you to build on top of this system.  Interest from other
> > vendors is increasing as well and I hope that we'll see offerings in
> > addition to QTP in the future (they will be built using this
framework).
> >
> >
> >
> > As I stated previously we will continue to examine licensing
options for
> > things like the automation package, but do not expect any changes
in the
> > short term.
> >
> >
> >
> > Matt
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *brian.knorr
> > *Sent:* Wednesday, February 07, 2007 4:02 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Re: any interest in an alternative to QTP to
> > automate Flex apps?
> >
> >
> >
> > I took a look at imacros...my only concern is that it uses WINCLICK to
> > automate flash apps. This means everything is x/y coordinate based. We
> > want to interact with the actual ui components, finding them by their
> > properties or type. For example here is a short snippet of a simple
> > test we are using...I added the comments in order to explain what is
> > going on:
> >
> > //find the first ComboBox in the app
> > var comboBoxOperator:ComboBoxOperator = flexOperator.find(ComboBox) as
> > ComboBoxOperator;
> >
> > //select the option with the specified label
> > //upon user selection the app fires an event that sets a label
component
> > with the text 'You selected: X'
> > comboBoxOperator.select("MasterCard");
> >
> > //find the label with the specified properties and assert the correct
> > selection was made
> > assertEquals("You selected:
> > MasterCard",LabelOperator(flexOperator.find({id:"myLabel"})).text);
> >
> > Thoughts?
> >
> > --- In flexcoders@yahoogroups.com ,
"Allen
> > Riddle"  wrote:
> > >
> > > I've posted on here before about this topic. I think this is
something
> > > that lacks in the Flex community. Just curious if you or your
company
> > > have looked at a product called imacros. I downloaded the demo
and it
> > > was pretty decent. It's a lot cheaper than QTP. It also lets you
> > script
> > > out tests. I've also wondered if it was possible to get Ruby's Watir
> > > tool to work with Flex, that would be my first choice if so. Cool
> > > suggestion, we'd use it.
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
[mailto:
> > flexcoders@yahoogroups.com ]
> > On
> > > Behalf Of Simeon Bateman
> > > Sent: Wednesday, February 07, 2007 3:56 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: Re: [flexcoders] any interest in an alternative to QTP to
> > > automate Flex apps?
> > >
> > >
> > >
> > > I am interested in this. I had been playing with the thought of
using
> > > the FA Bridge to allow you to use Selenium to test your
applications.
> > > Then you could use the Firefox plugin to record our actions and test
> > the
> > > movie.
> > >
> > > Not sure how feasible it is but even that would start with having a
> > > testing framework in flex to tie into.
> > >
> > >
> > > simeon
> > >
> > > On 2/7/07, brian.knorr wundahwheel@
> > >  wrote:
> > >
> > >
> > > Automating functional tests is critical to the way we develop
software
> > > at my company. And there are two big things that stop us from using
> > QTP.
> > >
> > > 1) It's record and playback - we want to write test scripts
> > > 2) It costs a lot of money - we want a tool that is free and
community
> > > driven
> > >
> > > At my company we are writing several applications 

Re: [flexcoders] Storing a Singleton in a Clientside Shared Object

2007-02-08 Thread Webdevotion

I allready use

registerClassAlias("be.webdevotion.business.User",User);

to register the User class in the so.data.

This way the shared object knows about the data type ; )


  1   2   >