Re: [flexcoders] LCDS and real-time performance

2008-08-19 Thread Rogier Oorburg
Hi,

Sorry about the long post, I have gathered some more logging information in 
this mail. To maybe make clearer where all the time is spent. 
Is there a way to set the packet-size (or 'chunk' size?) to be able to send 
rather large messages (or a lot of small ones) more efficiently? Or could there 
be some other cause for this slow communication between client and server?

Thanks, hope these loggings shed some light on the situation...

[LCDS] 08:06:40.406 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] Connection '9194103' starting a 
read.
[LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 7 
bytes.
[LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 128 
bytes.
[LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 128 
bytes.
[LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.406 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 128 
bytes.

...

[LCDS] 08:06:40.421 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.421 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 57 
bytes.
[LCDS] 08:06:40.421 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] registering read interest for 
Connection '9194103'.
[LCDS] 08:06:40.421 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] Connection '9194103' finished a 
read. 8192 bytes were read.
[LCDS] 08:06:40.421 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-Reactor1,5,main] unregistering read interest for 
Connection '9194103'.
[LCDS] 08:06:40.421 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] Connection '9194103' starting a 
read.
[LCDS] 08:06:40.421 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 71 
bytes.
[LCDS] 08:06:40.421 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.421 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 128 
bytes.
...
[LCDS] 08:06:40.468 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.468 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 64 
bytes.
[LCDS] 08:06:40.468 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] registering read interest for 
Connection '9194103'.
[LCDS] 08:06:40.468 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] Connection '9194103' finished a 
read. 8192 bytes were read.
[LCDS] 08:06:40.468 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-Reactor1,5,main] unregistering read interest for 
Connection '9194103'.
[LCDS] 08:06:40.468 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] Connection '9194103' starting a 
read.
[LCDS] 08:06:40.468 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 64 
bytes.
[LCDS] 08:06:40.468 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.468 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 128 
bytes.
...
[LCDS] 08:06:40.468 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 0 
bytes.
[LCDS] 08:06:40.468 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] registering read interest for 
Connection '9194103'.
[LCDS] 08:06:40.468 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] Connection '9194103' finished a 
read. 4321 bytes were read.
[LCDS] 08:06:40.515 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-Reactor1,5,main] unregistering read interest for 
Connection '9194103'.
[LCDS] 08:06:40.515 [DEBUG] [SocketServer.General] 
Thread[my-nio-server-WorkerThread-2,5,main] Connection '9194103' starting a 
read.
[LCDS] 08:06:40.515 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 1 
bytes.
[LCDS] 08:06:40.515 [DEBUG] [Protocol.RTMP] 
Thread[my-nio-server-WorkerThread-2,5,main] chunk input stream processing 128 
bytes.
...
etc.
etc.
[LCDS] 08:06:40.671 [DEBUG] [SocketSer

[flexcoders] Normalize removing my data??? Is this a bug in Flex?

2008-08-19 Thread flexaustin
I have been tracing this bug for two days and finally found it. I
don't see how this .normalize method is changing data in other areas
of my code?

So when makeData is called I pass it xml with child nodes. It is
stored in _data and then I se several variables and call the the
buildXMLObj method. When inside the buildXMLObj when the line with
.normalize is run my variable _data (now only contains parent nodes
with out the children). The buildXMLObj removes children but it is
never assigned to _data so how is _data getting changed?

package 
{
public class DataDelegate
{
import mx.rpc.AsyncToken;
import mx.utils.ObjectUtil;

import com.models.ViewModelLocator;

private var modelLocator:ViewModelLocator =
ViewModelLocator.getInstance();
private var _newSelected:int = 0;
private var midXML:XMLList;
private var _data:XMLList;

public function DataDelegate(){

}

private function buildXMLObj(xmllist:XMLList):void
{
var copyOfList:XML = ;
for each (var xl:XML in xmllist)
{
 if (xl.length())
 {
xl.replace("*", "");
 }
copyOfList.appendChild(xl);
}
copyOfList = copyOfList.normalize();
midXML = copyOfList.descendants("*");

}

public function makeData(datas:XML):void
{
trace("MakeData was called
---");
var _data:XML = datas;
modelLocator.selected = -1;
var xml:XML = datas as XML;
var _newSelected:int;

var comps:XMLList = xml.group.component;
buildXMLObj(xml.group);
var groups:XMLList = midXML;

if (modelLocator.comps.length() > 0)
{ 
_newSelected = parseInt([EMAIL 
PROTECTED]);
modelLocator.selected = 
_newSelected;
}
/*  modelLocator.allDataArr.splice(_newSelected,1); 
*/
modelLocator.allDataArr[_newSelected] = _data;  
modelLocator.comps = comps;
modelLocator.groups = groups;
}
}
}



[flexcoders] Question about binding via AS

2008-08-19 Thread Josh McDonald
Hey guys,

If you create a binding via AS, will the binding "stop" when the returned
ChangeWatcher instance is garbage collected? If not, is ChangeWatcher sort
of a "pointer" to some player-internal stuff, or is there a strong reference
to the ChangeWatcher via the event binding to PropertyChange on the host?

-Josh

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread florian.salihovic
One last question:

is there some part in the documentation i missed?

It would be nice to know if there are soe article about this topic is floating 
arround.



Best regards and thanx again for the tiem and effort here of the adobe team - u 
do a great 
job!

--- In flexcoders@yahoogroups.com, "florian.salihovic" <[EMAIL PROTECTED]> 
wrote:
>
> Thanx Alex, this helps me a lot!
> 
> Best regards!
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > To copy yourself would look something like this
> > 
> >  
> > 
> > myDragDropHandler(event:DragEvent):void
> > 
> > {
> > 
> > If (event.action == DragManager.COPY)
> > 
> > {
> > 
> > event.preventDefault();
> > 
> > var index:int = calculateDropIndex(event);
> > 
> > var items:Array =
> > event.dragSource.dataForFormat("items");
> > 
> > var n:int = items.length;
> > 
> > for (var i:int = 0; I < n; i++)
> > 
> > {
> > 
> > var newVO:VO = new VO();
> > 
> > var oldVO:VO = items[i] as VO;
> > 
> > newVo.prop1 = oldVO.prop1;
> > 
> > newVo.prop2 = oldVO.prop2;
> > 
> > dataProvider.addItemAt(newVO,
> > index);
> > 
> >  
> > 
> > }
> > 
> > }
> > 
> > }
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of florian.salihovic
> > Sent: Tuesday, August 19, 2008 4:37 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> > encapsuled data - update
> > 
> >  
> > 
> > Thanx for the info. This is really helpful to know.
> > 
> > Is there perhaps a short example to start with?
> > 
> > Best regards and thanx for the help!
> > 
> > --- In flexcoders@yahoogroups.com 
> > , "Alex Harui"  wrote:
> > >
> > > Ah, ok. The default copy mechanism won't work on typed objects unless
> > > they are [RemoteClass] or use registerClassAlias. You can always
> > > override the dragDrop handle and do your own intelligent copy.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com 
> > ] On
> > > Behalf Of florian.salihovic
> > > Sent: Tuesday, August 19, 2008 3:18 PM
> > > To: flexcoders@yahoogroups.com  
> > > Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> > > encapsuled data - update
> > > 
> > > 
> > > 
> > > Hello Alex,
> > > 
> > > dragMoveEnabled is making the difference. When i don't use any
> > > ItemRenderer the called i 
> > > get [object PlayListItem] and the collections i wrapped in typed
> > > methods.
> > > 
> > > It seems like the DataGridDragProxy works not right, when
> > > dragMoveEnabled is set to 
> > > false. Actually it does in my case as far as i can say.
> > > 
> > > Best regards.
> > > 
> > > --- In flexcoders@yahoogroups.com
> > 
> > 
> > > , "Alex Harui"  wrote:
> > > >
> > > > Are you using modules or sub-applications? Where does the data come
> > > > from? It seems like it isn't being converted correctly. Have you
> > > > proven that each collection contains the correct object and not
> > > Objects?
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> > 
> > 
> > > [mailto:flexcoders@yahoogroups.com
> > 
> > 
> > > ] On
> > > > Behalf Of florian.salihovic
> > > > Sent: Tuesday, August 19, 2008 2:05 PM
> > > > To: flexcoders@yahoogroups.com 
> >  
> > > > Subject: [flexcoders] Re: ItemRenderer returns empty Object instead
> > of
> > > > encapsuled data - update
> > > > 
> > > > 
> > > > 
> > > > Update:
> > > > 
> > > > Using a for each loop shows me even the right value, but it's type
> > is
> > > > lost.
> > > > override public function set data(value:Object):void {
> > > > trace(describeType(value));
> > > > for each(var a:* in value) {
> > > > trace(a)
> > > > }
> > > > if (this._item == value) {
> > > > return;
> > > > }
> > > > super.data = value;
> > > > if (value is IPlayListItem) {
> > > > this._item = IPlayListItem(value);
> > > > }
> > > > this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> > > > }
> > > > 
> > > > -> the condition value is IPLayListItem is actually never true.
> > > > 
> 

[flexcoders] Reg-communication with flex with Apache velocity

2008-08-19 Thread Ganesh Suyampirakasam
Hello to all

I am having issue with how to communicate with flex

i am using Apache velocity -Templete designing tool.

it is in Velocity scripting language.

i have created template using that.now i stored those template in DB.

How to retrieve it to flex side??

any idea or suggestions?

Thanks in advance


Ganesh Suyampirakasam



  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

[flexcoders] Re: Flex Newbie help basic Photoviewer

2008-08-19 Thread brucewhealton
I meant to point out a reason why I might run into troubles.  I am
following a training title on Lynda.com on Actionscript 3.0 with Flex.
 The instructor is using Flex 2.0 and I am using Flex 3.0 with
Actionscript 3.0 (obviously).  I'm not sure if that could be a cause
of my difficulties or not.
Thanks,
Bruce
>
Flex Developers forum - with support for newbies:
http://futurewavedesigns.com/aria/
Please check it out.
>

--- In flexcoders@yahoogroups.com, "brucewhealton" <[EMAIL PROTECTED]> wrote:
>
> Hello all, 
>I think I would need to include the code to get an idea as to
> what I might be doing wrong.  So, I posted the code for the three
> files here:  http://futurewave.biz/PhotoViewer/sourceCode/PhotoViewer.as
> http://futurewave.biz/PhotoViewer/sourceCode/SlideshowViewer.as
> http://futurewave.biz/PhotoViewer/sourceCode/Thumbnail.as
> 
> The application itself, which partially works is here:
> http://futurewave.biz/PhotoViewer/PhotoViewer.html
> 
> This application takes a few images and displays a slideshow of those
> images.  It first displays thumbnails and when the user clicks on a
> thumbnail it opens up the full size image.  Then if you click
> slideshow, it should display each image in sequence.  Unfortunately,
> my code for the slideshow does not work.  If you click on any image
> and then select slideshow, it just jumps back to the first image and
> stops.
> 
>   The main class is Photoviewer.as and it calls a list of photos
> called Vacation1.jpg through Vacation12.jpg and ThumbnailVacation1.jpg
> through ThumbnailVacation12.jpg  This was from a training class I took
> online.  Where it says import
> com.lynda.as3et.photoviewer.ui.SlideshowViewer;  I put a subdirectory
> in the main application folder called com, followed by a subdirectory
> below that called lynda, followed by a subdirectory below that called
> as3et, etc. to reach the
> 
> These files are included in the attachments to this posting for
reference.
> Thanks,
> Bruce
>




[flexcoders] Flex Newbie help basic Photoviewer

2008-08-19 Thread brucewhealton
Hello all, 
   I think I would need to include the code to get an idea as to
what I might be doing wrong.  So, I posted the code for the three
files here:  http://futurewave.biz/PhotoViewer/sourceCode/PhotoViewer.as
http://futurewave.biz/PhotoViewer/sourceCode/SlideshowViewer.as
http://futurewave.biz/PhotoViewer/sourceCode/Thumbnail.as

The application itself, which partially works is here:
http://futurewave.biz/PhotoViewer/PhotoViewer.html

This application takes a few images and displays a slideshow of those
images.  It first displays thumbnails and when the user clicks on a
thumbnail it opens up the full size image.  Then if you click
slideshow, it should display each image in sequence.  Unfortunately,
my code for the slideshow does not work.  If you click on any image
and then select slideshow, it just jumps back to the first image and
stops.

  The main class is Photoviewer.as and it calls a list of photos
called Vacation1.jpg through Vacation12.jpg and ThumbnailVacation1.jpg
through ThumbnailVacation12.jpg  This was from a training class I took
online.  Where it says import
com.lynda.as3et.photoviewer.ui.SlideshowViewer;  I put a subdirectory
in the main application folder called com, followed by a subdirectory
below that called lynda, followed by a subdirectory below that called
as3et, etc. to reach the

These files are included in the attachments to this posting for reference.
Thanks,
Bruce



[flexcoders] XML Binding in Custom Components

2008-08-19 Thread raj balaji
Hi all,
    I need to bind the xml data in custom components class file and need to 
access that in main MXML file.
Please let me know if some had worked like this, 
1. How to call the xml in class file.
2. How to bind that data.
Regards
Balaji 



  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[flexcoders] AdvancedDataGrid - Grouping Question

2008-08-19 Thread Rafael Faria
Ok, sorry about my last post, it was really my fault. But i hope that
someone help me with this.

I have the following Array Collection 

ArrayCollection
- ITEM 1
   - field1 = "laljlajdk";
   - field2 = "kaskljsad";
   - field3 = "jaskjdlkaskld"
   - field4 = (Object)
- object1 
  - field1 = "akjkd"
  - field2 = "akjkd"
  - field3 = "akjkd"
- object2 
  - field1 = "akjkd"
  - field2 = "akjkd"
  - field3 = "akjkd"
   
   - field5 = "jaskjdlkaskld"
   - field6 = "jaskjdlkaskld"
   - field7 = (Object)
  - field1 = "akjkd"
  - field2 = "akjkd"
  - field3 = "akjkd"
   - field8 = "aksjkldas"
   - field9 = "akjdlkasj"
- ITEM 2
   - field1 = "laljlajdk";
   - field2 = "kaskljsad";
   - field3 = "jaskjdlkaskld"
   - field4 = (Object)
- object1 
  - field1 = "akjkd"
  - field2 = "akjkd"
  - field3 = "akjkd"
- object2 
  - field1 = "akjkd"
  - field2 = "akjkd"
  - field3 = "akjkd"
   
   - field5 = "jaskjdlkaskld"
   - field6 = "jaskjdlkaskld"
   - field7 = (Object)
  - field1 = "akjkd"
  - field2 = "akjkd"
  - field3 = "akjkd"
   - field8 = "aksjkldas"
   - field9 = "akjdlkasj"

 and so on...
first question is, 

how can i display this data grouped exactly the way it is on an
advanced datagrid?

secondly, if i set the advancedcolumns to be

|ITEM 1 |field4  |
field1 | field2 |field3 |   field1   | field2 |  field3 |   
 

How do i associate the the fields that are under field4 to their columns?

I know it might sounds confusing, but believe me, advanced datagrids
is giving me headaches.

;P

Any ideas?
raf



[flexcoders] SOLVED Re: AdvancedDataGridColumn labelFunction

2008-08-19 Thread Rafael Faria
Sorry about this post. I have solved this problem.

Raf


--- In flexcoders@yahoogroups.com, "Rafael Faria"
<[EMAIL PROTECTED]> wrote:
>
> Hey guys,
> 
> me again :)
> 
> I'm building an advanceddatagrid and i got to a problem.
> 
> my dataprovider is an arraycollection of objects with objects inside
> objects.
> ok let me simplify.
> 
> its something like
> 
> ArrayCollection
>   - Array
>  - Object 1
> - field 1
> - field 2
> - field 3 (object)
>- field 1
>- field 2
> - field 4
> 
>  - Object 2
> - field 1
> - field 2
> - field 3 (object)
>- field 1
>- field 2
> - field 4
> 
> 
> and so on...
> 
> when i try to test it, using the labelFunction like the following code
> 
> advColumn.labelFunction = function(item:Object,
> column:AdvancedDataGridColumn):String {
>   trace(ObjectUtil.toString(item));
>   return null;
> }
> 
> my trace comes something like
> Object
>- field 1 = "bla bla";
>- field 2 = "foo foo";
>- field 3 = "[Object Object]";
>- field 4 = "boo boo";
> 
> 
> My question is, why flex convert my object on field 3 to "string"?
> shouldnt it just preserve the value?
> 
> how can i get that object.field3 as an object inside the labelFunction?
> 
> thanks
> 
> raf
>




Re: [flexcoders] Flex/AIR IRC Channel?

2008-08-19 Thread Aaron Miller
So make it alive. There doesn't need to be any "official sanction" to talk
about Flex in a public setting. If it catches on, it catches on. If not,
then it was a bad idea.

On Tue, Aug 19, 2008 at 6:53 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>seems pretty dead only 2 users
>
> - Original Message -
> *From:* Aaron Miller <[EMAIL PROTECTED]>
> *To:* flexcoders@yahoogroups.com
> *Sent:* Tuesday, August 19, 2008 8:25 PM
> *Subject:* Re: [flexcoders] Flex/AIR IRC Channel?
>
>  What about #flexcoders on freenode?
>
> On Tue, Aug 19, 2008 at 6:10 PM, Sherif Abdou <[EMAIL PROTECTED]>wrote:
>
>>   There was this post by Mike a year ago and No idea what happend
>> http://www.mikechambers.com/blog/2007/04/19/flex-apollo-irc-channel/
>>
>> If so, Do you guy's think it is a good idea to supplement FlexCoders or
>> not.
>>
>
>   
>


[flexcoders] AdvancedDataGridColumn labelFunction

2008-08-19 Thread Rafael Faria
Hey guys,

me again :)

I'm building an advanceddatagrid and i got to a problem.

my dataprovider is an arraycollection of objects with objects inside
objects.
ok let me simplify.

its something like

ArrayCollection
  - Array
 - Object 1
- field 1
- field 2
- field 3 (object)
   - field 1
   - field 2
- field 4

 - Object 2
- field 1
- field 2
- field 3 (object)
   - field 1
   - field 2
- field 4


and so on...

when i try to test it, using the labelFunction like the following code

advColumn.labelFunction = function(item:Object,
column:AdvancedDataGridColumn):String {
trace(ObjectUtil.toString(item));
return null;
}

my trace comes something like
Object
   - field 1 = "bla bla";
   - field 2 = "foo foo";
   - field 3 = "[Object Object]";
   - field 4 = "boo boo";


My question is, why flex convert my object on field 3 to "string"?
shouldnt it just preserve the value?

how can i get that object.field3 as an object inside the labelFunction?

thanks

raf



Re: [flexcoders] Flex/AIR IRC Channel?

2008-08-19 Thread Sherif Abdou
seems pretty dead only 2 users
  - Original Message - 
  From: Aaron Miller 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, August 19, 2008 8:25 PM
  Subject: Re: [flexcoders] Flex/AIR IRC Channel?



  What about #flexcoders on freenode?


  On Tue, Aug 19, 2008 at 6:10 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:


There was this post by Mike a year ago and No idea what happend
http://www.mikechambers.com/blog/2007/04/19/flex-apollo-irc-channel/

If so, Do you guy's think it is a good idea to supplement FlexCoders or not.



   

RE: [flexcoders] LCDS and real-time performance

2008-08-19 Thread Jeff Vroom
I'm not sure where all of that time is going...  between these two log 
statements:

[LCDS] 16:25:10.578 [DEBUG] Thread[my-rtmp-SocketServer-WorkerThread-
1,5,main] Connection '19658898' starting a read.
...
[LCDS] 16:25:10.937 [DEBUG] Deserializing AMF/RTMP request

The code is reading data off of the socket until it gets a complete AMF 
message.   ~350ms is a long time to spend reading data off the socket.   I 
wonder if maybe the client is writing either a lot of data into a large message 
or if it is introducing some latency with its ability to write?   It might make 
sense to turn on more debugging options such as "Protocol.*" or maybe even "*" 
so we see all targets.   That will give us more fine-grained timings of where 
the time is being spent.  Of course that much debug logging will slow things 
down overall but it can be helpful to see what exactly the system is doing.

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rogier 
Oorburg
Sent: Tuesday, August 19, 2008 2:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS and real-time performance


Hi,

Recently we have started an experiment on our benchmark-LAN where we
have several Windows XP PCs running test programs. One of the PCs is
the data-injector (Flex) which pushes changes every second, one is
the LCDS2.6 server running on Tomcat and one PC is running the client
application (Flex) in which the changes are visible every second.
This experiment should determine if Flex using LCDS is a viable
option for our real-time systems.
There is very little network-traffic and CPU-usage on all PCs is very
low, yet the system is able to handle only 400 changes every second.

Using our own logger we see that about 400ms pass between the
injector committing the changes and the server synchronizing the
database. Another 400ms are needed to get all the changes to the
other client so it can merge the changes and display them.

By examining the built-in server-side logging of LCDS, it becomes
clear that a lot of time is spent in the sending and receiving of
messages over RTMP:

[LCDS] 16:25:10.578 [DEBUG] Thread[my-rtmp-SocketServer-WorkerThread-
1,5,main] Connection '19658898' starting a read.
...
[LCDS] 16:25:10.937 [DEBUG] Deserializing AMF/RTMP request
...
[LCDS] 16:25:10.968 [DEBUG] Before invoke service: data-service
...
[LCDS] 16:25:11.156 [DEBUG] After invoke service: data-service;
execution time = 172ms
...
[LCDS] 16:25:11.171 [DEBUG] Serializing AMF/RTMP push x 400
...
[LCDS] 16:25:11.390 [DEBUG] Committed transaction
...
[LCDS] 16:25:11.421 [DEBUG] After invoke service: data-service
reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
... etc. etc.

As you can probably see the communication starting at the first entry
up to the start of deserialization already takes approx. 400ms.. the
processing of all the changes 172.
The pushing of all the changes again takes about 400ms. If we can
eliminate these two bottlenecks LCDS would be the perfect candidate
to use in our new systems.

We have tried everything we can think of, but nothing seems to help.
Is it the RTMP protocol or a server or socket setting, or the way the
server handles multithreading? Is there some JVM setting we don't
know about?

Any pointers and help would be appreciated!

Greetings,
Rogier Oorburg

<><>

Re: [flexcoders] Flex/AIR IRC Channel?

2008-08-19 Thread Aaron Miller
What about #flexcoders on freenode?

On Tue, Aug 19, 2008 at 6:10 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>There was this post by Mike a year ago and No idea what happend
> http://www.mikechambers.com/blog/2007/04/19/flex-apollo-irc-channel/
>
> If so, Do you guy's think it is a good idea to supplement FlexCoders or
> not.
>  
>


[flexcoders] Flex/AIR IRC Channel?

2008-08-19 Thread Sherif Abdou
There was this post by Mike a year ago and No idea what happend
http://www.mikechambers.com/blog/2007/04/19/flex-apollo-irc-channel/

If so, Do you guy's think it is a good idea to supplement FlexCoders or not.

RE: [flexcoders] Re: Optimize with callLater() -- help?

2008-08-19 Thread Tracy Spratt
What I usually do is to declare an iIteration:int = 0 variable and an
iEndIndex:int = number of iterations instance vars.

 

Then I call a control function, which checks to see if the iIteration is
less than the iEndIndex, and if so, it calls the main work function.
The main work function does its stuff, increments the iIteration var,
then uses callLater to call the control function.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Ham
Sent: Tuesday, August 19, 2008 5:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Optimize with callLater() -- help?

 

I think callLater() is going to work for me, but I have another
question:

To create my pages, I loop through an array of Room objects. For each
Room, I set it to be the currentRoom, which tells the view to display
that Room's information. I figure I can do this (pseudocode):

for (var i:uint = 0; i < rooms.length; i++) {
model.currentRoom = rooms[i];
callLater( makePageFromRoom() );
}

I figure this should tell the view to update itself, and then the
callLater() should create the PDF page after the view has finished
updating.

But how do I loop through the rooms? Should I do an enterFrame event
listener, and in every frame, set the currentRoom to the new room and
do a new callLater()?

Thanks,

OK
DAH 

 



RE: [flexcoders] Headless compilation with AdvancedDataGrid

2008-08-19 Thread Jim Hayes

I'm afraid I know very little about ant builds myself, just had the help 
bookmarked since I've been making a few simple ones myself.

>I've tried to copy all the swc's from 
>FLEX_BUILDER_HOME/sdks/3.0.0/frameworks/lib into ${lib.dir} but then I get an 
>OutOfMemoryError on Java heap space

That seems to mean that you haven't allocated enough memory to the java 
process(?) used to run the ant task 
At this point I could be talking pure rubbish, I really do know very little 
about java in general.

looks like you deliberately allocated it with  , is 
that right?

For what it's worth, I had to set these  -Xmx512M -Xms256M 
in flexbuilder to avoid the OutOfMemoryError errors I was getting when building 
debug versions,
so maybe 128 looks a bit small?

Looks like you might not have your library paths quite right as well, I'm not 
quite sure what to suggest there since I rather blundered through it myself 
before getting it correct.

Sorry I can't be of more help, best of luck with it.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Sebastien ARBOGAST
Sent: Tue 19/08/2008 23:07
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Headless compilation with AdvancedDataGrid
 
OK thanks Jim.Now I'm trying to configure my mxmlc ant task like this:

 






















But if I put datavisualization.swc in ${lib.dir}, I get the following error:


[mxmlc] Error: Unable to resolve resource bundle "datamanagement" for
locale "en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "charts" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "charts" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

I've tried to copy all the swc's from
FLEX_BUILDER_HOME/sdks/3.0.0/frameworks/lib into ${lib.dir} but then I get
an OutOfMemoryError on Java heap space.
Can anyone help me geting this to work?


2008/8/17 Jim Hayes <[EMAIL PROTECTED]>

>
> http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com  on behalf
> of Sebastien ARBOGAST
> Sent: Sun 17/08/2008 16:42
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Headless compilation with AdvancedDataGrid
>
> Which docs? Would you have a link for me?
>
> 2008/8/17 Douglas Knudsen <[EMAIL PROTECTED]
> >
>
> > Use Ant. Some examples are in the docs.
> >
> > DK
> >
> >
> > On 8/17/08, Sebastien ARBOGAST <[EMAIL 
> > PROTECTED]
> >
> > wrote:
> > > I have a Flex Builder Pro license and I'm using it to develop an
> > application
> > > using AdvancedDataGrid component. When I build my application in Flex
> > > Builder, everything works fine. But now I'm trying to setup a headless
> > build
> > > script for continuous integration using mxmlc.
> > > How can I build my application with mxmlc outside of Flex Builder while
> > > using AdvancedDataGrid?
> > >
> > > --
> > > Sébastien Arbogast
> > >
> > > http://sebastien-arbogast.com
> > >
> >
> > --
> > Sent from Gmail for mobile | mobile.google.com
> >
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
> >
> >
>
> --
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
>
> __
> This communication is from Primal Pictures Ltd., a company registered in
> England and Wales with registration No. 02622298 and registered office: 4th
> Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
> VAT registration No. 648874577.
>
> This e-mail is confidential and may be privileged. It may be read, copied
> and used only by the intended recipient. If you have received it in error,
> please contact the sender immediately by return e-mail or by telephoning
> +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
> contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs Email
> Security System.
> __
>
>  
>



-- 
Sébastien Arbogast

http://sebastien-arbogast.com


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the in

Re: [flexcoders] [SOLVED] Flash Player 10 RC

2008-08-19 Thread Sherif Abdou
So it turns out the Problem was Kaspersky would not allow it to launch so what 
you need to do is go to FlexFolder/IN/win and click on the FlashPlayer.exe, It 
will configure it and everything should work.
  - Original Message - 
  From: Sherif Abdou 
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, August 16, 2008 7:20 PM
  Subject: [flexcoders] Flash Player 10 RC



  Anyone Having trouble with the Debugger? When I was using the Beta2, The 
Debugger was 10. Now with the RC Flash Player the Debugger is not 10 but 9r115. 

   

[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread florian.salihovic
Thanx Alex, this helps me a lot!

Best regards!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> To copy yourself would look something like this
> 
>  
> 
> myDragDropHandler(event:DragEvent):void
> 
> {
> 
> If (event.action == DragManager.COPY)
> 
> {
> 
> event.preventDefault();
> 
> var index:int = calculateDropIndex(event);
> 
> var items:Array =
> event.dragSource.dataForFormat("items");
> 
> var n:int = items.length;
> 
> for (var i:int = 0; I < n; i++)
> 
> {
> 
> var newVO:VO = new VO();
> 
> var oldVO:VO = items[i] as VO;
> 
> newVo.prop1 = oldVO.prop1;
> 
> newVo.prop2 = oldVO.prop2;
> 
> dataProvider.addItemAt(newVO,
> index);
> 
>  
> 
> }
> 
> }
> 
> }
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of florian.salihovic
> Sent: Tuesday, August 19, 2008 4:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> encapsuled data - update
> 
>  
> 
> Thanx for the info. This is really helpful to know.
> 
> Is there perhaps a short example to start with?
> 
> Best regards and thanx for the help!
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Ah, ok. The default copy mechanism won't work on typed objects unless
> > they are [RemoteClass] or use registerClassAlias. You can always
> > override the dragDrop handle and do your own intelligent copy.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of florian.salihovic
> > Sent: Tuesday, August 19, 2008 3:18 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> > encapsuled data - update
> > 
> > 
> > 
> > Hello Alex,
> > 
> > dragMoveEnabled is making the difference. When i don't use any
> > ItemRenderer the called i 
> > get [object PlayListItem] and the collections i wrapped in typed
> > methods.
> > 
> > It seems like the DataGridDragProxy works not right, when
> > dragMoveEnabled is set to 
> > false. Actually it does in my case as far as i can say.
> > 
> > Best regards.
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "Alex Harui"  wrote:
> > >
> > > Are you using modules or sub-applications? Where does the data come
> > > from? It seems like it isn't being converted correctly. Have you
> > > proven that each collection contains the correct object and not
> > Objects?
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> 
> 
> > [mailto:flexcoders@yahoogroups.com
> 
> 
> > ] On
> > > Behalf Of florian.salihovic
> > > Sent: Tuesday, August 19, 2008 2:05 PM
> > > To: flexcoders@yahoogroups.com 
>  
> > > Subject: [flexcoders] Re: ItemRenderer returns empty Object instead
> of
> > > encapsuled data - update
> > > 
> > > 
> > > 
> > > Update:
> > > 
> > > Using a for each loop shows me even the right value, but it's type
> is
> > > lost.
> > > override public function set data(value:Object):void {
> > > trace(describeType(value));
> > > for each(var a:* in value) {
> > > trace(a)
> > > }
> > > if (this._item == value) {
> > > return;
> > > }
> > > super.data = value;
> > > if (value is IPlayListItem) {
> > > this._item = IPlayListItem(value);
> > > }
> > > this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> > > }
> > > 
> > > -> the condition value is IPLayListItem is actually never true.
> > > 
> > > Best regards
> > > 
> > > --- In flexcoders@yahoogroups.com
>  
> > 
> > 
> > > , "florian.salihovic"  wrote:
> > > >
> > > > Something i forgot to add:
> > > > in the Debugger the passed Object, which is said to be not
> > convertable
> > > in the desired 
> > > > type, shows the right properties.
> > > > 
> > > > Pretty strange to me.
> > > > 
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com
>  
> >  
> > > 

RE: [flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread Alex Harui
To copy yourself would look something like this

 

myDragDropHandler(event:DragEvent):void

{

If (event.action == DragManager.COPY)

{

event.preventDefault();

var index:int = calculateDropIndex(event);

var items:Array =
event.dragSource.dataForFormat("items");

var n:int = items.length;

for (var i:int = 0; I < n; i++)

{

var newVO:VO = new VO();

var oldVO:VO = items[i] as VO;

newVo.prop1 = oldVO.prop1;

newVo.prop2 = oldVO.prop2;

dataProvider.addItemAt(newVO,
index);

 

}

}

}

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of florian.salihovic
Sent: Tuesday, August 19, 2008 4:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
encapsuled data - update

 

Thanx for the info. This is really helpful to know.

Is there perhaps a short example to start with?

Best regards and thanx for the help!

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Ah, ok. The default copy mechanism won't work on typed objects unless
> they are [RemoteClass] or use registerClassAlias. You can always
> override the dragDrop handle and do your own intelligent copy.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of florian.salihovic
> Sent: Tuesday, August 19, 2008 3:18 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> encapsuled data - update
> 
> 
> 
> Hello Alex,
> 
> dragMoveEnabled is making the difference. When i don't use any
> ItemRenderer the called i 
> get [object PlayListItem] and the collections i wrapped in typed
> methods.
> 
> It seems like the DataGridDragProxy works not right, when
> dragMoveEnabled is set to 
> false. Actually it does in my case as far as i can say.
> 
> Best regards.
> 
> --- In flexcoders@yahoogroups.com


> , "Alex Harui"  wrote:
> >
> > Are you using modules or sub-applications? Where does the data come
> > from? It seems like it isn't being converted correctly. Have you
> > proven that each collection contains the correct object and not
> Objects?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of florian.salihovic
> > Sent: Tuesday, August 19, 2008 2:05 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Re: ItemRenderer returns empty Object instead
of
> > encapsuled data - update
> > 
> > 
> > 
> > Update:
> > 
> > Using a for each loop shows me even the right value, but it's type
is
> > lost.
> > override public function set data(value:Object):void {
> > trace(describeType(value));
> > for each(var a:* in value) {
> > trace(a)
> > }
> > if (this._item == value) {
> > return;
> > }
> > super.data = value;
> > if (value is IPlayListItem) {
> > this._item = IPlayListItem(value);
> > }
> > this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> > }
> > 
> > -> the condition value is IPLayListItem is actually never true.
> > 
> > Best regards
> > 
> > --- In flexcoders@yahoogroups.com
 
> 
> 
> > , "florian.salihovic"  wrote:
> > >
> > > Something i forgot to add:
> > > in the Debugger the passed Object, which is said to be not
> convertable
> > in the desired 
> > > type, shows the right properties.
> > > 
> > > Pretty strange to me.
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com
 
>  
> >  , "florian.salihovic"
> >  wrote:
> > > >
> > > > Here is the stacktrace:
> > > > TypeError: Error #1034: Typumwandlung fehlgeschlagen:
> > [EMAIL PROTECTED] kann 
> > nicht 
> > > in 
> > > > de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem
> > umgewandelt werden.
> > > > at
> >
>
de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRen
> > derer/set 
> > > > 
> > > 
> >
>
data()[/Users/florian/Workspaces/blit

[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread florian.salihovic
Thanx for the info. This is really helpful to know.

Is there perhaps a short example to start with?

Best regards and thanx for the help!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Ah, ok.  The default copy mechanism won't work on typed objects unless
> they are [RemoteClass] or use registerClassAlias.  You can always
> override the dragDrop handle and do your own intelligent copy.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of florian.salihovic
> Sent: Tuesday, August 19, 2008 3:18 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> encapsuled data - update
> 
>  
> 
> Hello Alex,
> 
> dragMoveEnabled is making the difference. When i don't use any
> ItemRenderer the called i 
> get [object PlayListItem] and the collections i wrapped in typed
> methods.
> 
> It seems like the DataGridDragProxy works not right, when
> dragMoveEnabled is set to 
> false. Actually it does in my case as far as i can say.
> 
> Best regards.
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Are you using modules or sub-applications? Where does the data come
> > from? It seems like it isn't being converted correctly. Have you
> > proven that each collection contains the correct object and not
> Objects?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of florian.salihovic
> > Sent: Tuesday, August 19, 2008 2:05 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> > encapsuled data - update
> > 
> > 
> > 
> > Update:
> > 
> > Using a for each loop shows me even the right value, but it's type is
> > lost.
> > override public function set data(value:Object):void {
> > trace(describeType(value));
> > for each(var a:* in value) {
> > trace(a)
> > }
> > if (this._item == value) {
> > return;
> > }
> > super.data = value;
> > if (value is IPlayListItem) {
> > this._item = IPlayListItem(value);
> > }
> > this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> > }
> > 
> > -> the condition value is IPLayListItem is actually never true.
> > 
> > Best regards
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "florian.salihovic"  wrote:
> > >
> > > Something i forgot to add:
> > > in the Debugger the passed Object, which is said to be not
> convertable
> > in the desired 
> > > type, shows the right properties.
> > > 
> > > Pretty strange to me.
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com
>  
> >  , "florian.salihovic"
> >  wrote:
> > > >
> > > > Here is the stacktrace:
> > > > TypeError: Error #1034: Typumwandlung fehlgeschlagen:
> > [EMAIL PROTECTED] kann 
> > nicht 
> > > in 
> > > > de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem
> > umgewandelt werden.
> > > > at
> >
> de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRen
> > derer/set 
> > > > 
> > > 
> >
> data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/bl
> > itzeinschlag/playl
> > > isteditor/view/playlists/listClasses/ListItemRenderer.mx
> > > > ml:99]
> > > > at 
> > > 
> >
> mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\
> > framework\
> > > src\mx\controls\List.as:1286]
> > > > at 
> > > > 
> > > 
> >
> mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\d
> > ev\3.1.0\fra
> > > meworks\projects\framework\src\mx\controls\listClasses
> > > > \ListBase.as:1359]
> > > > at 
> > > > 
> > > 
> >
> mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frame
> > works\projects\fr
> > > amework\src\mx\controls\listClasses\ListBase.as:3657]
> > > > at 
> > > 
> >
> mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\f
> > ramework\src\m
> > > x\controls\List.as:1003]
> > > > at 
> > > > 
> > > 
> >
> mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\fra
> > meworks\projects\f
> > > ramework\src\mx\controls\listClasses\ListBase.as:3279]
> > > > at 
> > > 
> >
> mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks
> > \projects\fra
> > > mework\src\mx\managers\LayoutManager.as:605]
> > > > at 
> > > > 
> > > 
> >
> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\framewor
> > ks\projects\
> > > framework\src\mx\managers\LayoutManager.as:678]
> > > > at Function/http://adobe.com/AS3/2006/builtin::apply
>  
> >  

RE: [flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread Alex Harui
Ah, ok.  The default copy mechanism won't work on typed objects unless
they are [RemoteClass] or use registerClassAlias.  You can always
override the dragDrop handle and do your own intelligent copy.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of florian.salihovic
Sent: Tuesday, August 19, 2008 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
encapsuled data - update

 

Hello Alex,

dragMoveEnabled is making the difference. When i don't use any
ItemRenderer the called i 
get [object PlayListItem] and the collections i wrapped in typed
methods.

It seems like the DataGridDragProxy works not right, when
dragMoveEnabled is set to 
false. Actually it does in my case as far as i can say.

Best regards.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you using modules or sub-applications? Where does the data come
> from? It seems like it isn't being converted correctly. Have you
> proven that each collection contains the correct object and not
Objects?
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of florian.salihovic
> Sent: Tuesday, August 19, 2008 2:05 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> encapsuled data - update
> 
> 
> 
> Update:
> 
> Using a for each loop shows me even the right value, but it's type is
> lost.
> override public function set data(value:Object):void {
> trace(describeType(value));
> for each(var a:* in value) {
> trace(a)
> }
> if (this._item == value) {
> return;
> }
> super.data = value;
> if (value is IPlayListItem) {
> this._item = IPlayListItem(value);
> }
> this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> }
> 
> -> the condition value is IPLayListItem is actually never true.
> 
> Best regards
> 
> --- In flexcoders@yahoogroups.com


> , "florian.salihovic"  wrote:
> >
> > Something i forgot to add:
> > in the Debugger the passed Object, which is said to be not
convertable
> in the desired 
> > type, shows the right properties.
> > 
> > Pretty strange to me.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
 
>  , "florian.salihovic"
>  wrote:
> > >
> > > Here is the stacktrace:
> > > TypeError: Error #1034: Typumwandlung fehlgeschlagen:
> [EMAIL PROTECTED] kann 
> nicht 
> > in 
> > > de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem
> umgewandelt werden.
> > > at
>
de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRen
> derer/set 
> > > 
> > 
>
data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/bl
> itzeinschlag/playl
> > isteditor/view/playlists/listClasses/ListItemRenderer.mx
> > > ml:99]
> > > at 
> > 
>
mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\
> framework\
> > src\mx\controls\List.as:1286]
> > > at 
> > > 
> > 
>
mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\d
> ev\3.1.0\fra
> > meworks\projects\framework\src\mx\controls\listClasses
> > > \ListBase.as:1359]
> > > at 
> > > 
> > 
>
mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frame
> works\projects\fr
> > amework\src\mx\controls\listClasses\ListBase.as:3657]
> > > at 
> > 
>
mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\f
> ramework\src\m
> > x\controls\List.as:1003]
> > > at 
> > > 
> > 
>
mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\fra
> meworks\projects\f
> > ramework\src\mx\controls\listClasses\ListBase.as:3279]
> > > at 
> > 
>
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks
> \projects\fra
> > mework\src\mx\managers\LayoutManager.as:605]
> > > at 
> > > 
> > 
>
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\framewor
> ks\projects\
> > framework\src\mx\managers\LayoutManager.as:678]
> > > at Function/http://adobe.com/AS3/2006/builtin::apply
 
>  > ()
> > > at 
> > 
>
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\proj
> ects\framewo
> > rk\src\mx\core\UIComponent.as:8565]
> > > at 
> > 
>
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\proje
> cts\framewor
> > k\src\mx\core\UIComponent.as:8508]
> > > 
> > > And this is the argument which is passed to the "set data"-field
> implementation:
> > >  isStatic="false">
> > >  returnType="Boolean" 
> > uri="http://adobe.com/AS3/2006/builtin
 
> 

RE: [flexcoders] Re: DragManager gets stuck in dragging state even when mouse button is up.

2008-08-19 Thread Alex Harui
You can call mx_internal methods.  You can also get the IDragManagerImpl
out of singleton and call that too.

 

The best solution would be to figure out why your dragging gets stuck,
but that could be quite time sonsouming

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug Sharp
Sent: Tuesday, August 19, 2008 1:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DragManager gets stuck in dragging state even
when mouse button is up.

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's a semi document endDrag() method
> 
> 

endDrag is defined in DragManager.as as mx_internal, so that doesn't
do me any good:

/**
* @private
*/
mx_internal static function endDrag():void
{
impl.endDrag();
}

 



RE: [flexcoders] Re: Custom Component: Instantiation attempted on a non-constructor.

2008-08-19 Thread Alex Harui
I didn't' run any code, I just looked at the details of the stacktrace.
You may be trying to solve the wrong problem.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bryancostanich
Sent: Tuesday, August 19, 2008 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Component: Instantiation attempted on a
non-constructor.

 

there's no skin defined for this project. and there's no trackSkin
class. 

and i'm curious, why do you suppose you got a different error?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> My version of the code says that it died creating the track, not the
> Slider itself which is defined by the "trackSkin" style. Maybe that's
> not a valid class
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of bryancostanich
> Sent: Tuesday, August 19, 2008 10:50 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Custom Component: Instantiation attempted on
a
> non-constructor.
> 
> 
> 
> here's the stack trace, it's all internal stuff, so i didn't post:
> TypeError: Error #1007: Instantiation attempted on a non-constructor.
> at
>
mx.controls.sliderClasses::Slider/createBackgroundTrack()[E:\dev\3.0.x\f
>
rameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:167
> 2]
> at
>
mx.controls.sliderClasses::Slider/createChildren()[E:\dev\3.0.x\framewor
> ks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1224]
> at
>
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\frame
> work\src\mx\core\UIComponent.as:5262]
> at
>
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAd
 
> ded  >
>
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
> :5159]
> at
>
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdde
 
> d  >
>
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3
> 297]
> at
>
mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framewo
> rk\src\mx\core\Container.as:2210]
> at
>
mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework
> \src\mx\core\Container.as:2140]
> at
>
mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\framewor
> ks\projects\framework\src\mx\core\Container.as:3673]
> at
>
mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.0.x\framew
> orks\projects\framework\src\mx\core\Container.as:3485]
> at
>
mx.core::Container/createChildren()[E:\dev\3.0.x\frameworks\projects\fra
> mework\src\mx\core\Container.as:2587]
> at
>
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\frame
> work\src\mx\core\UIComponent.as:5262]
> at
>
mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framewo
> rk\src\mx\core\Container.as:2524]
> at
>
mx.core::Application/initialize()[E:\dev\3.0.x\frameworks\projects\frame
> work\src\mx\core\Application.as:847]
> at
>
Test_InstantiationBug/initialize()[C:\[devlocal]\[flex]\src\Test_Instant
> iationBug.mxml:0]
> at
>
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::c
 
> hildAdded  >
>
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
> ger.as:1625]
> at
>
mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frame
> works\projects\framework\src\mx\managers\SystemManager.as:2482]
> at
>
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::d
 
> ocFrameHandler
>  >
>
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
> ger.as:2330]
> 
> --- In flexcoders@yahoogroups.com


> , "Alex Harui"  wrote:
> >
> > That doesn't make sense. 
> > 
> > 
> > 
> > When you get a runtime exception always use a debug build and post
the
> > entire stacktrace.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com



RE: [flexcoders] Mistery with cell highlighting

2008-08-19 Thread Alex Harui
See my blog.  You aren't handling recycling correctly

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, August 19, 2008 1:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Mistery with cell highlighting

 

I am using the following code to highlight a cell:
override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, 
unscaledHeight); 
var blockNum:int = data.columnIndex + 1;
var grid1:DataGrid = DataGrid(DataGridListData
(listData).owner);
.
if (grid1.isItemSelected(data))
{
storeBackgroundCell = getStyle("backgroundColor");
if (g == null)
{
g = graphics;
} 
if (data["plan" + blockNum] == 1)
{
g.clear();
g.beginFill(0xe1dc4d);
g.drawRect(0, 0, unscaledWidth, unscaledHeight + 1);
g.endFill();
}
if (data["plan" + blockNum] == 2)
{
g.clear();
g.beginFill(storeBackgroundCell);
g.drawRect(0, 0, unscaledWidth,unscaledHeight 
+ 1);
g.endFill(); 
}
}
}
What happens is that code will highlight all cells in the grid. Why 
is that?

Thanks

 



RE: [flexcoders] Casting parent to HSlider fails

2008-08-19 Thread Alex Harui
Thumb owner gets fixed up, but not the track which is parented by a
UIComponent which is a child of the Slider

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bryancostanich
Sent: Tuesday, August 19, 2008 1:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Casting parent to HSlider fails

 

Hi all,

I have a custom track for a slider control. in it i'm trying to wire
up the change for the parent slider so that when the slider changes, i
can do some stuff. i have this in my initialize() method:

Slider(owner).addEventListener(SliderEvent.CHANGE, this.parent_change);

however, when i run it, i get:
TypeError: Error #1034: Type Coercion failed: cannot convert
mx.core::[EMAIL PROTECTED] to mx.controls.sliderClasses.Slider.

but the thing is, i stopped and debugged and i saw that the owner was
of type HSlider. I thought, well, maybe there is an inheritance issue,
so i changed the cast to HSlider temporarily and i still got the error.

am i misunderstanding something here?

thanks.
-b

 



Re: [flexcoders] Casting parent to HSlider fails

2008-08-19 Thread Michael Schmalle
Hi,

Sometimes owner isn't set until createChildren().

Have you tried using 'parent' instead of 'owner'?

Mike

On Tue, Aug 19, 2008 at 4:49 PM, bryancostanich
<[EMAIL PROTECTED]>wrote:

>   Hi all,
>
> I have a custom track for a slider control. in it i'm trying to wire
> up the change for the parent slider so that when the slider changes, i
> can do some stuff. i have this in my initialize() method:
>
> Slider(owner).addEventListener(SliderEvent.CHANGE, this.parent_change);
>
> however, when i run it, i get:
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.core::[EMAIL PROTECTED] to mx.controls.sliderClasses.Slider.
>
> but the thing is, i stopped and debugged and i saw that the owner was
> of type HSlider. I thought, well, maybe there is an inheritance issue,
> so i changed the cast to HSlider temporarily and i still got the error.
>
> am i misunderstanding something here?
>
> thanks.
> -b
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread florian.salihovic
Hello Alex,

dragMoveEnabled is making the difference. When i don't use any ItemRenderer the 
called i 
get [object PlayListItem] and the collections i wrapped in typed methods.

It seems like the DataGridDragProxy works not right, when dragMoveEnabled is 
set to 
false. Actually it does in my case as far as i can say.

Best regards.



--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are you using modules or sub-applications?  Where does the data come
> from?  It seems like it isn't being converted correctly.  Have you
> proven that each collection contains the correct object and not Objects?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of florian.salihovic
> Sent: Tuesday, August 19, 2008 2:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
> encapsuled data - update
> 
>  
> 
> Update:
> 
> Using a for each loop shows me even the right value, but it's type is
> lost.
> override public function set data(value:Object):void {
> trace(describeType(value));
> for each(var a:* in value) {
> trace(a)
> }
> if (this._item == value) {
> return;
> }
> super.data = value;
> if (value is IPlayListItem) {
> this._item = IPlayListItem(value);
> }
> this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> }
> 
> -> the condition value is IPLayListItem is actually never true.
> 
> Best regards
> 
> --- In flexcoders@yahoogroups.com 
> , "florian.salihovic"  wrote:
> >
> > Something i forgot to add:
> > in the Debugger the passed Object, which is said to be not convertable
> in the desired 
> > type, shows the right properties.
> > 
> > Pretty strange to me.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
>  , "florian.salihovic"
>  wrote:
> > >
> > > Here is the stacktrace:
> > > TypeError: Error #1034: Typumwandlung fehlgeschlagen:
> [EMAIL PROTECTED] kann 
> nicht 
> > in 
> > > de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem
> umgewandelt werden.
> > > at
> de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRen
> derer/set 
> > > 
> > 
> data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/bl
> itzeinschlag/playl
> > isteditor/view/playlists/listClasses/ListItemRenderer.mx
> > > ml:99]
> > > at 
> > 
> mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\
> framework\
> > src\mx\controls\List.as:1286]
> > > at 
> > > 
> > 
> mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\d
> ev\3.1.0\fra
> > meworks\projects\framework\src\mx\controls\listClasses
> > > \ListBase.as:1359]
> > > at 
> > > 
> > 
> mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frame
> works\projects\fr
> > amework\src\mx\controls\listClasses\ListBase.as:3657]
> > > at 
> > 
> mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\f
> ramework\src\m
> > x\controls\List.as:1003]
> > > at 
> > > 
> > 
> mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\fra
> meworks\projects\f
> > ramework\src\mx\controls\listClasses\ListBase.as:3279]
> > > at 
> > 
> mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks
> \projects\fra
> > mework\src\mx\managers\LayoutManager.as:605]
> > > at 
> > > 
> > 
> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\framewor
> ks\projects\
> > framework\src\mx\managers\LayoutManager.as:678]
> > > at Function/http://adobe.com/AS3/2006/builtin::apply
>  ()
> > > at 
> > 
> mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\proj
> ects\framewo
> > rk\src\mx\core\UIComponent.as:8565]
> > > at 
> > 
> mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\proje
> cts\framewor
> > k\src\mx\core\UIComponent.as:8508]
> > > 
> > > And this is the argument which is passed to the "set data"-field
> implementation:
> > >  isStatic="false">
> > >  returnType="Boolean" 
> > uri="http://adobe.com/AS3/2006/builtin
>  ">
> > > 
> > > 
> > >  returnType="Boolean" 
> > uri="http://adobe.com/AS3/2006/builtin
>  ">
> > > 
> > > 
> > >  returnType="Boolean" 
> > uri="http://adobe.com/AS3/2006/builtin
>  ">
> > > 
> > > 
> > > 
> > > 
> > > Any input would be thankfull!
> > > 
> > > Best regards
> > > 
> > > --- In flexcoders@yahoogroups.com
>  , "Alex Harui"  wrote:
> > > >
> > > > If you get an runtime exception, always use a debug build and post
> the
> > > > full stacktrace.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > > > B

Re: [flexcoders] Headless compilation with AdvancedDataGrid

2008-08-19 Thread Sebastien ARBOGAST
OK thanks Jim.Now I'm trying to configure my mxmlc ant task like this:

 






















But if I put datavisualization.swc in ${lib.dir}, I get the following error:


[mxmlc] Error: Unable to resolve resource bundle "datamanagement" for
locale "en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "charts" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "charts" for locale
"en_US".

[mxmlc]

[mxmlc] Error: Unable to resolve resource bundle "olap" for locale
"en_US".

[mxmlc]

I've tried to copy all the swc's from
FLEX_BUILDER_HOME/sdks/3.0.0/frameworks/lib into ${lib.dir} but then I get
an OutOfMemoryError on Java heap space.
Can anyone help me geting this to work?


2008/8/17 Jim Hayes <[EMAIL PROTECTED]>

>
> http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com  on behalf
> of Sebastien ARBOGAST
> Sent: Sun 17/08/2008 16:42
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Headless compilation with AdvancedDataGrid
>
> Which docs? Would you have a link for me?
>
> 2008/8/17 Douglas Knudsen <[EMAIL PROTECTED]
> >
>
> > Use Ant. Some examples are in the docs.
> >
> > DK
> >
> >
> > On 8/17/08, Sebastien ARBOGAST <[EMAIL 
> > PROTECTED]
> >
> > wrote:
> > > I have a Flex Builder Pro license and I'm using it to develop an
> > application
> > > using AdvancedDataGrid component. When I build my application in Flex
> > > Builder, everything works fine. But now I'm trying to setup a headless
> > build
> > > script for continuous integration using mxmlc.
> > > How can I build my application with mxmlc outside of Flex Builder while
> > > using AdvancedDataGrid?
> > >
> > > --
> > > Sébastien Arbogast
> > >
> > > http://sebastien-arbogast.com
> > >
> >
> > --
> > Sent from Gmail for mobile | mobile.google.com
> >
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
> >
> >
>
> --
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
>
> __
> This communication is from Primal Pictures Ltd., a company registered in
> England and Wales with registration No. 02622298 and registered office: 4th
> Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
> VAT registration No. 648874577.
>
> This e-mail is confidential and may be privileged. It may be read, copied
> and used only by the intended recipient. If you have received it in error,
> please contact the sender immediately by return e-mail or by telephoning
> +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
> contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs Email
> Security System.
> __
>
>  
>



-- 
Sébastien Arbogast

http://sebastien-arbogast.com


RE: [flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread Alex Harui
Are you using modules or sub-applications?  Where does the data come
from?  It seems like it isn't being converted correctly.  Have you
proven that each collection contains the correct object and not Objects?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of florian.salihovic
Sent: Tuesday, August 19, 2008 2:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ItemRenderer returns empty Object instead of
encapsuled data - update

 

Update:

Using a for each loop shows me even the right value, but it's type is
lost.
override public function set data(value:Object):void {
trace(describeType(value));
for each(var a:* in value) {
trace(a)
}
if (this._item == value) {
return;
}
super.data = value;
if (value is IPlayListItem) {
this._item = IPlayListItem(value);
}
this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}

-> the condition value is IPLayListItem is actually never true.

Best regards

--- In flexcoders@yahoogroups.com 
, "florian.salihovic" <[EMAIL PROTECTED]> wrote:
>
> Something i forgot to add:
> in the Debugger the passed Object, which is said to be not convertable
in the desired 
> type, shows the right properties.
> 
> Pretty strange to me.
> 
> 
> 
> --- In flexcoders@yahoogroups.com
 , "florian.salihovic"
 wrote:
> >
> > Here is the stacktrace:
> > TypeError: Error #1034: Typumwandlung fehlgeschlagen:
[EMAIL PROTECTED] kann 
nicht 
> in 
> > de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem
umgewandelt werden.
> > at
de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRen
derer/set 
> > 
> 
data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/bl
itzeinschlag/playl
> isteditor/view/playlists/listClasses/ListItemRenderer.mx
> > ml:99]
> > at 
> 
mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\
framework\
> src\mx\controls\List.as:1286]
> > at 
> > 
> 
mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\d
ev\3.1.0\fra
> meworks\projects\framework\src\mx\controls\listClasses
> > \ListBase.as:1359]
> > at 
> > 
> 
mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frame
works\projects\fr
> amework\src\mx\controls\listClasses\ListBase.as:3657]
> > at 
> 
mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\f
ramework\src\m
> x\controls\List.as:1003]
> > at 
> > 
> 
mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\fra
meworks\projects\f
> ramework\src\mx\controls\listClasses\ListBase.as:3279]
> > at 
> 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks
\projects\fra
> mework\src\mx\managers\LayoutManager.as:605]
> > at 
> > 
> 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\framewor
ks\projects\
> framework\src\mx\managers\LayoutManager.as:678]
> > at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
> > at 
> 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\proj
ects\framewo
> rk\src\mx\core\UIComponent.as:8565]
> > at 
> 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\proje
cts\framewor
> k\src\mx\core\UIComponent.as:8508]
> > 
> > And this is the argument which is passed to the "set data"-field
implementation:
> > 
> >  uri="http://adobe.com/AS3/2006/builtin
 ">
> > 
> > 
> >  uri="http://adobe.com/AS3/2006/builtin
 ">
> > 
> > 
> >  uri="http://adobe.com/AS3/2006/builtin
 ">
> > 
> > 
> > 
> > 
> > Any input would be thankfull!
> > 
> > Best regards
> > 
> > --- In flexcoders@yahoogroups.com
 , "Alex Harui"  wrote:
> > >
> > > If you get an runtime exception, always use a debug build and post
the
> > > full stacktrace.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
] On
> > > Behalf Of florian.salihovic
> > > Sent: Monday, August 18, 2008 9:30 AM
> > > To: flexcoders@yahoogroups.com
 
> > > Subject: [flexcoders] ItemRenderer returns empty Object instead of
> > > encapsuled data.
> > > 
> > > 
> > > 
> > > I have two instances of mx:controls::List. Both use the same
> > > ItemRenderer. A TypeError 
> > > occours, when i drop one item from one List into the other List.
Instead
> > > of the encapsuled 
> > > type (an instance of an interface, typed to the interface) just an
empty
> > > Ombject instance is 
> > > returned.
> > > 
> > > I implement mx.core.IDataRenderer,
> > > mx.controls.listClasses.IDropInListItemRenderer and 
> > > mx.controls.listClasses.IListItemRenderer in my component. Here is
the
> > > code for the 
> > > overwritten data 

[flexcoders] Re: Optimize with callLater() -- help?

2008-08-19 Thread David Ham
I think callLater() is going to work for me, but I have another question:

To create my pages, I loop through an array of Room objects. For each
Room, I set it to be the currentRoom, which tells the view to display
that Room's information. I figure I can do this (pseudocode):

for (var i:uint = 0; i < rooms.length; i++) {
model.currentRoom = rooms[i];
callLater( makePageFromRoom() );
}

I figure this should tell the view to update itself, and then the
callLater() should create the PDF page after the view has finished
updating.

But how do I loop through the rooms? Should I do an enterFrame event
listener, and in every frame, set the currentRoom to the new room and
do a new callLater()?

Thanks,

OK
DAH 



[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread florian.salihovic
Another wierd observation: when i set dragMoveEnabled="true" from the 
source-list, i get 
the expected results. But i don't want it to be dragMoveEnabled.

But at least i'm moving forward...

--- In flexcoders@yahoogroups.com, "florian.salihovic" <[EMAIL PROTECTED]> 
wrote:
>
> Update:
> 
> Using a for each loop shows me even the right value, but it's type is lost.
> override public function set data(value:Object):void {
>   trace(describeType(value));
>   for each(var a:* in value) {
>   trace(a)
>   }
>   if (this._item == value) {
>   return;
>   }
>   super.data = value;
>   if (value is IPlayListItem) {
>   this._item = IPlayListItem(value);
>   }
>   this.dispatchEvent(new 
> FlexEvent(FlexEvent.DATA_CHANGE));
>   }
> 
> -> the condition value is IPLayListItem is actually never true.
> 
> Best regards
> 
> --- In flexcoders@yahoogroups.com, "florian.salihovic"  
> wrote:
> >
> > Something i forgot to add:
> > in the Debugger the passed Object, which is said to be not convertable in 
> > the desired 
> > type, shows the right properties.
> > 
> > Pretty strange to me.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "florian.salihovic"  
> > wrote:
> > >
> > > Here is the stacktrace:
> > > TypeError: Error #1034: Typumwandlung fehlgeschlagen: [EMAIL PROTECTED] 
> > > kann 
> nicht 
> > in 
> > > de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem 
> > > umgewandelt werden.
> > >   at 
> > > de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRenderer/set
> > >  
> > > 
> > 
> 
data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/blitzeinschlag/playl
> > isteditor/view/playlists/listClasses/ListItemRenderer.mx
> > > ml:99]
> > >   at 
> > 
> 
mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\framework\
> > src\mx\controls\List.as:1286]
> > >   at 
> > > 
> > 
> 
mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\3.1.0\fra
> > meworks\projects\framework\src\mx\controls\listClasses
> > > \ListBase.as:1359]
> > >   at 
> > > 
> > 
> 
mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\fr
> > amework\src\mx\controls\listClasses\ListBase.as:3657]
> > >   at 
> > 
> 
mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\m
> > x\controls\List.as:1003]
> > >   at 
> > > 
> > 
> 
mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\f
> > ramework\src\mx\controls\listClasses\ListBase.as:3279]
> > >   at 
> > 
> 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\fra
> > mework\src\mx\managers\LayoutManager.as:605]
> > >   at 
> > > 
> > 
> 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\
> > framework\src\mx\managers\LayoutManager.as:678]
> > >   at Function/http://adobe.com/AS3/2006/builtin::apply()
> > >   at 
> > 
> 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framewo
> > rk\src\mx\core\UIComponent.as:8565]
> > >   at 
> > 
> 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framewor
> > k\src\mx\core\UIComponent.as:8508]
> > > 
> > > And this is the argument which is passed to the "set data"-field 
> > > implementation:
> > > 
> > >> uri="http://adobe.com/AS3/2006/builtin";>
> > > 
> > >   
> > >> uri="http://adobe.com/AS3/2006/builtin";>
> > > 
> > >   
> > >> uri="http://adobe.com/AS3/2006/builtin";>
> > > 
> > >   
> > > 
> > > 
> > > Any input would be thankfull!
> > > 
> > > Best regards
> > > 
> > > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > > >
> > > > If you get an runtime exception, always use a debug build and post the
> > > > full stacktrace.
> > > > 
> > > >  
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > > > Behalf Of florian.salihovic
> > > > Sent: Monday, August 18, 2008 9:30 AM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] ItemRenderer returns empty Object instead of
> > > > encapsuled data.
> > > > 
> > > >  
> > > > 
> > > > I have two instances of mx:controls::List. Both use the same
> > > > ItemRenderer. A TypeError 
> > > > occours, when i drop one item from one List into the other List. Instead
> > > > of the encapsuled 
> > > > type (an instance of an interface, typed to the interface) just an empty
> > > > Ombject instance is 
> > > > returned.
> > > > 
> > > > I implement mx.core.IDataRenderer,
> > > > mx.controls.listClasses.IDropInListItemR

[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data - update

2008-08-19 Thread florian.salihovic
Update:

Using a for each loop shows me even the right value, but it's type is lost.
override public function set data(value:Object):void {
trace(describeType(value));
for each(var a:* in value) {
trace(a)
}
if (this._item == value) {
return;
}
super.data = value;
if (value is IPlayListItem) {
this._item = IPlayListItem(value);
}
this.dispatchEvent(new 
FlexEvent(FlexEvent.DATA_CHANGE));
}

-> the condition value is IPLayListItem is actually never true.

Best regards

--- In flexcoders@yahoogroups.com, "florian.salihovic" <[EMAIL PROTECTED]> 
wrote:
>
> Something i forgot to add:
> in the Debugger the passed Object, which is said to be not convertable in the 
> desired 
> type, shows the right properties.
> 
> Pretty strange to me.
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "florian.salihovic"  
> wrote:
> >
> > Here is the stacktrace:
> > TypeError: Error #1034: Typumwandlung fehlgeschlagen: [EMAIL PROTECTED] 
> > kann 
nicht 
> in 
> > de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem umgewandelt 
> > werden.
> > at 
> > de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRenderer/set
> >  
> > 
> 
data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/blitzeinschlag/playl
> isteditor/view/playlists/listClasses/ListItemRenderer.mx
> > ml:99]
> > at 
> 
mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\framework\
> src\mx\controls\List.as:1286]
> > at 
> > 
> 
mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\3.1.0\fra
> meworks\projects\framework\src\mx\controls\listClasses
> > \ListBase.as:1359]
> > at 
> > 
> 
mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\fr
> amework\src\mx\controls\listClasses\ListBase.as:3657]
> > at 
> 
mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\m
> x\controls\List.as:1003]
> > at 
> > 
> 
mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\f
> ramework\src\mx\controls\listClasses\ListBase.as:3279]
> > at 
> 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\fra
> mework\src\mx\managers\LayoutManager.as:605]
> > at 
> > 
> 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\
> framework\src\mx\managers\LayoutManager.as:678]
> > at Function/http://adobe.com/AS3/2006/builtin::apply()
> > at 
> 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framewo
> rk\src\mx\core\UIComponent.as:8565]
> > at 
> 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framewor
> k\src\mx\core\UIComponent.as:8508]
> > 
> > And this is the argument which is passed to the "set data"-field 
> > implementation:
> > 
> >uri="http://adobe.com/AS3/2006/builtin";>
> > 
> >   
> >uri="http://adobe.com/AS3/2006/builtin";>
> > 
> >   
> >> returnType="Boolean" 
> uri="http://adobe.com/AS3/2006/builtin";>
> > 
> >   
> > 
> > 
> > Any input would be thankfull!
> > 
> > Best regards
> > 
> > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > >
> > > If you get an runtime exception, always use a debug build and post the
> > > full stacktrace.
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > > Behalf Of florian.salihovic
> > > Sent: Monday, August 18, 2008 9:30 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] ItemRenderer returns empty Object instead of
> > > encapsuled data.
> > > 
> > >  
> > > 
> > > I have two instances of mx:controls::List. Both use the same
> > > ItemRenderer. A TypeError 
> > > occours, when i drop one item from one List into the other List. Instead
> > > of the encapsuled 
> > > type (an instance of an interface, typed to the interface) just an empty
> > > Ombject instance is 
> > > returned.
> > > 
> > > I implement mx.core.IDataRenderer,
> > > mx.controls.listClasses.IDropInListItemRenderer and 
> > > mx.controls.listClasses.IListItemRenderer in my component. Here is the
> > > code for the 
> > > overwritten data and listData Propertys:
> > > 
> > > private var _item:IPlayListItem;
> > > private var _listData:BaseListData;
> > > 
> > > [Bindable("dataChange")]
> > > override public function get data():Object {
> > > return this._item;
> > > }
> > > 
> > > [Bindable("dataChange")]
> > > public function get listData():BaseListData {
> > > return this._listData

[flexcoders] Casting parent to HSlider fails

2008-08-19 Thread bryancostanich
Hi all,

I have a custom track for a slider control. in it i'm trying to wire
up the change for the parent slider so that when the slider changes, i
can do some stuff. i have this in my initialize() method:

Slider(owner).addEventListener(SliderEvent.CHANGE, this.parent_change);

however, when i run it, i get:
TypeError: Error #1034: Type Coercion failed: cannot convert
mx.core::[EMAIL PROTECTED] to mx.controls.sliderClasses.Slider.

but the thing is, i stopped and debugged and i saw that the owner was
of type HSlider. I thought, well, maybe there is an inheritance issue,
so i changed the cast to HSlider temporarily and i still got the error.

am i misunderstanding something here?

thanks.
-b




[flexcoders] SOLVED Re: how do you check the state during updateDisplayList()?

2008-08-19 Thread bryancostanich
updating that this was solved. thanks again Alex.
-b


--- In flexcoders@yahoogroups.com, "bryancostanich"
<[EMAIL PROTECTED]> wrote:
>
> thanks. that works. though it's a shame i have to result to
> mx_internal for something like this.
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > There's an mx_internal phase property that might help.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of bryancostanich
> > Sent: Tuesday, August 19, 2008 11:02 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: how do you check the state during
> > updateDisplayList()?
> > 
> >  
> > 
> > except, as i pointed out in my post, i'm not looking for the skin
> > class names (as that link talks about). i just want to know what the
> > state of it is. if you want to do it like in the article, you have to
> > build a skin class. it would seem to me that you could get the state
> > somehow without doing that. but the "name" property is just the
> > instance name if you don't add the skin class.
> > 
> > --- In flexcoders@yahoogroups.com

> > , "Alex Harui"  wrote:
> > >
> > > Thumb is a Button, so the same rules should apply.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com

> > [mailto:flexcoders@yahoogroups.com

> > ] On
> > > Behalf Of bryancostanich
> > > Sent: Monday, August 18, 2008 4:08 PM
> > > To: flexcoders@yahoogroups.com
 
> > > Subject: [flexcoders] how do you check the state during
> > > updateDisplayList()?
> > > 
> > > 
> > > 
> > > hi all,
> > > 
> > > i'm creating a custom thumbSlider for a slider control, and in my
> > > updateDisplayList() method, i want to check to see if it's
mouseover,
> > > mousedown, etc. how do i check to see what state it is in?
> > > 
> > > i know you can do it if you're using custom skins with the name
> > > property, as shown here:
> > >
> >
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
> >
 > l> 
> > > \
> > > p.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,
> > >
> >
 >
 > > 
> > > lp.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,> but i
> > > don't
> > > want to do it based on the skin, i just want to do a simple state
> > check.
> > > 
> > > thanks.
> > > -b
> > >
> >
>




[flexcoders] Re: vertical markers on line chart?

2008-08-19 Thread Raider226
--- In flexcoders@yahoogroups.com, "Raider226" <[EMAIL PROTECTED]> wrote:
>
> does anyone know if there is an easy way to add custom vertical
> markers to a line chart?  i have a line chart where the x-axis
> constitutes time and the y-axis constitutes quantity.  i want to be
> able to place a vertical line on my chart that will clearly mark a
> particular date so that the quantity for that date is distinctly
noticed.
> 
> any ideas?
> 
> thanks for any help,
> chris
>

i figured out how to do this using the CartesianDataCanvas.

thanks,
chris



[flexcoders] Mistery with cell highlighting

2008-08-19 Thread markgoldin_2000
I am using the following code to highlight a cell:
override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, 
unscaledHeight);
var blockNum:int = data.columnIndex + 1;
var grid1:DataGrid = DataGrid(DataGridListData
(listData).owner);
.
if (grid1.isItemSelected(data))
{
storeBackgroundCell = getStyle("backgroundColor");
if (g == null)
{
g = graphics;
}   
if (data["plan" + blockNum] == 1)
{
g.clear();
g.beginFill(0xe1dc4d);
g.drawRect(0, 0, unscaledWidth, unscaledHeight + 1);
g.endFill();
}
if (data["plan" + blockNum] == 2)
{
g.clear();
g.beginFill(storeBackgroundCell);
g.drawRect(0, 0, unscaledWidth,unscaledHeight 
+ 1);
g.endFill();
}
}
}
What happens is that code will highlight all cells in the grid. Why 
is that?

Thanks



[flexcoders] Re: DragManager gets stuck in dragging state even when mouse button is up.

2008-08-19 Thread Doug Sharp
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's a semi document endDrag() method
> 
>  


endDrag is defined in DragManager.as as mx_internal, so that doesn't
do me any good:

/**
 *  @private
 */
mx_internal static function endDrag():void
{
impl.endDrag();
}





[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data.

2008-08-19 Thread florian.salihovic
Something i forgot to add:
in the Debugger the passed Object, which is said to be not convertable in the 
desired 
type, shows the right properties.

Pretty strange to me.



--- In flexcoders@yahoogroups.com, "florian.salihovic" <[EMAIL PROTECTED]> 
wrote:
>
> Here is the stacktrace:
> TypeError: Error #1034: Typumwandlung fehlgeschlagen: [EMAIL PROTECTED] kann 
> nicht 
in 
> de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem umgewandelt 
> werden.
>   at 
> de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRenderer/set
>  
> 
data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/blitzeinschlag/playl
isteditor/view/playlists/listClasses/ListItemRenderer.mx
> ml:99]
>   at 
mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\framework\
src\mx\controls\List.as:1286]
>   at 
> 
mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\3.1.0\fra
meworks\projects\framework\src\mx\controls\listClasses
> \ListBase.as:1359]
>   at 
> 
mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\fr
amework\src\mx\controls\listClasses\ListBase.as:3657]
>   at 
mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\m
x\controls\List.as:1003]
>   at 
> 
mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\f
ramework\src\mx\controls\listClasses\ListBase.as:3279]
>   at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\fra
mework\src\mx\managers\LayoutManager.as:605]
>   at 
> 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\
framework\src\mx\managers\LayoutManager.as:678]
>   at Function/http://adobe.com/AS3/2006/builtin::apply()
>   at 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framewo
rk\src\mx\core\UIComponent.as:8565]
>   at 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framewor
k\src\mx\core\UIComponent.as:8508]
> 
> And this is the argument which is passed to the "set data"-field 
> implementation:
> 
>   http://adobe.com/AS3/2006/builtin";>
> 
>   
>   http://adobe.com/AS3/2006/builtin";>
> 
>   
>returnType="Boolean" 
uri="http://adobe.com/AS3/2006/builtin";>
> 
>   
> 
> 
> Any input would be thankfull!
> 
> Best regards
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > If you get an runtime exception, always use a debug build and post the
> > full stacktrace.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of florian.salihovic
> > Sent: Monday, August 18, 2008 9:30 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] ItemRenderer returns empty Object instead of
> > encapsuled data.
> > 
> >  
> > 
> > I have two instances of mx:controls::List. Both use the same
> > ItemRenderer. A TypeError 
> > occours, when i drop one item from one List into the other List. Instead
> > of the encapsuled 
> > type (an instance of an interface, typed to the interface) just an empty
> > Ombject instance is 
> > returned.
> > 
> > I implement mx.core.IDataRenderer,
> > mx.controls.listClasses.IDropInListItemRenderer and 
> > mx.controls.listClasses.IListItemRenderer in my component. Here is the
> > code for the 
> > overwritten data and listData Propertys:
> > 
> > private var _item:IPlayListItem;
> > private var _listData:BaseListData;
> > 
> > [Bindable("dataChange")]
> > override public function get data():Object {
> > return this._item;
> > }
> > 
> > [Bindable("dataChange")]
> > public function get listData():BaseListData {
> > return this._listData
> > }
> > 
> > override public function set data(value:Object):void {
> > trace("ListItemRenderer.data: "+value);
> > super.data = value;
> > if (!value) {
> > return;
> > }
> > if (this._item == value) {
> > return;
> > }
> > if (value is IPlayListItem) {
> > super.data = IPlayListItem(value);
> > this._item = IPlayListItem(value);
> > }
> > this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> > 
> > }
> > 
> > public function set listData(value:BaseListData):void {
> > if (this._listData == value) {
> > return;
> > }
> > this._listData = value;
> > this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> > }
> > 
> > What am i missing?
> > 
> > Best regards!
> >
>





[flexcoders] Re: how do you check the state during updateDisplayList()?

2008-08-19 Thread bryancostanich
thanks. that works. though it's a shame i have to result to
mx_internal for something like this.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's an mx_internal phase property that might help.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bryancostanich
> Sent: Tuesday, August 19, 2008 11:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: how do you check the state during
> updateDisplayList()?
> 
>  
> 
> except, as i pointed out in my post, i'm not looking for the skin
> class names (as that link talks about). i just want to know what the
> state of it is. if you want to do it like in the article, you have to
> build a skin class. it would seem to me that you could get the state
> somehow without doing that. but the "name" property is just the
> instance name if you don't add the skin class.
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Thumb is a Button, so the same rules should apply.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of bryancostanich
> > Sent: Monday, August 18, 2008 4:08 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] how do you check the state during
> > updateDisplayList()?
> > 
> > 
> > 
> > hi all,
> > 
> > i'm creating a custom thumbSlider for a slider control, and in my
> > updateDisplayList() method, i want to check to see if it's mouseover,
> > mousedown, etc. how do i check to see what state it is in?
> > 
> > i know you can do it if you're using custom skins with the name
> > property, as shown here:
> >
> http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
>  l> 
> > \
> > p.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,
> >
>   > 
> > lp.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,> but i
> > don't
> > want to do it based on the skin, i just want to do a simple state
> check.
> > 
> > thanks.
> > -b
> >
>




[flexcoders] SOLVED Re: getChildByName using it to get the value of a textbox

2008-08-19 Thread Jason B
Nevermind Got it working Thanks


--- In flexcoders@yahoogroups.com, "Jason B" <[EMAIL PROTECTED]> wrote:
>
> is this what you mean i've tried to access but i still get a #1009 error
> 
> 
> public var dynamicallyCreatedComponents:Object = {};
> 
> 
>public function loaditems(){
>   
> create_text = new TextInput();
> create_text.percentWidth = 100;
> create_text.id = "test";
> create_text.text =create_text.id;
>   dynamicallyCreatedComponents["test"] = create_text; 
> dataBox.addChild(create_text);  
> 
>   }
> 
>public function saveall(){
>   
>  var t:TextInput = dynamicallyCreatedComponents["test"];
>   try{
>   Alert.show( 
> dynamicallyCreatedComponents["test"].text);
>   }catch(errObject:Error){
>   Alert.show(errObject.message);
>   }   
> 
> 
> 
> 
>   }
> 
> 
> --- In flexcoders@yahoogroups.com, "Gordon Smith"  wrote:
> >
> > Declare an instance variable of type Object or Dictionary for storing
> > named references to dynamically created components:
> > 
> >  
> > 
> > public var dynamicallyCreatedComponents:Object = {};
> > 
> >  
> > 
> > In a method where you create a component at runtime, do
> > 
> >  
> > 
> > var b:Button = new Button();
> > 
> > b.label = "OK";
> > 
> > dynamicallyCreatedComponents["okButton"] = b;
> > 
> >  
> > 
> > Later you can access this button as follows:
> > 
> >  
> > 
> > dynamicallyCreatedComponents["okButton"]
> > 
> >  
> > 
> > Gordon Smith
> > 
> > Adobe Flex SDK Team
> > 
> >
>




[flexcoders] Re: Flex Builder 3.0.1 and Eclipse 3.4 classic not working together

2008-08-19 Thread stephen.smithstone
I can confirm that the flex perps now show up as options using that
way of the installation cheers doug , Im gonna run 3.3 and 3.4 side by
just incase something fails

--- In flexcoders@yahoogroups.com, "Douglas Knudsen"
<[EMAIL PROTECTED]> wrote:
>
> jazzamin!  I have not tested all functionality yet, I do have work to do
> after all, but here is how to get FB 3.0.1 into Eclipse 3.4
Ganymede.  These
> are steps using what used to be called a extension point to install
plugins
> externally, a nicer way to enable easier Eclispe upgrades.
> 
> 1) Help > Software Updates
> 2) Available Software
> 3) Add SIte > Local
> 4) point to  folder>/com.adobe.flexbuilder.update.site
> 5) In the install dialog following this, you should see 4 features
available
> for installation, choose them all
> 6) mash Install and accept the agreements and KACHOW!
> 
> note that I am using Vista and have no time to check this under
Ubuntu and
> also I have no sour Apples around :)
> 
> DK
> 
> On Tue, Aug 19, 2008 at 11:38 AM, Douglas Knudsen
> <[EMAIL PROTECTED]>wrote:
> 
> > http://www.adobe.com/devnet/flex/articles/sdk3_fb301.html
> >
> > 3.0.1 FB is supposed to support Eclipse 3.4 now.  FWIW, I too saw the
> > required compatibility notices from Eclipse 3.4 that bombed out. 
I was
> > trying to install the plugin by pointing Eclipse 3.4 to the
*C:\Program
> > Files\Adobe\Flex Builder 3 Plug-in *directory ala external extension.
> > Have the Ganymede all in one JEE package.
> >
> > DK
> >
> >
> > On Tue, Aug 19, 2008 at 11:13 AM, Howard Fore <[EMAIL PROTECTED]>wrote:
> >
> >>   Is FB supposed to work with 3.4? I thought it was 3.2/3.3 only.
> >>
> >> On Tue, Aug 19, 2008 at 11:08 AM, stephen.smithstone <
> >> [EMAIL PROTECTED]> wrote:
> >>
> >>> I downloaded a fresh copy of classic 3.4 and the new FB 3.0.1
from the
> >>> adobe trail page, the install was successful, how ever there is no
> >>> flex development , debug , profiler perspectives available in
the menu
> >>> any one got this to work in the error log it refers to a
> >>> compatibleRequired to the osgi.bundle , but im not sure where to get
> >>> that from any help will be good cheers
> >>
> >>
> >>
> >> --
> >> Howard Fore, [EMAIL PROTECTED]
> >> "The universe tends toward maximum irony. Don't push it." - Jeff
Atwood
> >>  
> >>
> >
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
> 
> 
> 
> -- 
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>




[flexcoders] Re: ItemRenderer returns empty Object instead of encapsuled data.

2008-08-19 Thread florian.salihovic
Here is the stacktrace:
TypeError: Error #1034: Typumwandlung fehlgeschlagen: [EMAIL PROTECTED] kann 
nicht in 
de.blitzeinschlag.playlisteditor.model.playlists.IPlayListItem umgewandelt 
werden.
at 
de.blitzeinschlag.playlisteditor.view.playlists.listClasses::ListItemRenderer/set
 
data()[/Users/florian/Workspaces/blitzeinschlag/PlayListEditor/src/de/blitzeinschlag/playlisteditor/view/playlists/listClasses/ListItemRenderer.mx
ml:99]
at 
mx.controls::List/makeRowsAndColumns()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\List.as:1286]
at 
mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\listClasses
\ListBase.as:1359]
at 
mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3657]
at 
mx.controls::List/updateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\List.as:1003]
at 
mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3279]
at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:605]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:678]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8565]
at 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8508]

And this is the argument which is passed to the "set data"-field implementation:

  http://adobe.com/AS3/2006/builtin";>

  
  http://adobe.com/AS3/2006/builtin";>

  
  http://adobe.com/AS3/2006/builtin";>

  


Any input would be thankfull!

Best regards

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you get an runtime exception, always use a debug build and post the
> full stacktrace.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of florian.salihovic
> Sent: Monday, August 18, 2008 9:30 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ItemRenderer returns empty Object instead of
> encapsuled data.
> 
>  
> 
> I have two instances of mx:controls::List. Both use the same
> ItemRenderer. A TypeError 
> occours, when i drop one item from one List into the other List. Instead
> of the encapsuled 
> type (an instance of an interface, typed to the interface) just an empty
> Ombject instance is 
> returned.
> 
> I implement mx.core.IDataRenderer,
> mx.controls.listClasses.IDropInListItemRenderer and 
> mx.controls.listClasses.IListItemRenderer in my component. Here is the
> code for the 
> overwritten data and listData Propertys:
> 
> private var _item:IPlayListItem;
> private var _listData:BaseListData;
> 
> [Bindable("dataChange")]
> override public function get data():Object {
> return this._item;
> }
> 
> [Bindable("dataChange")]
> public function get listData():BaseListData {
> return this._listData
> }
> 
> override public function set data(value:Object):void {
> trace("ListItemRenderer.data: "+value);
> super.data = value;
> if (!value) {
> return;
> }
> if (this._item == value) {
> return;
> }
> if (value is IPlayListItem) {
> super.data = IPlayListItem(value);
> this._item = IPlayListItem(value);
> }
> this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> 
> }
> 
> public function set listData(value:BaseListData):void {
> if (this._listData == value) {
> return;
> }
> this._listData = value;
> this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> }
> 
> What am i missing?
> 
> Best regards!
>





[flexcoders] Re: Mouse Wheel over TextArea

2008-08-19 Thread blc187
I have this same problem with the mouse_wheel event getting caught by 
something on top of my canvas that I want to scroll.
Except instead of a TextArea, it's an HBox.  And HBox has no 
mouseWheelHandler to override.
How can I stop the HBox from keeping the event to itself?


--- In flexcoders@yahoogroups.com, "toofah_gm" <[EMAIL PROTECTED]> wrote:
>
> I have a Canvas with a number of TextArea components, Images, Sprites,
> etc, on top of it.  The Canvas itself is a scrollable area.  When I
> use the Mouse Wheel over most parts of the Canvas, it scrolls up and
> down.  If my mouse is on top of one of my TextAreas, the Canvas does
> not scroll when I use the Mouse Wheel.  This is the case even though
> my TextAreas are not editable nor selectable.
> 
> Is there a way to get my Mouse Wheel to scroll my Canvas even when it
> is over my TextArea components?
>




[flexcoders] Flex Builder crash after update

2008-08-19 Thread Willy Ci
my Flex Builder keeps crash since I run the update yesterday. It runs fine
before the update, never crash before.
I am on a Mac ( maybe that is why :P ).
does this happen to anyone?

thanks,
Willy


[flexcoders] REPOST: HELP >> air runtime & app - silent install

2008-08-19 Thread aphexyuri
hey mike (or anyone else)

we already applied for the license, and all that...i'm working on the
flex / flash /air side of things, where someone else is doing the
installer (he's not on this forum), so let me paste his mail to me:

/*
In the course of setting up the AIR silent installer, I ran into a
problem. I believe I have reached a sandbox limitation. While in the
correct folder, the argument goes like this:

screenbird_gui.exe -silent { -eulaAccepted ( -location  ) }
screenbird_gui.air

Let me explain. This is the command to launch the AIR runtime
installation
(screenbird_gui.exe is the renamed exe, as per their instructions). It is
supposed to install into a directory called testy.sorry, I was
frustrated! And this would also install the air app screenbird_gui.air.
The problem is i get "Access is denied" when I try to install into "testy"
folder. The directions say to give an absolute path, but that's a
bunch of
crap. It says it can't find file if I do that.


Any thoughts?
*/

i was maybe thinking that it had something to do with the digital
certificate?



RE: [flexcoders] Send crypted password

2008-08-19 Thread Tracy Spratt
There is an MD5 Actionscript library available, google should find it
for you.  Hmm, maybe AS2, though.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aymen
Sent: Monday, August 18, 2008 5:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Send crypted password

 

Hi there, i am trying develop a project that i need to have a
inscription form,

the user is able to subscribe with (pseudo, password, name, ..)
i need to send a encrypted password string to my MySql data base with
a MD5 hash via a php server side.

can you please propose to me a tranche of code, how can i do this ?

Note : i use HTTPService to a php file in my server, and i send params
with send method.

private function insertHandler(event:UserAddEvent):void
{
var params:Object = new Object();
params.method ="Insert";
params.userId = event.slide.userId;
params.nom = event.slide.nom;
params.prenom = event.slide.prenom;
params.pseudo = event.slide.pseudo;
params.pass = event.slide.pass; <- i want this encrypted
inserService.send(params);

Alert.show("An insert event was dispatched", "Insert event");
}

A+ 

 



[flexcoders] confusions about versions

2008-08-19 Thread Claudio M. E. Bastos Iorio
. The latest Flex builder version is not 3.0.194161, right?

. The update named 'Flexbuilder 3.0.1 Update' included in
autoupdater, also contains the Flex SDK 3.1.0.2710?

. I know I can get the latest versions for Flex SDK from here:
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3. But I
still should Update the Flex Builder, that's right?

. The Flex builder version here:
http://www.adobe.com/go/downloadflex3, is the latest? It contains the latest
update?

 

Thanks in advance if you guys can answer me this (or some) questions.  

 

 

_

Claudio M. E. Bastos Iorio

  http://www.blumer.com.ar

 



Re: [flexcoders] How to upgrade Flex 3 to 3.0.1?

2008-08-19 Thread Derrick Anderson
i ran the update and it's working perfectly (so far :) )

d.

On Tue, Aug 19, 2008 at 12:15 PM, Matt Chotin <[EMAIL PROTECTED]> wrote:

>   There were some bugs on the Windows version of auto-update but we think
> we cleared the Akamai caches and things should work now.
>
> Matt
>
>
> On 8/19/08 8:32 AM, "Howard Fore" <[EMAIL PROTECTED]>
> wrote:
>
> I see the AdobeUpdater.dll in my FlexBuilder directory but the menu item
> doesn't do anything for me...
>
> On Tue, Aug 19, 2008 at 11:18 AM, Mike Chabot <[EMAIL 
> PROTECTED]>
> wrote:
> I don't have the Adobe Updater program installed. I'm guessing that is
> why the Search For Flex Builder Updates command does nothing for me.
>
>  
>


[flexcoders] Change Chart Data via Combobox: redraw?

2008-08-19 Thread cox.blair
I did not think this would be an issue, but I simply cannot understand
why this won't work:

I'm starting with a simple test, so no real code to speak of, but this
is what I'm doing.

A simple line chart, with three series. I have three combobox's. Each
series calls a unique dataPrivider (works fine when placing static
values) based on the selection in the combobox;



I have a label to provide a visual output of the cb selection in the
app and it is correct. I thought this would be the same as statically
typing in the value, but it appears the chart is not redrawing, yet
many on the examples I've found in the Adobe pages make similar
adjustments in a similar manner, no method to redraw. Very confusing.

So, can anyone point me in the direction of a sample where you can
change a charts dataProvider and yField within the application via a
combobox selections?

Thanks,



[flexcoders] Re: Custom Component: Instantiation attempted on a non-constructor.

2008-08-19 Thread bryancostanich
there's no skin defined for this project. and there's no trackSkin class. 

and i'm curious, why do you suppose you got a different error?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> My version of the code says that it died creating the track, not the
> Slider itself which is defined by the "trackSkin" style.  Maybe that's
> not a valid class
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bryancostanich
> Sent: Tuesday, August 19, 2008 10:50 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Custom Component: Instantiation attempted on a
> non-constructor.
> 
>  
> 
> here's the stack trace, it's all internal stuff, so i didn't post:
> TypeError: Error #1007: Instantiation attempted on a non-constructor.
> at
> mx.controls.sliderClasses::Slider/createBackgroundTrack()[E:\dev\3.0.x\f
> rameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:167
> 2]
> at
> mx.controls.sliderClasses::Slider/createChildren()[E:\dev\3.0.x\framewor
> ks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1224]
> at
> mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\frame
> work\src\mx\core\UIComponent.as:5262]
> at
> mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAd
> ded 
> ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
> :5159]
> at
> mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdde
> d 
> ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3
> 297]
> at
> mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framewo
> rk\src\mx\core\Container.as:2210]
> at
> mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework
> \src\mx\core\Container.as:2140]
> at
> mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\framewor
> ks\projects\framework\src\mx\core\Container.as:3673]
> at
> mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.0.x\framew
> orks\projects\framework\src\mx\core\Container.as:3485]
> at
> mx.core::Container/createChildren()[E:\dev\3.0.x\frameworks\projects\fra
> mework\src\mx\core\Container.as:2587]
> at
> mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\frame
> work\src\mx\core\UIComponent.as:5262]
> at
> mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framewo
> rk\src\mx\core\Container.as:2524]
> at
> mx.core::Application/initialize()[E:\dev\3.0.x\frameworks\projects\frame
> work\src\mx\core\Application.as:847]
> at
> Test_InstantiationBug/initialize()[C:\[devlocal]\[flex]\src\Test_Instant
> iationBug.mxml:0]
> at
> mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::c
> hildAdded 
> ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
> ger.as:1625]
> at
> mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frame
> works\projects\framework\src\mx\managers\SystemManager.as:2482]
> at
> mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::d
> ocFrameHandler
> 
> ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
> ger.as:2330]
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > That doesn't make sense. 
> > 
> > 
> > 
> > When you get a runtime exception always use a debug build and post the
> > entire stacktrace.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of bryancostanich
> > Sent: Monday, August 18, 2008 2:14 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Custom Component: Instantiation attempted on a
> > non-constructor.
> > 
> > 
> > 
> > Hi all, i've created an empty class that extends the Slider control.
> > it compiles fine, but when i run it, i get the following error: Error
> > #1007: Instantiation attempted on a non-constructor.
> > 
> > this is how i'm calling it:
> > http://www.adobe.com/2006/mxml
>  
> >  > "
> > xmlns:tix="com.tixsmart.flex.controls.*" >
> >  
> > 
> > here's my code:
> > package com.tixsmart.flex.controls
> > {
> > import mx.controls.sliderClasses.Slider;
> > 
> > public class SeekBar extends Slider
> > {
> > protected var _trackWidth:Number = 1;
> > 
> > public function SeekBar()
> > {
> > //TODO: implement function
> > super();
> > }
> > }
> > }
> >
>




RE: [flexcoders] Combobox with multiple data sources?

2008-08-19 Thread Alex Harui
http://blogs.adobe.com/aharui/2008/03/custom_ilists_combobox_prompts.htm
l

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Blair Cox
Sent: Tuesday, August 19, 2008 4:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Combobox with multiple data sources?

 

Thanks Alex, do you have a url for that one? Couldn't locate via search
on your blog.

Cheers,

-- 
Blair 





From: Alex Harui <[EMAIL PROTECTED]>
Reply-To: 
Date: Mon, 18 Aug 2008 21:28:36 -0700
To: 
Conversation: [flexcoders] Combobox with multiple data sources?
Subject: RE: [flexcoders] Combobox with multiple data sources?

 
 

PromptArrayList on my blog?
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of cox.blair
Sent: Monday, August 18, 2008 12:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox with multiple data sources?


I've been reading the blogs all afternoon and haven't found an answer
to this (probably because it's really simple), but what I want to do
is populate a combobox from two data sources. One will be from a small
array in the mxml, the other will be from the database and dependant
on what the user has entered, but they must appear in the same combobox.

I've been looking at hierarchical data providers and GroupCollections,
but just can't see how to fit it together for my use.

Thanks,

 


 



RE: [flexcoders] DragManager gets stuck in dragging state even when mouse button is up.

2008-08-19 Thread Alex Harui
There's a semi document endDrag() method

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug Sharp
Sent: Monday, August 18, 2008 10:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DragManager gets stuck in dragging state even when
mouse button is up.

 

Is there any way to force the DragManager to stop dragging? I am using
it to drag objects within my program and sometimes after a drag it gets
into a state in which the mouse button is not pressed but
DragManager.isDragging == true.

Since .isDragging is read-only I can't just set it true. I tried passing
null's to doDrag but that doesn't work.

Help! I'm trying to get my geek game out the door and players need to
drag chips to program their ChipWits    . 

 



RE: [flexcoders] SecurityError: Error #2060: Security sandbox violation

2008-08-19 Thread Alex Harui
There's a recent thread that has the asnwer

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of windsail05
Sent: Monday, August 18, 2008 8:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SecurityError: Error #2060: Security sandbox
violation

 

Struggling to figure out this problem. When I run a project using an
External Interface from the default workspace it runs fine, but when I
try to create it in a new workspace or run it from a different
location it fails with this error:

SecurityError: Error #2060: Security sandbox violation

I have read all the other posts and they do not seem to address the
problem I am having

 



RE: [flexcoders] Question about isItemSelected

2008-08-19 Thread Alex Harui
Data is a dataprovider item

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, August 19, 2008 5:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about isItemSelected

 

dg.isItemSelected(data) What exactly data is? I am changing dg's 
underlying data in code, but I am checking it in updateDisplayList with 
dg.isItemSelected(data) and data is not changed.
Any idea?

Thanks

 



RE: [flexcoders] Re: Event Propagation

2008-08-19 Thread Alex Harui
If the form calls addevnetlistener on the app in capture, it will hear
it from the Menu

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ron_mori
Sent: Tuesday, August 19, 2008 9:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Event Propagation

 

Alex,

Could you be more specific? 'Listen' ala .addEventListener? If so
does that mean Main dispatches a new/different event than AppMenuEvent?

For the record my current implementation is a AppMenuDispatcher
singleton (built at the top of the component tree) that
accepts/registers listeners, and fires the listeners menuEvent()
method when it receives an AppMenuEvent.

Thanks in advanced.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Form should listen to main for the event.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of ron_mori
> Sent: Monday, August 18, 2008 4:08 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Event Propagation
> 
> 
> 
> Let me clarify my component tree
> My application component tree is roughly:
> 
> App
> 1 main container
> 1.1 header container (1st sub-container in main)
> 1.1.1 menu component 
> 1.2 body container (2nd sub-container in main)
> 1.2.1 form component
> 
> Then the user action / event response.
> 1. User selects 'Save' from menu.
> 2. Menu fires AppMenuEvent type doValidation.
> 
> I want the form to react to the event and validate the form.
> 
> The form has registered as a listener for the event, but since that
> component is parallel on the application component tree to the menu
> component, the event propagation that bubbles UP that component tree
> will not reach the form.
> 
> I think the other suggestion is the way to go: have the common parent
> component (in my case the 'main container') listen for the
> AppMenuEvent, then react by calling the validation method in the form.
> This will require some chain of methods to reach down to the form -
> body container has validate() method to call the form component
> validate() method.
> 
> A bit kludge when you have a number of components to work down through
> to get to the form validation method, but it's the only idea I have so
> far.
> 
> other suggestions are welcome.
> thanks.
>

 



[flexcoders] Re: Debug Termination

2008-08-19 Thread Mike Morearty
I can explain what is going on here: On some combinations of OS+browser, Flex 
Builder 
can "terminate" the app, and on others it can't.  For example:

- On both Windows and Mac, if you debug an AIR app, then when you click 
Terminate, Flex 
Builder can terminate the app.

- On Windows with Internet Explorer, Flex Builder can kill the iexplore.exe 
process that it 
had launched.  However, IIRC there are some edge cases where this doesn't work.

- On both Windows and Mac with Firefox, there is no reliable way to terminate 
the app.  
Killing firefox.exe doesn't work, because if Firefox had already been running 
before you 
launched your app, then the old instance of Firefox -- which probably also has 
a bunch of 
other tabs open -- will end up running the app, and it would be very uncool to 
kill that 
process.  And Firefox does not provide a way for me to just programmatically 
close one 
particular tab.

- On Mac with Safari, when you click Terminate, we use AppleScript to tell the 
browser to 
close the tab.

So that's why you see inconsistent behavior.

 - Mike Morearty, Flex Builder team


--- In flexcoders@yahoogroups.com, "Howard Fore" <[EMAIL PROTECTED]> wrote:
>
> Sorry, that's what I meant
> 
> On Tue, Aug 19, 2008 at 11:18 AM, Daniel Freiman <[EMAIL PROTECTED]>wrote:
> 
> >  No, I'd expect the detach to simply stop the debugger and have the app
> > keep running.  I'd expect the the terminate button to stop your app somehow.
> >
> 
> -- 
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>





[flexcoders] Re: getChildByName using it to get the value of a textbox

2008-08-19 Thread Jason B
is this what you mean i've tried to access but i still get a #1009 error


public var dynamicallyCreatedComponents:Object = {};


   public function loaditems(){

create_text = new TextInput();
create_text.percentWidth = 100;
create_text.id = "test";
create_text.text =create_text.id;
  dynamicallyCreatedComponents["test"] = create_text; 
dataBox.addChild(create_text);  

  }

   public function saveall(){

 var t:TextInput = dynamicallyCreatedComponents["test"];
try{
Alert.show( 
dynamicallyCreatedComponents["test"].text);
}catch(errObject:Error){
Alert.show(errObject.message);
}   




  }


--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Declare an instance variable of type Object or Dictionary for storing
> named references to dynamically created components:
> 
>  
> 
> public var dynamicallyCreatedComponents:Object = {};
> 
>  
> 
> In a method where you create a component at runtime, do
> 
>  
> 
> var b:Button = new Button();
> 
> b.label = "OK";
> 
> dynamicallyCreatedComponents["okButton"] = b;
> 
>  
> 
> Later you can access this button as follows:
> 
>  
> 
> dynamicallyCreatedComponents["okButton"]
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  



RE: [flexcoders] Optimize with callLater() -- help?

2008-08-19 Thread Kyle Quevillon
You might want to look at Alex Harui's pseudo threading example:
http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html

-Kyle

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Blake 
Barrett
Sent: Tuesday, August 19, 2008 1:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Optimize with callLater() -- help?

I'm still fumbling my way through framiliarizing myself with callLater, but 
from what I've been able to do with it, it works perfectly.
As I understand it, you can call a method if you don't have any parameters in 
it like callLater( doSomething ); but if you can't do that you can throw an 
inline function in there like this:

callLater ( Function () : void { doSomething( firstParameter, secondParameter, 
thirdParam[i], whateverElseYouWantToUse ); } );

That may be considered ghetto, but it works for me.

Blake


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David 
Ham
Sent: Tuesday, August 19, 2008 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Optimize with callLater() -- help?

I'm building a room layout application, and one of its features is
that you can create a PDF printout of your project. I'm using AlivePDF
to create the PDFs in the Flash player.

The app needs to create PDFs of many pages, and each page takes awhile
to create. what I just started seeing today is that it times out
before it can create all the pages.

My general routine is that I have a print view class that's a
container for the pages. Each room in the project gets a page, so for
each room, I set the print view to show that room, invalidate the view
with validateNow(), create the image, and pass it into the PDF.

I figure I can cut the createPrintout() method into a few different
methods, but for whichever method calls these smaller ones, how do I
keep it from timing out before all the pages are created? How can I
use callLater() to spread this work out so that this process (which by
its nature takes awhile) doesn't time out?

Many thanks for any advice you can offer,

OK
DAH



RE: [flexcoders] Optimize with callLater() -- help?

2008-08-19 Thread Blake Barrett
I'm still fumbling my way through framiliarizing myself with callLater,
but from what I've been able to do with it, it works perfectly.
As I understand it, you can call a method if you don't have any
parameters in it like callLater( doSomething ); but if you can't do that
you can throw an inline function in there like this:
 
callLater ( Function () : void { doSomething( firstParameter,
secondParameter, thirdParam[i], whateverElseYouWantToUse ); } );
 
That may be considered ghetto, but it works for me.
 
Blake



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Ham
Sent: Tuesday, August 19, 2008 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Optimize with callLater() -- help?



I'm building a room layout application, and one of its features is
that you can create a PDF printout of your project. I'm using AlivePDF
to create the PDFs in the Flash player. 

The app needs to create PDFs of many pages, and each page takes awhile
to create. what I just started seeing today is that it times out
before it can create all the pages.

My general routine is that I have a print view class that's a
container for the pages. Each room in the project gets a page, so for
each room, I set the print view to show that room, invalidate the view
with validateNow(), create the image, and pass it into the PDF.

I figure I can cut the createPrintout() method into a few different
methods, but for whichever method calls these smaller ones, how do I
keep it from timing out before all the pages are created? How can I
use callLater() to spread this work out so that this process (which by
its nature takes awhile) doesn't time out?

Many thanks for any advice you can offer,

OK
DAH



 


[flexcoders] LCDS ds-console WAR

2008-08-19 Thread Geoffrey
Does anyone use it?  What does it do?  I deployed it, and can run it, 
but I'm getting NPE errors when I select the other tabs.  Also, there 
are no Applications listed in my ComboBox.  I have a LCDS application 
up and running on my server, so I'd expect to see something listed.

Here's the error I get:

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at console::ConsoleManager/activateListener()
at console/setCurrentTab()
at console/__consoleNavigator_change()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.containers::ViewStack/dispatchChangeEvent()
at mx.containers::ViewStack/commitProperties()
at mx.containers::TabNavigator/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()



RE: Re[flexcoders] moving DataGrid's last(empty) row

2008-08-19 Thread Alex Harui
Can you post a small example?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manu Dhanda
Sent: Tuesday, August 19, 2008 9:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: Re[flexcoders] moving DataGrid's last(empty) row

 


I tried setting the rowCount equal to dataprovider.length. (not
length+1, as
header also counted in rowCount, so length will actually be a row less
thn
the dataprovider's length.)

But it doesn't work and give me the same result.

Any other way to get the required result??

Thanks.

Alex Harui wrote:
> 
> I think there's a known issue with DG where it does that. What happens
> if you subtract one before setting rowCount?
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Manu Dhanda
> Sent: Monday, August 18, 2008 6:33 PM
> To: flexcoders@yahoogroups.com  
> Subject: Re[flexcoders] moving DataGrid's last(empty) row
> 
> 
> 
> 
> Hii,
> 
> How can I remove the last row from a dataGrid, that is added by
default
> and
> have no data.
> Actually, am working on a custom component (a simple calendar) and
based
> on
> the month, I need to show only 5(OR 6) rows. But, default DataGrid
> behavior
> always add one additional row to it i.e. 6(OR 7) correspondingly.
> 
> Can anyone point me to the exact solution for this issue.
> 
> Thanks.
> -- 
> View this message in context:
>
http://www.nabble.com/Removing-DataGrid%27s-last%28empty%29-row-tp190426
 
> 45p19042645.html
>
 
> 645p19042645.html> 
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Removing-DataGrid%27s-last%28empty%29-row-tp190426
45p19053858.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Optimize with callLater() -- help?

2008-08-19 Thread David Ham
I'm building a room layout application, and one of its features is
that you can create a PDF printout of your project. I'm using AlivePDF
to create the PDFs in the Flash player. 

The app needs to create PDFs of many pages, and each page takes awhile
to create. what I just started seeing today is that it times out
before it can create all the pages.

My general routine is that I have a print view class that's a
container for the pages. Each room in the project gets a page, so for
each room, I set the print view to show that room, invalidate the view
with validateNow(), create the image, and pass it into the PDF.

I figure I can cut the createPrintout() method into a few different
methods, but for whichever method calls these smaller ones, how do I
keep it from timing out before all the pages are created? How can I
use callLater() to spread this work out so that this process (which by
its nature takes awhile) doesn't time out?

Many thanks for any advice you can offer,

OK
DAH



RE: [flexcoders] Re: how do you check the state during updateDisplayList()?

2008-08-19 Thread Alex Harui
There's an mx_internal phase property that might help.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bryancostanich
Sent: Tuesday, August 19, 2008 11:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how do you check the state during
updateDisplayList()?

 

except, as i pointed out in my post, i'm not looking for the skin
class names (as that link talks about). i just want to know what the
state of it is. if you want to do it like in the article, you have to
build a skin class. it would seem to me that you could get the state
somehow without doing that. but the "name" property is just the
instance name if you don't add the skin class.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Thumb is a Button, so the same rules should apply.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of bryancostanich
> Sent: Monday, August 18, 2008 4:08 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] how do you check the state during
> updateDisplayList()?
> 
> 
> 
> hi all,
> 
> i'm creating a custom thumbSlider for a slider control, and in my
> updateDisplayList() method, i want to check to see if it's mouseover,
> mousedown, etc. how do i check to see what state it is in?
> 
> i know you can do it if you're using custom skins with the name
> property, as shown here:
>
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
 
> \
> p.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,
>
 
> lp.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,> but i
> don't
> want to do it based on the skin, i just want to do a simple state
check.
> 
> thanks.
> -b
>

 



RE: [flexcoders] Re: Custom Component: Instantiation attempted on a non-constructor.

2008-08-19 Thread Alex Harui
My version of the code says that it died creating the track, not the
Slider itself which is defined by the "trackSkin" style.  Maybe that's
not a valid class

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bryancostanich
Sent: Tuesday, August 19, 2008 10:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Component: Instantiation attempted on a
non-constructor.

 

here's the stack trace, it's all internal stuff, so i didn't post:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at
mx.controls.sliderClasses::Slider/createBackgroundTrack()[E:\dev\3.0.x\f
rameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:167
2]
at
mx.controls.sliderClasses::Slider/createChildren()[E:\dev\3.0.x\framewor
ks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1224]
at
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\frame
work\src\mx\core\UIComponent.as:5262]
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAd
ded 
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:5159]
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdde
d 
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3
297]
at
mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framewo
rk\src\mx\core\Container.as:2210]
at
mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework
\src\mx\core\Container.as:2140]
at
mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\framewor
ks\projects\framework\src\mx\core\Container.as:3673]
at
mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.0.x\framew
orks\projects\framework\src\mx\core\Container.as:3485]
at
mx.core::Container/createChildren()[E:\dev\3.0.x\frameworks\projects\fra
mework\src\mx\core\Container.as:2587]
at
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\frame
work\src\mx\core\UIComponent.as:5262]
at
mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framewo
rk\src\mx\core\Container.as:2524]
at
mx.core::Application/initialize()[E:\dev\3.0.x\frameworks\projects\frame
work\src\mx\core\Application.as:847]
at
Test_InstantiationBug/initialize()[C:\[devlocal]\[flex]\src\Test_Instant
iationBug.mxml:0]
at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::c
hildAdded 
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
ger.as:1625]
at
mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frame
works\projects\framework\src\mx\managers\SystemManager.as:2482]
at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::d
ocFrameHandler

()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
ger.as:2330]

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That doesn't make sense. 
> 
> 
> 
> When you get a runtime exception always use a debug build and post the
> entire stacktrace.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of bryancostanich
> Sent: Monday, August 18, 2008 2:14 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Custom Component: Instantiation attempted on a
> non-constructor.
> 
> 
> 
> Hi all, i've created an empty class that extends the Slider control.
> it compiles fine, but when i run it, i get the following error: Error
> #1007: Instantiation attempted on a non-constructor.
> 
> this is how i'm calling it:
> http://www.adobe.com/2006/mxml
 
>  > "
> xmlns:tix="com.tixsmart.flex.controls.*" >
>  
> 
> here's my code:
> package com.tixsmart.flex.controls
> {
> import mx.controls.sliderClasses.Slider;
> 
> public class SeekBar extends Slider
> {
> protected var _trackWidth:Number = 1;
> 
> public function SeekBar()
> {
> //TODO: implement function
> super();
> }
> }
> }
>

 



[flexcoders] Re: how do you check the state during updateDisplayList()?

2008-08-19 Thread bryancostanich
except, as i pointed out in my post, i'm not looking for the skin
class names (as that link talks about). i just want to know what the
state of it is. if you want to do it like in the article, you have to
build a skin class. it would seem to me that you could get the state
somehow without doing that.  but the "name" property is just the
instance name if you don't add the skin class.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Thumb is a Button, so the same rules should apply.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bryancostanich
> Sent: Monday, August 18, 2008 4:08 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] how do you check the state during
> updateDisplayList()?
> 
>  
> 
> hi all,
> 
> i'm creating a custom thumbSlider for a slider control, and in my
> updateDisplayList() method, i want to check to see if it's mouseover,
> mousedown, etc. how do i check to see what state it is in?
> 
> i know you can do it if you're using custom skins with the name
> property, as shown here:
> http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
> \
> p.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,
>  lp.htm?context=LiveDocs_Book_Parts&file=skinning_071_11.html,>  but i
> don't
> want to do it based on the skin, i just want to do a simple state check.
> 
> thanks.
> -b
>




RE: [flexcoders] Re: getChildByName using it to get the value of a textbox

2008-08-19 Thread Gordon Smith
Declare an instance variable of type Object or Dictionary for storing
named references to dynamically created components:

 

public var dynamicallyCreatedComponents:Object = {};

 

In a method where you create a component at runtime, do

 

var b:Button = new Button();

b.label = "OK";

dynamicallyCreatedComponents["okButton"] = b;

 

Later you can access this button as follows:

 

dynamicallyCreatedComponents["okButton"]

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Tuesday, August 19, 2008 7:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: getChildByName using it to get the value of a
textbox

 

thanks Tracy could you provide an example of how this is done,
examples always help others out, or tell me what i should be searching
for to find an example

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> A good solution to that issue is to maintian a structure of references
> pointing to each dynamically created component.
> 
> 
> 
> I personally like an Associative Array/Object/Hashtable. This is way
> more positive than attempting to loop through the DOM.
> 
> 
> 
> There will be plenty examples available.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Jason B
> Sent: Monday, August 18, 2008 5:47 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: getChildByName using it to get the value of
a
> textbox
> 
> 
> 
> Because the items are not in MXML its in actionscript which
> dynamically creates the items for my form from a database and i want
> to dynamically loop the text box's so i can then save the data back to
> the database.
> you cant refer to a ID since the components are created at runtime
> 
> --- In flexcoders@yahoogroups.com


> , "Gordon Smith"  wrote:
> >
> > Why are you trying to use getChildByName to get a reference to a
> > component? If you give it an 'id' attribute in MXML, you can then
> refer
> > to it by that id.
> > 
> > 
> > 
> > Gordon Smith
> > 
> > Adobe Flex SDK Team
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of Jason B
> > Sent: Monday, August 18, 2008 8:07 AM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] getChildByName using it to get the value of a
> > textbox
> > 
> > 
> > 
> > when using getchildbyname variable i've not been able to get the
value
> > can someone please post an example of how to get a value using
> > getChildByName.
> > 
> > var test:DisplayObject = this.getChildByName("inputtext" + i);
> >
>

 



[flexcoders] File upload + Basic Authentication - please, help!!!

2008-08-19 Thread Dmitry Miller
Hello, everyone

I am trying to implement file upload and authenticate myself via basic
authentication. However, when I try to add "Authorization" header into
underlying URLRequest object, Flash Player seems to ignore my code and
proceed without this header. I am using Flash version 9.0.124 which,
according to the documentation, allows tampering with "Authorization"
header

Is Basic Auth support possible for file upload? and if it is, how do I
make it work?

Thanks,

--- Dmitry



[flexcoders] Re: Debug Termination

2008-08-19 Thread nathanpdaniel
Ok - so right now - when I click the red square in the Debug panel 
(which has Xs, play, pause, stop and detatch(?-not sure what the last 
is)) - it ONLY detatches - in Flex 3 Beta - hitting the red square 
would shut down the browser window.
I also tried the red square (terminate) in the Console panel - still 
only detatched.
I heard this could be a bug - is it?  Or is there some setting 
somewhere that needs to be changed/updated?


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> There's also the red terminate button on the console tab; that 
sometimes
> is mistaken for the debug terminate button.  I always have to check 
to
> make sure that there is a green run button next to it, to make sure 
that
> it's the right one.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Daniel Freiman" 
> wrote:
> >
> > I haven't given it much thought on how it should work or if 
closing
> the tab
> > is a good idea/feasible. But the terminate button doesn't 
terminate in
> some
> > cases. That's all i was getting at.
> >
> > On Tue, Aug 19, 2008 at 11:30 AM, Howard Fore howard.fore@ wrote:
> >
> > > Sorry, that's what I meant
> > >
> > > On Tue, Aug 19, 2008 at 11:18 AM, Daniel Freiman [EMAIL PROTECTED]:
> > >
> > >> No, I'd expect the detach to simply stop the debugger and have 
the
> app
> > >> keep running. I'd expect the the terminate button to stop your 
app
> somehow.
> > >>
> > >
> > > --
> > > Howard Fore, howard.fore@
> > > "The universe tends toward maximum irony. Don't push it." - Jeff
> Atwood
> > >
> > >
> >
>




Re: [flexcoders] Flex Builder 3.0.1 and Eclipse 3.4 classic not working together

2008-08-19 Thread Douglas Knudsen
jazzamin!  I have not tested all functionality yet, I do have work to do
after all, but here is how to get FB 3.0.1 into Eclipse 3.4 Ganymede.  These
are steps using what used to be called a extension point to install plugins
externally, a nicer way to enable easier Eclispe upgrades.

1) Help > Software Updates
2) Available Software
3) Add SIte > Local
4) point to /com.adobe.flexbuilder.update.site
5) In the install dialog following this, you should see 4 features available
for installation, choose them all
6) mash Install and accept the agreements and KACHOW!

note that I am using Vista and have no time to check this under Ubuntu and
also I have no sour Apples around :)

DK

On Tue, Aug 19, 2008 at 11:38 AM, Douglas Knudsen
<[EMAIL PROTECTED]>wrote:

> http://www.adobe.com/devnet/flex/articles/sdk3_fb301.html
>
> 3.0.1 FB is supposed to support Eclipse 3.4 now.  FWIW, I too saw the
> required compatibility notices from Eclipse 3.4 that bombed out.  I was
> trying to install the plugin by pointing Eclipse 3.4 to the *C:\Program
> Files\Adobe\Flex Builder 3 Plug-in *directory ala external extension.
> Have the Ganymede all in one JEE package.
>
> DK
>
>
> On Tue, Aug 19, 2008 at 11:13 AM, Howard Fore <[EMAIL PROTECTED]>wrote:
>
>>   Is FB supposed to work with 3.4? I thought it was 3.2/3.3 only.
>>
>> On Tue, Aug 19, 2008 at 11:08 AM, stephen.smithstone <
>> [EMAIL PROTECTED]> wrote:
>>
>>> I downloaded a fresh copy of classic 3.4 and the new FB 3.0.1 from the
>>> adobe trail page, the install was successful, how ever there is no
>>> flex development , debug , profiler perspectives available in the menu
>>> any one got this to work in the error log it refers to a
>>> compatibleRequired to the osgi.bundle , but im not sure where to get
>>> that from any help will be good cheers
>>
>>
>>
>> --
>> Howard Fore, [EMAIL PROTECTED]
>> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>>  
>>
>
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Extracting chart source for 3.0.1

2008-08-19 Thread Matt Chotin
Looks like we may not extract charting source automatically in the new SDK.

Instructions can be found here:
http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.html

Matt



RE: Re[flexcoders] moving DataGrid's last(empty) row

2008-08-19 Thread Manu Dhanda

I tried setting the rowCount equal to dataprovider.length. (not length+1, as
header also counted in rowCount, so length will actually be a row less thn
the dataprovider's length.)

But it doesn't work and give me the same result.

Any other way to get the required result??

Thanks.


Alex Harui wrote:
> 
> I think there's a known issue with DG where it does that.  What happens
> if you subtract one before setting rowCount?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Manu Dhanda
> Sent: Monday, August 18, 2008 6:33 PM
> To: flexcoders@yahoogroups.com
> Subject: Re[flexcoders] moving DataGrid's last(empty) row
> 
>  
> 
> 
> Hii,
> 
> How can I remove the last row from a dataGrid, that is added by default
> and
> have no data.
> Actually, am working on a custom component (a simple calendar) and based
> on
> the month, I need to show only 5(OR 6) rows. But, default DataGrid
> behavior
> always add one additional row to it i.e. 6(OR 7) correspondingly.
> 
> Can anyone point me to the exact solution for this issue.
> 
> Thanks.
> -- 
> View this message in context:
> http://www.nabble.com/Removing-DataGrid%27s-last%28empty%29-row-tp190426
> 45p19042645.html
>  645p19042645.html> 
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Removing-DataGrid%27s-last%28empty%29-row-tp19042645p19053858.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: Flexbuilder 3.0.1 Update

2008-08-19 Thread Matt Chotin
Hi Amy,

Assuming you got 3.1 from the auto-updater all of the dataviz components should 
be in there.  It's possible though that the source didn't extract correctly, 
try re-applying your serial number?

Matt


On 8/19/08 6:09 AM, "Amy" <[EMAIL PROTECTED]> wrote:




--- In flexcoders@yahoogroups.com  , Rick 
Winscot <[EMAIL PROTECTED]>
wrote:
>
> Yeah... Uh... If the compiler has lost the link to the sdk... Compile
+
> clean = gaseous emanations.
>
> Rick Winscot

Is there a way to let it keep pointing to the 3.0 SDK for things that
aren't present in the 3.1 SDK?





Re: [flexcoders] Re: Flexbuilder 3.0.1 Update

2008-08-19 Thread Matt Chotin
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email for those where 
auto-updae isn't working


On 8/18/08 7:14 PM, "ntman12001" <[EMAIL PROTECTED]> wrote:




--- In flexcoders@yahoogroups.com  , Rick 
Winscot <[EMAIL PROTECTED]> wrote:
>
> After the auto-updater finished... I pointed at my Flex install
directory,
> then the Eclipse directory and proceeded with install. Post install I
> started up eclipse and all of my projects were pointed to the 3.0 SDK
> (unknown). I had to edit the compiler settings on each project in
order to
> fix it...
>
> Rick Winscot
>
>
> On 8/18/08 5:38 PM, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> >
> >
> >
> > Can you explain how it broke the link to the 3.0 SDK?
> >
> > On 8/18/08 2:35 PM, "Rick Winscot" <[EMAIL PROTECTED]
> >  > wrote:
> >
> > Just a note... Flexbuilder 3.0.1 is out in the frey today. It will
install
> > the Flex 3.1 SDK and may mess up your projects (as it did mine) by
breaking
> > the link on the current 3.0 SDK. Other than that it hasn't
exploded. YAY!
> >
> > Rick Winscot
> >
> >
> >
>
Could someone please paste the link to the FB 3.01 download? Thanks.





Re: [flexcoders] Flexbuilder 3.0.1 Update

2008-08-19 Thread Matt Chotin
Hmm, but the 3.0 SDK is still present?  You just need to manually update the 
pointers to it?

Matt


On 8/18/08 4:06 PM, "Rick Winscot" <[EMAIL PROTECTED]> wrote:




After the auto-updater finished... I pointed at my Flex install directory, then 
the Eclipse directory and proceeded with install. Post install I started up 
eclipse and all of my projects were pointed to the 3.0 SDK (unknown). I had to 
edit the compiler settings on each project in order to fix it...

Rick Winscot


On 8/18/08 5:38 PM, "Matt Chotin" <[EMAIL PROTECTED]> wrote:




Can you explain how it broke the link to the 3.0 SDK?

On 8/18/08 2:35 PM, "Rick Winscot" <[EMAIL PROTECTED] 
 > wrote:

Just a note... Flexbuilder 3.0.1 is out in the frey today. It will install
the Flex 3.1 SDK and may mess up your projects (as it did mine) by breaking
the link on the current 3.0 SDK. Other than that it hasn't exploded. YAY!

Rick Winscot








Re: [flexcoders] How to upgrade Flex 3 to 3.0.1?

2008-08-19 Thread Matt Chotin
There were some bugs on the Windows version of auto-update but we think we 
cleared the Akamai caches and things should work now.

Matt


On 8/19/08 8:32 AM, "Howard Fore" <[EMAIL PROTECTED]> wrote:




I see the AdobeUpdater.dll in my FlexBuilder directory but the menu item 
doesn't do anything for me...

On Tue, Aug 19, 2008 at 11:18 AM, Mike Chabot <[EMAIL PROTECTED]> wrote:
I don't have the Adobe Updater program installed. I'm guessing that is
why the Search For Flex Builder Updates command does nothing for me.




[flexcoders] Re: Event Propagation

2008-08-19 Thread ron_mori
Alex,

Could you be more specific?  'Listen' ala .addEventListener?  If so
does that mean Main dispatches a new/different event than AppMenuEvent?

For the record my current implementation is a AppMenuDispatcher
singleton (built at the top of the component tree) that
accepts/registers listeners, and fires the listeners menuEvent()
method when it receives an AppMenuEvent.

Thanks in advanced.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Form should listen to main for the event.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ron_mori
> Sent: Monday, August 18, 2008 4:08 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Event Propagation
> 
>  
> 
> Let me clarify my component tree
> My application component tree is roughly:
> 
> App
> 1 main container
> 1.1 header container (1st sub-container in main)
> 1.1.1 menu component 
> 1.2 body container (2nd sub-container in main)
> 1.2.1 form component
> 
> Then the user action / event response.
> 1. User selects 'Save' from menu.
> 2. Menu fires AppMenuEvent type doValidation.
> 
> I want the form to react to the event and validate the form.
> 
> The form has registered as a listener for the event, but since that
> component is parallel on the application component tree to the menu
> component, the event propagation that bubbles UP that component tree
> will not reach the form.
> 
> I think the other suggestion is the way to go: have the common parent
> component (in my case the 'main container') listen for the
> AppMenuEvent, then react by calling the validation method in the form.
> This will require some chain of methods to reach down to the form -
> body container has validate() method to call the form component
> validate() method.
> 
> A bit kludge when you have a number of components to work down through
> to get to the form validation method, but it's the only idea I have so
> far.
> 
> other suggestions are welcome.
> thanks.
>




[flexcoders] Re: Debug Termination

2008-08-19 Thread Tim Hoff

There's also the red terminate button on the console tab; that sometimes
is mistaken for the debug terminate button.  I always have to check to
make sure that there is a green run button next to it, to make sure that
it's the right one.

-TH

--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]>
wrote:
>
> I haven't given it much thought on how it should work or if closing
the tab
> is a good idea/feasible. But the terminate button doesn't terminate in
some
> cases. That's all i was getting at.
>
> On Tue, Aug 19, 2008 at 11:30 AM, Howard Fore [EMAIL PROTECTED] wrote:
>
> > Sorry, that's what I meant
> >
> > On Tue, Aug 19, 2008 at 11:18 AM, Daniel Freiman [EMAIL PROTECTED]:
> >
> >> No, I'd expect the detach to simply stop the debugger and have the
app
> >> keep running. I'd expect the the terminate button to stop your app
somehow.
> >>
> >
> > --
> > Howard Fore, [EMAIL PROTECTED]
> > "The universe tends toward maximum irony. Don't push it." - Jeff
Atwood
> >
> >
>





Re: [flexcoders] Debug Termination

2008-08-19 Thread Daniel Freiman
I haven't given it much thought on how it should work or if closing the tab
is a good idea/feasible.  But the terminate button doesn't terminate in some
cases.  That's all i was getting at.

On Tue, Aug 19, 2008 at 11:30 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   Sorry, that's what I meant
>
> On Tue, Aug 19, 2008 at 11:18 AM, Daniel Freiman <[EMAIL PROTECTED]>wrote:
>
>>  No, I'd expect the detach to simply stop the debugger and have the app
>> keep running.  I'd expect the the terminate button to stop your app somehow.
>>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>


Re: [flexcoders] Flex Builder 3.0.1 and Eclipse 3.4 classic not working together

2008-08-19 Thread Douglas Knudsen
http://www.adobe.com/devnet/flex/articles/sdk3_fb301.html

3.0.1 FB is supposed to support Eclipse 3.4 now.  FWIW, I too saw the
required compatibility notices from Eclipse 3.4 that bombed out.  I was
trying to install the plugin by pointing Eclipse 3.4 to the *C:\Program
Files\Adobe\Flex Builder 3 Plug-in *directory ala external extension.  Have
the Ganymede all in one JEE package.

DK

On Tue, Aug 19, 2008 at 11:13 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   Is FB supposed to work with 3.4? I thought it was 3.2/3.3 only.
>
> On Tue, Aug 19, 2008 at 11:08 AM, stephen.smithstone <
> [EMAIL PROTECTED]> wrote:
>
>> I downloaded a fresh copy of classic 3.4 and the new FB 3.0.1 from the
>> adobe trail page, the install was successful, how ever there is no
>> flex development , debug , profiler perspectives available in the menu
>> any one got this to work in the error log it refers to a
>> compatibleRequired to the osgi.bundle , but im not sure where to get
>> that from any help will be good cheers
>
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] How to upgrade Flex 3 to 3.0.1?

2008-08-19 Thread Howard Fore
I see the AdobeUpdater.dll in my FlexBuilder directory but the menu item
doesn't do anything for me...

On Tue, Aug 19, 2008 at 11:18 AM, Mike Chabot <[EMAIL PROTECTED]> wrote:

> I don't have the Adobe Updater program installed. I'm guessing that is
> why the Search For Flex Builder Updates command does nothing for me.
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Debug Termination

2008-08-19 Thread Howard Fore
Sorry, that's what I meant

On Tue, Aug 19, 2008 at 11:18 AM, Daniel Freiman <[EMAIL PROTECTED]>wrote:

>  No, I'd expect the detach to simply stop the debugger and have the app
> keep running.  I'd expect the the terminate button to stop your app somehow.
>

-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] How to upgrade Flex 3 to 3.0.1?

2008-08-19 Thread Mike Chabot
The Flex updater Web page hasn't yet been updated with the new download links
http://www.adobe.com/support/flex/downloads_updaters.html

I don't have the Adobe Updater program installed. I'm guessing that is
why the Search For Flex Builder Updates command does nothing for me.

-Mike Chabot

On Tue, Aug 19, 2008 at 10:54 AM, Daniel Freiman <[EMAIL PROTECTED]> wrote:
> (At least on Windows) the Adobe Updater will take care of it.
>
> You can force the Updater to run in Flex Builder:
> Help Menu -> Search For Flex Builder Updates...
>
> - Daniel Freiman
>
> On Tue, Aug 19, 2008 at 10:45 AM, markflex2007 <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi,
>>
>> Flex Builder 3.0.1 come out. I want to know how to upgrade to it from
>> Flex 3.0.
>>
>> any idea?
>>
>> Thank you for your help.
>>
>> Thanks
>>
>> Mark
>>
>
> 


Re: [flexcoders] Debug Termination

2008-08-19 Thread Daniel Freiman
No, I'd expect the detach to simply stop the debugger and have the app keep
running.  I'd expect the the terminate button to stop your app somehow.

- Daniel Freiman

On Tue, Aug 19, 2008 at 11:12 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   You were expecting the detach to close the tab in the browser if it
> launched it?
>
> On Tue, Aug 19, 2008 at 11:09 AM, Daniel Freiman <[EMAIL PROTECTED]>wrote:
>
>>  Yeah, those are them.  But the terminate often doesn't work and does a
>> detach instead.  If flex builder launched a browser, terminate will close
>> the browser, thus terminating the app.  If flex builder launches a tab
>> within a browser, the terminate button only detaches.  I never really
>> thought about it before.  Sounds like a bug to me.
>>
>
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>


Re: [flexcoders] Flex Builder 3.0.1 and Eclipse 3.4 classic not working together

2008-08-19 Thread Howard Fore
Is FB supposed to work with 3.4? I thought it was 3.2/3.3 only.

On Tue, Aug 19, 2008 at 11:08 AM, stephen.smithstone <
[EMAIL PROTECTED]> wrote:

> I downloaded a fresh copy of classic 3.4 and the new FB 3.0.1 from the
> adobe trail page, the install was successful, how ever there is no
> flex development , debug , profiler perspectives available in the menu
> any one got this to work in the error log it refers to a
> compatibleRequired to the osgi.bundle , but im not sure where to get
> that from any help will be good cheers



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Debug Termination

2008-08-19 Thread Howard Fore
You were expecting the detach to close the tab in the browser if it launched
it?

On Tue, Aug 19, 2008 at 11:09 AM, Daniel Freiman <[EMAIL PROTECTED]>wrote:

>  Yeah, those are them.  But the terminate often doesn't work and does a
> detach instead.  If flex builder launched a browser, terminate will close
> the browser, thus terminating the app.  If flex builder launches a tab
> within a browser, the terminate button only detaches.  I never really
> thought about it before.  Sounds like a bug to me.
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Debug Termination

2008-08-19 Thread Daniel Freiman
Yeah, those are them.  But the terminate often doesn't work and does a
detach instead.  If flex builder launched a browser, terminate will close
the browser, thus terminating the app.  If flex builder launches a tab
within a browser, the terminate button only detaches.  I never really
thought about it before.  Sounds like a bug to me.

- Daniel Freiman

On Tue, Aug 19, 2008 at 11:03 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   You mean the little red square in the Debug view? When I hover over it I
> get a tool tip that says "Terminate" and the next one (an N with red circles
> on the up and down strokes) says "Disconnect".
>
> On Tue, Aug 19, 2008 at 10:59 AM, nathanpdaniel <[EMAIL PROTECTED]>wrote:
>
>> Is there a debug termination "button" I've been missing?  I run VS.NET
>> which has debugging where you can TERMINATE the application or DETATCH
>> the application.  All I've ever seen in Flex 3 is a DETATCH.  Or
>> rather - it used to be TERMINATE (I think), now it's just DETATCH.  Did
>> I change a setting accidentally somewhere or is DETATCH the only
>> available way to stop debugging (which still runs the application just
>> without debugging).
>>
>> Thanks,
>> -Nathan
>>
>
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>


[flexcoders] Flex Builder 3.0.1 and Eclipse 3.4 classic not working together

2008-08-19 Thread stephen.smithstone
I downloaded a fresh copy of classic 3.4 and the new FB 3.0.1 from the
adobe trail page, the install was successful, how ever there is no
flex development , debug , profiler perspectives available in the menu
any one got this to work in the error log it refers to a
compatibleRequired to the osgi.bundle , but im not sure where to get
that from any help will be good cheers



Re: [flexcoders] Debug Termination

2008-08-19 Thread Howard Fore
You mean the little red square in the Debug view? When I hover over it I get
a tool tip that says "Terminate" and the next one (an N with red circles on
the up and down strokes) says "Disconnect".

On Tue, Aug 19, 2008 at 10:59 AM, nathanpdaniel <[EMAIL PROTECTED]> wrote:

> Is there a debug termination "button" I've been missing?  I run VS.NET
> which has debugging where you can TERMINATE the application or DETATCH
> the application.  All I've ever seen in Flex 3 is a DETATCH.  Or
> rather - it used to be TERMINATE (I think), now it's just DETATCH.  Did
> I change a setting accidentally somewhere or is DETATCH the only
> available way to stop debugging (which still runs the application just
> without debugging).
>
> Thanks,
> -Nathan
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


[flexcoders] Debug Termination

2008-08-19 Thread nathanpdaniel
Is there a debug termination "button" I've been missing?  I run VS.NET 
which has debugging where you can TERMINATE the application or DETATCH 
the application.  All I've ever seen in Flex 3 is a DETATCH.  Or 
rather - it used to be TERMINATE (I think), now it's just DETATCH.  Did 
I change a setting accidentally somewhere or is DETATCH the only 
available way to stop debugging (which still runs the application just 
without debugging).

Thanks,
-Nathan 



Re: [flexcoders] How to upgrade Flex 3 to 3.0.1?

2008-08-19 Thread Daniel Freiman
(At least on Windows) the Adobe Updater will take care of it.

You can force the Updater to run in Flex Builder:
Help Menu -> Search For Flex Builder Updates...

- Daniel Freiman

On Tue, Aug 19, 2008 at 10:45 AM, markflex2007 <[EMAIL PROTECTED]>wrote:

>   Hi,
>
> Flex Builder 3.0.1 come out. I want to know how to upgrade to it from
> Flex 3.0.
>
> any idea?
>
> Thank you for your help.
>
> Thanks
>
> Mark
>
>  
>


[flexcoders] Re: Accessing two canvas in a viewStack

2008-08-19 Thread Tim Hoff

A little confusing at the end.  You're probably saying that the
component that contains the common controls, between the two ViewStack
child Canvases, isn't persisting it's state; when you switch back and
forth.

If you have controls that are common to both views, perhaps using
ViewStates would work better in this case.  The way that its probably
setup currently, is that you have a seperate instance of the component
in each of the Canvases.  To maintain state for your common component,
just add/remove the other stuff using ViewStates.  Or, you can take the
component out of the ViewStack and layer it on top.

-TH

--- In flexcoders@yahoogroups.com, "pvgirishkumar11"
<[EMAIL PROTECTED]> wrote:
>
> Hello friends,
>
> I run into a problem with viewstack and accesing child components.
> Here is the problem, I have a viewstack which contains 2 canvases both
> contains front and back images of a mobile. And I have an Component
> which contains set of controls which i use on both canvas...
>
> The problem is when i made any changes to first canvas(viewstack
-child
> one)and then i move back to second one and edit it. when again i came
> to access the first one its not working and its doesnt change the last
> used control on that canvas..
>
> pls get me out of this...
>
> Cheers
> GIRISH..
>





[flexcoders] How to upgrade Flex 3 to 3.0.1?

2008-08-19 Thread markflex2007
Hi,

Flex Builder 3.0.1 come out. I want to know how to upgrade to it from
Flex 3.0.

any idea?

Thank you for your help.

Thanks

Mark



[flexcoders] Re: getChildByName using it to get the value of a textbox

2008-08-19 Thread Jason B
thanks Tracy could you provide an example of how this is done,
examples always help others out, or tell me what i should be searching
for to find an example




--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> A good solution to that issue is to maintian a structure of references
> pointing to each dynamically created component.
> 
>  
> 
> I personally like an Associative Array/Object/Hashtable.  This is way
> more positive than attempting to loop through the DOM.
> 
>  
> 
> There will be plenty examples available.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Jason B
> Sent: Monday, August 18, 2008 5:47 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: getChildByName using it to get the value of a
> textbox
> 
>  
> 
> Because the items are not in MXML its in actionscript which
> dynamically creates the items for my form from a database and i want
> to dynamically loop the text box's so i can then save the data back to
> the database.
> you cant refer to a ID since the components are created at runtime
> 
> --- In flexcoders@yahoogroups.com 
> , "Gordon Smith"  wrote:
> >
> > Why are you trying to use getChildByName to get a reference to a
> > component? If you give it an 'id' attribute in MXML, you can then
> refer
> > to it by that id.
> > 
> > 
> > 
> > Gordon Smith
> > 
> > Adobe Flex SDK Team
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of Jason B
> > Sent: Monday, August 18, 2008 8:07 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] getChildByName using it to get the value of a
> > textbox
> > 
> > 
> > 
> > when using getchildbyname variable i've not been able to get the value
> > can someone please post an example of how to get a value using
> > getChildByName.
> > 
> > var test:DisplayObject = this.getChildByName("inputtext" + i);
> >
>




[flexcoders] Issue with RemoteObject

2008-08-19 Thread l_m_sylvester
Hey guys,

I'm getting an annoying error with an all-AS3 application. I've setup 
WebOrb .NET as my remoting server, and configured the application to 
point to that server. However, although I've set up a destination, 
and assigned the my-amf channel to it, I get return :-

Destination 'SelectYourSeatDestination' has no channels defined and 
the application does not define any default channels.

If I manually add a my-amf channel using :-

var channelSet : ChannelSet = new ChannelSet();
var pollingAMF : AMFChannel = new AMFChannel( "my-
amf", "http://localhost:88/weborb.aspx"; );
channelSet.addChannel( pollingAMF );
remoteObject.channelSet = channelSet;

then I get the error

Channel.Connect.Failed error Invalid URL url: 'null'

This is really frustrating. Flex should pick out the destination and 
associated channels without having to do this. Has anyone else had 
such problems?

Thanks,
Lee



[flexcoders] Re: Accordion Header renderer layout help

2008-08-19 Thread nathanpdaniel
I also found the CanvasButtonAccordionHeader! :D  I created a button 
and moved the headers "hitArea" to that button - works like a 
charm! :D

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I think someone got Tabs with a button in it to work for TabNav.  
Maybe
> the same plan will work for Accordion
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of nathanpdaniel
> Sent: Monday, August 18, 2008 9:06 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Accordion Header renderer layout help
> 
>  
> 
> I'm trying to create an Accordion Header Renderer component 
(extends 
> Button, implements IDataRenderer) - when I add children to 
> the "createChildren" method - it places them below (maybe behind is 
a 
> better term) the actual header itself. 
> I'm attempting to add another button and set the hitArea for the 
header 
> to that button (I want the user to have to click the Button to 
navigate 
> the Accordion rather than being able to click the entire header). I 
> also want to add some other textual elements, those always end up 
not 
> visible either. Anyone have any idea how to accomplish this? :D
> -Nathan D.
>




[flexcoders] Problem running a flex J2EE module

2008-08-19 Thread darsenovski
I am trying to install Flex J2EE module but when I try to access mxml
from my browser, but I get following error:

1 Error found. 
 
Error /hello.mxml:1 
The markup in the document preceding the root element must be well-formed.
1:  <%@ taglib uri="FlexTagLib" prefix="mm" %>
2:


Here is my mxml file:
<%@ taglib uri="FlexTagLib" prefix="mm" %>
 
http://www.adobe.com/2006/mxml"; xmlns="*">




It seems like server is not recognizing ad processing jsp tags.
If I understand correctly, these should be processed before sending
content to FlexMxmlServlet, but this does not seems to be the case. 

I am using Tomcat 6.0.1.8 and all I did is drop webtier.war to webapps
directory on tomcat and then add mxml file to war.
Any help appreciated!

Dan





[flexcoders] Re: Sizing Components

2008-08-19 Thread Amy
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> TileList stores the renderer's size in rowHeight/columnWidth

Yes, but if I'm going to have a component that will work in any 
environment, that might not be the best thing to depend on.  My 
renderer is a subclass of button.  It seems that somehow the button 
_does_ know how much space is given to it so the label can truncate 
properly, but I'm not seeing it.

I'm thinking that I might be better off attacking from the TileList 
side, either overriding commitProperties to check the size on all 
renderers, or going in deeper where it draws the renderers and have 
it check the size of all the renderers and have it force another pass 
at a new size only if it finds one that is bigger than the first 
one.  No telling what that will screw up, though ;-).

Possibly I could have it run through the collection and see what the 
results of the labelFunction and iconFunction would be and just 
measure the one with the longest label and biggest icon, but that 
presumes those will be one and the same and won't work for other 
types of renderers.

I want to make this available to the community when finished 
(actually I already have, but I haven't got that last piece of 
functionality that would make it truly useful).  
http://flexdiary.blogspot.com/2008/08/tilelist-with-stylefunction.html

-Amy



[flexcoders] Re: Flexbuilder 3.0.1 Update

2008-08-19 Thread Amy
--- In flexcoders@yahoogroups.com, Rick Winscot <[EMAIL PROTECTED]> 
wrote:
>
> Yeah... Uh... If the compiler has lost the link to the sdk... Compile 
+
> clean = gaseous emanations.
> 
> Rick Winscot

Is there a way to let it keep pointing to the 3.0 SDK for things that 
aren't present in the 3.1 SDK?



  1   2   >