[flexcoders] File upload to amazon S3 from Flex

2008-04-02 Thread Gaurav Jain
Hi,

I have to upload a file on Amazon S3 server in a particular bucket.

I am calling the upload() method through FileReference object and providing
URLRequest object containing server url as a parameter.

 

But I am getting Invalid arguments error.

 

Can anyone help me out on this?

 

Thanks,

Gaurav

 



RE: RES: [flexcoders] Resize very slow

2008-04-02 Thread Rick Winscot
Sounds to me like you may be over-using the invalidateDisplayList() ???
Without seeing some code – it is difficult to tell exactly what might be the
problem. Post something and we can take a look see.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Todd
Sent: Wednesday, April 02, 2008 10:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: RES: [flexcoders] Resize very slow

 

Hey All, I have a very similar question to this one, so I thought I'd
continue this thread.

I also have a slow redraw, because of one of my properties id
dynamically bound to calculate the width based on another property. 
When making the screen larger, it does one redraw, however, when
making it smaller, it does it's loop of calling resize everytime the
control property changes. I'm trying to figure out if there's a way
to supress the resize events until the parent has finished drawing, or
something similar.

I have to set the width because the component I'm resizing is a
TextArea and I'm trying to force it to take up as many lines as it
needs to render the length of text, which is all variable.

Thanks for any suggestions.

--- In flexcoders@yahoogroups.com  ,
"Luciano Manerich Junior"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> cant you use bottom="0"?
> 
> 
> 
> You will not have to do that Math thing... But i dont believe that
will really speed up...
> 
> 
> 
> De: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
Em nome de shivkxr
> Enviada em: quinta-feira, 27 de março de 2008 16:30
> Para: flexcoders@yahoogroups.com  
> Assunto: [flexcoders] Resize very slow
> 
> 
> 
> I have a canvas and a few controls within the canvas. On of these is an 
> image.
> 
> Essentially, what I want is that the image appear towards the bottom of 
> the canvas, so what I do is this
> 
> 
> 
> This works, except that when the canvas is sized to a different size it 
> looks like I have a slow motion effect in place. It takes quite a few 
> seconds (3-10) depending on the difference between the old and new 
> height of the canvas.
> 
> So is there a way to speed this up?
>

 

<><>

[flexcoders] How can I stop/kill a running SWF which was loaded with SWFLoader ?

2008-04-02 Thread helihobby
Hi All,

I have a swf which I loaded via SWFLoader.
It runs fine however how can I kill it.

I dont have the source FLA so I cant add actionscript inside the SWF.
I must kill it from the outside.

when I set the swfLoad.load(null) or swfLoad = null or even
swfLoad.source = null after it has been running for a few seconds I
can still hear the SWF sound playing in the backgound ...

It just won't die 

:(

Is there anyway to terminate the running loaded swf ?

Regards,

Sean.



[flexcoders] flex stress testing framework for flex 3.0

2008-04-02 Thread Sanjit Kumar
hi

I need to test my application using flex stress testing framework. It 
works fine for flex 2.0 which provided by Adobe. but i need to use in 
flex 3.0. please help me if any body have idea I have done configuration 
step in flex 3.0 but it does not works. it gives error Cannot create 
class of type 'flex.messaging.endpoints.RTMPEndpoint'. Type 
'flex.messaging.endpoints.RTMPEndpoint' not found. and it also does not 
have mx.data api in flex 3.0.  if any one can help how i can achieve it 
in flex 3.0 or any one can provide link from where i can get information 
about it

Regards & thanks

sanjit kumar


Re: [flexcoders] fading out a Box on removal?

2008-04-02 Thread Bob Wohl
<
http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html
>

hth

On Wed, Apr 2, 2008 at 4:15 PM, Anthony Ettinger <[EMAIL PROTECTED]> wrote:

>   Is there an easy way to fade out a Box from ActionScript? Ie: when an
> error message appears, I just want it to show for 2.5 seconds, then
> fade out and removed.
>
> --
> Anthony Ettinger
> 408-656-2473
> http://anthony.ettinger.name
>  
>


Re: [flexcoders] Printed chart has grey background

2008-04-02 Thread Brendan Meutzner
Try setting a container behind the chart to backgroundAlpha 1 and
backgroundColor #FF and don't set anything on the chart...  just had
this issue the other day, and was able to set just before print, and then
back to default afterwards and worked fine.


Brendan


On Wed, Apr 2, 2008 at 4:48 PM, Nate Pearson <[EMAIL PROTECTED]> wrote:

>   My chart on screen has a white background. When I print it it gets
> this grey background.
>
> I tried doing chart.setStyle("backgroundColor", 0xff) at print but
> that doesn't work :(.
>
> Anyone know how to do this?
>
> -Nate
>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/


[flexcoders] Re: actionScriptProperties

2008-04-02 Thread Bjorn Schultheiss
basically something like this 


How can i define $CUSTOM_VAR?



--- In flexcoders@yahoogroups.com, "Bjorn Schultheiss"
<[EMAIL PROTECTED]> wrote:
>
> I'm trying to change the value for 
>  within the .actionScriptProperties
> file.
> 
> How can I use a variable created in a seperate properties file for
> this value?
>




[flexcoders] actionScriptProperties

2008-04-02 Thread Bjorn Schultheiss
I'm trying to change the value for 
 within the .actionScriptProperties
file.

How can I use a variable created in a seperate properties file for
this value?



[flexcoders] Stupid question? Can I paint to RGB instead of RGBA?

2008-04-02 Thread Josh McDonald
Is there an easy way to paint to only the colour channels of a rendered
UIComponent? As in, I don't want to change its shape, just the colour of a
part of it. I'm picturing some sort of intermediate buffer and some sort of
composition function perhaps? If there's no easy way, how does one get
programmatic access to Flash's masking capabilities?

-J


*** Note to self: ctrl-space will not auto-complete flex code in gmail. File
a bug.

-- 
"Therefore, send not to know For whom the bell tolls, It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Browse Button Equivalent in Flex

2008-04-02 Thread Remya
I have a "Browse" button in my present application. I need to
implement the equivalent in Flex too. But, I couldn't get a clue in
this matter yet. 

I came across FileReference and FileReferenceList class, but those
classes doesn't help retrieving file locations. Moreover, I can't set
a default location for the Browse pop up window too.

Please help me with your thoughts.

Thanks
Remya



Re: [flexcoders] useHandCursor + buttonMode

2008-04-02 Thread Josh McDonald
Well I googled it, and all I got was answers that didn't work.

If anybody else has the same problem, this combo works:

 selectable="false" mouseEnabled="true" buttonMode="true"
useHandCursor="true" mouseChildren="false"

-J

On Thu, Apr 3, 2008 at 2:14 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Search the archives.  This gets asked and answered every 90 days.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Wednesday, April 02, 2008 9:04 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] useHandCursor + buttonMode
>
>
>
> Is it just me, or do these only work like half the time? I can't get it to
> work at all for Label components...
>
> -J
>
> --
> "Therefore, send not to know For whom the bell tolls, It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>   
>



-- 
"Therefore, send not to know For whom the bell tolls, It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] best way to update a display object's VO's x and y props?

2008-04-02 Thread Rich Rodecker
>
> It sounds as though you want the PageItem's position to initially be set
> from the VO's x/y, then you want the VO's x/y to reflect the PageItem's x/y
> as it is dragged.


yes, that's exactly what I want.


Actually, binding the other way doesn't sound all that bad...I'll think
about that a little more.





On Wed, Apr 2, 2008 at 6:21 PM, Douglas McCarroll <
[EMAIL PROTECTED]> wrote:

>   Hi Rich,
>
> I don't think that I have a great answer for you on this but I have a few
> questions/thoughts.
>
> It sounds as though you want the PageItem's position to initially be set
> from the VO's x/y, then you want the VO's x/y to reflect the PageItem's x/y
> as it is dragged.
>
> Why don't you *not* have the x/y in the VO bindable? Instead, just have
> them bound to the PageItem's x/y.
>
> There are at least two possible objections to this:
>
> a) "How will the PageItem's x/y initially get set to the VO's x/y?" Well,
> you'd have to figure out some other mechanism.
>
> b) "But part of the definition of a VO is that all properties are
> bindable!" Well, rules are made to be broken.  :)
>
> But I'm not sure that this is a good idea. Bi-directional binding doesn't
> sound bad to me. You say it's inefficient, but is it impacting performance?
> If not, I wouldn't worry about it.
>
> Douglas
>
> On undefined, Rich Rodecker <[EMAIL PROTECTED]> wrote:
>
> >   Hello,
> >
> > I'm building a page layout-type app using cairngorm. I have an
> > arraycollection of value objects in the model that stores the data for each
> > item on the page.  Every item on the page is a custom component (a PageItem)
> > that is bound to one of the VOs as a dataprovider.  The VO contains the
> > entire state of the PageItem, x,y,rotation, content, etc).
> >
> > each PageItem is draggable.  When I drag the PageItem to a new position,
> > i need to have the VO updated as well.  Currently I am just updating the vo
> > from within the component when the mouse is released, but since it's bound,
> > that triggers the property change event on the VO, which doesn't really do
> > anything but is pretty inefficient.
> >
> > I feel like there's gotta be some way to just proxy the PageItem's
> > values like x and y to the VO directly and I'm just missing it.
> >
> > In the past I have used Momentos to save and restore state, but I'm
> > trying to achieve a greater separation of the view and the model, so that
> > when I go to save the data, I just grab the collection of VO's from the
> > model and save that, rather than query the view for it's state.
> >
> > Anyone have any pointers?
> >
> >
> >
> >
>  
>


RE: [flexcoders] useHandCursor + buttonMode

2008-04-02 Thread Alex Harui
Search the archives.  This gets asked and answered every 90 days.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Wednesday, April 02, 2008 9:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] useHandCursor + buttonMode

 

Is it just me, or do these only work like half the time? I can't get it
to work at all for Label components...

-J

-- 
"Therefore, send not to know For whom the bell tolls, It tolls for
thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]   

 



RE: [flexcoders] Embedded fonts + modules = weirdness

2008-04-02 Thread Alex Harui
I'm still lost on where modules fit in.  In theory, you shouldn't have
gotten any text since the fontWeight didn't match up, so I feel like I
don't have the whole story.  Your custom selector had a "." In it?

 

A reduced test case might help.

 

The way I debug this stuff is to remove as many text displaying widgets
from the UI, then break on validateNow in UITextField, check the parent
to see if it is the one you want and follow its logic through for how it
calculates its TextFormat and embedFonts.  The rule for embedded fonts
is that the code that calls new UITextField must be in the same SWF as
the font.  Flex 3 has a whole bunch of logic that should take care of
that via moduleFactory and the embeddedFontRegistry.

 

If the CSS is in a runtime CSS module, there might be a timing issue as
to when the font becomes available and when the TextFields get
re-factory'd.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Clinkinbeard
Sent: Wednesday, April 02, 2008 8:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedded fonts + modules = weirdness

 

I added fontWeight: normal and nothing changed. I still don't understand
why the deferred creation from being on a subsequent tab prevents this
issue. Any other ideas?

Thanks,
Ben



On Wed, Apr 2, 2008 at 7:33 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

The button will essentially call getStyle("fontWeight") and pull the
value from the Button type selector if fontWeight is not set elsewhere



-Original Message-
From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On Behalf Of Ben Clinkinbeard
Sent: Wednesday, April 02, 2008 3:25 PM
To: flexcoders@yahoogroups.com  

Subject: Re: [flexcoders] Embedded fonts + modules = weirdness

Shouldn't it use whatever font I tell it to?

And why would it work on one instance of the same button and not
another? It is definitely related to being on a non-deferred tab because
it only happens on the first tab, no matter how many there are. 

Thanks,
Ben

Sent via BlackBerry by AT&T

-Original Message-
From: "Alex Harui" <[EMAIL PROTECTED]  >

Date: Wed, 2 Apr 2008 14:52:26 
To:mailto:flexcoders%40yahoogroups.com> >
Subject: RE: [flexcoders] Embedded fonts + modules = weirdness

I'm not sure how modules got involved. 
  
Most buttons use bold fonts for their labels and I don't see that
fontWeight specified in this snippet 
  
  




From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On Behalf Of ben.clinkinbeard
Sent: Wednesday, April 02, 2008 2:21 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Embedded fonts + modules = weirdness 
  



CSS file in main app:

@font-face
{
src: url("assets/fonts/Gotham-Medium.otf");
fontFamily: "GothamMedium";
}
Button.BlueButtonOutline
{
skin: Embed(skinClass="Button_BlueButtonOutline_skin");
fontFamily: "GothamMedium";
font-size: 14;
color: #FF;
text-roll-over-color: #FF;
text-selected-color: #FF;
}

I then have a component in a module that has a child button with
styleName="BlueButtonOutline", simple enough. That component is then a
child of a 2 TabNavigator children. The button that is a descendant of
the first tab has a mystery font to begin with, and then the text
disappears completely on rollover. The button that is a descendant of
the second tab works perfectly.

What gives?

Thanks,
Ben 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
Links

 

 



RE: [flexcoders] Question on calling multiple Functions in sequence

2008-04-02 Thread Mike Anderson
See, THAT is what I am talking about - regarding the UI still rendering,
while the PrintJob is being sent to the printer.
 
This where I am running into problems -
 
I have an idea on how to get around this - but I need to know which
Event to listen for, that directly relates to the Object I am scaling.
If I know which Event to listen for, I can set a local flag to 'True' -
and if a certain Event fires, with the variable being 'True', then I can
dispatch a custom Event, which my Printer Dialog Window listens for.
 
The Custom Component that I am modifying just before the PrintJob runs,
extends the UIComponent.  I am going to take a wild guess and say that I
should listen for the "UpdateComplete" Event - as that should get
triggered if I perform a Resize correct?
 
Thanks for your ideas -
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 02, 2008 8:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Question on calling multiple Functions in
sequence



Unless you are doing something that is explicitly asynchronous, the
single threaded nature of AS processing is reliable.  The main function
does not "know" in any sense, but the execution path is linear.
Processing simply does not return to the main function until the called
function(s) is/are complete.

 

This does not necessarily mean that the UI is done rendering.  That
stuff is controlled bu the invalidation system.  But code processing is
linear.

 

If your wife sends you shopping, she has no idea whether you went to the
bar while you were gone, but, assuming you have no bugs (or delegate the
shopping to someone else), when you return, the shopping is done.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Wednesday, April 02, 2008 10:28 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Question on calling multiple Functions in
sequence

 

Thank you Tracy and Eric - this DOES help me a lot -

 

But I need to ask, what facilities are built into the FlashPlayer, that
guarantees that Function2 doesn't run until Function1 not only executes,
but actually FINISHES?

 

Doing computations is one thing, but when you are doing scaling
functions, or anything else that really doesn't provide any feedback one
way or another when it's actually finished (scaling an object in this
case), how can the containing function really KNOW?

 

I know these may be novice questions, but these types of issues have
been nagging me for a long time.  The more I can understand what's
really going on under the hood, the more effective of a programmer I can
be.

 

Thank you again for all your comments - please keep them coming :)

 

Mike

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cancil
Sent: Wednesday, April 02, 2008 6:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Question on calling multiple Functions in
sequence

When dealing with things inside the flash player - you need to deal with
it as if it was single threaded - because generally, it is.  In your
example, the functions would be called in order, one after another...not
all at the same time as you may think so lets say you had an example
like this

var myNumber:Number = 0;

private function doThisFunction():void{
  myFunction1();
  myFunction2();
  myFunction3();
}

if function 1 added 10 to myNumber, function 2 multiplied it by 5, and
function 3 subtracted 12 - it would happen in that order exactly - and
you can count on that - so your final result would be 38

hope this helps
eric



On Wed, Apr 2, 2008 at 7:54 PM, Mike Anderson <[EMAIL PROTECTED]
 > wrote:

Hello All,

I was wondering how things work, when calling multiple functions in
sequence. For example, in this function:

private function doThisFunction():void
{
myFunctionOne();
myFunctionTwo();
myFunctionThree();
}

When I execute "doThisFunction", does it literally run the 3 functions
"one-two-three", or does it execute the first function, waits for it to
finish, then runs the second function, waits for it to finish, then
finally runs the third function. How could "doThisFunction" possibly
know when "myFunctionOne" even finishes?

My end goal, is to create a way for a function (containing more
functions within) to stop and wait for each function to "run &
complete", before executing the next one. I know Events are used quite
often when things must happen in a sequence, but when it comes to things
like "Scaling or Sizing a Component", how could I possibly know when
something like that finishes?

Thanks in advance for any advice you can all throw my way :)

Mike





 


RE: [flexcoders] Add text field to CursorManager "busy cursor"

2008-04-02 Thread Alex Harui
You might want to use ProgressBar instead

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dnk
Sent: Wednesday, April 02, 2008 6:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Add text field to CursorManager "busy cursor"

 

I was wondering if anyone knows if there is a way to add a text field 
that would stick with the "busy cursor". I would like to add a brief 
text description as to what is happeneing when i call that 
ShowBustCursor().

Thanks!

DNK

 



[flexcoders] useHandCursor + buttonMode

2008-04-02 Thread Josh McDonald
Is it just me, or do these only work like half the time? I can't get it to
work at all for Label components...

-J

-- 
"Therefore, send not to know For whom the bell tolls, It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: rss feed not working

2008-04-02 Thread Vivian Richard
   thanks. Yes you are right, my code is more complicated. But since
   I am using Cairngorm, this is the way that I need to do it. In Cairngorm
   architecture you put all you HTTPServices in one file in mxml tags like:

   
   

   You instantiate and send the http request from another file where you
also
   add and declare the fault and result handler. So When you send the
   HTTP request you will dynamically add the result and fault handler during
   run time. That is what I was trying to do

   I guess my main problem is I am not processing the resultEvent proporly




On Wed, Apr 2, 2008 at 1:32 PM, Kevin <[EMAIL PROTECTED]> wrote:

>   I think you're making it more complicated then it needs to be. Try this:
>
>
>  url="{ rssURL }" resultFormat="object"
> showBusyCursor="true"
> result="onResult(event)"
> fault="onFault()"
> />
>
> <** snip **>
>
> public function init():void
> {
> httpRSS.send();
> }
>
> --- In flexcoders@yahoogroups.com , "hworke"
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi am reading an rss file and calling the HTTPService with
> > action script then handling the HTTPService result to a
> > AsyncToken and finally handling the result is onResult function.
> >
> > But for some reason It is not giving me any return.
> > Here is the HTTPService and the function that calls it:
> >
> >  > resultFormat="object" showBusyCursor="true"/>
> >
> >
> > public function init():void
> > {
> > httpRSS.send();
> > var token:AsyncToken = httpRSS.send();
> > var callResponder:Responder = new Responder(onResult,onFault);
> > }
> >
> > public function onResult(event:ResultEvent):void
> > {
> > var tmp:Object = event.result.RDF.item;
> > var items:Array = new Array();
> > for( var i:String in tmp )
> > {
> > items.push( tmp[i] );
> > }
> > externalData = new ArrayCollection( items );
> > }
> >
> > *
> > *
> > *
> >
> > Here is the whole code
> >
> > *
> > *
> > *
> >
> >
> > 
> >
> > http://www.adobe.com/2006/mxml";
> > xmlns:iframe="com.renaun.iframe.*"
> > creationComplete="init()"
> > width="100%" height="100%"
> > paddingLeft="5" paddingRight="5" paddingBottom="5"
> paddingTop="5"
> > horizontalAlign="left"
> > layout="vertical" viewSourceURL="srcview/index.html">
> >
> >  > url="{ rssURL }" resultFormat="object"
> > showBusyCursor="true"/>
> >
> > 
> > 
> > 
> > 
> >  > title="Adobe MXNA Flex Feed (RSS Reader Example #2)"
> > width="100%" height="100%"
> > paddingLeft="5" paddingRight="5" paddingBottom="5"
> paddingTop="5">
> >
> >  > id="newsItems"
> > dataProvider="{ externalData }">
> >  > creationCompleteEffect="Fade">
> >  > textAlign="left"
> > label="{ newsItems.currentItem.title }"
> > click="processURL(
> > event.currentTarget.getRepeaterItem().link )" />
> >  > editable="false"
> > width="98%" cornerRadius="6" height="50"
> > backgroundColor="0xFAFAFA"
> > htmlText="{ newsItems.currentItem.description }"
> > >
> >  > width="98%"
> > textAlign="right"
> > text="{ newsItems.currentItem.creator + ' ' +
> > newsItems.currentItem.date + ' ' + newsItems.currentItem.subject }" />
> >
> > 
> > 
> > 
> > 
> >
>
>  
>


Re: [flexcoders] Embedded fonts + modules = weirdness

2008-04-02 Thread Ben Clinkinbeard
I added fontWeight: normal and nothing changed. I still don't understand why
the deferred creation from being on a subsequent tab prevents this issue.
Any other ideas?

Thanks,
Ben


On Wed, Apr 2, 2008 at 7:33 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>   The button will essentially call getStyle("fontWeight") and pull the
> value from the Button type selector if fontWeight is not set elsewhere
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> Ben Clinkinbeard
> Sent: Wednesday, April 02, 2008 3:25 PM
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Embedded fonts + modules = weirdness
>
> Shouldn't it use whatever font I tell it to?
>
> And why would it work on one instance of the same button and not another?
> It is definitely related to being on a non-deferred tab because it only
> happens on the first tab, no matter how many there are.
>
> Thanks,
> Ben
>
> Sent via BlackBerry by AT&T
>
> -Original Message-
> From: "Alex Harui" <[EMAIL PROTECTED] >
>
> Date: Wed, 2 Apr 2008 14:52:26
> To:>
> Subject: RE: [flexcoders] Embedded fonts + modules = weirdness
>
> I'm not sure how modules got involved.
>
> Most buttons use bold fonts for their labels and I don't see that
> fontWeight specified in this snippet
>
>
>
>
> 
>
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> ben.clinkinbeard
> Sent: Wednesday, April 02, 2008 2:21 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Embedded fonts + modules = weirdness
>
>
>
>
> CSS file in main app:
>
> @font-face
> {
> src: url("assets/fonts/Gotham-Medium.otf");
> fontFamily: "GothamMedium";
> }
> Button.BlueButtonOutline
> {
> skin: Embed(skinClass="Button_BlueButtonOutline_skin");
> fontFamily: "GothamMedium";
> font-size: 14;
> color: #FF;
> text-roll-over-color: #FF;
> text-selected-color: #FF;
> }
>
> I then have a component in a module that has a child button with
> styleName="BlueButtonOutline", simple enough. That component is then a
> child of a 2 TabNavigator children. The button that is a descendant of
> the first tab has a mystery font to begin with, and then the text
> disappears completely on rollover. The button that is a descendant of
> the second tab works perfectly.
>
> What gives?
>
> Thanks,
> Ben
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>  
>


[flexcoders] Passing complextype parameter to webservice

2008-04-02 Thread kellis5137
Hi,
I'm new to Flex and hoping you all might be able to answer a question
I have had for a while. In ActionScript, I'm trying to pass a
parameter to a web service. I'm using the WebService class in the
following way:
...
authenticationService = new WebService();
authenticationService.loadWSDL("http://localhost:8080/alfresco/wsdl/authentication-service.wsdl";);
authenticationService.startSession("parameter"); // startSession being
the name of the operation.
...

Now, the parameter is a complextype:

 

   
  
  
   

 

How do I represent this type in ActionScript? As an object? I hope
this makes sense?! Thank you in advance for any help!
Keith



Re: [flexcoders] Question on calling multiple Functions in sequence

2008-04-02 Thread Nayan Savla
by scaling if you mean tweening and animations being executed inside a  
function, then the answer is no the flash player doesn't wait for the  
animation to finish.


lets say if you have inside myFunction1 an animation which is supposed  
to scale a movie and it runs for 1 second.


the flash player will begin the animation and then run myFunction2  
immediately and not wait for 1 second so that the animation is finished,


if you want your myFunction2 to run after the animation is finished,  
you have to listen for relevant events, there is no other way out.


Nayan

On Apr 2, 2008, at 7:27 PM, Mike Anderson wrote:



Thank you Tracy and Eric - this DOES help me a lot -

But I need to ask, what facilities are built into the FlashPlayer,  
that guarantees that Function2 doesn't run until Function1 not only  
executes, but actually FINISHES?


Doing computations is one thing, but when you are doing scaling  
functions, or anything else that really doesn't provide any feedback  
one way or another when it's actually finished (scaling an object in  
this case), how can the containing function really KNOW?


I know these may be novice questions, but these types of issues have  
been nagging me for a long time.  The more I can understand what's  
really going on under the hood, the more effective of a programmer I  
can be.


Thank you again for all your comments - please keep them coming :)

Mike

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Eric Cancil

Sent: Wednesday, April 02, 2008 6:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Question on calling multiple Functions in  
sequence


When dealing with things inside the flash player - you need to deal  
with it as if it was single threaded - because generally, it is.  In  
your example, the functions would be called in order, one after  
another...not all at the same time as you may think so lets say you  
had an example like this


var myNumber:Number = 0;

private function doThisFunction():void{
  myFunction1();
  myFunction2();
  myFunction3();
}

if function 1 added 10 to myNumber, function 2 multiplied it by 5,  
and function 3 subtracted 12 - it would happen in that order exactly  
- and you can count on that - so your final result would be 38


hope this helps
eric


On Wed, Apr 2, 2008 at 7:54 PM, Mike Anderson <[EMAIL PROTECTED]>  
wrote:

Hello All,

I was wondering how things work, when calling multiple functions in
sequence. For example, in this function:

private function doThisFunction():void
{
myFunctionOne();
myFunctionTwo();
myFunctionThree();
}

When I execute "doThisFunction", does it literally run the 3 functions
"one-two-three", or does it execute the first function, waits for it  
to

finish, then runs the second function, waits for it to finish, then
finally runs the third function. How could "doThisFunction" possibly
know when "myFunctionOne" even finishes?

My end goal, is to create a way for a function (containing more
functions within) to stop and wait for each function to "run &
complete", before executing the next one. I know Events are used quite
often when things must happen in a sequence, but when it comes to  
things

like "Scaling or Sizing a Component", how could I possibly know when
something like that finishes?

Thanks in advance for any advice you can all throw my way :)

Mike








RE: [flexcoders] Question on calling multiple Functions in sequence

2008-04-02 Thread Tracy Spratt
Unless you are doing something that is explicitly asynchronous, the
single threaded nature of AS processing is reliable.  The main function
does not "know" in any sense, but the execution path is linear.
Processing simply does not return to the main function until the called
function(s) is/are complete.

 

This does not necessarily mean that the UI is done rendering.  That
stuff is controlled bu the invalidation system.  But code processing is
linear.

 

If your wife sends you shopping, she has no idea whether you went to the
bar while you were gone, but, assuming you have no bugs (or delegate the
shopping to someone else), when you return, the shopping is done.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Wednesday, April 02, 2008 10:28 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Question on calling multiple Functions in
sequence

 

Thank you Tracy and Eric - this DOES help me a lot -

 

But I need to ask, what facilities are built into the FlashPlayer, that
guarantees that Function2 doesn't run until Function1 not only executes,
but actually FINISHES?

 

Doing computations is one thing, but when you are doing scaling
functions, or anything else that really doesn't provide any feedback one
way or another when it's actually finished (scaling an object in this
case), how can the containing function really KNOW?

 

I know these may be novice questions, but these types of issues have
been nagging me for a long time.  The more I can understand what's
really going on under the hood, the more effective of a programmer I can
be.

 

Thank you again for all your comments - please keep them coming :)

 

Mike

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cancil
Sent: Wednesday, April 02, 2008 6:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Question on calling multiple Functions in
sequence

When dealing with things inside the flash player - you need to deal with
it as if it was single threaded - because generally, it is.  In your
example, the functions would be called in order, one after another...not
all at the same time as you may think so lets say you had an example
like this

var myNumber:Number = 0;

private function doThisFunction():void{
  myFunction1();
  myFunction2();
  myFunction3();
}

if function 1 added 10 to myNumber, function 2 multiplied it by 5, and
function 3 subtracted 12 - it would happen in that order exactly - and
you can count on that - so your final result would be 38

hope this helps
eric



On Wed, Apr 2, 2008 at 7:54 PM, Mike Anderson <[EMAIL PROTECTED]
 > wrote:

Hello All,

I was wondering how things work, when calling multiple functions in
sequence. For example, in this function:

private function doThisFunction():void
{
myFunctionOne();
myFunctionTwo();
myFunctionThree();
}

When I execute "doThisFunction", does it literally run the 3 functions
"one-two-three", or does it execute the first function, waits for it to
finish, then runs the second function, waits for it to finish, then
finally runs the third function. How could "doThisFunction" possibly
know when "myFunctionOne" even finishes?

My end goal, is to create a way for a function (containing more
functions within) to stop and wait for each function to "run &
complete", before executing the next one. I know Events are used quite
often when things must happen in a sequence, but when it comes to things
like "Scaling or Sizing a Component", how could I possibly know when
something like that finishes?

Thanks in advance for any advice you can all throw my way :)

Mike





 



RE: [flexcoders] Question on calling multiple Functions in sequence

2008-04-02 Thread Mike Anderson
Thank you Tracy and Eric - this DOES help me a lot -
 
But I need to ask, what facilities are built into the FlashPlayer, that
guarantees that Function2 doesn't run until Function1 not only executes,
but actually FINISHES?
 
Doing computations is one thing, but when you are doing scaling
functions, or anything else that really doesn't provide any feedback one
way or another when it's actually finished (scaling an object in this
case), how can the containing function really KNOW?
 
I know these may be novice questions, but these types of issues have
been nagging me for a long time.  The more I can understand what's
really going on under the hood, the more effective of a programmer I can
be.
 
Thank you again for all your comments - please keep them coming :)
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cancil
Sent: Wednesday, April 02, 2008 6:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Question on calling multiple Functions in
sequence


When dealing with things inside the flash player - you need to deal with
it as if it was single threaded - because generally, it is.  In your
example, the functions would be called in order, one after another...not
all at the same time as you may think so lets say you had an example
like this

var myNumber:Number = 0;

private function doThisFunction():void{
  myFunction1();
  myFunction2();
  myFunction3();
}

if function 1 added 10 to myNumber, function 2 multiplied it by 5, and
function 3 subtracted 12 - it would happen in that order exactly - and
you can count on that - so your final result would be 38

hope this helps
eric



On Wed, Apr 2, 2008 at 7:54 PM, Mike Anderson <[EMAIL PROTECTED]> wrote:


Hello All,

I was wondering how things work, when calling multiple functions
in
sequence. For example, in this function:

private function doThisFunction():void
{
myFunctionOne();
myFunctionTwo();
myFunctionThree();
}

When I execute "doThisFunction", does it literally run the 3
functions
"one-two-three", or does it execute the first function, waits
for it to
finish, then runs the second function, waits for it to finish,
then
finally runs the third function. How could "doThisFunction"
possibly
know when "myFunctionOne" even finishes?

My end goal, is to create a way for a function (containing more
functions within) to stop and wait for each function to "run &
complete", before executing the next one. I know Events are used
quite
often when things must happen in a sequence, but when it comes
to things
like "Scaling or Sizing a Component", how could I possibly know
when
something like that finishes?

Thanks in advance for any advice you can all throw my way :)

Mike





 


[flexcoders] fading out a Box on removal?

2008-04-02 Thread Anthony Ettinger
Is there an easy way to fade out a Box from ActionScript? Ie: when an
error message appears, I just want it to show for 2.5 seconds, then
fade out and removed.



-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name


Re: [flexcoders] Partial result from HTTPService call

2008-04-02 Thread Dave Cragg
Isn't using URLLoader a better way to download binary data such as  
jpeg files? It has a dataFormat property that can be set to binary,  
which delivers the data as a byteArray.


My understanding of httpService is that it will try to parse the  
result depending on the setting of the resultFormat property. There is  
no binary option for this.


I don't know if that's the cause of your problem, but it may be worth  
trying.


Dave

On 2 Apr 2008, at 18:04, p_repetti wrote:



Hello

I'm retrieving a JPEG from the server side to display it in an  
mx:Image. The
image raw bytes are served by a plain Java Servlet. The content type  
is
correct. If I call the servlet from a common browser it all works  
fine. The

image is 400KB big.

PROBLEM: when I call the servlet from Flex 3, it looks like the  
lastResult

contains only the first bytes of the image, not all.


[flexcoders] Calendar View Control / Samples

2008-04-02 Thread Tom Armstrong
All,

Thanks for the replies on Clendar / Schedule controls. I've looked at them and 
so far they are overkill for what I'm trying to do. I'm basically prototyping a 
simple scheduling app that needs to display a monthly view of zero-to-four 
"items" in each day. This is basically my first flex app and I come from the 
Windows / ActiveX / C++ world. The use needs to be able to click on a "day" and 
enter or delete one or more of the items. A 5x7 grid of TextAreas may work or 
even just Button controls would be easy. Any ideas or samples of what I'm doing 
here? Just a basic screen with a 5x7 grid representing a month with the ability 
to click and add/delete items in each cell/grid for the month.

Thanks a bunch,

Tom

Re: [flexcoders] best way to update a display object's VO's x and y props?

2008-04-02 Thread Douglas McCarroll
Hi Rich,

I don't think that I have a great answer for you on this but I have a few
questions/thoughts.

It sounds as though you want the PageItem's position to initially be set
from the VO's x/y, then you want the VO's x/y to reflect the PageItem's x/y
as it is dragged.

Why don't you *not* have the x/y in the VO bindable? Instead, just have them
bound to the PageItem's x/y.

There are at least two possible objections to this:

a) "How will the PageItem's x/y initially get set to the VO's x/y?" Well,
you'd have to figure out some other mechanism.

b) "But part of the definition of a VO is that all properties are bindable!"
Well, rules are made to be broken.  :)

But I'm not sure that this is a good idea. Bi-directional binding doesn't
sound bad to me. You say it's inefficient, but is it impacting performance?
If not, I wouldn't worry about it.

Douglas

On undefined, Rich Rodecker <[EMAIL PROTECTED]> wrote:

>   Hello,
> I'm building a page layout-type app using cairngorm. I have an
> arraycollection of value objects in the model that stores the data for each
> item on the page.  Every item on the page is a custom component (a PageItem)
> that is bound to one of the VOs as a dataprovider.  The VO contains the
> entire state of the PageItem, x,y,rotation, content, etc).
>
> each PageItem is draggable.  When I drag the PageItem to a new position, i
> need to have the VO updated as well.  Currently I am just updating the vo
> from within the component when the mouse is released, but since it's bound,
> that triggers the property change event on the VO, which doesn't really do
> anything but is pretty inefficient.
>
> I feel like there's gotta be some way to just proxy the PageItem's values
> like x and y to the VO directly and I'm just missing it.
>
> In the past I have used Momentos to save and restore state, but I'm trying
> to achieve a greater separation of the view and the model, so that when I go
> to save the data, I just grab the collection of VO's from the model and save
> that, rather than query the view for it's state.
>
> Anyone have any pointers?
>
>
>
> 
>


[flexcoders] Add text field to CursorManager "busy cursor"

2008-04-02 Thread dnk
I was wondering if anyone knows if there is a way to add a text field  
that would stick with the "busy cursor". I would like to add a brief  
text description as to what is happeneing when i call that  
ShowBustCursor().

Thanks!

DNK


RE: [flexcoders] How-to use Runtime CSS with a compiled theme swc

2008-04-02 Thread Alex Harui
Not AFAIK.  You don't have the source for the theme swcs?  Are you going
to need to unload the theme swc later or just choose the one you want at
startup time?  I'd look at the generated code for a runtime css module
to see what it does.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, April 02, 2008 5:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How-to use Runtime CSS with a compiled theme swc

 

Are there any instruction on how to load css from a theme swc at
runtime?

 



RE: [flexcoders] framework rsl

2008-04-02 Thread Alex Harui
AFAIK, we don't have those stats

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of arieljake
Sent: Wednesday, April 02, 2008 5:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] framework rsl

 

any chance the flash player helps adobe keep statistics on how many
players out there have cached the flex framework?

 



RE: [flexcoders] PrintJob Class driving me crazy!! - Please Help

2008-04-02 Thread Alex Harui
validateNow() is used to hammer pages into their final state.  Hopefully
they'll fix the PrintJob bug in Player 10.x so you can do more work
after PrintJob.start.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Wednesday, April 02, 2008 6:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PrintJob Class driving me crazy!! - Please Help

 

Hello All,

I have 4-5 Move/Scale functions that must place, the moment the
PrintJob.start() command is given. The problem is, these functions are
still modifying the Objects to be printed (scaling and moving), while
the PrintJob is sending everything to the printer.

I tried every which way, to modify all these Objects residing on the
page being printed, before calling start(), but all my functions rely on
information not available until the PrintJob.start() method gets called
(like Page Size and Margin Size).

I feed the Page Size into a function that properly scales the page (and
specific Objects which reside on that page) being added to the PrintJob.
If I use too many "callLater" functions once the PrintJob.start() method
gets called (in hopes of the delay giving the scaling functions a chance
to finish), it errors out since the page never gets spooled.

How is everybody else dealing with this issue of being forced to call
"start()" in order to gain access to the Page Size information, and hope
that their functions all finish in time, by the time the page gets
spooled to the printer?

Thanks in advance for all your help on this,

Mike

 



RE: [flexcoders] Item renderer behavior change in Flex3 ??

2008-04-02 Thread Alex Harui
Aw, c'mon, we all get one wrong every once in a while.  If it weren't
for you, FlexCoders would get backlogged or I'd never get anything done.
And you were quite correct that relying on creationComplete is generally
bad practice for itemRenderers.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 02, 2008 5:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Item renderer behavior change in Flex3 ??

 

Ah, sorry all, I have not used TileList much at all and based my
comments on my experience with List and DataGrid, so perhaps I should
have kept my mouth shut and left itemRenderer questions to you, Alex.  I
know Robert is an advanced Flex developer and should have, again, kept
my mouth shut.

 

Tracy 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Wednesday, April 02, 2008 5:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Item renderer behavior change in Flex3 ??

 

Uh, well, he was sort of right.  TileList did not recycle nearly as
often as other lists in Flex 2 and now it does.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 02, 2008 10:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Item renderer behavior change in Flex3 ??

 

"...Flex2, the "creationComplete" handler was always executed in
renderer when the TileList data provider..." No, it wasn't.  You were
getting lucky some other way.  itemRenderer behavior has not changed
significantly between 2 and 3.

 

All updates to a renderer must be triggered by the set data() override
and, ideally the invalidation system.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Csiki
Sent: Wednesday, April 02, 2008 1:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Item renderer behavior change in Flex3 ??

 

Hello

Code that used to work with Flex2 does not work right with Flex3. I have
a TileList with a custom item renderer. The renderer has view states, it
also has handler for "creationComplete".

With Flex2, the "creationComplete" handler was always executed in
renderer when the TileList data provider changes. In Flex3, it is
executed just once ant that's it (i.e. when the data provider changes
the list gets refreshed but my handler does not get executed). Does
Flex3 use some sort of pooling for renderer instances?

Also as I said, my renderer has view states. Handlers for enterState,
exitState etc are only executed once, for the initial data provider.

I see all this as beeing a grave backwards compatibility issue.

Comments?

Thanks, Robert

 



[flexcoders] How-to use Runtime CSS with a compiled theme swc

2008-04-02 Thread Bjorn Schultheiss
Are there any instruction on how to load css from a theme swc at runtime?



Re: [flexcoders] Question on calling multiple Functions in sequence

2008-04-02 Thread Eric Cancil
When dealing with things inside the flash player - you need to deal with it
as if it was single threaded - because generally, it is.  In your example,
the functions would be called in order, one after another...not all at the
same time as you may think so lets say you had an example like this

var myNumber:Number = 0;

private function doThisFunction():void{
  myFunction1();
  myFunction2();
  myFunction3();
}

if function 1 added 10 to myNumber, function 2 multiplied it by 5, and
function 3 subtracted 12 - it would happen in that order exactly - and you
can count on that - so your final result would be 38

hope this helps
eric


On Wed, Apr 2, 2008 at 7:54 PM, Mike Anderson <[EMAIL PROTECTED]> wrote:

>   Hello All,
>
> I was wondering how things work, when calling multiple functions in
> sequence. For example, in this function:
>
> private function doThisFunction():void
> {
> myFunctionOne();
> myFunctionTwo();
> myFunctionThree();
> }
>
> When I execute "doThisFunction", does it literally run the 3 functions
> "one-two-three", or does it execute the first function, waits for it to
> finish, then runs the second function, waits for it to finish, then
> finally runs the third function. How could "doThisFunction" possibly
> know when "myFunctionOne" even finishes?
>
> My end goal, is to create a way for a function (containing more
> functions within) to stop and wait for each function to "run &
> complete", before executing the next one. I know Events are used quite
> often when things must happen in a sequence, but when it comes to things
> like "Scaling or Sizing a Component", how could I possibly know when
> something like that finishes?
>
> Thanks in advance for any advice you can all throw my way :)
>
> Mike
>  
>


RE: [flexcoders] RSL vs External SWC

2008-04-02 Thread Alex Harui
No.  An RSL is used to inject code into an application domain, usually
the main apps AppDom.  If both appA and appB share a bunch of classes,
those classes go into an RSL shrinking the SWF size for appA and appB.
If appA loads first, it does an additional server fetch to get the RSL
which takes extra time, but when app B loads, the RSL is hopefully still
in the browser cache, saving the appB from downloading those same bytes.

 

If appA loads moduleC, moduleC normally loads into a child appDom so it
can be unloaded.  moduleC is generally built with -load-externs for any
classes it can expect from the parent, and that set will be the same
whether appA loads some of its classes from an RSL or not.  moduleC
should not try to load an RSL at all since those classes are already in
appA's appDom at the time moduleC gets loaded.

 

If moduleD and moduleC share classes, those should not go into an RSL
either since they would be loaded into sibling appDoms effectively
loading the code twice.  That's where the shared code module technique
comes in (see my blog).

 

The principle is to load a class once, and only when needed, and cache
things when you can.  Once you understand your appdom topologies, you
can start to see where to use RSLs and where to use shared code modules,
which are effectively late-loaded RSLs.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, April 02, 2008 4:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RSL vs External SWC

 

Hey,

It's suggested to only use RSL's where multiple applications will use
the same RSL.

Does an application with modules qualify for RSL's?

With module applications are RSL's preferred or library SWC's with
external links?

 



[flexcoders] framework rsl

2008-04-02 Thread arieljake
any chance the flash player helps adobe keep statistics on how many
players out there have cached the flex framework?



RE: [flexcoders] convert MouseEvent into a DragEvent?

2008-04-02 Thread Alex Harui
By dispatching from that sprite.  Set localX/Y as it should be for that
sprite and then dispatch it from that sprite and the stageX/Y should be
what you wanted

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ivo
Sent: Wednesday, April 02, 2008 4:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] convert MouseEvent into a DragEvent?

 

Seems I am unable to set the StageX/Y on a new DragEvent. According to
the docs these values are generated from localX/Y but testing it shows
the values for StageX/Y always remain 0. Is it because the localX/Y are
"relative to the containing sprite"? How do I associate a new DragEvent
with an arbitrary sprite?

- Ivo

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 1, 2008 9:16:58 PM
Subject: RE: [flexcoders] convert MouseEvent into a DragEvent?

You should be able to use the stageX/Y and globalToLocal

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of ivo
Sent: Tuesday, April 01, 2008 4:43 PM
To: FlexCoders
Subject: [flexcoders] convert MouseEvent into a DragEvent?

 

I am trying to update the feedback for my List controls with a custom
dropIndicatorSkin .
My drag and drop handlers tho are written to accept MouseEvent so they
can be used either for NativeDragEvent or DragEvent .
Unfortunately tho the ListBase calls to showDropFeedback/
hideDropFeedback only take a DragEvent. This means my custom
dropIndicator skin can only be used on web projects, not on my Air
projects. Any suggestions on how I can get around this?

The main issue is getting the event coordinates on a new DragEvent based
on the MouseEvent correct so that the dropSkinIndicator highlights the
appropiate row.

Thanks,

- Ivo

 

 



RE: [flexcoders] Question on calling multiple Functions in sequence

2008-04-02 Thread Tracy Spratt
I just got busted for being wrong on a different question, but here goes
anyway:

 

The Flash Player, from the viewpoint of AS code is essentially single
threaded.  So, in the example you posted, the execution runs
sequentially througe each function.  myFunctionTwo() will not run until
myFunctionOne() completes

 

Things that can change this are calls to external data, which are always
asynchronous, a callLater(), perhaps some other cases as well.

 

But normally, you can depend on linear execution of your code paths.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Wednesday, April 02, 2008 7:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on calling multiple Functions in sequence

 

Hello All,

I was wondering how things work, when calling multiple functions in
sequence. For example, in this function:

private function doThisFunction():void
{
myFunctionOne();
myFunctionTwo();
myFunctionThree();
}

When I execute "doThisFunction", does it literally run the 3 functions
"one-two-three", or does it execute the first function, waits for it to
finish, then runs the second function, waits for it to finish, then
finally runs the third function. How could "doThisFunction" possibly
know when "myFunctionOne" even finishes?

My end goal, is to create a way for a function (containing more
functions within) to stop and wait for each function to "run &
complete", before executing the next one. I know Events are used quite
often when things must happen in a sequence, but when it comes to things
like "Scaling or Sizing a Component", how could I possibly know when
something like that finishes?

Thanks in advance for any advice you can all throw my way :)

Mike

 



[flexcoders] PrintJob Class driving me crazy!! - Please Help

2008-04-02 Thread Mike Anderson
Hello All,

I have 4-5 Move/Scale functions that must place, the moment the
PrintJob.start() command is given.  The problem is, these functions are
still modifying the Objects to be printed (scaling and moving), while
the PrintJob is sending everything to the printer.

I tried every which way, to modify all these Objects residing on the
page being printed, before calling start(), but all my functions rely on
information not available until the PrintJob.start() method gets called
(like Page Size and Margin Size).

I feed the Page Size into a function that properly scales the page (and
specific Objects which reside on that page) being added to the PrintJob.
If I use too many "callLater" functions once the PrintJob.start() method
gets called (in hopes of the delay giving the scaling functions a chance
to finish), it errors out since the page never gets spooled.

How is everybody else dealing with this issue of being forced to call
"start()" in order to gain access to the Page Size information, and hope
that their functions all finish in time, by the time the page gets
spooled to the printer?

Thanks in advance for all your help on this,

Mike


RE: [flexcoders] Item renderer behavior change in Flex3 ??

2008-04-02 Thread Tracy Spratt
Ah, sorry all, I have not used TileList much at all and based my
comments on my experience with List and DataGrid, so perhaps I should
have kept my mouth shut and left itemRenderer questions to you, Alex.  I
know Robert is an advanced Flex developer and should have, again, kept
my mouth shut.

 

Tracy 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Wednesday, April 02, 2008 5:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Item renderer behavior change in Flex3 ??

 

Uh, well, he was sort of right.  TileList did not recycle nearly as
often as other lists in Flex 2 and now it does.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 02, 2008 10:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Item renderer behavior change in Flex3 ??

 

"...Flex2, the "creationComplete" handler was always executed in
renderer when the TileList data provider..." No, it wasn't.  You were
getting lucky some other way.  itemRenderer behavior has not changed
significantly between 2 and 3.

 

All updates to a renderer must be triggered by the set data() override
and, ideally the invalidation system.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Csiki
Sent: Wednesday, April 02, 2008 1:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Item renderer behavior change in Flex3 ??

 

Hello

Code that used to work with Flex2 does not work right with Flex3. I have
a TileList with a custom item renderer. The renderer has view states, it
also has handler for "creationComplete".

With Flex2, the "creationComplete" handler was always executed in
renderer when the TileList data provider changes. In Flex3, it is
executed just once ant that's it (i.e. when the data provider changes
the list gets refreshed but my handler does not get executed). Does
Flex3 use some sort of pooling for renderer instances?

Also as I said, my renderer has view states. Handlers for enterState,
exitState etc are only executed once, for the initial data provider.

I see all this as beeing a grave backwards compatibility issue.

Comments?

Thanks, Robert

 



[flexcoders] RSL vs External SWC

2008-04-02 Thread Bjorn Schultheiss
Hey,

It's suggested to only use RSL's where multiple applications will use
the same RSL.

Does an application with modules qualify for RSL's?

With module applications are RSL's preferred or library SWC's with
external links?





[flexcoders] Library Path and -include-libraries

2008-04-02 Thread Bjorn Schultheiss
Is the compiler option -include-libraries the same as specifying a swc
in the projects library path in the IDE?

Also, when you include a library in another library is its entire
contents merged?



[flexcoders] Close an application window

2008-04-02 Thread Remya
I have a login/cancel button in the first page of my application. The
login button should of course, lead to successful/unsuccessful login,
but the Cancel button is intended to close the application window.

I could not find out any code to perform this function of close an
application (browser window), on the click of a button.

Please help me.

Thanks
Remya



Re: [flexcoders] convert MouseEvent into a DragEvent?

2008-04-02 Thread ivo
Seems I am unable to set the StageX/Y on a new DragEvent. According to the docs 
these values are generated from localX/Y but testing it shows the values for 
StageX/Y always remain 0. Is it because the localX/Y are "relative to the 
containing sprite"? How do I associate a new DragEvent with an arbitrary sprite?

- Ivo

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 1, 2008 9:16:58 PM
Subject: RE: [flexcoders] convert MouseEvent into a DragEvent?








You should be able to use the stageX/Y and
globalToLocal
   
 
From: [EMAIL PROTECTED] ups.com[mailto:flexcoders@ yahoogroups. com] On Behalf
Of ivo
Sent: Tuesday, April 01, 2008 4:43PM
To: FlexCoders
Subject: [flexcoders] convertMouseEvent into a DragEvent?
 
  
 I am trying to update the feedback for my Listcontrols with a custom 
dropIndicatorSkin .
My drag and drop handlers tho are written to accept MouseEvent so they can 
beused either for NativeDragEvent or DragEvent .
Unfortunately tho the ListBase calls to showDropFeedback/ hideDropFeedbackonly 
take a DragEvent. This means my custom dropIndicator skin can only be usedon 
web projects, not on my Air projects. Any suggestions on how I can getaround 
this?

The main issue is getting the event coordinates on a new DragEvent based on 
theMouseEvent correct so that the dropSkinIndicator highlights the appropiate 
row.

Thanks,

- Ivo
 
















RE: [flexcoders] Embedded fonts + modules = weirdness

2008-04-02 Thread Alex Harui
The button will essentially call getStyle("fontWeight") and pull the value from 
the Button type selector if fontWeight is not set elsewhere

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben 
Clinkinbeard
Sent: Wednesday, April 02, 2008 3:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedded fonts + modules = weirdness

Shouldn't it use whatever font I tell it to?

And why would it work on one instance of the same button and not another? It is 
definitely related to being on a non-deferred tab because it only happens on 
the first tab, no matter how many there are. 

Thanks,
Ben




Sent via BlackBerry by AT&T

-Original Message-
From: "Alex Harui" <[EMAIL PROTECTED]>

Date: Wed, 2 Apr 2008 14:52:26 
To:
Subject: RE: [flexcoders] Embedded fonts + modules = weirdness


I'm not sure how modules got involved. 
  
Most buttons use bold fonts for their labels and I don't see that fontWeight 
specified in this snippet 
  
  
 
 

 
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
ben.clinkinbeard
 Sent: Wednesday, April 02, 2008 2:21 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Embedded fonts + modules = weirdness 
  
 
 
 
CSS file in main app:
 
 @font-face
 {
 src: url("assets/fonts/Gotham-Medium.otf");
 fontFamily: "GothamMedium";
 }
 Button.BlueButtonOutline
 {
 skin: Embed(skinClass="Button_BlueButtonOutline_skin");
 fontFamily: "GothamMedium";
 font-size: 14;
 color: #FF;
 text-roll-over-color: #FF;
 text-selected-color: #FF;
 }
 
 I then have a component in a module that has a child button with
 styleName="BlueButtonOutline", simple enough. That component is then a
 child of a 2 TabNavigator children. The button that is a descendant of
 the first tab has a mystery font to begin with, and then the text
 disappears completely on rollover. The button that is a descendant of
 the second tab works perfectly.
 
 What gives?
 
 Thanks,
 Ben 




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





[flexcoders] Question on calling multiple Functions in sequence

2008-04-02 Thread Mike Anderson
Hello All,

I was wondering how things work, when calling multiple functions in
sequence.  For example, in this function:

private function doThisFunction():void
{
 myFunctionOne();
 myFunctionTwo();
 myFunctionThree();
}

When I execute "doThisFunction", does it literally run the 3 functions
"one-two-three", or does it execute the first function, waits for it to
finish, then runs the second function, waits for it to finish, then
finally runs the third function.  How could "doThisFunction" possibly
know when "myFunctionOne" even finishes?

My end goal, is to create a way for a function (containing more
functions within) to stop and wait for each function to "run &
complete", before executing the next one.  I know Events are used quite
often when things must happen in a sequence, but when it comes to things
like "Scaling or Sizing a Component", how could I possibly know when
something like that finishes?

Thanks in advance for any advice you can all throw my way :)

Mike


[flexcoders] Re: TabContainer - how to get a reference to the module that is loaded inside a tab

2008-04-02 Thread guitarguy555
The selectedChild property returns a Container.  I am trying to get a 
reference to the actual Module object that is currently loaded and 
contained in that tab.

The reason I need the actual module object is that I am using it as a 
key in a Dictionary.  I will need to access this Dictionary from the 
main Application.  Therefore, I somehow need to get a reference to 
the module loaded in memory.  Calling selectedChild just gives me the 
Container, not the object.





--- In flexcoders@yahoogroups.com, "Bob Wohl" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> the tab navigator is tied to a viewStack, so can't you use the
> veiwstackID.selectedChild?
> 
> 
> hth
> B.
> 
> 
> 
> On undefined, guitarguy555 <[EMAIL PROTECTED]> wrote:
> 
> >   I have a TabContainer and each tab contains a different module. 
When a
> > tab button is clicked, the module loader from the main application
> > loads the appropriate module.
> >
> > At times though, when on a selected tab, I may need to load in a 
new
> > module for different functionality.
> >
> > From the TabNavigator object, is there a property to get a 
reference to
> > the currently loaded module for a currently selected tab?
> >
> >  
> >
>




Re: [flexcoders] Embedded fonts + modules = weirdness

2008-04-02 Thread Ben Clinkinbeard
Shouldn't it use whatever font I tell it to?

And why would it work on one instance of the same button and not another? It is 
definitely related to being on a non-deferred tab because it only happens on 
the first tab, no matter how many there are. 

Thanks,
Ben




Sent via BlackBerry by AT&T

-Original Message-
From: "Alex Harui" <[EMAIL PROTECTED]>

Date: Wed, 2 Apr 2008 14:52:26 
To:
Subject: RE: [flexcoders] Embedded fonts + modules = weirdness


I’m not sure how modules got involved. 
  
Most buttons use bold fonts for their labels and I don’t see that fontWeight 
specified in this snippet 
  
  
 
 

 
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
ben.clinkinbeard
 Sent: Wednesday, April 02, 2008 2:21 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Embedded fonts + modules = weirdness 
  
 
 
 
CSS file in main app:
 
 @font-face
 {
 src: url("assets/fonts/Gotham-Medium.otf");
 fontFamily: "GothamMedium";
 }
 Button.BlueButtonOutline
 {
 skin: Embed(skinClass="Button_BlueButtonOutline_skin");
 fontFamily: "GothamMedium";
 font-size: 14;
 color: #FF;
 text-roll-over-color: #FF;
 text-selected-color: #FF;
 }
 
 I then have a component in a module that has a child button with
 styleName="BlueButtonOutline", simple enough. That component is then a
 child of a 2 TabNavigator children. The button that is a descendant of
 the first tab has a mystery font to begin with, and then the text
 disappears completely on rollover. The button that is a descendant of
 the second tab works perfectly.
 
 What gives?
 
 Thanks,
 Ben 




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

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

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

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



Re: RES: [flexcoders] TabContainer with modules - how to cancel Tab change

2008-04-02 Thread Scott Melby
Cool!  In my case I was looking for an extensible framework that would 
allow any of my views that get plugged into a tab to contain the logic 
that determines whether they can currently be tabbed away from or not.  
If you don't need anything quite so elaborate, it looks like the 
solution you are using will do the job.


Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com
http://blog.fastlanesw.com



guitarguy555 wrote:

Thanks for that suggestion.

I was able to cancel the TabNavigator change by doing the following:

In my main app (where the TabNavigator is contained) in the 
creationComplete event, I add a listener:


myTabNavigator.addEventListener
(MouseEvent.CLICK,handleTabNavigatorClick,true);


Then within that click event I call:

event.stopImmediatePropagation();
event.stopPropagation();
event.preventDefault();




--- In flexcoders@yahoogroups.com, Scott Melby <[EMAIL PROTECTED]> wrote:
  
When I did this (for validation purposes) I had to extend the 
TabNavigator and override the selectedIndex setter method.  I then 
provided an inteface (ITabChild) that my views could implement.  

When 
  
the setter is called, you can then check if the child is an 

ITabChild 
  
and if so call the methods you define in that interface before 

actually 
  

setting the selected tab.

hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com
http://blog.fastlanesw.com



guitarguy555 wrote:


Thanks for the reply,

That doesn't work though.  If I set up an IndexChangedEvent event 
listener, calling event.preventDefault() doesn't stop the tab 
  
from 
  

changing.



--- In flexcoders@yahoogroups.com, "Luciano Manerich Junior" 
 wrote:
  
  

Hi,
 
you can add an eventListener on the TabNavigator, listening for 

an 
  



IndexChangedEvent and do all your validations...
  
  
 
And if you need to cancel the current change, you could try an 



evt.preventDefault();
  
  
 
private function changeIndex(evt:IndexChangedEvent):void

{
evt.preventDefault(); // cancel the changing
}
 




De: flexcoders@yahoogroups.com 

[mailto:[EMAIL PROTECTED] 
  



Em nome de guitarguy555
  
  

Enviada em: terça-feira, 1 de abril de 2008 16:16
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] TabContainer with modules - how to cancel 

Tab 
  



change
  
  
I have a Flex Application that has a TabNavigator. Each tab 


contains a 
  
  
moduleLoader that loads a corresponding Module. 

On some of these modules, I have a basic Form with Validators 


connected 
  
  
to it. I want to be able to make sure that the form values are 


valid 
  
  
before the user navigates away from the currently selected tab 

by 
  
clicking a new tab. 

In other words, I want the Validator to fire when the user 

clicks 
  


on a 
  
  
new tab and if there are any invalid values I want to prompt the 


user 
  
  
to fix them and stop the event propogation so the TabNavigator 


stays on 
  
  

the current tab.

How can I cancel the TabNavigator change?






  




  


RE: [flexcoders] hasEventListener() on null object causes silent failure and exit from block

2008-04-02 Thread Alex Harui
Yeah, binding can interfere with debugging.  I'm sure you already know
this, but for newbies reading this thread...

 

An exception throws an error which leaves the method immediately and
goes up the stack frame until caught, or until it gets to the top where
the debugger player will show an exceptions dialog and the release
player will simply not execute any more code and let the renderer take a
pass at drawing the display list.  The idea behind throwing errors is to
not have to build in code to gracefully work your way up the call stack
when something bad happens.  That kind of coding is tricky and requires
that virtually every method return a value.

 

The recommended pattern, which is required in most strongly-typed
languages is

 

if (someObj && someObj.someFoo)

 

Try/catch blocks are more expensive than an additional null check per if
statement.  Bracketing entire methods in try/catch is not recommended.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Clinkinbeard
Sent: Wednesday, April 02, 2008 9:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] hasEventListener() on null object causes
silent failure and exit from block

 

Ah, yes, binding was involved. I still don't understand why the whole
block exits though. Err, I guess I understand, but I don't like it. :) I
have always wished the null checks worked a bit differently. Like it
would be handy if we could say if( someObj.hasFoo ) and it would just
evaluate to false if someObj was null. Oh well, a boy can dream...

Thanks Alex.

Ben



On Wed, Apr 2, 2008 at 12:53 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

I get the RTE when I call greatFun().  Are you sure that wasn't part of
a binding expression evaluation?  Those have catch blocks.

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of ben.clinkinbeard
Sent: Wednesday, April 02, 2008 7:25 AM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] hasEventListener() on null object causes silent
failure and exit from block

 

This seems like a bug to me. In the following code if dp is null, the
trace will not be executed.

function greatFun():void
{
if( dp.hasEventListener( "foo" ) )
{
// do stuff
}
trace( "WTF" );
}

It should either throw a RTE or just evaluate to false, shouldn't it?

Thanks,
Ben

 

 



Re: [flexcoders] TabContainer - how to get a reference to the module that is loaded inside a tab

2008-04-02 Thread Bob Wohl


the tab navigator is tied to a viewStack, so can't you use the
veiwstackID.selectedChild?


hth
B.



On undefined, guitarguy555 <[EMAIL PROTECTED]> wrote:

>   I have a TabContainer and each tab contains a different module. When a
> tab button is clicked, the module loader from the main application
> loads the appropriate module.
>
> At times though, when on a selected tab, I may need to load in a new
> module for different functionality.
>
> From the TabNavigator object, is there a property to get a reference to
> the currently loaded module for a currently selected tab?
>
>  
>


RE: [flexcoders] Re: TabContainer with modules - how to cancel Tab change

2008-04-02 Thread Alex Harui
What you're seeing is a bug in ToggleButtonBar.  The mouseDown handler
is unnecessarily dispatching a CLICK (the button will shortly after).
Your handler got called twice in capture phase and not in bubble or
target phase.  File a bug if you have time.

 

Thanks,

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Clinkinbeard
Sent: Wednesday, April 02, 2008 10:03 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: TabContainer with modules - how to cancel
Tab change

 

Yep, this was my whole test app. The clicked tab gets traced out twice.


http://www.adobe.com/2006/mxml
 " layout="vertical"
creationComplete="init()">














On Wed, Apr 2, 2008 at 12:40 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

Hmm.  Capture phase listeners should not get called in bubble phase.
Are you sure you didn't also have a non-capture phase listener assigned
as well?

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Ben Clinkinbeard
Sent: Wednesday, April 02, 2008 6:03 AM
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] Re: TabContainer with modules - how to cancel
Tab change

 

Alex is, of course, correct. Listening for MouseEvent.CLICK on your
TabNav in the capture phase and calling event.stopImmediatePropagation()
in the handler will prevent switching to the new tab. (mouseDown didn't
seem to work) One thing to remember though is that since you're
listening to the capture phase your handler will get called twice for
each click. Once during capture phase and again in the bubble phase.

HTH,
Ben



On Wed, Apr 2, 2008 at 12:14 AM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

I helped an co-worker block List selection by picking off mouseDown in
capture phase and calling stopImmediatePropagation().  You might be able
to do the same for TabNav.  You might have to get the click event
instead and check to see if the target is one of the Tabs.

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of ben.clinkinbeard
Sent: Tuesday, April 01, 2008 8:08 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Re: TabContainer with modules - how to cancel Tab
change

 

Unfortunately, I believe this is the best you can do:

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

HTH,
Ben

--- In flexcoders@yahoogroups.com 
, "guitarguy555" <[EMAIL PROTECTED]> wrote:
>
> I have a Flex Application that has a TabNavigator. Each tab contains a

> moduleLoader that loads a corresponding Module. 
> 
> On some of these modules, I have a basic Form with Validators
connected 
> to it. I want to be able to make sure that the form values are valid 
> before the user navigates away from the currently selected tab by 
> clicking a new tab. 
> 
> In other words, I want the Validator to fire when the user clicks on a

> new tab and if there are any invalid values I want to prompt the user 
> to fix them and stop the event propogation so the TabNavigator stays
on 
> the current tab.
> 
> How can I cancel the TabNavigator change?
>

 

 

 



[flexcoders] Re: Flex & PHP

2008-04-02 Thread caffeinewabbit
Sure thing - glad to help!

Be sure to check out Aaron's reply below as well - his method for
adding the variables to your URLVariables object is better than the
way I posted.

--GC

--- In flexcoders@yahoogroups.com, "David C. Moody" <[EMAIL PROTECTED]> wrote:
>
> The post method worked great.  I guess I was just feeling a little 
> overwhelmed.
> 
> Thanks for the help!
> -David
> 
> --- In flexcoders@yahoogroups.com, "caffeinewabbit" 
>  wrote:
> >
> > You can use the pass token method that you describe, or you could
> > simply change your method from GET to POST:
> > 
> > var variables:URLVariables = new
> > URLVariables("param1=data1¶m2=data2"); // Set your parameters 
> as a
> > urlencoded string here
> > 
> > var request:URLRequest = new
> > URLRequest("http://www.yourdomain.com/yourpage.html";);
> > 
> > request.method = URLRequestMethod.POST;
> > request.data = variables;
> > navigateToURL(request, "_new");
> > 
> > Hope this helps!
> > 
> > --GC
> > 
> > --- In flexcoders@yahoogroups.com, "David C. Moody"  wrote:
> > >
> > > Hi guys,
> > > 
> > > Using Flex 3 & AMFPHP to do my database operations.
> > > 
> > > I have a report that you specify all the options in flex, and 
> > > currently I'm just using a navigateToURL() function to open a web 
> > > browser.
> > > 
> > > I do not like this it is very unsecure as the variables are all 
> > > passed in the URL string.
> > > 
> > > How can I get around this?  I've thought about creating an 
> > > intermediate database that houses all the variables and then have 
> a 
> > > random number generated and only pass that random number so that 
> the 
> > > PHP script can then pull that record from the database and get 
> the 
> > > variables it needs.
> > > 
> > > There's got to be an easier way to do this though?  How can I 
> make 
> > > this where the user can't change the variables and run a 
> different 
> > > report.  Is there a way to share variables between Flex & PHP 
> without 
> > > putting them in the URL?  Cookies maybe?
> > > 
> > > Thanks for any help!
> > > -David
> > >
> >
>




RE: [flexcoders] how to find out the undo-select item in datagrid

2008-04-02 Thread Alex Harui
Keep track of selectedIndices?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coder3
Sent: Wednesday, April 02, 2008 10:07 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to find out the undo-select item in
datagrid

 


i have multiple-select, and i can deselect not just the last one.

Alex Harui wrote:
> 
> You should keep track of the last selectedItem.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of coder3
> Sent: Tuesday, April 01, 2008 6:58 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] how to find out the undo-select item in datagrid
> 
> 
> 
> 
> Hi All,
> 
> in datagrid, if one item is selected, it's easy to find out:
> 
> var item:Object = event.currentTarget.selectedItem;
> 
> but now i de-select it, how to find out the deselected item???
> 
> Help!
> 
> C.
> -- 
> View this message in context:
>
http://www.nabble.com/how-to-find-out-the-undo-select-item-in-datagrid-t
 
> p16434166p16434166.html
>
 
> tp16434166p16434166.html> 
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/how-to-find-out-the-undo-select-item-in-datagrid-t
p16434166p16447451.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Re: TabContainer - how to get a reference to the module that is loaded inside a tab

2008-04-02 Thread guitarguy555
Sorry, I meant "TabNavigator" not TabContainerworking with too many 
[EMAIL PROTECTED]@


--- In flexcoders@yahoogroups.com, "guitarguy555" <[EMAIL PROTECTED]> 
wrote:
>
> I have a TabContainer and each tab contains a different module.  When 
a 
> tab button is clicked, the module loader from the main application 
> loads the appropriate module.  
> 
> At times though, when on a selected tab, I may need to load in a new 
> module for different functionality.
> 
> From the TabNavigator object, is there a property to get a reference 
to 
> the currently loaded module for a currently selected tab?
>




Re: RES: [flexcoders] TabContainer with modules - how to cancel Tab change

2008-04-02 Thread guitarguy555
Thanks for that suggestion.

I was able to cancel the TabNavigator change by doing the following:

In my main app (where the TabNavigator is contained) in the 
creationComplete event, I add a listener:

myTabNavigator.addEventListener
(MouseEvent.CLICK,handleTabNavigatorClick,true);


Then within that click event I call:

event.stopImmediatePropagation();
event.stopPropagation();
event.preventDefault();




--- In flexcoders@yahoogroups.com, Scott Melby <[EMAIL PROTECTED]> wrote:
>
> When I did this (for validation purposes) I had to extend the 
> TabNavigator and override the selectedIndex setter method.  I then 
> provided an inteface (ITabChild) that my views could implement.  
When 
> the setter is called, you can then check if the child is an 
ITabChild 
> and if so call the methods you define in that interface before 
actually 
> setting the selected tab.
> 
> hth
> Scott
> 
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
> http://blog.fastlanesw.com
> 
> 
> 
> guitarguy555 wrote:
> > Thanks for the reply,
> >
> > That doesn't work though.  If I set up an IndexChangedEvent event 
> > listener, calling event.preventDefault() doesn't stop the tab 
from 
> > changing.
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "Luciano Manerich Junior" 
> >  wrote:
> >   
> >> Hi,
> >>  
> >> you can add an eventListener on the TabNavigator, listening for 
an 
> >> 
> > IndexChangedEvent and do all your validations...
> >   
> >>  
> >> And if you need to cancel the current change, you could try an 
> >> 
> > evt.preventDefault();
> >   
> >>  
> >> private function changeIndex(evt:IndexChangedEvent):void
> >> {
> >> evt.preventDefault(); // cancel the changing
> >> }
> >>  
> >>
> >> 
> >>
> >> De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
> >> 
> > Em nome de guitarguy555
> >   
> >> Enviada em: terça-feira, 1 de abril de 2008 16:16
> >> Para: flexcoders@yahoogroups.com
> >> Assunto: [flexcoders] TabContainer with modules - how to cancel 
Tab 
> >> 
> > change
> >   
> >>
> >> I have a Flex Application that has a TabNavigator. Each tab 
> >> 
> > contains a 
> >   
> >> moduleLoader that loads a corresponding Module. 
> >>
> >> On some of these modules, I have a basic Form with Validators 
> >> 
> > connected 
> >   
> >> to it. I want to be able to make sure that the form values are 
> >> 
> > valid 
> >   
> >> before the user navigates away from the currently selected tab 
by 
> >> clicking a new tab. 
> >>
> >> In other words, I want the Validator to fire when the user 
clicks 
> >> 
> > on a 
> >   
> >> new tab and if there are any invalid values I want to prompt the 
> >> 
> > user 
> >   
> >> to fix them and stop the event propogation so the TabNavigator 
> >> 
> > stays on 
> >   
> >> the current tab.
> >>
> >> How can I cancel the TabNavigator change?
> >>
> >> 
> >
> >
> >
> >
>




RE: [flexcoders] Re: Partial result from HTTPService call

2008-04-02 Thread Tracy Spratt
It is in the docs somewhere, but I couldn't find it when I looked now.
Maybe it isn't "exactly" the same.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitri Girski
Sent: Wednesday, April 02, 2008 4:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Partial result from HTTPService call

 

Why not to use lastResult? It is absolutely the same as event.result.
Even better - you can bind to it :)

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> First, don't use lastResult. It is intended for binding
expressions. Use event.result. Change that an see if it helps.
> 
> Tracy
> 

 



Re: [flexcoders] Flex & PHP

2008-04-02 Thread Aaron Miller
You can set

var postVars:URLVariables = new URLVariables();
postVars.someVars = 'foo';

URLRequest.method = 'POST':
URLRequest.data = postVars:

Then navigate to your request.

Best Regards,
~Aaron

On Wed, Apr 2, 2008 at 11:53 AM, David C. Moody <[EMAIL PROTECTED]>
wrote:

>   Hi guys,
>
> Using Flex 3 & AMFPHP to do my database operations.
>
> I have a report that you specify all the options in flex, and
> currently I'm just using a navigateToURL() function to open a web
> browser.
>
> I do not like this it is very unsecure as the variables are all
> passed in the URL string.
>
> How can I get around this? I've thought about creating an
> intermediate database that houses all the variables and then have a
> random number generated and only pass that random number so that the
> PHP script can then pull that record from the database and get the
> variables it needs.
>
> There's got to be an easier way to do this though? How can I make
> this where the user can't change the variables and run a different
> report. Is there a way to share variables between Flex & PHP without
> putting them in the URL? Cookies maybe?
>
> Thanks for any help!
> -David
>
>  
>



-- 
Aaron Miller
Chief Technology Officer
Open Base Interactive, LLC.
[EMAIL PROTECTED]
http://www.openbaseinteractive.com


RE: [flexcoders] Item renderer behavior change in Flex3 ??

2008-04-02 Thread Alex Harui
Uh, well, he was sort of right.  TileList did not recycle nearly as
often as other lists in Flex 2 and now it does.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 02, 2008 10:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Item renderer behavior change in Flex3 ??

 

"...Flex2, the "creationComplete" handler was always executed in
renderer when the TileList data provider..." No, it wasn't.  You were
getting lucky some other way.  itemRenderer behavior has not changed
significantly between 2 and 3.

 

All updates to a renderer must be triggered by the set data() override
and, ideally the invalidation system.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Csiki
Sent: Wednesday, April 02, 2008 1:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Item renderer behavior change in Flex3 ??

 

Hello

Code that used to work with Flex2 does not work right with Flex3. I have
a TileList with a custom item renderer. The renderer has view states, it
also has handler for "creationComplete".

With Flex2, the "creationComplete" handler was always executed in
renderer when the TileList data provider changes. In Flex3, it is
executed just once ant that's it (i.e. when the data provider changes
the list gets refreshed but my handler does not get executed). Does
Flex3 use some sort of pooling for renderer instances?

Also as I said, my renderer has view states. Handlers for enterState,
exitState etc are only executed once, for the initial data provider.

I see all this as beeing a grave backwards compatibility issue.

Comments?

Thanks, Robert

 



[flexcoders] Re: flashvars hate me

2008-04-02 Thread jari.huuskonen
This is what I did to use flashvars:

AS
for (var i:String in Application.application.parameters) {
if (i=='woo')
woo=Application.application.parameters[i];
}

html
AC_FL_RunContent(
...
"flashvars",'woo=jabadabaduu&historyUrl=history.htm%3F&lconid=' + 
lc_id + '',
...
)


--- In flexcoders@yahoogroups.com, "Dennis Falling" <[EMAIL PROTECTED]> 
wrote:
>
> No, I'm doing it with the template html file.  I've double-checked 
the html
> source in my browser after running and they're all there.  I've 
added the
> url=woo code in four places: the AC_FL function, the embed
> src="...swf?url=woo", the  FlashVars="url=woo".
> 
> I'm sure it's probably not supposed to be in that many places, but 
I kept
> seeing different instructions and none of them have worked as of 
yet.  I'm
> using Flex 3.
> 
> 
> 
> On Wed, Apr 2, 2008 at 12:35 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> 
> >It looks like you are doing this manually.  I always start 
with a
> > wrapper generated by FlexBuilder, and edit the AC_FL_RunContent 
function as
> > Rick suggests.  I have never had any problems.
> >
> > Tracy
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *dfalling
> > *Sent:* Wednesday, April 02, 2008 1:10 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] flashvars hate me
> >
> >
> >
> > I can't get flashvars to work... It seems pretty basic, but no 
mater
> > what I do they don't seem to show up in flex.
> >
> > AS:
> > woo = Application.application.parameters.url;
> >
> > HTML:
> > 
> >
> >  > flashvars="url=woo">
> > 
> >
> > What am I missing?
> >
> > Thanks!
> >
> >  
> >
>




RE: [flexcoders] Re: Scroll Thumb Not Dynamically Sized?

2008-04-02 Thread Alex Harui
Yeah, I don't think it will be easy to swap in a scrollbar subclass.  I
would listen for updateComplete events, check if the scrollbar exists,
then go fiddle with it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Wednesday, April 02, 2008 11:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Scroll Thumb Not Dynamically Sized?

 

Thanks, Alex.

Poking around, found the method that controls thumb size in 
ScrollBar.as. Looks super easy to hardwire it, however I'm not 
sure how to make my Project then use my altered 
ScrollBar class ... ?

thanks, ethan

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There is no documented way to do this. The thumb is sized by the
> Scrollbar based on the page size and max scroll position.
> 
> 
> 
> You can try fiddling with calls to setScrollProperties to muck with
page
> size. You can also try to set the minHeight of the thumb by going
after
> mx_internal properties in the ScrollBar.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Ethan Miller
> Sent: Tuesday, April 01, 2008 3:00 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Scroll Thumb Not Dynamically Sized?
> 
> 
> 
> Hello -
> 
> Wondering if there's away to have scroll bar thumbs not scale their 
> size relative to the amount of unseen content, ie I want a scroll 
> thumb of a permanent fixed size. 
> 
> I've been playing round in ScrollThumbSkin.as, no problem, but 
> seems the scaling is elsewhere. 
> 
> Be great if this were a property...
> 
> cheers, ethan
>

 



[flexcoders] TabContainer - how to get a reference to the module that is loaded inside a tab

2008-04-02 Thread guitarguy555
I have a TabContainer and each tab contains a different module.  When a 
tab button is clicked, the module loader from the main application 
loads the appropriate module.  

At times though, when on a selected tab, I may need to load in a new 
module for different functionality.

>From the TabNavigator object, is there a property to get a reference to 
the currently loaded module for a currently selected tab?





[flexcoders] Re: Flex & PHP

2008-04-02 Thread David C. Moody
The post method worked great.  I guess I was just feeling a little 
overwhelmed.

Thanks for the help!
-David

--- In flexcoders@yahoogroups.com, "caffeinewabbit" 
<[EMAIL PROTECTED]> wrote:
>
> You can use the pass token method that you describe, or you could
> simply change your method from GET to POST:
> 
> var variables:URLVariables = new
> URLVariables("param1=data1¶m2=data2"); // Set your parameters 
as a
> urlencoded string here
> 
> var request:URLRequest = new
> URLRequest("http://www.yourdomain.com/yourpage.html";);
> 
> request.method = URLRequestMethod.POST;
> request.data = variables;
> navigateToURL(request, "_new");
> 
> Hope this helps!
> 
> --GC
> 
> --- In flexcoders@yahoogroups.com, "David C. Moody"  wrote:
> >
> > Hi guys,
> > 
> > Using Flex 3 & AMFPHP to do my database operations.
> > 
> > I have a report that you specify all the options in flex, and 
> > currently I'm just using a navigateToURL() function to open a web 
> > browser.
> > 
> > I do not like this it is very unsecure as the variables are all 
> > passed in the URL string.
> > 
> > How can I get around this?  I've thought about creating an 
> > intermediate database that houses all the variables and then have 
a 
> > random number generated and only pass that random number so that 
the 
> > PHP script can then pull that record from the database and get 
the 
> > variables it needs.
> > 
> > There's got to be an easier way to do this though?  How can I 
make 
> > this where the user can't change the variables and run a 
different 
> > report.  Is there a way to share variables between Flex & PHP 
without 
> > putting them in the URL?  Cookies maybe?
> > 
> > Thanks for any help!
> > -David
> >
>




RE: [flexcoders] No row in datagrid selection

2008-04-02 Thread Alex Harui
I don't see how row got defined or set.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hammer995
Sent: Wednesday, April 02, 2008 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] No row in datagrid selection

 

I have a user datagrid that displays an xml result set. I have
identical datagrid code for other datagrids which work fine.

For some reason, in this one user datagrid, the row does not get sent
upon datagrid selection. When the user selects a user to edit, the
row is null.

Here is my code:

private function editUserPop():void {
var newFormWindow:TitleWindow =
TitleWindow(PopUpManager.createPopUp(this, editUser, true));
trace(row.id); 
newFormWindow.title="Edit User Information";
newFormWindow.setStyle("borderAlpha", 0.9);
newFormWindow.showCloseButton=true;
newFormWindow.width=310;
newFormWindow.height=250;
newFormWindow.data = row;
newFormWindow.addEventListener("updateUser", updateUserHandler);
PopUpManager.centerPopUp(newFormWindow);
}

The trace always craps out the debugger.

This should be pretty vanilla what I am trying to do.

Please help!

Thanks.

 



RE: [flexcoders] Embedded fonts + modules = weirdness

2008-04-02 Thread Alex Harui
I'm not sure how modules got involved.

 

Most buttons use bold fonts for their labels and I don't see that
fontWeight specified in this snippet

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, April 02, 2008 2:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Embedded fonts + modules = weirdness

 

CSS file in main app:

@font-face
{
src: url("assets/fonts/Gotham-Medium.otf");
fontFamily: "GothamMedium";
}
Button.BlueButtonOutline
{
skin: Embed(skinClass="Button_BlueButtonOutline_skin");
fontFamily: "GothamMedium";
font-size: 14;
color: #FF;
text-roll-over-color: #FF;
text-selected-color: #FF;
}

I then have a component in a module that has a child button with
styleName="BlueButtonOutline", simple enough. That component is then a
child of a 2 TabNavigator children. The button that is a descendant of
the first tab has a mystery font to begin with, and then the text
disappears completely on rollover. The button that is a descendant of
the second tab works perfectly.

What gives?

Thanks,
Ben

 



[flexcoders] Where is adobe? Come to universities!

2008-04-02 Thread yiğit boyar
Yesterday, Microsoft was in my department to present silverlight&ajax
technologies.
Although silverlight is currently a bullshit compared to flex, and in my
department (METU computer engineering)
many people use linux; there were quite many people attending to the
seminar.

Tomorrow, I'll do give a seminar about AIR technology,which will be hosted
by METU Computer Club.
 who am I? Just a 3rd year computer engineering(~=science) student.

So i ask to adobe; microsoft comes to our lessons for their primitive
technology, but adobe does nothing for flex the great? why?
you do europe tour, it's great but you better do some more local event (no
need to bring your developers, just use
your local partners).

just a suggestion to adobe guys, maybe because of feeling bad with
microsoft's integration efforts...

info :  METU = middle east technical university / ankara/ turkey


[flexcoders] Printed chart has grey background

2008-04-02 Thread Nate Pearson
My chart on screen has a white background.  When I print it it gets
this grey background.

I tried doing chart.setStyle("backgroundColor", 0xff) at print but
that doesn't work :(.

Anyone know how to do this?

-Nate



Re: [flexcoders] Re: problem installing AIR linux, any way to debug install??

2008-04-02 Thread yiğit boyar
maybe the problem is something different, pardus 2008 is close to release;
i'll possibly wait for it, if i cannot install to it either, i will change
my distro. (possibly ubuntu which i previously used)

by the way, you're right, the one i use is pardus.org.tr .

thanks for the information, i've already checked those information;
i need to debug air installer to get better information(why it cancels),
currently it seems impossible...

tomorrow, I'll make a presentation @ my universite (www.metu.edu.tr) about
Offline Web Applications , mostly AIR, i was pretty excited to do
presentation on my Linux, maybe next time...
thnks.



On Wed, Apr 2, 2008 at 3:15 PM, Jerome Clarke <[EMAIL PROTECTED]> wrote:

>   loosing hope... get a grip boy... cant give up that easily :p
>
> my only suggestion then ( I don't like this suggestion and I'll explain
> why ) is to try another distrobution.
>
> It says on their site
>
> *Supported Linux Distributions*
>
>- RedHat Desktop Linux 4
>- RedHat Enterprise Linux v5
>- Novell Desktop Linux 9
>- SUSE Linux Enterprise Desktop 10
>- Ubuntu 6.06
>
> but I'm using Fedora 8 in vmware and I installed it like this
>
> - I logged in as root in the terminal using the "su" command
>
> - I then changed the permission on the file so it can be executed. I used
> "chmod 0477 /path/adobeair_linux_a1_033108.bin"
>
> - I then simply just did this in the terminal
> "./adobeair_linux_a1_033108.bin" and followed the instructions from there (
> just like how it works in windows )
>
> - after that... Every time I installed an Adobe AIR app... I had to enter
> my root password to install it... but the files that get installed are owned
> by you not the root so you can delete them without having to log in as root
> ( again this is my experience in Fedora 8 in vmware )
>
> in your post it says your using Pardus... I'm assuming this is it?
>
> http://www.pardus.org.tr/
>
> excluding the distro that it supports I'm going to assume it should
> work because again Adobe labs says this
>
> *Supported Languages* English only. The final version of AIR for Linux
> will include support for other languages.
>
> *Supported Desktop Environments:* GNOME or KDE
>
> *Package Management Systems:* RPM or Debian
>
> *Window Managers:* Metacity (default for GNOME) or KWin (default for KDE)
>
> *Transparency:* Support for transparency in AIR applications requires a
> compositing window manager and additional X server extensions:
>
>- *Compositing Window Managers:* Beryl, Compiz, Compiz-fusion
>- *X Server Extensions:* Composite, Render, Shape
>
> note: the* **Transparency**, **Compositing Window Managers and **X Server
> Extensions** *stuff is optional. Only needed if you want transparent stuff
>
> Pardus is debian based and your using KDE ( KWin )... only difference
> between me and you is I'm not using debian...
>
> this is where I got all the info about the requirements
>
> http://labs.adobe.com/wiki/index.php/AIR_for_Linux:Release_Notes
>
>
>
> On Wed, Apr 2, 2008 at 12:50 PM, yiğit boyar <[EMAIL PROTECTED]> wrote:
>
> >   ok; let me be clear;
> > i cannot install adobe integrated runtime(adobeair_linux_a1_033108.bin)
> > which will let me run AIR applications on my linux.
> >
> > during the installation it just says there is an error, there is no
> > information about the error.(it says it might be stopped because
> > of root privilages but i run it as a root, it's out of case).
> >
> > i tried giving -h as an argument to get the list of possible arguments
> > but there is no. (-h is just a convention for shell programming).
> >
> > i think there is no way to learn what the error is... :( losing hope...
> > thanks for your interest jerome...
> >
> >
> >
> > On Wed, Apr 2, 2008 at 4:00 AM, Jerome Clarke <[EMAIL PROTECTED]>
> > wrote:
> >
> > >   Sorry I misread your post... I thought you had trouble installing
> > > Adobe AIR but you want the debug which is the part I missed :p
> > >
> > > I think this alpha version that's installed now is debug... when it
> > > goes final... it no longer will be debug but that will come with the AIR
> > > SDK.
> > >
> > > and during the installtion don't pass any arguments. I can see your
> > > passing "-h". I didn't pass any... I don't know what "-h" does so I'm
> > > assuming here
> > >
> > >
> > >  On Tue, Apr 1, 2008 at 11:25 PM, yiğit boyar <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > >   actually, yes :)
> > > >
> > > > no comments? will i have to change my linux ?
> > > >
> > > >
> > > >
> > > > On Tue, Apr 1, 2008 at 8:14 AM, Jerome Clarke <[EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > >   I'm assuming you installed it as root?
> > > > >
> > > > >
> > > > > On Tue, Apr 1, 2008 at 3:18 AM, yiğit boyar <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > >
> > > > > >   it did not, but i remember checking with ls -al and the file
> > > > > > is executable... (currently i'm not@ linux so i cannot try, but
> > > > > > i'm pretty sure that the file is ex

[flexcoders] Re: AdvancedDataGrid - Changing the background color on a row.

2008-04-02 Thread sk_acura
Hi,

  I just need to set the Background color of the First Row to a
specific color and the rest of the rows can have the default background.

  And the data for the grid is set using the dataProvider (
ArrayCollection) is set at runtime.

  So i don't want this Item Renderer for each and every row.

  Is there a simple way to do this..

  I couldn't find a method to check the columnNumber from the passed
AdvancedDataGridColumn Object !!!

  I have this method to set the style as per sreeni code..

private function setRowStyle(data:Object,
col:AdvancedDataGridColumn):Object{
//  I need to check if the column is 0  and it 
has a specific
value..(To determine this is the first row..)
if (col.){
return { rowColor:0xFF, 
fontWeight:"bold" };
}   
return {};
}

Thanks
Mars


--- In flexcoders@yahoogroups.com, "Cato Paus" <[EMAIL PROTECTED]> wrote:
>
> Also take a look at this 
> http://weblogs.macromedia.com/pent/archives/2007/02/index.cfm
> 
> Cato
> 
> 
> --- In flexcoders@yahoogroups.com, "Dominic Pazula"  
> wrote:
> >
> > Awesome!  Thanks.  I had put this on the back burner and was 
> working 
> > on the lower hanging fruit for my project.
> > 
> > --- In flexcoders@yahoogroups.com, "sreeni_r"  wrote:
> > >
> > > 
> > > I have posted a working sample here which I think you can tweak 
> it 
> > > work your scenario.
> > > 
> > > http://flexpearls.blogspot.com/2008/02/row-background-color-
> in.html
> > > 
> > > -Sreenivas
> > > 
> > > --- In flexcoders@yahoogroups.com, "Dominic Pazula"  
> > > wrote:
> > > >
> > > > I thought this would be easy to do, but I have been banging my 
> > head 
> > > > on it for a while.  I'm wanting to let the user "mark" rows as 
> > they 
> > > > scroll through the ADG.  
> > > > 
> > > > I created a function myRowStyle and set 
> > > styleFunction="myRowStyle".  
> > > > What I cannot figure out is how to change the background color 
> on 
> > > the 
> > > > row.  I've figured out how to change just about everything else.
> > > > 
> > > > Here is the myRowStyle function.  I am just setting a static 
> set 
> > of 
> > > > rows to the style to help me figure this out.
> > > > 
> > > > private function myRowStyle(data:Object, 
> > > > col:AdvancedDataGridColumn):Object{
> > > > var vals:Array = [0, 2, 4, 6];
> > > > 
> > > > var i:int = dg.dataProvider.getItemIndex(data);
> > > > 
> > > > if (vals.indexOf(i) >= 0){
> > > > var o:Object = new Object;
> > > > o.color = 0x00;
> > > > o.fontWeight = "bold";
> > > > o.backgroundColor = 0xFF;
> > > > return o;
> > > > }
> > > > else return null;
> > > > }
> > > > 
> > > > o.backgroundColor is just my latest attempt.  I've tried 
> > everything 
> > > I 
> > > > can think of, but obviously have not thought of everything.
> > > > 
> > > > Does anyone know the trick to doing this?
> > > > 
> > > > Thanks
> > > > Dominic
> > > >
> > >
> >
>




[flexcoders] Re: rss feed not working

2008-04-02 Thread Kevin
I think you're making it more complicated then it needs to be.  Try this:



<** snip **>

public function init():void
{
httpRSS.send();
}



--- In flexcoders@yahoogroups.com, "hworke" <[EMAIL PROTECTED]> wrote:
>
> 
>   Hi am reading an rss file and calling the HTTPService with
>   action script then handling the HTTPService result to a 
>   AsyncToken and finally handling the result is onResult function.
> 
>   But for some reason It is not giving me any return.
>   Here is the HTTPService and the function that calls it:
> 
>  resultFormat="object" showBusyCursor="true"/>
> 
> 
>  public function init():void
>  {
>   httpRSS.send();
>   var token:AsyncToken = httpRSS.send();
>   var callResponder:Responder = new Responder(onResult,onFault); 
>  }
> 
>  public function onResult(event:ResultEvent):void
>  {
> var tmp:Object = event.result.RDF.item;
> var items:Array = new Array();
> for( var i:String in tmp )
> {
>   items.push( tmp[i] );
> }
> externalData = new ArrayCollection( items );  
>  }   
> 
> *
> *
> *
> 
> Here is the whole code
> 
> *
> *
> *
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> xmlns:iframe="com.renaun.iframe.*"
> creationComplete="init()"
> width="100%" height="100%"
> paddingLeft="5" paddingRight="5" paddingBottom="5"
paddingTop="5"
> horizontalAlign="left"
> layout="vertical" viewSourceURL="srcview/index.html">
> 
>  url="{ rssURL }" resultFormat="object"
> showBusyCursor="true"/>
> 
> 
> 
> 
> 
>  title="Adobe MXNA Flex Feed (RSS Reader Example #2)"
> width="100%" height="100%" 
> paddingLeft="5" paddingRight="5" paddingBottom="5"
paddingTop="5">
> 
>  id="newsItems"
> dataProvider="{ externalData }">
>  creationCompleteEffect="Fade">
>  textAlign="left"
> label="{ newsItems.currentItem.title }" 
> click="processURL(
> event.currentTarget.getRepeaterItem().link )" />
>  editable="false"
> width="98%" cornerRadius="6" height="50"
> backgroundColor="0xFAFAFA"
> htmlText="{ newsItems.currentItem.description }"
> >
>  width="98%" 
> textAlign="right"
> text="{ newsItems.currentItem.creator + ' ' +
> newsItems.currentItem.date + ' ' + newsItems.currentItem.subject }" />
>
> 
> 
> 
> 
>




[flexcoders] Embedded fonts + modules = weirdness

2008-04-02 Thread ben.clinkinbeard
CSS file in main app:

@font-face
{
src: url("assets/fonts/Gotham-Medium.otf");
fontFamily: "GothamMedium";
}
Button.BlueButtonOutline
{
skin: Embed(skinClass="Button_BlueButtonOutline_skin");
fontFamily: "GothamMedium";
font-size: 14;
color: #FF;
text-roll-over-color: #FF;
text-selected-color: #FF;
}

I then have a component in a module that has a child button with
styleName="BlueButtonOutline", simple enough. That component is then a
child of a 2 TabNavigator children. The button that is a descendant of
the first tab has a mystery font to begin with, and then the text
disappears completely on rollover. The button that is a descendant of
the second tab works perfectly.

What gives?

Thanks,
Ben



[flexcoders] No row in datagrid selection

2008-04-02 Thread hammer995
I have a user datagrid that displays an xml result set.  I have
identical datagrid code for other datagrids which work fine.

For some reason, in this one user datagrid, the row does not get sent
upon datagrid selection.  When the user selects a user to edit, the
row is null.

Here is my code:

private function editUserPop():void {
var newFormWindow:TitleWindow =
TitleWindow(PopUpManager.createPopUp(this, editUser, true));
trace(row.id);  
newFormWindow.title="Edit User Information";
newFormWindow.setStyle("borderAlpha", 0.9);
newFormWindow.showCloseButton=true;
newFormWindow.width=310;
newFormWindow.height=250;
newFormWindow.data = row;
newFormWindow.addEventListener("updateUser", 
updateUserHandler);
PopUpManager.centerPopUp(newFormWindow);
}

The trace always craps out the debugger.

This should be pretty vanilla what I am trying to do.

Please help!


Thanks.



[flexcoders] best way to update a display object's VO's x and y props?

2008-04-02 Thread Rich Rodecker
Hello,
I'm building a page layout-type app using cairngorm. I have an
arraycollection of value objects in the model that stores the data for each
item on the page.  Every item on the page is a custom component (a PageItem)
that is bound to one of the VOs as a dataprovider.  The VO contains the
entire state of the PageItem, x,y,rotation, content, etc).

each PageItem is draggable.  When I drag the PageItem to a new position, i
need to have the VO updated as well.  Currently I am just updating the vo
from within the component when the mouse is released, but since it's bound,
that triggers the property change event on the VO, which doesn't really do
anything but is pretty inefficient.

I feel like there's gotta be some way to just proxy the PageItem's values
like x and y to the VO directly and I'm just missing it.

In the past I have used Momentos to save and restore state, but I'm trying
to achieve a greater separation of the view and the model, so that when I go
to save the data, I just grab the collection of VO's from the model and save
that, rather than query the view for it's state.

Anyone have any pointers?


Re: [flexcoders] Re: New Question: Component

2008-04-02 Thread Bob Wohl
Hmmm... Have you tried something like this:








hth
B.


On Wed, Apr 2, 2008 at 6:17 AM, khan.ibraheem <[EMAIL PROTECTED]>
wrote:

>   Thanks for the reply. But setTempMethod() lives in the Canvas, not in
> the label. However, I have reverfied and it is working.
>
> Your reply was indeed helping in the way, that I came to know that I
> was doing right thing. I just recheck it & there was nothing wrong in
> it. Maybe I havent saved the source code or something else.
>
> --- In flexcoders@yahoogroups.com , "Douglas
> Knudsen"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > you have a scope issue there, setTempMethod() lives in the Label not
> > Canvas. Move this method up inside Canvas and teh outside world
> will have
> > access.
> >
> >
> > DK
> >
> > On Wed, Apr 2, 2008 at 8:02 AM, khan.ibraheem <[EMAIL PROTECTED]>
>
> > wrote:
> >
> > > Hello,
> > >
> > > I am creating a custom component and have 2 questions regarding it:
> > >
> > > 1) One way, I am thinking is to create actionscript class and use
> it. I
> > > can add controls using addChild method. But how can I set absolute
> position
> > > of the control.
> > >
> > > 2) The other way was to create MXML component and place all controls
> > > through the help of designer. But is it possible, that I can
> access methods
> > > created in MXML component.
> > >
> > > For example:
> > > ==
> > > 
> > > http://www.adobe.com/2006/mxml"; width="356"
> > > height="38">
> > >
> > >  fontSize="12"
> > > fontWeight="bold" height="20"/>
> > > 
> > > 
> > > 
> > > 
> > > =
> > >
> > > I have tried to access "setTempMethod" from application but it wasnt
> > > allowing me to do so. So, I need help so I can create methods in
> components
> > > which can be used outside the component.
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
>
>  
>


[flexcoders] Re: Flex & PHP

2008-04-02 Thread caffeinewabbit
You can use the pass token method that you describe, or you could
simply change your method from GET to POST:

var variables:URLVariables = new
URLVariables("param1=data1¶m2=data2"); // Set your parameters as a
urlencoded string here

var request:URLRequest = new
URLRequest("http://www.yourdomain.com/yourpage.html";);

request.method = URLRequestMethod.POST;
request.data = variables;
navigateToURL(request, "_new");

Hope this helps!

--GC

--- In flexcoders@yahoogroups.com, "David C. Moody" <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
> 
> Using Flex 3 & AMFPHP to do my database operations.
> 
> I have a report that you specify all the options in flex, and 
> currently I'm just using a navigateToURL() function to open a web 
> browser.
> 
> I do not like this it is very unsecure as the variables are all 
> passed in the URL string.
> 
> How can I get around this?  I've thought about creating an 
> intermediate database that houses all the variables and then have a 
> random number generated and only pass that random number so that the 
> PHP script can then pull that record from the database and get the 
> variables it needs.
> 
> There's got to be an easier way to do this though?  How can I make 
> this where the user can't change the variables and run a different 
> report.  Is there a way to share variables between Flex & PHP without 
> putting them in the URL?  Cookies maybe?
> 
> Thanks for any help!
> -David
>




[flexcoders] Re: TextArea and Dynamic Heights

2008-04-02 Thread Dmitri Girski
Hi Matt,

Here is the solution for your problem - override set text method and
then measure the textHeight and change height accordingly.

NB This won't work if you want to print it. 

package
{
import mx.controls.TextArea;
import mx.core.ScrollPolicy;

public class ElasticTextArea extends TextArea
{
public function ElasticTextArea()
{
super();
}

[Bindable("textChanged")]
[NonCommittingChangeEvent("change")]
override public function set text(value:String):void
{
verticalScrollPolicy = ScrollPolicy.ON;
super.text = value;
invalidateDisplayList();
validateNow();
super.height = super.textHeight;
verticalScrollPolicy = ScrollPolicy.OFF;
}
}
}

Cheers,
Dmitri.




--- In flexcoders@yahoogroups.com, "Matt Davis" <[EMAIL PROTECTED]> wrote:
>
> I have an application that allows students to take practice
> standardized tests.  The test questions and answer options are
> displayed to the students on a Panel (the question is in on VBox and
> the answer options are in another VBox).  All of the test questions
> and possible answers are stored in an ArrayCollection.
> 
> Each question is displayed in the same TextArea and can vary greatly
> in its height needs.  Therefore, I would like the height of the
> TextArea to dynamically change each time the next question is loaded
> (the students click on a button to access the next question, which
> fires off a series of functions to get the next question and answer
> options from the ArrayCollection).
> 
> I have tried countless ways to change the height of the TextArea, all
> without any success.  I am hoping that there is something extremely
> obvious that I have missed.
> 
> This blog entry is about the best idea I have been able to find:
>
http://weblogs.macromedia.com/nwatson/archives/2005/09/dynamic_textare.cfm.
> However, I cannot figure out which event can successfully fire off the
> function when each question loads.  Perhaps I can call the function
> mentioned in this blog from my next() or back() functions (called when
> one of the buttons is clicked), but I don't know what to pass along
> when I call the function in order to make it work.
> 
> Here is the code for the VBox containing the question.
> 
> 
>   
>  width="100%" fontWeight="bold" wordWrap="true" editable="false"
> borderThickness="0" verticalScrollPolicy="off" /> 
>   
>  source="/imageLibrary/images/{currentQuestionSet.QIMAGE}"
> horizontalAlign="center" />
> 
> 
> 
> 
> 
> 
> 
>  styleName="controlLeft"/> 
> 
> <... some other navigation buttons that do not apply to this problem
...>
>   
>  styleName="controlRight"/>
> 
> 
> 
> Thanks,
> 
> Matt Davis
>




Re: [flexcoders] Re: Announcement: Join us in a Flex-Related Focus Group

2008-04-02 Thread Bruce Hopkins
Hey Jeff,

Instead of the $50, can we get a free license to the Flex components
themselves? I'm surprised that no one has asked for that.

Thanks,

Bruce

On Wed, Apr 2, 2008 at 10:53 AM, Jeffry Houser <[EMAIL PROTECTED]> wrote:

>   lytvynyuk wrote:
> >
> >
> > Jeff I didn't want to turn this into discussion of your website
> > design, but I think any great idea have nice visual presentation :)
>
> I'm surprised it was given a second thought.
> A redesign will come at some future point, but traditionally DotComIt
> does not use our web site as a promo tool or sales generator, so a
> redesign has never been a priority.
>
> Or to put it another way; the shoemaker's children don't have shoes.
>
> --
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711 | Phone: 1-203-379-0773
> --
> Adobe Community Expert
> 
> My Company: 
> My Podcast: 
> My Blog: 
>
>  
>


[flexcoders] Re: ItemRenderer Button fillColor

2008-04-02 Thread jmfillman
Thank you Peter!
--- In flexcoders@yahoogroups.com, "Peter DeHaan" <[EMAIL PROTECTED]> wrote:
>
> jmfillman,
> 
>  
> 
> How about this:
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
>  
> 
>  
> 
> Peter
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of jmfillman
> Sent: Wednesday, April 02, 2008 11:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ItemRenderer Button fillColor
> 
>  
> 
> I am trying to take the "value" field from the array, and use it in 
> an itemRender to set the color of a button in the itemRender. What 
is 
> the correct syntax for this?
> 
> 
> http://www.adobe.com/2006/mxml
>  ">
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
>




[flexcoders] VS2008 FluorineFx ASP.NET Web application Template

2008-04-02 Thread max.nachlinger
I've been interested in trying out Flourine and (after dutifully
scanning the docs and trying out a few test projects in VS2008) I've
realized that the "FluorineFx ASP.NET Web application" template is
missing in VS2008.  Has anyone else experienced this oddity, or are
the Flourine docs a bit off? 



[flexcoders] php data return problem with httpservice

2008-04-02 Thread kawelch3
I am sending form data to a mySQL table from Flex3 through a php page.
 The saving of data works perfectly, but any text I attempt to return
to the flex app from php (using print or echo) comes wrapped in html.
 I'm not able to send a simple bit of text, like "Yes, that worked"
without it being wrapped in an entire xhtml file.

Any hints?  Bot Flex app and php are web apps.

Thanks,
KW



[flexcoders] TextArea and Dynamic Heights

2008-04-02 Thread Matt Davis
I have an application that allows students to take practice
standardized tests.  The test questions and answer options are
displayed to the students on a Panel (the question is in on VBox and
the answer options are in another VBox).  All of the test questions
and possible answers are stored in an ArrayCollection.

Each question is displayed in the same TextArea and can vary greatly
in its height needs.  Therefore, I would like the height of the
TextArea to dynamically change each time the next question is loaded
(the students click on a button to access the next question, which
fires off a series of functions to get the next question and answer
options from the ArrayCollection).

I have tried countless ways to change the height of the TextArea, all
without any success.  I am hoping that there is something extremely
obvious that I have missed.

This blog entry is about the best idea I have been able to find:
http://weblogs.macromedia.com/nwatson/archives/2005/09/dynamic_textare.cfm.
However, I cannot figure out which event can successfully fire off the
function when each question loads.  Perhaps I can call the function
mentioned in this blog from my next() or back() functions (called when
one of the buttons is clicked), but I don't know what to pass along
when I call the function in order to make it work.

Here is the code for the VBox containing the question.



   









   

<... some other navigation buttons that do not apply to this problem ...>





Thanks,

Matt Davis



[flexcoders] Re: Partial result from HTTPService call

2008-04-02 Thread Dmitri Girski
Why not to use lastResult? It is absolutely the same as event.result.
Even better - you can bind to it :)


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> First, don't use lastResult.  It is intended for binding
expressions.  Use event.result.  Change that an see if it helps.
> 
> Tracy
> 




[flexcoders] FW: AIr and NativeDragEvents

2008-04-02 Thread Dimitrios Gianninas
 
forwarding

Dimitrios Gianninas
Moderator

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jtgrassie
Sent: Wednesday, April 02, 2008 3:28 PM
To: [EMAIL PROTECTED]
Subject: Re: AIr and NativeDragEvents

addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter); 
addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);


private function onDragEnter(event:NativeDragEvent):void
{
if(event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
NativeDragManager.acceptDragDrop(this);
}

private function onDragDrop(event:NativeDragEvent):void
{
NativeDragManager.dropAction = NativeDragActions.COPY;
var files:Array =
event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
for each (var f:File in files)
{
trace(f.nativePath);
}
}


--- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
>
> HI,
> 
> I am working with Air and dragging from the desktop to my application.
>  I've got notice that my NativeDragEvent is working.  When I get my 
> File list array from my clipboard event, what's next?
> 
> How can I access the data for conversion to byteArray to send to the 
> server (if that's even necessary)?  How can I determine the filetype 
> with the clipboardFormats... etc.
> 
> For instance, how do I find the filename and extension of the file 
> that I am dragging.  The few examples I've found out there are 
> examples written for Air Beta 1.  I am one "those people" who needs 
> examples to understand the process.  If you have any links of updates 
> posts it would be greatly appreciated.
> 
> I'm ready to use the api, but it's a little daunting, any help 
> appreciated.  I went looking for an air book in the bookstore after i 
> saw the plethora of titles on amazon, and then I was bummed to learn 
> that they are still unavailable :(
> 
> Thanks,
> Patrick
>


-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: AIr and NativeDragEvents

2008-04-02 Thread jtgrassie
addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);


private function onDragEnter(event:NativeDragEvent):void
{
if(event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
NativeDragManager.acceptDragDrop(this);
}

private function onDragDrop(event:NativeDragEvent):void
{
NativeDragManager.dropAction = NativeDragActions.COPY;
var files:Array =
event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
for each (var f:File in files)
{
trace(f.nativePath);
}
}


--- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
>
> HI,
> 
> I am working with Air and dragging from the desktop to my application.
>  I've got notice that my NativeDragEvent is working.  When I get my
> File list array from my clipboard event, what's next?  
> 
> How can I access the data for conversion to byteArray to send to the
> server (if that's even necessary)?  How can I determine the filetype
> with the clipboardFormats... etc.
> 
> For instance, how do I find the filename and extension of the file
> that I am dragging.  The few examples I've found out there are
> examples written for Air Beta 1.  I am one "those people" who needs
> examples to understand the process.  If you have any links of updates
> posts it would be greatly appreciated.
> 
> I'm ready to use the api, but it's a little daunting, any help
> appreciated.  I went looking for an air book in the bookstore after i
> saw the plethora of titles on amazon, and then I was bummed to learn
> that they are still unavailable :(
> 
> Thanks,
> Patrick
>




[flexcoders] Re: checking for an existing VBox container in ActionScript?

2008-04-02 Thread caffeinewabbit
The id property really is only used when you create an object directly
in MXML, so it won't be of much use here.

One possible solution would be the use of an object as a hash table.
The code below demonstrates how you can do this (apologies if Yahoo's
text parser removes all the indenting):


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






.theBoxStyle
{
borderStyle: solid;
borderThickness: 2;
borderColor: #00;   
}

























Basically, give the box a name in the first field, then some text in
the second, and click the button. Once a box is created, its added to
vBoxCollection as a dynamic property, and can repeatedly be referenced
afterwards.

Try using this as a starting point. Hope it helps!

-- GC

--- In flexcoders@yahoogroups.com, "Anthony Ettinger" <[EMAIL PROTECTED]> wrote:
>
> Understandable, but I'm adding multiple VBoxes, so I'm giving them
> different IDs --- is it even possible to access it by the ID?
> 
> I want to create it, if it doesn't exists, and then write to it (the
> new one or the existing one).
> 
> 
> 
> On Wed, Apr 2, 2008 at 11:59 AM, caffeinewabbit
> <[EMAIL PROTECTED]> wrote:
> 
> > It sounds like you're approaching the problem from a JavaScript style
> >  mindset, which isn't really the best way to go when dealing with AS3.
> >
> >  Without knowing more about your project or surrounding code, I'd
> >  suggest something along these lines:
> >
> >  
> >   >  xmlns:mx="http://www.adobe.com/2006/mxml";>
> >
> >  
> >  
> >  
> >
> >  ... MXML code - possibly containing a component that calls
addVBox()...
> >
> >  
> >
> >  In Flex, the id parameter really only needs to be set explicitly when
> >  a component is created in MXML. In AS3, the explicit variable name is
> >  used.
> >
> >
> >
> >  --- In flexcoders@yahoogroups.com, "Anthony Ettinger" 
wrote:
> >  >
> >  > I want to dynamically create a VBox container for messaging from
> >  > ActionScript, however it's unclear to me how to check if one
already
> >  > exists given its ID.
> >  >
> >  > var vBox:VBox = new VBox();
> >  >
> >  > vBox.id = 'theBox";
> >  > vBox.styleName = "theBoxStyle";
> >  >
> >  > addChild(vBox); // here is where I want to check for
getById('theBox')
> >  > in the DOM before adding a new one.
> >  >
> >  >
> >  >
> >  >
> >  >
> >  > --
> >  > Anthony Ettinger
> >  > 408-656-2473
> >  > http://anthony.ettinger.name
> >  >
> >
> >  
> 
> 
> 
> -- 
> Anthony Ettinger
> 408-656-2473
> http://anthony.ettinger.name
>




Re: [flexcoders] checking for an existing VBox container in ActionScript?

2008-04-02 Thread Anthony Ettinger
I tried that but it appears to only check if the variable is defined,
from what I can tell, not whether it is in the DOM or not:


var Id:String = 'theBox';

if ( ! Id ) {
  createBox();
}



On Wed, Apr 2, 2008 at 11:45 AM, DreamCode <[EMAIL PROTECTED]> wrote:
>
> something like this ?
>
>
> if (!theBox){
>
> var vBox:VBox = new VBox();
> vBox.id = 'theBox";
> vBox.styleName = "theBoxStyle";
> addChild(vBox);
> }
>
> // Add content to the box or whatever
>
>
> --API
>
>
>
>
>
>
> On Wed, Apr 2, 2008 at 11:23 AM, Anthony Ettinger <[EMAIL PROTECTED]> wrote:
>
> >
> >
> >
> >
> >
> >
> > I want to dynamically create a VBox container for messaging from
> > ActionScript, however it's unclear to me how to check if one already
> > exists given its ID.
> >
> > var vBox:VBox = new VBox();
> >
> > vBox.id = 'theBox";
> > vBox.styleName = "theBoxStyle";
> >
> > addChild(vBox); // here is where I want to check for getById('theBox')
> > in the DOM before adding a new one.
> >
> > --
> > Anthony Ettinger
> > 408-656-2473
> > http://anthony.ettinger.name
> >
>
>  



-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name


RE: [flexcoders] ItemRenderer Button fillColor

2008-04-02 Thread Peter DeHaan
jmfillman,

 

How about this:

 

















 



 

 

Peter

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Wednesday, April 02, 2008 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ItemRenderer Button fillColor

 

I am trying to take the "value" field from the array, and use it in 
an itemRender to set the color of a button in the itemRender. What is 
the correct syntax for this?


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








 



 



[flexcoders] AIr and NativeDragEvents

2008-04-02 Thread djhatrick
HI,

I am working with Air and dragging from the desktop to my application.
 I've got notice that my NativeDragEvent is working.  When I get my
File list array from my clipboard event, what's next?  

How can I access the data for conversion to byteArray to send to the
server (if that's even necessary)?  How can I determine the filetype
with the clipboardFormats... etc.

For instance, how do I find the filename and extension of the file
that I am dragging.  The few examples I've found out there are
examples written for Air Beta 1.  I am one "those people" who needs
examples to understand the process.  If you have any links of updates
posts it would be greatly appreciated.

I'm ready to use the api, but it's a little daunting, any help
appreciated.  I went looking for an air book in the bookstore after i
saw the plethora of titles on amazon, and then I was bummed to learn
that they are still unavailable :(

Thanks,
Patrick



[flexcoders] Flex & PHP

2008-04-02 Thread David C. Moody
Hi guys,

Using Flex 3 & AMFPHP to do my database operations.

I have a report that you specify all the options in flex, and 
currently I'm just using a navigateToURL() function to open a web 
browser.

I do not like this it is very unsecure as the variables are all 
passed in the URL string.

How can I get around this?  I've thought about creating an 
intermediate database that houses all the variables and then have a 
random number generated and only pass that random number so that the 
PHP script can then pull that record from the database and get the 
variables it needs.

There's got to be an easier way to do this though?  How can I make 
this where the user can't change the variables and run a different 
report.  Is there a way to share variables between Flex & PHP without 
putting them in the URL?  Cookies maybe?

Thanks for any help!
-David



Re: [flexcoders] Re: checking for an existing VBox container in ActionScript?

2008-04-02 Thread Anthony Ettinger
Understandable, but I'm adding multiple VBoxes, so I'm giving them
different IDs --- is it even possible to access it by the ID?

I want to create it, if it doesn't exists, and then write to it (the
new one or the existing one).



On Wed, Apr 2, 2008 at 11:59 AM, caffeinewabbit
<[EMAIL PROTECTED]> wrote:

> It sounds like you're approaching the problem from a JavaScript style
>  mindset, which isn't really the best way to go when dealing with AS3.
>
>  Without knowing more about your project or surrounding code, I'd
>  suggest something along these lines:
>
>  
>xmlns:mx="http://www.adobe.com/2006/mxml";>
>
>  
>  
>  
>
>  ... MXML code - possibly containing a component that calls addVBox()...
>
>  
>
>  In Flex, the id parameter really only needs to be set explicitly when
>  a component is created in MXML. In AS3, the explicit variable name is
>  used.
>
>
>
>  --- In flexcoders@yahoogroups.com, "Anthony Ettinger" <[EMAIL PROTECTED]> 
> wrote:
>  >
>  > I want to dynamically create a VBox container for messaging from
>  > ActionScript, however it's unclear to me how to check if one already
>  > exists given its ID.
>  >
>  > var vBox:VBox = new VBox();
>  >
>  > vBox.id = 'theBox";
>  > vBox.styleName = "theBoxStyle";
>  >
>  > addChild(vBox); // here is where I want to check for getById('theBox')
>  > in the DOM before adding a new one.
>  >
>  >
>  >
>  >
>  >
>  > --
>  > Anthony Ettinger
>  > 408-656-2473
>  > http://anthony.ettinger.name
>  >
>
>  



-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name


Re: [flexcoders] Calendar / Scheduling Component

2008-04-02 Thread Jeffry Houser
You can take a look at the SCheduling Framework which is now a part of 
FlexLib.

Tom Armstrong wrote:
> 
> 
> Hi All,
>  
> I'm looking for a component to help with a scheduling application that 
> I'm building in flex. I need the ability to drag-drop dates / tasks, 
> etc. I read somewhere that Adobe was working on such a component but 
> can't find it. Any links to help with existing components would help.
>  
> Thanks,
>  
> Tom
> 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 

My Company: 
My Podcast: 
My Blog: 



[flexcoders] rss feed not working

2008-04-02 Thread hworke

  Hi am reading an rss file and calling the HTTPService with
  action script then handling the HTTPService result to a 
  AsyncToken and finally handling the result is onResult function.

  But for some reason It is not giving me any return.
  Here is the HTTPService and the function that calls it:




 public function init():void
 {
httpRSS.send();
var token:AsyncToken = httpRSS.send();
var callResponder:Responder = new Responder(onResult,onFault); 
 }

 public function onResult(event:ResultEvent):void
 {
var tmp:Object = event.result.RDF.item;
var items:Array = new Array();
for( var i:String in tmp )
{
  items.push( tmp[i] );
}
externalData = new ArrayCollection( items );
 }   

*
*
*

Here is the whole code

*
*
*




http://www.adobe.com/2006/mxml";
xmlns:iframe="com.renaun.iframe.*"
creationComplete="init()"
width="100%" height="100%"
paddingLeft="5" paddingRight="5" paddingBottom="5" paddingTop="5"
horizontalAlign="left"
layout="vertical" viewSourceURL="srcview/index.html">














   








[flexcoders] Re: checking for an existing VBox container in ActionScript?

2008-04-02 Thread caffeinewabbit
It sounds like you're approaching the problem from a JavaScript style
mindset, which isn't really the best way to go when dealing with AS3.

Without knowing more about your project or surrounding code, I'd
suggest something along these lines:


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

  

  

  ... MXML code - possibly containing a component that calls addVBox()...



In Flex, the id parameter really only needs to be set explicitly when
a component is created in MXML. In AS3, the explicit variable name is
used.

--- In flexcoders@yahoogroups.com, "Anthony Ettinger" <[EMAIL PROTECTED]> wrote:
>
> I want to dynamically create a VBox container for messaging from
> ActionScript, however it's unclear to me how to check if one already
> exists given its ID.
> 
> var vBox:VBox = new VBox();
> 
> vBox.id = 'theBox";
> vBox.styleName = "theBoxStyle";
> 
> addChild(vBox); // here is where I want to check for getById('theBox')
> in the DOM before adding a new one.
> 
> 
> 
> 
> 
> -- 
> Anthony Ettinger
> 408-656-2473
> http://anthony.ettinger.name
>




[flexcoders] Re: Calendar / Scheduling Component

2008-04-02 Thread jmfillman
Tom,

I am currently working on an appointment calendar component. I'm nearly 
finished. You can try it out at http://www.imbizzi.com

JF



Re: [flexcoders] flashvars hate me

2008-04-02 Thread Dennis Falling
No, I'm doing it with the template html file.  I've double-checked the html
source in my browser after running and they're all there.  I've added the
url=woo code in four places: the AC_FL function, the embed
src="...swf?url=woo", the  wrote:

>It looks like you are doing this manually.  I always start with a
> wrapper generated by FlexBuilder, and edit the AC_FL_RunContent function as
> Rick suggests.  I have never had any problems.
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *dfalling
> *Sent:* Wednesday, April 02, 2008 1:10 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] flashvars hate me
>
>
>
> I can't get flashvars to work... It seems pretty basic, but no mater
> what I do they don't seem to show up in flex.
>
> AS:
> woo = Application.application.parameters.url;
>
> HTML:
> 
>
>  flashvars="url=woo">
> 
>
> What am I missing?
>
> Thanks!
>
>  
>


[flexcoders] ItemRenderer Button fillColor

2008-04-02 Thread jmfillman
I am trying to take the "value" field from the array, and use it in 
an itemRender to set the color of a button in the itemRender. What is 
the correct syntax for this?


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




  

 

  





Re: [flexcoders] checking for an existing VBox container in ActionScript?

2008-04-02 Thread DreamCode
something like this ?


if (!theBox){
var vBox:VBox = new VBox();
vBox.id = 'theBox";
vBox.styleName = "theBoxStyle";
addChild(vBox);
}

// Add content to the box or whatever


--API




On Wed, Apr 2, 2008 at 11:23 AM, Anthony Ettinger <[EMAIL PROTECTED]> wrote:

>   I want to dynamically create a VBox container for messaging from
> ActionScript, however it's unclear to me how to check if one already
> exists given its ID.
>
> var vBox:VBox = new VBox();
>
> vBox.id = 'theBox";
> vBox.styleName = "theBoxStyle";
>
> addChild(vBox); // here is where I want to check for getById('theBox')
> in the DOM before adding a new one.
>
> --
> Anthony Ettinger
> 408-656-2473
> http://anthony.ettinger.name
> 
>


Re: [flexcoders] Calendar / Scheduling Component

2008-04-02 Thread matt wicks

Have you looked at the ganttSheet that Ilog have created?
http://www.ilog.com/products/elixir/

matt
On 2 Apr 2008, at 20:19, Tom Armstrong wrote:



Hi All,

I'm looking for a component to help with a scheduling application  
that I'm building in flex. I need the ability to drag-drop dates /  
tasks, etc. I read somewhere that Adobe was working on such a  
component but can't find it. Any links to help with existing  
components would help.


Thanks,

Tom






[flexcoders] Re: Posted bug in Adobe with description of the problem

2008-04-02 Thread lytvynyuk
Thank you Rick!  I appreciate you attention and help.
Yes, there are some workarounds I figured, I think it should consider
column width always, not only when creating DataGrid component, similar
story happening with resizing.

--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]>
wrote:
>
> Yeah. this is an issue partially related to creation and the fact that
> column width - well that's another story. Here is a quick fix. add the
> listener to each of your grids and copy/paste the function.
>
>
>
> grid.addEventListener( Event.RENDER, handleDataGridRenderEvent );
>
>
>
> private function handleDataGridRenderEvent( event:Event ):void
>
> {
>
>   var dg:DataGrid = DataGrid( event.target );
>
>
>
>   dg.columns[0].width = 100;
>
>   dg.columns[0].minWidth = 100;
>
>   dg.columns[1].width = dg.width - 100 - 100;
>
>
>   dg.columns[2].width = 100;
>
>
> }
>
>
>
> There is an initial blink - as the data grid gets its first render
event and
> sets the columns. Hmm. its 4:05 a.m. - and I'm thinking that this
probably
> isn't the best way to do this. Let me get some sleepy and I'll look at
this
> again.
>
>
>
> Rick Winscot
>
>
>
>
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of lytvynyuk
> Sent: Tuesday, April 01, 2008 4:22 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Posted bug in Adobe with description of the
problem
>
>
>
> May be I do something wrong, but I will give a change to somebody from
> Adobe tell me what is going on.
>
> http://bugs.adobe.com/jira/browse/SDK-15121
>




[flexcoders] checking for an existing VBox container in ActionScript?

2008-04-02 Thread Anthony Ettinger
I want to dynamically create a VBox container for messaging from
ActionScript, however it's unclear to me how to check if one already
exists given its ID.

var vBox:VBox = new VBox();

vBox.id = 'theBox";
vBox.styleName = "theBoxStyle";

addChild(vBox); // here is where I want to check for getById('theBox')
in the DOM before adding a new one.





-- 
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name


  1   2   >