RE: [flexcoders] changing a component's currentstate...

2007-09-12 Thread Alex Harui
Recent flash player downloads should be ok.  9,0,0,28 or later.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Tuesday, September 11, 2007 10:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] changing a component's currentstate...

 

Anybody know exactly where I can find what version of the flash 
plugin flex 2 expects? I'm getting alerts saying I'm not updated, and 
am trying to make sure it's all installed right -- I think I even 
installed the h.264 update...

On Sep 12, 2007, at 12:08 AM, grimmwerks wrote:

 Ok, I've got a main application, with a registration component that
 has many states.

 With one button I want to set the main application's currentstate, as
 well as the component's currentstate.

 When I do click={currentState=_registration;
 login.currentState=bday}; the main app works and shifts to the
 _registration state, but the component does NOT set itself back to
 the bday state.

 Any suggestions?


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 Search Archives: http://www.mail-archive.com/flexcoders%
http://www.mail-archive.com/flexcoders%25  
 40yahoogroups.com
 Yahoo! Groups Links




 



RE: [flexcoders] type 1009 because of zoominstance?

2007-09-12 Thread Alex Harui
Seems like you're hitting a timing issue.  Effects during a busy period
like creation time can be slightly skewed.  Make sure the effect targets
are in fact created and ready.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Tuesday, September 11, 2007 10:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] type 1009 because of zoominstance?

 

2 different machines are now throwing this error that hadn't before; 

 

TypeError: Error #1009: Cannot access a property or method of a
null object reference.

at mx.effects.effectClasses::ZoomInstance/play()

at mx.effects::EffectInstance/startEffect()

at
mx.effects.effectClasses::ParallelInstance/play()

at mx.effects::EffectInstance/startEffect()

at mx.effects::Effect/play()

at mx.core::UIComponent/::commitCurrentState()

at
mx.core::UIComponent/::creationCompleteHandler()

at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction! ()

at flash.events::EventDispatcher/dispatchEvent()

at mx.core::UIComponent/dispatchEvent()

at mx.core::UIComponent/set initialized()

at
mx.managers::LayoutManager/::doPhasedInstantiation()

at mx.managers::LayoutManager/validateNow()

at mx.core::UIComponent/::commitCurrentState()

at
mx.core::UIComponent/::creationCompleteHandler()

at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()

at flash.events::EventDispatcher/dispatchEvent()

!   ! at mx.co re::UIComponent/dispatchEvent()

at mx.core::UIComponent/set initialized()

at
mx.managers::LayoutManager/::doPhasedInstantiation()

at
Function/http://adobe.com/AS3/2006/builtin::apply(
http://adobe.com/AS3/2006/builtin::apply( )

at mx.core::UIComponent/::callLaterDispatcher2()

at mx.core::UIComponent/::callLaterDispatcher()

 

 

One machine still can't get the flash player installed properly.

 



RE: [flexcoders] modules httpservice

2007-09-12 Thread Alex Harui
I think the original poster is hitting a shared code issue.  HTTPService
might be in two different modules?  If putting a dummy HTTPService in
the main app makes it go away, then that's what it is.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Tuesday, September 11, 2007 9:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] modules  httpservice

 

I'm getting the same error now; it's been working fine for awhile; I'd
uninstalled and now just reinstalled the flash plugin:

 

TypeError: Error #1009: Cannot access a property or method of a
null object reference.

at mx.effects.effectClasses::ZoomInstance/play()

at mx.effects::EffectInstance/startEffect()

at
mx.effects.effectClasses::ParallelInstance/play()

at mx.effects::EffectInstance/startEffect()

at mx.effects::Effect/play()

at mx.core::UIComponent/::commitCurrentState()

at
mx.core::UIComponent/::creationCompleteHandler()

at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()

at flash.events::EventDispatcher/dispatchEvent()

at mx.core::UIComponent/dispatchEvent()

at mx.core::UIComponent/set initialized()

at
mx.managers::LayoutManager/::doPhasedInstantiation()

at mx.managers::LayoutManager/validateNow()

at mx.core::UIComponent/::commitCurrentState()

at
mx.core::UIComponent/::creationCompleteHandler()

at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()

at flash.events::EventDispatcher/dispatchEvent()

at mx.core::UIComponent/dispatchEvent()

at mx.core::UIComponent/set initialized()

at
mx.managers::LayoutManager/::doPhasedInstantiation()

at
Function/http://adobe.com/AS3/2006/builtin::apply(
http://adobe.com/AS3/2006/builtin::apply( )

at mx.core::UIComponent/::callLaterDispatcher2()

at mx.core::UIComponent/::callLaterDispatcher()

 

 

On Sep 11, 2007, at 4:31 PM, keithtucci wrote:





i am attempting to use ModuleLoader to load a module that is using 

httpservice and i keep getting a 1009 error.  i am not sure if this 

is a known issue or i am just doing something incorrectly...

 

any ideas...?

 

TypeError: Error #1009: Cannot access a property or method of a null 

object reference.

at mx.rpc::AbstractInvoker$cinit()

at [newclass]

at global$init()

at global$init()

at test1c/private::_test1c_HTTPService1_i()

at test1c()

at _test1c_mx_core_FlexModuleFactory/create()

at mx.modules::ModuleLoader/private::moduleReadyHandler()

at 

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv

entFunction()

at flash.events::EventDispatcher/dispatchEvent()

at private::ModuleInfoProxy/private::moduleEventHandler()

at 

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv

entFunction()

at flash.events::EventDispatcher/dispatchEvent()

at private::ModuleInfo/readyHandler()

at 

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv

entFunction()

at flash.events::EventDispatcher/dispatchEvent()

at mx.core::FlexModuleFactory/private::update()

at mx.core::FlexModuleFactory/private::docFrameHandler()

at [execute-queued]

 

 

 

 

--

Flexcoders Mailing List

FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
http://www.mail-archive.com/flexcoders%40yahoogroups.com  

Yahoo! Groups Links

 

http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/ 

 

Individual Email | Traditional

 

http://groups.yahoo.com/group/flexcoders/join
http://groups.yahoo.com/group/flexcoders/join 

(Yahoo! ID required)

 

mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  

mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

 

[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

 

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

 

 

 



RE: [flexcoders] Re: font in comboBox and Title not the same SIMPLE TEST CASE

2007-09-12 Thread Alex Harui
Typically, to use embed fonts in a CB, you embed both normal and bold
faces under the same font name and do not specify a fontStyle in the
styledecl.  I modified your example.  Both embed font CB's are now the
same:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 

layout=absolute backgroundGradientColors=[#ff, #ff]

mx:Style

.noEmbed{

fontFamily: Verdana; 

fontSize: 14;

}

.embed1 { 

fontFamily: myVerdanaFont; 

fontSize: 14;

}

.embed2 { 

fontFamily: myVerdanaFont; 

fontSize: 14;

}

/mx:Style

 

mx:ComboBox x=70 y=172 id=noEmbed dataProvider=['item1',
'item2', 'item3'] styleName=noEmbed rotation=10
open=noEmbed.dropdown.rotation=10 /

mx:ComboBox x=280 y=172 id=Embed dataProvider=['item1', 'item2',
'item3'] styleName=embed1 rotation=10
open=Embed.dropdown.rotation=10 /

mx:ComboBox x=458 y=172 id=Embed1 dataProvider=['item1',
'item2', 'item3'] styleName=embed2 rotation=10
open=Embed1.dropdown.rotation=10 /

mx:Label x=280 y=123 text=embedded normal font/

mx:Label x=70 y=123 text=non-embedded font/

mx:Label x=458 y=123 text=embedded BOLD font/

 

mx:Script 

![CDATA[

[Embed(source='../../../../../../../windows/fonts/verdana.ttf',
fontWeight='normal', fontName='myVerdanaFont',
mimeType='application/x-font', flashType='true')] 

private var font1:Class;

 

[Embed(source='../../../../../../../windows/fonts/verdanab.ttf',
fontWeight='bold', fontName='myVerdanaFont',
mimeType='application/x-font', flashType='true')] 

private var font2:Class;

]]

/mx:Script

 

/mx:Application

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Schuenke
Sent: Monday, September 10, 2007 2:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: font in comboBox and Title not the same SIMPLE
TEST CASE

 

Run this code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
layout=absolute backgroundGradientColors=[#ff, #ff]
mx:Style
.noEmbed{
fontFamily: Verdana; 
fontSize: 14;
}
.embed1 { 
fontFamily: myVerdanaFont; 
fontSize: 14;
}
.embed2 { 
fontFamily: myVerdanaFont2; 
fontSize: 14;
}
/mx:Style

mx:ComboBox x=70 y=172 id=noEmbed 
dataProvider=['item1', 'item2', 'item3'] styleName=noEmbed /
mx:ComboBox x=280 y=172 id=Embed 
dataProvider=['item1', 'item2', 'item3'] styleName=embed1/
mx:ComboBox x=458 y=172 id=Embed1 
dataProvider=['item1', 'item2', 'item3'] styleName=embed2/
mx:Label x=280 y=123 text=embedded normal font/
mx:Label x=70 y=123 text=non-embedded font/
mx:Label x=458 y=123 text=embedded BOLD font/

mx:Script 
![CDATA[
[Embed(source='resources/verdana.ttf', 
fontWeight='normal', 

fontName='myVerdanaFont', 

mimeType='application/x-font' ,
flashType='true'
)] 
private var font1:Class;

[Embed(source='resources/verdanab.ttf', 
fontWeight='bold', 
fontName='myVerdanaFont2', 
mimeType='application/x-font'
)] 
private var font2:Class;
]]
/mx:Script

/mx:Application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 It was or is? The CB defaults to bold in the label, non-bold in the
 dropdown. Depending on how you applied this style decl, I would 
have
 expected the CB to be non-bold in both places.
 
 
 
 When you embed a font, you have to embed both font files (bold and
 normal) for a CB or other scenario like that.
 
 
 
 Cam you strip it down to a simple test case?
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Jeff Schuenke
 Sent: Monday, September 10, 2007 8:21 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: font in comboBox and Title not the same
 
 
 
 It was as bold. I did not specify this myself, it must be the 
default 
 style.
 
 I find that if I don't use the embeded font it works correctly. So 
 it seems that the componenet is somehow using the normal and bold 
 version of the local font correctly. I think that using an embedded 
 font that is either normal or bold fails for both area since one or 
 the other weight is missing.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  I just noticed you set fontStyle in the declarations. In the 
 original
  problem, did the CB's label show as normal or bold?
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of Jeff Schuenke
  Sent: Friday, September 07, 2007 12:41 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%
40yahoogroups.com 
  

[flexcoders] Re: Mousewheel on a scrollbar (List or combobox)

2007-09-12 Thread kevintuhumury
No, but since I was using dynamic data, I thought that might be a
reason. I just tested it with static data and it's still not working.
I really don't get it.

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Are you saying that it works for you with static data, but not with
 dynamic data?
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of kevintuhumury
 Sent: Monday, September 10, 2007 11:50 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Mousewheel on a scrollbar (List or combobox)
 
  
 
 Hm, for some reason it's not. I have a comboBox with a dataprovider,
 which gets it's data from a XML file. The same for the List, is this a
 problem?
 
 I mean, is this option only available with static data and not with
 dynamic data? Because I've got no clue as to why it wouldn't work.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  mouseWheel should already work on list and combobox dropdowns.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of kevintuhumury
  Sent: Monday, September 10, 2007 7:52 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Mousewheel on a scrollbar (List or combobox)
  
  
  
  Hey,
  
  I'm trying to figure out on how to use the mousewheel on a list or a
  combobox, but I'm not getting anywhere. DataGrid and TextArea have an
  option called mouseWheelEnabled, I'd like to have this option also for
  a List or a ComboBox.
  
  I was thinking of extending ScrollBar and adding a method which makes
  scrolling with the mousewheel possible. But how do you enable it for
  all the scrollbars in an application?
  
  I was thinking of maybe calling the new class with ClassReference in
  my CSS file, but I'm not sure on which element I should add it. Any
  help would be great!
  
  For a few examples check out: www.scrapblog.com (comboBox with fonts
  or Lists in the Accordion)
 





[flexcoders] Re: @ symbol and xml

2007-09-12 Thread kevintuhumury
LOL, I posted this way before the other guys, why is it taking so long
for my messages to show up?

--- In flexcoders@yahoogroups.com, kevintuhumury
[EMAIL PROTECTED] wrote:

 The @ symbol is basicly a shortcut for attribute().
 
 var oXML:XML = xmlelement type=text //xml
 
 [EMAIL PROTECTED] for example will retrieve 'text' and xml.child(
 'element' ).attribute( 'type' ) is basicly the same.
 
 
 --- In flexcoders@yahoogroups.com, Mark Ingram mingram@ wrote:
 
  Hi, what does the @ symbol do when using the xml class? I had the
  following columns in a datagrid and when the data was bound it
made the
  correct number of rows, but didn't display anything in the cells:
  
   
  
  mx:columns
  
   
  mx:DataGridColumn headerText=Avatar dataField=avatarUrl/
  
   
  mx:DataGridColumn headerText=ID dataField=id/
  
   
  mx:DataGridColumn headerText=Username dataField=username/
  
   
  mx:DataGridColumn headerText=Site ID dataField=siteId/
  
   
  mx:DataGridColumn headerText=First Name dataField=firstname/
  
   
  mx:DataGridColumn headerText=Last Name dataField=lastname/
  
   
  mx:DataGridColumn headerText=Nickname dataField=nickname/
  
  /mx:columns
  
   
  
  But then I changed all dataField properties to have the @ symbol at
  the front and it worked fine. What's the @ symbol do?
  
   
  
  Cheers,
  
   
  
  Mark
 





RE: [flexcoders] Re: Mousewheel on a scrollbar (List or combobox)

2007-09-12 Thread Alex Harui
BTW, mouseWheel only works on Win.  I've also had problems on Win with
laptop touchpad mousewheels.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kevintuhumury
Sent: Wednesday, September 12, 2007 12:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mousewheel on a scrollbar (List or combobox)

 

No, but since I was using dynamic data, I thought that might be a
reason. I just tested it with static data and it's still not working.
I really don't get it.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 Are you saying that it works for you with static data, but not with
 dynamic data?
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of kevintuhumury
 Sent: Monday, September 10, 2007 11:50 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Mousewheel on a scrollbar (List or combobox)
 
 
 
 Hm, for some reason it's not. I have a comboBox with a dataprovider,
 which gets it's data from a XML file. The same for the List, is this a
 problem?
 
 I mean, is this option only available with static data and not with
 dynamic data? Because I've got no clue as to why it wouldn't work.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  mouseWheel should already work on list and combobox dropdowns.
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of kevintuhumury
  Sent: Monday, September 10, 2007 7:52 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Mousewheel on a scrollbar (List or combobox)
  
  
  
  Hey,
  
  I'm trying to figure out on how to use the mousewheel on a list or a
  combobox, but I'm not getting anywhere. DataGrid and TextArea have
an
  option called mouseWheelEnabled, I'd like to have this option also
for
  a List or a ComboBox.
  
  I was thinking of extending ScrollBar and adding a method which
makes
  scrolling with the mousewheel possible. But how do you enable it for
  all the scrollbars in an application?
  
  I was thinking of maybe calling the new class with ClassReference in
  my CSS file, but I'm not sure on which element I should add it. Any
  help would be great!
  
  For a few examples check out: www.scrapblog.com (comboBox with fonts
  or Lists in the Accordion)
 


 



[flexcoders] File upload in Flex

2007-09-12 Thread stephen50232
Hi,

I've got a new project, which requires that the user can upload
resources to a system, which other users can access and download
through the same system.

The types of documents which can be uploaded through the system will
include PDFs, Word docs, Excel docs, but this list may increase (e.g.
MP3 files etc).

I have not seen an example of a Flex system which allows users to
browse there local PC and upload files. Is it possible and if so how?

Stephen



[flexcoders] Re: PrintDataGrid and the last row problem

2007-09-12 Thread mitek17
Hi Alex,

There are 5 columns in the grid, 3 of which have custom itemRenderers.
Flex 2.0.1 SDK Hotfix 1

Thanks!

Regards,
Dmitri.

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Custom renderer or default renderers?  Which version of Flex?  I'm
 investigating a similar report against Tree today.
 





Re: [flexcoders] File upload in Flex

2007-09-12 Thread Roman Protsiuk
It's possible. See FileReference and FileReferenceList.

R.

On 9/12/07, stephen50232 [EMAIL PROTECTED] wrote:

   Hi,

 I've got a new project, which requires that the user can upload
 resources to a system, which other users can access and download
 through the same system.

 The types of documents which can be uploaded through the system will
 include PDFs, Word docs, Excel docs, but this list may increase (e.g.
 MP3 files etc).

 I have not seen an example of a Flex system which allows users to
 browse there local PC and upload files. Is it possible and if so how?

 Stephen

  



[flexcoders] Re: File Upload Weirdness (DataEvent.UPLOAD_COMPLETE_DATA)

2007-09-12 Thread Stefan Schmalhaus
Come on, guys, I can't believe that I'm the only one with this
problem. ;-)



Re: [flexcoders] Announcing flexmdi: Robust, extensible MDI framework for Flex

2007-09-12 Thread Tom Chiverton
On Tuesday 11 Sep 2007, [EMAIL PROTECTED] wrote:
 Holmes, Brendan Meutzner and myself just launched. flexmdi is a
 framework for creating MDI interfaces in Flex that is open source,

You star !
:-)

-- 
Tom Chiverton
Helping to quickly target open-source developments
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Getting xml in code only

2007-09-12 Thread Muzak
When loading at runtime the path has to be relative to where the html file 
(holding the swf) is located.
If you left everything at the default settings for your project, the /bin 
folder is where your app is compiled to.

Files that need to be loaded at runtime should be in the /bin folder (or 
subfolder).

For example:
projectroot/bin/modules/modules.xml

to load it at runtime, use:
modules/modules.xml

regards,
Muzak


- Original Message - 
From: Steve Hueners [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, September 12, 2007 3:20 AM
Subject: Re: [flexcoders] Getting xml in code only


 Right...loading at runtime. But understand that /xml is direct off the root
 - just like /com and /bin - all sibling levels.

 Can I expect the same behavior (understandable or not) once I deploy to a
 server or should I be prepending a fully qualified URL?

 On 9/11/07, Muzak [EMAIL PROTECTED] wrote:

   erhm, scratch that.. you're loading an xml file at run time ;-)
 I thought you were compiling it in.

 Sorry for the confusion.

 regards,
 Muzak





RE: [flexcoders] Flash Player Instance Unique ID

2007-09-12 Thread Mark Ingram
I think I've found a way around it - pass a connection name with a
unique number through to the widget on load up (probably via flash vars
or url) - that way the application knows which name to send on. At the
same time we can send the name of the application connection name + a
unique number.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 11 September 2007 17:07
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flash Player Instance Unique ID

 

Unfortunately I don't have that luxury as I need to support multiple
versions of my application and multiple mini-applications within each of
mine. I think I've got a way around it though, when I load the SWFs into
my application I will pass some flash vars in which tell it the name of
the current connection name for the application.

 

Cheers,

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: 11 September 2007 16:52
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flash Player Instance Unique ID

 

In the past i was using a single LocalConnection, which worked like a
registry and has a well known name. 
Every new client asks this registry for a id, which then can be used to
create their own LocalConnection. 

Cheers,
Ralf. 

On 9/11/07, Mark Ingram [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi, is there a unique ID that the flash player has for each instance?
I'm trying to use a LocalConnection to receive data, but if I launch two
instances of my application it crashes (because the connection name is
already in use). I was planning to append the name of my connection
string with some random data or the current number of ticks unless
anyone has any better ideas?

 

Cheers,

 

Mark

 

 

 




-- 
Ralf Bokelberg [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35 

 



[flexcoders] Re: Announcing flexmdi: Robust, extensible MDI framework for Flex

2007-09-12 Thread ben.clinkinbeard
LOL, its so hard to tell from text on a screen Tom... was that
sarcasm? No worries if it is, just curious.

Ben


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Tuesday 11 Sep 2007, [EMAIL PROTECTED] wrote:
  Holmes, Brendan Meutzner and myself just launched. flexmdi is a
  framework for creating MDI interfaces in Flex that is open source,
 
 You star !
 :-)
 
 -- 
 Tom Chiverton
 Helping to quickly target open-source developments
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Resource bundle chaining

2007-09-12 Thread espic
How do I do a multiple resource bundle chaining using ActionScript in 
Flex 2.



[flexcoders] tab navigator componene

2007-09-12 Thread Muharem Lubovac
Greetings,

I'm trying to fire an event when a tab is changed within tab navigator 
component but I'm not having any luck.

Each tab has a canvas that has a list. When I change tab I want to fire an 
event so I can call appropriate HTTPService in order to populate the list. Any 
ideas are greatly appreciated.


Thank you




~moe
   
-
Tonight's top picks. What will you watch tonight? Preview the hottest shows on 
Yahoo! TV.

[flexcoders] Re: Adobe Air - How to save remote .flv to applicationStorageDirectory

2007-09-12 Thread francescomagalini
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute

mx:Script
 ![CDATA[
  import flash.filesystem.*;
  import flash.events.*;
  
  var os:File = File.applicationStorageDirectory.resolve
(prisma.flv);
  var ds:File = File.applicationStorageDirectory.resolve
(primacopy.flv);
  
  private function read():void {

   var str:FileStream = new FileStream;
   str.openAsync(os, FileMode.READ);
   str.close();
   str.addEventListener(Event.COMPLETE, copy)   
  }
  private function copy(event:Event):void {
   var ba:ByteArray = event.target as ByteArray //??
   var str:FileStream = new FileStream
   str.openAsync(ds, FileMode.WRITE);
   str.writeBytes(ba,0,ba.length)
   str.close()
   str.addEventListener(Event.COMPLETE, complete)   
  } 
  private function complete():void {
   text.text = process completed
  } 
 ]]
/mx:Script
mx:Text id=text creationComplete=read()/
/mx:WindowedApplication

I've wrote a sample application that has to do a file copy locally; 
at this time it gives no output at all
Any idea?
Thanks,
Francesco



[flexcoders] 1009 error

2007-09-12 Thread grimmwerks

This is getting frustrating.

I've removed all references to transitions/effects, and have a simple  
button on click calling function {resetRegWindow()}.


There IS a resetRegWindow function.

I get this:

TypeError: Error #1009: Cannot access a property or method of a  
null object reference.

at Nestle/resetRegWindow()
at Nestle/___LinkButton2_click()




Re: [flexcoders] 1009 error

2007-09-12 Thread Jobe Makar
Hi,

That error isn't saying that the function doesn't exist. It is saying that the 
thing that is supposed to contain that function doesn't exist. Perhaps there 
is a slight scoping issue here?

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
  - Original Message - 
  From: grimmwerks 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, September 12, 2007 8:25 AM
  Subject: [flexcoders] 1009 error


  This is getting frustrating. 



  I've removed all references to transitions/effects, and have a simple button 
on click calling function {resetRegWindow()}. 


  There IS a resetRegWindow function.


  I get this:


TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at Nestle/resetRegWindow()
at Nestle/___LinkButton2_click()



   

Re: [flexcoders] Flex and Verisign

2007-09-12 Thread Tom Chiverton
On Tuesday 11 Sep 2007, [EMAIL PROTECTED] wrote:
 Has anybody out there implemented a totally Flex e-commerce website
 with Verisign? I'm having trouble implementing the Verisign seal I
 downloaded from them 

Assuming this 'seal' is some sort of Java applet, DHTML, IFRAME or other 'your 
site is secure' thing that runs on the client, just use a static GIF instead. 
99.9% of your visitors won't notice.

-- 
Tom Chiverton
Helping to widespreadedly establish holistic designs
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Re: Announcing flexmdi: Robust, extensible MDI framework for Flex

2007-09-12 Thread Tom Chiverton
On Wednesday 12 Sep 2007, [EMAIL PROTECTED] wrote:
 LOL, its so hard to tell from text on a screen Tom... was that
 sarcasm? No worries if it is, just curious.

No, tis real !
We starting building something similar, and this is a lot better.
The only thing ours has over it is save/load of laytouts to a SharedObject, 
and the ability to LoadModule from an URL into a window.

-- 
Tom Chiverton
Helping to elementarily engage web-enabled design-patterns
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] deleting rows from grid --- need help

2007-09-12 Thread siva.flex
Hi All ,

 Need some help in deleting selected rows from grid. I am 
able to add rows to Grid. But unable to delete selected rows from 
Grid. Even user checks multiple rows its deleting only one row at a 
time. And one more  problem I am facing is its not retaining the 
values entered  by user if I add / delete rows to Grid.

   Here is the code what I tried for deleting and adding rows to Grid

public function addOtherIncome():void
 {
incomeData.addItem({Charterer:'',incomeDesc:'',incomeAmt:''});
  }



 public function deleteIncome():void
  {
//Alert.show(Inside Delete Item + checkIncome.length );
  for(var j:Number=0;jcheckIncome.length;j++)
{
Alert.show(inside of for + checkIncome
[j].selected);
if(checkIncome[j].selected==true)
{
incomeGridRow.height = 0;
incomeData.removeItemAt(j);
}
}

  } 


incomeData  - name of the data provider
 checkIncome - name of the checkbox
 incomeGridRow   - name of the gridrow

 Anybody help me to solve these issues. I tried a lot to solve 
these issues. Thanx in advance

Thanks  Regards,
Siva Kumar



Re: [flexcoders] tab navigator componene

2007-09-12 Thread Tom Chiverton
On Wednesday 12 Sep 2007, [EMAIL PROTECTED] wrote:
 I'm trying to fire an event when a tab is changed within tab navigator
 component but I'm not having any luck.

Have you looked at the LiveDocs for the component to see the events it 
supports ?

-- 
Tom Chiverton
Helping to conveniently develop bricks-and-clicks IPOs
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Resource bundle chaining

2007-09-12 Thread Tom Chiverton
On Wednesday 12 Sep 2007, [EMAIL PROTECTED] wrote:
 How do I do a multiple resource bundle chaining 

Do what ?

-- 
Tom Chiverton
Helping to simultaneously strategize turn-key users
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


RE: [flexcoders] Flex and Verisign

2007-09-12 Thread Jeff Hindman
I run that up the flag pole, but I don't think the legal department will buy
it :)

The search continues ...

--Jake

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, September 12, 2007 5:45 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex and Verisign

On Tuesday 11 Sep 2007, [EMAIL PROTECTED] wrote:
 Has anybody out there implemented a totally Flex e-commerce website
 with Verisign? I'm having trouble implementing the Verisign seal I
 downloaded from them 

Assuming this 'seal' is some sort of Java applet, DHTML, IFRAME or other
'your 
site is secure' thing that runs on the client, just use a static GIF
instead. 
99.9% of your visitors won't notice.

-- 
Tom Chiverton
Helping to widespreadedly establish holistic designs
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links







[flexcoders] BarChart scrolling

2007-09-12 Thread Mark
Is there anyway to get the horizontalAxis to always be visible while 
the chart area and VerticalAxis scroll?  Right now the entire area 
scrolls.

Thanks



Re: [flexcoders] Re: Formatting incoming numerical data

2007-09-12 Thread Tom Chiverton
On Tuesday 11 Sep 2007, [EMAIL PROTECTED] wrote:
 the database and, later, amending saved records. So that
 datagridcolumn requires a datafield.

Use a custom item renderer that knows about formatting then.
Have you read the live docs on this ?

-- 
Tom Chiverton
Helping to enormously utilize integrated mindshares
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] [SOLVED] File Upload Weirdness (DataEvent.UPLOAD_COMPLETE_DATA)

2007-09-12 Thread Stefan Schmalhaus
My anti-virus software (Kaspersky Internet Security 6) caused all the
trouble with uploading files. After I turned it off everything worked
fine. It's not a real solution though... 

Stefan



Re: [flexcoders] tab navigator componene

2007-09-12 Thread cisnky
yourTabNavigatorID.addEventListener(change, tabNavigatorChangeEvent);

tabNavigatorChangeEvent is your event method.



On 9/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Wednesday 12 Sep 2007, [EMAIL PROTECTED] wrote:
  I'm trying to fire an event when a tab is changed within tab navigator
  component but I'm not having any luck.

 Have you looked at the LiveDocs for the component to see the events it
 supports ?

 --
 Tom Chiverton
 Helping to conveniently develop bricks-and-clicks IPOs
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
 available for inspection at the registered office. Any reference to a
 partner in relation to Halliwells LLP means a member of Halliwells LLP.
 Regulated by the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 8008.

 For more information about Halliwells LLP visit www.halliwells.com.



 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






[flexcoders] Re: Announcing flexmdi: Robust, extensible MDI framework for Flex

2007-09-12 Thread ben.clinkinbeard
Good deal. I like the save/load layouts idea, might have to look into
integrating that... feel like sharing some code? Does it just save
panel dimensions and locations or does it record their contents as well?

As for LoadModule (another nice feature), I would imagine you could
pretty easily subclass MDIWindow and add that. MDIModuleWindow perhaps :)

We will definitely be continuing to make enhancements and such so
thanks for the feedback and keep it coming.

Thanks,
Ben


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Wednesday 12 Sep 2007, [EMAIL PROTECTED] wrote:
  LOL, its so hard to tell from text on a screen Tom... was that
  sarcasm? No worries if it is, just curious.
 
 No, tis real !
 We starting building something similar, and this is a lot better.
 The only thing ours has over it is save/load of laytouts to a
SharedObject, 
 and the ability to LoadModule from an URL into a window.
 
 -- 
 Tom Chiverton
 Helping to elementarily engage web-enabled design-patterns
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] sorry - one more about effects...

2007-09-12 Thread grimmwerks
Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got  
a transition I want to call on those children, but not all at once --  
in sequence. How can I do this?  I realize the Sequence is for  
sequencing effects, not elements; but is there something like that  
here? Or will I have to roll my own function to step through an array?


[flexcoders] Re: File upload in Flex

2007-09-12 Thread Derrick Grigg
Stephen,

Check this post

http://www.dgrigg.com/post.cfm/08/02/2007/Flex-and-Flash-file-uploading-with-return-data

Derrick

--
Derrick Grigg
www.dgrigg.com

--- In flexcoders@yahoogroups.com, stephen50232 [EMAIL PROTECTED] wrote:

 Hi,
 
 I've got a new project, which requires that the user can upload
 resources to a system, which other users can access and download
 through the same system.
 
 The types of documents which can be uploaded through the system will
 include PDFs, Word docs, Excel docs, but this list may increase (e.g.
 MP3 files etc).
 
 I have not seen an example of a Flex system which allows users to
 browse there local PC and upload files. Is it possible and if so how?
 
 Stephen





[flexcoders] Re: modules httpservice

2007-09-12 Thread keithtucci
thanks for the feedback so far...

my orginal post was referncing a single project with both the module 
and the calling application in the same project.  this scenario is 
what caused the error.  

if i now create a new project and call the orginal module from the 
new project (the module is in the same domain but not in the same 
directory as the calling swf) then everything works just fine.  

i am not sure if that changes your assesment...

any thoughts...?



--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I think the original poster is hitting a shared code issue.  
HTTPService
 might be in two different modules?  If putting a dummy HTTPService 
in
 the main app makes it go away, then that's what it is.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of grimmwerks
 Sent: Tuesday, September 11, 2007 9:31 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] modules  httpservice
 
  
 
 I'm getting the same error now; it's been working fine for awhile; 
I'd
 uninstalled and now just reinstalled the flash plugin:
 
  
 
   TypeError: Error #1009: Cannot access a property or method of 
a
 null object reference.
 
   at mx.effects.effectClasses::ZoomInstance/play
()
 
   at mx.effects::EffectInstance/startEffect()
 
   at
 mx.effects.effectClasses::ParallelInstance/play()
 
   at mx.effects::EffectInstance/startEffect()
 
   at mx.effects::Effect/play()
 
   at mx.core::UIComponent/::commitCurrentState()
 
   at
 mx.core::UIComponent/::creationCompleteHandler()
 
   at
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
en
 tFunction()
 
   at flash.events::EventDispatcher/dispatchEvent
()
 
   at mx.core::UIComponent/dispatchEvent()
 
   at mx.core::UIComponent/set initialized()
 
   at
 mx.managers::LayoutManager/::doPhasedInstantiation()
 
   at mx.managers::LayoutManager/validateNow()
 
   at mx.core::UIComponent/::commitCurrentState()
 
   at
 mx.core::UIComponent/::creationCompleteHandler()
 
   at
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
en
 tFunction()
 
   at flash.events::EventDispatcher/dispatchEvent
()
 
   at mx.core::UIComponent/dispatchEvent()
 
   at mx.core::UIComponent/set initialized()
 
   at
 mx.managers::LayoutManager/::doPhasedInstantiation()
 
   at
 Function/http://adobe.com/AS3/2006/builtin::apply(
 http://adobe.com/AS3/2006/builtin::apply( )
 
   at mx.core::UIComponent/::callLaterDispatcher2
()
 
   at mx.core::UIComponent/::callLaterDispatcher
()
 
  
 
  
 
 On Sep 11, 2007, at 4:31 PM, keithtucci wrote:
 
 
 
 
 
 i am attempting to use ModuleLoader to load a module that is using 
 
 httpservice and i keep getting a 1009 error.  i am not sure if this 
 
 is a known issue or i am just doing something incorrectly...
 
  
 
 any ideas...?
 
  
 
 TypeError: Error #1009: Cannot access a property or method of a 
null 
 
 object reference.
 
 at mx.rpc::AbstractInvoker$cinit()
 
 at [newclass]
 
 at global$init()
 
 at global$init()
 
 at test1c/private::_test1c_HTTPService1_i()
 
 at test1c()
 
 at _test1c_mx_core_FlexModuleFactory/create()
 
 at mx.modules::ModuleLoader/private::moduleReadyHandler
()
 
 at 
 
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
 
 entFunction()
 
 at flash.events::EventDispatcher/dispatchEvent()
 
 at private::ModuleInfoProxy/private::moduleEventHandler
()
 
 at 
 
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
 
 entFunction()
 
 at flash.events::EventDispatcher/dispatchEvent()
 
 at private::ModuleInfo/readyHandler()
 
 at 
 
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
 
 entFunction()
 
 at flash.events::EventDispatcher/dispatchEvent()
 
 at mx.core::FlexModuleFactory/private::update()
 
 at mx.core::FlexModuleFactory/private::docFrameHandler()
 
 at [execute-queued]
 
  
 
  
 
  
 
  
 
 --
 
 Flexcoders Mailing List
 
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 http://www.mail-archive.com/flexcoders%40yahoogroups.com  
 
 Yahoo! Groups Links
 
  
 
 

[flexcoders] Re:File upload in Flex

2007-09-12 Thread Muharem Lubovac
Here's nice summary of file upload techniques with Flex

http://www.flex888.com/2007/08/14/9-flex-file-upload-examples-visited.html


~moe
   
-
Pinpoint customers who are looking for what you sell. 

Re: [flexcoders] tab navigator componene

2007-09-12 Thread Tom Chiverton
On Wednesday 12 Sep 2007, [EMAIL PROTECTED] wrote:
 yourTabNavigatorID.addEventListener(change, tabNavigatorChangeEvent);

You should use the constants from the relevant Event class, rather than string 
literals.

-- 
Tom Chiverton
Helping to seamlessly generate front-end e-tailers
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] Using @Resource directive with Moxie

2007-09-12 Thread kramus0
Hi, 

when I use the 2.0.1 SDK I can use a localized value for the url in a
HTTPService and it would look like this:

mx:HTTPService id=myService  url=@Resource(key='myServiceUrl',
bundle='myServiceBundle')/

But when I try to compile the same code with the Moxie SDK I get an
error that basically says:

Error: Try to access a not defined property resourceManager. 

(My actual error message is in german language: Error: Zugriff auf
eine nicht definierte Eigenschaft resourceManager.)

So, what is going wrong? Did anyone have the same problem?

Thanks, Markus






[flexcoders] Re: tab navigator componene

2007-09-12 Thread muharem_l
Gents,

Thanks for the replies. I guess what was throwing me off was the
tabBar property. According to docs, it returns reference to currently
selected tabBar of this TabNavigator however, I could not get
following to work

mx:TabNavigator id=tabNav x=820 y=249 width=260 height=422
change=showAlert(event);


private function showAlert( event:Event ):void {
Alert.show( event.target.tabBar );
} 

It returns to me following error

ReferenceError: Error #1069: Property tabBar not found on
mx.containers.TabNavigator and there is no default value.


I managed to get reference to the selected tabBar by using
event.target.selectedIndex, but I'd still like to know how to use
tabBar property or why couldn't I get it to work in the first place.


Thank you all,

Moe




--- In flexcoders@yahoogroups.com, cisnky [EMAIL PROTECTED] wrote:

 yourTabNavigatorID.addEventListener(change, tabNavigatorChangeEvent);
 
 tabNavigatorChangeEvent is your event method.
 
 
 
 On 9/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 
  On Wednesday 12 Sep 2007, [EMAIL PROTECTED] wrote:
   I'm trying to fire an event when a tab is changed within tab
navigator
   component but I'm not having any luck.
 
  Have you looked at the LiveDocs for the component to see the events it
  supports ?
 
  --
  Tom Chiverton
  Helping to conveniently develop bricks-and-clicks IPOs
  on: http://thefalken.livejournal.com
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in
England
  and Wales under registered number OC307980 whose registered office
address
  is at St James's Court Brown Street Manchester M2 2JF.  A list of
members is
  available for inspection at the registered office. Any reference to a
  partner in relation to Halliwells LLP means a member of Halliwells
LLP.
  Regulated by the Law Society.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named
above and
  may be confidential or legally privileged.  If you are not the
addressee you
  must not read it and must not use any information contained in nor
copy it
  nor inform any person other than Halliwells LLP or the addressee
of its
  existence or contents.  If you have received this email in error
please
  delete it and notify Halliwells LLP IT Department on 0870 365 8008.
 
  For more information about Halliwells LLP visit www.halliwells.com.
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 





[flexcoders] Re: DateTimeAxis without the weekends

2007-09-12 Thread gaurav1146
Hi Sunil,
 Thanks for the reply. I tried disabledDays property of DateTimeAxis
in flex3. The problem is that when I disable the weekends the chart
does not span over the entire chart area.

After some googling i found out this as a bug mentioned here:
http://bugs.adobe.com/jira/browse/FLEXDMV-963

I would be grateful if you could let me know of a workaround.

Regards,
Gaurav


--- In flexcoders@yahoogroups.com, Sunil Bannur [EMAIL PROTECTED] wrote:

 Have you tried using the new DateTimeAxis in Flex 3, this provides
 disabledDays and disabledRanges properties, where in you can provide
 what days of a week could be disabled or what ranges of dates needs to
 be disabled respectively.
 
  
 
 You can find more at
 
  
 
 http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions#Charti
 ng_Enhancements
 
  
 
 The flex doc team has some samples at
 
  
 
 http://blogs.adobe.com/flexdoc/2007/07/charting_documentation_updates.ht
 ml 
 
  
 
 Thanks
 
 -Sunil
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Carlos Rovira
 Sent: Tuesday, September 11, 2007 7:31 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] DateTimeAxis without the weekends
 
  
 
 Hi Gaurav,
 
 I have a similar problem with DateTimeAxis. I'd want to remove from the
 view the dates 
 that I can't find in my xml data. Hope Ely or someone could bring some
 light on this issue
 
 
 
 2007/9/11, gaurav1146 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] :
 
 Hi all,
 I have a certain set of data where I have values for weekdays only. I
 want to represent this data on a column chart. Due to data missing for
 weekends I get certain gaps in between the bars of the column chart.
 Is there any way I could omit the weekends from the date time axis.
 One solution I think could be use the category axis but I have some
 computations to perform based on date and so it would better for me to
 use the dateTimeAxis. 
 
 TIA,
 Gaurav
 
 
 
 
 -- 
 ::| Carlos Rovira
 ::| http://www.carlosrovira.com http://www.carlosrovira.com 
 ::| http://www.madeinflex.com http://www.madeinflex.com





[flexcoders] Re: Announcing flexmdi: Robust, extensible MDI framework for Flex

2007-09-12 Thread dbronk
Very nice indeed!  I've always thought the MDI application UI was a
lost treasure.  I think I have exposed a bug though.  Load the example
app as normal.  Window 2 has focus.  Close window 2 and I would expect
Window 1 to gain focus.  Even after click, clicking and dragging, etc.
window 1, it does not change to a has focus style.

Dale

--- In flexcoders@yahoogroups.com, ben.clinkinbeard
[EMAIL PROTECTED] wrote:

 Hello all, just wanted to make you aware of a project that Brian
 Holmes, Brendan Meutzner and myself just launched. flexmdi is a
 framework for creating MDI interfaces in Flex that is open source,
 extensible and fairly comprehensive in its capabilities. I have posted
 the official announcement with some more details and links on my blog,
 so I will point interested parties there: 
 

http://www.returnundefined.com/2007/09/announcing-flexmdi-robust-extensible-mdi-framework-for-adobe-flex/
 
 If you just want to see it in action, here is a direct link to the
 examples explorer: http://www.returnundefined.com/flexmdi/explorer/
 
 Please send us feedback! Questions, comments, complaints, whatever.
 Feel free to do that here or on the related project sites and articles.
 
 Thanks!
 Ben





[flexcoders] Re: Skinned Scrollbar Track now clickable

2007-09-12 Thread Mike Greiner
I see the same behavior and would be interested if you find a solution.

One workaround:

The offending property seems to be trackSkin -- if I comment this out
and leave everything else, the track click behavior goes back to normal.

Mike



[flexcoders] Re: Announcing flexmdi: Robust, extensible MDI framework for Flex

2007-09-12 Thread ben.clinkinbeard
Thanks Dale. The focus management is definitely buggy. In fact, I
probably should have provided a disclaimer but it slipped my mind.
That is definitely an area that will be improved in the near future
but thanks for pointing out a good test case.

Thanks again,
Ben


--- In flexcoders@yahoogroups.com, dbronk [EMAIL PROTECTED] wrote:

 Very nice indeed!  I've always thought the MDI application UI was a
 lost treasure.  I think I have exposed a bug though.  Load the example
 app as normal.  Window 2 has focus.  Close window 2 and I would expect
 Window 1 to gain focus.  Even after click, clicking and dragging, etc.
 window 1, it does not change to a has focus style.
 
 Dale
 
 --- In flexcoders@yahoogroups.com, ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  Hello all, just wanted to make you aware of a project that Brian
  Holmes, Brendan Meutzner and myself just launched. flexmdi is a
  framework for creating MDI interfaces in Flex that is open source,
  extensible and fairly comprehensive in its capabilities. I have posted
  the official announcement with some more details and links on my blog,
  so I will point interested parties there: 
  
 

http://www.returnundefined.com/2007/09/announcing-flexmdi-robust-extensible-mdi-framework-for-adobe-flex/
  
  If you just want to see it in action, here is a direct link to the
  examples explorer: http://www.returnundefined.com/flexmdi/explorer/
  
  Please send us feedback! Questions, comments, complaints, whatever.
  Feel free to do that here or on the related project sites and
articles.
  
  Thanks!
  Ben
 





Re: [flexcoders] Re: File upload in Flex

2007-09-12 Thread Rico Leuthold
To upload files, you could start with this http://weblog.cahlan.com/ 
2006/12/flex-upload-component.html and customize, extend it. The only  
thing they don't show in this component is how to handle the returned  
result. In order to get the result add an UPLOAD_COMPLETE_DATA Event  
listener to the FileReference :


[FileReference].addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,  
onUploadComplete);


... and get the event.data in the onUploadComplete method.

To specify the list of allowed file types for upload, check out this:  
http://livedocs.adobe.com/flex/201/langref/flash/net/FileFilter.html.


_rico

On 12.09.2007, at 15:39, Derrick Grigg wrote:


Stephen,

Check this post

http://www.dgrigg.com/post.cfm/08/02/2007/Flex-and-Flash-file- 
uploading-with-return-data


Derrick

--
Derrick Grigg
www.dgrigg.com

--- In flexcoders@yahoogroups.com, stephen50232 [EMAIL PROTECTED] wrote:

 Hi,

 I've got a new project, which requires that the user can upload
 resources to a system, which other users can access and download
 through the same system.

 The types of documents which can be uploaded through the system will
 include PDFs, Word docs, Excel docs, but this list may increase  
(e.g.

 MP3 files etc).

 I have not seen an example of a Flex system which allows users to
 browse there local PC and upload files. Is it possible and if so  
how?


 Stephen






...
Rico Leuthold
[EMAIL PROTECTED]
+41(0)76 512 05 50
...




[flexcoders] Re: How to converst an XML to AS Object ?

2007-09-12 Thread lytvynyuk
Does anybody have good examples how SimpleXMLDecoder works ?

--- In flexcoders@yahoogroups.com, lytvynyuk [EMAIL PROTECTED] wrote:

 Thank you I kinda knew about that way ;)
 but if my object contains30 fields and also has a bunch of another
 objects, this procedure will be painful  ;)
 
 What about this way:
 
 public function result(event:ResultEvent):void {
 var xmlS:XML = XML(event.result);
 var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true); 
 var xdoc : XMLDocument =  new XMLDocument();
 xdoc.ignoreWhite = true;  
 xdoc.parseXML(xmlS.toXMLString());   
 var ob:Object = decoder.decodeXML(XMLNode(xdoc.firstChild));
 var feed:Album= Album(ob); // Exception here
 }
 
 But this doesn't work for me too ;)



RE: [flexcoders] deleting rows from grid --- need help

2007-09-12 Thread Tracy Spratt
The problem is that deleting items in a collection causes the indexes to
change, thereby confusing you loop.

 

One solution is to delete the items from the end.  There was a thead on
this subject recently, including good code examples.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of siva.flex
Sent: Wednesday, September 12, 2007 8:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] deleting rows from grid --- need help

 

Hi All ,

Need some help in deleting selected rows from grid. I am 
able to add rows to Grid. But unable to delete selected rows from 
Grid. Even user checks multiple rows its deleting only one row at a 
time. And one more problem I am facing is its not retaining the 
values entered by user if I add / delete rows to Grid.

Here is the code what I tried for deleting and adding rows to Grid

public function addOtherIncome():void
{
incomeData.addItem({Charterer:'',incomeDesc:'',incomeAmt:''});
}

public function deleteIncome():void
{
//Alert.show(Inside Delete Item + checkIncome.length );
for(var j:Number=0;jcheckIncome.length;j++)
{
Alert.show(inside of for + checkIncome
[j].selected);
if(checkIncome[j].selected==true)
{
incomeGridRow.height = 0;
incomeData.removeItemAt(j);
}
}

} 

incomeData - name of the data provider
checkIncome - name of the checkbox
incomeGridRow - name of the gridrow

Anybody help me to solve these issues. I tried a lot to solve 
these issues. Thanx in advance

Thanks  Regards,
Siva Kumar

 



[flexcoders] sequencing effects

2007-09-12 Thread grimmwerks
Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this?  I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an array?



[flexcoders] Re: How to get Textinput position?

2007-09-12 Thread flexawesome
great, I see but I was serious how to get a textInput position in
form ( id=textInput ) by click the button?

for example like coding below? huummm


evt.currentTarget.parent.localToGlobal (new
Point(evt.currentTarget.x,evt.target.textInput.y)).y 


Cheers

--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 Assuming that what you want is global coordinates, it's even simpler to
 do
  
 event.currentTarget.localToGlobal(new Point(0, 0)).x
  
 which works because the upper-left of any component is (0, 0) in its own
 local coordinate system.
  
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of flexawesome
 Sent: Tuesday, September 11, 2007 8:32 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: How to get Textinput position?
 
 
 
 you are SO COOL. Thank you so much :)
 
 have a nice day
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Sven Woermann sven.woermann@
 wrote:
 
  Hi, try this. You are basically calling the localToGlobal method on
 the
  parent container of the TextInput and give it the position of the
 TextInput
  relative to it's parent.
  
  event.currentTarget.parent.localToGlobal(new
 Point(event.currentTarget.x,
  event.currentTarget.y)).x
  
  
  
  
  On 9/11/07, flexawesome flexawesome@ wrote:
  
  
   Hi Gordeon,
  
   Thank you so much to reply it as I am new to flex, and don't know
 how
   to use localToGlobal() it in my app below, I am appreciate if you
   can show me the code , that would be great!
  
   THANKS :)
  
  
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com,
 Gordon
   Smith gosmith@ wrote:
   
The x and y properties of a DisplayObject are in the coordinate
   system
of its parent. So you're getting the location of the top-left of
 the
TextInput relative to the top-left of the FormItem. If you want
coordinates in a different coordinate system, use localToGlobal()
   and
globalToLocal().
   
- Gordon
   

   
From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com]
 On
Behalf Of flexawesome
Sent: Monday, September 10, 2007 7:11 PM
To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: How to get Textinput position?
   
   
   
   
humm...parent doesn't work... and I correct the code below..
   
Cheers
   

   
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml 
 
viewSourceURL=srcview/index.html
mx:Script
![CDATA[
   
import mx.core.IFlexDisplayObject;
import mx.core.UIComponent;
import mx.controls.Alert;
   
private function createMsg(event:Event):void {
   
var target:UIComponent = UIComponent(event.currentTarget);
   
var alert:Alert;
   
Alert.show(the X position of LABEL 1 is +event.currentTarget.x,
Show Me, Alert.YES | Alert.NO)
}
   
]]
/mx:Script
   
mx:Panel
mx:Form
mx:FormItem label=Label1
mx:TextInput focusOut=createMsg(event);/
/mx:FormItem
mx:FormItem label=Label2
mx:TextInput/
/mx:FormItem
mx:FormItem label=Label3
mx:TextInput/
/mx:FormItem
/mx:Form
/mx:Panel
   
/mx:Application
   
--- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
 flexcoders%40yahoogroups.commailto:
   flexcoders% flexcoders%25
   40yahoogroups.com
, Alex Harui aharui@ wrote:

 Might be event.currentTarget.parent.x. There is no Label1 in
 your
 sample. Also see localToGlobal



 

 From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
 flexcoders%40yahoogroups.commailto:
   flexcoders% flexcoders%25
   40yahoogroups.com
   
[mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
 flexcoders%40yahoogroups.commailto:
   flexcoders% flexcoders%25
   40yahoogroups.com
] On
 Behalf Of flexawesome
 Sent: Monday, September 10, 2007 11:43 AM
 To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com
 mailto:
   flexcoders% flexcoders%25
   40yahoogroups.com
 Subject: [flexcoders] How to get Textinput position?



 Hi guys :)

 I am working on flex, and looks hard to get the target object x
   and
y
 position. do you have any ideas?

 Cheers  THANKS

 

 ?xml version=1.0?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 

[flexcoders] TileList Binding Issue

2007-09-12 Thread Adnan Doric
Hello all,

I have a TileList binded to an ArrayCollection.

If I add more items to the ArrayCollection the TileList updates, but if 
I try to change an already existing item in the ArrayCollection, the 
TileList doesn't change.

I tried with List component and I don't have this problem, the view is 
correctly updated.

Is there something I'm doing wrong or not doing :) ?


Thank you for your response.


[flexcoders] Re: Using @Resource directive with Moxie

2007-09-12 Thread kramus0
Hi again, 

maybe it is just a simple namespace problem. I am using Cairngorm and
so I have a different namespace for my ServiceLocator where I use the
HTTPService. Here an other code snippet. 

Thanks for your help.

Markus


?xml version=1.0 encoding=utf-8?

cairngorm:ServiceLocator
xmlns:mx=http://www.adobe.com/2006/mxml; 
xmlns:cairngorm=http://www.adobe.com/2006/cairngorm;

mx:HTTPService id=myService  url=@Resource(key='myServiceUrl',
bundle='myServiceBundle')/



The compiler error is on the last line, where it tries to allocate the
Resource. Like I said in the 2.0.1 SDK that was fine.




--- In flexcoders@yahoogroups.com, kramus0 [EMAIL PROTECTED] wrote:

 Hi, 
 
 when I use the 2.0.1 SDK I can use a localized value for the url in a
 HTTPService and it would look like this:
 
 mx:HTTPService id=myService
 url=@Resource(key='myServiceUrl',
 bundle='myServiceBundle')/
 
 But when I try to compile the same code with the Moxie SDK I get an
 error that basically says:
 
 Error: Try to access a not defined property resourceManager. 
 
 (My actual error message is in german language: Error: Zugriff auf
 eine nicht definierte Eigenschaft resourceManager.)
 
 So, what is going wrong? Did anyone have the same problem?
 
 Thanks, Markus





[flexcoders] How do I generate random colors (within a range)?

2007-09-12 Thread ben.clinkinbeard
OK, my hex and bitwise skills are non-existent, so I am probably on
the completely wrong track here, but... I converted a couple of hex
values  to decimal values (11776947 and 10724259) with an online
converter. They each evaluate to a shade of gray (as expected), but
when I generate random values that fall between the two and use them
in the drawing API they are not shades of gray. I'm sure plenty of you
are saying duh, but if you could also suggest a way to randomly
generate differing shades of gray I would be most appreciative.

I suppose the chances of someone having written a RandomGrayGenerator
class is pretty slim, so I am open to more general courses of action
as necessary.

Thanks,
Ben



RE: [flexcoders] How do I generate random colors (within a range)?

2007-09-12 Thread Ely Greenfield
 

 

Grey RGB values have the same byte value in each of the rbg channels.
So your best bet is to store your grey values as single byte hex values

 

myGreys = [0xAA, 0x58, 0x22];

 

then interpolate between those values:

 

var newGreyByte:uint = ((myGreys[0] + (myGreys[1] - myGreys[0]) *
Math.random()) as uint);

 

Then create an rgb value out if that:

 

var newGreyRGB:uint = (newGreyByte  16) + (newGreyByte  8) +
newGreyByte;

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, September 12, 2007 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I generate random colors (within a range)?

 

OK, my hex and bitwise skills are non-existent, so I am probably on
the completely wrong track here, but... I converted a couple of hex
values to decimal values (11776947 and 10724259) with an online
converter. They each evaluate to a shade of gray (as expected), but
when I generate random values that fall between the two and use them
in the drawing API they are not shades of gray. I'm sure plenty of you
are saying duh, but if you could also suggest a way to randomly
generate differing shades of gray I would be most appreciative.

I suppose the chances of someone having written a RandomGrayGenerator
class is pretty slim, so I am open to more general courses of action
as necessary.

Thanks,
Ben

 

image001.jpgimage002.jpg

[flexcoders] A common question with no answer yet - Flex Debugger

2007-09-12 Thread JWOpitz
Hi folks,

I have tried to find this topic posted in the group and the web in
general and tho I find plenty on related cases, I cannot seem to find
the right answer.  So I pose this question to you, my fellow colleagues.

I want to be able to connect the debugger to a swf that has NOT been
launched by the Flex Builder plug-in.  For instance, I want build a
debug version swf locally, deploy it to a server manually (by cp'ing
it there) and then connect the debugger to that swf.  

Used to back in the Flex 1.5 days I remember being able to just click
the 'localHost' button and it would work as expected.  However, I have
not been able to do this with Flex 2 as it just reopens the connection
box and eventually fails out.  

So is this possible?  I apologize if there is indeed a duplicate post
and I happened to miss it.  If so, please post a link.  

Thanks,
J



Re: [flexcoders] How to check to see if an XML element exists

2007-09-12 Thread Scott - FastLane
assuming var itemSource:XML is assigned to the structure below...  I 
think if(itemSource.Media != undefined) should do it.


hth
Scott

kc7cia wrote:


Hi,

I was hoping someone could tell me how to check to see if an XML
element exists in AS3. I have an XML structure that looks like this:

ItemSource component=DAM
ValueCandy/Value
Media caption=Glucose Meter10-372.gif/Media
/ItemSource

I want to be able to check to see if the ItemSource element has a
Media subelement. The following code does not appear to work:

if (node.ItemSource.Media.text() != null)
Alert.show('media');
else
Alert.show('no Media');

It always returns true, regardless of whether or not there is a Media
subelement. Any help would be appreciated. Thanks!

 




[flexcoders] Long time to populate data

2007-09-12 Thread dbarenboym
Hi All.

when i open my flex application it does it very quikly then i have to
login and it takes me to a page with datagrid and populated small
amount of data (3 rows).  login process takes about 3 seconds but then
i sit for almost 5 minutes while it populates that data into the grid.
 If i look at my computer processing it is at 100 precent.  once the
data loads the process goes down to about 2 precent.  what is the
problem and why is it taking such a long time to  load very small
amount of data?  

P.S.  happens both on jrun and tomcat.



[flexcoders] yahoo maps CustomSWFMarker

2007-09-12 Thread thibs73

Hi there,

Anyone know if there is a click event for a CustomSWFMarker in yahoo 
Maps? Just like the onPOIClicked for POIMarker...why am I not using 
POIMarker? Because it seems that I can only add POI Markers by address 
only. I need to be able to add it by Lat  Lon.

To sum  up, I want to add custom makers by Lat  Lon, open a unique 
image when the user clicks on any of them. \

I am having a hard time finding documentation on this.

Any help would be great, 
Thank-you



Re: [flexcoders] How to check to see if an XML element exists

2007-09-12 Thread Patrick Driggett
if( node.ItemSource.hasOwnProperty( Value ) )
{
  // Do stuff
}

On 9/12/07, kc7cia [EMAIL PROTECTED] wrote:

   Hi,

 I was hoping someone could tell me how to check to see if an XML
 element exists in AS3. I have an XML structure that looks like this:

 ItemSource component=DAM
 ValueCandy/Value
 Media caption=Glucose Meter10-372.gif/Media
 /ItemSource

 I want to be able to check to see if the ItemSource element has a
 Media subelement. The following code does not appear to work:

 if (node.ItemSource.Media.text() != null)
 Alert.show('media');
 else
 Alert.show('no Media');

 It always returns true, regardless of whether or not there is a Media
 subelement. Any help would be appreciated. Thanks!

  



Re: [flexcoders] How do I generate random colors (within a range)?

2007-09-12 Thread Patrick Driggett
Ben,

The reason that the values between do not fall into shades of grey is
because the decimal values you have that represent those colors are just
straight conversions from Hexadecimal to Decimal and therefore don't provide
anything meaningful.  To get true shades of grey you basically need each
group of values to represent the two next to them.  I'll try to do a
conversion for you so you might get an idea of how to do this on your own:

0x232323 if we break that into bits we get: 0010 0011 0010 0011 0010 0011. A
way you could do this is just get two random values from 0 - 15.

var i:Number = Math.random( 0, 15 );
var j:Number = Math.random( 0, 15 );
var randomGrey:Number = ( i  20 ) | ( j  16 ) | ( i  12 ) | ( j  8 )
| ( i  4 ) | j;

I haven't tested this at all, I'm just kind of writing it out, but give it a
go and it should get you in the right direction.

Patrick Driggett

On 9/12/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:

   OK, my hex and bitwise skills are non-existent, so I am probably on
 the completely wrong track here, but... I converted a couple of hex
 values to decimal values (11776947 and 10724259) with an online
 converter. They each evaluate to a shade of gray (as expected), but
 when I generate random values that fall between the two and use them
 in the drawing API they are not shades of gray. I'm sure plenty of you
 are saying duh, but if you could also suggest a way to randomly
 generate differing shades of gray I would be most appreciative.

 I suppose the chances of someone having written a RandomGrayGenerator
 class is pretty slim, so I am open to more general courses of action
 as necessary.

 Thanks,
 Ben

  



[flexcoders] Nested Viewstacks - Child stack won't display

2007-09-12 Thread Fred Barrett
Long-time .NET programmer, 2-month noob to Flex. I have an
mx:Application / that wants to have an mx:ViewStack / for the main
site navigation, and then inside of a component page I want to have
another mx:ViewStack / for the specific page/form (it has three
pages to it). 

mx:Application
  mx:ButtonBar dataProvider=stack1 /
  mx:ViewStack id=stack1
mx:Canvas label=Home Page/
fmb:MyComponentPage label=Edit Students /
  /mx:ViewStack
/mx:Application

!-- edit students component --
mx:Canvas
  mx:LinkBar dataProvider=formStack /
  mx:ViewStack id=formStack
fmb:MyFormPage1 label=Form Page 1 /
fmb:MyFormPage2 label=Form Page 2 /
fmb:MyFormPage3 label=Form Page 3 /
  /mx:ViewStack
/mx:Canvas

When I either preview the main.xml application in Design Mode, or Run
the application, the main page content shows up, and the mx:LinkBar
/ from the component page displays, but the content of the child
mx:ViewStack id=formStack / doesn't display.

I have attempted to set the .selectedIndex and .visible properties in
script to force the issue, but no avail.

Ideas are appreciated...I guess I can fall back on an mx:State / for
the child form but don't think that's the right answer.






[flexcoders] Graph with fixed colors

2007-09-12 Thread Fernando Dumont
How I make a graph with fixed colors?

Example:
Example:
root
 group
  catA/cat
  value10/value
 /group
 group
  catB/cat
  value16/value
 /group
 group
  catC/cat
  value4/value
 /group
/root

I want that colors always be red when cat = A, blue when cat = B and yellow
when cat = C.

Who knows to make this?
Regards.
Fernando Dumont


Re: [flexcoders] TileList Binding Issue

2007-09-12 Thread Jon Bradley

Something like the following process:

myCollection.enableAutoUpdate();
myCollection.itemUpdated(someItem,  
someProperty,someOldValue,someNewValue);

myCollection.disableAutoUpdate();
myColleciton.refresh(); // just to be sure

I have it working fine with the itemUpdated and refresh. I usually  
don't bother with the auto update stuff - but it might be needed for  
your scenario.  From what I understand, refresh() should always cause  
a data binding event for the TileList to update it's data.


good luck,

jon


On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:


Hello all,

I have a TileList binded to an ArrayCollection.

If I add more items to the ArrayCollection the TileList updates,  
but if

I try to change an already existing item in the ArrayCollection, the
TileList doesn't change.

I tried with List component and I don't have this problem, the view is
correctly updated.

Is there something I'm doing wrong or not doing :) ?

Thank you for your response




[flexcoders] event for mx:image change

2007-09-12 Thread danprimetse
Hi,

I would like to figure out how to get a notification after an image is
loaded from a source change. I've been trying to see which event gets
fired when I the image changes after I call 

myImage.source = blah.jpg;

myImage does change (displays blah.jpg) but no event gets fired. I'd
like to get notify for each full load of the image object.

I've tried setting a function for the following events: dataChange,
complete, render but none of them seem to work. Can anyone please
suggest an event I could use?

Sample Code:
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute x=-19 y=165
mx:Script
![CDATA[
private function btnLoadImg_Click():void {
myImage.source = blah.jpg;
}

private function AlertLoadComplete():void {
Alert.show(Loaded: From which event will this 
fire?);
}

]]
/mx:Script

mx:Image x=25 y=104 width=192 height=142
themeColor=#0A0A0A id=myImage dataChange=AlertLoadComplete();/
mx:Button x=310 y=118 label=Load Image 1 id=btnLoadImg/

/mx:WindowedApplication


I'm using Flex Builder 3.

Thoughts? Suggestions?

Thanks!



[flexcoders] Re: How do I generate random colors (within a range)?

2007-09-12 Thread ben.clinkinbeard
Hi Ely,

I (mostly) understand the concept in your example but am getting an
error that I can't figure out for the life of me. On the line where
you assign newGreyByte its telling me 1084: Syntax error: expecting
rightparen before myGreys..

Also, shouldn't myGreys[2] be utilized somewhere?

Thanks,
Ben


--- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote:

  
 
  
 
 Grey RGB values have the same byte value in each of the rbg channels.
 So your best bet is to store your grey values as single byte hex values
 
  
 
 myGreys = [0xAA, 0x58, 0x22];
 
  
 
 then interpolate between those values:
 
  
 
 var newGreyByte:uint = ((myGreys[0] + (myGreys[1] - myGreys[0]) *
 Math.random()) as uint);
 
  
 
 Then create an rgb value out if that:
 
  
 
 var newGreyRGB:uint = (newGreyByte  16) + (newGreyByte  8) +
 newGreyByte;
 
  
 
 Ely.
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, September 12, 2007 9:59 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How do I generate random colors (within a range)?
 
  
 
 OK, my hex and bitwise skills are non-existent, so I am probably on
 the completely wrong track here, but... I converted a couple of hex
 values to decimal values (11776947 and 10724259) with an online
 converter. They each evaluate to a shade of gray (as expected), but
 when I generate random values that fall between the two and use them
 in the drawing API they are not shades of gray. I'm sure plenty of you
 are saying duh, but if you could also suggest a way to randomly
 generate differing shades of gray I would be most appreciative.
 
 I suppose the chances of someone having written a RandomGrayGenerator
 class is pretty slim, so I am open to more general courses of action
 as necessary.
 
 Thanks,
 Ben





[flexcoders] Re: A common question with no answer yet - Flex Debugger

2007-09-12 Thread Mike Morearty
Are you saying that (a) you want Flex Builder to launch the browser,
but with a custom URL that you specify, or (b) you don't want Flex
Builder to launch the browser at all -- just connec to an
already-running browser that you launched?  Both are possible.

(a) If you want Flex Builder to launch the browser, but with a custom
URL that you specify, just edit the launch configuration.  Easiest
way to do that is described here:
http://www.morearty.com/blog/2006/05/23/flex-builder-ctrl-click-to-access-a-lanch-configs-properties/
Then, just edit the URL shown in the Debug edit box.

(b) If don't want Flex Builder to launch the browser at all, but just
connect to a browser you already launched manually: This is a hack,
but it works: Go to the same launch configuration dialog mentioned
above, and just set the URL to any old thing (e.g about:blank, or if
that doesn't work, http://www.google.com).  When you click Debug, Flex
Builder will launch a browser at the bogus page; and now, for the next
two minutes, Flex Builder is listening on a socket, waiting for the
Flash player to connect to it.  Just ignore the bogus browser, and go
over to the browser you wanted, and load your swf.  When the Flash
Player starts, it will connect to the socket that Flex Builder is
listening on.

- Mike Morearty
  Adobe Flex Builder team


--- In flexcoders@yahoogroups.com, JWOpitz [EMAIL PROTECTED] wrote:

 Hi folks,
 
 I have tried to find this topic posted in the group and the web in
 general and tho I find plenty on related cases, I cannot seem to find
 the right answer.  So I pose this question to you, my fellow colleagues.
 
 I want to be able to connect the debugger to a swf that has NOT been
 launched by the Flex Builder plug-in.  For instance, I want build a
 debug version swf locally, deploy it to a server manually (by cp'ing
 it there) and then connect the debugger to that swf.  
 
 Used to back in the Flex 1.5 days I remember being able to just click
 the 'localHost' button and it would work as expected.  However, I have
 not been able to do this with Flex 2 as it just reopens the connection
 box and eventually fails out.  
 
 So is this possible?  I apologize if there is indeed a duplicate post
 and I happened to miss it.  If so, please post a link.  
 
 Thanks,
 J





[flexcoders] How to remove Rectangle border from TextInput field

2007-09-12 Thread Patrick Lemiuex
Hello:

Is it possible to do with a style sheet, is a class reference necessary.

Thanks,
Patrick


RE: [flexcoders] Nested Viewstacks - Child stack won't display

2007-09-12 Thread Tracy Spratt
No, ViewStack is good for this.

 

Try one fmb:MyFormPage1 label=Form Page 1 / without the viewstack.

 

Tracy



 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fred Barrett
Sent: Wednesday, September 12, 2007 12:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Nested Viewstacks - Child stack won't display

 

Long-time .NET programmer, 2-month noob to Flex. I have an
mx:Application / that wants to have an mx:ViewStack / for the main
site navigation, and then inside of a component page I want to have
another mx:ViewStack / for the specific page/form (it has three
pages to it). 

mx:Application
mx:ButtonBar dataProvider=stack1 /
mx:ViewStack id=stack1
mx:Canvas label=Home Page/
fmb:MyComponentPage label=Edit Students /
/mx:ViewStack
/mx:Application

!-- edit students component --
mx:Canvas
mx:LinkBar dataProvider=formStack /
mx:ViewStack id=formStack
fmb:MyFormPage1 label=Form Page 1 /
fmb:MyFormPage2 label=Form Page 2 /
fmb:MyFormPage3 label=Form Page 3 /
/mx:ViewStack
/mx:Canvas

When I either preview the main.xml application in Design Mode, or Run
the application, the main page content shows up, and the mx:LinkBar
/ from the component page displays, but the content of the child
mx:ViewStack id=formStack / doesn't display.

I have attempted to set the .selectedIndex and .visible properties in
script to force the issue, but no avail.

Ideas are appreciated...I guess I can fall back on an mx:State / for
the child form but don't think that's the right answer.

 



[flexcoders] Re: How to check to see if an XML element exists

2007-09-12 Thread jer_ela
this should work 

if (node.ItemSource.(hasOwnProperty(Media))


--- In flexcoders@yahoogroups.com, kc7cia [EMAIL PROTECTED] wrote:

 Hi,
 
 I was hoping someone could tell me how to check to see if an XML
 element exists in AS3. I have an XML structure that looks like this:
 
 ItemSource component=DAM
 ValueCandy/Value
 Media caption=Glucose Meter10-372.gif/Media
 /ItemSource
 
 I want to be able to check to see if the ItemSource element has a
 Media subelement. The following code does not appear to work:
 
 if (node.ItemSource.Media.text() != null)
 Alert.show('media');
 else
 Alert.show('no Media');
 
 It always returns true, regardless of whether or not there is a Media
 subelement. Any help would be appreciated. Thanks!





[flexcoders] Re: Issues scrolling a scaled image. Can it be fixed?

2007-09-12 Thread carl_steinhilber
Okay... from the lack of response, I can only assume that it was too
difficult to set up a testbed.  ;-)  So perhaps providing sample
images will make things easier:

http://www.thinkhmh.com/_img/flex/red-block-300x100.jpg
http://www.thinkhmh.com/_img/flex/blue-block-300x200.jpg
http://www.thinkhmh.com/_img/flex/green-block-500x600.jpg

I've tried everything from setting the height of the image to the
contentHeight, to trying to explicitly invalidate the size... and I'm
about to keel over dead from hitting my head on the desk so many times.


Does nobody really have any insight?
Thanks again,
-Carl


--- In flexcoders@yahoogroups.com, carl_steinhilber
[EMAIL PROTECTED] wrote:

 I have a fairly simple Flex 2 app that uses a canvas container to
 scroll the display of a child image element.
 
 Consider the following mxml, with three images: 300x100px, 300x200px,
 and 500x600px. 
 The canvas has:
 - both scroll policies set to auto (thought eventually, horz will be
 set to off
 - fixed with of 316px (300 + the width of the vertical scrollbar)
 
 The child image has:
 - fixed width of 300px
 - maintainAspectRatio set to true
 
 Loading the 300x100px image into the image component results in no
 scrollbars, as expected.
 
 Loading the 300x200px image into the image component results in a
 vertical scrollbar only, as expected, and when the scrollbar is at the
 bottommost position in the track we see the bottommost edge of the
 image, also as expected.
 
 Loading the 500x600px image into the image component results in a
 vertical scrollbar only, again as expected (since the width of the
 image component is set to 300 and scaling occurs), but now as we
 scroll down it goes well beyond the bottom edge of the image, NOT as
 expected.
 
 I need the scrollbar in this case to allow to user to scroll down only
 as far as the bottom edge of the image (just like with the 300x200px
 image).
 
 Is there something I can do to enforce this rule?
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
mx:Script
   ![CDATA[
 private function changePicture(pictNum:int):void{
 switch (pictNum){
 case 1:
   
 imageCroppedImage.source=red-block-300x100.jpg;
 break;
 case 2:
   
 imageCroppedImage.source=blue-block-300x200.jpg;
 break;
 case 3:
   
 imageCroppedImage.source=green-block-500x600.jpg;
 break;
 }
  }
]]
/mx:Script
   
mx:Canvas id=canvasViewPort width=316 height=100
 verticalScrollPolicy=auto horizontalScrollPolicy=auto x=20 y=20
   mx:Image id=imageCroppedImage width=300
 maintainAspectRatio=true / 
/mx:Canvas
 
mx:Button label=Picture 1 (300x100) click=changePicture(1)
 x=20 y=150 /
mx:Button label=Picture 2 (300x200) click=changePicture(2)
 x=20 y=185 /
mx:Button label=Picture 3 (500x600) click=changePicture(3)
 x=20 y=220 /
 /mx:Application
 
 
 Thanks in advance!
 -Carl





RE: [flexcoders] Re: How do I generate random colors (within a range)?

2007-09-12 Thread Ely Greenfield
 

 

That should probably be:

 

Var myGreys:Array = [...];

 

The example code I gave you just showed how to interpolate between two
specific values. I'm assuming that in your code, you've got lots of grey
values, and rules for deciding which two ones you want to interpolate
between.  So You can generalize the code to first decide what the two
values you're using are, and then run the code below.  i.e., I could
have written it as:

 

Var greyOne:uint = 0x38;

Var greyTwo:uint = 0xE3;

 

var newGreyByte:uint = ((greyOne + (greyTwo  - greyOne) *
Math.random()) as uint);



Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, September 12, 2007 11:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How do I generate random colors (within a
range)?

 

Hi Ely,

I (mostly) understand the concept in your example but am getting an
error that I can't figure out for the life of me. On the line where
you assign newGreyByte its telling me 1084: Syntax error: expecting
rightparen before myGreys..

Also, shouldn't myGreys[2] be utilized somewhere?

Thanks,
Ben

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Ely Greenfield [EMAIL PROTECTED] wrote:

 
 
 
 
 Grey RGB values have the same byte value in each of the rbg channels.
 So your best bet is to store your grey values as single byte hex
values
 
 
 
 myGreys = [0xAA, 0x58, 0x22];
 
 
 
 then interpolate between those values:
 
 
 
 var newGreyByte:uint = ((myGreys[0] + (myGreys[1] - myGreys[0]) *
 Math.random()) as uint);
 
 
 
 Then create an rgb value out if that:
 
 
 
 var newGreyRGB:uint = (newGreyByte  16) + (newGreyByte  8) +
 newGreyByte;
 
 
 
 Ely.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of ben.clinkinbeard
 Sent: Wednesday, September 12, 2007 9:59 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] How do I generate random colors (within a
range)?
 
 
 
 OK, my hex and bitwise skills are non-existent, so I am probably on
 the completely wrong track here, but... I converted a couple of hex
 values to decimal values (11776947 and 10724259) with an online
 converter. They each evaluate to a shade of gray (as expected), but
 when I generate random values that fall between the two and use them
 in the drawing API they are not shades of gray. I'm sure plenty of you
 are saying duh, but if you could also suggest a way to randomly
 generate differing shades of gray I would be most appreciative.
 
 I suppose the chances of someone having written a RandomGrayGenerator
 class is pretty slim, so I am open to more general courses of action
 as necessary.
 
 Thanks,
 Ben


 

image001.jpgimage002.jpg

[flexcoders] Re: font in comboBox and Title not the same SIMPLE TEST CASE

2007-09-12 Thread Jeff Schuenke
Thanks very much Alex, that did it!



[flexcoders] event metadata syntax bug?

2007-09-12 Thread jer_ela
In the Creating and extending Flex components manual, the event
metadata  tag syntax to be:

[Event(name=eventName, type=package.EventType)]

If I use that syntax with the quotes around the package name within a
metadata tag in and mxml file in FB3, it breaks code hinting.  If I
remove the quotes, code hinting works and everything compiles correctly.

The exception is if the event type is flash.events.Event in which case
FB reports an error if I remove the quotes but is happy if I remove
the type clause entirely.

Am I likely to run into a future version of the compiler that will
choke on the missing quotes?



[flexcoders] Very slow initial load and an excessive CPU usage during startup

2007-09-12 Thread yevgeniy.galper
I am using Flex front end and Java/Hibernate for DB communication.
When the application starts up fast and a login screen is displayed.
After a user logs in the application logs in I get an Alert within a 
second or two confirming that the login information was correct and a 
user with a certain ID is logged in.  After that the user info page is 
displayed, but it is not populated with user related info. It takes 
several minutes for the application to return and display the data for 
the logged in user.  During this whole period of time CPU usage is at 
100% on the machine.  After the initial wait of several minutes the 
application functions blazing fast.  All kinds of DB retrievals and 
updates are fast, but if another user logs in it takes several minutes 
again. WHY???

I do not have a lot of data in the DB, just some test data, so that 
could not be effecting such a slow initial load.

I have spent several days trying different things, like turning on and 
off lazy loading, but it does not seem to make a difference.

Please, help



[flexcoders] Detecting itemOpen event of a Tree

2007-09-12 Thread nhid
Hi,

I have a tree with multiple root nodes, where the leaves will be populated
only when I click on the folder icon using the itemOpen event.  That call
needs to pass the information of that particular root node to the backend,
how do I detect which root node I clicked?

Thank you!


RE: [flexcoders] sequencing effects

2007-09-12 Thread Mike Krotscheck
If you set up a transition to said state that contains AddChild
directives, they will occur in the order and with the timing configured.

 

Michael Krotscheck

Senior Developer



RESOURCE INTERACTIVE

http://www.resource.com/ www.resource.com

614 621 2888  main

614 410 3195  direct

412 726 8087  mobile

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Wednesday, September 12, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sequencing effects

 

Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this? I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an array?

 



[flexcoders] Decorator Pattern 101

2007-09-12 Thread Claudia Barnal
I believe I might be missing something with the Decorator Pattern.
I've tried to get a simple example to work, but I get too mixed up
with all the abstracts and what not.

Here's what I'm trying to do:

Extend a Button and add some functionality to it gotten from another
class (non visual). From what I can understand, this is what the
Decorator Pattern is for.

In pseudo code this is the basic functionality I want:

class JuiceMaster
{
public function makeJuice(type:String):void
{
trace(Happily making, type,  juice!, Tralalala!);
}
}

class JuiceMaker extends Button
{
public function JuiceMaker()
{
Super();
makeJuice(apple);
}
}

And in MXML, I should be able to do something like this:

JuiceMaker id=myJuiceMaker click=myJuiceMaker.makeJuice('orange') /

Of course this example isn't going into any detail, and doesn't make
much sense, but this is somewhat my need.

Any explicit explanation on how to get something like this to work
with the Decorator Pattern is greatly appreciated.

Thanks!


[flexcoders] Running Executables from AIR

2007-09-12 Thread Claudia Barnal
Is it possible to run executables or command lines from an AIR
application, if so... any pointers to where that procedure is
explained?

Thanks!
Claudia


[flexcoders] Re: yahoo maps CustomSWFMarker

2007-09-12 Thread Abyss Knight
I actually am having the same documentation issues, but this might
help you:

latLonController.addMarkerByLatLon('CustomPOIMarker',dp[i].lat,
dp[i].lon,{index:index,title:dp[i].shortName, description:
description, markerColor: Number('0x3366CC'), strokeColor:
Number('0xCEE9FF')});   

Basically, it uses the latLonController to add CustomPOIMarker.
Problem is, the response will not give you a reference. I hacked
around it using the title of the marker as an index to the data array.

Hope that helps,
- William

--- In flexcoders@yahoogroups.com, thibs73 [EMAIL PROTECTED] wrote:

 
 Hi there,
 
 Anyone know if there is a click event for a CustomSWFMarker in yahoo 
 Maps? Just like the onPOIClicked for POIMarker...why am I not using 
 POIMarker? Because it seems that I can only add POI Markers by address 
 only. I need to be able to add it by Lat  Lon.
 
 To sum  up, I want to add custom makers by Lat  Lon, open a unique 
 image when the user clicks on any of them. \
 
 I am having a hard time finding documentation on this.
 
 Any help would be great, 
 Thank-you





RE: [flexcoders] Detecting itemOpen event of a Tree

2007-09-12 Thread Tracy Spratt
Tree.selectedItem

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nhid
Sent: Wednesday, September 12, 2007 3:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Detecting itemOpen event of a Tree

 

Hi,

 

I have a tree with multiple root nodes, where the leaves will be
populated only when I click on the folder icon using the itemOpen event.
That call needs to pass the information of that particular root node to
the backend, how do I detect which root node I clicked? 

 

Thank you!

 



RE: [flexcoders] Detecting itemOpen event of a Tree

2007-09-12 Thread Tracy Spratt
Hmm, maybe not.  But the itemOpen event object probably has a reference
to the item.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, September 12, 2007 3:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Detecting itemOpen event of a Tree

 

Tree.selectedItem

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nhid
Sent: Wednesday, September 12, 2007 3:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Detecting itemOpen event of a Tree

 

Hi,

 

I have a tree with multiple root nodes, where the leaves will be
populated only when I click on the folder icon using the itemOpen event.
That call needs to pass the information of that particular root node to
the backend, how do I detect which root node I clicked? 

 

Thank you!

 



RE: [flexcoders] Very slow initial load and an excessive CPU usage during startup

2007-09-12 Thread Tracy Spratt
Did you set creationPolicy=all anywhere?

 

time the initialization functionality to determine if the issue is data
transfer (doubtful) or rendering(probable)

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yevgeniy.galper
Sent: Wednesday, September 12, 2007 2:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Very slow initial load and an excessive CPU usage
during startup

 

I am using Flex front end and Java/Hibernate for DB communication.
When the application starts up fast and a login screen is displayed.
After a user logs in the application logs in I get an Alert within a 
second or two confirming that the login information was correct and a 
user with a certain ID is logged in. After that the user info page is 
displayed, but it is not populated with user related info. It takes 
several minutes for the application to return and display the data for 
the logged in user. During this whole period of time CPU usage is at 
100% on the machine. After the initial wait of several minutes the 
application functions blazing fast. All kinds of DB retrievals and 
updates are fast, but if another user logs in it takes several minutes 
again. WHY???

I do not have a lot of data in the DB, just some test data, so that 
could not be effecting such a slow initial load.

I have spent several days trying different things, like turning on and 
off lazy loading, but it does not seem to make a difference.

Please, help

 



Re: [flexcoders] Re: How to converst an XML to AS Object ?

2007-09-12 Thread Troy Gilbert
 Does anybody have good examples how SimpleXMLDecoder works ?

I've never found a good one. Senocular has a library called
XMLDefinition (google it). I've not looked at it too much, but it
superficially appears to do what you're looking for.

I don't like the idea of passing the XML into the object for it to
self-populate (or its counterpart spitting out a piece of XML for
serialization). In my mind, serialization (which is what this is) is a
related but independent class from the model itself. Of course, that's
not a weird suggestion... its how Java implements serialization and
how AS3 does it generically as well. Though frustratingly these
dynamic languages don't provide general purpose API for doing it with
strong typing.

Come on, Adobe, XML is the lingua franca of the web (if not of
business software) and its a native type in AS3. There should be
trivial, native serialization of objects with strong types to and from
XML (in the same way that there is for the, ahem, proprietary AMF
format).

Troy.


Re: [flexcoders] TileList Binding Issue

2007-09-12 Thread Adnan Doric
I tried this with no success, my TileList items are still not updated. 
Maybe something is broken in TileList binding.

Thank you :)

Jon Bradley wrote:
 Something like the following process:

 myCollection.enableAutoUpdate();
 myCollection.itemUpdated(someItem, 
 someProperty,someOldValue,someNewValue);
 myCollection.disableAutoUpdate();
 myColleciton.refresh(); // just to be sure

 I have it working fine with the itemUpdated and refresh. I usually 
 don't bother with the auto update stuff - but it might be needed for 
 your scenario.  From what I understand, refresh() should always cause 
 a data binding event for the TileList to update it's data.

 good luck,

 jon


 On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:

 Hello all,

 I have a TileList binded to an ArrayCollection.

 If I add more items to the ArrayCollection the TileList updates, but if
 I try to change an already existing item in the ArrayCollection, the
 TileList doesn't change.

 I tried with List component and I don't have this problem, the view is
 correctly updated.

 Is there something I'm doing wrong or not doing :) ?

 Thank you for your response

  



Re: [flexcoders] Binding component variable to application variable?

2007-09-12 Thread grimmwerks


On Aug 13, 2007, at 12:10 PM, Alex Harui wrote:


Sorry, {Application.application.mainVariable}


I'm trying to have  a TitleWindow's close call a main application  --  
ie close={Application.application.closeWindow()} -- but I'm getting  
'acces of undefined property 'Application'.


I have to do something like this, as this component and its  
TitleWindow is not added til a later state.

Re: [flexcoders] Decorator Pattern 101

2007-09-12 Thread Michael Schmalle
Hi,

You can't decorate a UIComponent since it is a DisplayObject and needs to be
added to the display list.

You have to either us composition or subclass Button and use an interface
and pass the class to decorate the Button with.

JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
myJuiceMaker.makeJuice('orange') /


class JuiceMaster
 implemented IJuiceMaker
{
   public function makeJuice(type:String):void
   {
  trace(Happily making, type, juice!, Tralalala!);
   }
}

public class JuiceMaker
  extends Button
  implemented IJuiceMaker
{

   private var _makerClass:Class;
   private var makerImpl:IJuiceMaster;

   public function set makerClass(value:Class):void
   {
   _makerClass = value;
   makerImpl = new _makerClass();
   }

   public function set makerClass():Class
   {
   return makerImpl;
   }

   public function JuiceMaker()
   {
  super();
   }

   public function makeJuice(type:String):void
   {
  if (makerImpl is IJuiceMaker)
 makerImpl.makeJuice(type);
   }
}


public interface IJuiceMaker
{
function makeJuice(type:String):void;
}


The above is something that would help what you are trying to achieve with
display object.

You could also drop the interfaces and use concrete types but hey, if your
asking about decorators, your asking about design patterns. ;-)

Peace, Mike

On 9/12/07, Claudia Barnal [EMAIL PROTECTED] wrote:

   I believe I might be missing something with the Decorator Pattern.
 I've tried to get a simple example to work, but I get too mixed up
 with all the abstracts and what not.

 Here's what I'm trying to do:

 Extend a Button and add some functionality to it gotten from another
 class (non visual). From what I can understand, this is what the
 Decorator Pattern is for.

 In pseudo code this is the basic functionality I want:

 class JuiceMaster
 {
 public function makeJuice(type:String):void
 {
 trace(Happily making, type, juice!, Tralalala!);
 }
 }

 class JuiceMaker extends Button
 {
 public function JuiceMaker()
 {
 Super();
 makeJuice(apple);
 }
 }

 And in MXML, I should be able to do something like this:

 JuiceMaker id=myJuiceMaker click=myJuiceMaker.makeJuice('orange') /

 Of course this example isn't going into any detail, and doesn't make
 much sense, but this is somewhat my need.

 Any explicit explanation on how to get something like this to work
 with the Decorator Pattern is greatly appreciated.

 Thanks!
  




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

Blog - Flex2Components
http://www.flex2components.com

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


Re: [flexcoders] Decorator Pattern 101

2007-09-12 Thread Michael Schmalle
Oh yeah

JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
myJuiceMaker.makeJuice('orange') /

is supposed to be;

JuiceMaker id=myJuiceMaker makerClass={JuiceMaster} click=
myJuiceMaker.makeJuice('orange') /

On 9/12/07, Michael Schmalle [EMAIL PROTECTED] wrote:

 Hi,

 You can't decorate a UIComponent since it is a DisplayObject and needs to
 be added to the display list.

 You have to either us composition or subclass Button and use an interface
 and pass the class to decorate the Button with.

 JuiceMaker id=myJuiceMaker decorator={JuiceMaster} click=
 myJuiceMaker.makeJuice('orange') /


 class JuiceMaster
  implemented IJuiceMaker
 {
public function makeJuice(type:String):void
{
   trace(Happily making, type, juice!, Tralalala!);
}
 }

 public class JuiceMaker
   extends Button
   implemented IJuiceMaker
 {

private var _makerClass:Class;
private var makerImpl:IJuiceMaster;

public function set makerClass(value:Class):void
{
_makerClass = value;
makerImpl = new _makerClass();
}

public function set makerClass():Class
{
return makerImpl;
}

public function JuiceMaker()
{
   super();
}

public function makeJuice(type:String):void
{
   if (makerImpl is IJuiceMaker)
  makerImpl.makeJuice(type);
}
 }


 public interface IJuiceMaker
 {
 function makeJuice(type:String):void;
 }


 The above is something that would help what you are trying to achieve with
 display object.

 You could also drop the interfaces and use concrete types but hey, if your
 asking about decorators, your asking about design patterns. ;-)

 Peace, Mike

 On 9/12/07, Claudia Barnal [EMAIL PROTECTED] wrote:
 
I believe I might be missing something with the Decorator Pattern.
  I've tried to get a simple example to work, but I get too mixed up
  with all the abstracts and what not.
 
  Here's what I'm trying to do:
 
  Extend a Button and add some functionality to it gotten from another
  class (non visual). From what I can understand, this is what the
  Decorator Pattern is for.
 
  In pseudo code this is the basic functionality I want:
 
  class JuiceMaster
  {
  public function makeJuice(type:String):void
  {
  trace(Happily making, type, juice!, Tralalala!);
  }
  }
 
  class JuiceMaker extends Button
  {
  public function JuiceMaker()
  {
  Super();
  makeJuice(apple);
  }
  }
 
  And in MXML, I should be able to do something like this:
 
  JuiceMaker id=myJuiceMaker click=myJuiceMaker.makeJuice('orange')
  /
 
  Of course this example isn't going into any detail, and doesn't make
  much sense, but this is somewhat my need.
 
  Any explicit explanation on how to get something like this to work
  with the Decorator Pattern is greatly appreciated.
 
  Thanks!
   
 



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

 Blog - Flex2Components
 http://www.flex2components.com

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




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

Blog - Flex2Components
http://www.flex2components.com

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


Re: SPAM-LOW: [flexcoders] Running Executables from AIR

2007-09-12 Thread Jeffry Houser
Short answer: No

  But, google on WebORB AIR Edition and/or the Artemis Project.

  Also take a look at the ApolloCoders Yahoo group

Claudia Barnal wrote:
 
 
 Is it possible to run executables or command lines from an AIR
 application, if so... any pointers to where that procedure is
 explained?
 
 Thanks!
 Claudia
 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



[flexcoders] Re: CData inside XML object

2007-09-12 Thread discoguy77
Ignoring whitespace isn't a good option, because my server-side 
program doesn't ignore whitespace.

The script you wrote causes a parse error, because the script itself 
is in a CDATA section.

--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] 
wrote:

 Look at XML.ignoreWhitespace (
 http://livedocs.adobe.com/flex/201/langref/XML.html).
 
 Also, would think you would be able to create a cdata node by doing
 something like this:
 var cdata:XML = new XML(![CDATA[ + s  + ]]);
 
 - Dan Freiman
 
 On 9/7/07, discoguy77 [EMAIL PROTECTED] wrote:
 
Hello,
  I am saving some text from a string into a XML element.
  For example:
 
  var s:String = Hello ;
  var xml:XML = root{s}/root;
 
  I would like the following to happen:
  trace(xml); // prints Hello  (without quotes)
 
  Unfortunately, E4X trims the whitespace. I would like my XML 
object
  to be root![CDATA[{s}]]/root so that the space (maybe?)
  wouldn't be trimmed, but I cannot use a CDATA block since it 
occurs
  inside a mx:Script![CDATA[ ... ]]/mx:Script already.
 
  Is there a way to add a CDATA block to an E4X XML object?
 
  P.S. As a workaround, I can escape() the string before adding it,
  and unescape() afterwards, but this seems ugly and loses the 
human-
  readability.
 
   
 





[flexcoders] Re: Very slow initial load and an excessive CPU usage during startup

2007-09-12 Thread yevgeniy.galper
I did search for creationPolicy=all in all files, but I did not 
find anything, so I believe creationPolicy is not set to all.

How would I go about timing the initialization functionality?

Thanks,
Yevgeniy

--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 Did you set creationPolicy=all anywhere?
 
  
 
 time the initialization functionality to determine if the issue is 
data
 transfer (doubtful) or rendering(probable)
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of yevgeniy.galper
 Sent: Wednesday, September 12, 2007 2:58 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Very slow initial load and an excessive CPU 
usage
 during startup
 
  
 
 I am using Flex front end and Java/Hibernate for DB communication.
 When the application starts up fast and a login screen is displayed.
 After a user logs in the application logs in I get an Alert within 
a 
 second or two confirming that the login information was correct and 
a 
 user with a certain ID is logged in. After that the user info page 
is 
 displayed, but it is not populated with user related info. It takes 
 several minutes for the application to return and display the data 
for 
 the logged in user. During this whole period of time CPU usage is 
at 
 100% on the machine. After the initial wait of several minutes the 
 application functions blazing fast. All kinds of DB retrievals and 
 updates are fast, but if another user logs in it takes several 
minutes 
 again. WHY???
 
 I do not have a lot of data in the DB, just some test data, so that 
 could not be effecting such a slow initial load.
 
 I have spent several days trying different things, like turning on 
and 
 off lazy loading, but it does not seem to make a difference.
 
 Please, help





RE: [flexcoders] Re: How to get Textinput position?

2007-09-12 Thread Gordon Smith
I wish I could understand what you don't understand. Here's a complete
working example.

- Gordon

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:Script
![CDATA[
 
import mx.controls.Alert;
  
private function createMsg(event:Event):void
{
var topLeft:Point = new Point(0, 0);
topLeft = event.currentTarget.localToGlobal(topLeft);
Alert.show(the X position of the top left of LABEL 1 in
global coordinates is  + topLeft.x, Show Me, Alert.YES | Alert.NO);
}

]]
 /mx:Script

mx:Panel
mx:Form
mx:FormItem label=Label1
mx:TextInput focusOut=createMsg(event);/
/mx:FormItem
mx:FormItem label=Label2
mx:TextInput/
/mx:FormItem
mx:FormItem label=Label3
mx:TextInput/
/mx:FormItem
/mx:Form
/mx:Panel

/mx:Application



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Wednesday, September 12, 2007 9:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to get Textinput position?



great, I see but I was serious how to get a textInput position in
form ( id=textInput ) by click the button?

for example like coding below? huummm

evt.currentTarget.parent.localToGlobal (new
Point(evt.currentTarget.x,evt.target.textInput.y)).y 

Cheers

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Gordon Smith [EMAIL PROTECTED] wrote:

 Assuming that what you want is global coordinates, it's even simpler
to
 do
 
 event.currentTarget.localToGlobal(new Point(0, 0)).x
 
 which works because the upper-left of any component is (0, 0) in its
own
 local coordinate system.
 
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of flexawesome
 Sent: Tuesday, September 11, 2007 8:32 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: How to get Textinput position?
 
 
 
 you are SO COOL. Thank you so much :)
 
 have a nice day
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Sven Woermann sven.woermann@
 wrote:
 
  Hi, try this. You are basically calling the localToGlobal method on
 the
  parent container of the TextInput and give it the position of the
 TextInput
  relative to it's parent.
  
  event.currentTarget.parent.localToGlobal(new
 Point(event.currentTarget.x,
  event.currentTarget.y)).x
  
  
  
  
  On 9/11/07, flexawesome flexawesome@ wrote:
  
  
   Hi Gordeon,
  
   Thank you so much to reply it as I am new to flex, and don't know
 how
   to use localToGlobal() it in my app below, I am appreciate if you
   can show me the code , that would be great!
  
   THANKS :)
  
  
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com,
 Gordon
   Smith gosmith@ wrote:
   
The x and y properties of a DisplayObject are in the coordinate
   system
of its parent. So you're getting the location of the top-left of
 the
TextInput relative to the top-left of the FormItem. If you want
coordinates in a different coordinate system, use
localToGlobal()
   and
globalToLocal().
   
- Gordon
   

   
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com
   [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com]
 On
Behalf Of flexawesome
Sent: Monday, September 10, 2007 7:11 PM
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: How to get Textinput position?
   
   
   
   
humm...parent doesn't work... and I correct the code below..
   
Cheers
   

   
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml  
http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml  
 
viewSourceURL=srcview/index.html
mx:Script
![CDATA[
   
import mx.core.IFlexDisplayObject;
import mx.core.UIComponent;
import mx.controls.Alert;
   
private function createMsg(event:Event):void {
   
var target:UIComponent = UIComponent(event.currentTarget);
   
var alert:Alert;
   
Alert.show(the X position of LABEL 1 is
+event.currentTarget.x,
Show Me, Alert.YES | 

RE: [flexcoders] Re: Very slow initial load and an excessive CPU usage during startup

2007-09-12 Thread Alex Harui
If you're using Moxie, the next beta will have a performance profiler.

 

In 2.x, you can listen to LayoutManager for updateComplete events and
see how many you get and how far apart they are.  If you get a lot of
them, then something in your app is constantly invalidating the UI and
you have to figure out what and where.

 

If you get only a few, maybe you are receiving a huge chunk of data from
the server that needs processing/conversion.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yevgeniy.galper
Sent: Wednesday, September 12, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Very slow initial load and an excessive CPU
usage during startup

 

I did search for creationPolicy=all in all files, but I did not 
find anything, so I believe creationPolicy is not set to all.

How would I go about timing the initialization functionality?

Thanks,
Yevgeniy

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Did you set creationPolicy=all anywhere?
 
 
 
 time the initialization functionality to determine if the issue is 
data
 transfer (doubtful) or rendering(probable)
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of yevgeniy.galper
 Sent: Wednesday, September 12, 2007 2:58 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Very slow initial load and an excessive CPU 
usage
 during startup
 
 
 
 I am using Flex front end and Java/Hibernate for DB communication.
 When the application starts up fast and a login screen is displayed.
 After a user logs in the application logs in I get an Alert within 
a 
 second or two confirming that the login information was correct and 
a 
 user with a certain ID is logged in. After that the user info page 
is 
 displayed, but it is not populated with user related info. It takes 
 several minutes for the application to return and display the data 
for 
 the logged in user. During this whole period of time CPU usage is 
at 
 100% on the machine. After the initial wait of several minutes the 
 application functions blazing fast. All kinds of DB retrievals and 
 updates are fast, but if another user logs in it takes several 
minutes 
 again. WHY???
 
 I do not have a lot of data in the DB, just some test data, so that 
 could not be effecting such a slow initial load.
 
 I have spent several days trying different things, like turning on 
and 
 off lazy loading, but it does not seem to make a difference.
 
 Please, help


 



RE: [flexcoders] TileList Binding Issue

2007-09-12 Thread Alex Harui
Do you have a custom renderer?  Maybe you can post its code.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adnan Doric
Sent: Wednesday, September 12, 2007 12:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TileList Binding Issue

 

I tried this with no success, my TileList items are still not updated. 
Maybe something is broken in TileList binding.

Thank you :)

Jon Bradley wrote:
 Something like the following process:

 myCollection.enableAutoUpdate();
 myCollection.itemUpdated(someItem, 
 someProperty,someOldValue,someNewValue);
 myCollection.disableAutoUpdate();
 myColleciton.refresh(); // just to be sure

 I have it working fine with the itemUpdated and refresh. I usually 
 don't bother with the auto update stuff - but it might be needed for 
 your scenario. From what I understand, refresh() should always cause 
 a data binding event for the TileList to update it's data.

 good luck,

 jon


 On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote:

 Hello all,

 I have a TileList binded to an ArrayCollection.

 If I add more items to the ArrayCollection the TileList updates, but
if
 I try to change an already existing item in the ArrayCollection, the
 TileList doesn't change.

 I tried with List component and I don't have this problem, the view
is
 correctly updated.

 Is there something I'm doing wrong or not doing :) ?

 Thank you for your response

 

 



RE: [flexcoders] Re: Issues scrolling a scaled image. Can it be fixed?

2007-09-12 Thread Alex Harui
I'd check to see what the Image is reporting as measuredHeight.  It
might be wrong and you can subclass and fix it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of carl_steinhilber
Sent: Wednesday, September 12, 2007 11:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Issues scrolling a scaled image. Can it be
fixed?

 

Okay... from the lack of response, I can only assume that it was too
difficult to set up a testbed. ;-) So perhaps providing sample
images will make things easier:

http://www.thinkhmh.com/_img/flex/red-block-300x100.jpg
http://www.thinkhmh.com/_img/flex/red-block-300x100.jpg 
http://www.thinkhmh.com/_img/flex/blue-block-300x200.jpg
http://www.thinkhmh.com/_img/flex/blue-block-300x200.jpg 
http://www.thinkhmh.com/_img/flex/green-block-500x600.jpg
http://www.thinkhmh.com/_img/flex/green-block-500x600.jpg 

I've tried everything from setting the height of the image to the
contentHeight, to trying to explicitly invalidate the size... and I'm
about to keel over dead from hitting my head on the desk so many times.

Does nobody really have any insight?
Thanks again,
-Carl

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, carl_steinhilber
[EMAIL PROTECTED] wrote:

 I have a fairly simple Flex 2 app that uses a canvas container to
 scroll the display of a child image element.
 
 Consider the following mxml, with three images: 300x100px, 300x200px,
 and 500x600px. 
 The canvas has:
 - both scroll policies set to auto (thought eventually, horz will be
 set to off
 - fixed with of 316px (300 + the width of the vertical scrollbar)
 
 The child image has:
 - fixed width of 300px
 - maintainAspectRatio set to true
 
 Loading the 300x100px image into the image component results in no
 scrollbars, as expected.
 
 Loading the 300x200px image into the image component results in a
 vertical scrollbar only, as expected, and when the scrollbar is at the
 bottommost position in the track we see the bottommost edge of the
 image, also as expected.
 
 Loading the 500x600px image into the image component results in a
 vertical scrollbar only, again as expected (since the width of the
 image component is set to 300 and scaling occurs), but now as we
 scroll down it goes well beyond the bottom edge of the image, NOT as
 expected.
 
 I need the scrollbar in this case to allow to user to scroll down only
 as far as the bottom edge of the image (just like with the 300x200px
 image).
 
 Is there something I can do to enforce this rule?
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
 layout=absolute
 mx:Script
 ![CDATA[
 private function changePicture(pictNum:int):void{
 switch (pictNum){
 case 1:
 imageCroppedImage.source=red-block-300x100.jpg;
 break;
 case 2:
 imageCroppedImage.source=blue-block-300x200.jpg;
 break;
 case 3:
 imageCroppedImage.source=green-block-500x600.jpg;
 break;
 }
 }
 ]]
 /mx:Script
 
 mx:Canvas id=canvasViewPort width=316 height=100
 verticalScrollPolicy=auto horizontalScrollPolicy=auto x=20
y=20
 mx:Image id=imageCroppedImage width=300
 maintainAspectRatio=true / 
 /mx:Canvas
 
 mx:Button label=Picture 1 (300x100) click=changePicture(1)
 x=20 y=150 /
 mx:Button label=Picture 2 (300x200) click=changePicture(2)
 x=20 y=185 /
 mx:Button label=Picture 3 (500x600) click=changePicture(3)
 x=20 y=220 /
 /mx:Application
 
 
 Thanks in advance!
 -Carl


 



RE: [flexcoders] How to remove Rectangle border from TextInput field

2007-09-12 Thread Alex Harui
borderStyle=none?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Patrick Lemiuex
Sent: Wednesday, September 12, 2007 11:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to remove Rectangle border from TextInput
field

 

Hello:

Is it possible to do with a style sheet, is a class reference necessary.

Thanks,
Patrick

 



RE: [flexcoders] event for mx:image change

2007-09-12 Thread Alex Harui
complete event.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danprimetse
Sent: Wednesday, September 12, 2007 11:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] event for mx:image change

 

Hi,

I would like to figure out how to get a notification after an image is
loaded from a source change. I've been trying to see which event gets
fired when I the image changes after I call 

myImage.source = blah.jpg;

myImage does change (displays blah.jpg) but no event gets fired. I'd
like to get notify for each full load of the image object.

I've tried setting a function for the following events: dataChange,
complete, render but none of them seem to work. Can anyone please
suggest an event I could use?

Sample Code:
?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute x=-19 y=165
mx:Script
![CDATA[
private function btnLoadImg_Click():void {
myImage.source = blah.jpg;
}

private function AlertLoadComplete():void {
Alert.show(Loaded: From which event will this fire?);
}

]]
/mx:Script

mx:Image x=25 y=104 width=192 height=142
themeColor=#0A0A0A id=myImage dataChange=AlertLoadComplete();/
mx:Button x=310 y=118 label=Load Image 1 id=btnLoadImg/

/mx:WindowedApplication

I'm using Flex Builder 3.

Thoughts? Suggestions?

Thanks!

 



RE: [flexcoders] Re: Very slow initial load and an excessive CPU usage during startup

2007-09-12 Thread Gordon Smith
 It takes several minutes for the application to return and display
the data for the logged in user.
 
 determine if the issue is data transfer (doubtful) or
rendering(probable)
 
First be certain that the initial data transfer is quick. Put a
breakpoint in the result handler and see whether you hit it quickly.
 
What kind of UI elements, and how many of them, are you creating to
render the user data?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yevgeniy.galper
Sent: Wednesday, September 12, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Very slow initial load and an excessive CPU
usage during startup



I did search for creationPolicy=all in all files, but I did not 
find anything, so I believe creationPolicy is not set to all.

How would I go about timing the initialization functionality?

Thanks,
Yevgeniy

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Did you set creationPolicy=all anywhere?
 
 
 
 time the initialization functionality to determine if the issue is 
data
 transfer (doubtful) or rendering(probable)
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of yevgeniy.galper
 Sent: Wednesday, September 12, 2007 2:58 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Very slow initial load and an excessive CPU 
usage
 during startup
 
 
 
 I am using Flex front end and Java/Hibernate for DB communication.
 When the application starts up fast and a login screen is displayed.
 After a user logs in the application logs in I get an Alert within 
a 
 second or two confirming that the login information was correct and 
a 
 user with a certain ID is logged in. After that the user info page 
is 
 displayed, but it is not populated with user related info. It takes 
 several minutes for the application to return and display the data 
for 
 the logged in user. During this whole period of time CPU usage is 
at 
 100% on the machine. After the initial wait of several minutes the 
 application functions blazing fast. All kinds of DB retrievals and 
 updates are fast, but if another user logs in it takes several 
minutes 
 again. WHY???
 
 I do not have a lot of data in the DB, just some test data, so that 
 could not be effecting such a slow initial load.
 
 I have spent several days trying different things, like turning on 
and 
 off lazy loading, but it does not seem to make a difference.
 
 Please, help




 


RE: [flexcoders] Long time to populate data

2007-09-12 Thread Alex Harui
5 minutes to populate 3 rows?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dbarenboym
Sent: Wednesday, September 12, 2007 8:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Long time to populate data

 

Hi All.

when i open my flex application it does it very quikly then i have to
login and it takes me to a page with datagrid and populated small
amount of data (3 rows). login process takes about 3 seconds but then
i sit for almost 5 minutes while it populates that data into the grid.
If i look at my computer processing it is at 100 precent. once the
data loads the process goes down to about 2 precent. what is the
problem and why is it taking such a long time to load very small
amount of data? 

P.S. happens both on jrun and tomcat.

 



RE: [flexcoders] Nested Viewstacks - Child stack won't display

2007-09-12 Thread Alex Harui
What does MyFormPage look like?  Maybe they aren't reporting good sizes?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Fred Barrett
Sent: Wednesday, September 12, 2007 9:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Nested Viewstacks - Child stack won't display

 

Long-time .NET programmer, 2-month noob to Flex. I have an
mx:Application / that wants to have an mx:ViewStack / for the main
site navigation, and then inside of a component page I want to have
another mx:ViewStack / for the specific page/form (it has three
pages to it). 

mx:Application
mx:ButtonBar dataProvider=stack1 /
mx:ViewStack id=stack1
mx:Canvas label=Home Page/
fmb:MyComponentPage label=Edit Students /
/mx:ViewStack
/mx:Application

!-- edit students component --
mx:Canvas
mx:LinkBar dataProvider=formStack /
mx:ViewStack id=formStack
fmb:MyFormPage1 label=Form Page 1 /
fmb:MyFormPage2 label=Form Page 2 /
fmb:MyFormPage3 label=Form Page 3 /
/mx:ViewStack
/mx:Canvas

When I either preview the main.xml application in Design Mode, or Run
the application, the main page content shows up, and the mx:LinkBar
/ from the component page displays, but the content of the child
mx:ViewStack id=formStack / doesn't display.

I have attempted to set the .selectedIndex and .visible properties in
script to force the issue, but no avail.

Ideas are appreciated...I guess I can fall back on an mx:State / for
the child form but don't think that's the right answer.

 



RE: [flexcoders] Re: modules httpservice

2007-09-12 Thread Alex Harui
Could it have been loaded twice when in same project?  Usually these
errors have to do with class collisions between two separate modules.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of keithtucci
Sent: Wednesday, September 12, 2007 6:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: modules  httpservice

 

thanks for the feedback so far...

my orginal post was referncing a single project with both the module 
and the calling application in the same project. this scenario is 
what caused the error. 

if i now create a new project and call the orginal module from the 
new project (the module is in the same domain but not in the same 
directory as the calling swf) then everything works just fine. 

i am not sure if that changes your assesment...

any thoughts...?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 I think the original poster is hitting a shared code issue. 
HTTPService
 might be in two different modules? If putting a dummy HTTPService 
in
 the main app makes it go away, then that's what it is.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of grimmwerks
 Sent: Tuesday, September 11, 2007 9:31 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] modules  httpservice
 
 
 
 I'm getting the same error now; it's been working fine for awhile; 
I'd
 uninstalled and now just reinstalled the flash plugin:
 
 
 
 TypeError: Error #1009: Cannot access a property or method of 
a
 null object reference.
 
 at mx.effects.effectClasses::ZoomInstance/play
()
 
 at mx.effects::EffectInstance/startEffect()
 
 at
 mx.effects.effectClasses::ParallelInstance/play()
 
 at mx.effects::EffectInstance/startEffect()
 
 at mx.effects::Effect/play()
 
 at mx.core::UIComponent/::commitCurrentState()
 
 at
 mx.core::UIComponent/::creationCompleteHandler()
 
 at
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
en
 tFunction()
 
 at flash.events::EventDispatcher/dispatchEvent
()
 
 at mx.core::UIComponent/dispatchEvent()
 
 at mx.core::UIComponent/set initialized()
 
 at
 mx.managers::LayoutManager/::doPhasedInstantiation()
 
 at mx.managers::LayoutManager/validateNow()
 
 at mx.core::UIComponent/::commitCurrentState()
 
 at
 mx.core::UIComponent/::creationCompleteHandler()
 
 at
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
en
 tFunction()
 
 at flash.events::EventDispatcher/dispatchEvent
()
 
 at mx.core::UIComponent/dispatchEvent()
 
 at mx.core::UIComponent/set initialized()
 
 at
 mx.managers::LayoutManager/::doPhasedInstantiation()
 
 at
 Function/http://adobe.com/AS3/2006/builtin::apply
http://adobe.com/AS3/2006/builtin::apply (
 http://adobe.com/AS3/2006/builtin::apply
http://adobe.com/AS3/2006/builtin::apply ( )
 
 at mx.core::UIComponent/::callLaterDispatcher2
()
 
 at mx.core::UIComponent/::callLaterDispatcher
()
 
 
 
 
 
 On Sep 11, 2007, at 4:31 PM, keithtucci wrote:
 
 
 
 
 
 i am attempting to use ModuleLoader to load a module that is using 
 
 httpservice and i keep getting a 1009 error. i am not sure if this 
 
 is a known issue or i am just doing something incorrectly...
 
 
 
 any ideas...?
 
 
 
 TypeError: Error #1009: Cannot access a property or method of a 
null 
 
 object reference.
 
 at mx.rpc::AbstractInvoker$cinit()
 
 at [newclass]
 
 at global$init()
 
 at global$init()
 
 at test1c/private::_test1c_HTTPService1_i()
 
 at test1c()
 
 at _test1c_mx_core_FlexModuleFactory/create()
 
 at mx.modules::ModuleLoader/private::moduleReadyHandler
()
 
 at 
 
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
 
 entFunction()
 
 at flash.events::EventDispatcher/dispatchEvent()
 
 at private::ModuleInfoProxy/private::moduleEventHandler
()
 
 at 
 
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
 
 entFunction()
 
 at flash.events::EventDispatcher/dispatchEvent()
 
 at private::ModuleInfo/readyHandler()
 
 at 
 
 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
 
 entFunction()
 
 at flash.events::EventDispatcher/dispatchEvent()
 
 at mx.core::FlexModuleFactory/private::update()
 
 at mx.core::FlexModuleFactory/private::docFrameHandler()
 
 at [execute-queued]
 
 
 
 
 
 
 
 
 
 --
 
 Flexcoders Mailing List
 
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt  
 
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 

Re: [flexcoders] Re: How to check to see if an XML element exists

2007-09-12 Thread Daniel Freiman
The reason why this always returns true is because 'text()' returns an
XMLList.  In your setup you would want to check if the length of the XMLList
is 0 or not.  For more detail check out: (
http://nondocs.blogspot.com/2007/05/toplevelxmltraversing-xml-structures.html
)

- Dan Freiman

On 9/12/07, jer_ela [EMAIL PROTECTED] wrote:

   this should work

 if (node.ItemSource.(hasOwnProperty(Media))

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, kc7cia
 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I was hoping someone could tell me how to check to see if an XML
  element exists in AS3. I have an XML structure that looks like this:
 
  ItemSource component=DAM
  ValueCandy/Value
  Media caption=Glucose Meter10-372.gif/Media
  /ItemSource
 
  I want to be able to check to see if the ItemSource element has a
  Media subelement. The following code does not appear to work:
 
  if (node.ItemSource.Media.text() != null)
  Alert.show('media');
  else
  Alert.show('no Media');
 
  It always returns true, regardless of whether or not there is a Media
  subelement. Any help would be appreciated. Thanks!
 

  



Re: [flexcoders] Re: CData inside XML object

2007-09-12 Thread Daniel Freiman
var cdata:XML = new XML(![CDATA[ + s + ]+]);

On 9/12/07, discoguy77 [EMAIL PROTECTED] wrote:

   Ignoring whitespace isn't a good option, because my server-side
 program doesn't ignore whitespace.

 The script you wrote causes a parse error, because the script itself
 is in a CDATA section.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
 Freiman [EMAIL PROTECTED]
 wrote:
 
  Look at XML.ignoreWhitespace (
  http://livedocs.adobe.com/flex/201/langref/XML.html).
 
  Also, would think you would be able to create a cdata node by doing
  something like this:
  var cdata:XML = new XML(![CDATA[ + s + ]]);
 
  - Dan Freiman
 
  On 9/7/07, discoguy77 [EMAIL PROTECTED] wrote:
  
   Hello,
   I am saving some text from a string into a XML element.
   For example:
  
   var s:String = Hello ;
   var xml:XML = root{s}/root;
  
   I would like the following to happen:
   trace(xml); // prints Hello  (without quotes)
  
   Unfortunately, E4X trims the whitespace. I would like my XML
 object
   to be root![CDATA[{s}]]/root so that the space (maybe?)
   wouldn't be trimmed, but I cannot use a CDATA block since it
 occurs
   inside a mx:Script![CDATA[ ... ]]/mx:Script already.
  
   Is there a way to add a CDATA block to an E4X XML object?
  
   P.S. As a workaround, I can escape() the string before adding it,
   and unescape() afterwards, but this seems ugly and loses the
 human-
   readability.
  
  
  
 

  



RE: [flexcoders] 1009 error

2007-09-12 Thread Alex Harui
If you turn on verbose-stacktraces or use debug version it'll show you
the exact line number to look at.  Something doesn't exist that the code
expects to exist.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jobe Makar
Sent: Wednesday, September 12, 2007 5:32 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] 1009 error

 

Hi,

 

That error isn't saying that the function doesn't exist. It is saying
that the thing that is supposed to contain that function doesn't
exist. Perhaps there is a slight scoping issue here?


Jobe Makar
http://www.electrotank.com http://www.electrotank.com 
http://www.electro-server.com http://www.electro-server.com 
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121

- Original Message - 

From: grimmwerks mailto:[EMAIL PROTECTED]  

To: flexcoders@yahoogroups.com
mailto:flexcoders@yahoogroups.com  

Sent: Wednesday, September 12, 2007 8:25 AM

Subject: [flexcoders] 1009 error

 

This is getting frustrating. 

 

I've removed all references to transitions/effects, and have a
simple button on click calling function {resetRegWindow()}. 

 

There IS a resetRegWindow function.

 

I get this:

 

TypeError: Error #1009: Cannot access a property or
method of a null object reference.

   at Nestle/resetRegWindow()

   at Nestle/___LinkButton2_click()

 

 



  1   2   >