[flexcoders] Changing the properties of a Drag Proxy

2005-12-28 Thread Eric Raymond
Is there a way to change the properties of the dragProxy in response
to a drag event?

For example can you change the size or scale of the proxy if you drag
it over certain targets?






 Yahoo! Groups Sponsor ~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/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: How to handle manipulation of Date object and Timezones elegantly in Flex?

2005-12-28 Thread Kam-Wing Pang
Hi Jim,

Your problem appears to be half the problem that I am having.

In your case, the client requests (for record insertion of a date)
that is sent back to the server means that the server tries to
translate the time into it's local timezone.

Our problem inlcudes the above, plus any date object that the server
sends to the client also has the same problem. The client translates
the server sent date object into it's local timezone. 

In any case, the solutions are:

1. To do offsetting at the client end 
2. To do offsetting at the server end
3. To use custom defined object for date/time without any timezones.

#1 and #2 can be tricky if you have many places where the date object
is referenced. For example, you may miss some date references, you
need to check that every date object really does need offsetting,
there is overhead when doing offsetting, you need to test thoroughly
through all timezones just in case you there are some quirky side effects.

#3 may require significant refactoring of existing methods.

Some of the underlying issues are with the implementation of Date object:

1. In Flex (ActionScript), the Date object doesn't allow manual
setting of the timezone
2. In Java, the Date object is deprecated and harder to manage than a
Calendar object.

So as far as I know, there isn't a way of ignoring timezones when
using the Date object.

I assume that using remote objects and passing of the Flex Date object
as a parameter, we can only map the the Java Date object to it. It
would be nice to map a Java Calendar object instead.

Cheers,

Kam



--- In flexcoders@yahoogroups.com, Jim Laing <[EMAIL PROTECTED]> wrote:
>
> On 12/22/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> > Are there other developers out here who've been building apps that
need
> > to work in multiple timezones (or store their dates in GMT but work in
> > another)?  I know I've answered some issues before in the past, if
> > anyone wants to speak up ;-)
> 
> We have a similar but slightly different use-case (and unresolved
> problem, for that matter): Our clients will be all over the world and
> will be sending dates back to our database via RemoteObject calls.
> When the date object is serialized, Flex automatically takes care of
> updating the time zone information. However, this is actually *not*
> what we want to happen because we are sending back dates with 00:00:00
> timestamps (i.e. no time information). However, when this information
> crosses timezones during serialization, 00:00:00 becomes a time
> (midnight), which is then offset according to the timezone difference,
> and the date possibly becomes a day off. E.g. a date of 25-Dec-2005
> 00:00:00 GMT on the client becomes 24-Dec-2005 17:00:00 EST in the
> database. And those of us who celebrate Christmas know that 24-Dec !=
> 25-Dec
> 
> If there was a way that we could configure our clients to work in the
> same timezone as our server, then we'd be all set. Alternatively, if
> we could configure serialization to ignore timezone information then
> our dates wouldn't be corrupted. Maybe there is already an easy
> solution. I haven't had a chance to dig into the problem too much. But
> any suggestions are appreciated.
> 
> Jim
>







 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/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/
 




Re: [flexcoders] Re: Max width and height for the Loader??

2005-12-28 Thread JesterXL
Ideas off the top of my head:
- use an image library server-side to crop the image to a series.  So, 1 
2880x2880 image becomes 4 1440x1440 images.  You can then put 4 Image tags 
in a Tile tag to align them nicely.
- scale the image to whatever aspect ratio matches 2880x2880 and deal with 
the limitation
- shrink the viewport to view the entire image; then, use bitmapData in 
Flash 8 to copy the image data to the ViewPort.  You can keep all 4 
1440x1440 images off screen, and just copy from them (similiar to how Google 
Maps/ Yahoo Maps does it).

- Original Message - 
From: "moyosaned" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, December 28, 2005 7:09 AM
Subject: [flexcoders] Re: Max width and height for the Loader??


Since version? Man Ok but I'm trying to load loading an image bigger
than 2880 x 2880. and setting in my Image-tag it has to for example
400 x 400. It does seem to react the same as when i use a smaller
image, I'm not seeing an image at all.

I tried to trace (image.)content! When i'm loading an lager image it's
height and width are near 0, with smaller images its has the size it
needs to be.

It smells like a Flex/Flash bug Do you got any other solution. to
load this image but resized to a smaller format. without for example
duplicate the image and use the resized one on the server, if you get
what i mean

--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Max for images in Flash Player is 2880x2880.  If the Loader goes
bigger than
> that, that is an accident.
>
> - Original Message - 
> From: "moyosaned" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, December 22, 2005 11:16 AM
> Subject: [flexcoders] Max width and height for the Loader??
>
>
> Is there a max width/height for the Loader
> I tried a width from around 4000 pixel, but I see around 3000/2880.
> Is it just me? I'm loading the image like this:
>
>  maintainAspectRatio="true" mouseMove="scroll()"/>
>
> and
>
>  maintainAspectRatio="true" mouseMove="scroll()"/>
>
> and setting the source in script.
>
> What am i doing wrong! Is there a max?
>
>
>
>
>
>
>
>
>
>
>
>
> --
> 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








 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/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] Is there a way to find out the instance name of an anonymous object?

2005-12-28 Thread Libby
I have reading the doco for AS2lib / reflection and have found how I
can get the class name. With the class name I can create a new
Instance. I would like to get the instance name of the original object
so that I can assign it to the new instance. Something like this:

// this is pseudocode
var s = existingObject.getName();
var x = class.forName(s).newInstance(); 
existingObject = instanceNameIfIJustKnewIt(x);

Any suggestions would be great.

Thanks,
Libby





 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/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/
 




Re: [flexcoders] How do I generate useful CFC Errors?

2005-12-28 Thread Mohanraj Jayaraman
Most of my functions in the CFC return's an object
(Struct) that has both the 'code' and 'message' apart
from the other details you need.

Here's an example












your query




  








  



In your Flex code , you will always get 'code' and
'message' in your 'result' object and you can process
your code based upon the 'code' you receive.


Hope this helps.
Mohanraj










--- Greg Johnson <[EMAIL PROTECTED]> wrote:

> Right now, when something goes caput in a cfc I get
> back a realitivly 
> meaningless set of information in Flex vs and CFML
> doc calling the same 
> CFC and getting an error.
> 
> 
> 
> 




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/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/
 




RE: [flexcoders] How do I generate useful CFC Errors?

2005-12-28 Thread Ben Forta





During 
development? Start CF from the command line and you should see the CFML error 
messages in the console window when they occur.
 
--- 
Ben
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Greg 
JohnsonSent: Wednesday, December 28, 2005 3:15 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] How do I generate 
useful CFC Errors?
Right now, when something goes caput in a cfc I get back a 
realitivly meaningless set of information in Flex vs and CFML doc calling 
the same CFC and getting an error.





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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] How do I generate useful CFC Errors?

2005-12-28 Thread Greg Johnson
Right now, when something goes caput in a cfc I get back a realitivly 
meaningless set of information in Flex vs and CFML doc calling the same 
CFC and getting an error.





 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/
 




RE: [flexcoders] Nested faceless components. keeping IDs and DataBinding

2005-12-28 Thread Matt Chotin
Did you declare [Event("talk")] on the Person class, that should cause
the event handler to work.  But if you're getting an exception that's a
bug which you should file.

The id stuff is in Flex 2 so it should make your FSM easier to
implement.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aldo Bucchi
Sent: Wednesday, December 28, 2005 1:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested faceless components. keeping IDs and
DataBinding

Matt,

Unless I have a bug in my compiler(s), I believe I cannot place inline
events in a nested faceless component ( the stack trace is attached at
the end of the mail )


  

  

  



and since I cannod declare an ID on it either, the only way to bind is
by referencing it the long way.



which is not necessarily bad in this simple case but makes you
hardcode the nesting...

See my point?

I was trying to use MXML to create the declaration for a finite state
machine implementation . If I had nesting, events and binding on all
levels then things like declaring transition and entry/exit events
would be very straightforward.



The same with references: instead of passing a string name ( or ID ) I
could just use binding to relate, say, states to transitions



So, I will have to go for the spaghetti in this implementation for
flex15

Best,
Aldo

PS. Send my best to Ely, Todd, and Lucian ( if he's still there )  ;)




the stack trace for the nested faceless inline event exception:


28/12 14:57:36 ERROR flex.compiler.HtmlOutputHandler: Results of
compiling ...\fsm\nestedMXMLObjectsTest\main.mxml
1 Exception found.
Exception java.lang.NullPointerException
at flex.compiler.SwcBuilder.getEvents(SwcBuilder.java:1214)
at
flex.compiler.SwcBuilder.generateDescriptorCode(SwcBuilder.java:1072)
at
flex.compiler.SwcBuilder.generateClassText(SwcBuilder.java:329)
at flex.compiler.SwcBuilder.createClassStub(SwcBuilder.java:549)
at flex.compiler.MxmlLoader.parse(MxmlLoader.java:290)
at
flex.compiler.MxmlLoader.loadComponentType(MxmlLoader.java:178)
at flex.compiler.MxmlLoader.loadComponent(MxmlLoader.java:204)
at
flex.compiler.CachedComponentLoader.getComponent(CachedComponentLoader.j
ava:197)
at
flex.compiler.CachedComponentLoader.loadDefinition(CachedComponentLoader
.java:101)
at
flex.compiler.CachedComponentLoader.getDefinition(CachedComponentLoader.
java:263)
at
flex.compiler.CompositeLoader.getDefinition(CompositeLoader.java:54)
at flex.compiler.linker.Loader.getType(Loader.java:266)
at flex.compiler.linker.Loader.findType(Loader.java:248)
at
flex.compiler.CompilerPackageManager.loadType(CompilerPackageManager.jav
a:629)
at flex.compiler.MxmlCompiler.openDocument(MxmlCompiler.java:61)
at flex.compiler.MxmlServlet.sendHtmlShell(MxmlServlet.java:249)
at flex.compiler.MxmlServlet.doGet(MxmlServlet.java:193)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:69)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at
flex.server.j2ee.cache.CacheFilter.doFilter(CacheFilter.java:262)
at
flex.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:66)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at
flex.server.j2ee.DetectionFilter.doFilter(DetectionFilter.java:95)
at
flex.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:66)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249
)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527
)
at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
:457)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)






On 12/28/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> What part of inline events and databinding are missing?  If your class
> extends EventDispatcher it has events.  And binding is the same on a
> faceless object as a UIComponent.
>
> Matt
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Aldo Bucchi
> Sent: Wednesday, December 28, 2005 1:37 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Nested faceless components. keeping IDs and
> DataBinding
>
> Hi Matt,
>
> Back posting huh!
>
> Thx for the answer.
>
> > Now what I don't remember is

[flexcoders] Re: [Flex 2.0] XMLEncoder

2005-12-28 Thread alpharythms
Direct binding and dataprovider support for XML and XMLList would be
ideal!  With E4X that would incredibly awesome!

Thanks for the update and explanations.  It is greatly appreciated!

-Adam





--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> The XMLEncoder class is used by HTTPService but it will only do some
> generic serialization and deserialization, it does not have generic
> schema support (only WSDL schema support).  We tried to put schema
> support for the non-webservice case in at one point but ran out of time
> (and there hasn't been a huge push for it in 2.0).  So if you want some
> basic serialization support our class will do it for you, no need for
> the xmlEncoder function.  But if you have a schema you want to follow
> you'll need to do it yourself.
> 
> If you want the binding and dataprovider support you'll need to wait for
> the next beta (hopefully in the next less-than 10 weeks no promises)
> where we've really gotten that code back up-to-snuff.
> 
> Matt
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of alpharythms
> Sent: Tuesday, December 27, 2005 4:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: [Flex 2.0] XMLEncoder
> 
> Thanks Matt,
> 
> That makes sense, basically you are just telling the HTTPService to
> use "myXmlConvert" function to convert the object into XML.  I thought
> HTTPService might have had a built in way of doing this conversion.  
> 
> I understand I can write my own code to do this but I would rather
> learn how the API's work if it is possible to do it that way.
> 
> Currently I'm working directly with the XML data (instead of
> converting it into an object first) so I can pull it out back out again.
> http://www.evilfree.com/adam/blog/2005/12/flex_example_editing_xml_save.
> html
> 
> But I'm losing some of the automatic binding that is possible and
> having to manually create arrays to use as dataproviders.  This will
> only get more tedious as I start doing more advanced data manipulation.
> 
> There is an XMLEncoder class that says:
> ---
> Take ActionScript Objects and encode them to XML. If schema metadata
> is available, use it, otherwise use default serialization. Supports
> SOAP encoded arrays.
> ---
> 
> The use of a schema metadata is particularly interesting to me if that
> allows you to customize the exact formatting that XML will be in after
> it is converted from a generic object.
> 
> I've yet to actually use a schema with XML in general and with Flex
> 2.0 being an alpha I don't even know if this class works as
> documented.  I was hoping to see some source code or hear from people
> that this class work correctly.   I would hate to spend hours and
> hours trying to determine if I'm doing something incorrectly or if
> it's a bug (or unimplemented) in Flex.
> 
> Thanks Again!
> Adam
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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 ~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/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/
 




RE: [flexcoders] I need help information of command line compile at Flex2.0

2005-12-28 Thread Matt Chotin
Mxmlc is only meant to compile one application at a time I think.  So
just specify the application mxml file and you should be good to go.
Mxmlc will find all the dependent files as long as the classpath is set
up, etc.  The docs should have more details.

Matt 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sn197412
Sent: Tuesday, December 27, 2005 8:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I need help information of command line compile at
Flex2.0

Hi.

How can I compile a Flex2.0 project that includes a lot of mxml files
 from command line ??

java -jar mxmlc.jar -optimize=false -file-spec ... ??








--
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 ~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/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/
 





Re: [flexcoders] Having hard time understanding what features are available to whom when and how

2005-12-28 Thread JesterXL





OpenAMF is one ornery )($*%.  I don't mind 
things being strict, but without helpful error messages, it's hard to get 
right.  I agree with Darron, though, once you get OpenAMF working, it's 
pretty good in terms of performance.  Getting ValueObjects to match was 
always a battle with me & the Java developer getting it exactly right with 
OpenAMF.
 
Isn't the demo a 60 day trial?  If so, you'll 
be near the end of February.  A new build of Flex 2 should definately be 
out by then.  I believe Flex server will revert to only allowing 1 IP 
then, but will still work.  What won't is FlexBulider, but you don't 
necessarely need FlexBuilder; a lot of people on this list use Eclipse, Oxygen, 
BBEdit, Vim, and Emacs.  I believe you can actually call & negotiate 
with Macrome... er, Adobe sales and get your FlexBuilder license 
extended.
 
You can also apply for a Non-commercial Flex 
license if you are a blogger or like to show off technology.
 
Still, I think Flex 2 will hopefully have a new 
build out by then, and going from Flex 1.5 > Flex 2 is a lot easier than the 
other way around with more benefit.
 
Not sure about production costs, others on the list 
should be able to help with that one.
 
 
- Original Message - 
From: Bruce 
Cichowlas 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, December 28, 2005 10:46 AM
Subject: Re: [flexcoders] Having hard time understanding what 
features are available to whom when and how
That's very informative.  I'll be trying it soon.I 
did install Tomcat and Flex 1.5 in the way that you suggested and confirmed that 
it was running properly with the samples.  I've also looked through some of 
the 1.5 examples and found it encouraging.  I have part of my app that I 
initially built in 2.0 under Eclipse which I need to move back into the 1.5 
environment.I'm finding the OpenAMF stuff a bit confusing.  I've 
been studying http://www.darronschall.com/weblog/archives/000186.cfm 
and hope that it is relevant.  I'm wondering if I have to read up on Flash, 
but perhaps not.So what I'm going to attempt next is to Flex to download 
the initial colors from the server using OpenAMF, add some rudimentary controls 
to the Flex page to change the colors and another button to write them back to 
the server.  If I can get that to work today, I will think that Flex 1.5 
will most likely get me through this demo.I'm still wondering whether I 
will run up against trial deadline limits on the demo products I am using that 
will get.  I also have to figure out what to tell the potential investors 
about how much the use of Flex will add to the cost of the production product. 
Thanks for your help,Bruce
On 12/28/05, JesterXL 
<[EMAIL PROTECTED]> 
wrote: 

  Dude, that is so easy.  You 
  just:
  - import each graphic into Flash
  - give it an instance name
  - modify the code I posted to do:
   
  var c:Color = new 
Color(targetState);
  c.setRGB(0xFF);
   
  That'll set it red, and ONLY it.  If you 
  have the graphic as a PNG or GIF (transparency intact), it'll color just the 
  shape with nice edges.
   
  You could do the same in Flex as well, just embed 
  the images:
   
  [Embed(source="maine.png")]
  var main_png:String;
   
  
   
  And set the color the same way:
   
  var c:Color = new 
  Color(main_png_img);
  c.setRGB(0xFF);
   
  Flash, Flex... either one.  Additionally, 
  Bline Express created a pretty phat USA Map component with all 50 
  states.  Methods already exist in it to set colors, know which state you 
  clicked on, etc.  It's written for Flash 6, but you could easily load 
  that into a Flex Loader, and use proxy functions to call the Flash 6 methods 
  in the externally loaded SWF.
   
  Bring it.
   
  - Original Message - 
  From: 
  Bruce Cichowlas 
  To: flexcoders@yahoogroups.com 
  
  Sent: Wednesday, December 28, 2005 12:13 AM
  Subject: Re: [flexcoders] Having hard time understanding what 
  features are available to whom when and how
  
  Thanks for the prompt reply.I can see how your 
  suggestion would work, but in my case I don't think I can use the background 
  color.  Imagine if the shapes were the six states of New England on a 
  map.  I want to be able to control the color of each state to be one of 
  eight colors. I can see a few approaches.  One would be to treat 
  the whole map of New England as a graphic and then somehow repaint the 
  individual state, perhaps on a pixel by pixel basis.  I suppose that 
  could work, but it would be tedious. Another way would be to have a 
  graphic object of each state with a transparent background and then overlay 
  them appropriately in their appropriate positions.  However, the color I 
  would have to then change would be the foreground object color and I don't 
  know that there is a simple way to do that.  I could, perhaps, supply 
  eight graphics for each state and then switch between them using _javascript_ to 
  alter the DHTML.  That might be feasible for six states, but

Re: [flexcoders] Having hard time understanding what features are available to whom when and how

2005-12-28 Thread Bruce Cichowlas



That's very informative.  I'll be trying it soon.I did install Tomcat and Flex 1.5 in the way that you suggested and confirmed that it was running properly with the samples.  I've also looked through some of the 1.5
 examples and found it encouraging.  I have part of my app that I initially built in 2.0 under Eclipse which I need to move back into the 1.5 environment.I'm finding the OpenAMF stuff a bit confusing.  I've been studying 
http://www.darronschall.com/weblog/archives/000186.cfm and hope that it is relevant.  I'm wondering if I have to read up on Flash, but perhaps not.
So what I'm going to attempt next is to Flex to download the initial colors from the server using OpenAMF, add some rudimentary controls to the Flex page to change the colors and another button to write them back to the server.  If I can get that to work today, I will think that Flex 
1.5 will most likely get me through this demo.I'm still wondering whether I will run up against trial deadline limits on the demo products I am using that will get.  I also have to figure out what to tell the potential investors about how much the use of Flex will add to the cost of the production product.
Thanks for your help,BruceOn 12/28/05, JesterXL <[EMAIL PROTECTED]> wrote:









Dude, that is so easy.  You just:
- import each graphic into Flash
- give it an instance name
- modify the code I posted to do:
 
var c:Color = new Color(targetState);
c.setRGB(0xFF);
 
That'll set it red, and ONLY it.  If you have 
the graphic as a PNG or GIF (transparency intact), it'll color just the shape 
with nice edges.
 
You could do the same in Flex as well, just embed 
the images:
 
[Embed(source="maine.png")]
var main_png:String;
 

 
And set the color the same way:
 
var c:Color = new Color(main_png_img);
c.setRGB(0xFF);
 
Flash, Flex... either one.  Additionally, 
Bline Express created a pretty phat USA Map component with all 50 states.  
Methods already exist in it to set colors, know which state you clicked on, 
etc.  It's written for Flash 6, but you could easily load that into a Flex 
Loader, and use proxy functions to call the Flash 6 methods in the externally 
loaded SWF.
 
Bring it.
 
- Original Message - 
From: 
Bruce 
Cichowlas 
To: flexcoders@yahoogroups.com 

Sent: Wednesday, December 28, 2005 12:13 AM
Subject: Re: [flexcoders] Having hard time understanding what 
features are available to whom when and how
Thanks for the prompt reply.I can see how your suggestion 
would work, but in my case I don't think I can use the background color.  
Imagine if the shapes were the six states of New England on a map.  I want 
to be able to control the color of each state to be one of eight colors. 
I can see a few approaches.  One would be to treat the whole map of 
New England as a graphic and then somehow repaint the individual state, perhaps 
on a pixel by pixel basis.  I suppose that could work, but it would be 
tedious. Another way would be to have a graphic object of each state 
with a transparent background and then overlay them appropriately in their 
appropriate positions.  However, the color I would have to then change 
would be the foreground object color and I don't know that there is a simple way 
to do that.  I could, perhaps, supply eight graphics for each state and 
then switch between them using _javascript_ to alter the DHTML.  That might 
be feasible for six states, but if the map included all fifty states, I would 
need at least 50 * 8 graphic objects to use that approach. A third way 
might be to somehow use areamaps and regions, but I don't know if that would 
result in DHTML where I could easily recolor a region.What do you think 
would work?Bruce
On 12/28/05, JesterXL 
<[EMAIL PROTECTED]> 
wrote:

  Can help with #3.
   
  Here's a sample:
   
   xmlns:mx="http://www.macromedia.com/2003/mxml 
  " initialize="initApp()">   id="color_cb"   change="setColor(event)">0x00 
   0x66 0x66   
   id="colorMe_box"  borderStyle="solid"  width="100" 
  height="100"/>
   
  
   
  - Original Message - 
  From: 
  Bruce Cichowlas 
  To: flexcoders@yahoogroups.com 
  
  Sent: Tuesday, December 27, 2005 8:01 PM
  Subject: Re: [flexcoders] Having hard time understanding what 
  features are available to whom when and how
  
  I've used Axis on other projects, but I'm not sure how this 
  interaction as a RemoteObject would look in the context of Flex 2.0 .  Do 
  you know of a working example of this somewhere?  I'm not sure what I 
  would code on the Flex side and I'm not sure what I'd need to do on the server 
  side to make it compatible and synchronize. I'm also wondering whether 
  everything is available to support developing this demo for as long as it 
  takes or if I will at some point have to buy a license for one thing or 
  another to continue development.  I also need to know how to explain the 
  production operational costs to a potential investor.  Potentially

[flexcoders] Question about web.xml file

2005-12-28 Thread nostra72



 have come to the conclusion that in order to make my site secure I need to do some work with the web.xml file. Work meaning editing it or changing it around. What I am confused about is this. In my web.xml file the url pattern is  /amfgateway/*  I am not able to find a folder named amfgateway so I am confused as to how I go about editing it to make a webpage I am making secure. I am using just a localhost server now I have not actually put anything online.  Can someone clear this xml thing up? 
 





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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Nested faceless components. keeping IDs and DataBinding

2005-12-28 Thread Aldo Bucchi
Matt,

Unless I have a bug in my compiler(s), I believe I cannot place inline
events in a nested faceless component ( the stack trace is attached at
the end of the mail )


  

  

  



and since I cannod declare an ID on it either, the only way to bind is
by referencing it the long way.



which is not necessarily bad in this simple case but makes you
hardcode the nesting...

See my point?

I was trying to use MXML to create the declaration for a finite state
machine implementation . If I had nesting, events and binding on all
levels then things like declaring transition and entry/exit events
would be very straightforward.



The same with references: instead of passing a string name ( or ID ) I
could just use binding to relate, say, states to transitions



So, I will have to go for the spaghetti in this implementation for flex15

Best,
Aldo

PS. Send my best to Ely, Todd, and Lucian ( if he's still there )  ;)




the stack trace for the nested faceless inline event exception:


28/12 14:57:36 ERROR flex.compiler.HtmlOutputHandler: Results of
compiling ...\fsm\nestedMXMLObjectsTest\main.mxml
1 Exception found.
Exception java.lang.NullPointerException
at flex.compiler.SwcBuilder.getEvents(SwcBuilder.java:1214)
at flex.compiler.SwcBuilder.generateDescriptorCode(SwcBuilder.java:1072)
at flex.compiler.SwcBuilder.generateClassText(SwcBuilder.java:329)
at flex.compiler.SwcBuilder.createClassStub(SwcBuilder.java:549)
at flex.compiler.MxmlLoader.parse(MxmlLoader.java:290)
at flex.compiler.MxmlLoader.loadComponentType(MxmlLoader.java:178)
at flex.compiler.MxmlLoader.loadComponent(MxmlLoader.java:204)
at 
flex.compiler.CachedComponentLoader.getComponent(CachedComponentLoader.java:197)
at 
flex.compiler.CachedComponentLoader.loadDefinition(CachedComponentLoader.java:101)
at 
flex.compiler.CachedComponentLoader.getDefinition(CachedComponentLoader.java:263)
at flex.compiler.CompositeLoader.getDefinition(CompositeLoader.java:54)
at flex.compiler.linker.Loader.getType(Loader.java:266)
at flex.compiler.linker.Loader.findType(Loader.java:248)
at 
flex.compiler.CompilerPackageManager.loadType(CompilerPackageManager.java:629)
at flex.compiler.MxmlCompiler.openDocument(MxmlCompiler.java:61)
at flex.compiler.MxmlServlet.sendHtmlShell(MxmlServlet.java:249)
at flex.compiler.MxmlServlet.doGet(MxmlServlet.java:193)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:69)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at flex.server.j2ee.cache.CacheFilter.doFilter(CacheFilter.java:262)
at flex.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:66)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at flex.server.j2ee.DetectionFilter.doFilter(DetectionFilter.java:95)
at flex.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:66)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)






On 12/28/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> What part of inline events and databinding are missing?  If your class
> extends EventDispatcher it has events.  And binding is the same on a
> faceless object as a UIComponent.
>
> Matt
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Aldo Bucchi
> Sent: Wednesday, December 28, 2005 1:37 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Nested faceless components. keeping IDs and
> DataBinding
>
> Hi Matt,
>
> Back posting huh!
>
> Thx for the answer.
>
> > Now what I don't remember is if when we instantiate via the Array if
> the
> > MXMLObject initialized will be called.  You'd need to look at the
>
> Yes it is called. As with every faceless comp.
>
> Using the initalized() indeed allows me to set an id or registe the
> component somehow... but still, it is of little use with no binding
> and inline events.
>
> another point for flex2
>
> Best,
> Aldo
>
>
>
> On 12/27/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> > I think we're going to allow nested ids in Flex 2.
> >
> > For Flex 1.5 though y

Re: [flexcoders] Making Form in flex export as swf

2005-12-28 Thread JesterXL
Point your browser to:

http://yourflexserver.com/yourapp.mxml.swf

Appending the .swf will give you the SWF only.

- Original Message - 
From: "pioplacz" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, December 28, 2005 12:35 PM
Subject: [flexcoders] Making Form in flex export as swf


Stupid question but I really wonder. I wanted to make a form yesterady 
in flash but found it more diffuclt then in flex. So is there a way to 
export it from flex cause i wanted to use on my webpage that does not 
have support for Flex.






--
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 ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/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] Gordon Smith owes me $10 (i.e. setChildIndex)

2005-12-28 Thread JesterXL
In mx.core.View, setChildIndex generates a childIndexChanged event. 
However, 2 children are affected by the index changing; the child that is 
moved, and the child that is displaced.  I haven't tested this in Flex 2 
yet, but in Flex 1.5, the event should either be changed, or 2 events should 
be generated.

My fix is:

// moving up
var index:Number = getChildIndex(lastClicked);
var displacedChild:EditableElement = EditableElement(getChildAt(index - 1));
// remove it & move it
var tmpID:Number = __dataProvider.getItemID(index);
__dataProvider.splice(index, 1);
item.__ID__ = tmpID;
__dataProvider.splice(index - 1, 0, item);
var dOldIndex:Number = getChildIndex(displacedChild);
setChildIndex(lastClicked, index - 1);
var dNewIndex:Number = getChildIndex(displacedChild);
dispatchEvent({type: "childIndexChanged", relatedNode: displacedChild,
prevValue: dOldIndex, newValue: dNewIndex}); 



 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] Making Form in flex export as swf

2005-12-28 Thread pioplacz
Stupid question but I really wonder. I wanted to make a form yesterady 
in flash but found it more diffuclt then in flex. So is there a way to 
export it from flex cause i wanted to use on my webpage that does not 
have support for Flex.





 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/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/
 




RE: [flexcoders] Dynamically change the root label of a MenuBar

2005-12-28 Thread Matt Chotin










The XML data providers are going to be
very different in the next drop you get so it’s hard to say what the
right thing to do there is.  I think setProperty should have done it, so
re-assigning the dataProvider is probably your workaround for this release.

 

Matt

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nicolasberney
Sent: Wednesday, December 28, 2005
11:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically
change the root label of a MenuBar



 

Hi,
I'm trying to dynamically change the root label of a MenuBar.
I had to use: "menuBar.dataProvider = menuBar.dataProvider;" to see
my changes, but now there is no sub-menus anymore.
Is it the right way to do this with Flex 2?
Thanks,
Nicolas

http://www.macromedia.com/2005/mxml"
xmlns="*">
    
    
    
    
    
    
 &! nbsp; 

&n bsp;  

   

   

    
   

   

   

    
    
    
    
    










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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Question - Still alive the FLEX Quick Start 4cpu Pack ?

2005-12-28 Thread Matt Chotin
I would just continue working with your salesperson, but it's certainly
possible they're taking a new approach as the new quarter begins and we
follow Adobe sales guidelines.  None of the engineers from Adobe on here
are going to know anything though :-(

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kimkhan0909
Sent: Wednesday, December 28, 2005 2:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question - Still alive the FLEX Quick Start 4cpu
Pack ?

Happy New Year! All flexcoders.


I heard an bad new from MM few days ago that the FLEX Quick Start 4cpu 
Pack was over from this December. 

It's very useful for us. So I was keeping in trouble.

Anybody help me.







--
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 ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/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/
 





RE: [flexcoders] Nested faceless components. keeping IDs and DataBinding

2005-12-28 Thread Matt Chotin
What part of inline events and databinding are missing?  If your class
extends EventDispatcher it has events.  And binding is the same on a
faceless object as a UIComponent.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aldo Bucchi
Sent: Wednesday, December 28, 2005 1:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Nested faceless components. keeping IDs and
DataBinding

Hi Matt,

Back posting huh!

Thx for the answer.

> Now what I don't remember is if when we instantiate via the Array if
the
> MXMLObject initialized will be called.  You'd need to look at the

Yes it is called. As with every faceless comp.

Using the initalized() indeed allows me to set an id or registe the
component somehow... but still, it is of little use with no binding
and inline events.

another point for flex2

Best,
Aldo



On 12/27/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> I think we're going to allow nested ids in Flex 2.
>
> For Flex 1.5 though you might be able to make Person an MXMLObject
which
> would then have its initialized() method called as it gets created.
> That call would pass the MXML document which created the object and
you
> could then attach the person using an id.  We have hard-coded "id" to
> not be allowed on deeper faceless objects, but you could use another
> name and then just assign that as the variable name for the document.
> Something like this:
>
> function initialized(document, id):Void
> {
>   Var myId:String = this['valueYouPicked'];
>   Document[myId] = this;
> }
>
> Now what I don't remember is if when we instantiate via the Array if
the
> MXMLObject initialized will be called.  You'd need to look at the
> generated actionscript (turn keep-generated-actionscript on in
> flex-config) to be sure.
>
> Matt
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Aldo Bucchi
> Sent: Monday, December 26, 2005 3:25 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Nested faceless components. keeping IDs and
> DataBinding
>
> Hi all,
>
> It would be great to have IDs and databinding available to faceless
> data structures.
> Unfortunately, there are some restrictions that apply to faceless
> components.
>
> Is there any (hacky) way to declare a nested faceless component in an
> MXML document and assign a document scoped ID to it ??
>
> This is not legal as there are IDs in the nested components.
>
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> One ugly way would be to extend a container and do something like the
> following
>
> 
> 
> 
> 
>
> Now, this limits me to assigning all children to one array... not to
> mention the overhead and component-lifecycle-related trouble.
>
>
> For now the only legal solution is the following I guess...
>
> 
> 
> 
>
>
> Evidently the benefit of using XML is lost.
>
>
> Any ideas?
>
>
>
> --
> : Aldo Bucchi :
> mobile (56) 8 429 8300
>
>
>
> --
> 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
>
>
>
>
>
>
>
>


--
: Aldo Bucchi :
mobile (56) 8 429 8300



--
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] Dynamically change the root label of a MenuBar

2005-12-28 Thread nicolasberney



Hi,I'm trying to dynamically change the root label of a MenuBar.I had to use: "menuBar.dataProvider = menuBar.dataProvider;" to see my changes, but now there is no sub-menus anymore.Is it the right way to do this with Flex 2?Thanks,Nicolashttp://www.macromedia.com/2005/mxml" xmlns="*">                                                                            






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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Having hard time understanding what features are available to whom when and how

2005-12-28 Thread JesterXL





Dude, that is so easy.  You just:
- import each graphic into Flash
- give it an instance name
- modify the code I posted to do:
 
var c:Color = new Color(targetState);
c.setRGB(0xFF);
 
That'll set it red, and ONLY it.  If you have 
the graphic as a PNG or GIF (transparency intact), it'll color just the shape 
with nice edges.
 
You could do the same in Flex as well, just embed 
the images:
 
[Embed(source="maine.png")]
var main_png:String;
 

 
And set the color the same way:
 
var c:Color = new Color(main_png_img);
c.setRGB(0xFF);
 
Flash, Flex... either one.  Additionally, 
Bline Express created a pretty phat USA Map component with all 50 states.  
Methods already exist in it to set colors, know which state you clicked on, 
etc.  It's written for Flash 6, but you could easily load that into a Flex 
Loader, and use proxy functions to call the Flash 6 methods in the externally 
loaded SWF.
 
Bring it.
 
- Original Message - 
From: Bruce 
Cichowlas 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, December 28, 2005 12:13 AM
Subject: Re: [flexcoders] Having hard time understanding what 
features are available to whom when and how
Thanks for the prompt reply.I can see how your suggestion 
would work, but in my case I don't think I can use the background color.  
Imagine if the shapes were the six states of New England on a map.  I want 
to be able to control the color of each state to be one of eight colors. 
I can see a few approaches.  One would be to treat the whole map of 
New England as a graphic and then somehow repaint the individual state, perhaps 
on a pixel by pixel basis.  I suppose that could work, but it would be 
tedious. Another way would be to have a graphic object of each state 
with a transparent background and then overlay them appropriately in their 
appropriate positions.  However, the color I would have to then change 
would be the foreground object color and I don't know that there is a simple way 
to do that.  I could, perhaps, supply eight graphics for each state and 
then switch between them using _javascript_ to alter the DHTML.  That might 
be feasible for six states, but if the map included all fifty states, I would 
need at least 50 * 8 graphic objects to use that approach. A third way 
might be to somehow use areamaps and regions, but I don't know if that would 
result in DHTML where I could easily recolor a region.What do you think 
would work?Bruce
On 12/28/05, JesterXL 
<[EMAIL PROTECTED]> 
wrote:

  Can help with #3.
   
  Here's a sample:
   
   xmlns:mx="http://www.macromedia.com/2003/mxml 
  " initialize="initApp()">   id="color_cb"   change="setColor(event)">0x00 
   0x66 0x66  id="colorMe_box"  borderStyle="solid"  width="100" 
  height="100"/>
   
  
   
  - Original Message - 
  From: 
  Bruce Cichowlas 
  To: flexcoders@yahoogroups.com 
  
  Sent: Tuesday, December 27, 2005 8:01 PM
  Subject: Re: [flexcoders] Having hard time understanding what 
  features are available to whom when and how
  
  I've used Axis on other projects, but I'm not sure how this 
  interaction as a RemoteObject would look in the context of Flex 2.0 .  Do 
  you know of a working example of this somewhere?  I'm not sure what I 
  would code on the Flex side and I'm not sure what I'd need to do on the server 
  side to make it compatible and synchronize. I'm also wondering whether 
  everything is available to support developing this demo for as long as it 
  takes or if I will at some point have to buy a license for one thing or 
  another to continue development.  I also need to know how to explain the 
  production operational costs to a potential investor.  Potentially this 
  is an application run by large companies on their own servers for many 
  subscribers. And from a technical viewpoint, I'm still wondering how 
  to implement these arbitrary small shapes (such as states on a map) that need 
  to change to one of a number of colors.  I'd probably be able to answer 
  that by myself if I were a Flash developer, but my Flash experience is limited 
  to having run through the examples of a much earlier version of Flash. 
  I know that's a lot of questions.Thanks,Bruce
  On 12/27/05, Matt 
  Chotin <[EMAIL PROTECTED] > 
  wrote: 
  I 
think you'll find 1.5 a more stable development experience in the 
nextmonth though of course 2.0 offers a lot of stuff.  For 
RemoteObject in2.0 for now you do need the 2.0 CF adapter, but as many 
folks will behappy to point out you could also just expose your Java 
objects via aWebService using Apache Axis instead (this should be done 
in the 2.0samples maybe but is definitely in 1.5 for reference).  
The Flex 2 alphawill hint at functionality (like RemoteObject) that may 
not actually befunctional in your 
configuration.Matt 
-Original Message-From: flexcoders@yahoogroups.com [mailto: 
flexcoders@yahoogroups.com] OnBehalf

Re: [flexcoders] Having hard time understanding what features are available to whom when and how

2005-12-28 Thread Bruce Cichowlas



Thanks for the prompt reply.I can see how your suggestion would work, but in my case I don't think I can use the background color.  Imagine if the shapes were the six states of New England on a map.  I want to be able to control the color of each state to be one of eight colors.
I can see a few approaches.  One would be to treat the whole map of New England as a graphic and then somehow repaint the individual state, perhaps on a pixel by pixel basis.  I suppose that could work, but it would be tedious.
Another way would be to have a graphic object of each state with a transparent background and then overlay them appropriately in their appropriate positions.  However, the color I would have to then change would be the foreground object color and I don't know that there is a simple way to do that.  I could, perhaps, supply eight graphics for each state and then switch between them using _javascript_ to alter the DHTML.  That might be feasible for six states, but if the map included all fifty states, I would need at least 50 * 8 graphic objects to use that approach.
A third way might be to somehow use areamaps and regions, but I don't know if that would result in DHTML where I could easily recolor a region.What do you think would work?Bruce
On 12/28/05, JesterXL <[EMAIL PROTECTED]> wrote:









Can help with #3.
 
Here's a sample:
 
 xmlns:mx="http://www.macromedia.com/2003/mxml
" initialize="initApp()">   id="color_cb"   change="setColor(event)">0x00
 0x66 0x66  id="colorMe_box"  borderStyle="solid"  width="100" 
height="100"/>
 

 
- Original Message - 
From: 
Bruce 
Cichowlas 
To: flexcoders@yahoogroups.com 

Sent: Tuesday, December 27, 2005 8:01 PM
Subject: Re: [flexcoders] Having hard time understanding what 
features are available to whom when and how
I've used Axis on other projects, but I'm not sure how this 
interaction as a RemoteObject would look in the context of Flex 2.0 .  Do 
you know of a working example of this somewhere?  I'm not sure what I would 
code on the Flex side and I'm not sure what I'd need to do on the server side to 
make it compatible and synchronize. I'm also wondering whether 
everything is available to support developing this demo for as long as it takes 
or if I will at some point have to buy a license for one thing or another to 
continue development.  I also need to know how to explain the production 
operational costs to a potential investor.  Potentially this is an 
application run by large companies on their own servers for many subscribers. 
And from a technical viewpoint, I'm still wondering how to implement 
these arbitrary small shapes (such as states on a map) that need to change to 
one of a number of colors.  I'd probably be able to answer that by myself 
if I were a Flash developer, but my Flash experience is limited to having run 
through the examples of a much earlier version of Flash. I know that's a 
lot of questions.Thanks,Bruce
On 12/27/05, Matt 
Chotin <[EMAIL PROTECTED] > 
wrote:
I 
  think you'll find 1.5 a more stable development experience in the 
  nextmonth though of course 2.0 offers a lot of stuff.  For 
  RemoteObject in2.0 for now you do need the 2.0 CF adapter, but as many 
  folks will behappy to point out you could also just expose your Java 
  objects via aWebService using Apache Axis instead (this should be done in 
  the 2.0samples maybe but is definitely in 1.5 for reference).  The 
  Flex 2 alphawill hint at functionality (like RemoteObject) that may not 
  actually befunctional in your configuration.Matt
  -Original 
  Message-From: flexcoders@yahoogroups.com [mailto:
 
  flexcoders@yahoogroups.com] OnBehalf Of JesterXLSent: Tuesday, 
  December 27, 2005 4:39 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
  Having hard time understanding what featuresare available to whom when and 
  howI cannot answer all of your questions, but here are my 
  suggestions.- assuming on Windows, download Apache Tomcat- download 
  Flex 1.5 demo- install Flex 1.5 demo with just FlexBuilder 1.5- copy 
  and paste the flex.war & samples.war files into Tomcat's webapps 
  directoryHit the samples page to ensure all is well.  On 
  mine, it's:http://localhost:8080/samples/I've yet to get Flex 2 
  to work with Remoting + AMFPHP.  Considering AMF(the binary 
  format used to send serialized class bits across the wire) is undergoing 
  big changes, OpenAMF (Java) and AMFPHP (PHP) don't reallywork 
  yet.I've heard of some people getting Remoting to work with the 
  CFAdapter,but I don't use CF ( I do at work, but I don't code 
  it).  Some have reported success with the 
  WebService/HTTPService.Me?  I use Flex 1.5 every day and it works 
  great.  At night, I moonlightin Flex 2, but she's still alpha, so 
  we have a ways to go.The bad news is, for those client developers 
  (like me) who only careabout the client, Flex 1.5 has the server 
  requirement.  However, you can sti

Re: [flexcoders] Extra space problem in ViewStack while using Text with 100% width defined

2005-12-28 Thread Stanislav Zayarsky
Hello Guys,

Inside documentation we can find  "resizeToContent" property:



So it's a good practice to read documentation sometimes :)

Best regards
Stanislav

On 12/27/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> Look into the margin styles maybe?
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Sergey Kovalyov
> Sent: Tuesday, December 27, 2005 8:43 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Extra space problem in ViewStack while using Text
> with 100% width defined
>
> Hi All!
>
> Look at this application:
>
> 
> http://www.macromedia.com/2003/mxml";>
> 
>
> />
>
> 
> 
>
> Why does extra space appear below the text? What is the proper way to
> get
> rid of this bug? Thank you.
>
> Regards, Sergey.
>
>
>
>
> --
> 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
>
>
>
>
>
>
>


 Yahoo! Groups Sponsor ~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/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/
 




Re: [flexcoders] Having hard time understanding what features are available to whom when and how

2005-12-28 Thread Bruce Cichowlas



I'm wondering which of the ways to implement the color-changing irregular shapes might work or whether I should be learning to do something custom with Flash, such as making a movie in which the irregular shape changes between the eight colors.  I don't know enough about using Flash controls within Flex to know whether that is an appropriate and feasible idea or not.
Thanks,BruceOn 12/28/05, Weyert de Boer <[EMAIL PROTECTED]> wrote:




What's the problem?









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



   Visit your group "flexcoders" on the web. 

   To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  









-- Bruce CichowlasAffirm TechSoftware Development and Consultinghttp://www.affirmtech.com
[EMAIL PROTECTED](508)-904-6122






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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: Max width and height for the Loader??

2005-12-28 Thread moyosaned
Since version? Man Ok but I'm trying to load loading an image bigger
than 2880 x 2880. and setting in my Image-tag it has to for example
400 x 400. It does seem to react the same as when i use a smaller
image, I'm not seeing an image at all.

I tried to trace (image.)content! When i'm loading an lager image it's
height and width are near 0, with smaller images its has the size it
needs to be.

It smells like a Flex/Flash bug Do you got any other solution. to
load this image but resized to a smaller format. without for example
duplicate the image and use the resized one on the server, if you get
what i mean

--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Max for images in Flash Player is 2880x2880.  If the Loader goes
bigger than
> that, that is an accident.
> 
> - Original Message - 
> From: "moyosaned" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, December 22, 2005 11:16 AM
> Subject: [flexcoders] Max width and height for the Loader??
> 
> 
> Is there a max width/height for the Loader
> I tried a width from around 4000 pixel, but I see around 3000/2880.
> Is it just me? I'm loading the image like this:
> 
>  maintainAspectRatio="true" mouseMove="scroll()"/>
> 
> and
> 
>  maintainAspectRatio="true" mouseMove="scroll()"/>
> 
> and setting the source in script.
> 
> What am i doing wrong! Is there a max?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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 ~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/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/
 





Re: [flexcoders] Having hard time understanding what features are available to whom when and how

2005-12-28 Thread Weyert de Boer
What's the problem?




 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/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/