[flexcoders] Re: How to Convert LCDS project into AIR?

2007-11-26 Thread Vinoth Babu
I don't find any response. Oh! my god.

--- In flexcoders@yahoogroups.com, Vinoth Babu [EMAIL PROTECTED] wrote:

 Hi All,
 
 I'm using Flex builder 2 pluing and  LCDS in Eclipse IDE (backend
 java), Now I want to convert this project into AIR application.
 
 Need your help for conversion.
 
 Thanks in advance,
 Vinoth Babu T.J





Re: [flexcoders] Helpers - Global function

2007-11-26 Thread Ralf Bokelberg
Typically you use a class with static methods for this.
Cheers
Ralf.

On Nov 26, 2007 6:56 AM, Rafael Faria [EMAIL PROTECTED] wrote:






 There is any way to create helpers? like... functions that will be
  seen on any component or class?

  how and where i declare this kind of function to be shown outside the
  scope i'm declaring?!

  



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


Re: [flexcoders] Index of item in list

2007-11-26 Thread Muzak
Make sure your item renderer implements IDropInListItemRenderer
Define a listData getter/setter, which, when set by the component using the 
item renderer, will contain the index you need.

http://livedocs.adobe.com/flex/201/langref/mx/controls/listClasses/IDropInListItemRenderer.html
http://livedocs.adobe.com/flex/201/langref/mx/controls/listClasses/BaseListData.html

If you're writing the item renderer in MXML and the base class does not 
implement IDropInListItemRenderer, you can do the following:

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
 implements=mx.controls.listClasses.IDropInListItemRenderer
 

 mx:Script
  ![CDATA[

   import mx.controls.listClasses.BaseListData;

   // Internal variable for the listData property value.
   private var _listData:BaseListData;

   [Bindable(dataChange)]
   public function get listData():BaseListData {
return _listData;
   }
   public function set listData(value:BaseListData):void {
_listData = value;
   }

/mx:Canvas

You can then use _listData.columnIndex, _listData.rowIndex


And, if you haven't already, read Alex's article about DataGrid/List item 
renderers:
http://blogs.adobe.com/aharui/2007/03/

regards,
Muzak

- Original Message - 
From: learner [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, November 26, 2007 8:31 AM
Subject: [flexcoders] Index of item in list


I am using a list control and trying to give a alternate styles to it.
 (not just alternate colors).
 Hence I want to know the  index at which the current Item is going..

 Is there any way to know the instance of item renderer  it's
 currentIndex in List?

 Something like this :

 mx:List itemRenderer = myItem dataProvider ={p}/


 comp myItem :

 [Bindable] index:Number // index in the list.

 Thanks in advance
 Regards
 PS
 



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

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

* 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: [flexcoders] Re: Flex Remoting Options - Any Opinions?

2007-11-26 Thread Douglas McCarroll
I'd like to repeat Steven's question. I'm really curious about this.
How many simultaneous connections can LCDS handle on one CPU? I
realize that this will vary a great deal, depending on the application
and the CPU, but it would be great to get a ballpark idea.

Anatole - you suggested, I would try to see if you can scale
application in any other way - 4 core single CPU and removal all
business functionality to different servers.  Have you done this or
something similar on some of your projects? If so, how many
simultaneous users will these apps support?

And does anyone else have any experience with this?

This is obviously an important question. Going beyond one CPU takes us
from free to lots of money. What will free handle? I've been
curious about this for quite a while and have yet to run across any
information on the subject.

Thanks in advance for any input!

Douglas McCarroll

On Nov 15, 2007 3:28 PM, Anatole Tartakovsky
[EMAIL PROTECTED] wrote:




 That part is not AMF specific - and Apache or Tomcat will have no issues of
 doing it - that is purely bandwidth issue.

 As far as AMF/RTMP streaming main issue is robustness. It is very easy to
 get any of the products to run on the reliable network. We do use OpenAMF
 and proprietary performance extensions on low cost/ non-critical projects.
 For high-end applications we extend LCDS stack to fix underlying TCP/IP
 problems(  financial clients, real-time messaging). We do not advertise low
 end product as it potentially might have reliability problems. Indeed, in
 order to provide even basic recoverability and batching on the top of
 openAmf  we had to write tons of code. Only with significant investment and
 know how you can get comparable performance and reliability

 Unless Adobe releases both ends of the protocol in the open source you would
 have inherient reliability issues. While we acquired significan know how
 in the last 2 years,  using native AMF and RTMP classes is a risky business
 as Adobe constantly changes framework and pieces of protocol.  The main
 effort of the testing should be around protocol performance and reliability
 ( like pulling the network wire).and it can be a while till AMF/RTMP will
 become standard - most likely only after release of the client/server code
 in open source.

 Sincerely,
 Anatole Tartakovsky



 On 11/15/07, Steve Hueners [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  Is there anyway to judge what level of user connections a given server can
 handle without requiring specialized loadsharing strategies? In a non-audio
 or video environment what's it take to stream an AS3 based swfs to 3-5 dozen
 connections?
 
 
 
 
  On 10/16/07, Anatole Tartakovsky  [EMAIL PROTECTED] wrote:
 
  
  
  
  
  
  
  
   I would try to see if you can scale application in any other way - 4
 core single CPU and removal all business functionality to different servers
 is always an option. You might get even better scalablity by going RTMP
 route or provide pseudo-connectivity wrapper using non-blocking IO  via
 client - proxy - LCDS - Messaging - LCDS - proxy -client pish.
  
   Regards,
   Anatole
  
  
   On 10/16/07, Bruce Hopkins [EMAIL PROTECTED]  wrote:
   
   
   
   
   
   
Yeah, I'm using HTTPService right now with E4X results. The for large
 data results, however, XML is not desirable.
   
I'd prefer to use some framework that uses AMF3 in order to get more
 compact results.
   
Bruce
   
   
   
On 10/16/07, Jeff Schuenke [EMAIL PROTECTED]  wrote:






 You can also just use HTTPService to do direct HTTP requests. I am
 using this for communications with a JAVA backend.

 --- In flexcoders@yahoogroups.com, Bruce Hopkins [EMAIL PROTECTED]

 wrote:
 
  Hi all,
 
  All I want to do is have my Flex client to communicate with my
 Java
 backend.
  Due to licensing restrictions, LCDS won't be an option for us. So
 far the
  biggest contenders are:
 
  1. Granite Data Services
  2. OpenAMF
  3. WebORB
  4. Red5
 
  Does anyone have any strong opinions, suggestions, or biases on
 either of
  these solutions?
 
  Thanks,
 
  Bruce
 




   
   
   
   
   
   
   
  
  
  
  
  
 
 
 
 
 
 
 




 


[flexcoders] Flex linkedin group

2007-11-26 Thread Cesare Rocchi
Hiyall, 

I created a Flex addict group on linkedin.
Wanna join? Here is the link:

http://www.linkedin.com/e/gis/41779/64AA393D82A5

ps. If you need a linkedin invitation, I have five.
Let me know.

-c.


  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/


[flexcoders] Data Binding and dealing with NULLs

2007-11-26 Thread triggersoftware
I hit this problem quite often and wonder if there is a general
solution...

I have a component which displays a list of questions and has the
concept of a current question i.e. the question the user is answering:

mx:Script
![CDATA[
import mx.collections.ArrayCollection;

[Bindable]  
public var questions:ArrayCollection;

[Bindable]
public var currentQuestion:MultipleChoiceQuestion =
questions[lstBox.selectedIndex];
]]
/mx:Script

The problem is that the questions array doesn't get populated until
after Flex has tried to setup all the bindings meaning I get a
NullPointer when it tries to setup currentQuestion.

At the moment I have to get around this with the following code:

!-- Databinding of Current Question --
mx:Script
![CDATA[
private function init():void {
refreshCurrentQuestion();
}

public function refreshCurrentQuestion():void {
if (questions != null) {
currentQuestion = 
questions[lst.selectedIndex];
}   
}
]]
/mx:Script

This seems quite hacky...



[flexcoders] adding children: best practices

2007-11-26 Thread johantrax
Hi all,

I have some components that dynamically generate their children.
However I'm wondering what would be the best practice for this, or
which method you prefer and why.

Currently I'm down to 2 methods:
1. creating/adding the childcomponents in an initialize handler,
bindings get executed in a creationCompleteHandler except when they
influence the layout (like the width/height of a datagrid)

2. overriding the createChildren-method, again most binding go into
the creationCompleteHandler()

Appreciate every opinion,
--jeetee



RE: [flexcoders] Multiple Bubble Chart itemRenderer

2007-11-26 Thread Sunil Bannur
Hi Steve, changing the itemrenderer dynamically (once the series and
items have already been created) in charts is not supported, pls. file
an enhancement request at http://bugs.adobe.com/flex , so that it can be
considered. 

 

Thanks

-Sunil

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: Monday, November 26, 2007 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Multiple Bubble Chart itemRenderer

 

Hello All!!!

I am creating a bubble chart with custom renderer. The render item
is basically
a button in a canvas. Depending on the bubbles' value the buttons
get their color.
This part works fine.

I have another custom itemRenderer which I want to assign to the
bubbleSeries
if a particular event occurs.

The problem I am having is -- assigning itemrenderer dynamically to
a bubbleserier.

Here are the lines that I tried but did not work:

var series:Object = bubblechart.series[0];
// bubblechart is main charts id
series.itemRenderer = new ClassFactory(bubbleRenderer1); //
bubbleRenderer1 is custom renderer

Any help will be appreciated.

Best regards...

Steve

 



[flexcoders] Re: HttpService not called the first time

2007-11-26 Thread gers32
Being a Flex newbie, I can only think of one way to solve this dilemma
(assuming I ever encounter performance problems at startup):

I thought it was a good idea to implement each HttpService in the
Component that displays the retrieved data, which is saved to an
application-wide Model, accessible to all Components. One solution
would be to centralize all HttpServices in the main application file;
they would populate the Model in the same way, but not require the
existence of their corresponding Components.

I'm sure there are better solutions out there... Thanks,

Chris.

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 Defeat deferred instantiation judiciously, if at all.  It is an easy
 fix, but has consequences.  Better practice is to use binding or your
 own event system to reference data at the right time.
 
  
 
 Tracy



[flexcoders] Access Flash through JS - FABridge?

2007-11-26 Thread s_tibrewal
Hello Folks,

I have a Flash project with corresponding .fla and .swf files. I am
trying to manipulate the flash through JavaScript. I could manipulate
flex .swf files rather easily through the FABridge but I am not quite
sure how to use the FABridge in the Flash context.

The problem arises because in the .mxml files for Flex, I simply
insert fab:FABridge xmlns:fab=bridge.*/ and all that I can do in
Flex can be done in JS. This code insertion is done in the XML part of
.mxml file, outside the mx:Script tag. Since Flash is all
ActionScript, how do I make the functionality from the .swf file
created through Flash available to JavaScript?

I have heard of tools like AFlax but I am hoping that instead of
having to learn another interface, somehow I could just use FABridge
with Flash.

Would appreciate any thoughts anyone has - sounds like a fairly common
issue for someone trying to manipulate Flash and there must be an easy
solution for this out there. I am fairly new to Flex/Flash so if I am
mixing some terminology please let me know and I will be happy to clarify.

Thanks,
Sanjay.



RE: [flexcoders] Capture Flex screen to e-mail...

2007-11-26 Thread Mike Krotscheck
The graphic nature of Flex makes it so your only real option is to
screenshot the application and mail it to them as a graphic. To do this
within Flex, see whether Application implements IBitmapDrawable- that
will allow you to use bitmapData.draw() and get the raw display data.
Once you have that, you've got two options: If you're in an AIR
application, you can just write the file to the desktop and have them
mail it. If not, you'll need to bounce it out to a server and mail it
from there.

 

Make sure you call BitmapData.dispose() though- they're normally passed
over by garbage collection.

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Sunday, November 25, 2007 11:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Capture Flex screen to e-mail...

 

In an application that I wrote years ago in ASP classic, I had a 
button on every page that would allow the user to e-mail the current 
page to someone. It would actually capture the innerHTML, and append 
it to an e-mail and send it. The purpose was to capture a snapshot of 
the data at the time the page was rendered. It was great for trouble 
shooting customer complaints because we could see what they saw at 
that particular time (thit was a 600 user DB app, and the data 
changed frequently).

I would like to do something similar in Flex. Yes I know I can have 
the user do an Alt-Print-Screen, and paste it into word or paint, and 
send the image, but I was hoping for something more seamless. 
Something I coud put on each panel that the user could click, and it 
would popup a box that would ask where to e-mail it to. It would 
attach the current rendered panel to an e-mail as a jpg, pdf, png... 

I have the e-mail piece operational, but I haven't a clue where to 
start on the capture piece.

Anybody have any good ideas?

Paul

 



RE: [flexcoders] Skinning a Panel in Flex

2007-11-26 Thread Clinton D. Judy
No answers yet? Should I package up the materials I have so ya'll can
try them out yourselves? I'm still hoping this will be a simple fix.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clinton D. Judy
Sent: Friday, November 23, 2007 7:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Skinning a Panel in Flex

 

I'm trying to skin panels for use in Flex, but my corners, which are
rounded, keep getting squished. I'm sure I'm doing it right in Flash: My
own drawing is lined up with the reference point (0, 0), the 4
guidelines for scale9 are in the right places and everything. And in my
css file, I have:

Panel

{

  borderSkin: Embed(source=flex_skins.swf,
symbol=Panel_borderSkin);

  borderThicknessLeft: 16;

  borderThicknessRight: 16;

  borderThicknessTop: 0;

  borderThicknessBottom: 16;

  headerHeight: 16;

} 

Where am I going wrong? Something else I should add, my panel gets
stretched depending on what size I want to make it at, but it looks like
the scale9 stuff is ignored completely, stretching the underlying swf as
if it were just one bitmap with no scale9 stuff.

Clinton

 

 



[flexcoders] Flicker Authorization tutorials

2007-11-26 Thread Noyes, Jeff
Any good ones out there.  I've seen several for accessing public
pictures doing a search, but I'd like to access my own pictures.
 
Thanks


[flexcoders] multiline button on button bar

2007-11-26 Thread myasandy2
Using some examples I found on line, I have made a button with a 
multiline label, but I am lost on how to apply this to a button in a 
button bar.

Any help would be greatly appreciated.
TIA
Sandy



[flexcoders] Simple question about remoteObject?

2007-11-26 Thread Phill B
I have a remoteObject component in a RO dir. I want to call to it in
another component. How do I go about this? I've searched the web but
didn't find anything that helped.

I tried using this:
mx:Form xmlns:RO=RO.* xmlns:mx=http://www.adobe.com/2006/mxml;
in the component that is needs access to the RO but still didn't work.

Thanks

-- 
Phil


[flexcoders] Plot Using XML Attributes

2007-11-26 Thread rketcham

I have an xml file that I get through an http serivce:

mx:HTTPService id=nodeChannels url={url}
result=onResultHttpService(event) resultFormat=e4x/

I then use onResultHttpService to load the xml file into an XML list
collection

private function onResultHttpService( avResultEvent :ResultEvent ):void
{
   lvXmlList= (avResultEvent.result as XML).point;
   mvXmlListCollection = new XMLListCollection(
lvXmlList ); 
}

The XML file is as follows:

data
point tick=7981 timestamp=0-0-0T00:00:00.0
channel number=18190/channel
channel number=28190/channel
/point

point tick=7982 timestamp=0-0-0T00:00:00.0
channel number=18190/channel
channel number=28190/channel
/point

point tick=7983 timestamp=0-0-0T00:00:00.0
channel number=18190/channel
channel number=28190/channel
/point
/data

I want to be able to plot the channels with respect to the tick attribute in
the point node.  So, if I were to be using a line series, the first point
for channel 1 is (7981, 8190)  and  (7981,8190) for channel 2 - since they
both have the same value.


I want to plot this data using a line series:

!-- Begin Graphing -- 
mx:LineChart id=DataChart width=100% height=95% alpha=1.0
mx:series
mx:LineSeries id=c1 displayName=Channel 1
dataProvider={mvXmlListCollection} yField= xField=@tick/

mx:LineSeries id=c2 displayName=Channel 2
dataProvider={mvXmlListCollection} yField= xField=@tick/
/mx:series
/mx:LineChart

Here's the problem: I can get the xaxis values to be defined as the value of
the tick attribute in the point node. I, however, am unable to plot the
channel amplitude with respect to the tick.  What do I need to type for the
yField value in order to access a specific channel (such as
lvXmlList.channel.(@number==1))?

Thanks.
Rich
-- 
View this message in context: 
http://www.nabble.com/Plot-Using-XML-Attributes-tf4876273.html#a13953381
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] SetStyleAction - clear style?

2007-11-26 Thread rkettrey
With respect to styles, you can setStyle() or clearStyle().  There is 
an effect, SetStyleAction, that allows you to accomplish the setStyle().

Is there some way of accomplishing clearStyle() as an effect?  Using a 
SetStyleAction with a value of null does not work, as the style is 
still there, and for ints a null style value is often interpreted as 0.

At this stage I am thinking of making a custom effect, which seems easy 
enough, but did not want to re-invent the wheel.

-Ryan



RE: [flexcoders] multiline button on button bar

2007-11-26 Thread Alex Harui
You would set navItemFactory to a class factory for your button.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of myasandy2
Sent: Monday, November 26, 2007 8:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] multiline button on button bar

 

Using some examples I found on line, I have made a button with a 
multiline label, but I am lost on how to apply this to a button in a 
button bar.

Any help would be greatly appreciated.
TIA
Sandy

 



[flexcoders] Re: Application container failed to capture KeyboardEvent

2007-11-26 Thread zhongtie
Thanks Alex. That works!

When I switch to another application and then switch back, my all
flash application loses the focus and no event fires at all unless I
click somewhere in it. Is there any way around it?

Tie

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 No children of the Application have focus, so there are no events to
 capture.  If you listen to the stage, you'll see everything.  The app is
 not the top-level displayobject so your handlers will not pick up events
 from popups either.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of zhongtie
 Sent: Saturday, November 24, 2007 6:22 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Application container failed to capture
 KeyboardEvent
 
  
 
 My simple flex app somehow doesn't respond to key event, but mouse
 events work fine. Any ideas?
 
 Thanks,
 Tie
 
 --- src code ---
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 layout=absolute
 keyDown=onEvent(event)
 mouseDown=onEvent(event)
 mx:Script
 ![CDATA[
 protected function onEvent(e:Event):void {
 trace(e.type);
 }
 ]]
 /mx:Script
 /mx:Application





[flexcoders] Dynamically Changing Easing Function Again

2007-11-26 Thread Amy
I am trying to create an easing function explorer to be able to compare 
the existing easing functions.  However, I am having a problem with the 
syntax to change out the function at runtime.  I feel like I am really 
close here, but I am at a loss as to what else to try.  Here is the 
function I am using.

private function onListChange(e:Event):void {
easingFunction = e.target.selectedItem.label;
goToBottom.easingFunction = getDefinitionByName
(mx.effects.easing.+easingFunction).easeIn;
goToTop.easingFunction = getDefinitionByName
(mx.effects.easing.+easingFunction).easeIn;
}



[flexcoders] UIComponent.graphics not respecting a grandparent's clipContent

2007-11-26 Thread Erik Price
Hi,

I'm observing some strange behavior regarding the clipContent of a
Canvas as applied to some lines that are programatically drawn via one
of its grandchildren's Sprite.graphics object.  What I am seeing is
that the clipContent property is not respected by its grandchildren
(kids these days have no respect) if the intermediate child is not
outside of the Canvas's boundaries.

A diagram might help me explain this better:

Canvas id=workspace width=200 height=200 clipContent=true
  UIComponent id=drawingLayer width=200 height=200/
/Canvas

If I programatically add children to drawingLayer, and then use
those children's graphics property to draw lines programatically,
the lines will appear outside of workspace.

What is interesting is that if I change the width and height of
drawingLayer to 201 (so that a part of drawingLayer appears
outside the boundaries of workspace), then the
workspace.clipContent is respected and the lines are clipped as
expected.  Unfortunately, I cannot use this as a workaround because
workspace needs its scroll policies set to auto for other reasons,
and having drawingLayer outside of workspace would cause
undesirable scroll bars.

Am I describing a known bug?  (Btw I can post a 20-line sample
application that demonstrates this.)

Thanks in advance!

Erik


[flexcoders] RegExp multiple backreferences?

2007-11-26 Thread joshuajnoble
Can any RegEx genius :) tell me whether ActionScript 3 properly
supports multiple backreferences? The code I'm trying to use is this:

private var headerBackreference:RegExp = 
/H([123]).*?\/H\1/;
private function init():void {
var s:String = BODYH2Valid Chocolate/H2 
H2Valid
Vanilla/H2 H2Invalid HTML/H3/BODY;
var a:Array = headerBackreference.exec(s) as 
Array;
if(a != null) {
for(var i:int = 0; ia.length; i++) {
trace(a[i]);
}
}
a = s.match(headerBackreference);
if(a != null) {
for(var i:int = 0; ia.length; i++) {
trace(a[i]);
}
}
}


I'm just trying to determine whether in fact this should return both
the chocolate and the vanilla, or whether the behavior I see,
returning just chocolate, is accurate. Thanks,

Josh



[flexcoders] Please ignore my Regex backreference question

2007-11-26 Thread joshuajnoble
I forgot the global flag, jeez :(



[flexcoders] Re: Simple question about remoteObject?

2007-11-26 Thread Phill B
I guess I'm way off with what I'm trying to do and need step back a
little bit. Apparently I'm not even using the remoteObject correctly.

On Nov 26, 2007 10:30 AM, Phill B  wrote:
 I have a remoteObject component in a RO dir. I want to call to it in
 another component. How do I go about this? I've searched the web but
 didn't find anything that helped.

 I tried using this:
 mx:Form xmlns:RO=RO.* xmlns:mx=http://www.adobe.com/2006/mxml;
 in the component that is needs access to the RO but still didn't work.

 Thanks



[flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-26 Thread ben.clinkinbeard
FYI, in case you haven't seen this one:
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.html


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

 I am trying to create an easing function explorer to be able to compare 
 the existing easing functions.  However, I am having a problem with the 
 syntax to change out the function at runtime.  I feel like I am really 
 close here, but I am at a loss as to what else to try.  Here is the 
 function I am using.
 
 private function onListChange(e:Event):void {
   easingFunction = e.target.selectedItem.label;
   goToBottom.easingFunction = getDefinitionByName
 (mx.effects.easing.+easingFunction).easeIn;
   goToTop.easingFunction = getDefinitionByName
 (mx.effects.easing.+easingFunction).easeIn;
 }





[flexcoders] VerticalScrollBar Not Being Accounted For?

2007-11-26 Thread Matt
Hey guys, I'm seeing an issue in my Flex code that I can't imagine has
gone unseen to this point. If I have a Box with vertical scroll policy
set to auto, the height is set to an explicit value, the width is set
to auto, and I've added several labels in a vertical layout that
causes the vertical scrollbar to appear it overlaps onto the label
text rather than allocating extra space necessary for the scrollbar. 
Is there an easy work-around for this or am I doing something wrong here?

Granted this will only happen for items that extend to maximum width
of the container and thus get overlapped by the space necessary to
display the vertical scrollbar, but this is problematic as I don't
want it to hide any of the text.

Thanks in advance!



Re: [flexcoders] UIComponent.graphics not respecting a grandparent's clipContent

2007-11-26 Thread Daniel Freiman
This is by design.  Flex clipping is expensive (at least relative to not
clipping), so Flex Containers don't clip unless measurement says they
should.  Drawing isn't included in measurement.  You can use
mx_internal::forceClipping but then you're using mx_internal.

- Dan Freiman

On Nov 26, 2007 12:42 PM, Erik Price [EMAIL PROTECTED] wrote:

   Hi,

 I'm observing some strange behavior regarding the clipContent of a
 Canvas as applied to some lines that are programatically drawn via one
 of its grandchildren's Sprite.graphics object. What I am seeing is
 that the clipContent property is not respected by its grandchildren
 (kids these days have no respect) if the intermediate child is not
 outside of the Canvas's boundaries.

 A diagram might help me explain this better:

 Canvas id=workspace width=200 height=200 clipContent=true
 UIComponent id=drawingLayer width=200 height=200/
 /Canvas

 If I programatically add children to drawingLayer, and then use
 those children's graphics property to draw lines programatically,
 the lines will appear outside of workspace.

 What is interesting is that if I change the width and height of
 drawingLayer to 201 (so that a part of drawingLayer appears
 outside the boundaries of workspace), then the
 workspace.clipContent is respected and the lines are clipped as
 expected. Unfortunately, I cannot use this as a workaround because
 workspace needs its scroll policies set to auto for other reasons,
 and having drawingLayer outside of workspace would cause
 undesirable scroll bars.

 Am I describing a known bug? (Btw I can post a 20-line sample
 application that demonstrates this.)

 Thanks in advance!

 Erik
  



[flexcoders] Re: Capture Flex screen to e-mail...

2007-11-26 Thread aceoohay
The current application is pure Flex. So just the Flex part.

Paul

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

 Are you wanting to capture just the Flex part? Or also the browser
 rendered HTML part?
 
 --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote:
 
  In an application that I wrote years ago in ASP classic, I had a 
  button on every page that would allow the user to e-mail the 
current 
  page to someone. It would actually capture the innerHTML, and 
append 
  it to an e-mail and send it. The purpose was to capture a 
snapshot of 
  the data at the time the page was rendered. It was great for 
trouble 
  shooting customer complaints because we could see what they saw 
at 
  that particular time (thit was a 600 user DB app, and the data 
  changed frequently).
  
  I would like to do something similar in Flex. Yes I know I can 
have 
  the user do an Alt-Print-Screen, and paste it into word or 
paint, and 
  send the image, but I was hoping for something more seamless. 
  Something I coud put on each panel that the user could click, 
and it 
  would popup a box that would ask where to e-mail it to. It would 
  attach the current rendered panel to an e-mail as a jpg, pdf, 
png... 
  
  I have the e-mail piece operational, but I haven't a clue where 
to 
  start on the capture piece.
  
  Anybody have any good ideas?
  
  Paul
 





[flexcoders] Re: Capture Flex screen to e-mail...

2007-11-26 Thread aceoohay
Pardon my ignorance, but how do I see whether Application 
implements IBitmapDrawable?

This application is pure Flex (AS3) running in a browser. I will do 
further research on bitmapData.draw(), and see if it is available to 
me.

Paul

--- In flexcoders@yahoogroups.com, Mike Krotscheck 
[EMAIL PROTECTED] wrote:

 The graphic nature of Flex makes it so your only real option is to
 screenshot the application and mail it to them as a graphic. To do 
this
 within Flex, see whether Application implements IBitmapDrawable- 
that
 will allow you to use bitmapData.draw() and get the raw display 
data.
 Once you have that, you've got two options: If you're in an AIR
 application, you can just write the file to the desktop and have 
them
 mail it. If not, you'll need to bounce it out to a server and mail 
it
 from there.
 
  
 
 Make sure you call BitmapData.dispose() though- they're normally 
passed
 over by garbage collection.
 
  
 
 Michael Krotscheck
 
 Senior Developer
 
  
 RESOURCE INTERACTIVE
 
 http://www.resource.com/ www.resource.com 
http://www.resource.com 
 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 
_
___
 
 This email and any of its attachments may contain Resource 
Interactive
 proprietary information, which is privileged, confidential and may 
be
 subject to copyright or other intellectual property rights 
belonging to
 Resource Interactive. This email is intended solely for the use of 
the
 individual or entity to which it is addressed. If you are not the
 intended recipient of this email, you are hereby notified that any
 dissemination, distribution, copying or action taken in relation 
to the
 contents of and attachments to this email is strictly prohibited 
and may
 be unlawful. If you have received this email in error, please 
notify the
 sender immediately and permanently delete the original and any 
copy of
 this email and any printout.
 
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of aceoohay
 Sent: Sunday, November 25, 2007 11:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Capture Flex screen to e-mail...
 
  
 
 In an application that I wrote years ago in ASP classic, I had a 
 button on every page that would allow the user to e-mail the 
current 
 page to someone. It would actually capture the innerHTML, and 
append 
 it to an e-mail and send it. The purpose was to capture a snapshot 
of 
 the data at the time the page was rendered. It was great for 
trouble 
 shooting customer complaints because we could see what they saw at 
 that particular time (thit was a 600 user DB app, and the data 
 changed frequently).
 
 I would like to do something similar in Flex. Yes I know I can 
have 
 the user do an Alt-Print-Screen, and paste it into word or paint, 
and 
 send the image, but I was hoping for something more seamless. 
 Something I coud put on each panel that the user could click, and 
it 
 would popup a box that would ask where to e-mail it to. It would 
 attach the current rendered panel to an e-mail as a jpg, pdf, 
png... 
 
 I have the e-mail piece operational, but I haven't a clue where to 
 start on the capture piece.
 
 Anybody have any good ideas?
 
 Paul





Re: [flexcoders] UIComponent.graphics not respecting a grandparent's clipContent

2007-11-26 Thread Erik Price
On Nov 26, 2007 2:29 PM, Daniel Freiman [EMAIL PROTECTED] wrote:

 This is by design.  Flex clipping is expensive (at least relative to not
 clipping), so Flex Containers don't clip unless measurement says they
 should.  Drawing isn't included in measurement.  You can use
 mx_internal::forceClipping but then you're using mx_internal.

Thanks for the response, Dan.  That makes a lot of sense, but it would
be great if the AS3doc for clipContent went into that detail.  I'll
check the bug database to see if it's already been logged and if not,
log it as a docs enhancement.

For anyone else who may run into this problem, I was able to use a
workaround following an approach something like this example:

Script
  private function handleResize(event:ResizeEvent):void
  {
drawingLayerMask.graphics.clear();
drawingLayerMask.graphics.drawRect(0, 0, workspace.width, workspace.height);
  }
/Script

Canvas id=workspace resize=handleResize(event)
  UIComponent id=drawingLayer mask={drawingLayerMask}/
  UIComponent id=drawingLayerMask/
/Canvas

Regards,

Erik


[flexcoders] Showing icons in ComboBox dropdowns

2007-11-26 Thread Dave Glasser
I need to show icons next to the items in a ComboBox dropdown. Unlike the List 
class, the ComboBox has no iconFunction property, and its default item renderer 
class, ListItemRender, has a *protected* icon property. 
   
  I tried accessing the ComboBox's dropdown property directly, but that didn't 
work out well. Since it seems to use a different ListBase instance each time 
its displayed, the dropdown's labelFunction property has to be set in a 
DropdownEvent.OPEN handler, and this event is fired *after* the dropdown is 
visible, so you intially see the dropdown without icons and then the icons 
appear.
   
  It seems that to accomplish this, I'll have to, at minimum, subclass 
ListItemRenderer. But this seems a rather cumbersome solution for what I 
suppose is a common need. Is there an easier way to do this?


[flexcoders] Re: multiline button on button bar

2007-11-26 Thread myasandy2
Alex -
Thanks for the help. I am still stuck. I'm newbie at extending 
classes.

NavBar.as has this note:

/**
 *  @private
 *  The factory that generates the instances of the navigation 
items.
 *  It generates instances of ButtonBarButton for ButtonBar and
 *  ToggleButtonBar, of LinkButton for LinkBar, and of Tab for 
TabBar.
 *  This var is expected to be set before the navigation items 
are created;
 *  setting it does not re-create existing navigation items based 
on the
 *  new factory.
 */
mx_internal var navItemFactory:IFactory = new ClassFactory
(Button);

I get an error that I am attemption to access an inaccessable 
property navItemFactory. I also think I may be setting the var after 
the item is created.

Thanks for your assistance.
Sandy

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 You would set navItemFactory to a class factory for your button.
 




RE: [flexcoders] Re: Capture Flex screen to e-mail...

2007-11-26 Thread Mike Krotscheck
Search the docs :). Looks like IBitmapDrawable is implemented by
BitmapData and by DisplayObject.  Since Application extends
DisplayObject (well, eventually) it looks like you can do the following:

 

var bmp :BitmapData = new BitmapData(Application.application.width,
Application.application.height, false);

bmp.draw(Application.application);

 

Just don't be surprised if your memory usage spikes and you get .OCX
errors on machines with little memory.

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com http://www.resource.com 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aceoohay
Sent: Monday, November 26, 2007 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Capture Flex screen to e-mail...

 

Pardon my ignorance, but how do I see whether Application 
implements IBitmapDrawable?

This application is pure Flex (AS3) running in a browser. I will do 
further research on bitmapData.draw(), and see if it is available to 
me.

Paul

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Mike Krotscheck 
[EMAIL PROTECTED] wrote:

 The graphic nature of Flex makes it so your only real option is to
 screenshot the application and mail it to them as a graphic. To do 
this
 within Flex, see whether Application implements IBitmapDrawable- 
that
 will allow you to use bitmapData.draw() and get the raw display 
data.
 Once you have that, you've got two options: If you're in an AIR
 application, you can just write the file to the desktop and have 
them
 mail it. If not, you'll need to bounce it out to a server and mail 
it
 from there.
 
 
 
 Make sure you call BitmapData.dispose() though- they're normally 
passed
 over by garbage collection.
 
 
 
 Michael Krotscheck
 
 Senior Developer
 
 
 RESOURCE INTERACTIVE
 
 http://www.resource.com/ http://www.resource.com/ 
www.resource.com 
http://www.resource.com http://www.resource.com  
 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 
__
___
 
 This email and any of its attachments may contain Resource 
Interactive
 proprietary information, which is privileged, confidential and may 
be
 subject to copyright or other intellectual property rights 
belonging to
 Resource Interactive. This email is intended solely for the use of 
the
 individual or entity to which it is addressed. If you are not the
 intended recipient of this email, you are hereby notified that any
 dissemination, distribution, copying or action taken in relation 
to the
 contents of and attachments to this email is strictly prohibited 
and may
 be unlawful. If you have received this email in error, please 
notify the
 sender immediately and permanently delete the original and any 
copy of
 this email and any printout.
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of aceoohay
 Sent: Sunday, November 25, 2007 11:28 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Capture Flex screen to e-mail...
 
 
 
 In an application that I wrote years ago in ASP classic, I had a 
 button on every page that would allow the user to e-mail the 
current 
 page to someone. It would actually capture the innerHTML, and 
append 
 it to an e-mail and send it. The purpose was to capture a snapshot 
of 
 the data at the time the page was rendered. It was great for 
trouble 
 shooting customer complaints because we could see what they saw at 
 that particular time (thit was a 600 user DB app, and the data 
 changed frequently).
 
 I would like to do something similar in Flex. Yes I know I can 
have 
 the user do an Alt-Print-Screen, and paste it into word or paint, 
and 
 send the image, but I was hoping for something more seamless. 
 Something I coud put on each panel that the user could click, and 
it 
 would popup a box that would ask where to e-mail it to. It would 
 attach the current 

[flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-26 Thread Amy
--- In flexcoders@yahoogroups.com, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 FYI, in case you haven't seen this one:
 
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.htm
l

Yes, I had seen that, which is why I made sure I mentioned that I was 
trying to explore the built-in functions and not making a custom 
function.  I figured people would be less likely to send me to that ;-
).  However, if you see anything in what that is doing that would 
work for what I need, maybe I have missed something.  I would love it 
if I could find a way to use this as just a generic easing explorer 
for my own objects to see what the in-built easing functions do.

This is aggravatingly difficult to do...at this point it would have 
been far faster to just do a swich case and hard-code in all the 
easing functions.  Not very dynamic or extensible, though, which kind 
of goes against the spirit of Flex.

-Amy







 --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
 
  I am trying to create an easing function explorer to be able to 
compare 
  the existing easing functions.  However, I am having a problem 
with the 
  syntax to change out the function at runtime.  I feel like I am 
really 
  close here, but I am at a loss as to what else to try.  Here is 
the 
  function I am using.
  
  private function onListChange(e:Event):void {
  easingFunction = e.target.selectedItem.label;
  goToBottom.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  goToTop.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  }
 





[flexcoders] Re: Showing icons in ComboBox dropdowns

2007-11-26 Thread Matt
Did you mean to post in reply to my question?

--- In flexcoders@yahoogroups.com, Dave Glasser [EMAIL PROTECTED] wrote:

 I need to show icons next to the items in a ComboBox dropdown.
Unlike the List class, the ComboBox has no iconFunction property, and
its default item renderer class, ListItemRender, has a *protected*
icon property. 

   I tried accessing the ComboBox's dropdown property directly, but
that didn't work out well. Since it seems to use a different ListBase
instance each time its displayed, the dropdown's labelFunction
property has to be set in a DropdownEvent.OPEN handler, and this event
is fired *after* the dropdown is visible, so you intially see the
dropdown without icons and then the icons appear.

   It seems that to accomplish this, I'll have to, at minimum,
subclass ListItemRenderer. But this seems a rather cumbersome solution
for what I suppose is a common need. Is there an easier way to do this?





[flexcoders] Confirm dialog in Flex?

2007-11-26 Thread Robert Csiki

How would I implement a Confirm-like dialog in Flex? Basically, a
confirmation popup (modal) window so the application will wait (freeze)
for the user's input and then will use it to continue its execution?

Another case would be a session timeout handling. I want to alert the
user about it in an Alert popup, then after they click on OK, to present
them with the Login screen. But I noticed if I'm popping up an Alert
box, the process execution continues, that is, it does not wait for user
to click the button (and in my case, the Login Window pops up while the
alert box is still there, behind it).

Thanks, Robert



[flexcoders] Re: VerticalScrollBar Not Being Accounted For?

2007-11-26 Thread rrullo
In same boat as you and have had the same question, but never posted it 
to Flexcoders.

So sorry, no answer, but wanted to let you know you are not alone.

-Bob

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

 Hey guys, I'm seeing an issue in my Flex code that I can't imagine has
 gone unseen to this point. If I have a Box with vertical scroll policy
 set to auto, the height is set to an explicit value, the width is set
 to auto, and I've added several labels in a vertical layout that
 causes the vertical scrollbar to appear it overlaps onto the label
 text rather than allocating extra space necessary for the scrollbar. 
 Is there an easy work-around for this or am I doing something wrong 
here?
 
 Granted this will only happen for items that extend to maximum width
 of the container and thus get overlapped by the space necessary to
 display the vertical scrollbar, but this is problematic as I don't
 want it to hide any of the text.
 
 Thanks in advance!





[flexcoders] [AIR] SWFs not displayable inside of a HTMLControl

2007-11-26 Thread khair
I'm using Flex 3 Beta for AIR

Is there a way to make SWFs display in the HTMLControl for pages that have 
Flash content?


--
-- Keith H --


RE: [flexcoders] Re: VerticalScrollBar Not Being Accounted For?

2007-11-26 Thread Alex Harui
If scrollPolicy=auto the scrollbar will overlap content.  If policy is
on the scrollbar will be factored in.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rrullo
Sent: Monday, November 26, 2007 12:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: VerticalScrollBar Not Being Accounted For?



In same boat as you and have had the same question, but never posted it 
to Flexcoders.

So sorry, no answer, but wanted to let you know you are not alone.

-Bob

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

 Hey guys, I'm seeing an issue in my Flex code that I can't imagine has
 gone unseen to this point. If I have a Box with vertical scroll policy
 set to auto, the height is set to an explicit value, the width is set
 to auto, and I've added several labels in a vertical layout that
 causes the vertical scrollbar to appear it overlaps onto the label
 text rather than allocating extra space necessary for the scrollbar. 
 Is there an easy work-around for this or am I doing something wrong 
here?
 
 Granted this will only happen for items that extend to maximum width
 of the container and thus get overlapped by the space necessary to
 display the vertical scrollbar, but this is problematic as I don't
 want it to hide any of the text.
 
 Thanks in advance!




 


RE: [flexcoders] Confirm dialog in Flex?

2007-11-26 Thread Alex Harui
There is no threads or blocking.  After you put up the alert, don't
execute any more code until you get the event back from the Alert.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Csiki
Sent: Monday, November 26, 2007 12:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Confirm dialog in Flex?



How would I implement a Confirm-like dialog in Flex? Basically, a
confirmation popup (modal) window so the application will wait (freeze)
for the user's input and then will use it to continue its execution?

Another case would be a session timeout handling. I want to alert the
user about it in an Alert popup, then after they click on OK, to present
them with the Login screen. But I noticed if I'm popping up an Alert
box, the process execution continues, that is, it does not wait for user
to click the button (and in my case, the Login Window pops up while the
alert box is still there, behind it).

Thanks, Robert

 


RE: [flexcoders] Re: multiline button on button bar

2007-11-26 Thread Alex Harui
import mx.core.mx_internal;
use namespace mx_internal;
 
Note that this API is not officially supported.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of myasandy2
Sent: Monday, November 26, 2007 11:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: multiline button on button bar



Alex -
Thanks for the help. I am still stuck. I'm newbie at extending 
classes.

NavBar.as has this note:

/**
* @private
* The factory that generates the instances of the navigation 
items.
* It generates instances of ButtonBarButton for ButtonBar and
* ToggleButtonBar, of LinkButton for LinkBar, and of Tab for 
TabBar.
* This var is expected to be set before the navigation items 
are created;
* setting it does not re-create existing navigation items based 
on the
* new factory.
*/
mx_internal var navItemFactory:IFactory = new ClassFactory
(Button);

I get an error that I am attemption to access an inaccessable 
property navItemFactory. I also think I may be setting the var after 
the item is created.

Thanks for your assistance.
Sandy

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 You would set navItemFactory to a class factory for your button.
 



 


RE: [flexcoders] Showing icons in ComboBox dropdowns

2007-11-26 Thread Alex Harui
You should just replace the dropdownFactory with a modified ClassFactory
for a list with properties { iconFunction: myFunction }



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Glasser
Sent: Monday, November 26, 2007 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Showing icons in ComboBox dropdowns



I need to show icons next to the items in a ComboBox dropdown. Unlike
the List class, the ComboBox has no iconFunction property, and its
default item renderer class, ListItemRender, has a *protected* icon
property. 
 
I tried accessing the ComboBox's dropdown property directly, but that
didn't work out well. Since it seems to use a different ListBase
instance each time its displayed, the dropdown's labelFunction property
has to be set in a DropdownEvent.OPEN handler, and this event is fired
*after* the dropdown is visible, so you intially see the dropdown
without icons and then the icons appear.
 
It seems that to accomplish this, I'll have to, at minimum, subclass
ListItemRenderer. But this seems a rather cumbersome solution for what I
suppose is a common need. Is there an easier way to do this?

 


RE: [flexcoders] Re: Application container failed to capture KeyboardEvent

2007-11-26 Thread Alex Harui
Nope, the browsers always steal focus.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of zhongtie
Sent: Monday, November 26, 2007 9:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Application container failed to capture
KeyboardEvent



Thanks Alex. That works!

When I switch to another application and then switch back, my all
flash application loses the focus and no event fires at all unless I
click somewhere in it. Is there any way around it?

Tie

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 No children of the Application have focus, so there are no events to
 capture. If you listen to the stage, you'll see everything. The app is
 not the top-level displayobject so your handlers will not pick up
events
 from popups either.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of zhongtie
 Sent: Saturday, November 24, 2007 6:22 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Application container failed to capture
 KeyboardEvent
 
 
 
 My simple flex app somehow doesn't respond to key event, but mouse
 events work fine. Any ideas?
 
 Thanks,
 Tie
 
 --- src code ---
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml  
 layout=absolute
 keyDown=onEvent(event)
 mouseDown=onEvent(event)
 mx:Script
 ![CDATA[
 protected function onEvent(e:Event):void {
 trace(e.type);
 }
 ]]
 /mx:Script
 /mx:Application




 


[flexcoders] Re: Confirm dialog in Flex?

2007-11-26 Thread Robert Csiki

Thanks Alex, that's what I was doing (using a handler for the Alert's
close event), I thought there might be a smarter way doing it.


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 There is no threads or blocking. After you put up the alert, don't
 execute any more code until you get the event back from the Alert.

 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Robert Csiki
 Sent: Monday, November 26, 2007 12:11 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Confirm dialog in Flex?



 How would I implement a Confirm-like dialog in Flex? Basically, a
 confirmation popup (modal) window so the application will wait
(freeze)
 for the user's input and then will use it to continue its execution?

 Another case would be a session timeout handling. I want to alert the
 user about it in an Alert popup, then after they click on OK, to
present
 them with the Login screen. But I noticed if I'm popping up an Alert
 box, the process execution continues, that is, it does not wait for
user
 to click the button (and in my case, the Login Window pops up while
the
 alert box is still there, behind it).

 Thanks, Robert





[flexcoders] Re: VerticalScrollBar Not Being Accounted For?

2007-11-26 Thread Matt
Alex, that did fix the problem, but is there any way to do it without
forcing the scrollbars to on?  The alternative I see is to compare
measuredHeight to height and if measuredHeight is greater then set the
scroll policy to on, and when it's equal or less it turns it off. 
This would be overriding the functionality of Flex though and if
there's a better way I would rather do it.

Thanks for your help.

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 If scrollPolicy=auto the scrollbar will overlap content.  If policy is
 on the scrollbar will be factored in.
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of rrullo
 Sent: Monday, November 26, 2007 12:11 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: VerticalScrollBar Not Being Accounted For?
 
 
 
 In same boat as you and have had the same question, but never posted it 
 to Flexcoders.
 
 So sorry, no answer, but wanted to let you know you are not alone.
 
 -Bob
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Matt matt@ wrote:
 
  Hey guys, I'm seeing an issue in my Flex code that I can't imagine has
  gone unseen to this point. If I have a Box with vertical scroll policy
  set to auto, the height is set to an explicit value, the width is set
  to auto, and I've added several labels in a vertical layout that
  causes the vertical scrollbar to appear it overlaps onto the label
  text rather than allocating extra space necessary for the scrollbar. 
  Is there an easy work-around for this or am I doing something wrong 
 here?
  
  Granted this will only happen for items that extend to maximum width
  of the container and thus get overlapped by the space necessary to
  display the vertical scrollbar, but this is problematic as I don't
  want it to hide any of the text.
  
  Thanks in advance!
 





[flexcoders] Re: multiline button on button bar

2007-11-26 Thread myasandy2
You rock!! It works like a charm. Thanks for sharing your expertise.
Sandy

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 import mx.core.mx_internal;
 use namespace mx_internal;
  
 Note that this API is not officially supported.
 
 




[flexcoders] error 1006: value not a function; on effect.play()

2007-11-26 Thread Brian
I'm getting this error while trying to call play() on a glow effect
I've created. I'm trying to call play() from within a function that is
called as a result of a bindable value being changed. Basically I have
a data model with bindable data and a Label which displays the data.
When the data changes, I'm trying to play the glow effect on the label
to highlight the change. What am I doing wrong?

All these objects are defined in the same .mxml file. Relevant
snippets are : 

myNS:Order id=order
...
(inside script tag)
public function getQtyDisplay(currentQty:int, maxQty:int):String {
  var result:String = currentQty+(+maxQty+);
  qtyGlow.play();
}
...
mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/
...
mx:Label id=qtyDisplay text={getQtyDisplay(order.currentQty,
order.maxQty)}/

The getQtyDisplay() function works fine w/out the play() call. After I
added it I started getting this error, so I wrapped the play() call in
 a try/catch block.



RE: [flexcoders] Re: VerticalScrollBar Not Being Accounted For?

2007-11-26 Thread Alex Harui
Haven't really thought if there is a 'better' way.  We do it this way so
as not to propagate scrollbars down into the children.
 
You might be able to set the paddingRight or tweak viewMetrics to add
some padding



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Monday, November 26, 2007 12:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: VerticalScrollBar Not Being Accounted For?



Alex, that did fix the problem, but is there any way to do it without
forcing the scrollbars to on? The alternative I see is to compare
measuredHeight to height and if measuredHeight is greater then set the
scroll policy to on, and when it's equal or less it turns it off. 
This would be overriding the functionality of Flex though and if
there's a better way I would rather do it.

Thanks for your help.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 If scrollPolicy=auto the scrollbar will overlap content. If policy
is
 on the scrollbar will be factored in.
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of rrullo
 Sent: Monday, November 26, 2007 12:11 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: VerticalScrollBar Not Being Accounted For?
 
 
 
 In same boat as you and have had the same question, but never posted
it 
 to Flexcoders.
 
 So sorry, no answer, but wanted to let you know you are not alone.
 
 -Bob
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Matt matt@ wrote:
 
  Hey guys, I'm seeing an issue in my Flex code that I can't imagine
has
  gone unseen to this point. If I have a Box with vertical scroll
policy
  set to auto, the height is set to an explicit value, the width is
set
  to auto, and I've added several labels in a vertical layout that
  causes the vertical scrollbar to appear it overlaps onto the label
  text rather than allocating extra space necessary for the scrollbar.

  Is there an easy work-around for this or am I doing something wrong 
 here?
  
  Granted this will only happen for items that extend to maximum width
  of the container and thus get overlapped by the space necessary to
  display the vertical scrollbar, but this is problematic as I don't
  want it to hide any of the text.
  
  Thanks in advance!
 




 


[flexcoders] widget creation on Flex builder and related problems - need some help

2007-11-26 Thread maritakous
Hi all.
I am trying to create a desktop widget application and it seems I have
made a mistake. As you know, desktop widgets are like small stickers,
they do not appear on taskbar and can be hidden or docked.
The problem is that I created an AIR application using Flex Builder 3
Beta and now I cannot find how to make that application behave like
custom-shaped window. My app appears on Windows taskbar and I don't
want it. When I drag the window (which is a custom shape) it shows
that nasty dragging rectangle around it.
As far as I found out (and tried it) I need to use cod like:
var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
initOptions.systemChrome = NativeWindowSystemChrome.NONE;
initOptions.type = NativeWindowType.UTILITY;

to hide my window from the taskbar. But it seems I cannot use such a
code for class mx:Application. Or can I (would be grateful for some idea)?
The main question is:
if I want to migrate my app to that NativeWindow based solution - then
NativeWindow is not an mx class and I cannot find how I will use Flex
Builder Design mode to arrange my GUI elements. Is it somehow possible
to wrap my mx:Application inside NativeWindow and do not have to
migrate the design from mxml files to pure ActionScript?

The second issue - if I want to use some kind of subforms - like
widget settings window - when I move that window with the mouse, it is
being clipped to the region of my Application. Does that again mean
that I need to use NativeWindow for creating such a Widget settings
dialog window?

Thanks for any ideas (and especially for useful links and examples :-) )



RE: [flexcoders] Showing icons in ComboBox dropdowns

2007-11-26 Thread Dave Glasser
Worked like a charm. Thanks!

Alex Harui [EMAIL PROTECTED] wrote:You should just replace the 
dropdownFactory with a modified ClassFactory for a list with properties { 
iconFunction: myFunction }


-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave 
Glasser
Sent: Monday, November 26, 2007 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Showing icons in ComboBox dropdowns


  
  I need to show icons next to the items in a ComboBox dropdown. Unlike the 
List class, the ComboBox has no iconFunction property, and its default item 
renderer class, ListItemRender, has a *protected* icon property. 
   
  I tried accessing the ComboBox's dropdown property directly, but that didn't 
work out well. Since it seems to use a different ListBase instance each time 
its displayed, the dropdown's labelFunction property has to be set in a 
DropdownEvent.OPEN handler, and this event is fired *after* the dropdown is 
visible, so you intially see the dropdown without icons and then the icons 
appear.
   
  It seems that to accomplish this, I'll have to, at minimum, subclass 
ListItemRenderer. But this seems a rather cumbersome solution for what I 
suppose is a common need. Is there an easier way to do this?
  

  

 


[flexcoders] Re: Flex 3 + LiveCycle: Is debugging Java possible?

2007-11-26 Thread Uber_Nick
You should be able to debug the Java code just fine.  If you're using
JBoss, make sure the debugging is enabled.  The run script has a line
in it like this:

#JPDA options. Uncomment and modify as appropriate to enable remote
debugging .

#JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS

Make sure its uncommented.  Once JBoss is running, you can choose
remote debugging in Eclipse.  The standalone FlexBuilder doesn't
include this, so you can add it as a plugin, or just download a second
version of Eclipse and run both at the same time.

In Eclipse, go to Open Debug Dialog - new Remote Java Application -
(select project) - Host: localhost - Port: 8787 - Debug


--- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED]
wrote:

 ditto
 
 On Nov 22, 2007 5:25 PM, Carlos Rovira [EMAIL PROTECTED] wrote:
 
We are using eclipse wtp with tomcat and we can debug Flex, java
or both
  at once
 
  2007/11/21, jamiebadman [EMAIL PROTECTED]:
  
 Hi,
  
   Our project is a Flex 3 + LiveCycle 2.5 application and is all built
   under a single project - ie the Flex and Java are contained within a
   single project and can be built entirely from there.
  
   Nice... except for when we want to debug the Java code (which so far
   has not been necessary since it's been very simple). We can't figure
   out how to do this. There are articles by Farata and others on how
   this can be done but these seem to require the Java in a separate
   project in Eclipse.
  
   Has anyone managed to accomplish what we're trying to do - and
if so,
   would you mind sharing the steps required?
  
   We're currently using JBoss but if we need to switch to Tomcat,
   Weblogic or JRun for the purposes of debugging this is not a
problem.
  
   Thanks,
  
   Jamie.
  
  
 
 
  --
  ::| Carlos Rovira
  ::| http://www.carlosrovira.com
  ::| http://www.madeinflex.com
  
 
 
 
 
 -- 
 j:pn
 \\no comment





[flexcoders] Re: Confirm dialog in Flex?

2007-11-26 Thread per.olesen


--- In flexcoders@yahoogroups.com, Robert Csiki [EMAIL PROTECTED]
wrote:


 How would I implement a Confirm-like dialog in Flex? Basically, a
 confirmation popup (modal) window so the application will wait
(freeze)
 for the user's input and then will use it to continue its execution?

[snip]
..I noticed if I'm popping up an Alert
 box, the process execution continues, ...

As the other answer told you, there is no waiting, threading, or the
likes. Flex is totally asynchronous in its operations. If you are
currently waiting by not executing more until the event comes back,
that is one way.

I have covered this extensively with respect to remote methods calls on
my blog, but the problem is basically the same. You might get some
valueable information by reading these entries about using events,
designing with callbacks and designing with tokens:

Waiting using a modal dialog
http://techpolesen.blogspot.com/2007/09/coping-with-flex-asynchronous-r\
emote.html

Designing with callbacks
http://techpolesen.blogspot.com/2007/09/coping-with-flex-asynchronous-r\
emote_26.html

Designing with tokens
http://techpolesen.blogspot.com/2007/11/coping-with-flex-asynchronous-r\
emote.html

Custom PopUps and Modal Dialogs
http://techpolesen.blogspot.com/2007/08/custom-popups-and-modal-dialogs\
-in-flex.html

Hope it helps!





[flexcoders] flash.desktop.DragManager documentation location

2007-11-26 Thread Ivo
The documentation at 

http://livedocs.adobe.com/labs/flex/3/langref/flash/desktop/DragManager.html#doDrag()


makes reference to TransferableData which is not available when using
Flex Builder. Where can I find the matching documentation to my
current Flex Builder 3 installation?

Thanks,

- Ivo



Re: [flexcoders] RegExp multiple backreferences?

2007-11-26 Thread Adnan Doric
I think you should use g (global) flag in your regexp.

Adnan

joshuajnoble wrote:

 Can any RegEx genius :) tell me whether ActionScript 3 properly
 supports multiple backreferences? The code I'm trying to use is this:

 private var headerBackreference:RegExp = /H([123]).*?\/H\1/;
 private function init():void {
 var s:String = BODYH2Valid Chocolate/H2 H2Valid
 Vanilla/H2 H2Invalid HTML/H3/BODY;
 var a:Array = headerBackreference.exec(s) as Array;
 if(a != null) {
 for(var i:int = 0; ia.length; i++) {
 trace(a[i]);
 }
 }
 a = s.match(headerBackreference);
 if(a != null) {
 for(var i:int = 0; ia.length; i++) {
 trace(a[i]);
 }
 }
 }

 I'm just trying to determine whether in fact this should return both
 the chocolate and the vanilla, or whether the behavior I see,
 returning just chocolate, is accurate. Thanks,

 Josh

  



[flexcoders] non-Flex updates not working with Flex (SVN PHPEclipse etc)

2007-11-26 Thread djhatrick
I use to have Subclipse and PHP Eclipse running on Beta 1 and Flex 2 -
which was cool.  

Now when I try to find and install and download these two plugins I
get an error: 

 Eclipse Modeling Framework (EMF) - org.eclipse.emf.converter
(2.3.0.v200706262000) requires plug-in org.eclipse.jdt.core.

Any suggestions, why this works a little differently than previous
versions.

Thanks,
Patrick



[flexcoders] Re: Helpers - Global function

2007-11-26 Thread Rafael Faria
But what if i wanted to create just normal helpers that will be seen
by any package/script/componenet/module 
?

how would i do it!?



--- In flexcoders@yahoogroups.com, Ralf Bokelberg
[EMAIL PROTECTED] wrote:

 Typically you use a class with static methods for this.
 Cheers
 Ralf.
 
 On Nov 26, 2007 6:56 AM, Rafael Faria [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  There is any way to create helpers? like... functions that will be
   seen on any component or class?
 
   how and where i declare this kind of function to be shown outside the
   scope i'm declaring?!
 
   
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35





[flexcoders] Re: Reflection -- Accessing private fields

2007-11-26 Thread Mike Morearty
Gordon's right -- the debugger's techniques can't be used outside of
the debugger.  Its techniques are completely inaccessible from
ActionScript.

- Mike Morearty, Adobe Flex Builder team


--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 cc'ing Mike to get the lowdown on this. But I'm pretty sure that
 whatever the debugger is doing can't be done from ActionScript.
  
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of marty.pitt
 Sent: Wednesday, November 21, 2007 1:14 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Reflection -- Accessing private fields
 
 
 
 Spoil sports. :)
 
 How does the debugger expose the properties and their values? Nothing
 I can leverage there?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Gordon Smith gosmith@ wrote:
 
  I don't believe you can get reflection info about protected or
 internal
  APIs either.
  
  Gordon Smith
  Adobe Flex SDK Team
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Alex Harui
  Sent: Wednesday, November 21, 2007 11:39 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: RE: [flexcoders] Reflection -- Accessing private fields
  
  
  
  Private is private.
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of marty.pitt
  Sent: Tuesday, November 20, 2007 9:25 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Reflection -- Accessing private fields
  
  Hello all.
  
  Is there any way to get the names of private / protected / internal
  variables within a class at runtime? (ie., actual reflection!)
  
  It seems it's not possible using getClassInfo().
  
  What about some sort of custom serialization? (Remembering that the
  names of the variables is not known).
  
  Any thoughts?
  
  Cheers
  
  Marty
 





[flexcoders] Re: Access Flash through JS - FABridge?

2007-11-26 Thread bloodylag
hmm I'm not sure I understand what part is your problem.

Are you having problem making javascript calls to flex using FABridge?

You seem to have set up the fab call right in flex. Now in your
javascript you should do some of the following.

When you insert your flash file into the html, you have to set up a
bridge name via the flashvars. For example

PARAM NAME=FlashVars VALUE=bridgeName=flex

Now that you've done that you can set up some javascript calls to
ensure the flex has loaded fine.



var flLoaded = false;
var flexApp;

var initCallback = function() {
flexApp = FABridge.flex.root();
if(flexApp){
flLoaded = true;
}
return;
}

// register the callback to our Flex application with the 'bridgeName'
of 'flex'

FABridge.addInitializationCallback(flex, initCallback);



That will set up the connection to the flex application, to make calls
to flex functions simply do

if(flLoaded){
   flexApp.flexFunctionName();
}


Now to make calls from flex to javascript I normally use the External
interface call.

ExternalInterface.call(javascriptFunction, parameter);

I hope this helps



RE: [flexcoders] flash.desktop.DragManager documentation location

2007-11-26 Thread Jason Szeto
Ivo,

 

flash.desktop.DragManager was renamed to flash.desktop.NativeDragManager
to avoid conflict with the mx.managers.DragManager. Docs are here:
http://livedocs.adobe.com/labs/flex3/langref/flash/desktop/NativeDragMan
ager.html

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ivo
Sent: Monday, November 26, 2007 1:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flash.desktop.DragManager documentation location

 

The documentation at 

http://livedocs.adobe.com/labs/flex/3/langref/flash/desktop/DragManager.
html#doDrag
http://livedocs.adobe.com/labs/flex/3/langref/flash/desktop/DragManager
.html#doDrag ()

makes reference to TransferableData which is not available when using
Flex Builder. Where can I find the matching documentation to my
current Flex Builder 3 installation?

Thanks,

- Ivo

 



RE: [flexcoders] error 1006: value not a function; on effect.play()

2007-11-26 Thread Jason Szeto
Brian,

 

Usually it is more helpful if you can post a stack trace with line
numbers. 

 

mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/

 

Should be:

 

mx:Glow id=qtyGlow target={qtyDisplay} color=0x99FF66/

 

You need to assign an effect target to an instance, not to the string
qtyDisplay. 

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian
Sent: Monday, November 26, 2007 1:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] error 1006: value not a function; on effect.play()

 

I'm getting this error while trying to call play() on a glow effect
I've created. I'm trying to call play() from within a function that is
called as a result of a bindable value being changed. Basically I have
a data model with bindable data and a Label which displays the data.
When the data changes, I'm trying to play the glow effect on the label
to highlight the change. What am I doing wrong?

All these objects are defined in the same .mxml file. Relevant
snippets are : 

myNS:Order id=order
...
(inside script tag)
public function getQtyDisplay(currentQty:int, maxQty:int):String {
var result:String = currentQty+(+maxQty+);
qtyGlow.play();
}
...
mx:Glow id=qtyGlow target=qtyDisplay color=0x99FF66/
...
mx:Label id=qtyDisplay text={getQtyDisplay(order.currentQty,
order.maxQty)}/

The getQtyDisplay() function works fine w/out the play() call. After I
added it I started getting this error, so I wrapped the play() call in
a try/catch block.

 



[flexcoders] player update followed by redirect loses URL variables

2007-11-26 Thread dr_stone_1024

I have run across some problems where a user using IE6 on WinXP will
access my flex app and be forced to upgrade to Flash Player 9.  This of
course is expected behavior, but the adobe.com does not redirect the
browser back to my app correctly.  What is happening is:

1) A user clicks a link such as
http://www.mydomain.com/flex/myapp.cfm?i=1j=2
http://www.mydomain.com/flex/myapp.cfm?i=1j=2

2) The myapp.cfm includes an embeded SWF (my flex app) that requires the
flash 9 update, so the user is prompted to update which takes them to
adobe.com temporarily.

3) Once the update is complete the user's browser is redirected back to
http://www.mydomain.com/flex/myapp.cfm
http://www.mydomain.com/flex/myapp.cfm .  Now without the variables I
need.

Has anyone seen this behavior?  This is happening a lot with our app - I
have been able to reproduce this problem using an unpatched XPSP2
install with IE6 (Flash 6 pre-installed).

Thanks,

Seth



RE: [flexcoders] Dynamically Changing Easing Function Again

2007-11-26 Thread Jason Szeto
Amy,

 

Did you import the easing functions? (ie. import mx.effects.easing.*). I
think you'll also have to create dummy variables of each class. These
classes won't be linked into the swf unless you perform these steps.
GetDefinitionByName will only return a result if the class is linked in.


 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Monday, November 26, 2007 9:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically Changing Easing Function Again

 

I am trying to create an easing function explorer to be able to compare 
the existing easing functions. However, I am having a problem with the 
syntax to change out the function at runtime. I feel like I am really 
close here, but I am at a loss as to what else to try. Here is the 
function I am using.

private function onListChange(e:Event):void {
easingFunction = e.target.selectedItem.label;
goToBottom.easingFunction = getDefinitionByName
(mx.effects.easing.+easingFunction).easeIn;
goToTop.easingFunction = getDefinitionByName
(mx.effects.easing.+easingFunction).easeIn;
}

 



RE: [flexcoders] Re: Helpers - Global function

2007-11-26 Thread Gordon Smith
It's possible to declare package-level functions. For example:
 
MyApp.mxml
--
 
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 
mx:Script
![CDATA[

private function clickHandler():void
{
doSomething();
}
 
]]
/mx:Script
 
mx:Button click=clickHandler()/
 
/mx:Application
 
doSomething.as
--
 
package
{
 
public function doSomething():void
{
trace(doSomething);
}
 
}

However, you can declare only one such public function per file so this
isn't typically done.
 
My advice is to re-orient yourself as to what constitutes a normal
helper. Since Flex is strongly class-oriented, the best practice for
creating helper functions in Flex is to make them static methods of
helper classes. This is what we do in the mx.utils package of the
framework.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Monday, November 26, 2007 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Helpers - Global function



But what if i wanted to create just normal helpers that will be seen
by any package/script/componenet/module 
?

how would i do it!?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Ralf Bokelberg
[EMAIL PROTECTED] wrote:

 Typically you use a class with static methods for this.
 Cheers
 Ralf.
 
 On Nov 26, 2007 6:56 AM, Rafael Faria [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  There is any way to create helpers? like... functions that will be
  seen on any component or class?
 
  how and where i declare this kind of function to be shown outside
the
  scope i'm declaring?!
 
  
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35




 


RE: [flexcoders] Flex CSS

2007-11-26 Thread Gordon Smith
I believe that a CSS selector such as #padre that starts with a # is
supposed to apply only to a tag with id=padre. Unfortunately, Flex
doesn't support this usage and therefore rejects the # syntax. The
closest thing would be to write a selector such as .padre that starts
with a dot and then put styleName=padre on the tag(s) that you want it
to apply to.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of premieritalia
Sent: Thursday, November 22, 2007 12:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex  CSS



I've created this css file

___
/* CSS file */

#padre { 

background-color: red;

width: 300px;

}

#figlio {

background-color: green;

width: 100%;

}



for my flex application, but the flex builder gives a syntax error.

Can you give me an example of css file for flex application please?

Thanks 



 


RE: [flexcoders] SetStyleAction - clear style?

2007-11-26 Thread Jason Szeto
Ryan,

 

Try using undefined instead of null. You can also just call
clearStyle() in the effectStart handler of any generic effect. 

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rkettrey
Sent: Monday, November 26, 2007 8:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SetStyleAction - clear style?

 

With respect to styles, you can setStyle() or clearStyle(). There is 
an effect, SetStyleAction, that allows you to accomplish the setStyle().

Is there some way of accomplishing clearStyle() as an effect? Using a 
SetStyleAction with a value of null does not work, as the style is 
still there, and for ints a null style value is often interpreted as 0.

At this stage I am thinking of making a custom effect, which seems easy 
enough, but did not want to re-invent the wheel.

-Ryan

 



RE: [flexcoders] Skinning a Panel in Flex

2007-11-26 Thread Jason Szeto
Clinton,

 

Support for Scale9Grid in Panel was added in Flex 3. What version are
you running?

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Anderson
Sent: Monday, November 26, 2007 6:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Skinning a Panel in Flex

 

i have had this same issue, and it's when i use bitmap graphics in flash
with scale-9, apparently it doesn't work that way, only on vector
graphics in flash.  what i do is reference the graphic file directly in
css, and also specify your scale9 grid in css as well.  then it should
work.  or the easier option is to convert your stuff to vector graphics,
but i'm not a graphics guy and have never had much luck with that. 

On Nov 26, 2007 9:40 AM, Clinton D. Judy [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

No answers yet? Should I package up the materials I have so ya'll can
try them out yourselves? I'm still hoping this will be a simple fix.

 

From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Clinton D. Judy
Sent: Friday, November 23, 2007 7:47 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Skinning a Panel in Flex

 

I'm trying to skin panels for use in Flex, but my corners, which are
rounded, keep getting squished. I'm sure I'm doing it right in Flash: My
own drawing is lined up with the reference point (0, 0), the 4
guidelines for scale9 are in the right places and everything. And in my
css file, I have:

Panel

{

  borderSkin: Embed (source=flex_skins.swf,
symbol=Panel_borderSkin);

  borderThicknessLeft: 16 ;

  borderThicknessRight: 16 ;

  borderThicknessTop: 0 ;

  borderThicknessBottom: 16 ;

  headerHeight: 16 ;

} 

Where am I going wrong? Something else I should add, my panel gets
stretched depending on what size I want to make it at, but it looks like
the scale9 stuff is ignored completely, stretching the underlying swf as
if it were just one bitmap with no scale9 stuff.

Clinton

 

 

 



RE: [flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-26 Thread Gordon Smith
 This is aggravatingly difficult to do.

You don't say what's going wrong, but I suspect that
getDefinitionByName() is returning null when you pass it a string like
mx.effects.easing.Cubic. That's because the Cubic class doesn't exist
in your SWF... the MXML compiler has no way of knowing that your app
needs it, so it doesn't link it in. One way to get it to be linked in is
to declare a static var of that type. Note that simply importing it is
NOT sufficient to link it in.

- Gordon

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute
 mx:Script
  ![CDATA[
   import mx.effects.easing.Cubic;
   private static var cubicDependency:Cubic;
   private function doit():void
   {
var easingFunction:String = Cubic;
trace(getDefinitionByName(mx.effects.easing. +
easingFunction).easeIn);
   }
  ]]
 /mx:Script
 mx:Button click=doit()/
/mx:Application





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Monday, November 26, 2007 11:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dynamically Changing Easing Function Again



--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 FYI, in case you haven't seen this one:
 
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.htm
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.htm

l

Yes, I had seen that, which is why I made sure I mentioned that I was 
trying to explore the built-in functions and not making a custom 
function. I figured people would be less likely to send me to that ;-
). However, if you see anything in what that is doing that would 
work for what I need, maybe I have missed something. I would love it 
if I could find a way to use this as just a generic easing explorer 
for my own objects to see what the in-built easing functions do.

This is aggravatingly difficult to do...at this point it would have 
been far faster to just do a swich case and hard-code in all the 
easing functions. Not very dynamic or extensible, though, which kind 
of goes against the spirit of Flex.

-Amy

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Amy amyblankenship@ wrote:
 
  I am trying to create an easing function explorer to be able to 
compare 
  the existing easing functions. However, I am having a problem 
with the 
  syntax to change out the function at runtime. I feel like I am 
really 
  close here, but I am at a loss as to what else to try. Here is 
the 
  function I am using.
  
  private function onListChange(e:Event):void {
  easingFunction = e.target.selectedItem.label;
  goToBottom.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  goToTop.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  }
 




 


RE: [flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-26 Thread Jason Szeto
Gordon beat me to it. . . 

 

This works for me:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical

  mx:Script

![CDATA[

  import mx.effects.easing.*;

  

  private var myBounce:Bounce;

  

  private function changeEasing():void

  {

var func:Function =
getDefinitionByName(mx.effects.easing.Bounce).easeIn;



myResize.easingFunction = func;

  }

]]

  /mx:Script

  

  mx:Resize id=myResize widthBy=50 duration=1000/

  

  mx:VBox width=100 height=100 backgroundColor=0xDD
mouseDownEffect={myResize}/

  mx:Button label=Change easing click=changeEasing()/

/mx:Application

 

Note that the class name is case sensitive. 

 

Jason

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, November 26, 2007 4:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Dynamically Changing Easing Function Again

 

 This is aggravatingly difficult to do.

You don't say what's going wrong, but I suspect that
getDefinitionByName() is returning null when you pass it a string like
mx.effects.easing.Cubic. That's because the Cubic class doesn't exist
in your SWF... the MXML compiler has no way of knowing that your app
needs it, so it doesn't link it in. One way to get it to be linked in is
to declare a static var of that type. Note that simply importing it is
NOT sufficient to link it in.

- Gordon

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute
 mx:Script
  ![CDATA[
   import mx.effects.easing.Cubic;
   private static var cubicDependency:Cubic;
   private function doit():void
   {
var easingFunction:String = Cubic;
trace(getDefinitionByName(mx.effects.easing. +
easingFunction).easeIn);
   }
  ]]
 /mx:Script
 mx:Button click=doit()/
/mx:Application

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Monday, November 26, 2007 11:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dynamically Changing Easing Function Again

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 FYI, in case you haven't seen this one:
 
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.htm
http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.htm

l

Yes, I had seen that, which is why I made sure I mentioned that I was 
trying to explore the built-in functions and not making a custom 
function. I figured people would be less likely to send me to that ;-
). However, if you see anything in what that is doing that would 
work for what I need, maybe I have missed something. I would love it 
if I could find a way to use this as just a generic easing explorer 
for my own objects to see what the in-built easing functions do.

This is aggravatingly difficult to do...at this point it would have 
been far faster to just do a swich case and hard-code in all the 
easing functions. Not very dynamic or extensible, though, which kind 
of goes against the spirit of Flex.

-Amy

 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Amy amyblankenship@ wrote:
 
  I am trying to create an easing function explorer to be able to 
compare 
  the existing easing functions. However, I am having a problem 
with the 
  syntax to change out the function at runtime. I feel like I am 
really 
  close here, but I am at a loss as to what else to try. Here is 
the 
  function I am using.
  
  private function onListChange(e:Event):void {
  easingFunction = e.target.selectedItem.label;
  goToBottom.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  goToTop.easingFunction = getDefinitionByName
  (mx.effects.easing.+easingFunction).easeIn;
  }
 


 



Re: [flexcoders] Re: Reflection -- Accessing private fields

2007-11-26 Thread Aaron Miller
What about making the properties protected and extending the class down into
a reflector class which is used to spy on it's parents? To get a true copy
of the original, couldn't you also access the protected properties though an
instance of the parent class? I know you can access the private properties
in an instance of the same class, so wouldn't this also be true for the
protected properties of a parent? Just an idea, haven't really tried this
myself.

Regards,
...aaron

On 11/26/07, Mike Morearty [EMAIL PROTECTED] wrote:

   Gordon's right -- the debugger's techniques can't be used outside of
 the debugger. Its techniques are completely inaccessible from
 ActionScript.

 - Mike Morearty, Adobe Flex Builder team

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gordon
 Smith [EMAIL PROTECTED] wrote:
 
  cc'ing Mike to get the lowdown on this. But I'm pretty sure that
  whatever the debugger is doing can't be done from ActionScript.
 
  - Gordon
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of marty.pitt
  Sent: Wednesday, November 21, 2007 1:14 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: Reflection -- Accessing private fields
 
 
 
  Spoil sports. :)
 
  How does the debugger expose the properties and their values? Nothing
  I can leverage there?
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  , Gordon Smith gosmith@ wrote:
  
   I don't believe you can get reflection info about protected or
  internal
   APIs either.
  
   Gordon Smith
   Adobe Flex SDK Team
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  ] On
   Behalf Of Alex Harui
   Sent: Wednesday, November 21, 2007 11:39 AM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:
 flexcoders%40yahoogroups.com
   Subject: RE: [flexcoders] Reflection -- Accessing private fields
  
  
  
   Private is private.
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com
  ] On
   Behalf Of marty.pitt
   Sent: Tuesday, November 20, 2007 9:25 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:
 flexcoders%40yahoogroups.com
   Subject: [flexcoders] Reflection -- Accessing private fields
  
   Hello all.
  
   Is there any way to get the names of private / protected / internal
   variables within a class at runtime? (ie., actual reflection!)
  
   It seems it's not possible using getClassInfo().
  
   What about some sort of custom serialization? (Remembering that the
   names of the variables is not known).
  
   Any thoughts?
  
   Cheers
  
   Marty
  
 

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


[flexcoders] Re: player update followed by redirect loses URL variables

2007-11-26 Thread bloodylag
Hey Seth,

I know this isn't a solution your looking for but is it possible for
you to store those values into a session variable to use again later
if the i and j aren't set in the url.

Again I have nothing further to suggest with the main argument you
described sorry.



[flexcoders] Re: Dynamically Changing Easing Function Again

2007-11-26 Thread Amy
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

  This is aggravatingly difficult to do.
 
 You don't say what's going wrong, but I suspect that
 getDefinitionByName() is returning null when you pass it a string like
 mx.effects.easing.Cubic. That's because the Cubic class doesn't 
exist
 in your SWF... the MXML compiler has no way of knowing that your app
 needs it, so it doesn't link it in. One way to get it to be linked in 
is
 to declare a static var of that type. Note that simply importing it is
 NOT sufficient to link it in.

I don't exactly know what is going wrong, because I haven't been able 
to find the most current debug player.  Every link I can find that 
should lead to it goes to a regular player dated somewhere around June.

It seems to me that if I am going to add extra lines declaring 
variables of all the easing types, I might as well hard-code switch 
case statements, as it is just as verbose and non-extensible.  Is there 
a more elegant way to tell Flex that it needs to link it in?

-Amy



[flexcoders] tweening an iframe container

2007-11-26 Thread elr
Hi all,

I place instances of iframe component (the Alistair Rutherford's 
version of the C. Conraets's component) ) into a tabnavigator itself 
into a panel
It works nearly perfectly (thx to Alistair's help) but as you can 
check by yourself, after some moves mixed with some tab switching, It 
fails to refresh the iframe area ( say containers located to the 
right whereas iframe content stay at the left !!?!!)  I can't even 
determine after which sequence it appears but it always appears after 
somes clicks...)

It sounds that some event handlings are still missing but I have no 
idea which ones..

Your help would really be helpful.
Thx!

Eric
( mxml file is below and iFrame.as is attached if you want to give a try)

___
?xml version=1.0 encoding=utf-8?
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:local=*
layout=absolute viewSourceURL=srcview/index.html
creationComplete=init()

mx:states
mx:State name=moved
mx:SetProperty target={panel1} name=x value=0/
mx:SetProperty target={panel1} name=height 
value=400/
/mx:State
/mx:states
mx:Script
![CDATA[
import mx.events.TweenEvent;
import mx.events.EffectEvent;
import mx.events.IndexChangedEvent;
private function init():void{
myMove.addEventListener(TweenEvent.TWEEN_START, 
onSlide);

myMove.addEventListener(TweenEvent.TWEEN_UPDATE, onSlide);
myMove.addEventListener(TweenEvent.TWEEN_END, 
onSlide);
}
private function onSlide(evt:Event):void{
var frame1:IFrame = IFrame(tab1.selectedChild);
frame1.invalidateDisplayList();
}
]]
/mx:Script
mx:Panel id=panel1 width=344 height=400 y=80 x=600
mx:TabNavigator id=tab1
width=100% height=100%
x=10 y=40
local:IFrame   id=url1 label=Google
source=http://www.google.com;
width=100% height=100%  
/  
local:IFrame   id=url2 label=Yahoo
source=http://www.yahoo.com;
width=100% height=100% /   

/mx:TabNavigator
/mx:Panel
mx:Button x=240 y=10 label=Move To Right 
click=currentState=''/
mx:Button x=127 y=10 label=Move To Left 
click=currentState='moved'/
mx:transitions
mx:Transition id=myTransition fromState=* toState=*
mx:Move  id=myMove target={panel1} 
duration=400/
/mx:Transition
/mx:transitions
/mx:Application
// ---
// IFrame.as - Alistair Rutherford, www.netthreads.co.uk
// Glasgow, Scotland Oct 2007 .
// ---
// Revision  Date  Notes
//     -
// 1.0   16/09/07  .Initial version
// 1.1   29/09/07  .Fixed bug where the frame wasn't resizing itself
//  when the source url was assigned.
// ---
// This component is based on the work of:
// 
// Christophe Conraets 
// www.coenraets.org
//
// and
//
// Brian Deitte
// http://www.deitte.com/archives/2006/08/finally_updated.htm
//
// ---
// I have made some additions to the original code
//
// - javascript support functions are now generated by the component and
// inserted directly into the DOM.
//
// - Component generates it's own div and iframe element and inserts them
// into the DOM.
//
// - When the component is created the display list is traversed from the 
// component down to the root element. At each traversal a test is made to 
// see if current component is a container. If it is a container then the 
// child of the element which leads back to the component is determined and 
// a note madeof the appropriate 'index' on the path. The index is stored 
// against a reference to the Container in a Dictionary. Also the container
// is 'seeded' with an event handler so that if the container triggers an
// IndexChangedEvent.CHANGE (i.e. when you click on a tab in a viewstack)
// the path of 'index' values down to the component 

[flexcoders] How can I avoid jumping / flickering when changing the dataprovider in a list box?

2007-11-26 Thread Anzer
Hi,

I am programmatically changing the values in an array collection which is
the data provider of a list box. 

When I change the values the list box is flickering, how can I avoid it?

 

My intention is to show an interface like windows explorer. I want to do in
place re naming and deleting in the list. 

Its working correctly but I want to remove the jumping of the list box items
after the edit.

 

Thanks
Anz

http://www.flickrmailer.com http://www.flickrmailer.com/  

 



[flexcoders] Re: Reflection -- Accessing private fields

2007-11-26 Thread marty.pitt
I like where that's headedbut can you specify generate a class at
runtime, and specify it's superclass?

--- In flexcoders@yahoogroups.com, Aaron Miller [EMAIL PROTECTED] wrote:

 What about making the properties protected and extending the class
down into
 a reflector class which is used to spy on it's parents? To get a
true copy
 of the original, couldn't you also access the protected properties
though an
 instance of the parent class? I know you can access the private
properties
 in an instance of the same class, so wouldn't this also be true for the
 protected properties of a parent? Just an idea, haven't really tried
this
 myself.
 
 Regards,
 ...aaron
 
 On 11/26/07, Mike Morearty [EMAIL PROTECTED] wrote:
 
Gordon's right -- the debugger's techniques can't be used outside of
  the debugger. Its techniques are completely inaccessible from
  ActionScript.
 
  - Mike Morearty, Adobe Flex Builder team
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Gordon
  Smith gosmith@ wrote:
  
   cc'ing Mike to get the lowdown on this. But I'm pretty sure that
   whatever the debugger is doing can't be done from ActionScript.
  
   - Gordon
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
[mailto:
  flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
   Behalf Of marty.pitt
   Sent: Wednesday, November 21, 2007 1:14 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: [flexcoders] Re: Reflection -- Accessing private fields
  
  
  
   Spoil sports. :)
  
   How does the debugger expose the properties and their values?
Nothing
   I can leverage there?
  
   --- In flexcoders@yahoogroups.com
flexcoders%40yahoogroups.commailto:
  flexcoders%40yahoogroups.com
   , Gordon Smith gosmith@ wrote:
   
I don't believe you can get reflection info about protected or
   internal
APIs either.
   
Gordon Smith
Adobe Flex SDK Team
   

   
From: flexcoders@yahoogroups.com
flexcoders%40yahoogroups.commailto:
  flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
flexcoders%40yahoogroups.commailto:
  flexcoders%40yahoogroups.com
   ] On
Behalf Of Alex Harui
Sent: Wednesday, November 21, 2007 11:39 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
mailto:
  flexcoders%40yahoogroups.com
Subject: RE: [flexcoders] Reflection -- Accessing private fields
   
   
   
Private is private.
   

   
From: flexcoders@yahoogroups.com
flexcoders%40yahoogroups.commailto:
  flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
flexcoders%40yahoogroups.commailto:
  flexcoders%40yahoogroups.com
   ] On
Behalf Of marty.pitt
Sent: Tuesday, November 20, 2007 9:25 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
mailto:
  flexcoders%40yahoogroups.com
Subject: [flexcoders] Reflection -- Accessing private fields
   
Hello all.
   
Is there any way to get the names of private / protected /
internal
variables within a class at runtime? (ie., actual reflection!)
   
It seems it's not possible using getClassInfo().
   
What about some sort of custom serialization? (Remembering
that the
names of the variables is not known).
   
Any thoughts?
   
Cheers
   
Marty
   
  
 
   
 
 
 
 
 -- 
 Aaron Miller
 Chief Technology Officer
 Splash Labs, LLC.
 [EMAIL PROTECTED]  |  206-328-5485
 http://www.splashlabs.com





[flexcoders] Re: looking for a decent throbber

2007-11-26 Thread argmn

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 There is always the ProgressBar.

 Tracy



I used a simple technique in a component I wrote called PreloadingImage.
It adds a graphical preloading display to the mx.controls.Image class. 
I used the PopupManager to get this functionality.
If you you need to add a throbber to an Image you can use this component
(open source).

The component sample app is here:
  http://strawberrypixel.com/blog/flex-components/#preloadingimage
http://strawberrypixel.com/blog/flex-components/#preloadingimage
The component tutorial that shows how to do this is here:
http://strawberrypixel.com/blog/flex-components/preloading-image-tutoria\
l
http://strawberrypixel.com/blog/flex-components/preloading-image-tutori\
al

Cheers
Eran