Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

flexcoders · RIA Development with Adobe Flex

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12335
  • Category: Development
  • Founded: Mar 17, 2004
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 35215 - 35244 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#35215 From: "Thomas W. Gonzalez" <tgonzalez@...>
Date: Mon May 1, 2006 4:53 pm
Subject: RE: how to implement the copy&paste of chart in flex
twgonzalez01
Send Email Send Email
 

Perfect !!!

 

BTW, great job on the FisheEye component.  This was actually one of my use cases – turning charts into something I could add as an image item to the FishEye.

 

- Tom

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ely Greenfield
Sent: Monday, May 01, 2006 9:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to implement the copy&paste of chart in flex

 

 

 

 

Hi Tom. You can create your own BitmapData object, then blit the chart into it using the BitmapData.draw function (pass the chart as the first parameter).

 

 

Ely

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thomas W. Gonzalez
Sent: Monday, May 01, 2006 8:49 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to implement the copy&paste of chart in flex

I am unclear on how you can convert a regular DisplayObject hierarchy (like a Chart) into a BitmapData object that you can then encode into a .jpg.

 

Has anyone blogged on this topic?

 

- Tom


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Mendels
Sent: Saturday, April 29, 2006 6:02 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to implement the copy&paste of chart in flex

 

Hi,

 

It can be done, but a few extra steps.  Convert to JPEG first. This can help you get started: http://www.kaourantin.net/2005/10/more-fun-with-image-formats-in-as3.html

 

-David

 

 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tariq Ahmed
Sent: Saturday, April 29, 2006 1:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to implement the copy&paste of chart in flex

Not possible as far as I know. Snag-It is your next best bet.


anjicn wrote:
> I want to add the copy&paste support for charts in order to let user
> select any chart, copy it and then paste it to some other editors
> like "Office Word" or "MS Paint" for further use.
>
> Is it possible to do so, or can I just generate a .jpg or .bmp file for
> each chart, that will also be acceptable.
>
> Anyone who has such experience, please help me. Thanks.
>
>
>
>
>
> --
> 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
>
>
>

>
>
>
>  





#35216 From: "rigidcode" <twonests@...>
Date: Mon May 1, 2006 4:45 pm
Subject: Re: NestingTabNavigators will cause an exception. (Flex 2 bug?)
rigidcode
Send Email Send Email
 
Thanks very much for making that but it throws the same exception when
I click on any tabs. I used your code verbatim, here's my mxml file
that loads it:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
creationComplete="initApplication()">
	 <mx:Script>
		 <![CDATA[
			 import NestedTabs.NestedTabs;

			 public function initApplication():void {
				 var ntn:NestedTabs = new NestedTabs();
				 this.addChild(ntn);
			 }
		 ]]>
	 </mx:Script>
</mx:Application>

Does the error happen to you when you try it?




--- In flexcoders@yahoogroups.com, "oca_gw" <graham.weldon@...> wrote:
>
>
>
> Hi rigidcode,
>
> Here is an ActionScript class that you can use. It will need to be
> changed to meet your needs, but it is based off the code you posted,
> and should be reasonably self-explainatory.
>
> The NestedTabs class is extending Canvas, so that you can assign a
> size for the whole lot, and they will take 100% in both dimensions for
> what they are assigned. Let me know how you go with this.
>
>
>
>
> package NestedTabs {
>  import mx.containers.Canvas;
>  import mx.containers.TabNavigator;
>  import mx.events.FlexEvent;
>  import mx.controls.Label;
>
>  public class NestedTabs extends Canvas
>  {
> 	 private var tn1 : TabNavigator;
> 	 private var tn2 : TabNavigator;
>
> 	 private var tn1tab1 : Canvas;
> 	 private var tn1tab2 : Canvas;
> 	 private var tn2tab1 : Canvas;
> 	 private var tn2tab2 : Canvas;
>
> 	 public function NestedTabs() : void
> 	 {
> 		 super();
>
> 		 // Fire the __onCreationComplete event when the component has been
> created.
> 		 this.addEventListener(FlexEvent.CREATION_COMPLETE,
> __onCreationComplete);
> 	 }
>
> 	 private function __onCreationComplete(_event : FlexEvent) : void
> 	 {
> 		 var tn1 : TabNavigator = new TabNavigator();
> 		 tn1.percentHeight = 100;
> 		 tn1.percentWidth = 100;
>
> 		 var tn1tab1 : Canvas = new Canvas();
> 		 tn1tab1.label = "Welcome";
> 		 tn1.addChild(tn1tab1);
>
> 		 var tn1tab2 : Canvas = new Canvas();
> 		 tn1tab2.label="Hello";
> 		 tn1.addChild(tn1tab2);
>
> 		 var tn2 : TabNavigator = new TabNavigator();
> 		 tn2.percentHeight = 100;
> 		 tn2.percentWidth = 100;
>
> 		 var tn2tab1 : Canvas = new Canvas();
> 		 tn2tab1.label = "wefwe";
> 		 tn2.addChild(tn2tab1);
>
> 		 var tn2tab2 : Canvas = new Canvas();
> 		 tn2tab2.label = "wefwe333";
> 		 tn2.addChild(tn2tab2);
>
> 		 tn1tab1.addChild(tn2);
>
> 		 this.addChild(tn1);
> 		 this.setVisible(true);
> 	 }
>  }
> }
>
>
>
>
> Regards,
> Graham Weldon
> Web Development Manager
> Object Connections
>
>
> --- In flexcoders@yahoogroups.com, "rigidcode" <twonests@> wrote:
> >
> >
> > I'm trying to make nested TabNavigators in Actionscript (NOT in mxml).
> > Just two- an outer TabNavigator and, on one of it's tab's canvas's, an
> > inner one.  Sounds simple right?
> >
> > I reduced it to a smaller reproducable version of the error, here is
> > what I'm doing in my Application:
> >
> > var t:TabNavigator = new TabNavigator();
> > t.width=800;
> > t.height=600;
> > t.creationPolicy='all'; //tried this to fix
> >
> > var tab1:Canvas = new Canvas();
> > tab1.label='Welcome';
> > t.addChild(tab1);
> >
> > var tab2:Canvas = new Canvas();
> > tab2.label='Hello';
> > t.addChild(tab2);
> >
> > var tn2:TabNavigator = new TabNavigator();
> > tn2.creationPolicy='all';
> > var tn2tab1:Canvas = new Canvas();
> > tn2tab1.label='wefwe';
> > tn2.addChild(tn2tab1);
> >
> > var tn2tab2:Canvas = new Canvas();
> > tn2tab2.label='wefwe333';
> > tn2.addChild(tn2tab2);
> >
> > tab1.addChild(tn2);
> >
> > this.addChild(t);
> >
> >
> > The tabs display fine initially, and then here is the exception I get
> > when I click on any tab (either on the inner tabnavigator or the outer
> > one):
> > TypeError: Error #1009: null has no properties.
> >  at
> >
>
mx.managers::HistoryManager$/save()[C:\dev\beta2\sdk\frameworks\mx\managers\Hist\
oryManager.as:554]
> >  at
> >
>
mx.containers::ViewStack/mx.containers:ViewStack::commitSelectedIndex()[C:\dev\b\
eta2\sdk\frameworks\mx\containers\ViewStack.as:1052]
> >  at
> >
>
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()[C:\dev\beta\
2\sdk\frameworks\mx\containers\ViewStack.as:620]
> >  at
> >
>
mx.containers::TabNavigator/mx.containers:TabNavigator::commitProperties()[C:\de\
v\beta2\sdk\frameworks\mx\containers\TabNavigator.as:325]
> >  at
> >
>
mx.core::UIComponent/validateProperties()[C:\dev\beta2\sdk\frameworks\mx\core\UI\
Component.as:5007]
> >  at
> >
>
mx.managers::LayoutManager/validateProperties()[C:\dev\beta2\sdk\frameworks\mx\m\
anagers\LayoutManager.as:496]
> >  at
> >
>
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\
\dev\beta2\sdk\frameworks\mx\managers\LayoutManager.as:635]
> >  at
> >
>
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\beta2\sd\
k\frameworks\mx\core\UIComponent.as:7379]
> >  at
> >
>
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\beta2\sdk\
\frameworks\mx\core\UIComponent.as:7322]
> >  at
> >
>
mx.core::UIComponent/setFocus()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.\
as:5814]
> >  at
> >
>
mx.managers::FocusManager/setFocus()[C:\dev\beta2\sdk\frameworks\mx\managers\Foc\
usManager.as:375]
> >  at
> >
>
mx.managers::FocusManager/mx.managers:FocusManager::mouseDownHandler()[C:\dev\be\
ta2\sdk\frameworks\mx\managers\FocusManager.as:1164]
> >
> > Is this a bug in Flex 2?
> >
>

#35217 From: "Jonathan Miranda" <jonathanmiranda@...>
Date: Mon May 1, 2006 5:07 pm
Subject: Re: Custom Chart Series
snowtechagent
Send Email Send Email
 
Alright, well that didnt go so well :) I've figured out a real basic
way to mess with how BarSeries is rendered but I'm stuck...

I decided today would be a learning day and I'm tinkering with the
idea of making a Gantt Chart. So I thought I'd start with a BarChart
and have a custom GanttSeries which extends BarChart. I know exactly
what I want to do, but stumped on how to fit it into the Flex
framework....I've only messed with custom components and renderers to
this point so this is a big leap it seems to make a custom Chart. Good
time to learn right? :)

-Should I make a custom chart that extends BarChart or a custom series
that extends BarSeries? What about extending CartesianChart?
-Whats the implications and restrictions I'll get into to choosing one of those?
-How would I get access to other varibales and how should I deal with
those (I need more than just one value) - should the "data" be an
Object with values?
-If I'm extending a series, how do I get access to the values in the
extended parent? An example would be in BarSeries where it sets the
_instanceCache - if I do a super(); to run that, is there anyway I can
access that data? I found a messy way of changing how
updateDisplayList runs but I'm not sure I'm doing it correctly because
I had to redo all what the BarSeries was doing.....maybe just do a
graphics.clear and do your own thing? I'm guessing that's wrong.

Rescue me Ely the Chart Guru! :) There needs to be an example of
extending a chart or customizing a chart/series....looking through the
docs, there's a lot out there for components and renderers, but little
for chart/series. Maybe it's too rough a realm for documentation? :)


On 5/1/06, Jonathan Miranda <jonathanmiranda@...> wrote:
> Well I'm a step ahead now with your line of code, as dumb as it
> seems....I was overkilling it and had every function declared in
> BarSeries and was implementing the same classes as BarSeries does.....
>
> Overthinking on a Monday :)
>
> Now to try and customize the updateDisplayList....
>
> On 5/1/06, Ely Greenfield <egreenfi@...> wrote:
> >
> >
> > Hi Jonathan. That's a tough question to answer without more information.
> > Otherwise, this would answer your question:
> >
> >
> > Public class MyBarSeries extends BarSeries {
> >
> > }
> >
> >
> > Which clearly isn't very helpful ;)
> >
> > Can you give more information on what you're trying to do?  More
> > information on the errors you're getting? What does the line of code
> > look like where the error is reported?
> >
> > Ely.
> >
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
> > Behalf Of Jonathan Miranda
> > Sent: Monday, May 01, 2006 9:13 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Custom Chart Series
> >
> > Banging my head against the wall on this one and I can't figure out how
> > I'm doing this wrong.....I want to try and make a custom series that
> > extends BarSeries but no matter what I try I'm hitting all kinds of
> > warning/errors, most stating "Attempted access of inaccessible method
> > 'validateTransform' through a reference with static type
> > mx.chart.series:BarSeries".
> >
> > Anyone want to just write a mock-up structure of what a custom BarSeries
> > would look like? Even Psuedo code would work.
> >
> >
> > --
> > 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 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
> >
> >
> >
> >
> >
> >
> >
>

#35218 From: "Ely Greenfield" <egreenfi@...>
Date: Mon May 1, 2006 5:07 pm
Subject: 2D Fisheye Component (was: how to implement the copy&paste of chart in flex)
flattomato
Send Email Send Email
 
 
 
 
Hey, that would be very cool. Post a link if you can once you get it running.
 
 
 
FYI, I updated the Fisheye component to layout as a tile component in 2D. Check it out here:
 
 
Ely.
 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thomas W. Gonzalez
Sent: Monday, May 01, 2006 9:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to implement the copy&paste of chart in flex

Perfect !!!

 

BTW, great job on the FisheEye component.  This was actually one of my use cases – turning charts into something I could add as an image item to the FishEye.

 

- Tom

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ely Greenfield
Sent: Monday, May 01, 2006 9:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to implement the copy&paste of chart in flex

 

 

 

 

Hi Tom. You can create your own BitmapData object, then blit the chart into it using the BitmapData.draw function (pass the chart as the first parameter).

 

 

Ely

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thomas W. Gonzalez
Sent: Monday, May 01, 2006 8:49 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to implement the copy&paste of chart in flex

I am unclear on how you can convert a regular DisplayObject hierarchy (like a Chart) into a BitmapData object that you can then encode into a .jpg.

 

Has anyone blogged on this topic?

 

- Tom


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Mendels
Sent: Saturday, April 29, 2006 6:02 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to implement the copy&paste of chart in flex

 

Hi,

 

It can be done, but a few extra steps.  Convert to JPEG first. This can help you get started: http://www.kaourantin.net/2005/10/more-fun-with-image-formats-in-as3.html

 

-David

 

 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tariq Ahmed
Sent: Saturday, April 29, 2006 1:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to implement the copy&paste of chart in flex

Not possible as far as I know. Snag-It is your next best bet.


anjicn wrote:
> I want to add the copy&paste support for charts in order to let user
> select any chart, copy it and then paste it to some other editors
> like "Office Word" or "MS Paint" for further use.
>
> Is it possible to do so, or can I just generate a .jpg or .bmp file for
> each chart, that will also be acceptable.
>
> Anyone who has such experience, please help me. Thanks.
>
>
>
>
>
> --
> 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
>
>
>

>
>
>
>  





#35219 From: "ben.clinkinbeard" <ben.clinkinbeard@...>
Date: Mon May 1, 2006 5:37 pm
Subject: Re: Problems with Flex2 serializing ActionScript objects to SOAP elements
ben.clinkinb...
Send Email Send Email
 
try using the arguments property. This is what my code looks like.

dmws = new WebService();
dmws.loadWSDL(MyWSDLURL);
dmws.useProxy = false;
dmws.addEventListener("result", onDmwsResult);
dmws.addEventListener("fault", doFault);

var op:AbstractOperation;
op = dmws['GetDocument'];

var args:Object = new Object();

args.EnterpriseId = event.target.selectedItem.EnterpriseId;
args.DocumentType = "EBD";

args.ContainersToRetrieve = new Array();
args.ContainersToRetrieve.push("Client");
args.ContainersToRetrieve.push("IndustryTrends");
args.ContainersToRetrieve.push("OptionalSections");
args.ContainersToRetrieve.push("RPRSelections");

args.MetadataToRetrieve = new Array("RPRDocumentHistory");

op.arguments = args;
op.send();


Ben

--- In flexcoders@yahoogroups.com, "yomahz" <yomahz@...> wrote:
>
> When serializing ActionScript objects to XML, it does not appear that
> Flex is properly ordering the elements according the order defined in
> the WSDL. For instance, I have a WSDL with a complext type defined as
> such:
>
> <complexType name='SoapInventory'>
>  <sequence>
>    <element name='id' nillable='true' type='int'/>
>    <element name='inventoryDate' nillable='true' type='dateTime'/>
>    <element name='label' nillable='true' type='string'/>
>    <element maxOccurs='unbounded' minOccurs='0' name='locations'
> nillable='true' type='ns2:SoapInventoryLocation'/>
>    <element name='storeId' nillable='true' type='int'/>
>    <element name='type' nillable='true' type='string'/>
>  </sequence>
> </complexType>
>
> I also have a ActionScript object defined as:
>
> package com.mycompany.myapp.inventory.model {
>   public class SoapInventory {
>     public var id:int;
>     public var inventoryDate:Date;
>     public var label:String;
>     public var locations:Array;
>     public var storeId:int;
>     public var type:String;
>   }
> }
>
> Flex serializes this object as:
>
> <SoapInventory_1>
> <ns1:storeId>1012</ns1:storeId>
> <ns1:type xsi:nil='true'/>
> <ns1:label>Test</ns1:label>
> <ns1:id>123</ns1:id>
> <ns1:inventoryDate>2006-04-27T20:52:12.129Z</ns1:inventoryDate>
> </SoapInventory_1>
>
> Which is not the order defined in the WSDL's sequence. Am I doing
> something incorrectly or have I missed something? Here's how I'm
> calling the webservice:
>
>
> ws = new mx.rpc.soap.WebService();
> ws.wsdl = "http://localhost:8080/test/InventoryWebService?wsdl";
> ws.save.addEventListener("result", handleSave);
> ws.addEventListener("fault", handleFault);
> ws.loadWSDL();
> ws.save(soapInventory);
>

#35220 From: "Ely Greenfield" <egreenfi@...>
Date: Mon May 1, 2006 5:47 pm
Subject: RE: Custom Chart Series
flattomato
Send Email Send Email
 
Let's see....

-Should I make a custom chart that extends BarChart or a custom series
that extends BarSeries? What about extending CartesianChart?

Probably you want a custom series, that either extends BarSeries or
starts from scratch.  The Chart classes generally act as a coordinating
container, but doesn't know much about what data is rendered or how it's
rendererd. That's the series' job.

-Whats the implications and restrictions I'll get into to choosing one
of those?

See above.

-How would I get access to other varibales and how should I deal with
those (I need more than just one value) - should the "data" be an Object
with values?

The way the charts generally deal with this is by assuming that the
items in the dataprovider are objects, and allowing the developer to
assign 'xxxField' properties to tell the series what property to find a
given value in. i.e., BarSeries defines xField, minField, and maxField.
BubbleSeries defines xField, yField, and seriesField. If you need
additional information, I'd suggest adding new properties like this.


-If I'm extending a series, how do I get access to the values in the
extended parent? An example would be in BarSeries where it sets the
_instanceCache - if I do a super(); to run that, is there anyway I can
access that data? I found a messy way of changing how updateDisplayList
runs but I'm not sure I'm doing it correctly because I had to redo all
what the BarSeries was doing.....maybe just do a graphics.clear and do
your own thing? I'm guessing that's wrong.

If the variable is private, it can't be accessed.


Again, if you can give me specifics on what you're trying to do, I can
help you figure out how to do it.

Ely.

#35221 From: Chris Scott <asstrochris@...>
Date: Mon May 1, 2006 6:00 pm
Subject: dataGrid column witdths
thediabolica...
Send Email Send Email
 
Hi I'm wondering if anyone has done an extended dataGrid component or
can shed some light on the direction to take on building a dataGrid
that autosizes it's columns to the size of the data contained,
similar to how a normal grid component filled with text fields would
work, but of course I need it to me sortable and scrollable, so the
dataGrid is really what I want. I'm considering trying to handle an
event when data is loaded to each cell to increase a width var if the
new value us larger, then set the column widths to that var, but I'm
getting a little bogged down with what events to attach eventHandlers
to. Any advice is appreciated, thanks!

Chris

BTW, Flex 2 Beta 2...

Chris Scott
asstrochris@...
http://cdscott.blogspot.com/
http://www.coldspringframework.org/


#35222 From: "Tim Hoff" <TimHoff@...>
Date: Mon May 1, 2006 6:04 pm
Subject: Flex2B2 Resolution Change Event
turbo_vb
Send Email Send Email
 
I have a panel that contains a viewStack with two children.  One of
the children is a tabNavigator and the other is a panel.  The goal is
to have the tabNavigator show if the screen resolution is 800X600 and
the panel to show for resolutions above 800X600.  I've tried several
different ways to do this, but none have been successful.  I was
wondering if anyone else had tried to do this dynamically.

Thanks,
Tim Hoff

#35223 From: "Tim Hoff" <TimHoff@...>
Date: Mon May 1, 2006 6:10 pm
Subject: Re: dataGrid column witdths
turbo_vb
Send Email Send Email
 
If you are using cellRenderers (like a text control), I beleive that
you can not set the width of the text field and the column should
adjust.  As an alternative, you can set the variableRowHeight
property of the grid to true.  This will produce multi-line rows if
the cell contents are larger than the set width of the column.

Tim Hoff



--- In flexcoders@yahoogroups.com, Chris Scott <asstrochris@...>
wrote:
>
> Hi I'm wondering if anyone has done an extended dataGrid component
or
> can shed some light on the direction to take on building a
dataGrid
> that autosizes it's columns to the size of the data contained,
> similar to how a normal grid component filled with text fields
would
> work, but of course I need it to me sortable and scrollable, so
the
> dataGrid is really what I want. I'm considering trying to handle
an
> event when data is loaded to each cell to increase a width var if
the
> new value us larger, then set the column widths to that var, but
I'm
> getting a little bogged down with what events to attach
eventHandlers
> to. Any advice is appreciated, thanks!
>
> Chris
>
> BTW, Flex 2 Beta 2...
>
> Chris Scott
> asstrochris@...
> http://cdscott.blogspot.com/
> http://www.coldspringframework.org/
>

#35224 From: Chris Scott <asstrochris@...>
Date: Mon May 1, 2006 6:21 pm
Subject: Re: Re: dataGrid column witdths
thediabolica...
Send Email Send Email
 
Well, I'm not using any custom cell renderers on this one. Also, unfortunately with the data I am displaying, wrapping the text is no good. There are around 20+ columns of pretty small data, like dollar amounts and such. So I need to think of a solution for autosizing. Thanks though!


On May 1, 2006, at 2:10 PM, Tim Hoff wrote:

If you are using cellRenderers (like a text control), I beleive that
you can not set the width of the text field and the column should
adjust.  As an alternative, you can set the variableRowHeight
property of the grid to true.  This will produce multi-line rows if
the cell contents are larger than the set width of the column.

Tim Hoff



--- In flexcoders@yahoogroups.com, Chris Scott <asstrochris@...>
wrote:
>
> Hi I'm wondering if anyone has done an extended dataGrid component
or 
> can shed some light on the direction to take on building a
dataGrid 
> that autosizes it's columns to the size of the data contained, 
> similar to how a normal grid component filled with text fields
would 
> work, but of course I need it to me sortable and scrollable, so
the 
> dataGrid is really what I want. I'm considering trying to handle
an 
> event when data is loaded to each cell to increase a width var if
the 
> new value us larger, then set the column widths to that var, but
I'm 
> getting a little bogged down with what events to attach
eventHandlers 
> to. Any advice is appreciated, thanks!
>
> Chris
>
> BTW, Flex 2 Beta 2...
>
> Chris Scott
> asstrochris@...
> http://cdscott.blogspot.com/
> http://www.coldspringframework.org/
>






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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






#35225 From: nostra72@...
Date: Mon May 1, 2006 2:36 pm
Subject: Are there any Flex Seminars coming up
nostra72
Send Email Send Email
 
 have sort of hit a brick wall with Flex I am trying to self teach myself with a book which is fine except I think I could learn a lot more. I believe Flex to be very useful I just want to make sure I can get everything out of it so I can help others. I live in Atlanta Georgia if there are any Seminars on the subject of Flex near me let me know, also I do not mind flying out to go to one if there are any. Also if there are any near Hartford Connecticut let me know
Jonathan Alexander

#35226 From: "raghuramab" <raghu@...>
Date: Mon May 1, 2006 6:36 pm
Subject: Re: How does one build a ComboBox with a Data Grid as the drop down?
raghuramab
Send Email Send Email
 
I already tried that. Including trying to assign the property in AS
code instead of MXML. In either case, I get a flex compiler error
saying "Unrecognized combobox property - dropdownFactory". I am
using Flex 2.0. Beta 2.

--Raghu

--- In flexcoders@yahoogroups.com, "Manish Jethani"
<manish.jethani@...> wrote:
>
> On 4/30/06, raghuramab <raghu@...> wrote:
>
> >        I would like to build a combobox where a DataGrid is
displayed
> > as the drop down list instead of the regular List.
>
> <mx:ComboBox dropdownFactory="mx.controls.DataGrid" ...
>
> Manish
>

#35227 From: "Anatole Tartakovsky" <anatolet@...>
Date: Mon May 1, 2006 6:53 pm
Subject: Re: Re: How does one build a ComboBox with a Data Grid as the drop down?
anatolet
Send Email Send Email
 
Use itemRenderer property of combobox. Good (IMHO) example of "generic" approach is in Chapter 8 of the new Flex 2 book (www.theriabook.com) to be published in second half of the year  -  I believe it is one of sample chapters that publisher will post as soon as they are done with editing/formatting.
Thank you,
Anatole
 
 
 
----- Original Message -----
From: raghuramab
Sent: Monday, May 01, 2006 2:36 PM
Subject: [flexcoders] Re: How does one build a ComboBox with a Data Grid as the drop down?

I already tried that. Including trying to assign the property in AS
code instead of MXML. In either case, I get a flex compiler error
saying "Unrecognized combobox property - dropdownFactory". I am
using Flex 2.0. Beta 2.

--Raghu

--- In flexcoders@yahoogroups.com, "Manish Jethani"
<manish.jethani@...> wrote:
>
> On 4/30/06, raghuramab <raghu@...> wrote:
>
> >        I would like to build a combobox where a DataGrid is
displayed
> > as the drop down list instead of the regular List.
>
> <mx:ComboBox dropdownFactory="mx.controls.DataGrid" ...
>
> Manish
>





#35228 From: Faisal Abid <Faisal@...>
Date: Mon May 1, 2006 7:31 pm
Subject: How To Get ANT,Eclipse,FLEX SDK working?
faisalmx7
Send Email Send Email
 
Hello, i rember a while ago i was at a seminar  and Simon of(Flexcf.com)
had a cool workspace where he had the flex sdk running in eclipse and
compiling using ANT. I want to know if anyone knows how to do that and
it will be really cool  if simon himself explains how he did that if he
has time and reads this email.

#35229 From: "Kelly @ Dekayd Media Inc." <dekayd@...>
Date: Mon May 1, 2006 7:46 pm
Subject: RE: How To Get ANT,Eclipse,FLEX SDK working?
transdimensi...
Send Email Send Email
 
All you really need to have to do this is a basic understanding of how ant
works.

For that I recommend the book Java Development with Ant


Or just find some basic ant tutorials on the web









-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Faisal Abid
Sent: Monday, May 01, 2006 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How To Get ANT,Eclipse,FLEX SDK working?

Hello, i rember a while ago i was at a seminar  and Simon of(Flexcf.com)
had a cool workspace where he had the flex sdk running in eclipse and
compiling using ANT. I want to know if anyone knows how to do that and
it will be really cool  if simon himself explains how he did that if he
has time and reads this email.



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

#35230 From: Faisal Abid <Faisal@...>
Date: Mon May 1, 2006 8:00 pm
Subject: Re: Re: Help! ( Dynamic URLs for HTTPServices )
faisalmx7
Send Email Send Email
 
I have a good example of this using Dynamic RSS feeds at my site.
http://g-unix.com/?p=54


rick@... wrote:
> Not sure if somebody already responded - I just deleted my newest
> (flexcoders)
> mail without really looking at it... and I must add the disclaimer
> that I'm
> still pretty new to Flex so I could be off base here.  That said,
>
> I had the same issue trying to use one HTTPService component to access any
> number of sites by dynamically changing the url attribute.  What I
> found (and I
> think you too by now) is that it's not the dynamic nature of the url
> causing the
> problem, but rather the cross-domain issue - hitting a different
> domain than the
> one serving your swf.  You mentioned using a php proxy file for your
> weather.com
> project.  Do the same thing here, just pass the dynamic url in the
> querystring
> and extract it in the php file before going there.  Assuming you put
> your php
> file in the same folder as your swf, your example below would look like:
>
>       <mx:HTTPService
>             id="myService"
>             url="myPHPFile.php?url={myDataGrid.selectedItem.Address}"
>             resultFormat="text"/> ...
>
> and you entire php file would be:
>
>       <?php
>             $dataURL = $_GET["url"];
>             readfile($dataURL);
>       ?>
>
> If the url you're passing already has a querystring, I found a simple
> way to
> handle that is to replace the '&' character with something unlikely (I use
> '~AND~') in Flex and re-replace the '&' in php, so the entire thing
> becomes one
> value, instead of trying to re-assemble the querystring in php.
>
> In this case your example would look like:
>
>       <mx:HTTPService
>             id="myService"
>
>
url="myPHPFile.php?url={myDataGrid.selectedItem.Address.replace(/&/g,'~AND~')}"
>             resultFormat="text"/> ...
>
> and you entire php file would be:
>
>       <?php
>             $replacethis = "~AND~";  //& was replaced by ~AND~ in Flex
> before sending the
> httprequest
>             $withthis = "&";
>             $dataURL = $_GET["url"];
>             $dataURL = str_replace($replacethis, $withthis, $dataURL);
>             readfile($dataURL);
>       ?>
>
> Why does this work locally when obviously C:\ is not the same domain as
> www.yahoo.com?  Because of Flash 8 security model which gives a locally
> executing swf access to EITHER the local file system OR the www, but
> not both
> (unless it's in trusted mode).  In Flash, you choose which you want in the
> publish settings.  I'm pretty sure Flash defaults to local access, and
> obviously Flex defaults to www access.  Search Macromedia site for
> "Flash 8
> security model" for all the info on that.
>
> Sorry for the long-winded response (and for telling you stuff you
> already knew),
> but I tried to be as detailed as possible to also benefit all the
> newbie lurkers
> like myself.  This just happens to be an issue I wrestled with for a
> LONG time
> both in Flash and in Flex and I'm pretty condfident I can actually
> help here -
> and start to give back.
>
> Rick
>
>
> -----Original Message-----
> From: oca_gw [mailto:graham.weldon@...]
> Sent: Sunday, April 30, 2006 10:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Help! ( Dynamic URLs for HTTPServices )
>
>
> Hi Again all.
>
> To further demonstrate this problem, I have developed the following
> sample application:
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
> layout="absolute" width="763" height="371">
>
>       <mx:HTTPService
>             id="myService"
>             url="{myDataGrid.selectedItem.Address}"
>             resultFormat="text"/>
>       <mx:TextArea x="10" y="220" width="155" height="141"
> text="{myDataGrid.selectedItem.SiteTitle} -
> {myDataGrid.selectedItem.Address}"/>
>       <mx:TextArea x="173" y="11" width="580" height="350"
> text="{myService.result}"/>
>       <mx:DataGrid x="10" y="11" width="155" height="141" id="myDataGrid"
> click="myService.send();">
>             <mx:columns>
>                   <mx:DataGridColumn headerText="Site"
> dataField="SiteTitle"/>
>             </mx:columns>
>             <mx:dataProvider>
>                   <mx:Array>
>                         <mx:Object SiteTitle="Google"
> Address="http://www.google.com"/>
>                         <mx:Object SiteTitle="Yahoo"
> Address="http://www.yahoo.com"/>
>                         <mx:Object SiteTitle="Graham Weldon"
> Address="http://graham.weldon.ath.cx"/>
>                   </mx:Array>
>             </mx:dataProvider>
>       </mx:DataGrid>
>
> </mx:Application>
>
>
>
>
>
> This works fine when i click "Run" in the Flex 2,0 beta 2 builder, to
> launch it as a SWF/HTML through the local browser, but as soon as I
> put it on the webserver to be deployed and publically accessible, the
> Security errors popup when the HTTPService should send().
>
> Any thoughts?
>
> Cheers, Regards,
> Graham Weldon
> Web Development Manager
> Object Connections
>
>
> --- In flexcoders@yahoogroups.com, "oca_gw" <graham.weldon@...> wrote:
> >
> > Hi All.
> >
> > I'm working with Flex 2.0 beta 2
> >
> > This response interested me, as I have been experiencing some issues
> > with HTTP Services, and the usage of dynamic destinations.
> >
> > One example that claims to be able to do this is GuniX technology's
> > administrator's RSS2.0 Reader version 0.2. (
> > http://www.g-unix.com/bin/rss/index.swf )
> > Running this sample, entering in any RSS feed causes the following
> > error to pop up:
> >
> > Error: faultCode:Channel.Security.Error faultString:'Security error
> > accessing url' faultDetail:'Destination: DefaultHTTP'
> >       at
> >
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler\
()
> <http://www.adobe.com/2006/flex/mx/internal::faultHandler%28%29>
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at mx.messaging::MessageAgent/fault()
> >       at mx.messaging::Producer/fault()
> >       at ::DirectHTTPMessageResponder/securityErrorHandler()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
> >
> >
> > This is the same error I got while programming my weather.com sample:
> > http://graham.weldon.ath.cx/?page=projects&id=weather
> <http://graham.weldon.ath.cx/?page=projects&id=weather>
> >
> > I solved the weather sample by creating a PHP file that fetched all
> > XML data from the weather.com service, rather than having flex access
> > the URLs directly.
> >
> > Intially, I was attempting to databind the URL similar to:
> >
> > mx:HTTPService
> >    id="myService"
> >    url="http://www.weather.com/blah/blah/{myLocationId}?key={myKey}
> <http://www.weather.com/blah/blah/%7BmyLocationId%7D?key=%7BmyKey%7D>"
> >    result="processResultXML(event);"
> >    resultFormat="e4x"
> >
> > This didn't work, and raised the same error as seen on GuniX's sample.
> > I felt that this was due to the dynamic nature of the URL ( since it
> > incorporates the location ID in the URL ) causing the error.
> >
> > GuniX's sample RSS reader will always have dynamic URLs, since it
> > databinds the url="" field to: textBox.text.
> >
> > The reason I have posted this in response to Darren's message, was
> > that I am unsure as to whether or not a cross-domain.xml file is the
> > solution, especially in the case of reading RSS feeds from remote
> > servers that the developer cannot deploy an XML file on. (also, not
> > sure if this is still applicable for Flex 2.0 beta 2)
> >
> > Is there a way to allow dynamic URLs in HTTPServices, without causing
> > this Security error?
> >
> >
> > Regards,
> > Graham Weldon
> > Web Development Manager
> > Object Connections
> >
> >
> > --- In flexcoders@yahoogroups.com, "Darren Houle" <lokka_@> wrote:
> > >
> > > Pretty sure you have to place a crossdomain file on the http server
> > you're
> > > trying to hit if you're going to run the swf off your desktop.
> > Normally the
> > > swf has rights to hit the server it's served from, but when you run
> > a swf
> > > file sitting on your desktop it's not "served" from any server, so
> > any web
> > > server you specify would be "foreign" and would need to have a
> > crossdomain
> > > file that allowed that swf to access it.
> > >
> > > Darren
> > >
> > >
> > >
> > > >From: "compengguy" <sachingaur.83@>
> > > >Reply-To: flexcoders@yahoogroups.com
> > > >To: flexcoders@yahoogroups.com
> > > >Subject: [flexcoders] Help!
> > > >Date: Thu, 27 Apr 2006 13:28:15 -0000
> > > >
> > > >Hi all,
> > > >I am making a page for my teamsite where i am sending the sql
> query in
> > > >the URL. which returns an xml file. When i compile and run this code
> > > >in Flex Builder 2.0 , It runs fine but when i take that swf file and
> > > >run it seperately It gives the following errors.
> > > >
> > > >       *****************************************************
> > > >Error: faultCode:Channel.Security.Error faultString:'Security error
> > > >accessing url' faultDetail:'Destination: DefaultHTTP'
> > > >      at
> > >
> >
>
>mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandle\
r()
> <http://www.adobe.com/2006/flex/mx/internal::faultHandler%28%29>
> > > >      at flash.events::EventDispatcher/dispatchEvent()
> > > >      at mx.messaging::MessageAgent/fault()
> > > >      at mx.messaging::Producer/fault()
> > > >      at ::DirectHTTPMessageResponder/securityErrorHandler()
> > > >      at flash.events::EventDispatcher/dispatchEvent()
> > > >      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
> > > >       ********************************************************
> > > >what i need to do,to not to have this warning because after the
> > > >warning it not fetches the data.
> > > >
> > > >The code snippet is
> > > ><mx:HTTPService id="xml" url="Some URL" useProxy="false"/>
> > > >
> > > >so can anybody suggest what i need to do ?
> > > >
> > > >Thanks
> > > >Sachin Gaur
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >--
> > > >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 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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS
> Web site design development
>
<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+des\
ign+development&w2=Computer+software+development&w3=Software+design+and+developm\
ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4Q\
TvxB_quFDtMyhrQaHQ>
>  Computer software development
>
<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+d\
esign+development&w2=Computer+software+development&w3=Software+design+and+develo\
pment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lv\
QjSRfQDfWudJSe1lLjHw>
>  Software design and development
>
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site\
+design+development&w2=Computer+software+development&w3=Software+design+and+deve\
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=\
1pMBCdo3DsJbuU9AEmO1oQ>
>
> Macromedia flex
>
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+developm\
ent&w2=Computer+software+development&w3=Software+design+and+development&w4=Macro\
media+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36\
cYzBjw>
>  Software development best practice
>
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+s\
ite+design+development&w2=Computer+software+development&w3=Software+design+and+d\
evelopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s\
ig=f89quyyulIDsnABLD6IXIw>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

#35231 From: Faisal Abid <Faisal@...>
Date: Mon May 1, 2006 8:01 pm
Subject: Re: Re: Help! ( Dynamic URLs for HTTPServices )
faisalmx7
Send Email Send Email
 
Oops ,, and also the source file http://www.g-unix.com/bin/rss/source.rar
read my first email and then this one


rick@... wrote:
> Not sure if somebody already responded - I just deleted my newest
> (flexcoders)
> mail without really looking at it... and I must add the disclaimer
> that I'm
> still pretty new to Flex so I could be off base here.  That said,
>
> I had the same issue trying to use one HTTPService component to access any
> number of sites by dynamically changing the url attribute.  What I
> found (and I
> think you too by now) is that it's not the dynamic nature of the url
> causing the
> problem, but rather the cross-domain issue - hitting a different
> domain than the
> one serving your swf.  You mentioned using a php proxy file for your
> weather.com
> project.  Do the same thing here, just pass the dynamic url in the
> querystring
> and extract it in the php file before going there.  Assuming you put
> your php
> file in the same folder as your swf, your example below would look like:
>
>       <mx:HTTPService
>             id="myService"
>             url="myPHPFile.php?url={myDataGrid.selectedItem.Address}"
>             resultFormat="text"/> ...
>
> and you entire php file would be:
>
>       <?php
>             $dataURL = $_GET["url"];
>             readfile($dataURL);
>       ?>
>
> If the url you're passing already has a querystring, I found a simple
> way to
> handle that is to replace the '&' character with something unlikely (I use
> '~AND~') in Flex and re-replace the '&' in php, so the entire thing
> becomes one
> value, instead of trying to re-assemble the querystring in php.
>
> In this case your example would look like:
>
>       <mx:HTTPService
>             id="myService"
>
>
url="myPHPFile.php?url={myDataGrid.selectedItem.Address.replace(/&/g,'~AND~')}"
>             resultFormat="text"/> ...
>
> and you entire php file would be:
>
>       <?php
>             $replacethis = "~AND~";  //& was replaced by ~AND~ in Flex
> before sending the
> httprequest
>             $withthis = "&";
>             $dataURL = $_GET["url"];
>             $dataURL = str_replace($replacethis, $withthis, $dataURL);
>             readfile($dataURL);
>       ?>
>
> Why does this work locally when obviously C:\ is not the same domain as
> www.yahoo.com?  Because of Flash 8 security model which gives a locally
> executing swf access to EITHER the local file system OR the www, but
> not both
> (unless it's in trusted mode).  In Flash, you choose which you want in the
> publish settings.  I'm pretty sure Flash defaults to local access, and
> obviously Flex defaults to www access.  Search Macromedia site for
> "Flash 8
> security model" for all the info on that.
>
> Sorry for the long-winded response (and for telling you stuff you
> already knew),
> but I tried to be as detailed as possible to also benefit all the
> newbie lurkers
> like myself.  This just happens to be an issue I wrestled with for a
> LONG time
> both in Flash and in Flex and I'm pretty condfident I can actually
> help here -
> and start to give back.
>
> Rick
>
>
> -----Original Message-----
> From: oca_gw [mailto:graham.weldon@...]
> Sent: Sunday, April 30, 2006 10:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Help! ( Dynamic URLs for HTTPServices )
>
>
> Hi Again all.
>
> To further demonstrate this problem, I have developed the following
> sample application:
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
> layout="absolute" width="763" height="371">
>
>       <mx:HTTPService
>             id="myService"
>             url="{myDataGrid.selectedItem.Address}"
>             resultFormat="text"/>
>       <mx:TextArea x="10" y="220" width="155" height="141"
> text="{myDataGrid.selectedItem.SiteTitle} -
> {myDataGrid.selectedItem.Address}"/>
>       <mx:TextArea x="173" y="11" width="580" height="350"
> text="{myService.result}"/>
>       <mx:DataGrid x="10" y="11" width="155" height="141" id="myDataGrid"
> click="myService.send();">
>             <mx:columns>
>                   <mx:DataGridColumn headerText="Site"
> dataField="SiteTitle"/>
>             </mx:columns>
>             <mx:dataProvider>
>                   <mx:Array>
>                         <mx:Object SiteTitle="Google"
> Address="http://www.google.com"/>
>                         <mx:Object SiteTitle="Yahoo"
> Address="http://www.yahoo.com"/>
>                         <mx:Object SiteTitle="Graham Weldon"
> Address="http://graham.weldon.ath.cx"/>
>                   </mx:Array>
>             </mx:dataProvider>
>       </mx:DataGrid>
>
> </mx:Application>
>
>
>
>
>
> This works fine when i click "Run" in the Flex 2,0 beta 2 builder, to
> launch it as a SWF/HTML through the local browser, but as soon as I
> put it on the webserver to be deployed and publically accessible, the
> Security errors popup when the HTTPService should send().
>
> Any thoughts?
>
> Cheers, Regards,
> Graham Weldon
> Web Development Manager
> Object Connections
>
>
> --- In flexcoders@yahoogroups.com, "oca_gw" <graham.weldon@...> wrote:
> >
> > Hi All.
> >
> > I'm working with Flex 2.0 beta 2
> >
> > This response interested me, as I have been experiencing some issues
> > with HTTP Services, and the usage of dynamic destinations.
> >
> > One example that claims to be able to do this is GuniX technology's
> > administrator's RSS2.0 Reader version 0.2. (
> > http://www.g-unix.com/bin/rss/index.swf )
> > Running this sample, entering in any RSS feed causes the following
> > error to pop up:
> >
> > Error: faultCode:Channel.Security.Error faultString:'Security error
> > accessing url' faultDetail:'Destination: DefaultHTTP'
> >       at
> >
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler\
()
> <http://www.adobe.com/2006/flex/mx/internal::faultHandler%28%29>
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at mx.messaging::MessageAgent/fault()
> >       at mx.messaging::Producer/fault()
> >       at ::DirectHTTPMessageResponder/securityErrorHandler()
> >       at flash.events::EventDispatcher/dispatchEvent()
> >       at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
> >
> >
> > This is the same error I got while programming my weather.com sample:
> > http://graham.weldon.ath.cx/?page=projects&id=weather
> <http://graham.weldon.ath.cx/?page=projects&id=weather>
> >
> > I solved the weather sample by creating a PHP file that fetched all
> > XML data from the weather.com service, rather than having flex access
> > the URLs directly.
> >
> > Intially, I was attempting to databind the URL similar to:
> >
> > mx:HTTPService
> >    id="myService"
> >    url="http://www.weather.com/blah/blah/{myLocationId}?key={myKey}
> <http://www.weather.com/blah/blah/%7BmyLocationId%7D?key=%7BmyKey%7D>"
> >    result="processResultXML(event);"
> >    resultFormat="e4x"
> >
> > This didn't work, and raised the same error as seen on GuniX's sample.
> > I felt that this was due to the dynamic nature of the URL ( since it
> > incorporates the location ID in the URL ) causing the error.
> >
> > GuniX's sample RSS reader will always have dynamic URLs, since it
> > databinds the url="" field to: textBox.text.
> >
> > The reason I have posted this in response to Darren's message, was
> > that I am unsure as to whether or not a cross-domain.xml file is the
> > solution, especially in the case of reading RSS feeds from remote
> > servers that the developer cannot deploy an XML file on. (also, not
> > sure if this is still applicable for Flex 2.0 beta 2)
> >
> > Is there a way to allow dynamic URLs in HTTPServices, without causing
> > this Security error?
> >
> >
> > Regards,
> > Graham Weldon
> > Web Development Manager
> > Object Connections
> >
> >
> > --- In flexcoders@yahoogroups.com, "Darren Houle" <lokka_@> wrote:
> > >
> > > Pretty sure you have to place a crossdomain file on the http server
> > you're
> > > trying to hit if you're going to run the swf off your desktop.
> > Normally the
> > > swf has rights to hit the server it's served from, but when you run
> > a swf
> > > file sitting on your desktop it's not "served" from any server, so
> > any web
> > > server you specify would be "foreign" and would need to have a
> > crossdomain
> > > file that allowed that swf to access it.
> > >
> > > Darren
> > >
> > >
> > >
> > > >From: "compengguy" <sachingaur.83@>
> > > >Reply-To: flexcoders@yahoogroups.com
> > > >To: flexcoders@yahoogroups.com
> > > >Subject: [flexcoders] Help!
> > > >Date: Thu, 27 Apr 2006 13:28:15 -0000
> > > >
> > > >Hi all,
> > > >I am making a page for my teamsite where i am sending the sql
> query in
> > > >the URL. which returns an xml file. When i compile and run this code
> > > >in Flex Builder 2.0 , It runs fine but when i take that swf file and
> > > >run it seperately It gives the following errors.
> > > >
> > > >       *****************************************************
> > > >Error: faultCode:Channel.Security.Error faultString:'Security error
> > > >accessing url' faultDetail:'Destination: DefaultHTTP'
> > > >      at
> > >
> >
>
>mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandle\
r()
> <http://www.adobe.com/2006/flex/mx/internal::faultHandler%28%29>
> > > >      at flash.events::EventDispatcher/dispatchEvent()
> > > >      at mx.messaging::MessageAgent/fault()
> > > >      at mx.messaging::Producer/fault()
> > > >      at ::DirectHTTPMessageResponder/securityErrorHandler()
> > > >      at flash.events::EventDispatcher/dispatchEvent()
> > > >      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
> > > >       ********************************************************
> > > >what i need to do,to not to have this warning because after the
> > > >warning it not fetches the data.
> > > >
> > > >The code snippet is
> > > ><mx:HTTPService id="xml" url="Some URL" useProxy="false"/>
> > > >
> > > >so can anybody suggest what i need to do ?
> > > >
> > > >Thanks
> > > >Sachin Gaur
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >--
> > > >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 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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> SPONSORED LINKS
> Web site design development
>
<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+des\
ign+development&w2=Computer+software+development&w3=Software+design+and+developm\
ent&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4Q\
TvxB_quFDtMyhrQaHQ>
>  Computer software development
>
<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+d\
esign+development&w2=Computer+software+development&w3=Software+design+and+develo\
pment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lv\
QjSRfQDfWudJSe1lLjHw>
>  Software design and development
>
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site\
+design+development&w2=Computer+software+development&w3=Software+design+and+deve\
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=\
1pMBCdo3DsJbuU9AEmO1oQ>
>
> Macromedia flex
>
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+developm\
ent&w2=Computer+software+development&w3=Software+design+and+development&w4=Macro\
media+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36\
cYzBjw>
>  Software development best practice
>
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+s\
ite+design+development&w2=Computer+software+development&w3=Software+design+and+d\
evelopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s\
ig=f89quyyulIDsnABLD6IXIw>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        flexcoders-unsubscribe@yahoogroups.com
>       <mailto:flexcoders-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

#35232 From: "vestcomprogrammer" <vestcomprogrammer@...>
Date: Mon May 1, 2006 7:53 pm
Subject: Select ComboBox
vestcomprogr...
Send Email Send Email
 
I need to change the selectedIndex of a combox based of a string value.

Example:

Combobox has
"not selected --"
"Arial"
"Georgia"
"Impact"
"Tahoma"
"Times New Roman"
"Verdana"
"Webdings"
"Windings"

I want to be able to change the selectedIndex by that value say if I
have "Impact" it would changed it to Impact.


Thanks
Bill

#35233 From: "oca_gw" <graham.weldon@...>
Date: Mon May 1, 2006 8:42 pm
Subject: Flex Component Directory
oca_gw
Send Email Send Email
 
I've been working on a web application that is free to subscribe to
and use, that would allow people to post and comment on Flex Components.

The site is loosely modelled off SourceForge in functionality, and
will allow the following features:

Create a project
Add files (mark releases)
Add news / messages
Have many developers for one Project/ Component
Searchable listing
and more...

There are some basic details on my little blog:
http://graham.weldon.ath.cx/blog/?p=8
There will also be a Wiki for this appearing this week.

Is anyone interested in seeing this up? With support and suggestions,
I can put more effort in and get the basic site running sooner, rather
than later.

I know personally I would love a central database of flex
components that allows people to freely post components for download.
I am interested to see who would use this.

Let me know

Regards,
Graham Weldon

#35234 From: "oca_gw" <graham.weldon@...>
Date: Mon May 1, 2006 8:51 pm
Subject: Re: Help! ( Dynamic URLs for HTTPServices )
oca_gw
Send Email Send Email
 
Hi Rick,

Thanks for your response, a lot of that I knew already, but its great
to post that information for the other readers too!

Here is the PHP file that I use for the Flex Weather application. I
felt that this may be of use to someone:

--------------------------------------------------------------------
<?
$url = trim($_REQUEST['url']);
$urlString = $url . '?';
$paramCount = 0;

foreach ($_REQUEST as $key => $value)
{
     if (strlen($key) > 6 && substr($key, 0, 6) == 'param_')
     {
         if ($paramCount != 0)
             $urlString .= '&';
         $urlString .= substr($key, 6, strlen($key)) . '=' . $value;
         ++$paramCount;
     }
}

header('Content-type: text/xml');

$handle = fopen($urlString, 'r');
if (!$handle)
     die('<error>Could not open specified URL</error>');

while (!feof($handle))
     $result .= fread($handle, 8192);

die($result);

?>
--------------------------------------------------------------------

Basically, in your HTTPService, you now specify the address to go to
as the <url> parameter, and all parameters for that url are prepended
with the "param_" string:

<mx:HTTPService
     id="myProxiedService"
     url="proxy.php">
     <mx:request>
         <url>{myDataGrid.selectedItem.Address}</url>
         <param_name>{nameInput.text}</param_name>
         <param_age>{ageInput.text}</param_age>
         <param_secret>{mySecretVar}1234</param_secret>
     </mx:request>
</mx:HTTPService>

This allows you to proxy any URL, with any set of parameters.

I have JSP and ASP(VB) versions of this also if people want. Let me know.

Regards,
Graham Weldon
Web Development Manager
Object Connections




--- In flexcoders@yahoogroups.com, rick@... wrote:
>
> Not sure if somebody already responded - I just deleted my newest
(flexcoders)
> mail without really looking at it... and I must add the disclaimer
that I'm
> still pretty new to Flex so I could be off base here.  That said,
>
> I had the same issue trying to use one HTTPService component to
access any
> number of sites by dynamically changing the url attribute.  What I
found (and I
> think you too by now) is that it's not the dynamic nature of the url
causing the
> problem, but rather the cross-domain issue - hitting a different
domain than the
> one serving your swf.  You mentioned using a php proxy file for your
weather.com
> project.  Do the same thing here, just pass the dynamic url in the
querystring
> and extract it in the php file before going there.  Assuming you put
your php
> file in the same folder as your swf, your example below would look like:
>
>  <mx:HTTPService
> 	 id="myService"
> 	 url="myPHPFile.php?url={myDataGrid.selectedItem.Address}"
> 	 resultFormat="text"/> ...
>
> and you entire php file would be:
>
>  <?php
> 	 $dataURL = $_GET["url"];
> 	 readfile($dataURL);
>  ?>
>
> If the url you're passing already has a querystring, I found a
simple way to
> handle that is to replace the '&' character with something unlikely
(I use
> '~AND~') in Flex and re-replace the '&' in php, so the entire thing
becomes one
> value, instead of trying to re-assemble the querystring in php.
>
> In this case your example would look like:
>
>  <mx:HTTPService
> 	 id="myService"
>
url="myPHPFile.php?url={myDataGrid.selectedItem.Address.replace(/&/g,'~AND~')}"
> 	 resultFormat="text"/> ...
>
> and you entire php file would be:
>
>  <?php
> 	 $replacethis = "~AND~";  //& was replaced by ~AND~ in Flex before
sending the
> httprequest
> 	 $withthis = "&";
> 	 $dataURL = $_GET["url"];
> 	 $dataURL = str_replace($replacethis, $withthis, $dataURL);
> 	 readfile($dataURL);
>  ?>
>
> Why does this work locally when obviously C:\ is not the same domain as
> www.yahoo.com?  Because of Flash 8 security model which gives a locally
> executing swf access to EITHER the local file system OR the www, but
not both
> (unless it's in trusted mode).  In Flash, you choose which you want
in the
> publish settings.  I'm pretty sure Flash defaults to local access, and
> obviously Flex defaults to www access.  Search Macromedia site for
"Flash 8
> security model" for all the info on that.
>
> Sorry for the long-winded response (and for telling you stuff you
already knew),
> but I tried to be as detailed as possible to also benefit all the
newbie lurkers
> like myself.  This just happens to be an issue I wrestled with for a
LONG time
> both in Flash and in Flex and I'm pretty condfident I can actually
help here -
> and start to give back.
>
> Rick
>
>
> -----Original Message-----
> From: oca_gw [mailto:graham.weldon@...]
> Sent: Sunday, April 30, 2006 10:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Help! ( Dynamic URLs for HTTPServices )
>
>
> Hi Again all.
>
> To further demonstrate this problem, I have developed the following
> sample application:
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
> layout="absolute" width="763" height="371">
>
>  <mx:HTTPService
> 	 id="myService"
> 	 url="{myDataGrid.selectedItem.Address}"
> 	 resultFormat="text"/>
>  <mx:TextArea x="10" y="220" width="155" height="141"
> text="{myDataGrid.selectedItem.SiteTitle} -
> {myDataGrid.selectedItem.Address}"/>
>  <mx:TextArea x="173" y="11" width="580" height="350"
> text="{myService.result}"/>
>  <mx:DataGrid x="10" y="11" width="155" height="141" id="myDataGrid"
> click="myService.send();">
> 	 <mx:columns>
> 		 <mx:DataGridColumn headerText="Site" dataField="SiteTitle"/>
> 	 </mx:columns>
> 	 <mx:dataProvider>
> 		 <mx:Array>
> 			 <mx:Object SiteTitle="Google" Address="http://www.google.com"/>
> 			 <mx:Object SiteTitle="Yahoo" Address="http://www.yahoo.com"/>
> 			 <mx:Object SiteTitle="Graham Weldon"
> Address="http://graham.weldon.ath.cx"/>
> 		 </mx:Array>
> 	 </mx:dataProvider>
>  </mx:DataGrid>
>
> </mx:Application>
>
>
>
>
>
> This works fine when i click "Run" in the Flex 2,0 beta 2 builder, to
> launch it as a SWF/HTML through the local browser, but as soon as I
> put it on the webserver to be deployed and publically accessible, the
> Security errors popup when the HTTPService should send().
>
> Any thoughts?
>
> Cheers, Regards,
> Graham Weldon
> Web Development Manager
> Object Connections
>
>
> --- In flexcoders@yahoogroups.com, "oca_gw" <graham.weldon@> wrote:
> >
> > Hi All.
> >
> > I'm working with Flex 2.0 beta 2
> >
> > This response interested me, as I have been experiencing some issues
> > with HTTP Services, and the usage of dynamic destinations.
> >
> > One example that claims to be able to do this is GuniX technology's
> > administrator's RSS2.0 Reader version 0.2. (
> > http://www.g-unix.com/bin/rss/index.swf )
> > Running this sample, entering in any RSS feed causes the following
> > error to pop up:
> >
> > Error: faultCode:Channel.Security.Error faultString:'Security error
> > accessing url' faultDetail:'Destination: DefaultHTTP'
> >  at
> >
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler\
()
> >  at flash.events::EventDispatcher/dispatchEvent()
> >  at mx.messaging::MessageAgent/fault()
> >  at mx.messaging::Producer/fault()
> >  at ::DirectHTTPMessageResponder/securityErrorHandler()
> >  at flash.events::EventDispatcher/dispatchEvent()
> >  at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
> >
> >
> > This is the same error I got while programming my weather.com sample:
> > http://graham.weldon.ath.cx/?page=projects&id=weather
> >
> > I solved the weather sample by creating a PHP file that fetched all
> > XML data from the weather.com service, rather than having flex access
> > the URLs directly.
> >
> > Intially, I was attempting to databind the URL similar to:
> >
> > mx:HTTPService
> >    id="myService"
> >    url="http://www.weather.com/blah/blah/{myLocationId}?key={myKey}"
> >    result="processResultXML(event);"
> >    resultFormat="e4x"
> >
> > This didn't work, and raised the same error as seen on GuniX's sample.
> > I felt that this was due to the dynamic nature of the URL ( since it
> > incorporates the location ID in the URL ) causing the error.
> >
> > GuniX's sample RSS reader will always have dynamic URLs, since it
> > databinds the url="" field to: textBox.text.
> >
> > The reason I have posted this in response to Darren's message, was
> > that I am unsure as to whether or not a cross-domain.xml file is the
> > solution, especially in the case of reading RSS feeds from remote
> > servers that the developer cannot deploy an XML file on. (also, not
> > sure if this is still applicable for Flex 2.0 beta 2)
> >
> > Is there a way to allow dynamic URLs in HTTPServices, without causing
> > this Security error?
> >
> >
> > Regards,
> > Graham Weldon
> > Web Development Manager
> > Object Connections
> >
> >
> > --- In flexcoders@yahoogroups.com, "Darren Houle" <lokka_@> wrote:
> > >
> > > Pretty sure you have to place a crossdomain file on the http server
> > you're
> > > trying to hit if you're going to run the swf off your desktop.
> > Normally the
> > > swf has rights to hit the server it's served from, but when you run
> > a swf
> > > file sitting on your desktop it's not "served" from any server, so
> > any web
> > > server you specify would be "foreign" and would need to have a
> > crossdomain
> > > file that allowed that swf to access it.
> > >
> > > Darren
> > >
> > >
> > >
> > > >From: "compengguy" <sachingaur.83@>
> > > >Reply-To: flexcoders@yahoogroups.com
> > > >To: flexcoders@yahoogroups.com
> > > >Subject: [flexcoders] Help!
> > > >Date: Thu, 27 Apr 2006 13:28:15 -0000
> > > >
> > > >Hi all,
> > > >I am making a page for my teamsite where i am sending the sql
> query in
> > > >the URL. which returns an xml file. When i compile and run this
code
> > > >in Flex Builder 2.0 , It runs fine but when i take that swf
file and
> > > >run it seperately It gives the following errors.
> > > >
> > > >       *****************************************************
> > > >Error: faultCode:Channel.Security.Error faultString:'Security error
> > > >accessing url' faultDetail:'Destination: DefaultHTTP'
> > > > at
> > >
> >
>
>mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandle\
r()
> > > > at flash.events::EventDispatcher/dispatchEvent()
> > > > at mx.messaging::MessageAgent/fault()
> > > > at mx.messaging::Producer/fault()
> > > > at ::DirectHTTPMessageResponder/securityErrorHandler()
> > > > at flash.events::EventDispatcher/dispatchEvent()
> > > > at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
> > > >       ********************************************************
> > > >what i need to do,to not to have this warning because after the
> > > >warning it not fetches the data.
> > > >
> > > >The code snippet is
> > > ><mx:HTTPService id="xml" url="Some URL" useProxy="false"/>
> > > >
> > > >so can anybody suggest what i need to do ?
> > > >
> > > >Thanks
> > > >Sachin Gaur
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >--
> > > >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 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
>

#35235 From: "Carlos Rovira" <carlos.rovira@...>
Date: Mon May 1, 2006 8:50 pm
Subject: [Flex2] Problems with Fonts
carlos.rovira
Send Email Send Email
 
Hi,

I was developing a piece of software that requieres an embeded font and I'm having problems with a range of symbols in that font.

I'm parsing XML an using "String.fromCharCode(<decimal character code>);" sentece to write font symbols to a textarea.
(Note that <decimal character code> is a number from 32 - 255 in a chart of font symbols of the embeded font)

The problem is that I can't access some symbols in the embeded font. In particular those that goes from 128-159 range.

I trying to find some solution with no luck at all. All programs that I use to load the font and see the glyps shows the entire font without problem and shows the decimal numbers matching the ones I have in the chart.

Hope someone could give me some advice so I can follow developing my application and accesing that glyps.

Thanks in advance.


--
::| Carlos Rovira
::| http://www.carlosrovira.com

#35236 From: "Kelly @ Dekayd Media Inc." <dekayd@...>
Date: Mon May 1, 2006 9:01 pm
Subject: RE: Flex Component Directory
transdimensi...
Send Email Send Email
 
I would use it and would be willing to help implement it or host it if
necessary.

I could definitely contribute to it.


Thanks


--Kelly




-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of oca_gw
Sent: Monday, May 01, 2006 1:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Component Directory

I've been working on a web application that is free to subscribe to
and use, that would allow people to post and comment on Flex Components.

The site is loosely modelled off SourceForge in functionality, and
will allow the following features:

Create a project
Add files (mark releases)
Add news / messages
Have many developers for one Project/ Component
Searchable listing
and more...

There are some basic details on my little blog:
http://graham.weldon.ath.cx/blog/?p=8
There will also be a Wiki for this appearing this week.

Is anyone interested in seeing this up? With support and suggestions,
I can put more effort in and get the basic site running sooner, rather
than later.

I know personally I would love a central database of flex
components that allows people to freely post components for download.
I am interested to see who would use this.

Let me know

Regards,
Graham Weldon






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

#35237 From: "Tom Bray" <tombray@...>
Date: Mon May 1, 2006 9:07 pm
Subject: TOC broken in Flex 2 livedocs
c4g3d0g
Send Email Send Email
 
I've been going to the link below and clicking the button at the top left to view the TOC/search/index functionality:

http://livedocs.macromedia.com/labs/1/flex20beta2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=Part2_DevApps.html

But now that button is broken.  In general, links to the livedocs need to be more obvious at labs.adobe.com.  I've been digging around to see if there's an updated link -- I'd rather see all the documentation listed on the front page so I don't have to dig.

Thanks,

Tom

#35238 From: "Jonathan Miranda" <jonathanmiranda@...>
Date: Mon May 1, 2006 9:36 pm
Subject: Re: Custom Chart Series
snowtechagent
Send Email Send Email
 
Can ya point out where in the Framework that xField and yField get
used by the BarSeries? Not seeing it in BarSeries, Series or
ChartItem....

Here's what I've got so far:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:custom="*">
	 <mx:Script>
		 <![CDATA[
			 [Bindable]
			 private var Jobs:Array = [{Task:"Number 1",Time:35,Depends:-1},
										 {Task:"Number 2",Time:30,Depends:0},
										 {Task:"Number 3",Time:35,Depends:1}];
		 ]]>
	 </mx:Script>

	 <mx:BarChart id="bar" height="100%" width="100%" dataProvider="{Jobs}">
		 <mx:verticalAxis>
			 <mx:CategoryAxis dataProvider="{Jobs}" categoryField="Task"/>
		 </mx:verticalAxis>
		 <mx:series>
			 <mx:Array>
				 <custom:GanttSeries yField="Task" displayName="Task"
durationValue="Time" dependentItem="Depends"/>
			 </mx:Array>
		 </mx:series>
	 </mx:BarChart>
</mx:Application>

Custom series:
package
{
	 import mx.charts.series.BarSeries;
	 public class GanttSeries extends BarSeries
	 {
		 private var _durationValue:String = null;
		 private var _dependentItem:String = null;

		 public function get durationValue():String {
			 return _durationValue;
		 }

		 public function set durationValue(value:String):void {
			 _durationValue = value;
		 }
		 public function get dependentItem():String {
			 return _dependentItem;
		 }

		 public function set dependentItem(value:String):void {
			 _dependentItem = value;
		 }

		 override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void {


		 }
	 }
}

#35239 From: "Tracy Spratt" <tspratt@...>
Date: Mon May 1, 2006 10:20 pm
Subject: RE: Select ComboBox
nts333rd
Send Email Send Email
 
You'll need to loop over the dataProvider and do a comparison.
http://www.cflex.net/showfiledetails.cfm?FileID=229
Tracy

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of vestcomprogrammer
Sent: Monday, May 01, 2006 3:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Select ComboBox

I need to change the selectedIndex of a combox based of a string value.

Example:

Combobox has
"not selected --"
"Arial"
"Georgia"
"Impact"
"Tahoma"
"Times New Roman"
"Verdana"
"Webdings"
"Windings"

I want to be able to change the selectedIndex by that value say if I
have "Impact" it would changed it to Impact.


Thanks
Bill





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

#35240 From: "Tracy Spratt" <tspratt@...>
Date: Mon May 1, 2006 10:27 pm
Subject: RE: Has anyone done a tree grid with columns
nts333rd
Send Email Send Email
 
Yes. I haven't tried it but search the archives or cflex.net or even
google for "Flex TreeGrid"
Tracy

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of hank williams
Sent: Sunday, April 30, 2006 10:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Has anyone done a tree grid with columns

Has anyone done a tree grid with columns. What I am really looking for
is a datagrid where the first column had a tree structure that would
allow the showing and hiding of rows.

Hank


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

#35241 From: judah <judah@...>
Date: Mon May 1, 2006 10:36 pm
Subject: Re: Are there any Flex Seminars coming up
judah@...
Send Email Send Email
 
There was a overview of Flex 2 by Jesse Warden last week that was really good (http://www.gotoandstop.org/meetings.htm). You could have attended in person or online. They have the recording up if you want to watch it. The only problem in this video is when he starts to show his desktop (showing Flex Builder and such) a lot of the video dropped out. You can still hear the audio.

But if you are past the overview stage then you're only options are attending classes (cfunited.com). Macromedia has a some good videos online but they sort of target key features and glaze over the actual process.

I would really like to see another presentation where someone would walk through creating a simple website with some design and thought behind it. Sort of a beginners guide, best practices as well. Maybe using Cardhouse or Carnies or whatever it is.

Judah

nostra72@... wrote:
 have sort of hit a brick wall with Flex I am trying to self teach myself with a book which is fine except I think I could learn a lot more. I believe Flex to be very useful I just want to make sure I can get everything out of it so I can help others. I live in Atlanta Georgia if there are any Seminars on the subject of Flex near me let me know, also I do not mind flying out to go to one if there are any. Also if there are any near Hartford Connecticut let me know
Jonathan Alexander


-- "Always bear in mind that your own resolution to succeed is more important than any one thing."
"You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose." - Abraham Lincoln

#35242 From: "Tobias Patton" <tobias.patton@...>
Date: Mon May 1, 2006 10:27 pm
Subject: Flex 2b2: Creating HTML wrapper outside of Flexbuilder
tobiaspatton
Send Email Send Email
 

Hello flexcoders;

 

Does anyone know a way of processing index.template.html outside of Flexbuilder to create an html wrapper for a Flex application?

 

Maybe there’s a Java class in Flex/libs that could do this?

 

Thanks.

Tobias.

Kodak Graphic Communications Canada Company

Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext: 5148 | mailto:tobias.patton@... | http://www.creo.com

 


#35243 From: "Gordon Smith" <gosmith@...>
Date: Mon May 1, 2006 10:33 pm
Subject: RE: Flex2: getters, setters and function literals
gsmithsf
Send Email Send Email
 
Yes, please use the wishlist to suggest this as a feature for a future
release. I'm afraid that we're too far along on Flex 2.0 to be able to
consider it for this release.

It was interesting to hear your perspective on this issue. My own
experience coding in AS2 and AS3 has been quite different; using AS3 in
a non-dynamic way has significantly increased the productivity of
developers on the Flex framework team as well as the performance of the
framework classes.

- Gordon


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Dion Mendel
Sent: Friday, April 28, 2006 6:41 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2: getters, setters and function literals

On Fri, Apr 28, 2006 at 01:09:59PM -0700, Gordon Smith wrote:

> I suppose this is perhaps a religious issue, but I think dynamic
objects
> also hurt programmer efficiency.

To give an example, the project I am currently working on is using a
Ruby on Rails backend and a Flex frontend.  The backend code is by far
the easier of the two to work on, refactoring is straight forward and
the code is simpler to read.  This is due mainly to Ruby's dynamic
nature.

> It may seem like you have to do less work to get something up and
> running, but it costs you too much in inefficiency over the life of
the
> project, because the compiler doesn't catch the errors that it would
> catch if your objects were non-dynamic.

This is an argument that I've heard before but it doesn't match my
experience.  In my five years of programming with dynamic languages,
type mismatch errors rarely occur.  Perhaps they do occur frequently
with novice programmers, and for them a hand holding language may be
more appropriate.

> The basic problem is that you can reference any property on a dynamic
> object without getting an error, either at compile time or a run time,
> so something as basic as a spelling error produces a less obvious
error
> later when your code does something with the resulting 'undefined'
> value.

AS3 seems to be in an awkward position of having javascript (dynamic)
roots, while adding compile time checking to function calls and property
accesses.  The result is satisfactory for neither the dynamic or static
typing camps.

Dynamic programmers have to add type qualifiers everywhere, while static
programmers don't always have the compile time type checking safety net.
Using Objects as hashtables and e4x are both dynamic without any static
type checking, and have the "fail silently" error you mentioned above.

The way dynamic languages generally handle the typo problem is to log a
warning in debug mode when an undefined property is read.  Flash 8.5
doesn't do this, and it might be a nice feature to have.

We've drifted a little from the original question - which was how to
dynamically define getters and setters.  I notice that Mozilla's
implementation of javascript allows this.  Would a feature request for
this be worthwhile for me to make?  The reasoning for this request is
for fuller support for dynamic programming in an already dynamic
language.  It's a wishlist, not required.

Dion.


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

#35244 From: Robert Thompson <robert_thompson_13@...>
Date: Mon May 1, 2006 10:43 pm
Subject: RE: Flex Component Directory
robert_thomp...
Send Email Send Email
 
Are we talking about a site that allows component creators to post their components, go through and approval process, then be added to a catalog, be compensated for purchase; maybe affiliate programs also?

"Kelly @ Dekayd Media Inc." <dekayd@...> wrote:
I would use it and would be willing to help implement it or host it if
necessary.

I could definitely contribute to it.


Thanks


--Kelly




-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of oca_gw
Sent: Monday, May 01, 2006 1:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Component Directory

I've been working on a web application that is free to subscribe to
and use, that would allow people to post and comment on Flex Components.

The site is loosely modelled off SourceForge in functionality, and
will allow the following features:

Create a project
Add files (mark releases)
Add news / messages
Have many developers for one Project/ Component
Searchable listing
and more...

There are some basic details on my little blog:
http://graham.weldon.ath.cx/blog/?p=8
There will also be a Wiki for this appearing this week.

Is anyone interested in seeing this up? With support and suggestions,
I can put more effort in and get the basic site running sooner, rather
than later.

I know personally I would love a central database of flex
components that allows people to freely post components for download.
I am interested to see who would use this.

Let me know

Regards,
Graham Weldon






--
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! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Messages 35215 - 35244 of 165719   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help