Re: [flexcoders] Booleans and Stardust

2007-04-22 Thread Muzak
Use int instead of Boolean ?

-1 (instead of null)
 0 (instead of false)
 1 (instead of true)

regards,
Muzak



- Original Message - 
From: "Shannon" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, April 22, 2007 8:11 AM
Subject: [flexcoders] Booleans and Stardust


I wrote a function to change state of details based on arg[0]
(off_on):
  true  - show
  false - hide
  null  - toggle

Seems ok, but if off_on is declared Boolean we get a warning: "1096:
Illogical comparison with null.  Variables of type Boolean cannot be
null."

Shucks ... ":(~

So I now have my function as follows, and it works ok, but type
checking is obviously lost because I dont define off_on:Boolean.

01 public function toggleDetails(off_on:* = null):void{
02   if(off_on === null){
03 details = !details;
04   } else {
05 details = off_on;
06   }
07 }

It would be nice to be able to specify Boolean because I am perfectly
satified with true|false|empty. I am also dissapointed to see the
compiler complain that I check for null on line 02. Why do I feel
that is a bad thing? Because what if my Boolean value is
uninitialized? (e.g. var b:Boolean;toggleDetails(b); )

Thanks in advance... and I'll save 2+n parameter questions for
another post...





[flexcoders] Re: Conditional Compile?

2007-04-22 Thread Tim
Too bad!  This would be handy when building with Apollo.

--- In flexcoders@yahoogroups.com, "Steve Kellogg @ Project SOC"
<[EMAIL PROTECTED]> wrote:
>
> Thanks, Gordon.
> 
>  
> 
>  
> 
> Steve 
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Gordon Smith
> Sent: Friday, October 13, 2006 10:54 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Conditional Compile?
> 
>  
> 
> No, sorry, AS3 doesn't support conditional compilation.
> 
>  
> 
> - Gordon
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Steve Kellogg @ Project SOC
> Sent: Friday, October 13, 2006 7:03 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Conditional Compile?
> 
>  
> 
> Hello,
> 
>  
> 
> I haven't seen anything in the dox about conditional compile
(#ifdef, etc).
> Does Flex/AS 3.0 have such a capability?  
> 
>  
> 
> Thanks in advance,
> 
>  
> 
> Steve
> 
>  
> 
>  
> 
>  
> 
> Steve Kellogg
> 
> Peak8 Solutions
> 
> 1401 14th Street
> 
> Boulder, Colorado
> 
> 80302, USA
> 
> Fax: 303.415.2597
> 
> E-Mail: [EMAIL PROTECTED]
>




[flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread munene_uk
--- In flexcoders@yahoogroups.com, "munene_uk" <[EMAIL PROTECTED]> wrote:
>
> i've got two canvases in a tabnavigator which are named students and
> courses
> 
> the student canvas contains alot more information than the courses
> canvas
> my idea is that when the user click on the course tab the tabnavigator
> should resize(shrink) to fit.
> does anyone know how i can achieve this?
> 
> my other question is can i achieve the same effect without having to
> switch states instead tell the tab navigato to resize itself
>

can anyone please offer some advice on how i can achieve this?




[flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Steve Kellogg
Hello,

 

The standard behavior for a combobox is to grow in width until it's wide
enough to display the current selection.

 

Is there anyway to tell a ComboBox to Truncate the current displayed
Selection if it's too wide for a ComboBox?

 

I've tried setting both the "left" and "right" for the box in the hope
that Flex would recognize this as a hard limit, but it doesn't seem to
work like this.

 

TIA

 

Steve

 

 



[flexcoders] using a check boxes on a list control

2007-04-22 Thread munene_uk
ive downloaded this sample
   from 
http://blogs.adobe.com/aharui/ 

and im tryin to use it in my course management application.

im using amfphp 1.9


i simply want the app to retrieve the list of courses available and
populate a list which will the be used in a form so that a student can
be enrolled onto a course by clicking on a checkbox. similar to the
sample shown above.


the courses table contains the following fields

CourseID
CourseName
TeacherID

below is a break down of  my code hope it makes sense

populating the array collection:

courseList = new ArrayCollection ( ArrayUtil.toArray(evt.result) );



layout:

  



my list currently shows all the courses from the courses table, however
i want to attach a checkbox to each list.

the list will be used in a form which allows the user to select what
courses to enrol the student to. im not sure how to exactly

so how can i get my check boxes to behave in the same way as the sample
application shown on the links above?










Re: [flexcoders] Booleans and Stardust

2007-04-22 Thread Manish Jethani
Boolean cannot be null. The default value is false if not initialised.

I think you want to use int with predefined constants.

On 4/22/07, Muzak <[EMAIL PROTECTED]> wrote:
> Use int instead of Boolean ?
>
> -1 (instead of null)
>  0 (instead of false)
>  1 (instead of true)
>
> regards,
> Muzak
>
>
>
> - Original Message -
> From: "Shannon" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, April 22, 2007 8:11 AM
> Subject: [flexcoders] Booleans and Stardust
>
>
> I wrote a function to change state of details based on arg[0]
> (off_on):
>   true  - show
>   false - hide
>   null  - toggle
>
> Seems ok, but if off_on is declared Boolean we get a warning: "1096:
> Illogical comparison with null.  Variables of type Boolean cannot be
> null."
>
> Shucks ... ":(~
>
> So I now have my function as follows, and it works ok, but type
> checking is obviously lost because I dont define off_on:Boolean.
>
> 01 public function toggleDetails(off_on:* = null):void{
> 02   if(off_on === null){
> 03 details = !details;
> 04   } else {
> 05 details = off_on;
> 06   }
> 07 }
>
> It would be nice to be able to specify Boolean because I am perfectly
> satified with true|false|empty. I am also dissapointed to see the
> compiler complain that I check for null on line 02. Why do I feel
> that is a bad thing? Because what if my Boolean value is
> uninitialized? (e.g. var b:Boolean;toggleDetails(b); )
>
> Thanks in advance... and I'll save 2+n parameter questions for
> another post...
>
>
>
>
>
> --
> 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: Resize Effect for Percentages?

2007-04-22 Thread Matt
Don't suppose you have some code you could post as an example?

Are you actually going through the process of extending Resize and
making it so if it ends on a percentage value when the effect finishes
it actually does change to a percentage (so if you resize it acts
appropriately)?

If that's not the case, would you be interested in me posting code if
I were to write such a thing?

--- In flexcoders@yahoogroups.com, "iko_knyphausen" <[EMAIL PROTECTED]> wrote:
>
> 
> I have struggled with the same and ended up doing the percentage math on
> my own. The effects don't provide percentage properties, and they don't
> have a from/toConstraint either...which could be handy at times...
> 
> 
> --- In flexcoders@yahoogroups.com, "Matt"  wrote:
> >
> > Is there any way to use the Resize effect to either resize from 0 to a
> > percentage or from a percentage to 0?
> >
>




Re: [flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread Manish Jethani
Set resizeToContent on the tab navigator to true.

On 4/22/07, munene_uk <[EMAIL PROTECTED]> wrote:
> --- In flexcoders@yahoogroups.com, "munene_uk" <[EMAIL PROTECTED]> wrote:
> >
> > i've got two canvases in a tabnavigator which are named students and
> > courses
> >
> > the student canvas contains alot more information than the courses
> > canvas
> > my idea is that when the user click on the course tab the tabnavigator
> > should resize(shrink) to fit.
> > does anyone know how i can achieve this?
> >
> > my other question is can i achieve the same effect without having to
> > switch states instead tell the tab navigato to resize itself
> >
>
> can anyone please offer some advice on how i can achieve this?
>
>
>
>
> --
> 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] Problems with components not being garbage collected after removeChild()

2007-04-22 Thread João
Hello,

i have one application with several sections. Each section is created
with:

section=addChild(new MySection());

and destroyed with:

removeChild(section);
section=null;

Everytime i create one section, i destroy the previous ones.

The section MySection has one component MyComponent that has the
following script:

  private var _myVar:String;
  [Bindable] public function get myVar():String
  {
  return _myVar;
  }
  public function set myVar(m:String):void
  {
  if (m!=null)
  {
  Alert.show("myVar was set on " + this.uid);
  _myVar=m;
  }
  }

As i said previously, MySection has one MyComponent with the myVar
binded to a model on the ModelLocator:



I realized via debugging that the setter of myVar was being called too
much times: the first time i create the section it's called one time;
on the second time, it's called three times; on the third time, four
times; and so on...

So, i placed that Alert.show("myVar was set on " + this.uid); on the
setter because i concluded that the references to MyComponent were not
being proper destroyed with the removeChild and section=null;

And i realized that effectively whenever i open the section, i have
one alert with a new uid, and one more alert with an old uid for each
time i was on the section.

That means that Flex is not removing the references to the sections
(they are not being garbage collected).

This is creating me big problems. How can i be sure that whenever i
remove MySection i do not have to worry with bindings on old
references that should already been removed?

Also, is it possible to see which references are on memory on a given
point on runtime, so i can time if it's really a problem with garbage
collecting?

Thanks,

João Saleiro




[flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread munene_uk
--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> Set resizeToContent on the tab navigator to true.
> 
> On 4/22/07, munene_uk <[EMAIL PROTECTED]> wrote:
> > --- In flexcoders@yahoogroups.com, "munene_uk"  wrote:
> > >
> > > i've got two canvases in a tabnavigator which are named students and
> > > courses
> > >
> > > the student canvas contains alot more information than the courses
> > > canvas
> > > my idea is that when the user click on the course tab the
tabnavigator
> > > should resize(shrink) to fit.
> > > does anyone know how i can achieve this?
> > >
> > > my other question is can i achieve the same effect without having to
> > > switch states instead tell the tab navigato to resize itself
> > >
> >
> > can anyone please offer some advice on how i can achieve this?
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
>
thanks for the reply but for some reason it doesn't seem to work can
you maybe exaplin to me in a bit more detail how this should be
implemented?





[flexcoders] Re: Slow and jumpy scrolling in DataGrid. Is it possible to cache more?

2007-04-22 Thread harfga

Those are good suggestions, but I've already tried both of them.

I don't think sticking the DataGrid in a big Canvas is a good solution
because not only does it looks ugly, and you lose the feature of
scrolling in increments of data columns.

I optimized my item renderers by eliminating them.  In the objects
that represent rows in the DataGrid I created fields for string
representations of every non-string value.  Event with no custom
renderers the scrolling still isn't smooth.

Does anybody have an idea of how hard it would be to have the DataGrid
cache columns that are off screen?


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Some folks make the DG very wide and stick it a canvas and use Canvas's
> scrollbar.
>  
> It might be worth looking into optimizing your custom renderers.
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of harfga
> Sent: Friday, April 20, 2007 8:14 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Slow and jumpy scrolling in DataGrid. Is it
> possible to cache more?
> 
> 
> 
> I have an application with DataGrid components that have many columns,
> with a horizontal scroll bar. The performance of horizontal scrolling
> is bad. It is markedly bad if I use custom item renderers.
> 
> As a comparison, scrolling within a large Canvas component is very
> smooth and quick.
> 
> I believe the Canvas is fast because it caches the graphical content
> of what is off screen. On the other hand, the DataGridColumn elements
> are rendered every time they are first brought on the screen.
> 
> Has anybody else experienced this? Does anybody have advice on how to
> customize the DataGrid so that it keeps off-screen DataGridColumn
> objects cached and pre-rendered?
> 
> Thank you.
>




[flexcoders] Re: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread João
I have created a minimal flex app to show the problem. You can access
it on
http://www.riapt.org/opensource/removeChildTest/removeChildTest.html.
The source is available (right click-> view source). 

As you can see, after creating, destroying and creating again (by
pressing twice the first button), if you change the model you can see
that there is an old reference to the destroyed component.

This is creating me so much trouble :|

Thanks, 

João Saleiro



[flexcoders] Re: trying here- get an image name and the images itself to load

2007-04-22 Thread shawn.gibson
As promised, the url, VS Enabled. 

I'd be grateful for any help.

http://shawngibson.com/imagesmech/main.html

Shawn




[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, "Scott Barnes" <[EMAIL PROTECTED]>
wrote:
>
> Paul,
> 
> How many enterprise / companies do you know are shopping around for
> electronic forms built in PDF vs SAAS solutions? 

Quite a few actually.  The company I work for provides this as a
service for many fortune 500 companies.  Some of those companies are
right now in the process of moving to Flex for the front end of their
forms systems. PDF has already deeply penetrated the business world. 
Why do you feel PDF is a danger to business?  It has many benefits
including being a universal format that is easy to read.  It includes
versioning and security features required by SOX compliance. It just
makes sense for many organizations to adopt.

Paul



[flexcoders] trying here- get an image name and the images itself to load

2007-04-22 Thread shawn.gibson
I swear to god I'm doing the best I can here, and I do seem to be
getting closer.

My problem right now is that I don't seen to be able to get the main
image (orthe text label) to load after a particular thumb is clicked.
I SEEM to be loading the entire array...which of course makes no
sense. The function that does this is the following:

public function loadMainImage(event:Event):void {
   
[EMAIL PROTECTED]
   
[EMAIL PROTECTED]
}

I'm trying to tell both the image_name_text and the Main_mage to load
what would be the current text/title and the current image based on
the secections involved.

I'll give the entire block if it helps:





I have migrated everything to my development machine (Vista is rather
Nifta!). If this code provided doesn't help I will upload the
application to my make-shift server till my real server gets back to
the shop.

I am also very worried that I don't get the concepts Tracy and others
abide by - not referencing the result directly, but doing so by using
a ResultHandler, because my understanding is without such, you can't
debug. I just don't get that part at all.

Does anyone know why my loadMainImage method seems to be passing both
an array of ALL text and, I am GUESSING, instead of reading the single
image as it should, it might be trying to pass the entire group of
images to the image, which would explain why it gives me a broken
image...but DOES seem to want to connect...just doing so incorrectly.

The XML is of this structure:










 



I'm getting desperate. I can't do this by myself, and I'm sinking into
a depression because of it. Outside the fact that this venture has
cost me over $25,000 so far (I'm a secretary, we are talking about a
year's pay for me into this project..., and I am getting nowhere, I'm
getting very depressed. I have ADHD, so please understand I am only
asking for help because I really, really, need it. I have absolutely
no desire to make money. I just want to make something beautiful for
my images and to give it to the world when it's done. I KNOW my
project has value to that end.

I won't bother you guys again if I have overstepped the limits of
'asking for help'. I'll just try on my own for as long as I can stay
sane with it, and failing that, I might have no choice but to put all
this money and my desire to build this behind me...I have no idea what
I will do if that happens.

I'll see if I can move this to my make-shift server so you can see it
in (non)action...

Shawn



Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread dorkie dork from dorktown

you wrote,
How many enterprise / companies do you know are shopping around for
electronic forms built in PDF vs SAAS solutions?  PDF is a danger in some
organisations, it's something they want to put as much distance away from as
possible and prefer to leave them buried in the Document Management
Solution(s). I'm not saying it's not worth the persuit (I think MSFT has
some stuff in this space as well, forgive me as I've not cared to look into
what they are) but do so *NOT* at the expense of FLEX/RIA development
world-wide.

that's what i'm talking about! there is a goal here that i thought Flex/RIA
was trying to address. i thought that was to make development and developers
lives easier and add new and necessary features to progress that.

i love flex. it is an amazing vehicle but i think we need to get the
foundation built. the flex 2 framework is part of the foundation. the data
services adapters on the server need to be part of that foundation. at least
basic amf remoting deserializers / classes. half the benefit of flex is the
data communications. client side *is* only half the application.

flex builder - reasonably priced
flex sdk - free (great for mass adoption)
flex data services - out of reach for mass adoption of flex

IMO that is the reason people would shop around to another solution.

i don't see Silverlight's path in this market. if it does have something out
of the box it will have a huge advantage.


On 4/21/07, Scott Barnes <[EMAIL PROTECTED]> wrote:


  Paul,

How many enterprise / companies do you know are shopping around for
electronic forms built in PDF vs SAAS solutions?  PDF is a danger in some
organisations, it's something they want to put as much distance away from as
possible and prefer to leave them buried in the Document Management
Solution(s). I'm not saying it's not worth the persuit (I think MSFT has
some stuff in this space as well, forgive me as I've not cared to look into
what they are) but do so *NOT* at the expense of FLEX/RIA development
world-wide.

2002 RIA Theory was written down, people bought it (I for one, hey he also
was the brains behind CF, so I owe my mortgage to his last idea, so figured
he'd be worth the second). It's 2007 and RIA is supposed to be bigger! Yet,
isn't as widespread.

So, Microsoft are looking to give developers access to three tiers of User
Experience through a more mature approach that goes beyond the runtime stck
with a focus on the developers initially, get them on firm footing, then go
look at the higher ends of town as by this point developers, whom are just
as important, have validated the substance of the technology on merit.

Good Experience
AJAX  / HTML / CSS

Great Experience
Silverlight

Ultimate Experience
Windows Presentation Foundation


ASP.NET 2.0 has reduced effort by up to two-thirds since ASP 1.0 was
produced, I say this as being a Coldfusion developer for 9 years I'm amazed
at how fluent one is able to go from ASP to AJAX, so I can only hint that
going from ASP.NET AJAX to Silverlight is going to be enormous in
productivity gains and with the right tools, this hopefully should seem
effortless. Steve.B looked like a loon when he jumped up and down about
"Developers, Developers, Developers" but he was right, this is where the
focus should be at the start of technology, expand when you get their
blessing first and this is based off of "uptake".

Validating RIA? Hate to break the news to one and all, but Microsoft's
focus is to stimulate the online/offline application market whom have been
using DHTML solutions for years, to get more robust and scaleable by
offering the above three tiers of experience potential. Flash has it's own
agenda, and Microsoft isn't about to crush that - hence I why I echo, it's
about co-existence not changing technology stacks.

Adobe make great output, but I worry at times about the input as I know
they can do better (similar with Microsoft, only reverse, great at input but
at times need work on output). No two companies are perfect.

I rant but I'm not buying Adobe's direction on this one - if I may say
that clocked off MSFT's payroll and using Flex on my weekend(s).


On 4/22/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:
>
>   I agree that Adobe is ignoring a large market. The low cost remoting
> product kind of already exists in open source, third party, and in
> house solutions. What Adobe is doing with Live Cycle is capturing the
> niche markets that do need PDF workflow in their RIA Applications.
> These companies have deep pockets and will use these for projects that
> can save them millions of dollars a year.
>
> I don't think that Adobe needs to have the low cost remoting product
> in their line, and I think that Adobe is counting on third parties and
> the community to provide those solutions.
>
> Paul
>
> --- In flexcoders@yahoogroups.com , "Scott
> Barnes" <[EMAIL PROTECTED]>
> wrote:
> >
> > I got could point for point with you and sound like a goose, but
> overall,
> > I'll push back 

Re: [flexcoders] trying here- get an image name and the images itself to load

2007-04-22 Thread Michael Wills

Hi there Shawn,

I'm a relative newbie here as well but I thought I'd take a look. I 
learn as I do so I try. :-)


It seems when your loadMainImage event is being triggered, you are 
parsing the data from the XML file correctly actually. But what you want 
to do is pull the unique data from the item being clicked.


Is the list of images across the bottom a horizontal list? If it is, and 
if the datasource used to fill that list is the same XML list, then what 
you may want to try is for your horizontalList set a function to respond 
to the "change" event:


   change="loadMainImage" // call the loadMainImage function when the 
selected item in the horizontal list changes

/>

Then in your function,

public function loadMainImage(event:Event):void {
   //pull the data from the selected item of the thumb scroller as it 
has been populated by the XML data source

   image_name_txt.text = [EMAIL PROTECTED];
   mainImage.source = [EMAIL PROTECTED];
}

I'm not sure if you are using the HorizontalList for your thumb scroller 
on the bottom, just a guess.


Hopefully that helps a little,

Michael

shawn.gibson wrote:


I swear to god I'm doing the best I can here, and I do seem to be
getting closer.

My problem right now is that I don't seen to be able to get the main
image (orthe text label) to load after a particular thumb is clicked.
I SEEM to be loading the entire array...which of course makes no
sense. The function that does this is the following:

public function loadMainImage(event:Event):void {

[EMAIL PROTECTED]

[EMAIL PROTECTED]
}

I'm trying to tell both the image_name_text and the Main_mage to load
what would be the current text/title and the current image based on
the secections involved.

I'll give the entire block if it helps:





I have migrated everything to my development machine (Vista is rather
Nifta!). If this code provided doesn't help I will upload the
application to my make-shift server till my real server gets back to
the shop.

I am also very worried that I don't get the concepts Tracy and others
abide by - not referencing the result directly, but doing so by using
a ResultHandler, because my understanding is without such, you can't
debug. I just don't get that part at all.

Does anyone know why my loadMainImage method seems to be passing both
an array of ALL text and, I am GUESSING, instead of reading the single
image as it should, it might be trying to pass the entire group of
images to the image, which would explain why it gives me a broken
image...but DOES seem to want to connect...just doing so incorrectly.

The XML is of this structure:














I'm getting desperate. I can't do this by myself, and I'm sinking into
a depression because of it. Outside the fact that this venture has
cost me over $25,000 so far (I'm a secretary, we are talking about a
year's pay for me into this project..., and I am getting nowhere, I'm
getting very depressed. I have ADHD, so please understand I am only
asking for help because I really, really, need it. I have absolutely
no desire to make money. I just want to make something beautiful for
my images and to give it to the world when it's done. I KNOW my
project has value to that end.

I won't bother you guys again if I have overstepped the limits of
'asking for help'. I'll just try on my own for as long as I can stay
sane with it, and failing that, I might have no choice but to put all
this money and my desire to build this behind me...I have no idea what
I will do if that happens.

I'll see if I can move this to my make-shift server so you can see it
in (non)action...

Shawn

 


Re: [flexcoders] Root sprite not responding to MouseEvent ?

2007-04-22 Thread Troy Gilbert

When I was writing that e-mail I was thinking about that, as I have some
code that does something similar... so, my argument may be completely
wrong... needs investigation.

Anyone from Adobe care to comment?

Troy.


On 4/21/07, Ronnie Liew <[EMAIL PROTECTED]> wrote:


  Hi Troy,

U mentioned that the parent Sprite (root of app) doesn't receive mouse
events because bitmap as a child object doesn't count as a drawn
hitarea. In that case, how come when i create a child sprite with a
bitmap child, that child spirite does receive mouse events? Going by
your argument, the child sprite would need a rectangular graphic drawn
too.


On 4/21/07, Troy Gilbert <[EMAIL PROTECTED]>
wrote:
>
>
>
>
>
>
> The problem is that the Bitmap class is not an InteractiveObject, so it
> can't receive mouse or keyboard events. And the parent Sprite (the root
of
> your application) doesn't receive mouse events because it doesn't have
> anything drawn into its hit area (child objects, like the bitmap, don't
> count).
>
> The easiest solution if you want to guarantee that your root sprite
catches
> everything is to simply fill its graphics with a rectangle with zero
alpha.
> You won't see anything, but all the pixels of the hit area will be set.
>
> Troy.
>
>
>
> On 4/19/07, Alex Harui <[EMAIL PROTECTED] > wrote:
> >
> >
> >
> >
> >
> >
> >
> > Then I would have some fullscreen child of the mainclass so the mouse
has
> something to hit.
> >
> > 
> From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On
> Behalf Of Ronnie Liew
> > Sent: Thursday, April 19, 2007 12:46 PM
> >
> > To: flexcoders@yahoogroups.com 
> > Subject: Re: [flexcoders] Root sprite not responding to MouseEvent ?
> >
> >
> >
> >
> >
> >
> > Hi Alex,
> >
> > I am not creating a Flex Project, I am creating an Actionscript
> > Project. Not too sure but in this case, I don't think the
> > SystemManager is in the picture. Is that correct?
> >
> > On 4/20/07, Alex Harui <[EMAIL PROTECTED] > wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > In a Flex app, the swf file's main class is SystemManager. It has
some
> > > children one of which is the Application. If you click anywhere on
the
> > > background of the application you should get mouseDown events. I do
in
> my
> > > tests, and the target is the application because it totally covers
the
> > > SystemManager.
> > >
> > > Are you in a different topology or seeing something else? Set a
> breakpoint
> > > on SystemManager.as:mouseDownHandler.
> > >
> > > -Alex
> > >
> > > 
> > > From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com ] On
> > > Behalf Of Ronnie Liew
> > > Sent: Thursday, April 19, 2007 12:15 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: Re: [flexcoders] Root sprite not responding to MouseEvent ?
> > >
> > >
> > >
> > >
> > >
> > >
> > > After some research and googling, the conclusion that I can draw is
> > > that for mouse event, it is abit unusual. Apparently, the main
> > > application class (which by default extends from a Sprite class),
will
> > > not receive mouse events directly. Mouse events seemed to be the
only
> > > exception, all other events like the keyboard events, enterframe
work
> > > fine.
> > >
> > > In order for the main application class to receive mouse event, it
> > > must be through a child (capable of dispatching a mouse event) in
the
> > > its display list via bubbling or capture phase.
> > >
> > > According to Colin Moock,
> > > "Mouse interactions with vector content drawn via the graphics
> > > property of a .swf file's main class do not trigger mouse events.
> > > However, mouse interactions with vector content drawn via the
graphics
> > > property of any other instance of InteractiveObject or its
subclasses
> > > do trigger mouse events. "
> > >
> > > So I guess, using the bitmap object probably fall under "mouse
> > > interactions with vector content drawn via the graphics property"?
> > >
> > > > >
> > > > > On 4/19/07, Ronnie Liew <[EMAIL PROTECTED]>
wrote:
> > > > >
> > > > > > the main app is a sprite, it should respond to mouse move
right?
> and
> > > > > > it does have a child and that is the visible pixel.
> > > > > >
> > > > > > How come it doesn't trace out?
> > > > >
> > > > > Did you forget to add your Sprite to the Stage?
> > > > >
> > > > > e
> > > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>
>

 



[flexcoders] Re: Booleans and Stardust

2007-04-22 Thread Shannon
Thank you for the response,
> Boolean cannot be null. The default value is false if not 
initialised.

So you're saying that AS3 sets a Boolean to false even without 
assignment?

It takes some getting used to, but I suppose a compiler 
error makes sense then :)

So in your reply:
> I think you want to use int with predefined constants.

Could you elaborate? Im not sure what you mean...

Thank you
Shannon




Re: [flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Michael Wills

And this has a helper function for intelligently truncating a string:

http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/

Michael

Steve Kellogg wrote:


Hello,

 

The standard behavior for a combobox is to grow in width until it's 
wide enough to display the current selection.


 

Is there anyway to tell a ComboBox to Truncate the current displayed 
Selection if it's too wide for a ComboBox?


 

I've tried setting both the "left" and "right" for the box in the hope 
that Flex would recognize this as a hard limit, but it doesn't seem to 
work like this.


 


TIA

 


Steve

 

 

 


Re: [flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Michael Wills

Have you tried maxWidth? I am not sure how it handles the truncation though.

Michael

Steve Kellogg wrote:


Hello,

 

The standard behavior for a combobox is to grow in width until it's 
wide enough to display the current selection.


 

Is there anyway to tell a ComboBox to Truncate the current displayed 
Selection if it's too wide for a ComboBox?


 

I've tried setting both the "left" and "right" for the box in the hope 
that Flex would recognize this as a hard limit, but it doesn't seem to 
work like this.


 


TIA

 


Steve

 

 

 


[flexcoders] Re: Booleans and Stardust

2007-04-22 Thread Shannon
Thanks for your response:
> Use int instead of Boolean ?
> 
> -1 (instead of null)
>  0 (instead of false)
>  1 (instead of true)

You are right, this is better than declaring b:*.

Hindsite tells me I would be a better programmer if I just created a 
second function (one to toggleDetails and one to setDetails) I 
thought I was making it more concrete by creating one function that 
did it all, but when I really think about it, it's harder for someone 
to understand the implied meaning (e.g. not passing a parameter means 
you toggle) than having to remember there are two separate 
functions...

private var _details:Boolean;
public function toggleDetails():void{
  _details = !_details;
}
public function setDetails(b:Boolean):void{
  _details = b;
}

Thanks...



[flexcoders] Re: Getting progress events on Socket *write* (not read)

2007-04-22 Thread Tim
Any chance anyone well connected wants to discuss this?  It's a pretty
serious issue and really impairs the binary socket API, at least for
uploading large amounts of data.

--- In flexcoders@yahoogroups.com, "Tim" <[EMAIL PROTECTED]> wrote:
>
> Is there a way to get a progress event on a socket write (flush)?
> 
> Right now, the way I understand it, if you write data to a socket you
> have no way of knowing when the data has completely been flushed.   
> 
> This is a problem if you're writing a lot of data, because you could
> blow that buffer .. guessing the bandwidth (eg: by testing it) isn't a
> great solution either, for example, if you're on a wireless laptop
> that bandwidth may fluctuate and your original guess might be wrong. 
> 
> I guess you could continue to test the bandwidth connection, but that
> seems a bit unfortunate.  Might be my only resolution here, though.
> 
> Cheers,
> 
> Tim.
>




Re: [flexcoders] Re: IFrame problem

2007-04-22 Thread dorkie dork from dorktown

you can also check out the html component at
www.drumbeatinsight.com/htmlcomponent follow the quickstart guide to get
going.

On 4/20/07, gotjosh819i <[EMAIL PROTECTED]> wrote:


  Mane,

(blog entry)
http://www.deitte.com/archives/2006/05/update_to_embed.htm

A cpl things that need to be done assuming you already have the
IFrame.mxml file and its namespace setup:

1) In the html-template folder in your project open
index.template.html add this code to line 27 replacing the current
script code:





This lets flex and javascript communicate.

That should do it.

 



[flexcoders] Re: Resize Effect for Percentages?

2007-04-22 Thread iko_knyphausen

No I did not extend the resize effects. I used absolute values for
x,y,width and height, and computed the percentage relative to its
container. But I only had a few of them, so I did not create a custom
effect..


--- In flexcoders@yahoogroups.com, "Matt" <[EMAIL PROTECTED]> wrote:
>
> Don't suppose you have some code you could post as an example?
>
> Are you actually going through the process of extending Resize and
> making it so if it ends on a percentage value when the effect finishes
> it actually does change to a percentage (so if you resize it acts
> appropriately)?
>
> If that's not the case, would you be interested in me posting code if
> I were to write such a thing?
>
> --- In flexcoders@yahoogroups.com, "iko_knyphausen" iko@ wrote:
> >
> >
> > I have struggled with the same and ended up doing the percentage
math on
> > my own. The effects don't provide percentage properties, and they
don't
> > have a from/toConstraint either...which could be handy at times...
> >
> >
> > --- In flexcoders@yahoogroups.com, "Matt"  wrote:
> > >
> > > Is there any way to use the Resize effect to either resize from 0
to a
> > > percentage or from a percentage to 0?
> > >
> >
>





Re: [flexcoders] Resize Effect for Percentages?

2007-04-22 Thread Manish Jethani
You can use the AnimateProperty effect on the
percentWidth/percentHeight property.

On 4/22/07, Matt <[EMAIL PROTECTED]> wrote:
> Is there any way to use the Resize effect to either resize from 0 to a
> percentage or from a percentage to 0?
>
>
>
> --
> 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: Getting progress events on Socket *write* (not read)

2007-04-22 Thread Manish Jethani
>From looking at the API docs, my guess is that flush() is a blocking
operation that returns only when it's complete. If for some reason the
flush fails, it'll throw an I/O error. You could verify this by
writing a large amount of data to the buffer, calling flush() and then
pulling the plug on your machine.

The docs don't say anything about the size of the buffer though.

On 4/22/07, Tim <[EMAIL PROTECTED]> wrote:
> Any chance anyone well connected wants to discuss this?  It's a pretty
> serious issue and really impairs the binary socket API, at least for
> uploading large amounts of data.
>
> --- In flexcoders@yahoogroups.com, "Tim" <[EMAIL PROTECTED]> wrote:
> >
> > Is there a way to get a progress event on a socket write (flush)?
> >
> > Right now, the way I understand it, if you write data to a socket you
> > have no way of knowing when the data has completely been flushed.
> >
> > This is a problem if you're writing a lot of data, because you could
> > blow that buffer .. guessing the bandwidth (eg: by testing it) isn't a
> > great solution either, for example, if you're on a wireless laptop
> > that bandwidth may fluctuate and your original guess might be wrong.
> >
> > I guess you could continue to test the bandwidth connection, but that
> > seems a bit unfortunate.  Might be my only resolution here, though.
> >
> > Cheers,
> >
> > Tim.
> >
>
>
>
>
> --
> 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: trying here- get an image name and the images itself to load

2007-04-22 Thread shawn.gibson
Michael: You did it! Thanks. And what makes it both wonderful for me 
and also very frustrating (but just in a DOH! way) is that I totally 
understand what you did. I guess I've lost a bit of perspective here, 
and need to step back a bit, because even I should have been able to 
figure that out...I really, really appreciate your help. This is the 
first time in months this part has ever worked.

Thanks very much:) I owe you.

I wish I could learn how to figure out the correct way to use result 
handlers, but for now, I am very happy. I know the proper way to do 
this is via proxiesAS3 if you want it to scale and have any kind of 
separation (remove the model from the main app and give yourself a 
chance at debugging etc.), but it's one step at a time for me:)

Shawn (with gratitude)



Re: [flexcoders] Re: Booleans and Stardust

2007-04-22 Thread Manish Jethani
On 4/22/07, Shannon <[EMAIL PROTECTED]> wrote:
> Thank you for the response,
> > Boolean cannot be null. The default value is false if not
> initialised.
>
> So you're saying that AS3 sets a Boolean to false even without
> assignment?

Every type of variable has a default value. Boolean is false, int is
0, and so on. You can find the default values in the AS3 language
spec.

Also, I think it's good practice to always assign a value for the
benefit of those who come after you to maintain the code :)

> So in your reply:
> > I think you want to use int with predefined constants.
>
> Could you elaborate? Im not sure what you mean...

I meant to use an enum:

  TOGGLE: -1
  OFF: 0
  ON: 1

Then the developer can pass these constants instead of "magic values".


Re: [flexcoders] TRUNCATING a ComboBox text?

2007-04-22 Thread Manish Jethani
itemRenderer="mx.controls.Label"

That, and you set the width to a fixed width.

On 4/22/07, Steve Kellogg <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hello,
>
>
>
> The standard behavior for a combobox is to grow in width until it's wide
> enough to display the current selection.
>
>
>
> Is there anyway to tell a ComboBox to Truncate the current displayed
> Selection if it's too wide for a ComboBox?
>
>
>
> I've tried setting both the "left" and "right" for the box in the hope that
> Flex would recognize this as a hard limit, but it doesn't seem to work like
> this.
>
>
>
> TIA
>
>
>
> Steve
>
>
>
>   


Re: [flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread Luis Eduardo


  Luckly i was doing something last week that i think can help you.
  (or at least give you some directions)

  here is the code.  try change the tabs to see the resize.
  i dont know yet how to find the amount to shrink automaticly...  if 
you or someone find the answer and share with us that would be nice!

 
Luís Eduardo.





http://www.adobe.com/2006/mxml";>




   













   









   


   















munene_uk escreveu:

> --- In flexcoders@yahoogroups.com 
> , "Manish Jethani"
> <[EMAIL PROTECTED]> wrote:
> >
> > Set resizeToContent on the tab navigator to true.
> >
> > On 4/22/07, munene_uk <[EMAIL PROTECTED]> wrote:
> > > --- In flexcoders@yahoogroups.com 
> , "munene_uk"  wrote:
> > > >
> > > > i've got two canvases in a tabnavigator which are named students and
> > > > courses
> > > >
> > > > the student canvas contains alot more information than the courses
> > > > canvas
> > > > my idea is that when the user click on the course tab the
> tabnavigator
> > > > should resize(shrink) to fit.
> > > > does anyone know how i can achieve this?
> > > >
> > > > my other question is can i achieve the same effect without having to
> > > > switch states instead tell the tab navigato to resize itself
> > > >
> > >
> > > can anyone please offer some advice on how i can achieve this?
> > >
> > >
> > >
> > >
> > > --
> > > 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
> > >
> > >
> > >
> > >
> >
> thanks for the reply but for some reason it doesn't seem to work can
> you maybe exaplin to me in a bit more detail how this should be
> implemented?
>
>  




Re: [flexcoders] Re: Using TabNavigator to switch view states

2007-04-22 Thread Manish Jethani
On 4/22/07, munene_uk <[EMAIL PROTECTED]> wrote:

> thanks for the reply but for some reason it doesn't seem to work can
> you maybe exaplin to me in a bit more detail how this should be
> implemented?

You're looking for a way to automatically resize a TabNavigator to the
size of its currently selected child, right? Are you sure
resizeToContent="true" doesn't work? That's exactly what the property
is supposed to do.


[flexcoders] X axis of Area Chart how to make labels always vertical

2007-04-22 Thread {reduxdj}
Thanks,
Patrick



[flexcoders] Canvas scrollbars not appearing

2007-04-22 Thread vitcheff
Hi everyone,
I have following problem:

Created a custom component by extending UIComponent using AS3.

Added a Canvas to the Application container and then added an instance
of that custom component.

What the component does is load an image in a Loader instance and
scales it down to fit into the canvas. However there is a slider that
allows the image to be scaled back up and get larger than the canvas.
At that moment I try to make the canvas scrollable without success.

Canvas.clipContent is set to true;

measure() is overridden in the component implementation to set
measuredWidth and measuredheight to the width and height of the loaded
image.

invalidateSize() is also called when the image changes its size.

Any help greatly appreciated!
Thanks!



Re: [flexcoders] Re: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread Manish Jethani
Looks like the binding for the MyCanvas object is still around. You'll
have to remove the MyCanvas object from the MyComponent object
explicitly. Make sure you've assigned an id to it.

 
 
  function removeCanvas() {
removeChild(myCanvas);
myCanvas = null; // this is important
  }
 

>From the main code, you have to call removeCanvas() before removing
the MyComponent object from the display list.

On 4/22/07, João <[EMAIL PROTECTED]> wrote:
> I have created a minimal flex app to show the problem. You can access
> it on
> http://www.riapt.org/opensource/removeChildTest/removeChildTest.html.
> The source is available (right click-> view source).
>
> As you can see, after creating, destroying and creating again (by
> pressing twice the first button), if you change the model you can see
> that there is an old reference to the destroyed component.
>
> This is creating me so much trouble :|
>
> Thanks,
>
> João Saleiro
>
>
>
> --
> 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: using a check boxes on a list control

2007-04-22 Thread munene_uk
--- In flexcoders@yahoogroups.com, "munene_uk" <[EMAIL PROTECTED]> wrote:
>
> ive downloaded this sample
>    from 
> http://blogs.adobe.com/aharui/ 
> 
> and im tryin to use it in my course management application.
> 
> im using amfphp 1.9
> 
> 
> i simply want the app to retrieve the list of courses available and
> populate a list which will the be used in a form so that a student can
> be enrolled onto a course by clicking on a checkbox. similar to the
> sample shown above.
> 
> 
> the courses table contains the following fields
> 
> CourseID
> CourseName
> TeacherID
> 
> below is a break down of  my code hope it makes sense
> 
> populating the array collection:
> 
> courseList = new ArrayCollection ( ArrayUtil.toArray(evt.result) );
> 
> 
> 
> layout:
> 
>y="307" labelField="CourseName" height="138">
> 
> 
> 
> my list currently shows all the courses from the courses table, however
> i want to attach a checkbox to each list.
> 
> the list will be used in a form which allows the user to select what
> courses to enrol the student to. im not sure how to exactly
> 
> so how can i get my check boxes to behave in the same way as the sample
> application shown on the links above?
>

Anyone know how to use checkboxes on a list so that the checked box
corresponds to the selected item in the array collectioni really
need some direction in this ...thank you




Re: [flexcoders] itemRenderer not provided with newValue

2007-04-22 Thread Manish Jethani
The DataGrid only updates the dataField (status_code in your case). If
you want to update the other fields based on the value of the
status_code field, you can listen for the itemEditEnd event and update
it there.

For example:

   wrote:
>
> I have a problem with the synchronisation of a DataGrid and the
> itemRenderer, using a itemEditor is used?
>
> Here's my (simplified) case:
> I have a datagrid showing StatusVO objects.
> A statusVO consists of a status_code and a status_description.
>
> The datagrid shows the status_description while the status_code is the
> dataField. I use a ComboBox itemRenderer to select the status from a list:
>  dataProvider="{myStatusData}"
> editable="true">
> 
>  itemEditor="StatusItemEditor"
> editorDataField="newStatusCode"
> labelFunction="displayStatusDescription">
> 
> 
> 
>
> The questionable behaviour is introduced when adding
> labelFunction="displayStatusDescription". Before adding the
> labelFunction the behavior is correct:
> 1) User clicks row
> 2) ComboBox is displayed
> 3) User selects value from ComboBox
> 4) Datagrid shows selected status_code.
>
> When adding the labelFunction, the DataGrid does no longer shows the
> status_description which was selected by the user. When debugging the
> labelFunction, I see the item property contains the original item and not
> the item the user selected.
> The labelFunction is for testing purposes defined in the same mxml document
> as the DataGrid:
> private function displayStatusDescription(item:Object,
> column:DataGridColumn):String {
> var myStatus : String =
> String(item["status_description"]);
> return myStatus;
> }
>
> Since the DataGrid shows the correct "newStatusCode" without using a
> labelFunction, I expect my itemEditor to work correct. I also expect the
> DataGrid to provide the labelFunction with the updated value.
>
>
> Is there something extra I have to do to provide the labelFunction with the
> item based on "newStatusCode" instead of the original one?
>
>
> Best regards,
> Sieto
>
>
>
>
>  


Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Scott Barnes

Paul: How many?

Seriously, throw the numbers on the table because I got to tell you, both
pre-Microsoft and post-Microsoft things haven't changed that radically that
DMS is more favoured then SAAS. SAAS is the new SOA dream, and people want
it because it's less red-tape to fight for a capital expense claim against
not only software but now hardware + bodies to support the software that was
bought. SAAS delegates that problem to someone else to solve and so it means
in theory less bodies to support the infrastructure and more focus on
supporting the users if need be.

Not saying DMS is dead by any stretch, i'm sure LiveCycle solves a million
and one points of interest in this space and it does look compelling when
you separate it away from FLEX for a bit. Yet, let's take a step back and
look at the bigger picture, how does FLEX developers world-wide get any wins
from having LiveCycle in the room, and what percentage of them are in favour
of LiveCycle development being slotted in front of FLEX?

2002 Paul, I've been waiting since 2002.. I waded through swapping and
changing of Flash Framework directions (V1 to V2) like the rest of some of
us on this list. I waited for Royale to hit the street only to watch it
crash and burn due to price tag issues (which we all said loud and clear
this bites! - listen to the customers is a tip). I watched CENTRAL get
thrown our way, and was glad we could use this concept and wondered why it
went away (EULA and again not consulting customers first was the
perception). I watched as FLEX 2.0 came back, but free only the whole
remoting piece dropped off the radar and came back as Flex Data Services.
Only Its hard to find someone whom will host this product (why?) and
secondly it doesn't support .NET and Java anymore? it's only Java? (It's not
as if Remoting + .NET has been a mystery, it was there in the past and if
the WebORB folks for example can make it happen? surely Adobe could).

It's 2007 and I'm seeing Apollo have "PDF" Integration (which raises an
eyebrow on whom this is really for - could be conspiracy theory going off
signal, happy to eat crow if i'm wrong on this one as i'm not absolutely
sure). Flex Data Services now has a new name, LiveCycle Data Services and
FLEX 3 well.. i won't bother... I don't know all the answers but at the very
least, I'm seeing all the warning signs of the past and for once, i'd like
to raise this (once bit -ok, twice bit -fair enough, thrice bit no thanks).

2002 - 2007, we should be knee deep in RIA happiness and I should be still
on the street making bundles of $$ and not working for Microsoft. Fact of
the matter is I'm working for them, because to be openly honest i'm going to
start over my RIA quest and see what these guys do with Silverlight and WPF
as I've done my tour of duty with FLEX and have lots of scars to prove it
(It wasn't all bad, I did make a nice living and once I broke through the
learning barrier and was able to memorize the entire framework it was easy
just lots of fingers on keyboard stuff).





On 4/23/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  --- In flexcoders@yahoogroups.com , "Scott
Barnes" <[EMAIL PROTECTED]>
wrote:
>
> Paul,
>
> How many enterprise / companies do you know are shopping around for
> electronic forms built in PDF vs SAAS solutions?

Quite a few actually. The company I work for provides this as a
service for many fortune 500 companies. Some of those companies are
right now in the process of moving to Flex for the front end of their
forms systems. PDF has already deeply penetrated the business world.
Why do you feel PDF is a danger to business? It has many benefits
including being a universal format that is easy to read. It includes
versioning and security features required by SOX compliance. It just
makes sense for many organizations to adopt.

Paul







--
Regards,
Scott Barnes
http://www.mossyblog.com


[flexcoders] overlapping

2007-04-22 Thread Erhan Kayar
Hi guys,

I create a vbox and some xopmponent inside. And this vbox also inside of a 
repeter.
Why are those vbox overlapping in my repeter. What is wrong?  
thnx.

Erhan Kayar



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[flexcoders] HorizontalList>repeater>no scrollbar (mouse action moves left-right)

2007-04-22 Thread shawn.gibson
Taking a break from the data aspect of my project, and have a visual
part I'd like to get working (more for a breather than anything else,
though I do have to get it working eventually...). 

I have a HorizontalList populated by HTTPService/xml file...it loads
thumbnails, as many as are in the current gallery, which differs
depending on the gallery. When you have more images than can span the
visual area, as you'd expect, the scroller appears, which I find quite
unattractive.

Is it possible to turn the scollbar permanently off, and instead have
a mechanism in place that, when a user is over the HorizontaList, if
he/she moves left, the area moves left, and if right, it moves right,
i.e., using the mouse to scroll based on location onRollOver but
without the scrollbar ever being present?

This sort of thing has obviously been done many times, but I haven't
the foggiest where to begin, always used to use other people's
opensource code with Flash 5-8.

The file I'm working on if my words aren't clear is here, click on
anything but 'worst case scenario' to load the Horizontal list. If you
load 'third Catherine' it will add a scrollbar:

http://shawngibson.com/imagesmech/main.html

Thanks for any tips, and as always, for putting up with me,
Shawn



[flexcoders] Re: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread João
Great!!! It works as a charm

So, for every component i want to remove, i need to make sure that i
remove also sub-components with bindings, right? Is there an easier
way to achieve this? I have several views being added or removed by
addChild or removeChild, each one of them it a lot of bindings inside.
Is there a practice adviced for this?

Thanks, 


João Saleiro



Re: [flexcoders] overlapping

2007-04-22 Thread Manish Jethani
What is the repeater inside of? Can you post the MXML?

On 4/22/07, Erhan Kayar <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I create a vbox and some xopmponent inside. And this vbox also inside of a
> repeter.
> Why are those vbox overlapping in my repeter. What is wrong?
>
> thnx.
> Erhan Kayar
>
>
>  
> Ahhh...imagining that irresistible "new car" smell?
>  Check out new cars at Yahoo! Autos. 


Re: [flexcoders] Canvas scrollbars not appearing

2007-04-22 Thread Manish Jethani
Is the size of the UIComponent really changing? Is
invalidateDisplayList() getting called on the Canvas internally? If
not, try calling it explicitly and your Canvas should show scrollbars.

On 4/21/07, vitcheff <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> I have following problem:
>
> Created a custom component by extending UIComponent using AS3.
>
> Added a Canvas to the Application container and then added an instance
> of that custom component.
>
> What the component does is load an image in a Loader instance and
> scales it down to fit into the canvas. However there is a slider that
> allows the image to be scaled back up and get larger than the canvas.
> At that moment I try to make the canvas scrollable without success.
>
> Canvas.clipContent is set to true;
>
> measure() is overridden in the component implementation to set
> measuredWidth and measuredheight to the width and height of the loaded
> image.
>
> invalidateSize() is also called when the image changes its size.
>
> Any help greatly appreciated!
> Thanks!
>
>
>
> --
> 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: Problems with components not being garbage collected after removeChild()

2007-04-22 Thread Manish Jethani
At the moment, yes, it looks like you have to remove *every* object
with a binding on it explicitly or the binding still remains in the
background (and the setter keeps getting called). This is definitely a
bug in the Flex framework. (Probably someone from Adobe should log it
using your standalone test files.)

I don't know if there's a practice for getting around this behaviour
(bug). I'll look at it tomorrow and try to come up with a more simple
workaround than having to remove every object like that.

On 4/23/07, João <[EMAIL PROTECTED]> wrote:
> Great!!! It works as a charm
>
> So, for every component i want to remove, i need to make sure that i
> remove also sub-components with bindings, right? Is there an easier
> way to achieve this? I have several views being added or removed by
> addChild or removeChild, each one of them it a lot of bindings inside.
> Is there a practice adviced for this?
>
> Thanks,
>
>
> João Saleiro
>
>
>
> --
> 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] Transitions between views inside a viewStack using states defined inside th view

2007-04-22 Thread João
Hello, 

First of all, the example:

http://www.riapt.org/opensource/states_test/states_test.html (with
view source enabled).

I have two components, Component1.mxml and Component2.mxml, both with
two states. The default state has it's inner components proper placed,
and the "hidden" state has the components hidden and on different
positions. If you press the show/hide buttons, you can see the
transition between states (just for demonstrating purposes).

Now, in my Application, i have one viewstack with both views. I want
to have animated transitions between the views, and i know that by
default the viewstack waits for the hideEffect and the showEffect to
finish. I would like to reuse the transitions already coded for the
states, preferably just by changing states if it's possible.

Is there a solution for this? If not, what's the best practice? To
create more code to define the hideEffect/showEffect?

Thanks, 

João Saleiro



Re: [flexcoders] HorizontalList>repeater>no scrollbar (mouse action moves left-right)

2007-04-22 Thread Manish Jethani
Hey, I can't stand that scrollbar either!

You can turn it off by setting horizontalScrollPolicy to "off". Then
on roll over or whatever (two buttons on either side) you can set
horizontalScrollPosition.

On 4/23/07, shawn.gibson <[EMAIL PROTECTED]> wrote:
> Taking a break from the data aspect of my project, and have a visual
> part I'd like to get working (more for a breather than anything else,
> though I do have to get it working eventually...).
>
> I have a HorizontalList populated by HTTPService/xml file...it loads
> thumbnails, as many as are in the current gallery, which differs
> depending on the gallery. When you have more images than can span the
> visual area, as you'd expect, the scroller appears, which I find quite
> unattractive.
>
> Is it possible to turn the scollbar permanently off, and instead have
> a mechanism in place that, when a user is over the HorizontaList, if
> he/she moves left, the area moves left, and if right, it moves right,
> i.e., using the mouse to scroll based on location onRollOver but
> without the scrollbar ever being present?
>
> This sort of thing has obviously been done many times, but I haven't
> the foggiest where to begin, always used to use other people's
> opensource code with Flash 5-8.
>
> The file I'm working on if my words aren't clear is here, click on
> anything but 'worst case scenario' to load the Horizontal list. If you
> load 'third Catherine' it will add a scrollbar:
>
> http://shawngibson.com/imagesmech/main.html
>
> Thanks for any tips, and as always, for putting up with me,
> Shawn
>
>
>
> --
> 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] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Bjorn Schultheiss

Hey,

I'm getting an annoying error when i try to do a bitmap draw of an  
image loaded via a remote domain.
**Error: A policy file is required, but the checkPolicyFile flag was  
not set when this media was loaded**


To confirm i have a breakpoint where i set the source of the image  
tag, and i can confirm checkPolicyFile is set to true ( i do so when  
i instantiate it ).


This is a major pain for me.
Any help?



regards,

Bjorn



((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))




[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, "Scott Barnes" <[EMAIL PROTECTED]>
wrote:
>
> Paul: How many?

37... I don't know... I don't even work in that group.  I just know
that it has been very lucrative. I shouldn't even be responding to
this rant. I'm not too sure how to respond to it really.  I don't
really understand  why people think that Adobe needs to be creating
products that suit the needs of every user.  If you want a .NET
Remoting solution then build one, WebORB did it, why can't you? Adobe
is making products that make sense for their main customers, and I'm
sorry to say that isn't us.

> 
> Seriously, throw the numbers on the table because I got to tell you,
both
> pre-Microsoft and post-Microsoft things haven't changed that
radically that
> DMS is more favoured then SAAS. SAAS is the new SOA dream, and
people want
> it because it's less red-tape to fight for a capital expense claim
against
> not only software but now hardware + bodies to support the software
that was
> bought. SAAS delegates that problem to someone else to solve and so
it means
> in theory less bodies to support the infrastructure and more focus on
> supporting the users if need be.
> 
> Not saying DMS is dead by any stretch, i'm sure LiveCycle solves a
million
> and one points of interest in this space and it does look compelling
when
> you separate it away from FLEX for a bit. Yet, let's take a step
back and
> look at the bigger picture, how does FLEX developers world-wide get
any wins
> from having LiveCycle in the room, and what percentage of them are
in favour
> of LiveCycle development being slotted in front of FLEX?
> 
> 2002 Paul, I've been waiting since 2002.. I waded through swapping and
> changing of Flash Framework directions (V1 to V2) like the rest of
some of
> us on this list. I waited for Royale to hit the street only to watch it
> crash and burn due to price tag issues (which we all said loud and clear
> this bites! - listen to the customers is a tip). I watched CENTRAL get
> thrown our way, and was glad we could use this concept and wondered
why it
> went away (EULA and again not consulting customers first was the
> perception). I watched as FLEX 2.0 came back, but free only the whole
> remoting piece dropped off the radar and came back as Flex Data
Services.
> Only Its hard to find someone whom will host this product (why?) and
> secondly it doesn't support .NET and Java anymore? it's only Java?
(It's not
> as if Remoting + .NET has been a mystery, it was there in the past
and if
> the WebORB folks for example can make it happen? surely Adobe could).
> 
> It's 2007 and I'm seeing Apollo have "PDF" Integration (which raises an
> eyebrow on whom this is really for - could be conspiracy theory
going off
> signal, happy to eat crow if i'm wrong on this one as i'm not absolutely
> sure). Flex Data Services now has a new name, LiveCycle Data
Services and
> FLEX 3 well.. i won't bother... I don't know all the answers but at
the very
> least, I'm seeing all the warning signs of the past and for once,
i'd like
> to raise this (once bit -ok, twice bit -fair enough, thrice bit no
thanks).
> 
> 2002 - 2007, we should be knee deep in RIA happiness and I should be
still
> on the street making bundles of $$ and not working for Microsoft.
Fact of
> the matter is I'm working for them, because to be openly honest i'm
going to
> start over my RIA quest and see what these guys do with Silverlight
and WPF
> as I've done my tour of duty with FLEX and have lots of scars to
prove it
> (It wasn't all bad, I did make a nice living and once I broke
through the
> learning barrier and was able to memorize the entire framework it
was easy
> just lots of fingers on keyboard stuff).
> 
>

Good luck with that.





[flexcoders] Re: Getting progress events on Socket *write* (not read)

2007-04-22 Thread maliboo_pl
> Any chance anyone well connected wants to discuss this?  It's a pretty
> serious issue and really impairs the binary socket API, at least for
> uploading large amounts of data.

The same here: Socket doesnt't dispatch/throws *ANY* kind of activity
related to emptying output buffer after flush:(


maliboo



Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Brian Lesser
Hi Paul,
You made me laugh out loud when I read:

"I shouldn't even be responding to this rant."

I've had a very similar feeling!

Some news that may be of interest from the FITC conference here in 
Toronto summarized by Aral Balkan:

http://aralbalkan.com/922

/*"I'm very excited about the back-end neutrality and the additional 
language intelligence in Flex Builder 3. Refactoring support is going to 
be a huge productivity booster and the integrated profiler should prove 
very useful.*/"

He's reporting on a quick overview Ted gave about Flex 3 during the 
keynote - including a brief bit on how the new back-end platform-neutral 
data integration will work. (I'm probably not using his exact words but 
the gist was there will be support for Java, .Net, PHP, and others.) I'm 
looking forward to Ted's longer Flex presentation.

Yours truly,
-Brian

Paul DeCoursey wrote:

> --- In [EMAIL PROTECTED] ups.com 
> , "Scott Barnes" 
> wrote:
> >
> > Paul: How many?
>
> 37... I don't know... I don't even work in that group. I just know
> that it has been very lucrative. I shouldn't even be responding to
> this rant. I'm not too sure how to respond to it really. I don't
> really understand why people think that Adobe needs to be creating
> products that suit the needs of every user. If you want a .NET
> Remoting solution then build one, WebORB did it, why can't you? Adobe
> is making products that make sense for their main customers, and I'm
> sorry to say that isn't us.
>


-- 
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__



[flexcoders] Looking for a developer who can create a desktop application using Flex

2007-04-22 Thread fabiohcardoso
Hello, 

  I'm looking for someone with experience who can create something similar to 
this;

 http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html

   Here are some details. It's not to run from an online server or WEB. It's to 
run on a 
desktop using the local machine HD.  Reason I'm choosing FLEX is because it 
will run on 
Mac and PC's.  Also, what I'm looking for is very similar to the example above.

Some key features I want. 

* Import Data via interface (data is stored on local HD in TXT, XLS formats, 
etc...)
* User able to enter / add/ delete / modify any data fields.
* display only fields specified by user ( drop menu, check list )
* Some of the fields have numbers, thus sum, average and count is used on some 
fields.
* User can add custom fields to database. 
- 6 specified fields (numbers, dates,$$$, Names, etc) 3 or 4 more if user 
chooses to add 
more. Total of 10 if user wants extra fields. 
* Able to displace small jpgs in one of the fields (resizable thumbnails)
* Create charts
* Registration required
* User/password protected

Thank you for your time looking at this project. Just remember this is an 
application to run 
in multiple platforms. OS X and PC. Light and simple, it's why we are looking 
at Flex, plus 
it has a lot of these functions already built in. 

 Let me know if possible and how much would be to develop this application. 




[flexcoders] Re: HorizontalList>repeater>no scrollbar (mouse action moves left-right)

2007-04-22 Thread shawn.gibson
Wow, that seems like it should be easy. I got it about 1/2 done,
already works, sort of. I'll figure out the rest, I'm sure...Was for
once something I could wrap my brain around - thanks:)

Shawn

--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> Hey, I can't stand that scrollbar either!
> 
> You can turn it off by setting horizontalScrollPolicy to "off". Then
> on roll over or whatever (two buttons on either side) you can set
> horizontalScrollPosition.
> 
> On 4/23/07, shawn.gibson <[EMAIL PROTECTED]> wrote:
> > Taking a break from the data aspect of my project, and have a visual
> > part I'd like to get working (more for a breather than anything else,
> > though I do have to get it working eventually...).
> >
> > I have a HorizontalList populated by HTTPService/xml file...it loads
> > thumbnails, as many as are in the current gallery, which differs
> > depending on the gallery. When you have more images than can span the
> > visual area, as you'd expect, the scroller appears, which I find quite
> > unattractive.
> >
> > Is it possible to turn the scollbar permanently off, and instead have
> > a mechanism in place that, when a user is over the HorizontaList, if
> > he/she moves left, the area moves left, and if right, it moves right,
> > i.e., using the mouse to scroll based on location onRollOver but
> > without the scrollbar ever being present?
> >
> > This sort of thing has obviously been done many times, but I haven't
> > the foggiest where to begin, always used to use other people's
> > opensource code with Flash 5-8.
> >
> > The file I'm working on if my words aren't clear is here, click on
> > anything but 'worst case scenario' to load the Horizontal list. If you
> > load 'third Catherine' it will add a scrollbar:
> >
> > http://shawngibson.com/imagesmech/main.html
> >
> > Thanks for any tips, and as always, for putting up with me,
> > Shawn
> >
> >
> >
> > --
> > 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] Confusion on Image Component

2007-04-22 Thread Mike Anderson
Hello All,

I have an Image Component, which holds an image that is quite large -
and I only want a certain region of the image to be shown.

What I was hoping to do, is set the Width and Height settings of the
Image Component itself, and then set the ScaleX, ScaleY, X and Y
Properties of the "content".

I was assuming that the Image "Holder" would Clip the Content, since
Adobe made available to the Developer, Properties for the Image Control
itself, in addition to Properties for the "content" in which the Control
houses.

Am I wrong in this thinking?

In order to achieve my goals of showing only certain areas of the Image
to be displayed, will I be forced to put each of my Images into a Box
container?  Or some other type of container, that allows for the Content
to be Clipped, if the content's size exceeds the constraints of it's
parent container?

Thank you in advance, for any information offered on this topic.

Mike


Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Scott Barnes

Oh yeah!..i agree.. I kind of wanted to dump and run on this rant as well...

Happy to let it die of the natral death it deserves heheeh.


On 4/23/07, Brian Lesser <[EMAIL PROTECTED]> wrote:


  Hi Paul,
You made me laugh out loud when I read:

"I shouldn't even be responding to this rant."

I've had a very similar feeling!

Some news that may be of interest from the FITC conference here in
Toronto summarized by Aral Balkan:

http://aralbalkan.com/922

/*"I'm very excited about the back-end neutrality and the additional
language intelligence in Flex Builder 3. Refactoring support is going to
be a huge productivity booster and the integrated profiler should prove
very useful.*/"

He's reporting on a quick overview Ted gave about Flex 3 during the
keynote - including a brief bit on how the new back-end platform-neutral
data integration will work. (I'm probably not using his exact words but
the gist was there will be support for Java, .Net, PHP, and others.) I'm
looking forward to Ted's longer Flex presentation.

Yours truly,
-Brian

Paul DeCoursey wrote:

> --- In [EMAIL PROTECTED] ups.com
> , "Scott Barnes" <
scott.barnes@ ...>
> wrote:
> >
> > Paul: How many?
>
> 37... I don't know... I don't even work in that group. I just know
> that it has been very lucrative. I shouldn't even be responding to
> this rant. I'm not too sure how to respond to it really. I don't
> really understand why people think that Adobe needs to be creating
> products that suit the needs of every user. If you want a .NET
> Remoting solution then build one, WebORB did it, why can't you? Adobe
> is making products that make sense for their main customers, and I'm
> sorry to say that isn't us.
>

--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: POD?? E-mail: [EMAIL PROTECTED] 
(Enter through LB99) Web: http://www.ryerson.ca/~blesser
__







--
Regards,
Scott Barnes
http://www.mossyblog.com


[flexcoders] Viewstack showEffect and hideEffect playing at the same time

2007-04-22 Thread João
I have one viewStack with two views, both of them with the following
effects:









  



  

  




  


The problem here is that when changing between views, the showEffect
of the view to show plays at the same time of the hideEffect of the
view thats hiding. How can i make it to first hide the current view,
and only the hiding finishes, the new view starts it's showEffect?

Thanks, 

João Saleiro



Re: [flexcoders] Confusion on Image Component

2007-04-22 Thread Bjorn Schultheiss
You're probably better off re-writing your own Image component that  
does exactly that.
You could borrow what you need from the existing class i guess to  
make it easier.


Perhaps Ely Greenfield SuperImage already handles clipping, I'm not  
sure, either way another good place to start from.


regards,


Bjorn



On 23/04/2007, at 1:33 PM, Mike Anderson wrote:


Hello All,

I have an Image Component, which holds an image that is quite large -
and I only want a certain region of the image to be shown.

What I was hoping to do, is set the Width and Height settings of the
Image Component itself, and then set the ScaleX, ScaleY, X and Y
Properties of the "content".

I was assuming that the Image "Holder" would Clip the Content, since
Adobe made available to the Developer, Properties for the Image  
Control
itself, in addition to Properties for the "content" in which the  
Control

houses.

Am I wrong in this thinking?

In order to achieve my goals of showing only certain areas of the  
Image

to be displayed, will I be forced to put each of my Images into a Box
container? Or some other type of container, that allows for the  
Content

to be Clipped, if the content's size exceeds the constraints of it's
parent container?

Thank you in advance, for any information offered on this topic.

Mike




Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))




RE: [flexcoders] FDS/LCDS First Time Set Up

2007-04-22 Thread Peter Farland

4) I tried to follow the "Use the Data Management Service" tutorial 
in the Flex Manual and got hung up in two places. First, I get a 
compiler error that says: "Unexpected attribute 'url' found in 
'endpoint' from file: services-config.xml" (I assume I look in the 
WEB-INF/flex dir for this file, but I have no idea what to change). 
Second, if I ignore the error and compile anyway I get a 404 error 
saying that "The requested resource (/samples/DSLessons/ 
DSLessons.html) is not available." I don't see any compiled swf or 
html files in the DSLessons dir where I would expect them... I assume 
this is where they go??

[Pete] The first problem is that you have LCDS 2.5 Beta 2 but you're
still using Flex Builder 2.0.1 without the "Hotfix 2" updater that
includes new support for new configuration and features from LCSD 2.5.


Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Weyert de Boer
Yeah, you would also say that when .NET was supported wonderfully and we 
got the problem with Java or ColdFusion connectivity? Now I can really 
care less about Java myself, but I can do tell that would hear the same 
sounds then.

Of course, it ain't difficult to write some good connector .NET <> 
Flex/Flash. It's just sad that you need to spend time on it, while its 
being one of the those programming languages widely used.

Yours,

Weyert de Boe


Re: [flexcoders] Getting progress events on Socket *write* (not read)

2007-04-22 Thread Weyert de Boer
Hmm, as far as I know you can't really control such things with TCP 
sockets in general. I mean the TCP(/IP) itself doesn't enable to force
sending the bytes from the buffer. It makes it own decision what and 
when to send stuff. I wants to send the stuff as efficient as possible.

No, I have to admit I am not really sure about this. You might want to 
look up about the TCP protocol, Nagle algorithm etc.


Yours,
Weyert


RE: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread David Mendels
Scott,
 
This is all FUD.  You contributed a lot to the Flex community for years,
but the below is just so off-base.
 
a) Flex 1.0 and 1.X did not "crash and burn".  It was one of the most
successfull new product introductions in the history of the company. It
was a 1.X product, and it wasn't perfect, and in particular in advance
of the new VM the performance was not where any of us wanted it yet at
that time.  That said, it still was a massive advance, did very well,
and many people (not everyone) were very successfull with it.  As soon
as we had the performance issues nailed with the new VM, we broadened
the strategy with the free FlexSDK and FlexBuilder 2.  That was (IMO)
the right order of operations.  You mileage may vary, but Flex is taking
off beautifully.
 
b) Our strategy is clear.  The FlexSDK is free and can work with any
backend you choose--directly via XML, JSON, WebServices, or one of many
implementations of AMF.  
 
c) We are building an enterprise server product line as well.  It isn't
intended for everyone.  But it has tremendous value for use cases where
it it relevent and it is also very successfull.  It is clear you are not
interested in it yourself, which is fine.  Others are.  We--Adobe--will
continue to do our best to build great products and if we do people will
use them. If that is a "conspiracy" I don't get it. 
 
d) Many applications have documents/forms as inputs, outputs, artifacts.
Being able to integrate in a deep way with documents, using PDF (an ISO
standard) can be very valuable.  Some of the use cases I have seen
lately include health and benefits enrollment, tax submissions, mortgage
loan origination, insurance claims processing, corrospondence
management, field service management, new account opening, clinical
trial management, new drug submissions, grant applications, etc etc.  I
could go on, but the combination of Flex and LiveCycle (and PDF) enables
some very powerfull and seamless applications that create better
experiences, reduce costs, improve compliance, etc. I am not sure what
is controversial here for you--these apps exist whether they are of
interest to you or not.  If you aren't interested, so be it. There is no
tight coupling with Flex which is free.  There is not now nor has there
ever been a conspiracy. Whether many people or a few people are
interested in LiveCycle is not really an metric that matters to the
success of Flex and I am not sure what you are trying to prove.
 
I trust one day you will come back to the fold -;)  We'll keep working
on advancing Flex and Flash Player and Apollo in the meantime--no
conspiracies.
 
-David



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Barnes
Sent: Sunday, April 22, 2007 6:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Will Microsoft's new Silverlight Player
Kill our beloved Flex ?



Paul: How many?
 
Seriously, throw the numbers on the table because I got to tell you,
both pre-Microsoft and post-Microsoft things haven't changed that
radically that DMS is more favoured then SAAS. SAAS is the new SOA
dream, and people want it because it's less red-tape to fight for a
capital expense claim against not only software but now hardware +
bodies to support the software that was bought. SAAS delegates that
problem to someone else to solve and so it means in theory less bodies
to support the infrastructure and more focus on supporting the users if
need be. 
 
Not saying DMS is dead by any stretch, i'm sure LiveCycle solves a
million and one points of interest in this space and it does look
compelling when you separate it away from FLEX for a bit. Yet, let's
take a step back and look at the bigger picture, how does FLEX
developers world-wide get any wins from having LiveCycle in the room,
and what percentage of them are in favour of LiveCycle development being
slotted in front of FLEX? 
 
2002 Paul, I've been waiting since 2002.. I waded through swapping and
changing of Flash Framework directions (V1 to V2) like the rest of some
of us on this list. I waited for Royale to hit the street only to watch
it crash and burn due to price tag issues (which we all said loud and
clear this bites! - listen to the customers is a tip). I watched CENTRAL
get thrown our way, and was glad we could use this concept and wondered
why it went away (EULA and again not consulting customers first was the
perception). I watched as FLEX 2.0 came back, but free only the whole
remoting piece dropped off the radar and came back as Flex Data
Services. Only Its hard to find someone whom will host this product
(why?) and secondly it doesn't support .NET and Java anymore? it's only
Java? (It's not as if Remoting + .NET has been a mystery, it was there
in the past and if the WebORB folks for example can make it happen?
surely Adobe could). 
 
It's 2007 and I'm seeing Apollo have "PDF" Integration (which raises an
eyebrow on whom this is really for - could be conspiracy th

[flexcoders] Okay, I know this is possible...

2007-04-22 Thread Nate Pearson
...but I haven't seen it yet!  I've seen the code but when I run it it
doesn't work!

How do allow for a datagrid to drop into a tree?  All i need it to do
is  have DragManger.acceptDragDrop(UIComponent(event.currentTarget))
on drag enter work!  Everytime i do it I get a little red x.

Anyone have any code/examples to show me?  If you say "override
dragEnter and put
DragManager.acceptDragDrop(UIComponent(event.currentTarget)) i wont
believe you! ;).  

Seriously, I've worked on this all weekend to no avail :(.  I'm going
to dell taco now and I hope someone can help me by the time I'm back.



Re: [flexcoders] Viewstack showEffect and hideEffect playing at the same time

2007-04-22 Thread Tim Walling

I don't think you can. I've had to write my own viewstack-like component in
the past to achieve a series of animation effects. In my case it was a fade
out, resize, fade in.

You might have to write your own component as well if you can't live with
the effects that you come up with using a regular ViewStack.


Tim


On 4/22/07, João <[EMAIL PROTECTED]> wrote:


  I have one viewStack with two views, both of them with the following
effects:























The problem here is that when changing between views, the showEffect
of the view to show plays at the same time of the hideEffect of the
view thats hiding. How can i make it to first hide the current view,
and only the hiding finishes, the new view starts it's showEffect?

Thanks,

João Saleiro

 





--
Tim
timwalling.com


[flexcoders] xmlrpc

2007-04-22 Thread joshua gatcke

Hello All,

I am having a hard time understanding how to use  with our  
xmlrpc server. I understand how to send a request with name value  
pairs and how to format the results etc., however, I have no idea how  
I can specify the xmlrpc method to use with the   tag or  
via actionscript.


We are using Flex + PHP and just trying to read write via xmlrpc  
requests. I do not want to use AMFPHP. Is it possible to specify the  
remote xmlrpc method with a rest style request or am I totally out to  
lunch.


Thanks in advance for your help,


- Joshua






Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Hilary Bridel

Hi Bjorn,
I don't think it will allow you to do this for a remote domain.
See Docs for BitMapData:

"The source object and (in the case of a Sprite or MovieClip object) all of
its child objects must come from the same domain as the caller, or must be
in a SWF file that is accessible to the caller by having called the
Security.allowDomain() method. If these conditions are not met, the
draw()method does not draw anything"

I tried to do the same with a remote .flv file but the player wouldn't let
me :-(

Hilary

On 4/23/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:


  Hey,

I'm getting an annoying error when i try to do a bitmap draw of an image
loaded via a remote domain.
**Error: A policy file is required, but the checkPolicyFile flag was not
set when this media was loaded**

To confirm i have a breakpoint where i set the source of the image tag,
and i can confirm checkPolicyFile is set to true ( i do so when i
instantiate it ).

This is a major pain for me.
Any help?



regards,

Bjorn



 ((This transmission is confidential and intended solely for
the person or organization to whom it is addressed. It may contain
privileged and confidential information. If you are not the intended
recipient, you should not copy, distribute or take any action in reliance on
it. If you believe you received this transmission in error, please notify
the sender.---))

 





--
Hilary

--


Re: [flexcoders] Re: trying here- get an image name and the images itself to load

2007-04-22 Thread Michael Wills
No problem. I know the pain, believe me. I'm working on an app now as I 
am starting out with Flex and decided to dive in with Cairngorm for it. 
There is definitely a learning curve but it really helps with the 
separation.


Glad it worked out for you there.

Michael

shawn.gibson wrote:


Michael: You did it! Thanks. And what makes it both wonderful for me
and also very frustrating (but just in a DOH! way) is that I totally
understand what you did. I guess I've lost a bit of perspective here,
and need to step back a bit, because even I should have been able to
figure that out...I really, really appreciate your help. This is the
first time in months this part has ever worked.

Thanks very much:) I owe you.

I wish I could learn how to figure out the correct way to use result
handlers, but for now, I am very happy. I know the proper way to do
this is via proxiesAS3 if you want it to scale and have any kind of
separation (remove the model from the main app and give yourself a
chance at debugging etc.), but it's one step at a time for me:)

Shawn (with gratitude)

 


[flexcoders] Font-size Bug in Text Area?

2007-04-22 Thread iko_knyphausen

Hi everyone:

I think I have found a bug in the text area control and its htmlText
property. When you set the fontsize property of an textarea to "11", it
interprets it as 11 pixels (nb: "11px" would not a valid value for this
property). On screen it looks about right. Now when you get the htmlText
property, you will find a  tag. That of
course is way different than 11 pixel. This is GIGANTIC...

Is it a confirmed bug?

Thanks

-Iko




Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Bjorn Schultheiss

Hey Hilary,

The guys at cynergy claimed they had a solution
http://www.cynergysystems.com/blogs/page/karljohnson? 
entry=working_around_security_sandbox_errors


But this is 101, i mean the only difference i can see with my  
implementation is that they're using mxml and binding for the  
loaderContext reference.


I'm also loading flv + images and swfs, so i guess the best solution  
is to deploy a 'previewer' component swf on the remote domain the the  
main application loads that contains the allowDomain() call.



B

On 23/04/2007, at 2:42 PM, Hilary Bridel wrote:


Hi Bjorn,
I don't think it will allow you to do this for a remote domain.
See Docs for BitMapData:

"The source object and (in the case of a Sprite or MovieClip  
object) all of its child objects must come from the same domain as  
the caller, or must be in a SWF file that is accessible to the  
caller by having called the Security.allowDomain()method. If these  
conditions are not met, the draw() method does not draw anything"


I tried to do the same with a remote .flv file but the player  
wouldn't let me :-(


Hilary


On 4/23/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:

Hey,

I'm getting an annoying error when i try to do a bitmap draw of an  
image loaded via a remote domain.
**Error: A policy file is required, but the checkPolicyFile flag  
was not set when this media was loaded**


To confirm i have a breakpoint where i set the source of the image  
tag, and i can confirm checkPolicyFile is set to true ( i do so  
when i instantiate it ).


This is a major pain for me.
Any help?



regards,

Bjorn



((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))






--
Hilary

--




Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))




Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Hilary Bridel

In my case I dont have control of the remote domain, so I cant do nuffink
about it!
Would just have been nice to do effects on a live streaming video ;-)

Hilary

--


On 4/23/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:


  Hey Hilary,

The guys at cynergy claimed they had a solution

http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors


But this is 101, i mean the only difference i can see with my
implementation is that they're using mxml and binding for the loaderContext
reference.


I'm also loading flv + images and swfs, so i guess the best solution is to
deploy a 'previewer' component swf on the remote domain the the main
application loads that contains the allowDomain() call.




B

 On 23/04/2007, at 2:42 PM, Hilary Bridel wrote:

  Hi Bjorn,
I don't think it will allow you to do this for a remote domain.
See Docs for BitMapData:

"The source object and (in the case of a Sprite or MovieClip object) all
of its child objects must come from the same domain as the caller, or must
be in a SWF file that is accessible to the caller by having called the
Security.allowDomain()method. If these conditions are not met, the draw()method does 
not draw anything"

I tried to do the same with a remote .flv file but the player wouldn't let
me :-(

Hilary

On 4/23/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:
>
>
>
> Hey,
>
> I'm getting an annoying error when i try to do a bitmap draw of an image
> loaded via a remote domain.
> **Error: A policy file is required, but the checkPolicyFile flag was not
> set when this media was loaded**
>
> To confirm i have a breakpoint where i set the source of the image tag,
> and i can confirm checkPolicyFile is set to true ( i do so when i
> instantiate it ).
>
> This is a major pain for me.
> Any help?
>
>
>
> regards,
>
> Bjorn
>
>
>
> ((This transmission is confidential and intended solely for
> the person or organization to whom it is addressed. It may contain
> privileged and confidential information. If you are not the intended
> recipient, you should not copy, distribute or take any action in reliance on
> it. If you believe you received this transmission in error, please notify
> the sender.---))
>
>
>
>



--
Hilary

--



 Regards,

Bjorn Schultheiss
Senior Developer
[image: QDC]
Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T: �+61 3 9674 7400
F: �+61 3 9645 9160
W: �http://www.qdc.net.au

((This transmission is confidential and intended solely for
the person or organization to whom it is addressed. It may contain
privileged and confidential information. If you are not the intended
recipient, you should not copy, distribute or take any action in reliance on
it. If you believe you received this transmission in error, please notify
the sender.---))








--
Hilary

--


[flexcoders] Re: Identifying line series for datatip function

2007-04-22 Thread Zhu Haifeng
Hi I'm having the same problem here, but I still haven't figured out
how to deal with it.

After calling LineSeries(h.element).yField, I got the name of the data
series, which is great. But how do I then retrieve the y value of this
data series for the datatip?

For example, I get "DATE" after calling LineSeries(h.element).yField,
and the conventional way to display the y value in the datatip is to
do h.item.DATE. How do I attach "DATE" to h.item.?

Thanks a lot 


--- In flexcoders@yahoogroups.com, "yaagcur" <[EMAIL PROTECTED]> wrote:
>
> Thanks v much
> That set me on the correct path
> 
> --- In flexcoders@yahoogroups.com, "pasflex"  wrote:
> >
> > try
> > trace (LineSeries(h.element).yField)
> > 
> > --- In flexcoders@yahoogroups.com, "yaagcur"  wrote:
> > >
> > > To elaborate I want to do something like
> > > 
> > > public function dtFunc(h:HitData):String {
> > >   
> > >   trace (h.chartItem.element.yField);
> > > 
> > > }
> > > but there is no property yField
> > > 
> > > You used to be able to do
> > > obj.hitData.chartItem.element.yField
> > > 
> > > but I think that is no longer available and the chartItemEvent also
> > > has not proven the answer to date
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "yaagcur"  wrote:
> > > >
> > > > On a line chart with multiple series, I wish to have a datatip
> > > > function that differs according to which line is hit but I'm 
> > having
> > > > difficulty identifying the property that would tell me that
> > > > Any help much appreciated
> > > >
> > >
> >
>




Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?

2007-04-22 Thread Scott Barnes

David,

(No good can come from this, but anyway, here goes nothing).

*Let's get FUD Definition on the Table:*
*FUD is an abbreviation for Fear, Uncertainty, and Doubt, a sales or
marketing strategy of disseminating negative but vague or inaccurate
information on a competitor's product. The term originated to describe
misinformation tactics in the computer software industry and has since been
used more broadly.
*
I'd get why you think I'm spreading FUD now that I have a Microsoft logo on
my back :) it's not lost on me, yet I draw your attention to 2004 when  made
similar remarks about how you guy screwed up in FLEX 1.5 and CFMX with FLASH
FORMS (Pre-Microsoft, so this is me talking, just Flex developer Scott, and
not [EMAIL PROTECTED] talking)

http://www.mossyblog.com/archives/267.cfm
http://www.mossyblog.com/archives/594.cfm
http://www.mossyblog.com/archives/591.cfm
http://www.mossyblog.com/archives/578.cfm

(there are more, I can even get stuff from Spectra days if you want? ).

So I'm not walking in cold of the street with my crit and in years
beforehand, your guy's supported my efforts with MossyBlog - now that I'm
Microsoft, well I guess things have changed and FUD's much easier response
to throw out there ... funny how a logo changes everything.

I'm not disputing FLEX as a technology (i.e. lost on why you brought the
whole VM into the discussion). I am however disputing the notion that it
appears all roads lead to LiveCycle, and the *current* *existing* *use* for
FLEX is being regarded as almost secondary. It's easy to say "*We released
the SDK, therefore it's your problem, go build*" and hope for pats on the
back. That would of worked, had you done this from the start.
Yet, Adobe/Macromedia didn't, they went after Enterprise with a product you
said yourself, they weren't happy with, charged them initially a price tag
of around $6k USD, it had issues around selling, so someone in their
infinite wisdom thereafter decided to up the price tag to $15k USD (or there
abouts) and used the notion "*If you buy 2 or more OEM's it gets cheaper*"
meanwhile everyone whom did buy the actual product stated: "*I don't want
the server, I want the damn output (SWF) in production environments only*"
(That fell on deaf ears so much so I used to get a lot of the sales guys go
"I know..") I won't even go into discussions I've had with Lucian about some
of this either.

Adobe/Macromedia there after agreed, by putting the SDK in the room with a
new improved VM. Why else would you suddenly change direction by (*granted
AJAX movement kicked off and the sales pitch on how RAD with FLEX is much
easier then JS/HTML suddenly shifted everyone's focus*), giving the product
away? meanwhile the so called "successful" owners of Flex 1.x are left
holding server-driven products (which again, only wanted the SWF piece -
which is the FLEX 2.0 SDK) and whom have not only paid a premium for it, but
have a fairly rocky road ahead in terms of migration to FLEX 2.0.

(Recap Point: Flex 1.x cost lots off dollars, Flex 2.0 costs nothing, but if
you want Flex 2.0 with the remoting pieces Flex 1.0 had well it's pony up
for the same price tag + more ) (where is he focus for FLEX? enteprise again
or RIA developers as I'm confused as hell).

Now the plot thickens, again you yourself are now stating that you're
looking to go after the Enterprise (again) with the new improved server
suite you are building, meanwhile your current existing developers are
screaming out for a piece of this puzzle as it would not only help them get
over many hurdles of client to server side connectivity but would also put a
lot of their invested time/money with learning FLEX onto the table for
future products going forward (Gives them more of a stronger story in ROI
discussions then at present). In a sense of the word, it appears the good
parts are being reserved for Enterprise while the left-overs are handed down
to developers with a "*DIY Post-it Note*" being put on the side (case and
point: you gave WebORB folks the brushoff, while Adobe staffers at WebDU
stated you were working with them - which was news to WebORB? As from memory
they were wanting to gain Adobe's support?)

Sounds like FLEX 1.0 days again? only new label - LiveCycle (Patterns are
the same, just approach slight adjusts (FUD be damned)).

My overall close-out point is simple: LiveCycle is the next attempt at
pushing Flash into the Enterprise market (I can see why, the idea of Flash
player sitting nice and snuggly inside the corporate firewall would make
anyone want to figure out revenue $$ can come from it somehow). It's bold
and kudos for doing so as nothing but good can come from it for everyone on
this list (Should you succeed). Yet do so not at the expense of having Flex
Developers on this list having to jump more financial mismanaged hurdles
while your guys figure out how the pieces play a role it just smacks of
customer disloyalty firstly and secondly - most important of all - results
in poor upt

[flexcoders] Open new browser popup

2007-04-22 Thread Jaap Cammeraat

Thanks for your answer, but it isn't working in Flex201.
Is there another example of opening a popupwindow?




Op 20-apr-2007, om 14:38 heeft ramp_of_remo het volgende geschreven:


--- In flexcoders@yahoogroups.com, Jaap Cammeraat <[EMAIL PROTECTED]>
wrote:
>
> Hi all,
>
> Can somebody tell me how I can open a sized window in the users
browser?
> At this moment I'm using navigateToURL(u,"_blank") to open a
new
> window but I want a new window with special sizes.
>
> Regards,
> Jaap Cammeraat
>

Hi Jaap,

Wish the following code snippet will be a solution for your question.


http://www.macromedia.com/2003/mxml";>






Cheers,
Mahesh Reddy.