[flexcoders] Flex 2 -- flash.display.Loader -- addChild bug?

2005-12-21 Thread solgraphics
I am trying to use the flash.display.Loader class because I want to
use images that are stored in a db as a hex string. I can bring in the
hex string and create the ByteArray fine using
flash.display.Loader.loadBytes(), but when I addChild the Loader to
the application I get an error. Is this because I am doing it wrong,
or is there a bug with flash.display.Loader? One thing to note is that
I can do this with an AS3 project no problem based on the
flash.display.Loader examples and loading via .loadBytes().

I have included some code that grabs an image off the web and doesn't
use a ByteArray, but the error is the same here too.



?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=*
creationComplete=init();

mx:Script
![CDATA[
import flash.display.Loader;
import flash.events.*;
import flash.net.URLRequest;


private function init():Void
{
var loader:Loader = new Loader();
configListeners(loader);

var request:URLRequest = new
URLRequest(http://weblogs.macromedia.com/mxna/images/logo.gif;);

loader.load(request);

mainVBox.addChild(loader);
}

private function configListeners(dispatcher:IEventDispatcher):Void
{
dispatcher.addEventListener(EventType.COMPLETE, onComplete);
}


private function onComplete(event:Event):Void {
trace(onComplete:  + event);
}



]]
/mx:Script


mx:Panel id=mainPanel title=Loader Test
mx:VBox id=mainVBox width=100% height=100%

/mx:VBox
/mx:Panel


/mx:Application







 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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] Re: Flex 2 -- flash.display.Loader -- addChild bug?

2005-12-21 Thread solgraphics
Yeah, below is the error.


TypeError: Error #1034: Type Coersion failed: cannot convert
flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent
at
mx.containers::Tile/http://www.macromedia.com/2005/flex/mx/internal::findCellSize()
at mx.containers::Tile/measure()
at mx.core::UIComponent/UIComponent$480$private::measureSizes()
at mx.core::UIComponent/validateSize()
at mx.core::Container/validateSize()
at mx.managers::LayoutManager/validateSize()
at
mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()
at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()
at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()


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

 What is the error you are getting?  Is it yelling it's not a
UIComponent?
 
 - Original Message - 
 From: solgraphics [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, December 21, 2005 10:28 AM
 Subject: [flexcoders] Flex 2 -- flash.display.Loader -- addChild bug?
 
 
 I am trying to use the flash.display.Loader class because I want to
 use images that are stored in a db as a hex string. I can bring in the
 hex string and create the ByteArray fine using
 flash.display.Loader.loadBytes(), but when I addChild the Loader to
 the application I get an error. Is this because I am doing it wrong,
 or is there a bug with flash.display.Loader? One thing to note is that
 I can do this with an AS3 project no problem based on the
 flash.display.Loader examples and loading via .loadBytes().
 
 I have included some code that grabs an image off the web and doesn't
 use a ByteArray, but the error is the same here too.
 
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
 xmlns=*
 creationComplete=init();
 
 mx:Script
 ![CDATA[
 import flash.display.Loader;
 import flash.events.*;
 import flash.net.URLRequest;
 
 
 private function init():Void
 {
 var loader:Loader = new Loader();
 configListeners(loader);
 
 var request:URLRequest = new
 URLRequest(http://weblogs.macromedia.com/mxna/images/logo.gif;);
 
 loader.load(request);
 
 mainVBox.addChild(loader);
 }
 
 private function configListeners(dispatcher:IEventDispatcher):Void
 {
 dispatcher.addEventListener(EventType.COMPLETE, onComplete);
 }
 
 
 private function onComplete(event:Event):Void {
 trace(onComplete:  + event);
 }
 
 
 
 ]]
 /mx:Script
 
 
 mx:Panel id=mainPanel title=Loader Test
 mx:VBox id=mainVBox width=100% height=100%
 
 /mx:VBox
 /mx:Panel
 
 
 /mx:Application
 
 
 
 
 
 
 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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] mx.print.FlexPrintJob - multipage support?

2005-11-14 Thread solgraphics
Are there any plans in the framework to support multiple page
printouts from flex using charts, datagrids, etc. I know that you can
do this with some code, but I would like to see it built in. I want
fellow developers to just write markup and not have to worry about the
AS code for multiple page printing.

I am trying to pitch Flex in my office to become our interactive
reporting application. The screen presentation and interactivity made
people smile, but the printing aspect is another issue. If multipage
printing was handled for us, we would use it without a question. Right
now, we are concerned about all of the different reports we have and
showing the data across multiple pages.

Best regards- 





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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] Flex 2 - setting the color of a DataGrid row

2005-11-11 Thread solgraphics
I am trying to set the color of a DataGrid row using
dg.setPropertiesAt(1, {0x00} );
and I am having no luck. Did this change with Flex 2?





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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] Re: Flex 2 - setting the color of a DataGrid row

2005-11-11 Thread solgraphics
My bad. Finger aren't working today.

What I meant to type was:
dg.setPropertiesAt(1, {backgroundColor:0x00} );

This is the snippet that does not work. Thanks

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

 I don't know about the API call being valid or not, but the statement
 itself is incorrect:
 
 {0x00} is not a valid Object Literal, it should be in the
following format:
 
 {myProp:0x00}
 
 best,
 aldo
 
 
 
 On 11/11/05, solgraphics [EMAIL PROTECTED] wrote:
  I am trying to set the color of a DataGrid row using
  dg.setPropertiesAt(1, {0x00} );
  and I am having no luck. Did this change with Flex 2?
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 
 --
 : Aldo Bucchi :
 mobile (56) 8 429 8300








 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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/