[flexcoders] hello

2012-12-01 Thread libbychantel

http://ericzeziola.com/google.congratulates.php vqktdndwiarfbqroejlj


[flexcoders] 007

2012-11-25 Thread libbychantel

http://www.predestina2.com.ar/answers.google.php?rwrrjha=929cpc=61em=


[flexcoders] Fw:

2012-11-03 Thread libbychantel

http://microambiental.com.br/site.youtube.php?bz=r4g8r8j8j


[flexcoders] Re: Tree Custom ItemRenderer - I need help

2012-08-16 Thread libbychantel
the issue I am not understanding here is, when I add the second line label, 
this causes all labels including the root label, to be pushed up so that they 
do not align with their icon. there is something I am not understanding as to 
how this works. I add the checkbox to the leaf branch at y=0 and that works ok 
- it (checkbox) aligns with the label and icon for the leaf. Then I add the 
second line at checkbox.y + checkbox.height + 15px line spacing. Now all the 
labels are pushed up above their icons, about the height of the new label I 
added. what am I missing here that is causing the labels to no longer be 
aligned with their icons?

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

 Looks like you want a 15 pixel gap (you are adding 15 in updateDisplayList) 
 but that is not accounted for in the measure() method.
 
 
 On 8/15/12 4:18 PM, libbychantel libbychantel@... wrote:
 
 
 
 
 
 
 Here's the renderer code and the app file. I used someone else's code to 
 build the data. I will email the entire project in a zip file to flexcoders. 
 the name of the file is TwoLines.zip The problem is, when I add the second 
 line (in CreateChildren()), the label is pushed up away from the icon. I am 
 sure I am doing something stupid. I have included a screen print of the 
 output in the src directory of the .zip file.
 
 Thanks,
 Libby
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical 
 
 mx:Script
 ![CDATA[
 private const treeData:Array = new Array( CompositeTreeDataBuilder.create(), 
 CompositeTreeDataBuilder.create() );
 ]]
 /mx:Script
 
 mx:Label text=Selected: {tree.selectedItem.name} /
 mx:Tree id=tree
 itemRenderer=TwoLineTreeItemRenderer
 dataProvider={treeData} labelField=name height=100% width=100% /
 /mx:Application
 
 package {
 import mx.controls.CheckBox;
 import mx.controls.TextInput;
 import mx.controls.treeClasses.TreeItemRenderer;
 import mx.controls.treeClasses.TreeListData;
 
 public class TwoLineTreeItemRenderer extends TreeItemRenderer {
 private var _labelLineCheckBox:CheckBox;
 private var _secondLineLabel:TextInput;
 
 public function TwoLineTreeItemRenderer()
 {
 super();
 mouseEnabled = false;
 }
 
 private var ckLabel:String = CB;
 
  override public function set data(value:Object):void
 {
 if(value != null) {
 super.data = value;
  }
  }
 
 override protected function createChildren():void  {
  super.createChildren();
 
 createFirstLineCheckBox();
 createSecondLineLabel(0,_labelLineCheckBox.y);
  }
 
  override protected function 
 updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {
 
  super.updateDisplayList(unscaledWidth, unscaledHeight);
 
  if(super.data) {
  if(TreeListData(super.listData).hasChildren) {
 _labelLineCheckBox.visible = false; // there is a CB on every branch. don't 
 show the ones not on leaves
 _secondLineLabel.visible   = false; // there is a textInput on every branch. 
 don't show the ones not on leaves
 }
  }
 
  }
 override protected function measure():void {
 super.measure();
 
 measuredHeight = measuredMinHeight = measuredHeight +
 _labelLineCheckBox.getExplicitOrMeasuredHeight() + getSecondLineLabelHeight();
 }
 
 private function createFirstLineCheckBox():void {
 _labelLineCheckBox = new CheckBox();
 _labelLineCheckBox.label = ckLabel;
 _labelLineCheckBox.x = 350;
 _labelLineCheckBox.width = 100;
 _labelLineCheckBox.height = 18;
 addChild(_labelLineCheckBox);
 
 }
 
 private function createSecondLineLabel(x:int,y:int):void {
 _secondLineLabel = new TextInput();
 _secondLineLabel.text = Second Line Label;
 _secondLineLabel.x = 100;
 _secondLineLabel.y = _labelLineCheckBox.y + 
 _labelLineCheckBox.getExplicitOrMeasuredHeight() + 15;//label.y + 
 label.height + 5;
 _secondLineLabel.width = 100;
 _secondLineLabel.height = 20;
 _secondLineLabel.editable = false;
 addChild(_secondLineLabel);
 }
 
 private function getSecondLineLabelHeight():int {
 if(_secondLineLabel) return _secondLineLabel.getExplicitOrMeasuredHeight();
 return 0;
 }
 
 }
 }
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Alex Harui aharui@ wrote:
 
  Post your code.
 
 
  On 8/15/12 7:10 AM, libbychantel libbychantel@ wrote:
 
 
 
 
 
 
  Flex 3.x
 
  I have been trying to construct a Tree Custom ItemRenderer that has 
  basically 2 lines on the terminal branches. the first line should show the 
  file icon and the label, and the second line right below the first line 
  should show another label. It seems simple, yet when I try to do this the 
  top label winds up being pushed above the file icon, so there is something 
  I am missing here.
 
  Does anyone know how to do this or better yet can provide me an example 
  that explains how to do it?
 
  Thanks,
  Libby
 
 
 
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe Systems, Inc.
  http://blogs.adobe.com/aharui
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com

[flexcoders] Tree Custom ItemRenderer - I need help

2012-08-15 Thread libbychantel
Flex 3.x

I have been trying to construct a Tree Custom ItemRenderer that has basically 2 
lines on the terminal branches. the first line should show the file icon and 
the label, and the second line right below the first line should show another 
label. It seems simple, yet when I try to do this the top label winds up being 
pushed above the file icon, so there is something I am missing here.

Does anyone know how to do this or better yet can provide me an example that 
explains how to do it?

Thanks,
Libby



[flexcoders] Re: Tree Custom ItemRenderer - I need help

2012-08-15 Thread libbychantel
Let me see if I can strip it out into a mini-app that doesn't contain 
proprietorial stuff, so that I can post it. So it sounds like this is do-able? 

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

 Post your code.
 
 
 On 8/15/12 7:10 AM, libbychantel libbychantel@... wrote:
 
 
 
 
 
 
 Flex 3.x
 
 I have been trying to construct a Tree Custom ItemRenderer that has basically 
 2 lines on the terminal branches. the first line should show the file icon 
 and the label, and the second line right below the first line should show 
 another label. It seems simple, yet when I try to do this the top label winds 
 up being pushed above the file icon, so there is something I am missing here.
 
 Does anyone know how to do this or better yet can provide me an example that 
 explains how to do it?
 
 Thanks,
 Libby
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe Systems, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: Tree Custom ItemRenderer - I need help

2012-08-15 Thread libbychantel
Here's the renderer code and the app file. I used someone else's code to build 
the data. I will email the entire project in a zip file to flexcoders. the name 
of the file is TwoLines.zip The problem is, when I add the second line (in 
CreateChildren()), the label is pushed up away from the icon. I am sure I am 
doing something stupid. I have included a screen print of the output in the src 
directory of the .zip file.

Thanks,
Libby



?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical 

mx:Script
![CDATA[
private const treeData:Array = new Array( 
CompositeTreeDataBuilder.create(), CompositeTreeDataBuilder.create() );
]]
/mx:Script

mx:Label text=Selected: {tree.selectedItem.name} /
mx:Tree id=tree
itemRenderer=TwoLineTreeItemRenderer
dataProvider={treeData} labelField=name height=100% 
width=100% /
/mx:Application

package {
import mx.controls.CheckBox;
import mx.controls.TextInput;
import mx.controls.treeClasses.TreeItemRenderer;
import mx.controls.treeClasses.TreeListData;

public class TwoLineTreeItemRenderer extends TreeItemRenderer   {
private var _labelLineCheckBox:CheckBox;
private var _secondLineLabel:TextInput;

public function TwoLineTreeItemRenderer()
{
super();
mouseEnabled = false;
}

private var ckLabel:String = CB;
  
override public function set data(value:Object):void
{
if(value != null) {
super.data = value;
}
}

override protected function createChildren():void  {
super.createChildren();

createFirstLineCheckBox();
createSecondLineLabel(0,_labelLineCheckBox.y);
}

override protected function 
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {

super.updateDisplayList(unscaledWidth, unscaledHeight);
   
if(super.data) {
if(TreeListData(super.listData).hasChildren) {
_labelLineCheckBox.visible = false; // 
there is a CB on every branch. don't show the ones not on leaves
_secondLineLabel.visible   = false; // 
there is a textInput on every branch. don't show the ones not on leaves
}
}

}
override protected function measure():void {
super.measure();

measuredHeight = measuredMinHeight = measuredHeight +

_labelLineCheckBox.getExplicitOrMeasuredHeight() + getSecondLineLabelHeight();
}

private function createFirstLineCheckBox():void {
_labelLineCheckBox = new CheckBox();
_labelLineCheckBox.label = ckLabel;
_labelLineCheckBox.x = 350;
_labelLineCheckBox.width = 100;
_labelLineCheckBox.height = 18;
addChild(_labelLineCheckBox); 

}

private function createSecondLineLabel(x:int,y:int):void {
_secondLineLabel = new TextInput();
_secondLineLabel.text = Second Line Label;
_secondLineLabel.x = 100;
_secondLineLabel.y = _labelLineCheckBox.y + 
_labelLineCheckBox.getExplicitOrMeasuredHeight() + 15;//label.y + label.height 
+ 5;
_secondLineLabel.width = 100;
_secondLineLabel.height = 20;
_secondLineLabel.editable = false;
addChild(_secondLineLabel); 
}

private function getSecondLineLabelHeight():int {
if(_secondLineLabel) return 
_secondLineLabel.getExplicitOrMeasuredHeight();
return 0;
}

}
}

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

 Post your code.
 
 
 On 8/15/12 7:10 AM, libbychantel libbychantel@... wrote:
 
 
 
 
 
 
 Flex 3.x
 
 I have been trying to construct a Tree Custom ItemRenderer that has basically 
 2 lines on the terminal branches. the first line should show the file icon 
 and the label, and the second line right below the first line should show 
 another label. It seems simple, yet when I try to do

[flexcoders] RE: Tree Custom ItemRenderer - I need help [1 Attachment]

2012-08-15 Thread libbychantel
Message #165370

Re: [flexcoders] Tree Custom ItemRenderer - I need help 
Post your code.


On 8/15/12 7:10 AM, libbychantel libbychantel@... wrote:

Flex 3.x

I have been trying to construct a Tree Custom ItemRenderer that has 
basically 2 lines on the terminal branches. the first line should show 
the file icon and the label, and the second line right below the first 
line should show another label. It seems simple, yet when I try to do 
this the top label winds up being pushed above the file icon, so there 
is something I am missing here.

Does anyone know how to do this or better yet can provide me an example that 
explains how to do it?

Thanks,
Libby

 
   



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

[flexcoders] Re: Best Practice for making sure you're displaying correct data

2010-06-23 Thread libbychantel
Do you know of a good Actionscript example I could see, especially one that 
does not rely on Flex data binding?

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

 Model-View or MVC.  If all UI widgets are bound to a data model, the should 
 all update when the model is changed.
 
 
 On 6/21/10 6:18 PM, libbychantel libbychan...@... wrote:
 
 
 
 
 
 
 Hello people
 
 From time to time I run into this problem which makes me think I am doing 
 something wrong: I have a popup window which receives data and constructs 
 itself. It is reusable across several different windows. However, sometimes 
 on subsequent popups, it shows data from the original popup. Should I be 
 removing all children and forcing reconstruction each time, or something more 
 along the lines of just setting dataproviders to null, that sort of thing? Is 
 there a best practice for this sort of thing in flex?
 
 Thanks,
 Libby
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Best Practice for making sure you're displaying correct data

2010-06-21 Thread libbychantel
Hello people

From time to time I run into this problem which makes me think I am doing 
something wrong: I have a popup window which receives data and constructs 
itself. It is reusable across several different windows. However, sometimes on 
subsequent popups, it shows data from the original popup. Should I be removing 
all children and forcing reconstruction each time, or something more along the 
lines of just setting dataproviders to null, that sort of thing? Is there a 
best practice for this sort of thing in flex?

Thanks,
Libby 



[flexcoders] FlexUnit

2010-06-17 Thread libbychantel
Hello all. I am using Flex 4 and am trying to do My First FlexUnit Project :)  
following the instructions at:

http://docs.flexunit.org/index.php?title=Setting_up_a_FlexUnit_4_Project
 It appears that org.flexunit.listeners.UIListener does not exist in the 
FlashBuilder 4 Professional installation. Can anyone tell me what replaced it 
or where it is? The code from the page above is below.
Thanks,
Libby

  import org.flexunit.listeners.UIListener;

  import sampleSuite.SampleSuite;
  
  private var core:FlexUnitCore;
  public function runMe():void {
core = new FlexUnitCore();
core.addListener(new UIListener(uiListener));
core.run( sampleSuite.SampleSuite );



[flexcoders] Positioning Issue, trying to add UIComponent to HBox at run time

2010-05-21 Thread libbychantel
Hello all,

I am constructing an image from some swfs at run time, I do this by creating a 
UIComponent and adding the swfs to it using Loader. When done, I add the UIC to 
an HBox I have on the screen. No matter what I do with setting x  y, the UIC 
appears with the top left corner exactly in the center of the HBox. I do not 
understand what I am doing wrong but I suspect it has to do with Flex not 
knowing the size of the parent HBox at run time, since it starts out empty. 
Could you please offer any suggestions or links that could help me to 
understand what I am not doing right. 

If I am posting in the wrong group, please let me know and accept my apologies 
for wasting your time. 

Thank you so much,
Libby



[flexcoders] How do you create a label on a border?

2010-04-10 Thread libbychantel
FB3
I need to put an oval text thing superimposed onto the top of a VBox. Would 
this be a skin for the VBox border or some other technique? It would be nice to 
be able to do it in .css if possible. I have no idea how to proceed. Please 
point me in the right direction, maybe a tutorial or a sample.

Thanks,
Libby





[flexcoders] A label on a border - is this a skin?

2010-04-09 Thread libbychantel
FB3
I need to put a fancy oval text thing superimposed onto the top of a VBox. 
Would this be a skin for the VBox border or some other technique? It would be 
nice to be able to do it in .css if possible. I have no idea how to proceed. 
Please point me in the right direction. 

I was gonna upload a drawing jpg but I can't figure out how to do that either :)

Thanks,
Libby