Re: [flexcoders] Re: Flying text or passing text??

2009-06-17 Thread Allan Pichler
I have a more outrageous hippie version of a marquee on my
experimental site. And as a sidenote the term marquee is probably
the right one, but the fact that my coding career started back in 1982
and I used to be part of the C64/Amiga demo scene I will insist that
it's a 'scroller'... In my example a D.Y.P.P. scroll.
Different Y Pixel Positions :)

http://www.unzipmenow.com/pixfun/bin2/scroll.html


-Allan

On Wed, Jun 17, 2009 at 8:42 AM, Harish
Sivaramakrishnan wrote:
>
>
> Joan Lafferty has a nice implementation of a marquee in her blog -
> http://butterfliesandbugs.wordpress.com/2007/09/06/marquee-component/
>
> On Wed, Jun 17, 2009 at 6:56 PM, valdhor 
> wrote:
>>
>>
>> AFAIK it is called a ticker. There are many examples available. Try a
>> Google search. Here are a couple to start you off...
>>
>> http://dreamwagon.com/blog/?p=7
>>
>> http://dave.needlz.nl/index.php/2009/ticker/
>>
>> --- In flexcoders@yahoogroups.com, "hworke"  wrote:
>> >
>> >
>> >
>> > Hi, I am trying to create an effect using
>> > text. I do not know what to call it - flying
>> > text or passing text!! At the bottom of
>> > the TV screen we always see Headline news
>> > or stock market info text are moving from
>> > right to left - I want to do something like
>> > that. What is the best option for me?
>> >
>> > Regards..
>> >
>>
>
> 


Re: [flexcoders] MXML draw dashed line between two text box

2009-06-17 Thread Harish Sivaramakrishnan
You can style the HRule Component to draw a dashed / dotted line or even
change the skin of the HRule component by overriding the programmatic skin
that is drawn by default.

Cheers
Harish

On Wed, Jun 17, 2009 at 5:56 AM, ram_yohi  wrote:

>
>
> Hi,
>
> I need some information.
>
> I have to draw on "dashed separator line" in FLEX.
>
> What code can help to put it in to MXML file.
>
> In the Picture you can see the dashed line in-between Radio Button and
> Search Button.
>
> I have to design like.
>
> I do not know what Code is for that to draw dashed line in MXML.
>
> Thanks,
>
> Ramesh
>
>  
>


[flexcoders] test (just ignore folks, thanks.)

2009-06-17 Thread xelf...@rocketmail.com
hello world.



RE: Re[flexcoders] moteObject endpoint= vs. Flex settings

2009-06-17 Thread Jake Churchill
To my knowledge, there is now benefit or detriment to doing it either way.
I do the same thing and I know other people who do also.  I actually find it
easier to deploy this way because I always have some kind of config xml file
that loads at startup which contains things like the domain and endpoint in
it.  That way, when I deploy an app, the only thing I need to worry about
changing is the config file.  I don't spend a bunch of time trying to figure
out server configurations and difference between my environment and a
production/staging environment.  

 

Jake Churchill

CF Webtools

11204 Davenport, Ste. 100

Omaha, NE  68154

http://www.cfwebtools.com

402-408-3733 x103

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of mikeashields
Sent: Wednesday, June 17, 2009 7:59 PM
To: flexcoders@yahoogroups.com
Subject: Re[flexcoders] moteObject endpoint= vs. Flex settings

 







Primarily because I cannot seem to understand the CF Root Folder / Webroot /
Root URL for a non-localhost setup (ie //DevServer/ColdFusion8/wwwroot
along with http://testingIP:8500/projname???) I have taken to using
the endpoint property in RemoteObject as follows:

http://174.1.159.113:8500/flex2gateway/";
method="getQuote"
arguments="{event.symbol}">

What is the downside of this??? I assume if the CF-Flex settings are set
"properly" then flex uses those to set the "endpoint" so in theory the
benefit would be not having to enter endpoint in each time (in which case I
actually prefer the verbiosity of the above method) but is there any other
reason/benefit to either not using the endpoint OR to setting up the CF-Flex
link??
-- 
View this message in context:
http://www.nabble.com/RemoteObject-endpoint%3D-vs.-Flex-settings-tp24084746p
24084746.html
Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Tim Hoff

No response huh?  Ok, you're welcome valdhor (Steve).  One thing to
point out is that all flex controls, containers and components extend
UIComponent.  Therefore, they all use the createChildren(),
commitProperties(), measure(), layoutChrome() and updateDisplayList() 
methods.  This applies to itemRenderers as well.  The Flex engineers did
a great job developing the component life-cycle, and each of these
functions has a specific purpose.  So really it's fine, if some other
practice, that circumvents the intended use of these methods, works for
you.  However, it's propbably not fair to spread bad habits like this to
others; that are just learning.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Ok, here's how I would do it; with efficiency and best-practice in
mind:
>
>
http://www.timothyhoff.com/projects/AgeItemRendererSample/AgeItemRendere\
\
> rSample.html
>
 erSample.html>
> ( right click to view source )
>
> Two main differences Steve:
>
> First, use createChildren to add the children, instead of in set data.
> I suspect that what's happening with the way you are doing it is that
> each time the data is changed (which, because the itemRenderers are
> recycled, happens on every scroll), the instance of the child is
> attempted to be added to the display list. I can't see the code in
> flash.display.DisplayObjectContainer, but I suspect that the code is
> checking to see if the instance exists already and/or re-parenting it.
> Either way, this is an un-necessary step. You only need to add the
> child once and then use the data to control it's state.
>
> Second, for efficiency, try to avoid using containers in
itemRenderers.
> A good practice is to extend UIComponent and do the layout manually.
> It's a little more work, but you get some good performance benefits.
>
> I encourage you to read this series
>  and
> also look at the source code for the Flex controls. They all follow
the
> same component life-cycle pattern.
>
> Angelo, look at this sample for how to use an itemEditor.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "valdhor" valdhorlists@ wrote:
> >
> > I thought that was the idea.
> >
> > In the example, I wanted a new NumericStepper for each data item
> (Actually two new NumericSteppers). If createChildren only runs once,
> how would you get the required output? In other words, can you post
your
> version of the example using createChildren ?
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Yes, createChildren will only execute once; while set data will
> execute
> > > many times. Perhaps it's not a problem if the same child gets
added
> to
> > > the display list everytime that the data is set. But usually, you
> only
> > > need to add them once.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "valdhor" 
wrote:
> > > >
> > > > I use addChild in the set data function only because I always
> have.
> > > >
> > > > I have built hundreds of renderers this way and none of them
have
> > > given me a problem. If there's a good reason why I shouldn't do it
> this
> > > way, I'm all ears.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > I'm with you Steve; about using AS for an itemRenderer. I do
> wonder
> > > why
> > > > > you would use addChild in the set data function though; rather
> than
> > > in
> > > > > createChildren . For mxml, this should work Angelo:
> > > > >
> > > > > 
> > > > > 
> > > > >  > > > > width="100%" horizontalScrollPolicy="off"
> > > verticalScrollPolicy="off">
> > > > >  > > > > textAlign="center"/>
> > > > >  > > > > textAlign="center"/>
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > For the HBox, notice the use of horizontalGap, instead of a
> spacer
> > > as
> > > > > well. Just cleans it up a bit.
> > > > >
> > > > > Cheers,
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "valdhor" 
> wrote:
> > > > > >
> > > > > > This is probably possible in MXML but I prefer to write my
> item
> > > > > > renderers in ActionScript...
> > > > > >
> > > > > > main.mxml:
> > > > > > 
> > > > > > http://www.adobe.com/2006/mxml";
> > > > > > layout="absolute">
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >  > > > > > itemRenderer="NumericStepperRenderer"/>
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > NumericStepperRenderer.as:
> > > > > > package
> > > > > > {
> > > > > > import mx.containers.HBox;
> > > > > > import mx.controls.NumericStepper;
> > > > > >
> > > > > > public class NumericStepperRenderer extends HBox
> > > > > > {
> > > > > > private var nsOutwardAgeYear:NumericStepper = new
> > > > > > NumericStepper();
> > > > > > private var nsOutwardAgeMonths:NumericStepper = new
> > > > > > NumericStepper();
> > > > > >
> > >

Re[flexcoders] moteObject endpoint= vs. Flex settings

2009-06-17 Thread mikeashields

Primarily because I cannot seem to understand the CF Root Folder / Webroot /
Root URL   for a non-localhost setup (ie //DevServer/ColdFusion8/wwwroot
along with http://testingIP:8500/projname???)   I have taken to using
the endpoint property in RemoteObject as follows:

 

http://174.1.159.113:8500/flex2gateway/";
method="getQuote"
arguments="{event.symbol}">

 

What is the downside of this???  I assume if the CF-Flex settings are set
"properly" then flex uses those to set the "endpoint" so in theory the
benefit would be not having to enter endpoint in each time (in which case I
actually prefer the verbiosity of the above method) but is there any other
reason/benefit to either not using the endpoint OR to setting up the CF-Flex
link??
-- 
View this message in context: 
http://www.nabble.com/RemoteObject-endpoint%3D-vs.-Flex-settings-tp24084746p24084746.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] multiple filters on XMLListCollection how?

2009-06-17 Thread munene_uk
does anyone have any examples of how i can create multiple filters for use in 
two comboboxes for one datagrid? seems my implementation only filters on one 
but not both e.g if i select items that are size 12 i cant further select size 
12 items that are black... AS3 code below

private function filterColourData():void
{

xmlData2.filterFunction = applyColourFilter;
xmlData2.refresh()
Alert.show(xmlData2.length.toString());

}
public function applyColourFilter(item:Object):Boolean
{

if(colourFilter.selectedItem == "All colours")
{
return true

}

else
{
return item.colour == colourFilter.selectedItem;

}






}


 private function filterSizeData():void
{

xmlData2.filterFunction = applySizeFilter;
xmlData2.refresh()
Alert.show(xmlData2.length.toString());

}
public function applySizeFilter(item:Object):Boolean
{


if(sizeFilter.selectedItem == "All sizes")
{
return true
}
else
{
return item.sizes == sizeFilter.selectedItem;

}




}



[flexcoders] Re: IE8 Vista Player 10 getting glitchy when reading progress of downloading mp3?

2009-06-17 Thread joshuajnoble
--- In flexcoders@yahoogroups.com, "joshuajnoble"  wrote:
>
> 
> Has anyone heard anything like this before? I don't have Vista, so I can't 
> check, but it's fine on all OSX browsers. We have the same player version. I 
> remove this line:
> 
> loadPos = mp3.bytesLoaded / mp3.bytesTotal; // after divide by 0 check
> 
> and all goes well on IE8. With it in, apparently there's problems. It may 
> well be something else, but I'm just curious if it's something anyone has 
> heard of. Thanks,
>

Sorry, I should mention, the 'glitch' seems to be that the playback stops and 
the SOUND_COMPLETE event is dispatched by the SoundChannel.



[flexcoders] IE8 Vista Player 10 getting glitchy when reading progress of downloading mp3?

2009-06-17 Thread joshuajnoble

Has anyone heard anything like this before? I don't have Vista, so I can't 
check, but it's fine on all OSX browsers. We have the same player version. I 
remove this line:

loadPos = mp3.bytesLoaded / mp3.bytesTotal; // after divide by 0 check

and all goes well on IE8. With it in, apparently there's problems. It may well 
be something else, but I'm just curious if it's something anyone has heard of. 
Thanks,



Re: [flexcoders] Adobe Bug System - Please explain the internal "Found in Version" numbers

2009-06-17 Thread Matt Chotin
Yeah, this is a problem, we're sorry :-)  DMV generally stands for the release, 
you should use 3.0.2 in this case I think.  We'll be working on cleaning this 
up and maybe we can do a better job with versions moving forward.

I12 is the iterations for current development, so stuff going into Flex 4.

Matt


On 6/17/09 11:12 AM, "EddieBerman"  wrote:






When adding new bugs to the Adobe Bug System (chart bugs in my case), I'm never 
entirely clear as to what version to use from those offered in the drop-down. 
I'd like to use, for example, SDK 3.3.0, but that's not one of the choices.

I have no idea what I12, I12, DMV 3.0.2, DMV 3.4.0, etc, are so I leave the 
field blank, and then note my SDK version in the Steps To Reproduce. I've 
searched for clues, but can't find one.

I suspect I'm not the only one dealing with this. Thanks in advance for 
deciphering the list.

Cheers,
Eddie B.







[flexcoders] Changing background image in datagrid - does not clear out

2009-06-17 Thread luvfotography
Hi, I've got a datagrid in AIR, alpha=".5" backgroundSize="100%"

and I'm dynamically setting it with:
var picurl:String = 'http://mysite.com/mypic.jpg';

setStyle("backgroundImage", picurl);

and this works, however after 2 or 3 background changes, the pictures don't 
clear and they keep layering each other with some transparency.

I tried clearStyle, no luck,
any way to clear out the old image?
thanks



Re: [flexcoders] Binding between components

2009-06-17 Thread mikeashields

Steve, 

Thanks, your code illuminated some valuable concepts (tangent question, what
does super() do?  I think it introduces all the properties of the class
being extended but if you could confirm it would be great)

but what I am attempting to determine is how to bind/send events from
component A to component B without involving "relay code" on say the
Main.mxml application.

In other words, if Main.mxml contains componentA and componentB can say
componentA declare a Metatag event that can be received by componentB
directly?  And/or can "html type name chains be used such that a
 could have say source="componentA.input1.text"
destination="main.componentB.label.text" />  TIA

 

-- 
View this message in context: 
http://www.nabble.com/Binding-between-components-tp24061284p24082462.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Binding between components

2009-06-17 Thread valdhor
First off, events will always bubble UP. To pass an event into a
component just inject it.

Here is a simple application that should get you started:


http://www.adobe.com/2006/mxml";
layout="vertical"
 xmlns:Components="components.*"
creationComplete="onCreationComplete()">
 
 
 
 
 
 
 


MyLabelAS.as
package components
{
 import flash.events.MouseEvent;
 import mx.controls.Alert;
 import mx.controls.Label;

 public class MyLabelAS extends Label
 {
 public function MyLabelAS()
 {
 super();
 addEventListener(MouseEvent.CLICK, onMouseClick);
 }

 private function onMouseClick(event:MouseEvent):void
 {
 Alert.show("Mouse Click Event Received");
 }
 }
}

MyLabelMXML.mxml

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



If you peruse this, you should be able to see how to move something into
a component as well as inject an event into a component. If you need
anymore help, just ask.


HTH.



Steve



--- In flexcoders@yahoogroups.com, mikeashields 
wrote:
>
>
> I have the following simplified mxml application but want to know how
to move
> the label to a new component and the Button to a different component
(both
> components then being in the application).  More specifically I cannot
> determine how to "address" the variable names and/or event listeners
between
> components (ie component A event bubbles up to application but then
does not
> "bubble" down to component B).  Thanks in advance.
>
> 
> http://ns.adobe.com/mxml/2009";
>   xmlns:s="library://ns.adobe.com/flex/spark"
>   xmlns:mx="library://ns.adobe.com/flex/halo"
>   minWidth="1024" minHeight="768" xmlns:components="components.*">
>
>  
>  
>  
>
>  
>  
>
> 
>
> 
>
> package vos
> {
>  public class BoringVO1
>  {
>   [Bindable]
>   public var wall : String = "Hello World";
>  }
> }
>
>
> --
> View this message in context:
http://www.nabble.com/Binding-between-components-tp24061284p24078417.htm\
l
> Sent from the FlexCoders mailing list archive at Nabble.com.
>



[flexcoders] using ant as the builder in eclipse

2009-06-17 Thread arieljake
If i have one application and one library, in my ant file that i have specified 
as the builder in the project settings for the application, am I supposed to 
set depends="library-build" or not? 

I have the library specified as a dependency in the project properties, and it 
seems as if the library's build.xml file is being called automatically when I 
build the application, but I don't see how to get the application's build to 
wait till the library is done compiling.

The alternative is to use depends="library-build" to make sure they happen in 
the correct order, but the only way I see to disable the application build from 
automatically triggering the library build is to remove the link in the project 
properties, but then will code references work in the editor??

How are people handling this?



Re: [flexcoders] URLStream, RMTP, ByteArray?

2009-06-17 Thread Berkay Unal
Scenario is like this:It is an IPTV app where users can watch videos online
when they purchase and also while they are watching the video should be
downloaded to client machine for later use.

Best,

Berkay UNAL
berkayu...@gmail.com


On Wed, Jun 17, 2009 at 18:11, Harish Sivaramakrishnan <
hsivaramakrish...@gmail.com> wrote:

>
>
> The whole purpose of keeping it streaming is that you SHOULD NOT be able to
> rip it using your client. I cannot think of a legal, straightforward way.
>
> Cheers
> Harish
>
>
> On Wed, Jun 17, 2009 at 7:56 PM, Berkay Unal  wrote:
>
>>
>>
>> Hi Coders,
>>
>> I am able to record,capture a video or an audio to desktop with AIR using
>> URLStream, and byteArray. It works np.
>>
>> In the project client ask me to record the streaming video to desktop
>> while the video is streaming. Been trying to use URLStream over RMTP but as
>> can be thought it does not work? Any thoughts to achieve this?
>>
>> Best,
>>
>> Berkay UNAL
>> www.berkayunal.com
>> berkayu...@gmail.com
>>
>
>  
>


[flexcoders] Re: using arrow keys to move around editable datagrid

2009-06-17 Thread philcruz
Yeah, something was off so I backed things out so tabbing worked then moved 
forward again.  I couldn't get things to work by faking tab events though.  The 
resolution for me was dispatching the ITEM_EDIT_END event first and then move 
the cell (with callLater()).  Here's the key down handler on the itemEditor. (I 
no longer needed to have the key handler on the grid itself). Thanks.

-Phil

public function onKeyDown(event:KeyboardEvent):void
{
trace("TextInputEditor.onKeyDown");
var grid:com.graphpad.datagrid.DataGrid = 
com.graphpad.datagrid.DataGrid(this.parent.parent);
switch(event.keyCode)
{
case(Keyboard.DOWN):
trace("textInputEditor.DOWN");  

dispatchEvent(new 
DataGridEvent(DataGridEvent.ITEM_EDIT_END,true, false,listData.columnIndex, 
null,listData.rowIndex, mx.events.DataGridEventReason.NEW_ROW,null));
callLater(grid.moveTo, [row + 1 , col]);
break;
case(Keyboard.UP):
trace("textInputEditor.UP");
dispatchEvent(new 
DataGridEvent(DataGridEvent.ITEM_EDIT_END,true, false,listData.columnIndex, 
null,listData.rowIndex, mx.events.DataGridEventReason.NEW_ROW,null));
callLater(grid.moveTo, [row - 1 , col]);
break
case(Keyboard.LEFT):
trace("textInputEditor.LEFT");
dispatchEvent(new 
DataGridEvent(DataGridEvent.ITEM_EDIT_END,true, false,listData.columnIndex, 
null,listData.rowIndex, mx.events.DataGridEventReason.NEW_COLUMN,null));
callLater(grid.moveTo, [row , col - 1]);

break;
case(Keyboard.TAB):
if (event.shiftKey)
callLater(grid.moveTo, [row , col - 1]);
else
callLater(grid.moveTo, [row , col + 1]);
break;
case(Keyboard.RIGHT):
trace("textInputEditor.RIGHT");
dispatchEvent(new 
DataGridEvent(DataGridEvent.ITEM_EDIT_END,true, false,listData.columnIndex, 
null,listData.rowIndex, mx.events.DataGridEventReason.NEW_COLUMN,null));
callLater(grid.moveTo, [row, col + 1]); 

break;
case(Keyboard.ENTER):
trace("textInputEditor.ENTER");
if (event.shiftKey) 
callLater(grid.moveTo, [row - 1 , col]);
else
callLater(grid.moveTo, [row + 1 , col]);
break;  
}

}

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> TAB should work in a standard DG.  If it isn't in your custom DG, something 
> might be thrown off by your customization which is also making your solution 
> more difficult.  You might want to try faking tabs on a standard DG and 
> compare.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of philcruz
> Sent: Tuesday, June 16, 2009 5:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: using arrow keys to move around editable datagrid
> 
> 
> 
> 
> 
> Thanks for the reply. The custom grid wasn't moving from cell to cell based 
> on typing the tab key so I didn't think that simulated events would do the 
> trick. I got it to work but I wonder if there is a cleaner way.
> 
> The grid has a custom itemEditor that extends TextInput. The itemEditor has a 
> listener for keydown that calls this function
> 
> public function onKeyDown(event:KeyboardEvent):void
> {
> trace("TextInputEditor.onKeyDown");
> //trace("currentTarget:" + event.currentTarget.toString());
> var grid:com.graphpad.datagrid.DataGrid = 
> com.graphpad.datagrid.DataGrid(this.parent.parent);
> switch(event.keyCode)
> {
> case(Keyboard.DOWN):
> trace("textInputEditor.DOWN");
> //trace("editedItemPosition:" + 
> mx.utils.ObjectUtil.toString(grid.editedItemPosition));
> grid.editedItemPosition = { rowIndex:grid.editedItemPosition.rowIndex + 1, 
> columnIndex:grid.editedItemPosition.columnIndex };
> break;
> case(Keyboard.UP):
> trace("textInputEdit

[flexcoders] Adobe Bug System - Please explain the internal "Found in Version" numbers

2009-06-17 Thread EddieBerman
When adding new bugs to the Adobe Bug System (chart bugs in my case), I'm never 
entirely clear as to what version to use from those offered in the drop-down. 
I'd like to use, for example, SDK 3.3.0, but that's not one of the choices. 

I have no idea what I12, I12, DMV 3.0.2, DMV 3.4.0, etc, are so I leave the 
field blank, and then note my SDK version in the Steps To Reproduce. I've 
searched for clues, but can't find one.

I suspect I'm not the only one dealing with this. Thanks in advance for 
deciphering the list.

Cheers,
Eddie B.





[flexcoders] Re: Problems using ItemRenderers in DataGrid

2009-06-17 Thread Adrian Resa Jones
A couple of possibilities: Are you using binding for the checked value? The 
other possibility is that after clearing values in your data array you may need 
to refresh() your data array in order to have the changes reflected in your 
datagrid. Hope that helps.

--- In flexcoders@yahoogroups.com, "vin.flex"  wrote:
>
> 
> I have created a check box item renderer for my datgrid.
> I will update the arraycollection by checking or unchecking 
> the checkbox. I will submit the data to backend and I will assign the 
> dataprovider with updated dataprovider. My data is getting
> updated but the some checkboxes are appearing as checked.
> They are not getting reinitialized.
> 
> Can any body help me solve this issue.Its urgent
> 
> Thanks 
> vin
> 
> thanks in advance
> vin
>




[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Tim Hoff

Ok, here's how I would do it; with efficiency and best-practice in mind:

http://www.timothyhoff.com/projects/AgeItemRendererSample/AgeItemRendere\
rSample.html

( right click to view source )

Two main differences Steve:

First, use createChildren to add the children, instead of in set data. 
I suspect that what's happening with the way you are doing it is that
each time the data is changed (which, because the itemRenderers are
recycled, happens on every scroll), the instance of the child is
attempted to be added to the display list.  I can't see the code in
flash.display.DisplayObjectContainer, but I suspect that the code is
checking to see if the instance exists already and/or re-parenting it. 
Either way, this is an un-necessary step.  You only need to add the
child once and then use the data to control it's state.

Second, for efficiency, try to avoid using containers in itemRenderers. 
A good practice is to extend UIComponent and do the layout manually. 
It's a little more work, but you get some good performance benefits.

I encourage you to read this series
   and
also look at the source code for the Flex controls.  They all follow the
same component life-cycle pattern.

Angelo, look at this sample for how to use an itemEditor.

-TH

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I thought that was the idea.
>
> In the example, I wanted a new NumericStepper for each data item
(Actually two new NumericSteppers). If createChildren only runs once,
how would you get the required output? In other words, can you post your
version of the example using createChildren ?
>
>
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Yes, createChildren will only execute once; while set data will
execute
> > many times. Perhaps it's not a problem if the same child gets added
to
> > the display list everytime that the data is set. But usually, you
only
> > need to add them once.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > I use addChild in the set data function only because I always
have.
> > >
> > > I have built hundreds of renderers this way and none of them have
> > given me a problem. If there's a good reason why I shouldn't do it
this
> > way, I'm all ears.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > I'm with you Steve; about using AS for an itemRenderer. I do
wonder
> > why
> > > > you would use addChild in the set data function though; rather
than
> > in
> > > > createChildren . For mxml, this should work Angelo:
> > > >
> > > > 
> > > > 
> > > >  > > > width="100%" horizontalScrollPolicy="off"
> > verticalScrollPolicy="off">
> > > >  > > > textAlign="center"/>
> > > >  > > > textAlign="center"/>
> > > > 
> > > > 
> > > > 
> > > >
> > > > For the HBox, notice the use of horizontalGap, instead of a
spacer
> > as
> > > > well. Just cleans it up a bit.
> > > >
> > > > Cheers,
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "valdhor" 
wrote:
> > > > >
> > > > > This is probably possible in MXML but I prefer to write my
item
> > > > > renderers in ActionScript...
> > > > >
> > > > > main.mxml:
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > > layout="absolute">
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  > > > > itemRenderer="NumericStepperRenderer"/>
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > NumericStepperRenderer.as:
> > > > > package
> > > > > {
> > > > > import mx.containers.HBox;
> > > > > import mx.controls.NumericStepper;
> > > > >
> > > > > public class NumericStepperRenderer extends HBox
> > > > > {
> > > > > private var nsOutwardAgeYear:NumericStepper = new
> > > > > NumericStepper();
> > > > > private var nsOutwardAgeMonths:NumericStepper = new
> > > > > NumericStepper();
> > > > >
> > > > > public function NumericStepperRenderer()
> > > > > {
> > > > > super();
> > > > > nsOutwardAgeYear.minimum = 0;
> > > > > nsOutwardAgeMonths.minimum = 0;
> > > > > nsOutwardAgeYear.maximum = 200;
> > > > > nsOutwardAgeMonths.maximum = 200;
> > > > > nsOutwardAgeYear.stepSize = 1;
> > > > > nsOutwardAgeMonths.stepSize = 1;
> > > > > nsOutwardAgeYear.width = 50;
> > > > > nsOutwardAgeMonths.width = 50;
> > > > > nsOutwardAgeYear.setStyle("textAlign", "center");
> > > > > nsOutwardAgeMonths.setStyle("textAlign", "center");
> > > > > }
> > > > >
> > > > > override public function set data(value:Object):void
> > > > > {
> > > > > super.data = value;
> > > > > if(value != null)
> > > > > {
> > > > > nsOutwardAgeYear.value = value.Age;
> > > > > nsOutwardAgeMonths.value = value.Months;
> > > > > addChild(nsOutwardAgeMonths);
> > > > > addChild(nsOutwardAgeYear);
> > > > > }
> > > > > }
> > > > > }
> > > > > }
> > > > >
> > > > > I will leave it as an exercise for the reader how

[flexcoders] Re: Looking for AS3 developer.

2009-06-17 Thread tgi_3
Can you specify a little more on what the job?


--- In flexcoders@yahoogroups.com, "tom93438"  wrote:
>
> HeyZap is looking for an AS3 developer to build a AS/flash wrapper that 
> rotates through 3rd party external SWF files, solving issues with sizing, 
> sound, keyboard/mouse controls. They dont want the Flex framework used, but a 
> pure AS project compiled in FB is fine. Email for more details. 
> 
> This company is run by a friend of mine - please send replies to me, and I'll 
> pass them on to him.
> 
> tom saffell
>




[flexcoders] Shift-drag on HSlider in FB4

2009-06-17 Thread Daniel McQuillen

Does anybody have any tips for capturing a slider drag with SHIFT keyboard 
event?

MouseEvents have the handy shiftkey property for capturing events with SHIFT 
key depressed. However,  doesn't seem to launch any helpful mouse 
events (e.g. mouseUp) and the events it does launch (e.g. change) don't have 
the event.shiftkey property.

I could capture the shift key state in my own boolean flag somewhere by using 
keyUp and keyDown handlers on the slider or parent containers, but then the 
issue of component focus gets in the way and it doesn't behave smoothly.

There's probably a really easy answer to this that -- like so many before -- 
eludes my slow thinking. Thanks for any suggestions!

- Daniel McQ



Re: [flexcoders] dmv with flex4 and flexbuilder3 causes "direction" style problem

2009-06-17 Thread Pete Siviter


Hi there,

I think you'd need to take the datavisualization.swc from flashbuilder  
4.0.0 sdk (presumably installed under your drive_c in wine) and use it  
in your sdk folder under flexbulder linux.


I spent quite a bit of time looking at the same problem and re- 
compiled datavisualization after editing the source.  This stopped the  
compiler errors with direction but caused problems further down the  
line (though I was working in gumbo which I think isn't compatible  
with datavisualzations from earlier versions).


I fixed the problem once I copied the correct datavisualization.swc  
from the 4.0.0 folder.


There's a whole bunch of files you need to copy, but you can google it  
if you've never done it before.


HTH,
Pete


On 16 Jun 2009, at 20:32, thomas parquier wrote:




Hello,

I've just moved a charting app to flex4 but a problem with a  
Gridlines style ("direction") prevents from compiling.
As said on Adobe forum, flashbuilder seems to not raise error and  
compile fine, but I'm using linux and flashbuilder works  
episodically (with wine).


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







[flexcoders] MXML draw dashed line between two text box

2009-06-17 Thread ram_yohi
Hi,

I need some information.

I have to draw on "dashed separator line" in FLEX.

What code can help to put it in to MXML file.

 



 

In the Picture you can see the dashed line in-between Radio Button and Search 
Button.

I have to design like.

I do not know what Code is for that to draw dashed line in MXML.

 

 

 

 Thanks,

 Ramesh

 




[flexcoders] Problems using ItemRenderers in DataGrid

2009-06-17 Thread vin.flex

I have created a check box item renderer for my datgrid.
I will update the arraycollection by checking or unchecking 
the checkbox. I will submit the data to backend and I will assign the 
dataprovider with updated dataprovider. My data is getting
updated but the some checkboxes are appearing as checked.
They are not getting reinitialized.

Can any body help me solve this issue.Its urgent

Thanks 
vin

thanks in advance
vin



Re: [flexcoders] dmv with flex4 and flexbuilder3 causes "direction" style problem

2009-06-17 Thread Pete Siviter

Hi there,

I think you'd need to take the datavisualization.swc from flashbuilder  
4.0.0 sdk (presumably installed under your drive_c in wine) and use it  
in your sdk folder under flexbulder linux.


I spent quite a bit of time looking at the same problem and re- 
compiled datavisualization after editing the source.  This stopped the  
compiler errors with 'direction' but caused problems further down the  
line (though I was working in gumbo which I think isn't compatible  
with datavisualzations from earlier versions).


I fixed the problem once I copied the correct datavisualization.swc  
from the 4.0.0 folder.


There's a whole bunch of files you need to copy, but you can google it  
if you've never done it before.


HTH,
Pete
P.S. Apologies if this goes to the list more than once, new member woes.



On 16 Jun 2009, at 20:32, thomas parquier wrote:




Hello,

I've just moved a charting app to flex4 but a problem with a  
Gridlines style ("direction") prevents from compiling.
As said on Adobe forum, flashbuilder seems to not raise error and  
compile fine, but I'm using linux and flashbuilder works  
episodically (with wine).


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






Re: [flexcoders] Binding between components

2009-06-17 Thread mikeashields

I have the following simplified mxml application but want to know how to move
the label to a new component and the Button to a different component (both
components then being in the application).  More specifically I cannot
determine how to "address" the variable names and/or event listeners between
components (ie component A event bubbles up to application but then does not
"bubble" down to component B).  Thanks in advance.


http://ns.adobe.com/mxml/2009"; 
   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/halo" 
   minWidth="1024" minHeight="768" 
xmlns:components="components.*">












package vos
{
public class BoringVO1
{
[Bindable]
public var wall : String = "Hello World";
}
}

   
-- 
View this message in context: 
http://www.nabble.com/Binding-between-components-tp24061284p24078417.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] why does my MXML act differently than my AS?

2009-06-17 Thread Pan Troglodytes
I have a test program that, as far as I can tell, does the same thing using
an MXML component and the equivalent actionscript.  When I click on the
button to execute the AS version, everything is fine.  But when I click on
the button to execute the MXML version, I get a layout flicker.  It's bad
enough that if you try to click on the MXML button over and over really
fast, you'll wind up clicking the main app and the menu will go away.
Here's the code:



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

  

  

  

  

  


  

  

  

  


TestGridRow.mxml:

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

  



I've dug through the generated code and have not been able to find anything
that I think would account for the problem.  This is frustrating, because
what I really want to do is a more complicated MXML component to make it a
lot nicer to add rows in my addCategory function.  But I can't as long as
it's going to be so jittery.

Thanks!

-- 
Jason


Re: [flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Harish Sivaramakrishnan
Listen to the change event / enter event on the NumericSteppers and dispatch
an event to update the DataProvider with the new values. Once you override
the itemRenderer with a custom Renderer, you need to handle the commit of
values back to the DataProvider.

You can do something similar to this. Please note that this is NOT exact
code, but you could use this approach.

nsOutwardAgeYear.addEventListener("change" onnsOutwardChange);

private function onnsOutwardChange(event:Event):void
{
  dispatchEvent(new CustomEvent("valueChanged", (event.target as
NumericStepper).value);
}

*The custom event can have an extra property that holds the value of the
Stepper.*

*In your main app, add a listener to your DataGrid*

dg.addEventListener(CustomEvent.VALUE_CHANGED, onvalueChanged);

private function onvalueChanged(event:CustomEvent):void
{
   var selectedObject:Object = datagrid.selectedItem
   selectedObject.Age = event.value;
   (datagrid.dataProvider as ArrayCollection).setItemAt(selectedObject,
datagrid.selectedIndex)
}

Hope this helps!

Cheers
Harish

http://blog.flexgeek.in

On Wed, Jun 17, 2009 at 6:28 PM, valdhor wrote:

>
>
> I thought that was the idea.
>
> In the example, I wanted a new NumericStepper for each data item (Actually
> two new NumericSteppers). If createChildren only runs once, how would you
> get the required output? In other words, can you post your version of the
> example using createChildren ?
>
>
> --- In flexcoders@yahoogroups.com , "Tim
> Hoff"  wrote:
> >
> >
> > Yes, createChildren will only execute once; while set data will execute
> > many times. Perhaps it's not a problem if the same child gets added to
> > the display list everytime that the data is set. But usually, you only
> > need to add them once.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com ,
> "valdhor"  wrote:
> > >
> > > I use addChild in the set data function only because I always have.
> > >
> > > I have built hundreds of renderers this way and none of them have
> > given me a problem. If there's a good reason why I shouldn't do it this
> > way, I'm all ears.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com , "Tim
> Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > I'm with you Steve; about using AS for an itemRenderer. I do wonder
> > why
> > > > you would use addChild in the set data function though; rather than
> > in
> > > > createChildren . For mxml, this should work Angelo:
> > > >
> > > > 
> > > > 
> > > >  > > > width="100%" horizontalScrollPolicy="off"
> > verticalScrollPolicy="off">
> > > >  > > > textAlign="center"/>
> > > >  > > > textAlign="center"/>
> > > > 
> > > > 
> > > > 
> > > >
> > > > For the HBox, notice the use of horizontalGap, instead of a spacer
> > as
> > > > well. Just cleans it up a bit.
> > > >
> > > > Cheers,
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> "valdhor"  wrote:
> > > > >
> > > > > This is probably possible in MXML but I prefer to write my item
> > > > > renderers in ActionScript...
> > > > >
> > > > > main.mxml:
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > > layout="absolute">
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  > > > > itemRenderer="NumericStepperRenderer"/>
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > NumericStepperRenderer.as:
> > > > > package
> > > > > {
> > > > > import mx.containers.HBox;
> > > > > import mx.controls.NumericStepper;
> > > > >
> > > > > public class NumericStepperRenderer extends HBox
> > > > > {
> > > > > private var nsOutwardAgeYear:NumericStepper = new
> > > > > NumericStepper();
> > > > > private var nsOutwardAgeMonths:NumericStepper = new
> > > > > NumericStepper();
> > > > >
> > > > > public function NumericStepperRenderer()
> > > > > {
> > > > > super();
> > > > > nsOutwardAgeYear.minimum = 0;
> > > > > nsOutwardAgeMonths.minimum = 0;
> > > > > nsOutwardAgeYear.maximum = 200;
> > > > > nsOutwardAgeMonths.maximum = 200;
> > > > > nsOutwardAgeYear.stepSize = 1;
> > > > > nsOutwardAgeMonths.stepSize = 1;
> > > > > nsOutwardAgeYear.width = 50;
> > > > > nsOutwardAgeMonths.width = 50;
> > > > > nsOutwardAgeYear.setStyle("textAlign", "center");
> > > > > nsOutwardAgeMonths.setStyle("textAlign", "center");
> > > > > }
> > > > >
> > > > > override public function set data(value:Object):void
> > > > > {
> > > > > super.data = value;
> > > > > if(value != null)
> > > > > {
> > > > > nsOutwardAgeYear.value = value.Age;
> > > > > nsOutwardAgeMonths.value = value.Months;
> > > > > addChild(nsOutwardAgeMonths);
> > > > > addChild(nsOutwardAgeYear);
> > > > > }
> > > > > }
> > > > > }
> > > > > }
> > > > >
> > > > > I will leave it as an exercise for the reader how to add an event
> > > > > listener for the change event.
> > > > >
> > > > >
> > > > > HTH
> > > > >
> > > > >
> > > > >
> > > > > Steve
> > > > >
> > > > > --- In flexcoders@yahoogroups.com ,
> Angelo Anolin angelo_anolin@
> > > > > wrote:
> > > > > >
> > > > > > Hi FlexCoders,
> > > > > >
> > > > > > I have a datag

Re: [flexcoders] Re: Flying text or passing text??

2009-06-17 Thread Harish Sivaramakrishnan
Joan Lafferty has a nice implementation of a marquee in her blog -
http://butterfliesandbugs.wordpress.com/2007/09/06/marquee-component/

On Wed, Jun 17, 2009 at 6:56 PM, valdhor wrote:

>
>
> AFAIK it is called a ticker. There are many examples available. Try a
> Google search. Here are a couple to start you off...
>
> http://dreamwagon.com/blog/?p=7
>
> http://dave.needlz.nl/index.php/2009/ticker/
>
>
> --- In flexcoders@yahoogroups.com , "hworke"
>  wrote:
> >
> >
> >
> > Hi, I am trying to create an effect using
> > text. I do not know what to call it - flying
> > text or passing text!! At the bottom of
> > the TV screen we always see Headline news
> > or stock market info text are moving from
> > right to left - I want to do something like
> > that. What is the best option for me?
> >
> > Regards..
> >
>
>  
>


Re: [flexcoders] How to pull youtube into a custom Flash/Flex Video Player [1 Attachment]

2009-06-17 Thread Harish Sivaramakrishnan
Google does not give you direct access to the video source through their
APIs. You will need to scrap (steal) that Information from the youtube page.
I had written a class which does it for some testing purposes. I have
attached the source in this mail. But AFAIK, its illegal to scrap
information from their site.

You can take a look at the attached code to get an idea. Again, use it at
your own risk :)

Cheers
Harish

On Wed, Jun 17, 2009 at 9:03 PM, Wally Kolcz  wrote:

>
>
> I found the docs from Google on how to query the user's information, but
> what element do you use as the source for the video player?
>  
>


[flexcoders] How to pull youtube into a custom Flash/Flex Video Player

2009-06-17 Thread Wally Kolcz
I found the docs from Google on how to query the user's information, but what 
element do you use as the source for the video player?



Re: [flexcoders] URLStream, RMTP, ByteArray?

2009-06-17 Thread Harish Sivaramakrishnan
The whole purpose of keeping it streaming is that you SHOULD NOT be able to
rip it using your client. I cannot think of a legal, straightforward way.

Cheers
Harish

On Wed, Jun 17, 2009 at 7:56 PM, Berkay Unal  wrote:

>
>
> Hi Coders,
>
> I am able to record,capture a video or an audio to desktop with AIR using
> URLStream, and byteArray. It works np.
>
> In the project client ask me to record the streaming video to desktop while
> the video is streaming. Been trying to use URLStream over RMTP but as can be
> thought it does not work? Any thoughts to achieve this?
>
> Best,
>
> Berkay UNAL
> www.berkayunal.com
> berkayu...@gmail.com
>  
>


RE: [flexcoders] Trying Smooth slide transitions with List control item renders or a Repeater...

2009-06-17 Thread Jake Churchill
Here's an example of how to do it:

 

http://www.axelscript.com/2008/09/25/building-a-simple-slider-component/

 

Axel and I used this on http://www.clickstatssports.com/index.cfm 

 

Click the close button in the top right of the flex app to see it slide.
Then click on something else.

 

Basically, this is just a grouping of canvases.  The source code is on
Axel's blog.

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Todd
Sent: Wednesday, June 17, 2009 9:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trying Smooth slide transitions with List control item
renders or a Repeater...

 






Hello All,
I have a HorizontalList that has an ItemRenderer that displays an Image. The
HorizontalList only displays one of my images at a time. I'm trying to make
a transition where the next image slides into the screen. 
Now, since itemRenderers are recycled, I probably can't use a List control.
So, I'm open to using a Repeater.

I've worked with transitions in the ViewStack before. 

Any suggestions or links to slideshow samples that have images slide into
place?

Thanks



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.73/2180 - Release Date: 06/17/09
05:53:00



Re: [flexcoders] Sample of carousel menu navigation with button.

2009-06-17 Thread Harish Sivaramakrishnan
Hi Krunal:

This is a simple engineering problem. Solve it just the way you would in any
of your other languages.

Put your buttons in a canvas and increment / decrement the
horizontalScrollPosition on click of next_btn and prev_btn (that could be
one of the ways, there are gazillion others!)


Cheers
Harish

On Tue, Jun 16, 2009 at 9:56 AM, Krunal Panchal wrote:

>
>
>  Hi All,
>
>
> Following is my carousel menu.
>
> *Menu Bar*
> **
> *
> 
> *
> *Prev_btn*Btn_HomeBtn_ProcessBtn_Advance*Next_btn*
> *
> 
> *
> **
> Other Menu are Btn_ContactsUs, Btn_AboutUs.
> **
> **
> *Prev_btn *and *Next_btn *is my navigation buttons. When i cliked on *Next_btn
> *first button ( Btn_Home) should disapearred* *and Btn_ContactsUs* *menu
> added at the end of Btn_Advance*.* After cliked on *Prev_btn*, Last button
> will disappeared and first button should appeared.
>
> if anybody have sample or link of sample +++pls send me.
>
> *Thanks in Advanced.*
>
>*  Regards,
>   --
>
> Krunal Panchal | Senior Software Engineer
>
> Tel 91.98795 80689 | * panchal_...@yahoo.com
> *
>
>  
>


[flexcoders] Re: Trying Smooth slide transitions with List control item renders or a Repeater...

2009-06-17 Thread Todd
You know, I think I'll just use a ViewStack with a child Repeater and call it 
good.  

(Still post some links if you've got them though.)

--- In flexcoders@yahoogroups.com, "Todd"  wrote:
>
> Hello All,
>   I have a HorizontalList that has an ItemRenderer that displays an Image.  
> The HorizontalList only displays one of my images at a time.  I'm trying to 
> make a transition where the next image slides into the screen.  
>   Now, since itemRenderers are recycled, I probably can't use a List control. 
>  So, I'm open to using a Repeater.
>   
>   I've worked with transitions in the ViewStack before.  
> 
>   Any suggestions or links to slideshow samples that have images slide into 
> place?
> 
> Thanks
>




[flexcoders] Trying Smooth slide transitions with List control item renders or a Repeater...

2009-06-17 Thread Todd
Hello All,
  I have a HorizontalList that has an ItemRenderer that displays an Image.  The 
HorizontalList only displays one of my images at a time.  I'm trying to make a 
transition where the next image slides into the screen.  
  Now, since itemRenderers are recycled, I probably can't use a List control.  
So, I'm open to using a Repeater.
  
  I've worked with transitions in the ViewStack before.  

  Any suggestions or links to slideshow samples that have images slide into 
place?

Thanks



[flexcoders] URLStream, RMTP, ByteArray?

2009-06-17 Thread Berkay Unal
Hi Coders,
I am able to record,capture a video or an audio to desktop with AIR using
URLStream, and byteArray. It works np.

In the project client ask me to record the streaming video to desktop while
the video is streaming. Been trying to use URLStream over RMTP but as can be
thought it does not work? Any thoughts to achieve this?

Best,

Berkay UNAL
www.berkayunal.com
berkayu...@gmail.com


[flexcoders] Re: Flying text or passing text??

2009-06-17 Thread valdhor
AFAIK it is called a ticker. There are many examples available. Try a Google 
search. Here are a couple to start you off...

http://dreamwagon.com/blog/?p=7

http://dave.needlz.nl/index.php/2009/ticker/


--- In flexcoders@yahoogroups.com, "hworke"  wrote:
>
> 
> 
>Hi, I am trying to create an effect using
>text. I do not know what to call it - flying
>text or passing text!! At the bottom of 
>the TV screen we always see Headline news
>or stock market info text are moving from
>right to left - I want to do something like
>that. What is the best option for me?
> 
>Regards..
>




[flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread valdhor
I thought that was the idea.

In the example, I wanted a new NumericStepper for each data item (Actually two 
new NumericSteppers). If createChildren only runs once, how would you get the 
required output? In other words, can you post your version of the example using 
createChildren ?



--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Yes, createChildren will only execute once; while set data will execute
> many times.  Perhaps it's not a problem if the same child gets added to
> the display list everytime that the data is set.  But usually, you only
> need to add them once.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > I use addChild in the set data function only because I always have.
> >
> > I have built hundreds of renderers this way and none of them have
> given me a problem. If there's a good reason why I shouldn't do it this
> way, I'm all ears.
> >
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > I'm with you Steve; about using AS for an itemRenderer. I do wonder
> why
> > > you would use addChild in the set data function though; rather than
> in
> > > createChildren . For mxml, this should work Angelo:
> > >
> > > 
> > > 
> > >  > > width="100%" horizontalScrollPolicy="off"
> verticalScrollPolicy="off">
> > >  > > textAlign="center"/>
> > >  > > textAlign="center"/>
> > > 
> > > 
> > > 
> > >
> > > For the HBox, notice the use of horizontalGap, instead of a spacer
> as
> > > well. Just cleans it up a bit.
> > >
> > > Cheers,
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > >
> > > > This is probably possible in MXML but I prefer to write my item
> > > > renderers in ActionScript...
> > > >
> > > > main.mxml:
> > > > 
> > > > http://www.adobe.com/2006/mxml";
> > > > layout="absolute">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > > itemRenderer="NumericStepperRenderer"/>
> > > > 
> > > > 
> > > > 
> > > >
> > > > NumericStepperRenderer.as:
> > > > package
> > > > {
> > > > import mx.containers.HBox;
> > > > import mx.controls.NumericStepper;
> > > >
> > > > public class NumericStepperRenderer extends HBox
> > > > {
> > > > private var nsOutwardAgeYear:NumericStepper = new
> > > > NumericStepper();
> > > > private var nsOutwardAgeMonths:NumericStepper = new
> > > > NumericStepper();
> > > >
> > > > public function NumericStepperRenderer()
> > > > {
> > > > super();
> > > > nsOutwardAgeYear.minimum = 0;
> > > > nsOutwardAgeMonths.minimum = 0;
> > > > nsOutwardAgeYear.maximum = 200;
> > > > nsOutwardAgeMonths.maximum = 200;
> > > > nsOutwardAgeYear.stepSize = 1;
> > > > nsOutwardAgeMonths.stepSize = 1;
> > > > nsOutwardAgeYear.width = 50;
> > > > nsOutwardAgeMonths.width = 50;
> > > > nsOutwardAgeYear.setStyle("textAlign", "center");
> > > > nsOutwardAgeMonths.setStyle("textAlign", "center");
> > > > }
> > > >
> > > > override public function set data(value:Object):void
> > > > {
> > > > super.data = value;
> > > > if(value != null)
> > > > {
> > > > nsOutwardAgeYear.value = value.Age;
> > > > nsOutwardAgeMonths.value = value.Months;
> > > > addChild(nsOutwardAgeMonths);
> > > > addChild(nsOutwardAgeYear);
> > > > }
> > > > }
> > > > }
> > > > }
> > > >
> > > > I will leave it as an exercise for the reader how to add an event
> > > > listener for the change event.
> > > >
> > > >
> > > > HTH
> > > >
> > > >
> > > >
> > > > Steve
> > > >
> > > > --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_anolin@
> > > > wrote:
> > > > >
> > > > > Hi FlexCoders,
> > > > >
> > > > > I have a datagrid, where one of the columns is defined as
> follows:
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >  > > > verticalGap="2">
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  > > > horizontalScrollPolicy="off" verticalScrollPolicy="off">
> > > > >  maximum="200"
> > > > stepSize="1" width="50" textAlign="center"/>
> > > > > 
> > > > >  > > > maximum="200" stepSize="1" width="50" textAlign="center"/>
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > Now, how would I be able to bind in both components my array
> > > > collection? In the other columns, I can easily bind the
> datagridcolumn
> > > > with a single item inside the arrayCollection object by
> > > > >
> > > > >  > > > width="20"/>
> > > > >
> > > > > I want to bind two items inside my array collection into the
> > > > numericStepper which I placed side by side in the datagrid.
> > > > >
> > > > > Like for example if my arraycollection has the following data
> > > > >
> > > > > var _arrTest:ArrayCollection = new ArrayCollection([{"Age":5,
> > > > "Months":10}, {"Age":18, "Months":3}, ("Age":1, "Months":2)]);
> > > > >
> > > > > the Age and Months items should be bound to nsOutwardAgeYear and
> > > > nsOutwardAgeMonths respectively.
> > > > >
> > > > > Thanks and regards,
> > > > > Angelo
> > > > >
> > > >
> > >

[flexcoders] Re: Binding between components

2009-06-17 Thread valdhor
I looked at your forum thread but can't figure out what you are trying to do. 
Can you post another explanation here.



--- In flexcoders@yahoogroups.com, mikeashields  wrote:
>
> 
> The full story is here:   http://forums.adobe.com/message/2043864#2043864
> http://forums.adobe.com/message/2043864#2043864  but in a nutshell I'm
> trying to bind between separate components.  Google searches have yielded
> Metadata demarcations as one solution but I cannot get that to work (yet). 
> I think the "bigger picture solution" alternatively points to ValueObjects
> but similarly cannot work out how to break the code into separate
> components.  Any thoughts or pointers to tutorials would be greatly
> appreciated.
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Binding-between-components-tp24061284p24061284.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] Re: Piechart in ItemRenderer

2009-06-17 Thread Amy
--- In flexcoders@yahoogroups.com, Jimmy Neutron  wrote:
>
> I'm trying to pass data to a piechart inside an itemrenderer without 
> success.The structure is a List item and the Itemrenderer is based on a 
> Panel.Data is retrieved from php to xml (Arraycollection).Eventually i would 
> like to pass two fields to the piechart so it shows a percentage ratio eg 
> 20:80, 50:50, 0:100 etc-the two fields already have these numbers set for the 
> ratio

The important thing to realize about charts is that most things that are 
properties on other components are styles on charts.  I believe they did it 
this way so that you could use them as itemRenderers in ADG's and set them up 
with the styleFunction.

HTH;

Amy



[flexcoders] LCDS Useage Issues

2009-06-17 Thread Kevin Bowers
Good Morning,
 
I wonder if  anybody could possibly help me out with some issues that we are
having with an installation of LCDS.  We are evaluating the software for a
large project that we are planning, but cannot seem to get LCDS to run under
JBoss.  
 
We have successfully connected to our Oracle database, with a whole bunch of
tables being created.  We can successfully view the LiveCycle control panel,
log into it and so on.  However, we cannot seem to find the config files or
find which port the LCDS is listening on.  If you could possibly point us
toward some information or tutorials I'd be most grateful.
 
We are running on a windows machine, as we had many problems trying to
install on Linux.  Incidentally, we also had problems with the windows
install, but eventually it worked.
 
Many thanks,
 
Kevin Bowers
 


[flexcoders] Re: Flex and Reporting

2009-06-17 Thread Martin Moschitz
Hi Angelo,

thanks for your insights. Finally I ended up doing a similar thing.  
Since I get my data from PHP Services, I now just send back a print  
request, which generates the PDF and sends back a link to it, and the  
Flex Client can navigate to it. I find that this is probably the best  
solution if you need complex pdfs to be generated, as AlivePDF and  
FlexReport etc. still have some limitations and I also dont know about  
their performance.

Thanks for the insights,
Martin


RE: [flexcoders] Flying text or passing text??

2009-06-17 Thread Ashish Verma
The very simple trick to do that. Place the label at the bottom of the
Canvas and take the label text in string.  Here is the source code:

 



http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="(scrollTextHorizontaly())">



  

  

 

   



 

Best,

Ashish

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Vivian Richard
Sent: Wednesday, June 17, 2009 11:54 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flying text or passing text??

 






Where can I view those examples? I have used move effect for canvas
and panel. The way I used it was - I made the x or y coordinate of the
moving element to some thing so that it is not visible at all and once
some event is triggered I just move it in using move effect.

Are you suggesting that same thing for this text effect?

On Wed, Jun 17, 2009 at 12:29 AM, Tracy Sprattmailto:tracy%40nts3rd.com> > wrote:
>
>
> One way to do this is to use a canvas of fixed width and inside that have
a
> lable that is the length of the text, and use a Move effect to move the
> label over the canvas.
>
>
>
> There are examples available.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On
> Behalf Of hworke
> Sent: Wednesday, June 17, 2009 1:04 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Flying text or passing text??
>
>
>
>
>
>
> Hi, I am trying to create an effect using
> text. I do not know what to call it - flying
> text or passing text!! At the bottom of
> the TV screen we always see Headline news
> or stock market info text are moving from
> right to left - I want to do something like
> that. What is the best option for me?
>
> Regards..
>
>