Re: [flexcoders] AIR - Content resize according window

2012-01-19 Thread Isabelle Loyer Perso













[flexcoders] Tree drag-drop function

2012-01-19 Thread steveroger_flex
hello all,

there is one single tree component in my application.
XML is dataprovider of that tree.
e.g
node name=Cars id=1 isparent=true
 node name=Audi id=2 isparent=true
  node name=A4 id=3 isparent=false/
  node name=A6 id=4 isparent=false/
 /node
 node name=Mercedes id=5 isparent=true
  node name=M-Class id=6 isparent=false/
  node name=R-Class id=7 isparent=false/
 /node
/node

when i drag one node and drop to another node, how can i know the xml value of 
both source  destination node?
e.g
we are Dragging 'R-Class' node to 'Audi' node, on dragComplete OR dragDrop 
event, how to get R-Class node id 7  Audi node id 2 in different variables.
So we can check some validation of node and perform drag-drop operation.

Any idea?

Steve Roger.



Re: [flexcoders] AIR - Content resize according window

2012-01-19 Thread Isabelle Loyer Perso













[flexcoders] Re: Tree drag-drop function

2012-01-19 Thread steveroger_flex
actually what i want to implement is like :

When drapDrop event complete, i want XML value of both nodes (source  target) 
in variables.
Then I will show dialog box having some options  instructions (e.g You wanna 
Move node OR Copy node to target).
Depend on user selection, do the operation.

hope u get application scenario.
is this possible for tree control using drag drop? if so, then how?

Please help.

Thank you,

Steve Roger.


--- In flexcoders@yahoogroups.com, steveroger_flex steveroger_flex@... 
wrote:

 hello all,
 
 there is one single tree component in my application.
 XML is dataprovider of that tree.
 e.g
 node name=Cars id=1 isparent=true
  node name=Audi id=2 isparent=true
   node name=A4 id=3 isparent=false/
   node name=A6 id=4 isparent=false/
  /node
  node name=Mercedes id=5 isparent=true
   node name=M-Class id=6 isparent=false/
   node name=R-Class id=7 isparent=false/
  /node
 /node
 
 when i drag one node and drop to another node, how can i know the xml value 
 of both source  destination node?
 e.g
 we are Dragging 'R-Class' node to 'Audi' node, on dragComplete OR dragDrop 
 event, how to get R-Class node id 7  Audi node id 2 in different variables.
 So we can check some validation of node and perform drag-drop operation.
 
 Any idea?
 
 Steve Roger.





[flexcoders] Problem with data tip in the chart swf dynamically loaded in parent application

2012-01-19 Thread amit_kulk44
Hello everyone, 
datatips of Linechart are placed in the wrong coordinates. If a 
datatip is supposed to be show according to  mouse pointer coordinate  of the 
Linechart.



[flexcoders] can't get Tooltips and Drag and Drop to play nice

2012-01-19 Thread Pruitt, Byron S
When I perform a Drag n Drop on one of my components I get my tool tip.  I have 
implemented a custom tooltip using Adobe's example (the one with the Panel).  
Using the DragManager.isDragging in a couple of spots I can prevent the 
creation of my custom tool tip, but it defaults to creating the tool tip with 
the single space as defined below.  Through trial and error I found the 
toolTip=  is required in order for the custom tool tip to happen.  It's this 
default tool tip I can't solve.  The ToolTipEvent seems to be uncancelable, so 
I am stuck.  I thought about trying to call destroyToolTip() on ToolTipManager, 
but I am afraid the default tool tip will still show.  I haven't tried yet.

Thanks for any future help.
.

view:MyParentContainer id=myPCont height=100% width=100
fx:Script
![CDATA[
:
private function onCreateTooltip(event : ToolTipEvent) : void
{
   if(DragManager.isDragging) return;
   myCont.createTooltip(event);
}
]]
/fx:Script
view:MyContainer id=myCont height=100% width=100% 
toolTipCreate=onCreateTooltip(event) toolTip= /
/view: MyParentContainer



Re: [flexcoders] Re: Flex alternatives

2012-01-19 Thread Dave Glasser
I'll use what I've always used. Visual SlickEdit and Apache ant. And from what 
I've heard, FlashDevelop (http://www.flashdevelop.org), which is mature, 
robust, free and open source, is also pretty good.




 From: Ron G rgri...@sinclairoil.com
To: flexcoders@yahoogroups.com 
Sent: Saturday, January 14, 2012 10:37 PM
Subject: [flexcoders] Re: Flex alternatives
 
Whoaaa! Just re-read that, and if there is any one statement in all this thread 
that readers should pay attention to, it is this statement from Alex (quoted 
below).

If FlashBuilder is going to be geared toward gaming in Flash, I wonder which 
IDE Flex developers are planning on using for the future? From Alex statement, 
Adobe is retaining FlashBuilder and its roadmap will be geared toward being 
optimal for gaming development. Clearly then, the Flex community can't even 
modify it beyond 4.6 to accommodate future features of Flex. The Flex community 
is clearly going to have to develop their own IDE in addition to enhancing and 
maintaining the SDK. That is, if I read Alex Harui's statement correctly. Am I 
wrong? Or is Adobe going to both retool FlashBuilder for gaming, but continue 
to enhance it was well for future Flex SDK enhancements. Seems to me that goals 
of Adobe and the Apache Flex community might be at odds in FlashBuilder's 
roadmap.

Flex community now either has to rely upon two proprietary products from Adobe 
to accommodate its own roadmap, or it must rely upon just one (Flashplayer) and 
decouple themselves from FlashBuilder by building their own IDE. 

Ron 

--- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote:
 FlashBuilder is being directed towards Gaming in Flash, Flex is being donated 
 to the community.  
 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui







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



    http://docs.yahoo.com/info/terms/

[flexcoders] ADG Get All Items Under An Open Node

2012-01-19 Thread Angelo Anolin
My ADG has 3 levels of grouping:

Building
  Level
    Room #

i.e.

Engineering Building
  Level 1
  Level 2
  Level 3
    Room A
      50 students
      25 students

Accounting Building

  Level 1
    Room D
      10 students
      8 students
    Room C
      5 students


How can I loop through the ADG for all items that are under the opened Room 
nodes, basically getting data for the Room A (50 students, 25 students), Room D 
(10 students, 8 students) and Room C (5 students)?

Thanks.


Side Note:
I just saw a question posted on SO which seem to be doing something that I need 
but I have not explored the IHierarchicalCollectionView path.

http://stackoverflow.com/questions/8936366/advanceddatagrid-iterating-through-each-row-of-the-open-leaf-tree 

[flexcoders] odd crossdomain.xml problem

2012-01-19 Thread flexwdw
So, I have a situation where my app swf is separate from my stylesheet swf.  I 
use styleManager.loadStyleDeclartions to do this.  

In some situations we have, my app swf actually lives on a different domain 
than my stylesheet swf.  We have a crossdomain file setup on both domains for 
this, and it has worked for a long time.  

Suddenly today, this stopped working.  I currently do not believe there was a 
change that caused this to happen.  I have verified that the crossdomain.xml 
file is correct and accessible from the root of both domains.  Everything looks 
fine.  

The behavior I see in my sniffer:
1) Application SWF comes across
2) Stylesheet SWF comes across

The Flex log gives me a:

*** Security Sandbox Violation ***
SecurityDomain 'app.swf' tried to access incompatible context 
'stylesheet.swf'
Platform: Failed to load stylesheet: SWF is not a loadable module
Platform: Failed to load stylesheet: Unable to load style(SWF is not a loadable 
module): stylesheet.swf.
Warning: Failed to parse corrupt data.

I hacked my setup so that I could load the stylesheet swf from the same domain 
and it works - so I do not believe that the stylesheet is corrupt at all, in 
fact I'm sure of it.  

The weird part:  I never see (cache cleared) a request for crossdomain.xml.  I 
can't think of a scenario where it wouldn't try to get the crossdomain.xml file 
-- it is especially confusing that we don't try to get the crossdomain.xml, we 
get a sandbox error, and the stylesheet SWF still comes across the wire!  

Any clue on what I should look for here?  I'm officially stumped.  This is a 
flex 3.5 environment.  

thanks.



Re: [flexcoders] odd crossdomain.xml problem

2012-01-19 Thread Alex Harui
Are you setting the SecurityDomain parameter in loadStyleDeclarations?

On 1/19/12 8:06 PM, flexwdw flex...@yahoo.com wrote:






So, I have a situation where my app swf is separate from my stylesheet swf.  I 
use styleManager.loadStyleDeclartions to do this.

In some situations we have, my app swf actually lives on a different domain 
than my stylesheet swf.  We have a crossdomain file setup on both domains for 
this, and it has worked for a long time.

Suddenly today, this stopped working.  I currently do not believe there was a 
change that caused this to happen.  I have verified that the crossdomain.xml 
file is correct and accessible from the root of both domains.  Everything looks 
fine.

The behavior I see in my sniffer:
1) Application SWF comes across
2) Stylesheet SWF comes across

The Flex log gives me a:

*** Security Sandbox Violation ***
SecurityDomain 'app.swf' tried to access incompatible context 
'stylesheet.swf'
Platform: Failed to load stylesheet: SWF is not a loadable module
Platform: Failed to load stylesheet: Unable to load style(SWF is not a loadable 
module): stylesheet.swf.
Warning: Failed to parse corrupt data.

I hacked my setup so that I could load the stylesheet swf from the same domain 
and it works - so I do not believe that the stylesheet is corrupt at all, in 
fact I'm sure of it.

The weird part:  I never see (cache cleared) a request for crossdomain.xml.  I 
can't think of a scenario where it wouldn't try to get the crossdomain.xml file 
-- it is especially confusing that we don't try to get the crossdomain.xml, we 
get a sandbox error, and the stylesheet SWF still comes across the wire!

Any clue on what I should look for here?  I'm officially stumped.  This is a 
flex 3.5 environment.

thanks.






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui