[flexcoders] Security sandbox violation

2007-05-08 Thread thierrybertossa
I have a strange probleme with the security sandbox...

I can't load a rss feed when I put my project on my IIS (localhost)
I have tried:

?xml version=1.0?
!-- http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd --
cross-domain-policy
  allow-access-from domain=*/
/cross-domain-policy

In wwwroot
and in my project root...
and with 
Security.loadPolicyFile(../crossdomain.xml);
Security.loadPolicyFile(crossdomain.xml);


the error message is :
Error #2044: Unhandled securityError:. text=Error #2048: Security 
sandbox violation: http://localhost/RssNewsCalendar/RssNewsCalendar-
debug.swf cannot load data from 
http://www.lemonde.fr/rss/sequence/0,2-3224,1-0,0.xml.

I don't understand what's wrong ?



[flexcoders] XML with local shared object

2007-04-18 Thread thierrybertossa
Is there a way to store XML in a local shared object?



[flexcoders] flex bug ????

2007-03-30 Thread thierrybertossa
I have a hierarchie of containers like:
Panel
 -HBox
 -HDivideBox
--Box
--Canvas
   ---VBox
   ---HDivideBox
Box1 
Box2 Probleme
   ---VDivideBox
Box3
Box4

and when I try to programmatically add a Child at Box 2.
Application.application.Box2.addChild(CustomComponent);
 I have this error message: 

-

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/getChildAt()
at mx.core::Container/getChildAt()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2369]
at mx.containers.utilityClasses::BoxLayout/measure()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\utilityClasses\BoxLa
yout.as:88]
at mx.containers::Box/mx.containers:Box::measure()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\Box.as:250]
at mx.core::UIComponent/mx.core:UIComponent::measureSizes()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5448]
at mx.core::UIComponent/validateSize()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5394]
at mx.core::Container/validateSize()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2688]
at 
mx.managers::LayoutManager/mx.managers:LayoutManager::validateSize()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:557]
at 
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti
ation()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:646]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909]
at 
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852]

--

If someone knows the probleme ..?
It's a Flex Bug or there is a solution ..?
Thanks 

Thierry



[flexcoders] Error: Repeater is not executing.

2007-03-27 Thread thierrybertossa
I have a repeater:

mx:Repeater dataProvider={_main._newss} id=newsRepeater
mx:Label text={_main._newss.getItemAt(newsRepeater.currentIndex)}/
/mx:Repeater

_newss, is an instance of a custom  Newss Class extends ArrayCollection.

When I change _newss like this:
_newss = new Newss();

I have an error:
Error: Repeater is not executing.

Is there a way to dynamically change repeater's Dataprovider without 
having this kind of probleme.

Thanks 
Thierry



[flexcoders] Init Global Object Best Practice

2007-03-08 Thread thierrybertossa
With the Application's initialize event, I instanciate a unique -init- 
Object.
How can I access This instance inside another Class ?
-instanceName-.variable doesn't work inside other Class?
I don't really understand the probleme.
What is the Best Practice to link AS3 OOP and The Flex MXML?



[flexcoders] Flex and Java

2007-02-28 Thread thierrybertossa
Is it possible to embed swf in java application?
And call method between them?

http://www.javaworld.com/javaworld/jw-01-2003/jw-0117-flash.html
if not with flex perhaps with flash 6 7 8 ?



[flexcoders] flash cookie

2007-02-27 Thread thierrybertossa
Is it possible to store a cookie (LSO) from a domain www.x.com and 
then access this cookie from a .swf played outside internet explorer or 
mozilla (in flash player directly) if we know the name of the domain 
www.x.com ??

thanks 



[flexcoders] flex swf size

2007-02-22 Thread thierrybertossa
I built a project with nothing inside.
the size of the swf is about  125 k.
Does something exist to have lighter swf ?