Re: [flexcoders] Re: SystemManager????

2009-09-21 Thread Paul Andrews
Alex Harui wrote:


 If you click on content loaded from another domain, you don’t get a 
 click event.

In terms of clicks why should the originating domain matter?

 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
 *On Behalf Of *flexaustin
 *Sent:* Sunday, September 20, 2009 6:10 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: SystemManager

 Shouldn't systemManager send out a MouseEvent.click on everything 
 clicked in the application? It seems as though if the item clicked is 
 a swf or embedded icon (even if included in a sprite) they don't seem 
 to register with the systemManager? Or the systemManager doesn't send 
 out a MouseEvent.click.

 Is their a way to make the systemManager send the click 100% of the time?

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, flexaustin flexaus...@... 
 wrote:
 
  I am building app that is something similar to photoshop or 
 illustrator where
  you have several tools to choose.
 
  I want to use a State Object pattern, where selecting a tool changes 
 the state
  of the app. I then want to have the mouse throw different events 
 depending on,
  which tool is selected rather than have state objects in my 
 listeners or having
  conditionals or table look up in my listeners.
 
  I am using custom mouse pointers for tools so what I am wondering 
 is, is it
  possible for my custom systemmanager or cursormanager to tell when a 
 click,
  doubleclick, or drag happens? If so then I was thinking the 
 systemmanager or
  cursormanager could know what tool is selected, thus what mode/state 
 the app is
  in, and send out different events for say mouse clicks.
 
  So:
 
  fingermouse's click = open thing clicked
  zoommouse's click = zoom in 25%
  mousepointer click = select to transform
  pointer with a + on it = add a new thing to stage
  ponter with a - on it = sub a new thing from stage
 
  TIA, J
 



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



[flexcoders] Flex Module loading via AMF

2009-09-21 Thread shyam_29
Fellow coders.

how do i load a module, via AMF?. I'm able to load assests 
(images,xmls,swfs..etc) via the usage of HttpService with an amf channel, but 
fail to find a way to load modules. 


The queston of why i'm doing this: AMF is supposed to be faster when dealing 
with binary data and so if i can load my swfs from my server via AMF(using 
BlazeDs), i can make my application load faster. Please correct me if i'm wrong.

Currenlty i use ModuleLoader to do the loading and everything works well, 
except that my big application is taking a a bit more time to load than desired.



/Shyam



[flexcoders] overloading styleFunction for ADG..How?

2009-09-21 Thread DevSachin

Hi All

I want to create a logic to overload features of stylefunction of ADG.
currently stylefunction has limited set of styles to apply on a cell like
color,fontweight etc. I want to create a styleFunction which can do extra
features like set image in a cell,Border(frame) around the cell etc with my
custom item renderer.
ques1: Any one can give some idea to do that?

I have studied ADG classes to do that, i found there are two function are
used basically to draw item renderers.
1.drawCellItem in AdvancedDataGrid
2.drawItem in AdvancedDataGridBase
ques2:
Which one is being used to draw itemRenderer exectly?

Thanks in advance:jumping::jumping:
-
Sachin Dev Tripathi

-- 
View this message in context: 
http://www.nabble.com/overloading-styleFunction-for-ADG..How--tp25530194p25530194.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Trying to convince people to develop with Flex

2009-09-21 Thread valdhor
Perhaps you could do it in your own time?

When I first started my job here (A large Multi-National) I was tasked with 
creating a front end UI to replace an unwieldy PHP/Perl system. They wanted it 
redone with JavaScript/AJAX. I had completed the first part of this in six 
months but there were multiple different code bases (For multiple browsers) and 
the code to do it would kill IE6 (The enterprise standard).

I decided I would develop the same UI in Flex at home and give myself a chance 
to learn on a real project. I completed the project in less than two months. 
Once I showed my boss what could be done in less time and with a single code 
base for all browsers, we scrapped the original idea and moved forward with the 
full migration into Flex.

If you can't/won't take this route, maybe the Adobe Dashboard Application can 
show a small sampling of what can be done with Flex 
(http://examples.adobe.com/flex3/devnet/dashboard/main.html)


HTH



Steve


--- In flexcoders@yahoogroups.com, Steven loe stevenloe5...@... wrote:

 While I agree that building out something would be great. That's  
 probably not possible right now. I think they don't have enough  
 awareness of Flex to know what it could do for them. I think if they  
 could see a couple of slick data viz apps, they'd suddenly get it. I  
 was hoping that a few flexcoders might have data viz apps they'd like  
 to show off.
 
 Thanks very much.
 
 On Sep 19, 2009, at 10:32 AM, Angelo Anolin angelo_ano...@...  
 wrote:
 
  I believe the best way to do this is to port (convert) one of your  
  slow, dull and hard to maintain application and show how the same  
  could be done in Flex, albeit much better.
 
  Manager would only see the value of a development platform if they  
  know that their business bottom line is improved, which is in this  
  case a better application that they utilize.
 
  Angelo
 
  From: Schnurgle Schnurgle schnur...@...
  To: flexcoders@yahoogroups.com
  Sent: Saturday, 19 September, 2009 12:39:56
  Subject: [flexcoders] Trying to convince people to develop with Flex
 
 
  I'd like to get some people that I work with excited about  
  developing RIAs with Flex. We currently do data visualization with  
  fusion charts. I'd like to show folks here  Flex apps that go beyond  
  what fusion charts can do. I've googled a bunch but I've not found  
  much. Also, any links to flex business apps that would help make the  
  case that we could be offering amazing user experiences if we were  
  to build with Flex would be great ammo.
 
  Thank you very much for any help with this.
  sh
 
 
 
 





Re: [flexcoders] Re: Trying to convince people to develop with Flex

2009-09-21 Thread Jorge Hernández
I would show the nasdaq flex app, it is one of my favourite!

2009/9/21 valdhor valdhorli...@embarqmail.com



 Perhaps you could do it in your own time?

 When I first started my job here (A large Multi-National) I was tasked with
 creating a front end UI to replace an unwieldy PHP/Perl system. They wanted
 it redone with JavaScript/AJAX. I had completed the first part of this in
 six months but there were multiple different code bases (For multiple
 browsers) and the code to do it would kill IE6 (The enterprise standard).

 I decided I would develop the same UI in Flex at home and give myself a
 chance to learn on a real project. I completed the project in less than two
 months. Once I showed my boss what could be done in less time and with a
 single code base for all browsers, we scrapped the original idea and moved
 forward with the full migration into Flex.

 If you can't/won't take this route, maybe the Adobe Dashboard Application
 can show a small sampling of what can be done with Flex (
 http://examples.adobe.com/flex3/devnet/dashboard/main.html)

 HTH

 Steve

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Steven
 loe stevenloe5...@... wrote:
 
  While I agree that building out something would be great. That's
  probably not possible right now. I think they don't have enough
  awareness of Flex to know what it could do for them. I think if they
  could see a couple of slick data viz apps, they'd suddenly get it. I
  was hoping that a few flexcoders might have data viz apps they'd like
  to show off.
 
  Thanks very much.
 
  On Sep 19, 2009, at 10:32 AM, Angelo Anolin angelo_ano...@...
  wrote:
 
   I believe the best way to do this is to port (convert) one of your
   slow, dull and hard to maintain application and show how the same
   could be done in Flex, albeit much better.
  
   Manager would only see the value of a development platform if they
   know that their business bottom line is improved, which is in this
   case a better application that they utilize.
  
   Angelo
  
   From: Schnurgle Schnurgle schnur...@...
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Sent: Saturday, 19 September, 2009 12:39:56
   Subject: [flexcoders] Trying to convince people to develop with Flex
  
  
   I'd like to get some people that I work with excited about
   developing RIAs with Flex. We currently do data visualization with
   fusion charts. I'd like to show folks here Flex apps that go beyond
   what fusion charts can do. I've googled a bunch but I've not found
   much. Also, any links to flex business apps that would help make the
   case that we could be offering amazing user experiences if we were
   to build with Flex would be great ammo.
  
   Thank you very much for any help with this.
   sh
  
  
  
  
 

  




-- 
Jorge Hernández Martínez
Electro-Acoustic  Telecommunication Engineer
+34 605 132572


[flexcoders] Re: Using Just Some Components of Flexlib

2009-09-21 Thread valdhor
Elementary, my dear Watson.

Create a directory named flexlib inside your src directory. Inside
that directory create a new directory named controls. Place the
PromptingTextInput.as file inside this directory.

To use the control, first add the namespace to the component you wish to
use it with (Or the Application)...

xmlns:flexlibcontrols=flexlib.controls.*

Secondly, instantiate the control in MXML...

flexlibcontrols:PromptingTextInput prompt=Prompt Goes Here/

So, a full application example could look like:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 xmlns:flexlibcontrols=flexlib.controls.*
 flexlibcontrols:PromptingTextInput prompt=Prompt Goes Here/
/mx:Application


HTH




Steve


--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@...
wrote:

 Hi FlexCoders,

 I have been browsing out the Flexlib in Google Code and I am thinking
of using just some of the controls, particularly the Propt TextInput
control.

 I have downloaded the ZIP file and have extracted the same.

 As I am using more of the command line compiler in Vista, how do I use
only the PromptingTextInput control?  I have already extracted the file
PromptingTextInput.as.

 How would I reference it in my MXML and just use the control?

 Thanks.

 Rgds,

 Angelo




[flexcoders] Re: Hi All

2009-09-21 Thread valdhor
Welcome.

I hope you still feel the same in a years time ;-}


Have fun.



Steve


--- In flexcoders@yahoogroups.com, Calbeans jwrigh...@... wrote:

 I just joined the group today and I'm really excited to learn more about Flex 
 and AS3.





[flexcoders] Strange screen behaviour when scrolling

2009-09-21 Thread skygod37
Hi,

anyone seen this before?

When users have scroll down in a panel, some display elements overlap each oher 
(see the two screenshots). By scrolling up and down a few times they can get 
their display back to normal.

http://staging.studiemeter.nl/overlap.jpg
http://staging.studiemeter.nl/Untitled1.png

It seems that the problem is more worse when the users use the scroll wheel. 
When they only use the scroll bars on the side everything works fine.

This is really bothering our users and I hope someone has seen this before and 
have a solution for it.

Dik



[flexcoders] Pop a window with a hyperlink?

2009-09-21 Thread Wally Kolcz
I have text on one of my applications that has 2 hyperlinks (CODE and PARTIAL 
TIME) that needs to pop a window the PopUpManager. Is there any way to do that?

The text:
Please record your hours by typing them in the corresponding day. Also
include the appropriate code behind the number of hours (for example, 8 REG). 
Re-check for accuracy and submit at appropriate   time.

The CODE and PARTIAL TIME descriptions   will open in a new window. Place any 
comments or clarifications in the comment   box. 

I was going to use htmlText property of the Text Class, but not sure how to 
listen for the click. Think it might be goofy to try to mix linkbuttons and 
text. Any other option?



RE: [flexcoders] Strange screen behaviour when scrolling

2009-09-21 Thread Gregor Kiddie
We've seen this a lot when there are a lot of editable controls on a
screen.

Unfortunately, we've not been able to get a simple enough project that
displays the behaviour to send to Adobe.

We've re-produced it using the scroll bars as well (if you scroll up and
down quickly, you can re-create it really easily with datagrids)

 

The only work around we've found is...

...It doesn't happen in AIR.

 

Sorry,

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of skygod37
Sent: 21 September 2009 14:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Strange screen behaviour when scrolling

 

  

Hi,

anyone seen this before?

When users have scroll down in a panel, some display elements overlap
each oher (see the two screenshots). By scrolling up and down a few
times they can get their display back to normal.

http://staging.studiemeter.nl/overlap.jpg
http://staging.studiemeter.nl/overlap.jpg 
http://staging.studiemeter.nl/Untitled1.png
http://staging.studiemeter.nl/Untitled1.png 

It seems that the problem is more worse when the users use the scroll
wheel. When they only use the scroll bars on the side everything works
fine.

This is really bothering our users and I hope someone has seen this
before and have a solution for it.

Dik





[flexcoders] Re: x and y localToGlobal

2009-09-21 Thread flexaustin
thanks alex

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 If tool and targ have the same parent, then a simple assignment of the x,y 
 should be good enough, assuming that both are drawing into positive 
 coordinates only.  If you've got something drawing into negative coordinates 
 because it is centering and rotation, then you need more calculations.
 
 If their parents are different, and it sound like they are, then if targ is 
 from a mouseEvent, the mouseEvent's stageX/Y should be good enough to back 
 calculate using globalToLocal.  Note that for a mouseEvent, the event.target 
 could be a sub-component and thus not have the same parent as the other.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Saturday, September 19, 2009 2:27 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] x and y localToGlobal
 
 
 
 Can anyone tell me if any of these are correct? I am using Senocular 
 TransformTool (e.g. 
 http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php)
  I have a Flex that has the following layers:
 
 Flex Project Layers (top to bottom):
 -Application
 --main sprite
 ---visualization sprite
 holder layer - where TARG and TOOL are located.
 
 What I need is for TOOL's X  Y to be TARG's X  Y at all times. So if I drag 
 TARG then TOOL needs to stay with it in the same spot (And no I can't put 
 TOOL inside TARG). So I tried the following which doesn't work:
 
 tool.x = targ.x; (in debug it shows this before assignment tool.x=289 and 
 targ.x=0)
 tool.y = targ.y; (in debug it shows this before assignment tool.y=200 and 
 targ.y=0)
 
 So, I tried each of the following (substituting in each var), but none of 
 which works.
 tool.x = gtlpt.x;
 tool.y = gtlpt.y;
 
 var gtlpt:Point = tool.globalToLocal( new Point( targ.x, targ.y ) );
 var ltgpt:Point = tool.localToGlobal( new Point( targ.x, targ.y ) );
 
 var toolgtlpt:Point = targ.globalToLocal( new Point( tool.x, tool.y ) );
 var toolltgpt:Point = targ.localToGlobal( new Point( tool.x, tool.y ) );
 
 var mgtlpt:Point = _vis.marks.globalToLocal( new Point( tool.x, tool.y ) );
 var mltgpt:Point = _vis.marks.localToGlobal( new Point( tool.x, tool.y ) );
 
 var mmgtlpt:Point = _vis.marks.globalToLocal( new Point( targ.x, targ.y ) );
 var mmltgpt:Point = _vis.marks.localToGlobal( new Point( targ.x, targ.y ) );





[flexcoders] Re: Still struggling with creation complete

2009-09-21 Thread dfalling
Here's a sample app with the sliding viewstack.  The problems in this example 
are a) I'm failing to make the new view create itself, b) I don't know what to 
listen to in the event that I succeed with a).

Thanks.

http://flexninja.com/examples/slidingViewstack/

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 The code for a SHOW event runs before things are drawn to the screen.  Sound 
 like something is causing an extra invalidation of the children so they 
 aren't ready right away.  Can you make a simple test case?
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of dfalling
 Sent: Friday, September 18, 2009 2:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Still struggling with creation complete
 
 
 
 I'm not sure how SHOW would help me as I want to make everything happen 
 before rendering the child.
 
 As an experiment, I made the child createComponentsFromDescriptors and called 
 validateNow() at the viewstack level. I also replaced the event listener with 
 a timer since I have no idea what event to watch.
 
 All my attempts to make the child render itself aren't working- even if the 
 timer waits for several seconds to allow an empty view to render, it still 
 won't show up until after sliding in. Even once I get this working, I still 
 won't know what event to listen for to know when the child's children are 
 created. There's the lovely childrenCreationComplete event, but that's only 
 dispatched for creation types of none and queued.
 
 Here's my current code:
 
 override public function set selectedIndex(value:int):void
 {
 _lastIndex = selectedIndex;
 
 if(value != _newIndex  value != _lastIndex  value = 0  _lastIndex = 0)
 {
 _newIndex = value;
 var targetChild:Container = getChildAt(value) as Container;
 if (targetChild.mx_internal::numChildrenCreated  0)
 {
 targetChild.createComponentsFromDescriptors(true);
 validateNow();
 _creationTimer = new Timer(3000,1);
 _creationTimer.addEventListener(TimerEvent.TIMER,child_creation,false,0,true);
 _creationTimer.start();
 return;
 }
 else
 {
 slideTabs(_lastIndex,_newIndex);
 }
 }
 }
 
 private function child_creation(event:Event):void
 {
 slideTabs(_lastIndex,_newIndex);
 }
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  I still believe that all children of a viewstack are created no matter the 
  creationpolicy. CreationPolicy affects the grandchildren. CreationComplete 
  on the child is long gone. Try listening to SHOW as well, and call 
  validateNow on the entire viewstack, not just the child. Children get their 
  size from the parent.
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of dfalling
  Sent: Friday, September 18, 2009 12:09 PM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Still struggling with creation complete
 
 
 
  I have a viewstack that animates its children by sliding them in and out. 
  It works fine when the creationPolicy is set to all, but when it's set to 
  auto, uncreated views slide in blank, then render themselves.
 
  I thought that I could fix this by checking to see if a view has been 
  created yet (the only way I could figure out how to do this is 
  mx_internal::numChildrenCreated), and then trigger its creation with 
  createComponentFromDescriptor. For some reason this isn't working though- 
  my creationComplete function is never called...what am I doing wrong?
 
  override public function set selectedIndex(value:int):void
  {
  _lastIndex = selectedIndex;
 
  if(value != _lastIndex  value = 0  _lastIndex = 0)
  {
  _newIndex = value;
  var targetChild:Container = getChildAt(value) as Container;
  if (targetChild.mx_internal::numChildrenCreated  0)
  {
  targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
  createComponentFromDescriptor(targetChild.descriptor,true);
  targetChild.validateNow();
  return;
  }
  else
  {
  slideTabs(_lastIndex,_newIndex);
  }
  }
  }
 
  private function child_creation(event:Event):void
  {
  slideTabs(_lastIndex,_newIndex);
  }
 





[flexcoders] Can a variable set in one component be called in another component?

2009-09-21 Thread spuy...@ymail.com
Can a variable set in one component be called in another component without 
having to go back to the application file?  I just want to set a variable in 
one component, and then access that variable in another component.  



[flexcoders] Effects does not stop with API

2009-09-21 Thread ilikeflex
Hi 

Please see the sample code. 

In the sample, i am playing two effects. One effect start one other finishes 
and vice versa. 

When i click on stop, i am expecting that both effect should stop but it does 
not work that way.

Am i missing some thing??

?xml version=1.0 encoding=utf-8?
!-- Simple exemplo to demonstrate the Glow effect. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
creationComplete=init()

mx:Script
![CDATA[
import mx.controls.Alert;
import mx.events.EffectEvent;
var array:Array = new Array();
public function init():void
{

glowImage.addEventListener(EffectEvent.EFFECT_END,playUnGlow);

unglowImage.addEventListener(EffectEvent.EFFECT_END,playGlow);
array.push(sampleText);
playGlow(null);
}

public function playGlow(event:Event):void
{
glowImage.play(array);
}

public function playUnGlow(event:Event):void
{
unglowImage.play(array);
}

public function onStartClick():void
{
glowImage.play();
unglowImage.play();
}

public function onStopClick():void
{
glowImage.stop();
unglowImage.stop(); 
}   

]]
/mx:Script
mx:Glow id=glowImage duration=1000 
alphaFrom=1.0 alphaTo=0.3 target= 
blurXFrom=0.0 blurXTo=50.0 
blurYFrom=0.0 blurYTo=50.0 
color=0x00FF00/
mx:Glow id=unglowImage duration=1000 
alphaFrom=0.3 alphaTo=1.0 
blurXFrom=50.0 blurXTo=0.0 
blurYFrom=50.0 blurYTo=0.0 
color=0xFF/

mx:Panel title=Glow Effect Example width=75% height=75% 
paddingTop=10 paddingLeft=10 paddingRight=10 paddingBottom=10

mx:Text width=100% color=blue  id=sampleText
text=Click and hold the mouse on the image to see glowImage 
effect. Release the mouse to see unglowImage effect./

mx:Button label=Start click=onStartClick()/
mx:Button label=Stop click=onStopClick()/
/mx:Panel
/mx:Application

Thanks
ilikeflex



[flexcoders] Re: Still struggling with creation complete

2009-09-21 Thread dfalling
The problem I run into with rolling a new viewstack, is that many of the 
situations where I want to use this require a viewstack, so I have to extend it.

--- In flexcoders@yahoogroups.com, reflexactions reflexacti...@... wrote:

 Out of the box when using deferred instantiation the ViewStack was designed 
 to only support animations on a child container 'hide' not 'show'.
 
 If you only slide 'out' it should work fine, if you want to slide 'in' or 
 both 'in' and 'out' you need to roll you own version of ViewStack and build 
 in the support.
 
 This is something we have done, though I can't really help with the code 
 because of copyright.
 
 You need to override selectedIndex, commitSelectedIndex, and commitProperties 
 as well as add a function to init the selected child container.
 
 Its not really difficult, you should take a look at the adobe code in the 
 ViewStack and basically emulate that.
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  I still believe that all children of a viewstack are created no matter the 
  creationpolicy.  CreationPolicy affects the grandchildren.  
  CreationComplete on the child is long gone.  Try listening to SHOW as well, 
  and call validateNow on the entire viewstack, not just the child.  Children 
  get their size from the parent.
  
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
  
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
  Behalf Of dfalling
  Sent: Friday, September 18, 2009 12:09 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Still struggling with creation complete
  
  
  
  I have a viewstack that animates its children by sliding them in and out. 
  It works fine when the creationPolicy is set to all, but when it's set to 
  auto, uncreated views slide in blank, then render themselves.
  
  I thought that I could fix this by checking to see if a view has been 
  created yet (the only way I could figure out how to do this is 
  mx_internal::numChildrenCreated), and then trigger its creation with 
  createComponentFromDescriptor. For some reason this isn't working though- 
  my creationComplete function is never called...what am I doing wrong?
  
  override public function set selectedIndex(value:int):void
  {
  _lastIndex = selectedIndex;
  
  if(value != _lastIndex  value = 0  _lastIndex = 0)
  {
  _newIndex = value;
  var targetChild:Container = getChildAt(value) as Container;
  if (targetChild.mx_internal::numChildrenCreated  0)
  {
  targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
  createComponentFromDescriptor(targetChild.descriptor,true);
  targetChild.validateNow();
  return;
  }
  else
  {
  slideTabs(_lastIndex,_newIndex);
  }
  }
  }
  
  private function child_creation(event:Event):void
  {
  slideTabs(_lastIndex,_newIndex);
  }
 





[flexcoders] .swc files / base classes and flash-flex playing nicely together

2009-09-21 Thread djhatrick
I have a complex project and I have .swc file, I've added classes in flash that 
have their linkage set up.  I compile my .swc add it to my project, and then 
when I compile in flex I get ambiguous references.

What's the sure-fire way to make this work correctly.  This is a powerful 
feature, and I don't want to have to maintain these class for my flash 
component outside my project structure folder...

Thannks,
Patrick



Re: SOLVED - [flexcoders] Re: Using Just Some Components of Flexlib

2009-09-21 Thread Angelo Anolin
Thanks Valdhor.

I think my level of knowledge with regards to the power of Flex is not yet even 
in elementary, so pardon my lack of knowledge.

On a positive note, I feel am getting there.

And with a great group like this where you are able to get proper answers from 
the masters themselves, you sure know you're taking the right direction.

Regards.

Angelo





From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Monday, 21 September, 2009 21:05:18
Subject: [flexcoders] Re: Using Just Some Components of Flexlib

  
Elementary, my dear Watson.

Create a directory named flexlib inside your src directory. Inside that 
directory create a new directory named controls. Place the 
PromptingTextInput. as file inside this directory.

To use the control, first add the namespace to the component you wish to use it 
with (Or the Application) ...

xmlns:flexlibcontro ls=flexlib. controls. *

Secondly, instantiate the control in MXML...

flexlibcontrols: PromptingTextInp ut prompt=Prompt Goes Here/

So, a full application example could look like:

?xml version=1.0 encoding=utf- 8?
mx:Application xmlns:mx=http: //www.adobe. com/2006/ mxml layout=absolute 
xmlns:flexlibcontro ls=flexlib. controls. *
flexlibcontrols: PromptingTextInp ut prompt=Prompt Goes Here/
/mx:Application


HTH




Steve


--- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote:

 Hi FlexCoders,
 
 I have been browsing out the Flexlib in Google Code and I am thinking of 
 using just some of the controls, particularly the Propt TextInput control.
 
 I have downloaded the ZIP file and have extracted the same.
 
 As I am using more of the command line compiler in Vista, how do I use only 
 the PromptingTextInput control?  I have already extracted the file 
 PromptingTextInput. as.
 
 How would I reference it in my MXML and just use the control?
 
 Thanks.
 
 Rgds,
 
 Angelo


   


  

[flexcoders] Re: Effects does not stop with API

2009-09-21 Thread ilikeflex
--- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote:

 Hi 
 
 Please see the sample code. 
 
 In the sample, i am playing two effects. One effect start, then another 
 finishes and vice versa. 
 
 When i click on stop, i am expecting that both effect should stop but it does 
 not work that way.
 
 Am i missing some thing??
 
 ?xml version=1.0 encoding=utf-8?
 !-- Simple exemplo to demonstrate the Glow effect. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 creationComplete=init()
   
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.events.EffectEvent;
   var array:Array = new Array();
   public function init():void
   {
   
 glowImage.addEventListener(EffectEvent.EFFECT_END,playUnGlow);
   
 unglowImage.addEventListener(EffectEvent.EFFECT_END,playGlow);
   array.push(sampleText);
   playGlow(null);
   }
   
   public function playGlow(event:Event):void
   {
   glowImage.play(array);
   }
   
   public function playUnGlow(event:Event):void
   {
   unglowImage.play(array);
   }
   
   public function onStartClick():void
   {
   glowImage.play();
   unglowImage.play();
   }
   
   public function onStopClick():void
   {
   glowImage.stop();
   unglowImage.stop(); 
   }   
   
   ]]
   /mx:Script
 mx:Glow id=glowImage duration=1000 
 alphaFrom=1.0 alphaTo=0.3 target= 
 blurXFrom=0.0 blurXTo=50.0 
 blurYFrom=0.0 blurYTo=50.0 
 color=0x00FF00/
 mx:Glow id=unglowImage duration=1000 
 alphaFrom=0.3 alphaTo=1.0 
 blurXFrom=50.0 blurXTo=0.0 
 blurYFrom=50.0 blurYTo=0.0 
 color=0xFF/
 
 mx:Panel title=Glow Effect Example width=75% height=75% 
 paddingTop=10 paddingLeft=10 paddingRight=10 paddingBottom=10
 
 mx:Text width=100% color=blue  id=sampleText
 text=Click and hold the mouse on the image to see glowImage 
 effect. Release the mouse to see unglowImage effect./
 
   mx:Button label=Start click=onStartClick()/
   mx:Button label=Stop click=onStopClick()/
 /mx:Panel
 /mx:Application
 
 Thanks
 ilikeflex


--- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote:

 Hi 
 
 Please see the sample code. 
 
 In the sample, i am playing two effects. One effect start one other finishes 
 and vice versa. 
 
 When i click on stop, i am expecting that both effect should stop but it does 
 not work that way.
 
 Am i missing some thing??
 
 ?xml version=1.0 encoding=utf-8?
 !-- Simple exemplo to demonstrate the Glow effect. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 creationComplete=init()
   
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.events.EffectEvent;
   var array:Array = new Array();
   public function init():void
   {
   
 glowImage.addEventListener(EffectEvent.EFFECT_END,playUnGlow);
   
 unglowImage.addEventListener(EffectEvent.EFFECT_END,playGlow);
   array.push(sampleText);
   playGlow(null);
   }
   
   public function playGlow(event:Event):void
   {
   glowImage.play(array);
   }
   
   public function playUnGlow(event:Event):void
   {
   unglowImage.play(array);
   }
   
   public function onStartClick():void
   {
   glowImage.play();
   unglowImage.play();
   }
   
   public function onStopClick():void
   {
   glowImage.stop();
   unglowImage.stop(); 
   }   
   
   ]]
   /mx:Script
 mx:Glow id=glowImage 

Re: [flexcoders] Re: Trying to convince people to develop with Flex

2009-09-21 Thread Angelo Anolin
While I agree that building out something would be great. That's probably not 
possible right now.

- But showing them applications which are not fit for how the organization does 
business may also give a wrong impression of Flex and how the development 
platform would enable your business bottom line.  Stake holders think beyond 
what they only see - they are more interested in figures and how something 
would CERTAINLY improve their business.




I think if they could see a couple of slick data viz apps, they'd suddenly get 
it.

- Showing them slick data apps that does not translate to how they do their 
business.  They would understand better if the application that you are going 
to show them is something that is utilized in your organization.  As Steve has 
pointed out, he did something which their organization sees as something 
valuable (first with JS/AJAX) and later with Flex.  Perhaps you could interpret 
which way that Steve's organization chose.


HTH

Angelo





From: Jorge Hernández jorge.albac...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Monday, 21 September, 2009 21:00:01
Subject: Re: [flexcoders] Re: Trying to convince people to develop with Flex

  
I would show the nasdaq flex app, it is one of my favourite!


2009/9/21 valdhor valdhorlists@ embarqmail. com

  
Perhaps you could do it in your own time?

When I first started my job here (A large Multi-National) I was tasked with 
creating a front end UI to replace an unwieldy PHP/Perl system. They wanted it 
redone with JavaScript/AJAX. I had completed the first part of this in six 
months but there were multiple different code bases (For multiple browsers) 
and the code to do it would kill IE6 (The enterprise standard).

I decided I would develop the same UI in Flex at home and give myself a chance 
to learn on a real project. I completed the project in less than two months. 
Once I showed my boss what could be done in less time and with a single code 
base for all browsers, we scrapped the original idea and moved forward with 
the full migration into Flex.

If you can't/won't take this route, maybe the Adobe Dashboard Application can 
show a small sampling of what can be done with Flex (http://examples. 
adobe.com/ flex3/devnet/ dashboard/ main.html)

HTH

Steve 



--- In flexcod...@yahoogro ups.com, Steven loe stevenloe5000@ ... wrote:

 While I agree that building out something would be great. That's 
 probably not possible right now. I think they don't have enough 
 awareness of Flex to know what it could do for them. I think if they 
 could see a couple of slick data viz apps, they'd suddenly get it. I 
 was hoping that a few flexcoders might have data viz apps they'd like 
 to show off.
 
 Thanks very much.
 
 On Sep 19, 2009, at 10:32 AM, Angelo Anolin angelo_anolin@ ... 

 wrote:
 
  I believe the best way to do this is to port (convert) one of your 
  slow, dull and hard to maintain application and show how the same 
  could be done in Flex, albeit much better.
 
  Manager would only see the value of a development platform if they 
  know that their business bottom line is improved, which is in this 
  case a better application that they utilize.
 
  Angelo
 
  From: Schnurgle Schnurgle schnur...@.. . 


  To: flexcod...@yahoogro ups.com
  Sent: Saturday, 19 September, 2009 12:39:56
  Subject: [flexcoders] Trying to convince people to develop with Flex
 
 
  I'd like to get some people that I work with excited about 
  developing RIAs with Flex. We currently do data visualization with 
  fusion charts. I'd like to show folks here Flex apps that go beyond 
  what fusion charts can do. I've googled a bunch but I've not found 
  much. Also, any links to flex business apps that would help make the 
  case that we could be offering amazing user experiences if we were 
  to build with Flex would be great ammo.
 
  Thank you very much for any help with this.
  sh
 
 
 
 





-- 
Jorge Hernández Martínez
Electro-Acoustic  Telecommunication Engineer
+34 605 132572

   


  

[flexcoders] trying to control space above label

2009-09-21 Thread mitchgrrt
It seems like when I put some labels in my app, there is always 5 pixels
padding above them:

 mx:VBox
 mx:Box borderColor=red borderStyle=solid
mx:Label text=System styleName=systemDescriptionText
paddingTop=0/
 /mx:Box
 mx:Box borderColor=red borderStyle=solid
mx:Label text=System 24
styleName=systemDescriptionText height=24 /
 /mx:Box
 mx:Box borderColor=red borderStyle=solid
mx:Label text=System 16
styleName=systemDescriptionText height=16 /
 /mx:Box
 /mx:VBox

.systemDescriptionText {
 fontFamily: Lucida Sans Unicode;
 fontSize:12pt;
 color:#CC;
}
Each one of the labels above has 5 pixels of space above it, between the
label and the red border line.  Is there a way to control this?  Thanks.




[flexcoders] Re: Pop a window with a hyperlink?

2009-09-21 Thread valdhor
Wally

Use the HTMLText property and listen for the link event. The following
example should help (Note that I am not good with Style Sheets so there
is probably a better way of styling the links):

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=onCreationComplete()
 mx:Script
 ![CDATA[
 import flash.events.TextEvent;
 import mx.controls.Alert;

 private var hoverStyles:String = a:hover { color: #00;
text-decoration: underline; } a { color: #ff; text-decoration:
underline; };

 private function onCreationComplete():void
 {
 theTextArea.addEventListener(TextEvent.LINK,
onLinkClick);
 var ss:StyleSheet = new StyleSheet();
 ss.parseCSS(hoverStyles);
 theTextArea.styleSheet = ss;
 }

 private function onLinkClick(event:TextEvent):void
 {
 switch(event.text)
 {
 case codeEvent:
 Alert.show(Show the CODE Window.);
 break;
 case partialTimeEvent:
 Alert.show(Show the PARTIAL TIME Window.);
 break;
 }
 }
 ]]
 /mx:Script
 mx:Panel title=TextArea Control Example height=75% width=75%
 paddingTop=10 paddingBottom=10 paddingLeft=10
paddingRight=10
 mx:TextArea id=theTextArea width=500 height=200
 mx:htmlText
 ![CDATA[Please record your hours by typing them in the
corresponding day. Also include the appropriate code behind the number
of hours (for example, 8 REG). Re-check for accuracy and submit at
appropriate time.
The a href=event:codeEventCODE/a and a
href=event:partialTimeEventPARTIAL TIME/a descriptions will open in
a new window. Place any comments or clarifications in the comment
box.]]
 /mx:htmlText
 /mx:TextArea
 /mx:Panel
/mx:Application


I pretty much cobbled this together from:

http://livedocs.adobe.com/flex/3/langref/mx/controls/TextArea.html#event\
:link

and

http://www.flexafterdark.com/docs/Flex-HtmlText




HTH




Steve



--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I have text on one of my applications that has 2 hyperlinks (CODE and
PARTIAL TIME) that needs to pop a window the PopUpManager. Is there any
way to do that?

 The text:
 Please record your hours by typing them in the corresponding day. Also
 include the appropriate code behind the number of hours (for example,
8 REG). Re-check for accuracy and submit at appropriate   time.

 The CODE and PARTIAL TIME descriptions   will open in a new window.
Place any comments or clarifications in the comment   box.

 I was going to use htmlText property of the Text Class, but not sure
how to listen for the click. Think it might be goofy to try to mix
linkbuttons and text. Any other option?




SOLVED - [flexcoders] Re: Using Just Some Components of Flexlib

2009-09-21 Thread valdhor
I was once told: There is only one question that is stupid - the question that 
is never asked.

I abide by that. Everybody has to start somewhere. One day, the light bulb will 
go off in your head and you will think That's so obvious. Why did I have a 
problem with it. Don't worry, you'll get there.

Always ask the question even if you think it could be obvious to others.


Steve


--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote:

 Thanks Valdhor.
 
 I think my level of knowledge with regards to the power of Flex is not yet 
 even in elementary, so pardon my lack of knowledge.
 
 On a positive note, I feel am getting there.
 
 And with a great group like this where you are able to get proper answers 
 from the masters themselves, you sure know you're taking the right direction.
 
 Regards.
 
 Angelo
 
 
 
 
 
 From: valdhor valdhorli...@...
 To: flexcoders@yahoogroups.com
 Sent: Monday, 21 September, 2009 21:05:18
 Subject: [flexcoders] Re: Using Just Some Components of Flexlib
 
   
 Elementary, my dear Watson.
 
 Create a directory named flexlib inside your src directory. Inside that 
 directory create a new directory named controls. Place the 
 PromptingTextInput. as file inside this directory.
 
 To use the control, first add the namespace to the component you wish to use 
 it with (Or the Application) ...
 
 xmlns:flexlibcontro ls=flexlib. controls. *
 
 Secondly, instantiate the control in MXML...
 
 flexlibcontrols: PromptingTextInp ut prompt=Prompt Goes Here/
 
 So, a full application example could look like:
 
 ?xml version=1.0 encoding=utf- 8?
 mx:Application xmlns:mx=http: //www.adobe. com/2006/ mxml 
 layout=absolute 
 xmlns:flexlibcontro ls=flexlib. controls. *
 flexlibcontrols: PromptingTextInp ut prompt=Prompt Goes Here/
 /mx:Application
 
 
 HTH
 
 
 
 
 Steve
 
 
 --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote:
 
  Hi FlexCoders,
  
  I have been browsing out the Flexlib in Google Code and I am thinking of 
  using just some of the controls, particularly the Propt TextInput control.
  
  I have downloaded the ZIP file and have extracted the same.
  
  As I am using more of the command line compiler in Vista, how do I use only 
  the PromptingTextInput control?  I have already extracted the file 
  PromptingTextInput. as.
  
  How would I reference it in my MXML and just use the control?
  
  Thanks.
  
  Rgds,
  
  Angelo
 





RE: [flexcoders] Re: SystemManager????

2009-09-21 Thread Alex Harui
Security.  The event.target would be an object in the other sandbox

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Paul Andrews
Sent: Monday, September 21, 2009 1:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: SystemManager

Alex Harui wrote:


 If you click on content loaded from another domain, you don't get a 
 click event.

In terms of clicks why should the originating domain matter?

 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
 *On Behalf Of *flexaustin
 *Sent:* Sunday, September 20, 2009 6:10 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: SystemManager

 Shouldn't systemManager send out a MouseEvent.click on everything 
 clicked in the application? It seems as though if the item clicked is 
 a swf or embedded icon (even if included in a sprite) they don't seem 
 to register with the systemManager? Or the systemManager doesn't send 
 out a MouseEvent.click.

 Is their a way to make the systemManager send the click 100% of the time?

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, flexaustin flexaus...@... 
 wrote:
 
  I am building app that is something similar to photoshop or 
 illustrator where
  you have several tools to choose.
 
  I want to use a State Object pattern, where selecting a tool changes 
 the state
  of the app. I then want to have the mouse throw different events 
 depending on,
  which tool is selected rather than have state objects in my 
 listeners or having
  conditionals or table look up in my listeners.
 
  I am using custom mouse pointers for tools so what I am wondering 
 is, is it
  possible for my custom systemmanager or cursormanager to tell when a 
 click,
  doubleclick, or drag happens? If so then I was thinking the 
 systemmanager or
  cursormanager could know what tool is selected, thus what mode/state 
 the app is
  in, and send out different events for say mouse clicks.
 
  So:
 
  fingermouse's click = open thing clicked
  zoommouse's click = zoom in 25%
  mousepointer click = select to transform
  pointer with a + on it = add a new thing to stage
  ponter with a - on it = sub a new thing from stage
 
  TIA, J
 



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





[flexcoders] Re: Strange screen behaviour when scrolling

2009-09-21 Thread skygod37
That's a pity. 

I would be happy to port the applicaton to an AIR application, but 
unfortunately our clients will not accept that.

Does SDK 4 also have this behaviour?

Regards,

Dik 



[flexcoders] Extending ToggleButtonBar to Allow for Multiple Labels on A Button

2009-09-21 Thread powers

I'm trying to create a tag list that will display the name of the tag and the
number of posts associated with that tag.  I want to use the ToggleButtonBar
so the user can choose only one tag at a time.

The problem is that it will only accept one label. I need two, name of the
tag to the left and the post count to the right.

I'm assuming that I will have to extend both, Button and Toggle ButtonBar. 
Can someone point me in the right direction? 
-- 
View this message in context: 
http://www.nabble.com/Extending-ToggleButtonBar-to-Allow-for-Multiple-Labels-on-A-Button-tp25530380p25530380.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Flex Module loading via AMF

2009-09-21 Thread Alex Harui
Why do you need to use AMF to load the module?  Why not just load it normally?

A module is a SWF though so you can bring it in as a bytearray and use the 
third parameter to IModuleInfo.load

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of shyam_29
Sent: Monday, September 21, 2009 1:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Module loading via AMF



Fellow coders.

how do i load a module, via AMF?. I'm able to load assests 
(images,xmls,swfs..etc) via the usage of HttpService with an amf channel, but 
fail to find a way to load modules.

The queston of why i'm doing this: AMF is supposed to be faster when dealing 
with binary data and so if i can load my swfs from my server via AMF(using 
BlazeDs), i can make my application load faster. Please correct me if i'm wrong.

Currenlty i use ModuleLoader to do the loading and everything works well, 
except that my big application is taking a a bit more time to load than desired.

/Shyam



[flexcoders] Re: How to dynamically add series to an areaChart/cartesian chart

2009-09-21 Thread djhatrick
No, I tried that and it didn't work.  Basiially, you create an array then 
assign the series to that array, then you have the ability to style your series 
through styles like...

metricsChart.series  =_seriesArray;
metricsChart.series[i]  = series;

Thanks,
Patrick


--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 With actionscript you can add them on the fly with addChild(), I don't think 
 you can add them dynamically with mxml unless they are 'static' options that 
 may or may not appear, then I think you can just have them set to 
 visible=false and includeInLayout=false.
 
 
 From: djhatrick djhatr...@...
 Sent: Thursday, September 03, 2009 9:52 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to dynamically add series to  an 
 areaChart/cartesian chart 
 
 Hi, 
 
 I am working with about 8 charts in my ui, they all share common 
 functionality, how do I dynamically add series to my charts... is it as 
 simple as setting series on my super.chart?
 
 Are there any examples out there that show this?  Best practices too? Using 
 mxml or actionscript?
 
 Thanks,
 
 Patrick





[flexcoders] Event.ADDED_TO_STAGE triggering twice twice inside my uiComponent

2009-09-21 Thread djhatrick
I made a module, create a flash component added it to my uiComponent, and the 
result is that objects inside my flash component, movieclip and sprites get the 
ADDED_TO_STAGE method fired twice.

Anyone else notice this?

Thanks,
Patrick



[flexcoders] Re: Flickering in datagrid Header Renderer while loading data

2009-09-21 Thread djhatrick
I'm having this issue and it sucks.  To work around it internally I am adding a 
bitmap image-copy of the datagrid inside until it renders completely, which 
I've figured on some arbitrary number...

This really sucks for us developers, makes our projects look unstable... Is 
this going to be addressed?  I too am using the prescribed method of factories 
in the flex cookbook.

Thanks,
Patrick



--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 It depends on what you mean by flickering.  It would be unusual for a label 
 to flicker.  Images often do, and SuperImage from quietlyscheming.com can 
 help, but if the label if flickering, something else might be the issue.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Dharmendra Chauhan
 Sent: Monday, March 09, 2009 11:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flickering in datagrid Header Renderer while loading 
 data
 
 
 I m also facing similar issue,Please see my code below:-
 
 Custom Header Renderer:
 
 [Bindable]
 private var theImage:Class;
 override public function set data(value:Object):void
 {
 dgColumn = value as DataGridColumn;
 if(dgColumn.sortDescending)
 this.theImage = this.downArrow;
 else
 this.theImage = this.upArrow;
 }
 
 ]]
 /mx:Script
 
 mx:Image source={this.theImage}/
 
 
 Image is flicking when data loads in data grid. I also tried Label with some 
 text, that to is flicking.
 Everything looks good as soon as data loading is over .Is there any ways to 
 avoid this flicker ??
 
 Please throw some light in to it
 
 Regards,
 Dharmendra





[flexcoders] Re: Event.ADDED_TO_STAGE triggering twice twice inside my uiComponent

2009-09-21 Thread reflexactions
Usually caused when the parent container turns on the content pane because of 
scrollbars, causing everything below to get removed and added again.

--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 I made a module, create a flash component added it to my uiComponent, and the 
 result is that objects inside my flash component, movieclip and sprites get 
 the ADDED_TO_STAGE method fired twice.
 
 Anyone else notice this?
 
 Thanks,
 Patrick





[flexcoders] Re: Flex Module loading via AMF

2009-09-21 Thread shyam_29
HI Alex,

 Thanks for the reply. i was under the  assumption that since amf is a 
compact/efficient binary format, using it might give me a bit more optimized 
loading for my module and thus save me some app loading time.

My application, as it stands now, doesnt use AMF. But me thinking of 
integrating Blazeds and use amf channels if, if and only if, its going to give 
me any added advantage in loading time while loading assets (images and xmls in 
my case). I will be spiking this with sample apps but before that,is it really 
worth the effort.?  

/Shyam


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Why do you need to use AMF to load the module?  Why not just load it normally?
 
 A module is a SWF though so you can bring it in as a bytearray and use the 
 third parameter to IModuleInfo.load
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of shyam_29
 Sent: Monday, September 21, 2009 1:59 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Module loading via AMF
 
 
 
 Fellow coders.
 
 how do i load a module, via AMF?. I'm able to load assests 
 (images,xmls,swfs..etc) via the usage of HttpService with an amf channel, but 
 fail to find a way to load modules.
 
 The queston of why i'm doing this: AMF is supposed to be faster when dealing 
 with binary data and so if i can load my swfs from my server via AMF(using 
 BlazeDs), i can make my application load faster. Please correct me if i'm 
 wrong.
 
 Currenlty i use ModuleLoader to do the loading and everything works well, 
 except that my big application is taking a a bit more time to load than 
 desired.
 
 /Shyam





Re: [flexcoders] Re: Strange screen behaviour when scrolling

2009-09-21 Thread thomas parquier
I'm not sure, I think I've seen such artefacts with some 3d components
(rotated around y) with clipcontent set to false.

thomas parquier
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/9/21 skygod37 skygo...@yahoo.com



 That's a pity.

 I would be happy to port the applicaton to an AIR application, but
 unfortunately our clients will not accept that.

 Does SDK 4 also have this behaviour?

 Regards,

 Dik

  



Re: [flexcoders] Extending ToggleButtonBar to Allow for Multiple Labels on A Button

2009-09-21 Thread Fotis Chatzinikos
Why do not you simply create the needed label (tagname + possible space
chars + numberOfPosts)?


On Mon, Sep 21, 2009 at 6:47 PM, powers vic.pow...@gmail.com wrote:




 I'm trying to create a tag list that will display the name of the tag and
 the
 number of posts associated with that tag. I want to use the ToggleButtonBar
 so the user can choose only one tag at a time.

 The problem is that it will only accept one label. I need two, name of the
 tag to the left and the post count to the right.

 I'm assuming that I will have to extend both, Button and Toggle ButtonBar.
 Can someone point me in the right direction?
 --
 View this message in context:
 http://www.nabble.com/Extending-ToggleButtonBar-to-Allow-for-Multiple-Labels-on-A-Button-tp25530380p25530380.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


RE: [flexcoders] Re: Flex Module loading via AMF

2009-09-21 Thread Alex Harui
SWF, JPG, PNG, GIF are already an efficient delivery format.  Often, encoding 
of efficient things leads to inefficiencies.

AMF is for plain data.  It can be more efficient than representing the object 
in XML.

Putting optional code in Modules and only loading them when needed is your best 
bet.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of shyam_29
Sent: Monday, September 21, 2009 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex Module loading via AMF



HI Alex,

Thanks for the reply. i was under the assumption that since amf is a 
compact/efficient binary format, using it might give me a bit more optimized 
loading for my module and thus save me some app loading time.

My application, as it stands now, doesnt use AMF. But me thinking of 
integrating Blazeds and use amf channels if, if and only if, its going to give 
me any added advantage in loading time while loading assets (images and xmls in 
my case). I will be spiking this with sample apps but before that,is it really 
worth the effort.?

/Shyam

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Why do you need to use AMF to load the module? Why not just load it normally?

 A module is a SWF though so you can bring it in as a bytearray and use the 
 third parameter to IModuleInfo.load

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of shyam_29
 Sent: Monday, September 21, 2009 1:59 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Flex Module loading via AMF



 Fellow coders.

 how do i load a module, via AMF?. I'm able to load assests 
 (images,xmls,swfs..etc) via the usage of HttpService with an amf channel, but 
 fail to find a way to load modules.

 The queston of why i'm doing this: AMF is supposed to be faster when dealing 
 with binary data and so if i can load my swfs from my server via AMF(using 
 BlazeDs), i can make my application load faster. Please correct me if i'm 
 wrong.

 Currenlty i use ModuleLoader to do the loading and everything works well, 
 except that my big application is taking a a bit more time to load than 
 desired.

 /Shyam




RE: [flexcoders] Re: Flickering in datagrid Header Renderer while loading data

2009-09-21 Thread Alex Harui
File a bug with a simple test case.  Also make sure you're using Flex 3.4

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of djhatrick
Sent: Monday, September 21, 2009 10:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flickering in datagrid Header Renderer while loading 
data



I'm having this issue and it sucks. To work around it internally I am adding a 
bitmap image-copy of the datagrid inside until it renders completely, which 
I've figured on some arbitrary number...

This really sucks for us developers, makes our projects look unstable... Is 
this going to be addressed? I too am using the prescribed method of factories 
in the flex cookbook.

Thanks,
Patrick

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 It depends on what you mean by flickering. It would be unusual for a label to 
 flicker. Images often do, and SuperImage from quietlyscheming.com can help, 
 but if the label if flickering, something else might be the issue.

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of Dharmendra Chauhan
 Sent: Monday, March 09, 2009 11:05 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Flickering in datagrid Header Renderer while loading 
 data


 I m also facing similar issue,Please see my code below:-

 Custom Header Renderer:

 [Bindable]
 private var theImage:Class;
 override public function set data(value:Object):void
 {
 dgColumn = value as DataGridColumn;
 if(dgColumn.sortDescending)
 this.theImage = this.downArrow;
 else
 this.theImage = this.upArrow;
 }

 ]]
 /mx:Script

 mx:Image source={this.theImage}/


 Image is flicking when data loads in data grid. I also tried Label with some 
 text, that to is flicking.
 Everything looks good as soon as data loading is over .Is there any ways to 
 avoid this flicker ??

 Please throw some light in to it

 Regards,
 Dharmendra




[flexcoders] Re: SystemManager????

2009-09-21 Thread flexaustin
Is there a way to allow it to be in the same sandbox?  I think you gave a talk 
on this once.

Jason




--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Security.  The event.target would be an object in the other sandbox
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.
 Blog: http://blogs.adobe.com/aharui
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Paul Andrews
 Sent: Monday, September 21, 2009 1:14 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: SystemManager
 
 Alex Harui wrote:
 
 
  If you click on content loaded from another domain, you don't get a 
  click event.
 
 In terms of clicks why should the originating domain matter?
 
  Alex Harui
 
  Flex SDK Developer
 
  Adobe Systems Inc. http://www.adobe.com/
 
  Blog: http://blogs.adobe.com/aharui
 
  *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
  *On Behalf Of *flexaustin
  *Sent:* Sunday, September 20, 2009 6:10 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Re: SystemManager
 
  Shouldn't systemManager send out a MouseEvent.click on everything 
  clicked in the application? It seems as though if the item clicked is 
  a swf or embedded icon (even if included in a sprite) they don't seem 
  to register with the systemManager? Or the systemManager doesn't send 
  out a MouseEvent.click.
 
  Is their a way to make the systemManager send the click 100% of the time?
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, flexaustin flexaustin@ 
  wrote:
  
   I am building app that is something similar to photoshop or 
  illustrator where
   you have several tools to choose.
  
   I want to use a State Object pattern, where selecting a tool changes 
  the state
   of the app. I then want to have the mouse throw different events 
  depending on,
   which tool is selected rather than have state objects in my 
  listeners or having
   conditionals or table look up in my listeners.
  
   I am using custom mouse pointers for tools so what I am wondering 
  is, is it
   possible for my custom systemmanager or cursormanager to tell when a 
  click,
   doubleclick, or drag happens? If so then I was thinking the 
  systemmanager or
   cursormanager could know what tool is selected, thus what mode/state 
  the app is
   in, and send out different events for say mouse clicks.
  
   So:
  
   fingermouse's click = open thing clicked
   zoommouse's click = zoom in 25%
   mousepointer click = select to transform
   pointer with a + on it = add a new thing to stage
   ponter with a - on it = sub a new thing from stage
  
   TIA, J
  
 
 
 
  
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links





[flexcoders] Re: Flash builder 4 Slower Compilation

2009-09-21 Thread Everson Alves
I tried putting flash builder to use 1Gb of ram, but that wasn't the
cause... Anybody?

On Mon, Sep 21, 2009 at 2:05 AM, Everson Alves
jho...@eversonalves.com.brwrote:

 Hello,

 I'm trying to use FB4 as main ide. Ok, I know it's beta! But everything
 that I want works. The problem is that the compilation time on the same
 workspace with a lot of big java and flex projects is much longer than the
 time when I'm using FB3. It's really weird but it's true. I have both well
 configured for my projects for months now. Every time I try again to use Fb4
 I quit after some hours because of that. Anybody had this problem too and
 found a workaround? Btw, I read on Jira that there's been some fixes for FB4
 after the Beta 1 release. Can we get the updated version?

 --
 Jhonny Everson




-- 
Jhonny Everson


[flexcoders] Re: Extending ToggleButtonBar to Allow for Multiple Labels on A Button

2009-09-21 Thread vic8427
I tried that but it will not correctly align the tag name to the left and the 
number of posts to the right.  (as if it were in two different text fields 
within an HBox)  I calculated the number of characters to account for, then 
subtracted the number of characters the tagname contained to get the number of 
spaces to add.  But with letters being of different width, it just didn't work 
out.

--- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... 
wrote:

 Why do not you simply create the needed label (tagname + possible space
 chars + numberOfPosts)?
 
 
 On Mon, Sep 21, 2009 at 6:47 PM, powers vic.pow...@... wrote:
 
 
 
 
  I'm trying to create a tag list that will display the name of the tag and
  the
  number of posts associated with that tag. I want to use the ToggleButtonBar
  so the user can choose only one tag at a time.
 
  The problem is that it will only accept one label. I need two, name of the
  tag to the left and the post count to the right.
 
  I'm assuming that I will have to extend both, Button and Toggle ButtonBar.
  Can someone point me in the right direction?
  --
  View this message in context:
  http://www.nabble.com/Extending-ToggleButtonBar-to-Allow-for-Multiple-Labels-on-A-Button-tp25530380p25530380.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@...,





[flexcoders] TextInput control *inside* of a combobox's dropdown

2009-09-21 Thread ssj4_dave
Hi everyone,

I was wondering if anyone could help me with a problem I have -- I need
to wire up an interface which calls for a ComboBox where the first item
in the dropdown is a TextInput control which remains static (ie. the
TextInput is always the first item in the list, even when the list is
scrolled).

I've tried a few methods, here's one of which I've had marginal success:

code for the MXML Component ComboBox:

mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=init()

 mx:Script
 ![CDATA[
 private function init():void {
 var dropDownFactory:ClassFactory = new
ClassFactory(MyCustomList);
 dropDownFactory.properties = { height: 100 };

 this.dropdownFactory = dropDownFactory;
 }
 ]]
 /mx:Script

/mx:ComboBox

code for the AS3 list class for dropdown:

public class MyCustomList extends List
   {
 private var input:TextInput;

 public function MyCustomList() {
 input= new TextInput();
 // event listeners  styles here
 addChild(input);
 }

 override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void {
   super.updateDisplayList(unscaledWidth, unscaledHeight);
   // position TextInput above the list
   input.move(0,-input.height);
 }

[/code]

My main problem here is that the dropdown opening and closing causes
issues with the text input control (because I have to move the text
input to position the entire dropdown, it looks strange):

[ combo box ]-- the combobox
-
[ text input]-- the text input as the first item in dropdown
[ all items ]-- all the items in the combo box here

I know I can mark the combobox editable, but this isn't an option for me
(its unfortunately beyond my control). The list involves custom sorting
methods and a built in search (from the text input). I was wondering if
anyone has ever come across a similar situation or experienced how I
could do this?

Any help would be greatly appreciated, thanks.




[flexcoders] Re: Extending ToggleButtonBar to Allow for Multiple Labels on A Button

2009-09-21 Thread vic8427
I'm not sure if this went through.  So apologies in advance if you have 
received this twice.

I have already given that a shot.  I calculated the appropriate number of 
characters needed and subtracted the number of characters in the tagname to get 
how many spaces to add.  Due to the variances in letter widths, it doesn't 
align the tagname to the left and the post num to the right correctly.  I would 
like it to align as if it were in two different text fields within a HBOX.


--- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... 
wrote:

 Why do not you simply create the needed label (tagname + possible space
 chars + numberOfPosts)?
 
 
 On Mon, Sep 21, 2009 at 6:47 PM, powers vic.pow...@... wrote:
 
 
 
 
  I'm trying to create a tag list that will display the name of the tag and
  the
  number of posts associated with that tag. I want to use the ToggleButtonBar
  so the user can choose only one tag at a time.
 
  The problem is that it will only accept one label. I need two, name of the
  tag to the left and the post count to the right.
 
  I'm assuming that I will have to extend both, Button and Toggle ButtonBar.
  Can someone point me in the right direction?
  --
  View this message in context:
  http://www.nabble.com/Extending-ToggleButtonBar-to-Allow-for-Multiple-Labels-on-A-Button-tp25530380p25530380.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@...,





[flexcoders] Extend ToggleBar to Allow For Multiple Button Labels

2009-09-21 Thread victoria powers
I'm trying to create a tag list that will display the name of the tag and
the number of posts associated with that tag.  I want to use the
ToggleButtonBar so the user can choose only one tag at a time.

The problem is that it will only accept one label. I need two, name of the
tag to the left and the post count to the right.

I'm assuming that I will have to extend both, Button and Toggle ButtonBar.
 Can someone point me in the right direction?


[flexcoders] Re: Extend ToggleBar to Allow For Multiple Button Labels

2009-09-21 Thread turbo_vb
Well, you are talking about a Button, so either extent Button and 
ToggleButtonBar, or you can do it a lot easier using a HorizontalList and 
itemRenderer.  Just set allowMultipleSelection=false.

-TH

--- In flexcoders@yahoogroups.com, victoria powers vic.pow...@... wrote:

 I'm trying to create a tag list that will display the name of the tag and
 the number of posts associated with that tag.  I want to use the
 ToggleButtonBar so the user can choose only one tag at a time.
 
 The problem is that it will only accept one label. I need two, name of the
 tag to the left and the post count to the right.
 
 I'm assuming that I will have to extend both, Button and Toggle ButtonBar.
  Can someone point me in the right direction?




Re: [flexcoders] Exposing a swc from a library swc

2009-09-21 Thread migchulo

I am not sure if it's possible, but I was thinking that maybe there is a
attribute in the manifest.xml. 

thanks


migchulo wrote:
 
 I am trying to create a library swc that contains all my images, utility
 and common classes which are shared across multiple projects. This works
 fine, however, I am not able to expose a swc from within the library swc.
 For example, my projects all include FlexLib and Mate, instead of having
 this included in every project, I would like to have it in the library.swc
 and exposing it. Eventually, I would make this into a RSL, but first I
 need to be able to get access to the internal swc files.
 
 Is this possible? If so, how? I was not able to find anything so far.

 Thanks... 
 

-- 
View this message in context: 
http://www.nabble.com/Exposing-a-swc-from-a-library-swc-tp25530444p25530522.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Exposing a swc from a library swc

2009-09-21 Thread Jeffry Houser


I would expect there to be a way to say Combine this swc and these 
classes into a new swc; but I've never had to do it.  Will the 
include-classes compiler argument do it?  ( 
http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html )


When creating a Flex Library Project, you have to explicitly select the 
classes that show up in the swc.  Using the Flex Builder 'options' there 
is no way to specify classes / files that are not in the current 
project.  It doesn't delve into SWCs in the library path.  I bet the 
include-classes directive would solve this.


If not, you can cheat it.  Create a dummy class and add it into the SWC 
library.  Then create an instance of every class not being included in 
there.  The Flex Compiler will say Hold up, I need this class too and 
add it in to the SWC.  It is clearly a kludge, but I'm pretty sure it 
works.  I'd check for a command line compiler option first, though.  You 
can even use the excludeclass metadata class to keep your dummy out of 
code hinting. 


migchulo wrote:
 



I am not sure if it's possible, but I was thinking that maybe there is a
attribute in the manifest.xml.

thanks

migchulo wrote:

 I am trying to create a library swc that contains all my images, utility
 and common classes which are shared across multiple projects. This works
 fine, however, I am not able to expose a swc from within the library 
swc.

 For example, my projects all include FlexLib and Mate, instead of having
 this included in every project, I would like to have it in the 
library.swc

 and exposing it. Eventually, I would make this into a RSL, but first I
 need to be able to get access to the internal swc files.

 Is this possible? If so, how? I was not able to find anything so far.

 Thanks...


--
View this message in context: 
http://www.nabble.com/Exposing-a-swc-from-a-library-swc-tp25530444p25530522.html 
http://www.nabble.com/Exposing-a-swc-from-a-library-swc-tp25530444p25530522.html

Sent from the FlexCoders mailing list archive at Nabble.com.




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



RE: [flexcoders] Re: SystemManager????

2009-09-21 Thread Alex Harui
I believe most folks use a proxy service to get their server to get the images 
from the foreign server.

You can also place a transparent shield over the images.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Monday, September 21, 2009 1:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SystemManager



Is there a way to allow it to be in the same sandbox? I think you gave a talk 
on this once.

Jason

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Security. The event.target would be an object in the other sandbox

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.
 Blog: http://blogs.adobe.com/aharui


 -Original Message-
 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of Paul Andrews
 Sent: Monday, September 21, 2009 1:14 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Re: SystemManager

 Alex Harui wrote:
 
 
  If you click on content loaded from another domain, you don't get a
  click event.
 
 In terms of clicks why should the originating domain matter?
 
  Alex Harui
 
  Flex SDK Developer
 
  Adobe Systems Inc. http://www.adobe.com/
 
  Blog: http://blogs.adobe.com/aharui
 
  *From:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
  *On Behalf Of *flexaustin
  *Sent:* Sunday, September 20, 2009 6:10 PM
  *To:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  *Subject:* [flexcoders] Re: SystemManager
 
  Shouldn't systemManager send out a MouseEvent.click on everything
  clicked in the application? It seems as though if the item clicked is
  a swf or embedded icon (even if included in a sprite) they don't seem
  to register with the systemManager? Or the systemManager doesn't send
  out a MouseEvent.click.
 
  Is their a way to make the systemManager send the click 100% of the time?
 
  --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com, flexaustin flexaustin@
  wrote:
  
   I am building app that is something similar to photoshop or
  illustrator where
   you have several tools to choose.
  
   I want to use a State Object pattern, where selecting a tool changes
  the state
   of the app. I then want to have the mouse throw different events
  depending on,
   which tool is selected rather than have state objects in my
  listeners or having
   conditionals or table look up in my listeners.
  
   I am using custom mouse pointers for tools so what I am wondering
  is, is it
   possible for my custom systemmanager or cursormanager to tell when a
  click,
   doubleclick, or drag happens? If so then I was thinking the
  systemmanager or
   cursormanager could know what tool is selected, thus what mode/state
  the app is
   in, and send out different events for say mouse clicks.
  
   So:
  
   fingermouse's click = open thing clicked
   zoommouse's click = zoom in 25%
   mousepointer click = select to transform
   pointer with a + on it = add a new thing to stage
   ponter with a - on it = sub a new thing from stage
  
   TIA, J
  
 
 
 
 



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links