RE: [flexcoders] Re: Flex server language

2009-02-18 Thread Johan Öbrink
They are all popular. I think the .Net platform is growing while Java is 
diminishing but I may be misinformed and that may be temporary. I personally 
prefer the .Net platform and C#. You seem to know PHP so that may be the 
fastest way for you to leverage your knowledge.

 

No matter what server side platform / language you choose, I advise you to look 
into AMF as a communication protocol. There are several gateways for each of 
the languages (Like FluorineFX for .Net, Zend AMF for PHP etc). In this area, 
Java is possibly the most interesting language since it offers you a way into 
Red5 and BlazeDS.

 

Kind regards,

 

/Johan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of bsyyu
Sent: den 19 februari 2009 04:10
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex server language

 

Thanks for your comments.
I am not a student for learning. Currently I have finished my first
project with Flex for a shopping cart project.
http://www.fredederick.com/fredederick_shop_online/ 
 
It is done with PHP backend.

After that project, I have intention to develop a DIY shopping cart
system such as X-cart with Flex and would like to know which server
language best fit with Flex, regarding the speed and support etc. and
also sometimes customer may have their own server system that I have
to fit into, then which backend is most popular etc.

thanks

--- In flexcoders@yahoogroups.com  , Dnk 
mailto:d.k.emailli...@...> > wrote:
>
> They will all get the job done.
> 
> It is matter of requirements and preferences for the job.
> 
> Dustin Krysak
> 
> Sent from my iPhone
> 
> On 18-Feb-09, at 4:31 PM, "bsyyu" mailto:ben.s...@...> > wrote:
> 
> > currently, I am using PHP as server language. In fact I would like to
> > learn other server language in combination using Flex. Any suggestion
> > such as .NET, coldfusion or JSP.
> >
> >
>



 

<><>

[flexcoders] Re: How to stop Flex from compiling my Java source files

2009-02-18 Thread elevight
--- In flexcoders@yahoogroups.com, "Ryan Graham"  
wrote:
>
> 
> > Java source files are in C:\Tomcat5\webapps\FlexApp\WEB-INF\src. 
When
> > I build my Flex application, it tries to recompile the Java source
> > files. Is there a way I can tell Flex Builder to leave my Java 
source
> > files alone? It's causing me servlet errors.
> 
>  
> 
> Switch to ANT for more granular builds?
> 
>  
> 
> HTH,
> 
> Ryan
> 
That's what I had to do, create my Java project in Eclipse separately 
from my Flex app, then just copied the java class files over after 
each time I compiled.

I did not have this problem with Flex 1.5 and Flex 2.0. Amazing how I 
end up facing a basic problem like this with Flex 3.0 with no quick 
solution within Flex Builder.



[flexcoders] how to change titlebar text when iam executing a flex application

2009-02-18 Thread kotha poornima
Hi All,
I want to change the text in the titlebar when iam executing the mxml file.

If iam running file1.mxml file, in the title bar its showing file:\\documents 
and settings\\file1.html. But i want to show my custom message.

But i dint find any clue regarding this. Can anyone help me out of this.

Thanks in Advance,
Poornima


  

Re: [flexcoders] [flexcomponents]Writing comments for properties on parent classes

2009-02-18 Thread dorkie dork from dorktown
Hi Stephen,

I don't want to copy the comment from the parent class, I want to over write
it. BTW thank you the link. I didn't know about @copy and @inheritDoc.

Judah

On Tue, Feb 17, 2009 at 5:01 PM, Stephen Gilson  wrote:

>Hi,
>
>
>
> Do you mean you don't know how to format the comment, or you want to copy
> the comment from the parent class to your class?
>
>
>
> The doc on ASDoc explains both of these. You can see it here:
> http://livedocs.adobe.com/flex/3/html/asdoc_1.html
>
>
>
> Stephen
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *dorkie dork from dorktown
> *Sent:* Tuesday, February 17, 2009 5:09 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] [flexcomponents]Writing comments for properties on
> parent classes
>
>
>
> Good morning Class (programming joke)
>
> I'm trying to write asdoc comments for properties on a class that i'm
> extending but don't know how.
>
> Example,
>
> public class SetProperty extends mx.states.SetProperty {
>
> public function SetProperty(target:Object = null, name:String =
> null, value:Object = null) {
> super(target, name, value);
> }
>
> }
>
> So you see my SetProperty class is extending mx.states.SetProperty. I am
> repurposing it and have to update the asdocs comments "target", "value",
> etc.
>
> 
>


Re: [flexcoders] Re: Flex server language

2009-02-18 Thread Dnk
Again, this comes to preference, but for me I like PHP due to the fact  
Ito is available on a huge number of the web hosts out there, and it  
can be run on Linux, win or osx with minimal fuss. Easy to setup a dev  
machine without vendor lockin.


Dk



On 18-Feb-09, at 7:10 PM, "bsyyu"  wrote:


Thanks for your comments.
I am not a student for learning. Currently I have finished my first
project with Flex for a shopping cart project.
http://www.fredederick.com/fredederick_shop_online/
It is done with PHP backend.

After that project, I have intention to develop a DIY shopping cart
system such as X-cart with Flex and would like to know which server
language best fit with Flex, regarding the speed and support etc. and
also sometimes customer may have their own server system that I have
to fit into, then which backend is most popular etc.

thanks

--- In flexcoders@yahoogroups.com, Dnk  wrote:
>
> They will all get the job done.
>
> It is matter of requirements and preferences for the job.
>
> Dustin Krysak
>
> Sent from my iPhone
>
> On 18-Feb-09, at 4:31 PM, "bsyyu"  wrote:
>
> > currently, I am using PHP as server language. In fact I would  
like to
> > learn other server language in combination using Flex. Any  
suggestion

> > such as .NET, coldfusion or JSP.
> >
> >
>




[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread tom93438
> ...not the url of the document within which the app is embedded.
> For that, the only way is to use Javascript and ExternalInterface

If you're looking for the url in the browser address bar then look at
IBrowserManager:

http://livedocs.adobe.com/flex/3/langref/mx/managers/IBrowserManager.html

URL property is: 'The current URL as it appears in the browser address
bar.'

tom




--- In flexcoders@yahoogroups.com, Laurent Cozic  wrote:
>
> Application.application.url will give you the url of the *swf file*,
not the url of the document within which the app is embedded. For
that, the only way is to use Javascript and ExternalInterface. I think
the syntax is:
> 
> var docURL = ExternalInterface.call("location.href");
> 
> or it might be "document.location.href" - not sure which one is right.
> 
> --
> Laurent Cozic
> 
> Flash, Flex and Web Application development
> http://pogopixels.com
> 
> --- On Wed, 2/18/09, kuntamayu  wrote:
> From: kuntamayu 
> Subject: [flexcoders] Re: is it possible to track visitors / the
page an swf is embedded on
> To: flexcoders@yahoogroups.com
> Date: Wednesday, February 18, 2009, 12:31 PM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Try to track
> 
> 
> 
> Application. application. url
> 
> 
> 
> This may help you. :)
> 
> 
> 
> --- In flexcod...@yahoogro ups.com, "Tracy Spratt"  wrote:
> 
> >
> 
> > Look into the BrowserManager, perhaps it will help.
> 
> > 
> 
> >  
> 
> > 
> 
> > Tracy Spratt 
> 
> > Lariat Services 
> 
> > 
> 
> > Flex development bandwidth available 
> 
> > 
> 
> >  _ _ __
> 
> > 
> 
> > From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro
ups.com] 
> 
> On
> 
> > Behalf Of uclamerrick
> 
> > Sent: Wednesday, February 18, 2009 12:24 AM
> 
> > To: flexcod...@yahoogro ups.com
> 
> > Subject: [flexcoders] is it possible to track visitors / the page an 
> 
> swf
> 
> > is embedded on
> 
> > 
> 
> >  
> 
> > 
> 
> > Lets say I run a video site like youtube, how can I capture the url 
> 
> of
> 
> > the page where my swf object is embedded.
> 
> > 
> 
> > For example someone takes the embed code from
> 
> > http://youtube. com/videoid123   and
> 
> > places it onto the page at
> 
> > http://myblog. wordpress. com/this_ video_rocks
> 
> >  
> 
> > 
> 
> > I know how to use HTTPService to report this information back to my
> 
> > server and store it in the database, but I don't know how to use 
> 
> Flex
> 
> > 3 / Actionscript 3 to determine the URL of the page that embeds an
> 
> > swf. In the example above I would want to capture:
> 
> > 
> 
> > http://myblog. wordpress. com/this_ video_rocks
> 
> >  
> 
> > 
> 
> > Thanks.
> 
> >
>




[flexcoders] Re: Flex Apps on Flash 10 Crashes Browser

2009-02-18 Thread Don Kerr
Glad to know I'm not alone.

Couple follow on questions:

What is the difference between Flash 9 and Flash 10 with respect to memory?  
I never had memory issues with these Flex apps when running Flash 9. So, my 
users have o 
downgrade to 9 to stay live.  Not progress.

Is this issue unique to Flex apps or does it occur with any Flash-based app?  
Just curious.

Do you have to be running Flash 10 debug with Flex Builder 3 in order for the 
compiled 
swf to not cause memory problems when the client loads the swf in Flash 10?  in 
other 
words, do we have to make any changes to our SDK/IDE for Flex 3 to support 
Flash 10 
clients?  So far, for years, I not had to. But, maybe something is different 
with Flash 10.

Craziness.  Lesson Learned is to test all Flex apps when new betas come out for 
new 
versions of Flash Player.  See if they blow up and provide bug reports to 
adobe.  But, you'd 
think you shouldn't have to do it and they would be upward compatible?

I just want to solve the crash problem my users are reporting.  It is 
frustrating.  My hope is 
adobe would chime in here and at least explain what is going on and that they 
are 
working it.  I don't know what else to try other than downgrading users to 
Flash 9.

Hope we see progress on this asap.

Don





--- In flexcoders@yahoogroups.com, Steve Mathews  wrote:
>
> I do know for a fact that player 10 crashes when it runs out of memory. In
> player 9 you get errors when you attempt to do something and it can't get
> enough memory. I would like to know if this is going to be fixed soon also.
> 
> On Wed, Feb 18, 2009 at 7:16 PM, Don Kerr  wrote:
> 
> > Still no resolution on Flash Player 10 bugs that crash IE7, IE8, firefox.
> >  It is a memory error.
> >
> > All my Flex 3 apps work fine with Flash Player 9, but crash the browser
> > when the user
> > upgrades to Flash 10.
> >
> > There are many bugs reported on this in adobe's bug tracker, but I do not
> > see any status on a
> > bug fix that indicates anything is being done to fix it.
> >
> > Does anyone else have problems with their Flex 3 apps when the user
> > accesses them via
> > Flash Player 10?
> >
> > Is anyone aware of any Flex 3 code that doesn't work in Flash 10 that might
> > be causing the
> > crashes?
> >
> > Any updates on any pending patches/hot fixes from Adobe?
> >
> > Don
> >
> >
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
>





[flexcoders] Re: ToolTip stay until closed

2009-02-18 Thread Tim Hoff

Yes, you can reposition the popup (move (x,y)), by capturing the
MouseMove event (may need to use localToGlobal).

-TH

--- In flexcoders@yahoogroups.com, "flexaustin"  wrote:
>
> Thx Alex.
>
> I thought about that , but I need it look and function like Google
> Maps when you click a marker (like its part of the app). If I use the
> popupmanager can I have the popup follow a sprite on the stage?
>
> My sprites are on layer that you can drag around (similar to google
> maps) so if the user drags the background sprite all sprites on its
> displaylist will move and the popup/tooltip need to move with it.
>
> My app is very cpu/memory intensive so what I am using as of right now
> is a permanent custom canvas using the new FXG to draw a popup looking
> box with a pointer (like google maps) then when I want to show it over
> the node I call 'move' and move it into position. I need to keep all
> my 500+ Sprites lite (they just contain a bitmap). So in keeping it
> lite I did one canvas in  that I enable/disable/alpha0?1
> when it needs to be displayed. I am only allowing one popup in my app
> to keep cpu/memory use low and I short on screen realestate.
>
> Any help is appreciated!
>
> J
>
>
> --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
> >
> > Just use PopUpManager and popup whatever you want.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
> On Behalf Of flexaustin
> > Sent: Wednesday, February 18, 2009 3:39 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] ToolTip stay until closed
> >
> >
> > Is it possible to make a tooltip stay on until its closed? Maybe put
> > an "x" in the top right corner or something.
> >
> > I don't see any properties that allow it to remain, guessing I will
> > need to customize it? Maybe tooltip won't let you do this at all?
> >
> > TIA
> >
>





[flexcoders] Re: ToolTip stay until closed

2009-02-18 Thread flexaustin
Thx Alex.

I thought about that , but I need it look and function like Google
Maps when you click a marker (like its part of the app). If I use the
popupmanager can I have the popup follow a sprite on the stage?

My sprites are on layer that you can drag around (similar to google
maps) so if the user drags the background sprite all sprites on its
displaylist will move and the popup/tooltip need to move with it. 

My app is very cpu/memory intensive so what I am using as of right now
is a permanent custom canvas using the new FXG to draw a popup looking
box with a pointer (like google maps) then when I want to show it over
the node I call 'move' and move it into position.  I need to keep all
my 500+ Sprites lite (they just contain a bitmap). So in keeping it
lite I did one canvas in  that I enable/disable/alpha0?1
when it needs to be displayed.  I am only allowing one popup in my app
to keep cpu/memory use low and I short on screen realestate.  

Any help is appreciated!  

J


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Just use PopUpManager and popup whatever you want.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of flexaustin
> Sent: Wednesday, February 18, 2009 3:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ToolTip stay until closed
> 
> 
> Is it possible to make a tooltip stay on until its closed? Maybe put
> an "x" in the top right corner or something.
> 
> I don't see any properties that allow it to remain, guessing I will
> need to customize it? Maybe tooltip won't let you do this at all?
> 
> TIA
>




Re: [flexcoders] Flex Apps on Flash 10 Crashes Browser

2009-02-18 Thread Steve Mathews
I do know for a fact that player 10 crashes when it runs out of memory. In
player 9 you get errors when you attempt to do something and it can't get
enough memory. I would like to know if this is going to be fixed soon also.

On Wed, Feb 18, 2009 at 7:16 PM, Don Kerr  wrote:

> Still no resolution on Flash Player 10 bugs that crash IE7, IE8, firefox.
>  It is a memory error.
>
> All my Flex 3 apps work fine with Flash Player 9, but crash the browser
> when the user
> upgrades to Flash 10.
>
> There are many bugs reported on this in adobe's bug tracker, but I do not
> see any status on a
> bug fix that indicates anything is being done to fix it.
>
> Does anyone else have problems with their Flex 3 apps when the user
> accesses them via
> Flash Player 10?
>
> Is anyone aware of any Flex 3 code that doesn't work in Flash 10 that might
> be causing the
> crashes?
>
> Any updates on any pending patches/hot fixes from Adobe?
>
> Don
>
>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: Flex server language

2009-02-18 Thread bsyyu
Thanks for your comments.
I am not a student for learning. Currently I have finished my first
project with Flex for a shopping cart project.
http://www.fredederick.com/fredederick_shop_online/
It is done with PHP backend.

After that project, I have intention to develop a DIY shopping cart
system such as X-cart with Flex and would like to know which server
language best fit with Flex, regarding the speed and support etc. and
also sometimes customer may have their own server system that I have
to fit into, then which backend is most popular etc.

thanks


--- In flexcoders@yahoogroups.com, Dnk  wrote:
>
> They will all get the job done.
> 
> It is matter of requirements and preferences for the job.
> 
> Dustin Krysak
> 
> Sent from my iPhone
> 
> On 18-Feb-09, at 4:31 PM, "bsyyu"  wrote:
> 
> > currently, I am using PHP as server language. In fact I would like to
> > learn other server language in combination using Flex. Any suggestion
> > such as .NET, coldfusion or JSP.
> >
> >
>




[flexcoders] Re: event passing when source/destination are on different parent bubbling chains?

2009-02-18 Thread Mic
Hi Ryan, we are running Cairngorm with UM extensions. Theoretically I
need to dispatch a UM event with callback where that callback is to a
component other than the dispatching component. And because source and
destination are "so far apart" conventional bubbling is not an option.
Scenario: Because site visitors can be visitors or clients, the login
component is just one child of several of a parent component. When a
site visitor attempts to log on, Cairngorm/UM handles event
propagation and handling, including saving server results in
modelLocator VO etc. But if the login is successful, other components
need to react - their functions must be called. One such component is
a child of a child that is a peer of the login component. Even if I
could grab a reference to the destination component function, and send
it with the UM event from the source component, this feels like ugly
hardcoding. Waving a magic wand I would be able to dispatch an event
from anywhere and listen for it anywhere, without the limitation of
only being able to bubble up the parent chain. This seems totally
logical to me as obviously it is illogical to have to design one's gui
architecture based on who needs to talk to who. Thanks for listening :-)

Mic. 

--- In flexcoders@yahoogroups.com, "Ryan Graham"  wrote:
>
> 
> > In an app that has many parent and child components, how does one
> > communicate "across bubbling chains"? I need to go up from a buried
> > child component source to its parent, across to another of the
> > parent's children, and down that chain to a child destination. Can
> > this be done in Flex, or do I create my own event subscription
> > component where anybody from anywhere can subscribe with a
> > self.reference?
> 
>  
> 
> Sounds like you're describing the controller's function in MVC
> architecture. Usually an event is triggered by some sort of user
> interaction in hopes of changing the state of the application in some
> way.  If you store the state in some sort of centralized model
> somewhere, the controller can react to user events, update the model's
> state properties accordingly, and let any part of the view that is bound
> to the model update itself on property change. Is that the setup you are
> running right now? Are you passing data with this event that other
> components need?
> 
>  
> 
> HTH,
> 
> Ryan
> 
> 
> 
> This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.
>




RE: [flexcoders] Flex compile error

2009-02-18 Thread Tracy Spratt
Did you "Clean" the project?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nathaniel Skiba
Sent: Wednesday, February 18, 2009 8:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex compile error

 

I can't say for certain without seeing your code, but it looks like
you're using the class "data" somewhere without importing it.

~Nate





[flexcoders] Flex Apps on Flash 10 Crashes Browser

2009-02-18 Thread Don Kerr
Still no resolution on Flash Player 10 bugs that crash IE7, IE8, firefox.  It 
is a memory error.

All my Flex 3 apps work fine with Flash Player 9, but crash the browser when 
the user 
upgrades to Flash 10.

There are many bugs reported on this in adobe's bug tracker, but I do not see 
any status on a 
bug fix that indicates anything is being done to fix it.

Does anyone else have problems with their Flex 3 apps when the user accesses 
them via 
Flash Player 10?

Is anyone aware of any Flex 3 code that doesn't work in Flash 10 that might be 
causing the 
crashes?

Any updates on any pending patches/hot fixes from Adobe?

Don






Re: [flexcoders] (unknown)

2009-02-18 Thread Fotis Chatzinikos
use server software (java/php and so on) to scale and save the image in
whatever dimention you need.

On Wed, Feb 18, 2009 at 9:45 PM, Amplify Mindware
wrote:

>
> Hello All,
>
> I am taking the images form the user. I want to store it in a fixed size on
> the server.
> How can I achieve this?
>
> Awating for prompt reply.
> Regards,
> Amplify
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [flexcoders] Flex server language

2009-02-18 Thread Dnk

They will all get the job done.

It is matter of requirements and preferences for the job.

Dustin Krysak

Sent from my iPhone

On 18-Feb-09, at 4:31 PM, "bsyyu"  wrote:


currently, I am using PHP as server language. In fact I would like to
learn other server language in combination using Flex. Any suggestion
such as .NET, coldfusion or JSP.




Re: [flexcoders] Flex server language

2009-02-18 Thread Pedro Sena
Are you a student or are you trying to evaluate the language that best fits
in some specific scenario?



On Wed, Feb 18, 2009 at 9:31 PM, bsyyu  wrote:

>   currently, I am using PHP as server language. In fact I would like to
> learn other server language in combination using Flex. Any suggestion
> such as .NET, coldfusion or JSP.
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


Re: [flexcoders] Flex compile error

2009-02-18 Thread Nathaniel Skiba
I can't say for certain without seeing your code, but it looks like
you're using the class "data" somewhere without importing it.

~Nate


[flexcoders] Re: Components needed

2009-02-18 Thread brucewhealton
That link had only one component listed.  Did I go to the right place?
http://www.flextras.com?c=104
Bruce

--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
>
> 
>  Don't forget about FlexLib ( flexlib.net ) as a source for components. 
> 
>  Although I don't know a commercial component that would meet Bruce's 
> current need, there are commercial components vendors out there:
> 
> http://www.flextras.com?c=104  ( Me ) and Drumbeatinsight.com are two 
> that come to mind.
> 
> 
> Haykel BEN JEMIA wrote:
> > Some links:
> >
> > http://www.quietlyscheming.com/blog/components/flexbook/
> >
http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/
> >
http://www.thetechlabs.com/3d/simulating-piclens-with-flex-and-away3d-%E2%80%93-part-1/

> > (there are also other interesting articles on this site)
> >
> > Haykel Ben Jemia
> >
> > Allmas
> > Web & RIA Development
> > http://www.allmas-tn.com
> >
> >
> >
> >
> > On Tue, Feb 17, 2009 at 5:27 AM, brucewhealton 
> > mailto:br...@...>> wrote:
> >
> > Hello all,
> > I was wondering if anyone could recommend some good resources
> > for components, be they open-source, free, or commercial. I was
> > reading Jack Herrington's book "Flex 3: Component Solutions" and I
> > found a number of interesting components discussed. I'm looking at
> > the ones for presenting images, or photo galleries. In
particular I
> > found these sites useful, afcomponents.com
> > , fxcomponents.com
> >  and
> > digicrafts.com  to be useful and as having
> > some great components.
> > I'm doing a site for an Art Gallery. I wanted to find a good
> > component for displaying photos that would look like
presenting photos
> > of art on a virtual wall, as it were. Can anyone recommend any
good
> > sites and components. In particular, if there are other great
> > open-source components that would be great.
> > I found a few Photo book, flexbook type components also. I
> > thought there was a freeware, open-source version of this also.
> > Thanks,
> > Bruce
> >
> >
> >
> >
> > 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl.com/684b5h
> http://www.twitter.com/reboog711  | Phone: 203-379-0773
> --
> Easy to use Interface Components for Flex Developers
> http://www.flextras.com?c=104
> --
> http://www.theflexshow.com
> http://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
>




[flexcoders] Re: Components needed

2009-02-18 Thread brucewhealton
The link below did not work.
http://tinyurl.com/c2kkmw
Bruce

--- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
>
> Google Code has a ton of Flex components; just run this search:
> http://tinyurl.com/c2kkmw
> 
> It can take a bit of digging, but lots of free components there.
> 
> - Alex C
> 
> --- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
> >
> > 
> >  Don't forget about FlexLib ( flexlib.net ) as a source for
components. 
> > 
> >  Although I don't know a commercial component that would meet Bruce's 
> > current need, there are commercial components vendors out there:
> > 
> > http://www.flextras.com?c=104  ( Me ) and Drumbeatinsight.com are two 
> > that come to mind.
> > 
> > 
> > Haykel BEN JEMIA wrote:
> > > Some links:
> > >
> > > http://www.quietlyscheming.com/blog/components/flexbook/
> > >
>
http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/
> > >
>
http://www.thetechlabs.com/3d/simulating-piclens-with-flex-and-away3d-%E2%80%93-part-1/
> 
> > > (there are also other interesting articles on this site)
> > >
> > > Haykel Ben Jemia
> > >
> > > Allmas
> > > Web & RIA Development
> > > http://www.allmas-tn.com
> > >
> > >
> > >
> > >
> > > On Tue, Feb 17, 2009 at 5:27 AM, brucewhealton 
> > > mailto:bruce@>> wrote:
> > >
> > > Hello all,
> > > I was wondering if anyone could recommend some good resources
> > > for components, be they open-source, free, or commercial. I was
> > > reading Jack Herrington's book "Flex 3: Component Solutions"
and I
> > > found a number of interesting components discussed. I'm
looking at
> > > the ones for presenting images, or photo galleries. In
> particular I
> > > found these sites useful, afcomponents.com
> > > , fxcomponents.com
> > >  and
> > > digicrafts.com  to be useful and as
having
> > > some great components.
> > > I'm doing a site for an Art Gallery. I wanted to find a good
> > > component for displaying photos that would look like
> presenting photos
> > > of art on a virtual wall, as it were. Can anyone recommend any
> good
> > > sites and components. In particular, if there are other great
> > > open-source components that would be great.
> > > I found a few Photo book, flexbook type components also. I
> > > thought there was a freeware, open-source version of this also.
> > > Thanks,
> > > Bruce
> > >
> > >
> > >
> > >
> > > 
> > 
> > -- 
> > Jeffry Houser, Technical Entrepreneur
> > Adobe Community Expert: http://tinyurl.com/684b5h
> > http://www.twitter.com/reboog711  | Phone: 203-379-0773
> > --
> > Easy to use Interface Components for Flex Developers
> > http://www.flextras.com?c=104
> > --
> > http://www.theflexshow.com
> > http://www.jeffryhouser.com
> > --
> > Part of the DotComIt Brain Trust
> >
>




[flexcoders] Flex server language

2009-02-18 Thread bsyyu
currently, I am using PHP as server language. In fact I would like to
learn other server language in combination using Flex. Any suggestion
such as .NET, coldfusion or JSP.



Re: [flexcoders] Re: Is there any way to use predefined functions for a sortCompareFunction?

2009-02-18 Thread Jeffry Houser

 : doh:  You're right.  My search brought up the wrong set of docs.  
Sorry about the sortOptions mis-direct. 

Keith Hughitt wrote:
> Thanks all for the suggestions!
>
> "Will using the sortOptions property on a DataGridColumn do what you
> want?"
>
> Hmm. I don't think that is supported in Flex 3
> (http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html),
> although that would have been nice.
>
> Both of the other solutions looks pretty promising. I will probably do
> something like what Adrian suggested, in order to keep things as
> simple as possible. Perhaps I will post a feature-request on JIRA
> sometime soon and see if it is something they could add easily :)
>
> Take care,
> Keith
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




RE: [flexcoders] event passing when source/destination are on different parent bubbling chains?

2009-02-18 Thread Ryan Graham

> In an app that has many parent and child components, how does one
> communicate "across bubbling chains"? I need to go up from a buried
> child component source to its parent, across to another of the
> parent's children, and down that chain to a child destination. Can
> this be done in Flex, or do I create my own event subscription
> component where anybody from anywhere can subscribe with a
> self.reference?

 

Sounds like you're describing the controller's function in MVC
architecture. Usually an event is triggered by some sort of user
interaction in hopes of changing the state of the application in some
way.  If you store the state in some sort of centralized model
somewhere, the controller can react to user events, update the model's
state properties accordingly, and let any part of the view that is bound
to the model update itself on property change. Is that the setup you are
running right now? Are you passing data with this event that other
components need?

 

HTH,

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

RE: [flexcoders] ToolTip stay until closed

2009-02-18 Thread Alex Harui
Just use PopUpManager and popup whatever you want.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Wednesday, February 18, 2009 3:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ToolTip stay until closed


Is it possible to make a tooltip stay on until its closed? Maybe put
an "x" in the top right corner or something.

I don't see any properties that allow it to remain, guessing I will
need to customize it? Maybe tooltip won't let you do this at all?

TIA



[flexcoders] ToolTip stay until closed

2009-02-18 Thread flexaustin
Is it possible to make a tooltip stay on until its closed?  Maybe put
an "x" in the top right corner or something. 

I don't see any properties that allow it to remain, guessing I will
need to customize it?  Maybe tooltip won't let you do this at all?

TIA



[flexcoders] Panel or Canvas expand from center

2009-02-18 Thread flexaustin
Is it possible to expand canvas or panel from center when increasing
the size?

Thanks, Jason





[flexcoders] How can I shorten the heading on the Advanced Data Grid

2009-02-18 Thread boy_trike
I need to use the ADG for the style function but notice that the
headings now are WIDER with a space on the right for multiple sort
priorities.  Is there an easy way to eliminate that?

Thanks
Bruce



[flexcoders] event passing when source/destination are on different parent bubbling chains?

2009-02-18 Thread Mic
In an app that has many parent and child components, how does one
communicate "across bubbling chains"? I need to go up from a buried
child component source to its parent, across to another of the
parent's children, and down that chain to a child destination. Can
this be done in Flex, or do I create my own event subscription
component where anybody from anywhere can subscribe with a
self.reference? TIA,

Mic. 



[flexcoders] Reading an UTF-8 document

2009-02-18 Thread Andrew
Please forgive me if the is a post about this already but i can't seem
to find it.

I am creating an AIR app to convert characters into their HTML entity,
hex and dec value and I have just come across an issue.  I am reading
in xml files which contain the data, these files are saved in a UTF-8
format.

When I open it using a Filestream it stops after the first 3
characters "ÿþ<".  I know that these characters are the start of a
unicode document, but I can't figure out why it is stopping reading
the file there.

Any help would be greatly appreciated.



[flexcoders] Re: Components needed

2009-02-18 Thread brucewhealton
Yes, I found the link.  Is that good enough for us to assume it is
open-source?  The code itself does suggest that it is open-source, and
that we can use it as is, etc.  

It was developed with Flex 2.  Can I use something that was created in
Flex 2, inside Flex 3?  I did get some warnings about deprecated tags
and it selected a change to the name for Flex3, which seemed to work
fine.  As a rule, will it be possible to use Flex 2 apps and edit them
in Flex 3?
Thanks,
Bruce

--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> There is a link to download the source to the right, just above
> "Categories".
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Wed, Feb 18, 2009 at 3:51 AM, brucewhealton
> wrote:
> 
> >   Hi,
> > I thought the flexbook was open-source but I cannot find that
> > information on the page now. I just seem to remember it being open
> > source.
> > Does anyone know?
> > Bruce
> >
> >
> > --- In flexcoders@yahoogroups.com ,
Haykel
> > BEN JEMIA  wrote:
> > >
> > > Some links:
> > >
> > > http://www.quietlyscheming.com/blog/components/flexbook/
> > >
> >
> >
http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/
> > >
> >
> >
http://www.thetechlabs.com/3d/simulating-piclens-with-flex-and-away3d-%E2%80%93-part-1/
> > (there
> > > are also other interesting articles on this site)
> > >
> > > Haykel Ben Jemia
> > >
> > > Allmas
> > > Web & RIA Development
> > > http://www.allmas-tn.com
> > >
> > >
> > >
> > >
> > > On Tue, Feb 17, 2009 at 5:27 AM, brucewhealton
> > > wrote:
> > >
> > > > Hello all,
> > > > I was wondering if anyone could recommend some good resources
> > > > for components, be they open-source, free, or commercial. I was
> > > > reading Jack Herrington's book "Flex 3: Component Solutions" and I
> > > > found a number of interesting components discussed. I'm looking at
> > > > the ones for presenting images, or photo galleries. In
particular I
> > > > found these sites useful, afcomponents.com, fxcomponents.com and
> > > > digicrafts.com to be useful and as having some great components.
> > > > I'm doing a site for an Art Gallery. I wanted to find a good
> > > > component for displaying photos that would look like
presenting photos
> > > > of art on a virtual wall, as it were. Can anyone recommend any
good
> > > > sites and components. In particular, if there are other great
> > > > open-source components that would be great.
> > > > I found a few Photo book, flexbook type components also. I
> > > > thought there was a freeware, open-source version of this also.
> > > > Thanks,
> > > > Bruce
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] Flex compile error

2009-02-18 Thread adeelafsar
Severity and DescriptionPathResourceLocation
Creation Time   Id
Type was not found or was not a compile-time constant: data.
[Generated code (use -keep to save): Path: data-generated.as, Line:
245, Column: 14]dataviewUnknown 1234982689859   45


any clues why am i getting this error?



[flexcoders] Re: Is there any way to use predefined functions for a sortCompareFunction?

2009-02-18 Thread Keith Hughitt
Thanks all for the suggestions!

"Will using the sortOptions property on a DataGridColumn do what you
want?"

Hmm. I don't think that is supported in Flex 3
(http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html),
although that would have been nice.

Both of the other solutions looks pretty promising. I will probably do
something like what Adrian suggested, in order to keep things as
simple as possible. Perhaps I will post a feature-request on JIRA
sometime soon and see if it is something they could add easily :)

Take care,
Keith



[flexcoders] Re: Help! Getting blank "Flex Build Path", "Flex Modules" windows

2009-02-18 Thread azflex26
Me either..but I am glad I found it. I hope it helps someone else as well.

--- In flexcoders@yahoogroups.com, Sam Lai  wrote:
>
> Lol, can't begin to imagine how someone worked that out.
> 
> 2009/2/19 sleblang :
> > Clearly this is an issue with 64Bit systems. Here's a band-aid
> > solution that worked for me and might help others out until a solution
> > is implemented.
> >
> > from: http://bugs.adobe.com/jira/browse/FB-16240
> > Open Project Properties.
> > Click on Resource.
> > Resize the properties window making it as thin as it will go.
> > Click on Builders and now resize the window nice and wide.
> > Click on Flex Build Path and as if by magic the properties are there.
> >
> >
> > --- In flexcoders@yahoogroups.com, "sleblang"  wrote:
> >>
> >> I am running Vista Home 64Bit and having the above referenced
problem.
> >> Rather than reinvent the wheel, here's a link that depicts the exact
> >> problem along with images -
> >> http://www.actionscript.org/forums/showthread.php3?t=172441.
> >>
> >> I can open the same project on my work machine and everything is
fine.
> >> Any help is greatly appreciated!!
> >>
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links
> >
> >
> >
> >
>




RE: [flexcoders] Object to XMLString

2009-02-18 Thread Alex Harui
See OrderedObject in the Gumbo code

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Wednesday, February 18, 2009 7:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Object to XMLString


Hi

I have car object as shown below. I am using custom toXMLString()
method to convert the object into the xml representation. In the
method i am using the ObjetUtil.getClassInfo(this). The output of the
toXMLString method varies sometimes it is
1.

8
8
6
9


2.

6
9
8
8


I want to have the fix order of the nodes as I like. How can we
achieve this???.
I know this can be done but i do not know how Any pointers

class Car
{
public var tyre:
public var color;
public var light;
public var mirror:

public function toXMLString():String
{
var xmlString:String="";
var details:Object = ObjectUtil.getClassInfo(this);
var properties:Array = details.properties;

for each(var qName:QName in properties)
{
if ( StringUtil.trim(this [ qName.localName ]).length > 0 )
xmlString = xmlString + "<" + qName.localName + ">" + this [
qName.localName ] + "";
}

xmlString = xmlString + "";


}

}

Thanks
ilikeflex



Re: [flexcoders] Re: Help! Getting blank "Flex Build Path", "Flex Modules" windows

2009-02-18 Thread Sam Lai
Lol, can't begin to imagine how someone worked that out.

2009/2/19 sleblang :
> Clearly this is an issue with 64Bit systems. Here's a band-aid
> solution that worked for me and might help others out until a solution
> is implemented.
>
> from: http://bugs.adobe.com/jira/browse/FB-16240
> Open Project Properties.
> Click on Resource.
> Resize the properties window making it as thin as it will go.
> Click on Builders and now resize the window nice and wide.
> Click on Flex Build Path and as if by magic the properties are there.
>
>
> --- In flexcoders@yahoogroups.com, "sleblang"  wrote:
>>
>> I am running Vista Home 64Bit and having the above referenced problem.
>> Rather than reinvent the wheel, here's a link that depicts the exact
>> problem along with images -
>> http://www.actionscript.org/forums/showthread.php3?t=172441.
>>
>> I can open the same project on my work machine and everything is fine.
>> Any help is greatly appreciated!!
>>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


Re: [flexcoders] No codecompletion available

2009-02-18 Thread Sam Lai
fontSize is a style, not a property. To set fontSize, use
myComponent.setStyle("fontSize", 40);

Easiest way to work out what's what is to look at the flex docs.

2009/2/18 secrit.service :
> Hi all,
>
> I'm new to Flex, so I will probably ask some simple questions.
> However to me they look huge.
> One of the situations I encounter now is following :
>
> filename = Application.mxml
> ---
> 
>
>
> 
>
>
> filename = CustomComponent.mxml
> ---
> 
>
>
> 
>
>
> filename = Application.as
> -
> Because my Custom Component is based on a Text, I want to set the
> fontsize. Therefore I want to write a line of code like this :
>
> myComponent.fontSize = 40;
>
> But when I write myCo and press Ctrl+Space it does not recognize my
> component. When I write the scriptcode inside the mxml-file, there is
> no problem.
>
>
> filename = CustomComponent.as
> -
> When I want to set a property of the component, which is accessible
> via mxml, it wont work.
>
> When I write this.fontSize = 40;
>
> It will even not recognize the property fontSize.
>
>
> Can anyone give me an explanation for this behavior?
>
> Thanks in advance
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] (unknown)

2009-02-18 Thread Amplify Mindware

Hello All,
 
   I am taking the images  form the user. I want to  store it in a fixed size 
on the server.
   How can I achieve this?
 
   Awating for prompt reply.
Regards,
Amplify


  



RE: [flexcoders] Help with Timer issue

2009-02-18 Thread Tracy Spratt
You are adding an event listener every time yu click the button.  I
don't know that this is the problem but it makes me suspicious.  Either
remove the event listener in the success condition, or add it one time
in an init function. See if that chnges the behavior.

 

Other than that, simplify the setup to the minimum and see if the issue
continues.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of trishhartnett
Sent: Wednesday, February 18, 2009 1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help with Timer issue

 

Hello all, 

I'm a Flex newbie. I'm working on an application where an end user
clicks a button, and when the button is clicked a DB is queried
repeatedly until a particular result is returned. When the result is
returned the end user gets a confirmation message to tell them that
they were successful.

So the code goes like this:

private var dBTimer:Timer = new Timer(5000);

private function onButtonClick(): void{
dBTimer.addEventListener(TimerEvent.TIMER, timeTick);
dBTimer.start();
}

public function timeTick(evt:TimerEvent):void {
checkStatus(callBackFunction, id); 
}

private function callBackFunction():void 
{
if( status == 'SUCCESS' )
{ 
// cancel the timer
dBTimer.stop(); 
dBTimer.reset();
Alert.show("Succcess string","Info","OK",null,null,INFO_ICON);
}else{
//do nothing and the checkStatus 
//will be called again at next TimerEvent
} 
}

So the first time the end user clicks on the button, everything works
okay. The DB is queried and when SUCCESS is returned the dBTimer is
stopped and reset. The end user gets the Success Alert dialog box and
everything is okay.

The second time the end user clicks the button, everything happens the
same as before, only the dbTimer, despite being stopped doesn't stop
working. checkStatus is called over and over again in an infinite loop
because the dbTimer never stops.

Can anyone suggest anything please ? I am really puzzled by this one.

Best Regards, 
Trish.





[flexcoders] RTMP channel not found error ..

2009-02-18 Thread Dharmendra Chauhan
Hi ,
 I am getting error similar to above  when I run my app after building
with Flex ant.It works fine when I compile it with web-tier compiler
or flex builder.
Please see my ant script given below.Am I missing anything ? 
  
Note: I am using flex2 with fds and app server is jboss4.2.












[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread uclamerrick
Thank you, I added Google Analytics but I also need an internal
tracking system.

--- In flexcoders@yahoogroups.com, "Ryan Graham"  wrote:
>
> 
> If possible, you could look into Google Analytics to do the tracking for
> you:
> 
>  
> 
> http://code.google.com/apis/analytics/docs/flashTrackingIntro.html
> 
>  
> 
> Worth a look, but might not meet your requirements.
> 
>  
> 
> HTH,
> 
> Ryan
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Laurent Cozic
> Sent: Wednesday, February 18, 2009 6:08 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: is it possible to track visitors / the
> page an swf is embedded on
> 
>  
> 
> Application.application.url will give you the url of the *swf file*, not
> the url of the document within which the app is embedded. For that, the
> only way is to use Javascript and ExternalInterface. I think the syntax
> is:
> 
> var docURL = ExternalInterface.call("location.href");
> 
> or it might be "document.location.href" - not sure which one is right.
> 
> --
> Laurent Cozic
> 
> Flash, Flex and Web Application development
> http://pogopixels.com
> 
> --- On Wed, 2/18/09, kuntamayu  wrote:
> 
> From: kuntamayu 
> Subject: [flexcoders] Re: is it possible to track visitors / the page an
> swf is embedded on
> To: flexcoders@yahoogroups.com
> Date: Wednesday, February 18, 2009, 12:31 PM
> 
> 
> Try to track
> 
> Application. application. url
> 
> This may help you. :)
> 
> --- In flexcod...@yahoogro ups.com 
> , "Tracy Spratt"  wrote:
> >
> > Look into the BrowserManager, perhaps it will help.
> > 
> > 
> > 
> > Tracy Spratt 
> > Lariat Services 
> > 
> > Flex development bandwidth available 
> > 
> >  _ _ __
> > 
> > From: flexcod...@yahoogro ups.com
>   [mailto:flexcod...@yahoogro
> ups.com  ] 
> On
> > Behalf Of uclamerrick
> > Sent: Wednesday, February 18, 2009 12:24 AM
> > To: flexcod...@yahoogro ups.com  
> > Subject: [flexcoders] is it possible to track visitors / the page an 
> swf
> > is embedded on
> > 
> > 
> > 
> > Lets say I run a video site like youtube, how can I capture the url 
> of
> > the page where my swf object is embedded.
> > 
> > For example someone takes the embed code from
> > http://youtube. com/videoid123 
>  > and
> > places it onto the page at
> > http://myblog. wordpress. com/this_ video_rocks
>  
> >   > 
> > 
> > I know how to use HTTPService to report this information back to my
> > server and store it in the database, but I don't know how to use 
> Flex
> > 3 / Actionscript 3 to determine the URL of the page that embeds an
> > swf. In the example above I would want to capture:
> > 
> > http://myblog. wordpress. com/this_ video_rocks
>  
> >   > 
> > 
> > Thanks.
> >
> 
>  
> 
> 
> 
> 
> 
> This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.
>




[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread uclamerrick
Thank you, I am trying this out right now.

--- In flexcoders@yahoogroups.com, Laurent Cozic  wrote:
>
> Application.application.url will give you the url of the *swf file*,
not the url of the document within which the app is embedded. For
that, the only way is to use Javascript and ExternalInterface. I think
the syntax is:
> 
> var docURL = ExternalInterface.call("location.href");
> 
> or it might be "document.location.href" - not sure which one is right.
> 
> --
> Laurent Cozic
> 
> Flash, Flex and Web Application development
> http://pogopixels.com
> 
> --- On Wed, 2/18/09, kuntamayu  wrote:
> From: kuntamayu 
> Subject: [flexcoders] Re: is it possible to track visitors / the
page an swf is embedded on
> To: flexcoders@yahoogroups.com
> Date: Wednesday, February 18, 2009, 12:31 PM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Try to track
> 
> 
> 
> Application. application. url
> 
> 
> 
> This may help you. :)
> 
> 
> 
> --- In flexcod...@yahoogro ups.com, "Tracy Spratt"  wrote:
> 
> >
> 
> > Look into the BrowserManager, perhaps it will help.
> 
> > 
> 
> >  
> 
> > 
> 
> > Tracy Spratt 
> 
> > Lariat Services 
> 
> > 
> 
> > Flex development bandwidth available 
> 
> > 
> 
> >  _ _ __
> 
> > 
> 
> > From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro
ups.com] 
> 
> On
> 
> > Behalf Of uclamerrick
> 
> > Sent: Wednesday, February 18, 2009 12:24 AM
> 
> > To: flexcod...@yahoogro ups.com
> 
> > Subject: [flexcoders] is it possible to track visitors / the page an 
> 
> swf
> 
> > is embedded on
> 
> > 
> 
> >  
> 
> > 
> 
> > Lets say I run a video site like youtube, how can I capture the url 
> 
> of
> 
> > the page where my swf object is embedded.
> 
> > 
> 
> > For example someone takes the embed code from
> 
> > http://youtube. com/videoid123   and
> 
> > places it onto the page at
> 
> > http://myblog. wordpress. com/this_ video_rocks
> 
> >  
> 
> > 
> 
> > I know how to use HTTPService to report this information back to my
> 
> > server and store it in the database, but I don't know how to use 
> 
> Flex
> 
> > 3 / Actionscript 3 to determine the URL of the page that embeds an
> 
> > swf. In the example above I would want to capture:
> 
> > 
> 
> > http://myblog. wordpress. com/this_ video_rocks
> 
> >  
> 
> > 
> 
> > Thanks.
> 
> >
>




[flexcoders] Re: Desperate Help! crossdomain.xml

2009-02-18 Thread cjcuccaro

We ran into a similar situation with having the crossdomain.xml policy
file in a subdirectory of a site.

The phase 3 change that went into affect with FP10.02 requires the root
directory of the site to have a meta policy file (policy file for policy
files) that allows for the use of policy files in subdirectories. If it
is missing then the site-control permitted-cross-domain-policies
defaults to "master only", causing all other policy files to fail
security check.

Therefore, the crossdomain.xml meta policy file placed in the root
directory will have the following:


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd
 ">






Then the subdirectory policy files will look something like the
following:


  http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd
 ">
  





  

The important part is having the meta policy file in the root directory.

Hope this helps,
CJ



[flexcoders] design question: editing / saving complex value objects

2009-02-18 Thread Maciek Sakrejda
Suppose I have a class Calendar that mirrors a server-side class (we're
not really working with Calendars, but I think this is a reasonably good
and simple analogy):

class Calendar {
public var appointments:ArrayCollection;
/* other stuff */
}

Then I want users to be able to edit and save the Calendar: I have a
CalendarEditor. Editing a Calendar is moderately complicated (e.g.,
adding, removing, or editing Appointments), so I want explicit
save/cancel steps.

When editing something really simple, this is not really a problem--when
the user saves, I propagate the view state to the object; when she hits
cancel, I don't do anything.

However, the Calendar determines what combination of Appointments is
valid (they can't overlap), and the Calendar is the dataProvider of the
CalendarEditor, so I can't fully validate a combination of Appointments
without adding them to the Calendar. This means I actually need to add
the appointments to the Calendar before it is saved so that they can be
(a) validated in combination and (b) used to update the view while the
edit is in progress. This makes save/cancel steps trickier: do I

(1) Clone the Calendar (and therefore have it provide a clone() method)
when assigned in the dataProvider, modify the clone, and assign the
dataProvider reference when the user hits save.
(2) Clone the Calendar as above, but have the Editor modify the
original, and restore the clone in case the user cancels.
(3) Something more clever?

The problem with (1) is that cloning may be somewhat complicated, and it
"feels" ugly to have the Editor update the dataProvider reference
(instead of modifying the actual object that was set as the data
provider). (2) hits the same issue. Perhaps the solution is to maintain
a private clone, and copy back the state on save? Or is the right answer
here that the model should not expect that the editor will update the
object it set as the dataProvider, but should instead expect an update
through a mechanism like a Mate map?

Any thoughts? (Please keep in mind that my experience with MVC
frameworks is unfortunately minimal, though I'm looking into Mate right
now).

Thanks,
Maciek








[flexcoders] Re: HTML editor for Flex Builder 3?

2009-02-18 Thread huu...@ymail.com
Got it working.  And my apologies -- I completely overlooked "Europa
Site" from the listing in my previous post.

--- In flexcoders@yahoogroups.com, "Mayur"  wrote:
>
> 
> Hi Go to Flex Builder -> windows -> install / update... -> here you
> can select " Europa Discovery site " ->  
> 
> and press " Finish " ( select automatic choose mirrors.. not
> compulasry but recommended )
> 
> On next screen Search Results an Europa Discovery Site...
> Expand and select your required stuffs only.
> 
> Now, the twist ...  system may show you some red(erroneous message )
> don't worry just finish selection of  your required stuffs(options)
> and then click on " Select Required " button on right side.
> 
> then Next... and Finish...
> 
> Woi... its done. :)
> 
> 
> --- In flexcoders@yahoogroups.com, "huuuze@"  wrote:
> >
> > Sam, how do I select a Europa-only update site?
> > 
> > I added this URL (http://download.eclipse.org/webtools/updates/), but
> > I'm confused about how to select a Europa-compatible update.
> > 
> > --- In flexcoders@yahoogroups.com, Sam Lai  wrote:
> > >
> > > That's definitely an option - go to Help -> Software Updates -> Find
> > > and Install. At least select the Europa Discovery Site when prompted
> > > for update sites. Click next and that should give you a list of
things
> > > to pick to install. The names are pretty cryptic, and the
descriptions
> > > aren't descriptions, but I think the Web Standard Tools should give
> > > you want you need.
> > > 
> > > This way lets you be even more picky about what to install, and what
> > > not to (e.g. if you don't need PHP support).
> > > 
> > > 2009/2/18 Jeffry Houser :
> > > >
> > > >  What's the difference between the two options?
> > > >  And/or why wouldn't you be able to install PDT as a plugin to
Flex
> > > > Builder?   (Instructions for that seem to be here:
> > > > http://wiki.eclipse.org/PDT/Installation#From_Update_Site )
> > > >
> > > >  Whether good or bad, I do most of my HTML editing in CFEclipse
> > which is
> > > > designed for ColdFusion / CFML.
> > > >
> > > > huuuze@ wrote:
> > > >
> > > > Thanks Alan.  I appreciate the response.  Unfortunately, I'd
> prefer to
> > > > use Flex Builder stand-alone and augment it via plugins rather
than
> > > > download Eclipse and augment it with the Flex Builder plugin.
> > > >
> > > > Any other suggestions?
> > > >
> > > > --- In flexcoders@yahoogroups.com, Alan K  wrote:
> > > >
> > > >
> > > > Download Eclipse PDT and install Flex Builder as a Plug ­in.
> > > >
> > > > You will have code hinting and debugging for HTML, XML, PHP as
well
> > > >
> > > >
> > > > as other
> > > >
> > > >
> > > > nifty stuff.
> > > >
> > > > http://www.eclipse.org/pdt/release-notes/pdt2_0.php
> > > >
> > > >
> > > >
> > > > Alan
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Alternative FAQ location:
> > > >
> >
>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> > Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Jeffry Houser, Technical Entrepreneur
> > > > Adobe Community Expert: http://tinyurl.com/684b5h
> > > > http://www.twitter.com/reboog711  | Phone: 203-379-0773
> > > > --
> > > > Easy to use Interface Components for Flex Developers
> > > > http://www.flextras.com?c=104
> > > > --
> > > > http://www.theflexshow.com
> > > > http://www.jeffryhouser.com
> > > > --
> > > > Part of the DotComIt Brain Trust
> > > >
> > > >
> > >
> >
>




[flexcoders] Help with Timer issue

2009-02-18 Thread trishhartnett
Hello all, 

I'm a Flex newbie. I'm working on an application where an end user
clicks a button, and when the button is clicked a DB is queried
repeatedly until a particular result is returned. When the result is
returned the end user gets a confirmation message to tell them that
they were successful.

So the code goes like this:

private var dBTimer:Timer = new Timer(5000);

private function onButtonClick(): void{
  dBTimer.addEventListener(TimerEvent.TIMER, timeTick);
  dBTimer.start();
}

public function timeTick(evt:TimerEvent):void {
   checkStatus(callBackFunction, id);
}

 private function callBackFunction():void 
 {
 if( status == 'SUCCESS' )
 {  
   // cancel the timer
   dBTimer.stop();  
   dBTimer.reset();
Alert.show("Succcess string","Info","OK",null,null,INFO_ICON);
  }else{
  //do nothing and the checkStatus 
  //will be called again  at next TimerEvent
   } 
}

So the first time the end user clicks on the button, everything works
okay. The DB is queried and when SUCCESS is returned the dBTimer is
stopped and reset. The end user gets the Success Alert dialog box and
everything is okay.

The second time the end user clicks the button, everything happens the
same as before, only the dbTimer, despite being stopped doesn't stop
working. checkStatus is called over and over again in an infinite loop
because the dbTimer never stops.

Can anyone suggest anything please ? I am really puzzled by this one.

Best Regards, 
Trish.



RE: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread Ryan Graham

If possible, you could look into Google Analytics to do the tracking for
you:

 

http://code.google.com/apis/analytics/docs/flashTrackingIntro.html

 

Worth a look, but might not meet your requirements.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurent Cozic
Sent: Wednesday, February 18, 2009 6:08 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: is it possible to track visitors / the
page an swf is embedded on

 

Application.application.url will give you the url of the *swf file*, not
the url of the document within which the app is embedded. For that, the
only way is to use Javascript and ExternalInterface. I think the syntax
is:

var docURL = ExternalInterface.call("location.href");

or it might be "document.location.href" - not sure which one is right.

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, kuntamayu  wrote:

From: kuntamayu 
Subject: [flexcoders] Re: is it possible to track visitors / the page an
swf is embedded on
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 12:31 PM


Try to track

Application. application. url

This may help you. :)

--- In flexcod...@yahoogro ups.com 
, "Tracy Spratt"  wrote:
>
> Look into the BrowserManager, perhaps it will help.
> 
> 
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
>  _ _ __
> 
> From: flexcod...@yahoogro ups.com
  [mailto:flexcod...@yahoogro
ups.com  ] 
On
> Behalf Of uclamerrick
> Sent: Wednesday, February 18, 2009 12:24 AM
> To: flexcod...@yahoogro ups.com  
> Subject: [flexcoders] is it possible to track visitors / the page an 
swf
> is embedded on
> 
> 
> 
> Lets say I run a video site like youtube, how can I capture the url 
of
> the page where my swf object is embedded.
> 
> For example someone takes the embed code from
> http://youtube. com/videoid123 
 > and
> places it onto the page at
> http://myblog. wordpress. com/this_ video_rocks
 
>  > 
> 
> I know how to use HTTPService to report this information back to my
> server and store it in the database, but I don't know how to use 
Flex
> 3 / Actionscript 3 to determine the URL of the page that embeds an
> swf. In the example above I would want to capture:
> 
> http://myblog. wordpress. com/this_ video_rocks
 
>  > 
> 
> Thanks.
>

 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Re: Help! Getting blank "Flex Build Path", "Flex Modules" windows

2009-02-18 Thread sleblang
Clearly this is an issue with 64Bit systems. Here's a band-aid
solution that worked for me and might help others out until a solution
is implemented.

from: http://bugs.adobe.com/jira/browse/FB-16240
Open Project Properties.
Click on Resource.
Resize the properties window making it as thin as it will go.
Click on Builders and now resize the window nice and wide.
Click on Flex Build Path and as if by magic the properties are there.


--- In flexcoders@yahoogroups.com, "sleblang"  wrote:
>
> I am running Vista Home 64Bit and having the above referenced problem.
> Rather than reinvent the wheel, here's a link that depicts the exact
> problem along with images -
> http://www.actionscript.org/forums/showthread.php3?t=172441.
> 
> I can open the same project on my work machine and everything is fine.
> Any help is greatly appreciated!!
>




Re: [flexcoders] Webservice with Dynamic request?

2009-02-18 Thread Alain Thibodeau
Thanks for anyone who looked at this. I found the prolem, by default I always 
put my class members as private...:(
Making them public, seems to have let access to the serializer and I am sending 
the proper soap.


 




From: Alain Thibodeau 
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 18, 2009 10:54:38 AM
Subject: Re: [flexcoders] Webservice with Dynamic request?


Thank-you but I am still a little unclear as to how this actually works.
>From what I gather all I need to do is pass an array and flex will serialize 
>it...

I've tried passing an array of objects, I've simplified my test case, below is 
the code:

can anyone please help me figure out what I am doing wrong?

thanks in advance

 - - - -
 


CODE
 
varsearch1:Searchcrite ria = newSearchcriteria( );varsearch2:Searchcrite ria = 
newSearchcriteria( );var
search1.criteria1 = 
search1.criteria2 = 
search1.criteria3 = 
search1.criteria4 = 
search2.criteria1 = 
search2.criteria2 = 
search2.criteria3 = 
search2.criteria4 = 
search3.criteria1 = 
search3.criteria2 = 
search3.criteria3 = 
search3.criteria4 = 
 search3:Searchcrite ria = newSearchcriteria( 
);"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";
 
varcriterialist: Array = [search1,search2, search3,search4, search5];
ws.GetAdvancedSearc hListDept("param1","param2","param3",criterialist,"param5");
ws.GetAdvancedSearc hListDept. addEventListener (ResultEvent. RESULT, 
resultSearchHandler ) ;

//search1, 2 3 4 5 are of type searchCriteria:

publicclassSearchcriteriaprivatevarcriteria1:String;privatevarcriteria2:String;privatevarcriteria3:String;publicfunctionSearchcriteria(
 )publicfunctiongetCriteria1() : String { returnthis.criteria1; 
}publicfunctionsetCriteria1(criteria1 : String) : void{ this.criteria1 = 
criteria1; } publicfunctiongetCriteria2() : String { returnthis.criteria2; 
}publicfunctionsetCriteria2(criteria2 : String) : void{ this.criteria2 = 
criteria2; } publicfunctiongetCriteria3() : String { returnthis.criteria3; 
}publicfunctionsetCriteria3(criteria3 : String) : void{ this.criteria3 = 
criteria3; }
{
{
}}


When I look at what is being sent to the service I see this for the 
criterialist param, they are not expanded...
All other params are passed ok as they are simple strings...
 
SENT SOAP snippet
tns:criterialist
"http:mysite/ 
schema"/>"http:mysite/ schema"/>"http:mysite/ schema"/>






From: Tracy Spratt 
To: flexcod...@yahoogro ups..com
Sent: Monday, February 9, 2009 11:55:42 AM
Subject: RE: [flexcoders] Webservice with Dynamic request?


What are the input parameters of the operation “SearchParams”?  What data 
types?  Does it have a single argument of type array that that contains an 
array  of “searchcriteria” objects, which have the three search specification 
values? 
 
The request object is a dynamic “Object”, not xml. build it something like this:
Var oRequest:Object = new Object();
oRequest.criteriali st = buildSearchCriteria Array()
webService.SearchPa rams.request = oRequest;
 
Be sure to remove the declarative mx:request tag.
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of thibodeau.alain
Sent: Monday, February 09, 2009 10:30 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Webservice with Dynamic request?
 
Hi All,

I am not sure how to go about this and couldn't find a sample 
anywhereI am trying to consume a webservice that contains dynamic 
request data. Meaning that my request will change depending on what 
the user has entered... I've always used services that had the same 
request params, but in this case they change...

I tried building out in AS my request like this:

webService.SearchPa rams.request 
= "  string< /title> string string";

And I have been staring at the request tag not knowing how to make 
it "loop"







string< /title>
string< /item>
string< /criteria>




 
 

I hope it's clear what I am trying to accomplish and that someone can 
point me in the correct direction...

thank-you!




  

Re: [flexcoders] Re: Module Issue....

2009-02-18 Thread Eric Dunn
Good eye, 
The ! seen below is only in the code here in the email, it is not present in 
the actual code in Flex... 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 

- Original Message - 
From: "Mayur"  
To: flexcoders@yahoogroups.com 
Sent: Wednesday, February 18, 2009 11:31:05 AM GMT -06:00 US/Canada Central 
Subject: [flexcoders] Re: Module Issue 







Eric, 

there is error in you code, 
in closing Tag of  

Rectify it may solve your problem. 

--- In flexcoders@yahoogroups.com , Eric Dunn  wrote: 
> 
> I am a newbie and not sure what type of listeners you mean... 
> 
> The thing that stands out the most for me is the Module swf file is 
never compiled I moved both the main mxl and module mxl into the 
root to insure they are where they aught to be... 
> 
> Have any ideas as to why the module is not compiled? 
> 
> Eric W Dunn 
> Adaption Technologies 
> 281-465-3326 
> ed...@... 
> 
> - Original Message - 
> From: "Alex Harui"  
> To: flexcoders@yahoogroups.com 
> Sent: Tuesday, February 17, 2009 5:14:13 PM GMT -06:00 US/Canada 
Central 
> Subject: RE: [flexcoders] Module Issue 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Make sure the SWF is where you think it is. Other than that, looks 
ok. Attach listeners to events and see what’s happening. 
> 
> 
> 
> 
> Alex Harui 
> 
> Flex SDK Developer 
> 
> Adobe Systems Inc. 
> 
> Blog: http://blogs.adobe.com/aharui 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] 
On Behalf Of Eric Dunn 
> Sent: Tuesday, February 17, 2009 10:48 AM 
> To: flexcoders 
> Subject: [flexcoders] Module Issue 
> 
> 
> 
> 
> 
> 
> 
> I have done this twice before and apparently I am forgetting 
something.. 
> 1) Create a main app with add a ModuleLoader and a button to load 
module. 
> 2) Create Module - added some text field to display data.. 
> 3) Run app and click button to load module.. 
> I click the button and nothing happens... 
> 
> What have I forgotten to do? Am I not importing something I need to 
declaring something? I have looked at the other code and don't see any 
difference other than lots more stuff... 
> 
>  
> http://www.adobe.com/2006/mxml " 
layout="absolute"> 
>  
>  
>  
>  
>  
>  
>  
>  
> 
>  
> http://www.adobe.com/2006/mxml " 
layout="absolute" width="400" height="300"> 
>  
>  
>  
>  
> 
> 
> 
> 
> Eric W Dunn 
> Adaption Technologies! 
> 281- 465-3326 
> ed...@... 
> 




RE: [flexcoders] Desperate Help! crossdomain.xml

2009-02-18 Thread Tracy Spratt
You are missing the most important part:



 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Wednesday, February 18, 2009 10:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Desperate Help! crossdomain.xml

 

I have a site (http://www2.med.umich.edu/prmc/af/) that had an old
crossdomain.xml file that worked fine until FP10. It works fine when
visiting from that URL since it on the same server, however, we also
have this domain (http://www.victorsvaliant.org/af/) pointing to it also
and I get a security error when the video is played. How can I modifiy
my crossdomain.xml file to allow for both? Here is my current. I need to
have this done today since the new URL went public. Thanks!


http://www.adobe.com/xml/dtds/cross-domain-policy.dtd";>








RE: [flexcoders] Re: parse SOAP response for values

2009-02-18 Thread Tracy Spratt
Unless your xml is very simple, you should not guess at the e4x
expession, but rather work your way to the node you want by using
temporary variables and tracing the results as you go.

 

To do this you must use a resultHandler, and do not use lastResult.
Start with something like:

private function handleResult(event:ResultEvent):void

var xmlResult:XML = XML(event.result)

trace(xmlResult.toXMLString());  //CRITICAL step, verify your structure

 

Then get the next node in the path you want, trace again, etc.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of m_ollman
Sent: Wednesday, February 18, 2009 4:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: parse SOAP response for values

 

Tracy :-)

Thought about the namespace issue - some examples where talking about
the SOAP Header being removed automatically, I was'nt seeing that. The
reult format is E4X. However I could not get into the structure using
childNode etc.

So I would start by defining the namespace it.

http://ruleburst.com/ruleserver/9.1/rulebase/types
 

in AS 

public var typ:Namespace =
new
Namespace("http://ruleburst.com/ruleserver/9.1/rulebase/types
 ");

Next step I'm not sure about the path to the attribute.

WS.Assess.lastResult.typ::session-data.global.global_1.abc570.

WS.Assess.lastResult.typ::assess-response.session-data.list-entity.entit
y.abc570

Will test in the morning when back at desk. Rushed out so fast I left
my USB! doh

Cheers
martin

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt"  wrote:
>
> One big hassle with SOAP is the namespaces. Once you get that
straight,
> you can use normal e4x expressions on it. 
> 
> 
> 
> Where are you having difficulty?
> 
> 
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of m_ollman
> Sent: Wednesday, February 18, 2009 12:38 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] parse SOAP response for values
> 
> 
> 
> I have been looking around for a few hours - Flex Cookbook has some
> info about mapping types. But no real method of getting into the
> structure.
> 
> I need to grab the value of an attribute - abc570, which will be EOPO
> + 4 other attributes.
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
 
>  > " 
> 
> xmlns:typ="http://ruleburst.com/ruleserver/9.1/rulebase/types
 
>  > ">
> 
> 
> 
> 
> 
> 
> 
> 
> EOPO
> 
> 
> ** ETC - 4 more vales **
> 
> 
> 
> 
> 
> 
> 
> 
> Handler is 
> 
> private function RBcompleteHandler(event:Event) : void
> {
> 
> var dataXML:XML = XML(event.target.data);
> }
> 
> any help much appreciated
> 
> rgds
> martin
>





[flexcoders] Re: HTML Text Scrollbars not showing up

2009-02-18 Thread anandjha110
Hello danvega!
Try to use TextArea Component instead of Text component...

--Kumar



Re: [flexcoders] HTML Text Scrollbars not showing up

2009-02-18 Thread Anand Jha
Hello!
Instead of using Text component, use TextArea component. May be, you have to 
define the width and height of the text area.





From: Dan Vega 
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 18, 2009 11:50:53 AM
Subject: [flexcoders] HTML Text Scrollbars not showing up


I have this popup window that gets created in the main application. When it is 
created its given a size of 500/250. There is more content then what is show 
but I don't see any scrollbars. I tried setting the verticalScrollPolic y to 
true but it just seems like it doesnt calculate the html text correctly. What 
am I doing wrong here.


http://www.adobe. com/2006/ mxml" 
layout="vertical" showCloseButton="true" close="closeWindow( )">
















Thank You
Dan Vega
danv...@gmail. com
http://www.danvega. org

   


  

[flexcoders] Component needed: A Combobox that has selectable items with checkboxes

2009-02-18 Thread huu...@ymail.com
I was about to begin creating a Combobox component that would allow
the user to select multiple items via checkboxes next to each item. 
However, I didn't want to reinvent the wheel in case someone else had
already dreamed this up.

With that being said, has anyone seen this type of component?  If so,
can you provide a download link?



[flexcoders] Re: HTML editor for Flex Builder 3?

2009-02-18 Thread Mayur

Hi Go to Flex Builder -> windows -> install / update... -> here you
can select " Europa Discovery site " ->  

and press " Finish " ( select automatic choose mirrors.. not
compulasry but recommended )

On next screen Search Results an Europa Discovery Site...
Expand and select your required stuffs only.

Now, the twist ...  system may show you some red(erroneous message )
don't worry just finish selection of  your required stuffs(options)
and then click on " Select Required " button on right side.

then Next... and Finish...

Woi... its done. :)


--- In flexcoders@yahoogroups.com, "huu...@..."  wrote:
>
> Sam, how do I select a Europa-only update site?
> 
> I added this URL (http://download.eclipse.org/webtools/updates/), but
> I'm confused about how to select a Europa-compatible update.
> 
> --- In flexcoders@yahoogroups.com, Sam Lai  wrote:
> >
> > That's definitely an option - go to Help -> Software Updates -> Find
> > and Install. At least select the Europa Discovery Site when prompted
> > for update sites. Click next and that should give you a list of things
> > to pick to install. The names are pretty cryptic, and the descriptions
> > aren't descriptions, but I think the Web Standard Tools should give
> > you want you need.
> > 
> > This way lets you be even more picky about what to install, and what
> > not to (e.g. if you don't need PHP support).
> > 
> > 2009/2/18 Jeffry Houser :
> > >
> > >  What's the difference between the two options?
> > >  And/or why wouldn't you be able to install PDT as a plugin to Flex
> > > Builder?   (Instructions for that seem to be here:
> > > http://wiki.eclipse.org/PDT/Installation#From_Update_Site )
> > >
> > >  Whether good or bad, I do most of my HTML editing in CFEclipse
> which is
> > > designed for ColdFusion / CFML.
> > >
> > > huuuze@ wrote:
> > >
> > > Thanks Alan.  I appreciate the response.  Unfortunately, I'd
prefer to
> > > use Flex Builder stand-alone and augment it via plugins rather than
> > > download Eclipse and augment it with the Flex Builder plugin.
> > >
> > > Any other suggestions?
> > >
> > > --- In flexcoders@yahoogroups.com, Alan K  wrote:
> > >
> > >
> > > Download Eclipse PDT and install Flex Builder as a Plug ­in.
> > >
> > > You will have code hinting and debugging for HTML, XML, PHP as well
> > >
> > >
> > > as other
> > >
> > >
> > > nifty stuff.
> > >
> > > http://www.eclipse.org/pdt/release-notes/pdt2_0.php
> > >
> > >
> > >
> > > Alan
> > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > >
>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Jeffry Houser, Technical Entrepreneur
> > > Adobe Community Expert: http://tinyurl.com/684b5h
> > > http://www.twitter.com/reboog711  | Phone: 203-379-0773
> > > --
> > > Easy to use Interface Components for Flex Developers
> > > http://www.flextras.com?c=104
> > > --
> > > http://www.theflexshow.com
> > > http://www.jeffryhouser.com
> > > --
> > > Part of the DotComIt Brain Trust
> > >
> > >
> >
>




RE: [flexcoders] How to stop Flex from compiling my Java source files

2009-02-18 Thread Ryan Graham

> Java source files are in C:\Tomcat5\webapps\FlexApp\WEB-INF\src. When
> I build my Flex application, it tries to recompile the Java source
> files. Is there a way I can tell Flex Builder to leave my Java source
> files alone? It's causing me servlet errors.

 

Switch to ANT for more granular builds?

 

HTH,

Ryan

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Re: Module Issue....

2009-02-18 Thread Mayur

Eric,

there is error in you code,
in closing Tag of 

Rectify it may solve your problem.


--- In flexcoders@yahoogroups.com, Eric Dunn  wrote:
>
> I am a newbie and not sure what type of listeners you mean... 
> 
> The thing that stands out the most for me is the Module swf file is
never compiled I moved both the main mxl and module mxl into the
root to insure they are where they aught to be... 
> 
> Have any ideas as to why the module is not compiled? 
> 
> Eric W Dunn 
> Adaption Technologies 
> 281-465-3326 
> ed...@... 
> 
> - Original Message - 
> From: "Alex Harui"  
> To: flexcoders@yahoogroups.com 
> Sent: Tuesday, February 17, 2009 5:14:13 PM GMT -06:00 US/Canada
Central 
> Subject: RE: [flexcoders] Module Issue 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Make sure the SWF is where you think it is. Other than that, looks
ok. Attach listeners to events and see what’s happening. 
> 
> 
> 
> 
> Alex Harui 
> 
> Flex SDK Developer 
> 
> Adobe Systems Inc. 
> 
> Blog: http://blogs.adobe.com/aharui 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of Eric Dunn 
> Sent: Tuesday, February 17, 2009 10:48 AM 
> To: flexcoders 
> Subject: [flexcoders] Module Issue 
> 
> 
> 
> 
> 
> 
> 
> I have done this twice before and apparently I am forgetting
something.. 
> 1) Create a main app with add a ModuleLoader and a button to load
module. 
> 2) Create Module - added some text field to display data.. 
> 3) Run app and click button to load module.. 
> I click the button and nothing happens... 
> 
> What have I forgotten to do? Am I not importing something I need to
declaring something? I have looked at the other code and don't see any
difference other than lots more stuff... 
> 
>  
> http://www.adobe.com/2006/mxml";
layout="absolute"> 
>  
>  
>  
>  
>  
>  
>  
>  
> 
>  
> http://www.adobe.com/2006/mxml";
layout="absolute" width="400" height="300"> 
>  
>  
>  
>  
> 
> 
> 
> 
> Eric W Dunn 
> Adaption Technologies! 
> 281- 465-3326 
> ed...@...
>




Re: [flexcoders] Re: Can I use mouseOver() an image in ActionScript

2009-02-18 Thread Jeffry Houser


Generically, I'd start by seeing if I could write an event handler on 
the DataGrid that drills down the itemRenderer and executes a method.  
Pass in the X, Y coordinates so you can figure out which image has the 
roll-over. 


yossi.baram wrote:

hi,
Please advise.
I realy need to know if I can catch the event when I hoover over the 
cells of the datagrid
and what is the function I should override in my AS to allow me do 
that?

Thanks again




--- In flexcoders@yahoogroups.com, "yossi.baram"  
wrote:
  

Hi,
this is rather complicated.
I have a DataGrid, in one of its column I call an ItemRenderer that 
creates a list of colored images side by side.
All I need is to catch the event when I hover over every inner cell 
image (remember, in a cell I have few images, each one should fire 
different event).

How do I trigger a function in my renderer?

My ActionScript renderer:
package
{

import mx.collections.ArrayCollection;
import mx.containers.HBox;
import mx.controls.Image;
import mx.controls.Alert;

	public class imageRenderer extends HBox 
	{ 			

public function imageRenderer():void{
super();
this.setStyle("paddingBottom",1);
this.setStyle("paddingTop",1);
this.setStyle("horizontalGap",1);

}
			 
// Here I create the colored images I place in HBox in the cell


 override public function set data(value:Object):void {

   if (value != null)
{
removeAllChildren();
for (var i:int = 0; i < value.Actual.length; i++){
		  var img:Image = new Image();  
		  img.source = value.Actual[i].image;  
		  img.id = "image - " +i;
		  img.height = 20;  
	//	  img.toolTip=value.Actual[i].width;

  img.percentWidth=value.Actual[i].width;   
  img.maintainAspectRatio=false;
  addChild(img);
		} 
	  }

}   
}
}

I dont want to use flex tooltip, I need to place my own and for 

that 
  

I need an event for each of the images seperatly.

Thanks for the help

Jo

--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:

 What problems did you have trying to accomplish this? 

 Without testing anything, I would expect the DataGrid 
  
to 'capture' 
  
the 

mouseOver event as opposed to the itemRenderer component.  So, 
  
I'd 
  
expect you'd need some way to trigger a function in the renderer 
  
based 

on the DataGrid mouseOver . 

 But, this is just my first guess. 


yossi.baram wrote:
  

Hi,
I have some images in a DataGrid cells and I need to chatch the 

event 


when I hover on them.
The images are created in an ItemRenderer AC, so it has to be 

done 


there, raising an Alert for example.

Thanks
  


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust

  







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links




  


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: HTML editor for Flex Builder 3?

2009-02-18 Thread huu...@ymail.com
Sam, how do I select a Europa-only update site?

I added this URL (http://download.eclipse.org/webtools/updates/), but
I'm confused about how to select a Europa-compatible update.

--- In flexcoders@yahoogroups.com, Sam Lai  wrote:
>
> That's definitely an option - go to Help -> Software Updates -> Find
> and Install. At least select the Europa Discovery Site when prompted
> for update sites. Click next and that should give you a list of things
> to pick to install. The names are pretty cryptic, and the descriptions
> aren't descriptions, but I think the Web Standard Tools should give
> you want you need.
> 
> This way lets you be even more picky about what to install, and what
> not to (e.g. if you don't need PHP support).
> 
> 2009/2/18 Jeffry Houser :
> >
> >  What's the difference between the two options?
> >  And/or why wouldn't you be able to install PDT as a plugin to Flex
> > Builder?   (Instructions for that seem to be here:
> > http://wiki.eclipse.org/PDT/Installation#From_Update_Site )
> >
> >  Whether good or bad, I do most of my HTML editing in CFEclipse
which is
> > designed for ColdFusion / CFML.
> >
> > huu...@... wrote:
> >
> > Thanks Alan.  I appreciate the response.  Unfortunately, I'd prefer to
> > use Flex Builder stand-alone and augment it via plugins rather than
> > download Eclipse and augment it with the Flex Builder plugin.
> >
> > Any other suggestions?
> >
> > --- In flexcoders@yahoogroups.com, Alan K  wrote:
> >
> >
> > Download Eclipse PDT and install Flex Builder as a Plug ­in.
> >
> > You will have code hinting and debugging for HTML, XML, PHP as well
> >
> >
> > as other
> >
> >
> > nifty stuff.
> >
> > http://www.eclipse.org/pdt/release-notes/pdt2_0.php
> >
> >
> >
> > Alan
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> >
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups Links
> >
> >
> >
> >
> >
> >
> > --
> > Jeffry Houser, Technical Entrepreneur
> > Adobe Community Expert: http://tinyurl.com/684b5h
> > http://www.twitter.com/reboog711  | Phone: 203-379-0773
> > --
> > Easy to use Interface Components for Flex Developers
> > http://www.flextras.com?c=104
> > --
> > http://www.theflexshow.com
> > http://www.jeffryhouser.com
> > --
> > Part of the DotComIt Brain Trust
> >
> >
>




[flexcoders] Re: Interacting from outside local sandbox to java server

2009-02-18 Thread Jeremi Bergman
Here is the modified Java method:

private void startServer(int port) {
System.out.println(">> Starting PDFPrintServer");

String policy_file = "";
policy_file += "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\";>";
policy_file += "";
policy_file += "";
policy_file += "\";";

try {
System.out.println(">> Starting SimpleServer");
try {
socket = new ServerSocket(port);
while (true) {
System.out.println(">> Waiting for 
socket connection");
incoming = socket.accept();
System.out
.println(">> We're 
connected!  Waiting for input");
readerIn = new BufferedReader(new 
InputStreamReader(

incoming.getInputStream()));
printOut = new 
PrintStream(incoming.getOutputStream());
String request = 
readerIn.readLine().trim();
System.out.println(">> Input " + 
request);

if (request.substring(1, 20).compareTo(
"policy-file-request") 
== 0) {
System.out.println(">> Sending 
Policy Information");
printOut.println(policy_file + 
"\r");
} else {
String[] data = 
request.split("%");
if (data[0].compareTo("print") 
== 0) {
System.out.println(">> 
Printing file " + data[1]);
String pdf_path = 
this.DownloadFile(data[1]);
System.out.println(">> 
Pdf Temp file: " + pdf_path);
this.PrintPDF(pdf_path);
}
}

incoming.close();
}
} catch (Exception e) {
System.out.println(e);
}

} catch (Exception e) {
System.out.println(e);
}

}

Here, I'm sending it directly after the request then closing the
connection.  My impression was that Flex would open another connection
immediately afterward and send the original request.

Thoughts?



[flexcoders] HTML Text Scrollbars not showing up

2009-02-18 Thread Dan Vega
I have this popup window that gets created in the main application. When it
is created its given a size of 500/250. There is more content then what is
show but I don't see any scrollbars. I tried setting the
verticalScrollPolicy to true but it just seems like it doesnt calculate the
html text correctly. What am I doing wrong here.


http://www.adobe.com/2006/mxml";
layout="vertical" showCloseButton="true" close="closeWindow()">
















Thank You
Dan Vega
danv...@gmail.com
http://www.danvega.org


[flexcoders] Re: Can I use mouseOver() an image in ActionScript

2009-02-18 Thread yossi.baram
hi,
Please advise.
I realy need to know if I can catch the event when I hoover over the 
cells of the datagrid
and what is the function I should override in my AS to allow me do 
that?
Thanks again




--- In flexcoders@yahoogroups.com, "yossi.baram"  
wrote:
>
> Hi,
> this is rather complicated.
> I have a DataGrid, in one of its column I call an ItemRenderer that 
> creates a list of colored images side by side.
> All I need is to catch the event when I hover over every inner cell 
> image (remember, in a cell I have few images, each one should fire 
> different event).
> How do I trigger a function in my renderer?
> 
> My ActionScript renderer:
> package
> {
> 
>   import mx.collections.ArrayCollection;
>   import mx.containers.HBox;
>   import mx.controls.Image;
>   import mx.controls.Alert;
> 
>   public class imageRenderer extends HBox 
>   {   
>   public function imageRenderer():void{
>   super();
>   this.setStyle("paddingBottom",1);
>   this.setStyle("paddingTop",1);
>   this.setStyle("horizontalGap",1);
> 
>   }
>
> // Here I create the colored images I place in HBox in the cell
>   
>  override public function set data(value:Object):void {
>   
>  if (value != null)
>   {
>   removeAllChildren();
>   for (var i:int = 0; i < value.Actual.length; i++){
> var img:Image = new Image();  
> img.source = value.Actual[i].image;  
> img.id = "image - " +i;
> img.height = 20;  
>   //img.toolTip=value.Actual[i].width;
> img.percentWidth=value.Actual[i].width;   
> img.maintainAspectRatio=false;
>   addChild(img);  
>   } 
> }
>   }   
> }
> }
> 
> I dont want to use flex tooltip, I need to place my own and for 
that 
> I need an event for each of the images seperatly.
> 
> Thanks for the help
> 
> Jo
> 
> --- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
> >
> > 
> >  What problems did you have trying to accomplish this? 
> > 
> >  Without testing anything, I would expect the DataGrid 
to 'capture' 
> the 
> > mouseOver event as opposed to the itemRenderer component.  So, 
I'd 
> > expect you'd need some way to trigger a function in the renderer 
> based 
> > on the DataGrid mouseOver . 
> > 
> >  But, this is just my first guess. 
> > 
> > yossi.baram wrote:
> > > Hi,
> > > I have some images in a DataGrid cells and I need to chatch the 
> event 
> > > when I hover on them.
> > > The images are created in an ItemRenderer AC, so it has to be 
> done 
> > > there, raising an Alert for example.
> > >
> > > Thanks
> > >   
> > 
> > 
> > -- 
> > Jeffry Houser, Technical Entrepreneur
> > Adobe Community Expert: http://tinyurl.com/684b5h
> > http://www.twitter.com/reboog711  | Phone: 203-379-0773
> > --
> > Easy to use Interface Components for Flex Developers
> > http://www.flextras.com?c=104
> > --
> > http://www.theflexshow.com
> > http://www.jeffryhouser.com
> > --
> > Part of the DotComIt Brain Trust
> >
>




Re: [flexcoders] Webservice with Dynamic request?

2009-02-18 Thread Alain Thibodeau
Thank-you but I am still a little unclear as to how this actually works.
>From what I gather all I need to do is pass an array and flex will serialize 
>it...

I've tried passing an array of objects, I've simplified my test case, below is 
the code:

can anyone please help me figure out what I am doing wrong?

thanks in advance


 


CODE
 
varsearch1:Searchcriteria = newSearchcriteria();varsearch2:Searchcriteria = 
newSearchcriteria();var
search1.criteria1 = 
search1.criteria2 = 
search1.criteria3 = 
search1.criteria4 = 
search2.criteria1 = 
search2.criteria2 = 
search2.criteria3 = 
search2.criteria4 = 
search3.criteria1 = 
search3.criteria2 = 
search3.criteria3 = 
search3.criteria4 = 
 search3:Searchcriteria = 
newSearchcriteria();"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";
 
varcriterialist:Array = 
[search1,search2,search3,search4,search5];"param1","param2","param3",criterialist,"param5");
ws.GetAdvancedSearchListDept(
ws.GetAdvancedSearchListDept.addEventListener(ResultEvent.RESULT, 
resultSearchHandler) ;

//search1, 2 3 4 5 are of type searchCriteria:

publicclassSearchcriteriaprivatevarcriteria1:String;privatevarcriteria2:String;privatevarcriteria3:String;publicfunctionSearchcriteria()publicfunctiongetCriteria1()
 : String { returnthis.criteria1; }publicfunctionsetCriteria1(criteria1 : 
String) : void{ this.criteria1 = criteria1; } publicfunctiongetCriteria2() : 
String { returnthis.criteria2; }publicfunctionsetCriteria2(criteria2: String) : 
void{ this.criteria2 = criteria2; } publicfunctiongetCriteria3() : String { 
returnthis.criteria3; }publicfunctionsetCriteria3(criteria3 : String) : void{ 
this.criteria3 = criteria3; }
{
{
}}


When I look at what is being sent to the service I see this for the 
criterialist param, they are not expanded...
All other params are passed ok as they are simple strings...
 
SENT SOAP snippet
tns:criterialist
"http:mysite/schema"/>"http:mysite/schema"/>"http:mysite/schema"/>






From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Monday, February 9, 2009 11:55:42 AM
Subject: RE: [flexcoders] Webservice with Dynamic request?


What are the input parameters of the operation “SearchParams”?  What data 
types?  Does it have a single argument of type array that that contains an 
array  of “searchcriteria” objects, which have the three search specification 
values? 
 
The request object is a dynamic “Object”, not xml. build it something like this:
Var oRequest:Object = new Object();
oRequest.criteriali st = buildSearchCriteria Array()
webService.SearchPa rams.request = oRequest;
 
Be sure to remove the declarative mx:request tag.
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of thibodeau.alain
Sent: Monday, February 09, 2009 10:30 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Webservice with Dynamic request?
 
Hi All,

I am not sure how to go about this and couldn't find a sample 
anywhere...I am trying to consume a webservice that contains dynamic 
request data. Meaning that my request will change depending on what 
the user has entered... I've always used services that had the same 
request params, but in this case they change...

I tried building out in AS my request like this:

webService.SearchPa rams.request 
= "  string< /title> string string";

And I have been staring at the request tag not knowing how to make 
it "loop"







string< /title>
string< /item>
string< /criteria>




 
 

I hope it's clear what I am trying to accomplish and that someone can 
point me in the correct direction...

thank-you!



  

Re: [flexcoders] Unicode Normalization in flex

2009-02-18 Thread Sreejith P
This problem happens only when you have an applet which gives you file name
or any file system specific parameters.

See http://lists.apple.com/archives/java-dev/2006/Sep/msg00170.html for more
information

Thanks,
Sreejith

On Wed, Feb 18, 2009 at 9:02 PM, Alan K  wrote:

>I don't know anything about the technologies you were referring to, but
> I created a Flex app on OSX and I had 15 different languages displayed.
>  German being one of them.  I had no problems.
>
> I just set the app to use Arial MS Unicode.
>
> Alan
>
> >Because of this issue my i was not able to display the German
> >characters properly on my flex application.S
>
>
>   
>



-- 
Thanks and Regards

Sreejith P
CS 03~07


[flexcoders] Flex Remote object call - in vmware

2009-02-18 Thread Netaman
Has anyone ran into the problem of Flex remote object call working for 
about 10 minutes and then failing on all the channels. 

The setup is a IIS 6.0 server front-end facing the Internet and the 
private network on a virtual host (vmware), and Cold Fusion 8 back-end, 
with Flex 3 application making remote calls through CF to SQL server 
2005. All servers are in a vmware environment.

Randy



Re: [flexcoders] Desperate Help! crossdomain.xml

2009-02-18 Thread Jeffry Houser


Does this help? 


http://www.jeffryhouser.com/index.cfm/2008/8/12/Fixing-your-CrossDomainxml-File

Or the source article:
http://www.adobe.com/go/strict_policy_files

Wally Kolcz wrote:
I have a site (http://www2.med.umich.edu/prmc/af/) that had an old 
crossdomain.xml file that worked fine until FP10. It works fine when 
visiting from that URL since it on the same server, however, we also 
have this domain (http://www.victorsvaliant.org/af/) pointing to it 
also and I get a security error when the video is played. How can I 
modifiy my crossdomain.xml file to allow for both? Here is my current. 
I need to have this done today since the new URL went public. Thanks!



"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd";>









--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Module Issue....

2009-02-18 Thread Eric Dunn
I am a newbie and not sure what type of listeners you mean... 

The thing that stands out the most for me is the Module swf file is never 
compiled I moved both the main mxl and module mxl into the root to insure 
they are where they aught to be... 

Have any ideas as to why the module is not compiled? 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 

- Original Message - 
From: "Alex Harui"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, February 17, 2009 5:14:13 PM GMT -06:00 US/Canada Central 
Subject: RE: [flexcoders] Module Issue 









Make sure the SWF is where you think it is. Other than that, looks ok. Attach 
listeners to events and see what’s happening. 




Alex Harui 

Flex SDK Developer 

Adobe Systems Inc. 

Blog: http://blogs.adobe.com/aharui 





From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Eric Dunn 
Sent: Tuesday, February 17, 2009 10:48 AM 
To: flexcoders 
Subject: [flexcoders] Module Issue 







I have done this twice before and apparently I am forgetting something.. 
1) Create a main app with add a ModuleLoader and a button to load module. 
2) Create Module - added some text field to display data.. 
3) Run app and click button to load module.. 
I click the button and nothing happens... 

What have I forgotten to do? Am I not importing something I need to declaring 
something? I have looked at the other code and don't see any difference other 
than lots more stuff... 

 
http://www.adobe.com/2006/mxml"; layout="absolute"> 
 
 
 
 
 
 
 
 

 
http://www.adobe.com/2006/mxml"; layout="absolute" 
width="400" height="300"> 
 
 
 
 




Eric W Dunn 
Adaption Technologies! 
281- 465-3326 
ed...@adpt-tech.com 







[flexcoders] Object to XMLString

2009-02-18 Thread ilikeflex
Hi

I have car object as shown below. I am using custom toXMLString()
method to convert the object into the xml representation. In the
method i am using the ObjetUtil.getClassInfo(this). The output of the
toXMLString method varies sometimes it is 
1.

   8
   8
   6
   9


2.

   6
   9
   8
   8


I want to have the fix order of the nodes as I like. How can we
achieve this???.
I know this can be done but i do not know how Any pointers

class Car
{
  public var tyre:
  public var color;
  public var light;
  public var mirror:

   public function toXMLString():String
   {
   var xmlString:String="";
   var details:Object = ObjectUtil.getClassInfo(this);
   var properties:Array = details.properties;

   for each(var qName:QName in properties)
   {
   if ( StringUtil.trim(this [ qName.localName ]).length > 0 )
xmlString = xmlString + "<" + 
qName.localName + ">" + this [
qName.localName ] + "";
   }
   
xmlString = xmlString + ""; 
 

   }

}

Thanks
ilikeflex



Re: [flexcoders] Unicode Normalization in flex

2009-02-18 Thread Alan K
I don¹t know anything about the technologies you were referring to, but I
created a Flex app on OSX and I had 15 different languages displayed.
German being one of them.  I had no problems.

I just set the app to use Arial MS Unicode.

Alan

>Because of this issue my i was not able to display the German
>characters properly on my flex application.S





[flexcoders] Re: Dynamically changing Vslider or Hslider?

2009-02-18 Thread flexaustin
I guess maybe I should use Programaticaly rather than dynamically. 
The entire issue lies in the change event. If I rely on it then I end
up in a continous loop or rather just a loop, meaning if I change the
Vscale via my component by scaling it, I have to change the
Vslider.value, which ends up throwing the "change" event, which tells
my component to update. So each side is stepping on the toes of each
other overwriting the changes when scaling on component side nothing
happens when I try to scale as Vslider keeps setting the value back.

My work around for now is to not update the slider until the component
zoom is done.  Had to give up realtime update to the Vslider. Vslider
is updated now only on mouseup not on mousemove.



--- In flexcoders@yahoogroups.com, "flexaustin"  wrote:
>
> I seem to be having issues altering the vslider via code.  I am using
> the change event thrown by the Vslider to dispatch my own event like so
> 
> this.dispatchEvent( event );
> 
> So anytime someone changes the Vslider value it throws an event and my
> components scales in size.
> 
> But my component has the ability to change its own size using mouse +
> keyboard controls.  So when this happens I then need to tell the
> Vslider to change its value to match the components new size.  So I do
> that via function like so
> 
> mySlider.value = newVal;
> 
> This seems to work nine times out of ten, but if my Vslider is a 4.5
> (my Vslider can go btwn .25 and 5) then I scale the component to 5
> then click on the Vslider to scale down to .25 the change event isn't
> ever thrown via the Vslider though the slider thumb moves to where I
> clicked on the Vslider.
>




[flexcoders] Desperate Help! crossdomain.xml

2009-02-18 Thread Wally Kolcz
I have a site (http://www2.med.umich.edu/prmc/af/) that had an old 
crossdomain.xml file that worked fine until FP10. It works fine when visiting 
from that URL since it on the same server, however, we also have this domain 
(http://www.victorsvaliant.org/af/) pointing to it also and I get a security 
error when the video is played. How can I modifiy my crossdomain.xml file to 
allow for both? Here is my current. I need to have this done today since the 
new URL went public. Thanks!


http://www.adobe.com/xml/dtds/cross-domain-policy.dtd";>






[flexcoders] Re: Time stamping a user Logout

2009-02-18 Thread grg_blls
Hi Laurent.
Thank you for a quick reply. I had this (second) timeout option in 
mind and it's too static in the scope of my application. Then the 
ping procedure might be an idea. 
But what I have really in mind is a more dynamic asynchronous 
procedure. One like when the web connection is broken for any reason. 
I will have to delve more into this...

Thank you
George 

--- In flexcoders@yahoogroups.com, Laurent Cozic  
wrote:
>
> You could make the app ping the server every 5 minutes. Then if the 
server doesn't receive the ping, assume that the user closed the 
browser and log him out.
> 
> Another simpler solution would be to put a timeout on the session.
> 
> 
> --
> Laurent Cozic
> 
> Flash, Flex and Web Application development
> http://pogopixels.com
> 
> --- On Wed, 2/18/09, grg_blls  wrote:
> From: grg_blls 
> Subject: [flexcoders] Time stamping a user Logout
> To: flexcoders@yahoogroups.com
> Date: Wednesday, February 18, 2009, 1:18 PM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> 
> 
> I have concluded a sample Flex application where a user logs in (or 
> 
> registers) in the application. 
> 
> 
> 
> I use the Tomcat servlet container plus BlazeDS RPC component and 
> 
> Hibernate persistence to connect to MySQL database. 
> 
> 
> 
> A new user first registers by filling the Registration form. The 
> 
> database is updated for First Creation Timestamp, along with user's 
> 
> UserName and Password. 
> 
> 
> 
> A returning user fills a (similar) Login form. The database is 
> 
> updated for Login Timestamp. When the user does a normal Logout, 
the 
> 
> database is updated with Logout Timestamp. On User's Logout the 
> 
> User_Loged session time is summed in UserTotalLoged time.
> 
> 
> 
> My problem is that I need dispatch/listen (?) an event in an abrupt 
> 
> case, like the user instead of doing a normal logout simply closes 
> 
> the browser, or the client/server connection is just lost. Then I 
> 
> have to update the database that the user status is Logout. 
> 
> 
> 
> I hope this description is clear enough for some indications/ help.
> 
> 
> 
> Thank you all
> 
> George
>




Re: [flexcoders] UNDO function

2009-02-18 Thread Fotis Chatzinikos
How do you draw on the canvas?

What you should do is to add draw commands on a list, the loop this list and
draw on the canvas.

When a user presses undo, you remove the last command from the list and
redraw

On Wed, Feb 18, 2009 at 10:36 AM, appuatchi  wrote:

>   Hello every1,
> Im working in a project which deals with an application to be
> developed in FLEX. There is a canvas on which im able to draw on it.
> Now, I should implement an UNDO function which can UNDO the previous
> drawings. I tried in many ways but was in vain. Can anyone help me out
> with this...
>
> Pradeep
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] Re: Can I use mouseOver() an image in ActionScript

2009-02-18 Thread yossi.baram
Hi,
this is rather complicated.
I have a DataGrid, in one of its column I call an ItemRenderer that 
creates a list of colored images side by side.
All I need is to catch the event when I hover over every inner cell 
image (remember, in a cell I have few images, each one should fire 
different event).
How do I trigger a function in my renderer?

My ActionScript renderer:
package
{

import mx.collections.ArrayCollection;
import mx.containers.HBox;
import mx.controls.Image;
import mx.controls.Alert;

public class imageRenderer extends HBox 
{   
public function imageRenderer():void{
super();
this.setStyle("paddingBottom",1);
this.setStyle("paddingTop",1);
this.setStyle("horizontalGap",1);

}
 
// Here I create the colored images I place in HBox in the cell

 override public function set data(value:Object):void {

   if (value != null)
{
removeAllChildren();
for (var i:int = 0; i < value.Actual.length; i++){
  var img:Image = new Image();  
  img.source = value.Actual[i].image;  
  img.id = "image - " +i;
  img.height = 20;  
//img.toolTip=value.Actual[i].width;
  img.percentWidth=value.Actual[i].width;   
  img.maintainAspectRatio=false;
  addChild(img);
} 
  }
}   
}
}

I dont want to use flex tooltip, I need to place my own and for that 
I need an event for each of the images seperatly.

Thanks for the help

Jo

--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
>
> 
>  What problems did you have trying to accomplish this? 
> 
>  Without testing anything, I would expect the DataGrid to 'capture' 
the 
> mouseOver event as opposed to the itemRenderer component.  So, I'd 
> expect you'd need some way to trigger a function in the renderer 
based 
> on the DataGrid mouseOver . 
> 
>  But, this is just my first guess. 
> 
> yossi.baram wrote:
> > Hi,
> > I have some images in a DataGrid cells and I need to chatch the 
event 
> > when I hover on them.
> > The images are created in an ItemRenderer AC, so it has to be 
done 
> > there, raising an Alert for example.
> >
> > Thanks
> >   
> 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl.com/684b5h
> http://www.twitter.com/reboog711  | Phone: 203-379-0773
> --
> Easy to use Interface Components for Flex Developers
> http://www.flextras.com?c=104
> --
> http://www.theflexshow.com
> http://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
>




Re: [flexcoders] Can I use mouseOver() an image in ActionScript

2009-02-18 Thread Jeffry Houser

 What problems did you have trying to accomplish this? 

 Without testing anything, I would expect the DataGrid to 'capture' the 
mouseOver event as opposed to the itemRenderer component.  So, I'd 
expect you'd need some way to trigger a function in the renderer based 
on the DataGrid mouseOver . 

 But, this is just my first guess. 

yossi.baram wrote:
> Hi,
> I have some images in a DataGrid cells and I need to chatch the event 
> when I hover on them.
> The images are created in an ItemRenderer AC, so it has to be done 
> there, raising an Alert for example.
>
> Thanks
>   


-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




Re: [flexcoders] Time stamping a user Logout

2009-02-18 Thread Laurent Cozic
You could make the app ping the server every 5 minutes. Then if the server 
doesn't receive the ping, assume that the user closed the browser and log him 
out.

Another simpler solution would be to put a timeout on the session.


--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, grg_blls  wrote:
From: grg_blls 
Subject: [flexcoders] Time stamping a user Logout
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 1:18 PM












Hi all,



I have concluded a sample Flex application where a user logs in (or 

registers) in the application. 



I use the Tomcat servlet container plus BlazeDS RPC component and 

Hibernate persistence to connect to MySQL database. 



A new user first registers by filling the Registration form. The 

database is updated for First Creation Timestamp, along with user's 

UserName and Password. 



A returning user fills a (similar) Login form. The database is 

updated for Login Timestamp. When the user does a normal Logout, the 

database is updated with Logout Timestamp. On User's Logout the 

User_Loged session time is summed in UserTotalLoged time.



My problem is that I need dispatch/listen (?) an event in an abrupt 

case, like the user instead of doing a normal logout simply closes 

the browser, or the client/server connection is just lost. Then I 

have to update the database that the user status is Logout. 



I hope this description is clear enough for some indications/ help.



Thank you all

George

   




 

  




 

















  

[flexcoders] Time stamping a user Logout

2009-02-18 Thread grg_blls
Hi all,

I have concluded a sample Flex application where a user logs in (or 
registers) in the application. 

I use the Tomcat servlet container plus BlazeDS RPC component and 
Hibernate persistence to connect to MySQL database. 

A new user first registers by filling the Registration form. The 
database is updated for First Creation Timestamp, along with user's 
UserName and Password. 

A returning user fills a (similar) Login form. The database is 
updated for Login Timestamp. When the user does a normal Logout, the 
database is updated with Logout Timestamp. On User's Logout the 
User_Loged session time is summed in UserTotalLoged time.

My problem is that I need dispatch/listen (?) an event in an abrupt 
case, like the user instead of doing a normal logout simply closes 
the browser, or the client/server connection is just lost. Then I 
have to update the database that the user status is Logout. 

I hope this description is clear enough for some indications/help.

Thank you all
George
   



[flexcoders] Remote object call gives forbidden 403 response

2009-02-18 Thread Netaman

Is there a simple fix for the following message?

faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: 
HTTP: Status 403: url: 

IIS frontend Cold Fusion 8 backend

Randy



[flexcoders] Can I use mouseOver() an image in ActionScript

2009-02-18 Thread yossi.baram
Hi,
I have some images in a DataGrid cells and I need to chatch the event 
when I hover on them.
The images are created in an ItemRenderer AC, so it has to be done 
there, raising an Alert for example.

Thanks



[flexcoders] Re: ClassCastException on updateItem

2009-02-18 Thread manuel347
Hi,

I imagine that at this time you solved your problem, but i found your
post.

I had the same problem with a simple app.

The problem is that the app doesn't know your VO (Value Object) and
for that reason flash player marks "ClassCastException"; for solving
you have to declare a var with your VO at your flex app:


   private var item:Item;


That's all.

Greetings,
Manuel G.

--- In flexcoders@yahoogroups.com, "mcantrell138" 
wrote:
>
> I'm trying out the data management service. I've developed a very
> simple example but I'm having a problem with the data types. When I
> change the data, my updateItem method is being called but I cannot
> cast them to their proper data types. I get the following error:
> 
> 
> [RPC Fault faultString="Could not invoke sync method on data adapter
> for destination 'wishlist' due to the following error: class
> java.lang.ClassCastException:flex.messaging.io.amf.ASObject."
> faultCode="Server.Processing" faultDetail="null"]
>   at
>
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()[C:\dev\enterprise_gmc\frameworks\mx\data\ConcreteDataService.as:1602]
>   at
>
mx.data::CommitResponder/fault()[C:\dev\enterprise_gmc\frameworks\mx\data\CommitResponder.as:167]
>   at
>
mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.as:107]
>   at
>
NetConnectionChannel.as$37::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder::statusHandler()[C:\dev\enterprise_gmc\frameworks\mx\messaging\channels\NetConnectionChannel.as:458]
>   at
>
mx.messaging::MessageResponder/status()[C:\dev\enterprise_gmc\frameworks\mx\messaging\MessageResponder.as:225]
>   
>   
> Perhaps I've missed a step or I have cocnfiguration problems. I'll
> post some code below. Please let me know if you can spot any problems.
> 
> 
> data-management-config.xml:
> ===
> 
>   class = "flex.data.DataService"
>  messageTypes = "flex.data.messages.DataMessage">
> 
>   
>  "flex.data.adapters.ASObjectAdapter" default = "true" />
>  "flex.data.adapters.JavaAdapter" />
>   
> 
>   
> 
>   
> 
>   
> 
> 
>   com.test.flex.assemblers.WishListAssembler
>   application
>   true
>   
> 
>   
>   
> 20
> 
> 
> 
>   
> 
>   
> 
> 
> 
> 
> Assembler:
> ===
> package com.test.flex.assemblers;
> 
> import com.test.flex.util.SpringUtils;
> import com.test.wishlist.data.model.Item;
> import com.test.wishlist.data.service.ItemService;
> import com.test.wishlist.ws.StoreIndex;
> import flex.data.assemblers.AbstractAssembler;
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> import java.util.List;
> 
> public class WishListAssembler extends AbstractAssembler {
> 
>private static Log log = LogFactory.getLog(WishListAssembler.class);
>ItemService itemService
> 
>public WishListAssembler() {
>   super();
>   this.itemService = (ItemService)
SpringUtils.getBean("itemService");
>}
> 
>@Override
>public List fill(List list) {
>   List results = itemService.findByKeywordsAndStore("j2ee",
> StoreIndex.BOOKS);
>   return results;
>}
> 
>@Override
>public void updateItem(Object currentObject, Object previousObject,
> List changes) {
>   Item current = (Item)currentObject;
>   Item previous = (Item)previousObject;
>   if (log.isDebugEnabled()) {
>  log.debug("new object: " + current);
>  log.debug("previous object: " + previous);
>  log.debug("changes: " + changes);
>   }
>}
> 
> }
> 
> 
> AS model object: 
> ===
> package com.test.wishlist.model {
>   import com.test.common.model.GenericEntity;
>   
>   [Managed]
> [RemoteClass(alias="com.test.wishlist.data.model.Item")]
>   public class Item extends GenericEntity  {
>   public var price:Number;
>   public var name:String;
>   public var url:String;
>   }
> }
> 
> 
> MXML init method:
> ===
> [Bindable]
> public var items:ArrayCollection;
> 
> public function initApp():void {
>   items = new ArrayCollection();
>   wishListDs = new DataService("wishlist");
>   wishListDs.fill(items); 
> }
>




[flexcoders] No codecompletion available

2009-02-18 Thread secrit.service
Hi all,

I'm new to Flex, so I will probably ask some simple questions. 
However to me they look huge.
One of the situations I encounter now is following :

filename = Application.mxml
---






filename = CustomComponent.mxml
---






filename = Application.as
-
Because my Custom Component is based on a Text, I want to set the 
fontsize. Therefore I want to write a line of code like this :

myComponent.fontSize = 40;

But when I write myCo and press Ctrl+Space it does not recognize my 
component. When I write the scriptcode inside the mxml-file, there is 
no problem.


filename = CustomComponent.as
-
When I want to set a property of the component, which is accessible 
via mxml, it wont work.

When I write this.fontSize = 40;

It will even not recognize the property fontSize.


Can anyone give me an explanation for this behavior?

Thanks in advance
















[flexcoders] UNDO function

2009-02-18 Thread appuatchi
Hello every1,
  Im working in a project which deals with an application to be
developed in FLEX. There is a canvas on which im able to draw on it.
Now, I should implement an UNDO function which can UNDO the previous
drawings. I tried in many ways but was in vain. Can anyone help me out
with this...


Pradeep



[flexcoders] How to change AdvancedDataGridItemRenderer backgroundColor and textColor props

2009-02-18 Thread Sean
Using the following code, could somebody explain to me why the cells
in the regionColumn are not showing with black backgrounds and white
text as is being set in the TestADGIR class?


http://www.adobe.com/2006/mxml";
layout="absolute" preinitialize="preInitApp()">


























 


  




package
{
import mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer;

public class TestADGIR extends AdvancedDataGridItemRenderer
{
public function TestADGIR()
{
super();
backgroundColor = 0;
textColor = 16777215;
}

}
}

Thanks,
Sean



[flexcoders] Bug? Width of single-character label...

2009-02-18 Thread jasonbriggs99
If I have two labels:



The assigned width of label2, with two characters, is significantly
less than the width of label1, with only a single character. 

I can work around this behaviour by assigning the text of label1 to be
": " -- i.e. inserting a trailing space.

Is this a bug, or am I missing something?

Thanks



[flexcoders] Re: problem with services-config.xml in multiple work environments..

2009-02-18 Thread Walter
I also prefer to configure services
(ChannelSets/Channels/RemoteObjects etc...) at runtime. Typically I do
this by reading in the configuration property values from an XML file
when the application loads. There are a couple of IoC/DI (Inversion of
Control/Dependency Injection) container implementations (SWIZ and
Spring-AS to name a couple) that also make this very easy. However,
you don't need to be that sophisticated; simply getting the property
values from an xml file will accomplish your goal and remove your
dependency to the services-config.xml so can avoid baking in those
settings at compile time. 


--- In flexcoders@yahoogroups.com, "Gregor Kiddie"  wrote:
>
> We construct our Remote Objects at runtime. You can use something like
> 
> servletPath = URLUtil.parseUriPath( Application.application.url ) +
> "messagebroker/amf";
> 
>  
> 
> to generate the URL you should be hitting (our URLUtil class strips the
> URL back to the context root, YMMV).
> 
>  
> 
> That way you can generate a single swf, and it adapts to the environment
> is deployed into.
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it
> by anyone else is not authorised. Any views or opinions presented are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact is.helpd...@...
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of tchredeemed
> Sent: 17 February 2009 19:32
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] problem with services-config.xml in multiple work
> environments..
> 
>  
> 
> Basically..
> 
> We develop on localhost:3000, we test on http://dev.oursite.com,
>   and
> we go live on https://www.oursite.com.  
> 
> I need 3 different environments, one for each environment.
> 
> Right now I have to recompile the SWF everytime I want to create it
> for a new environment.
> 
> Obviously, when we have multiple people using it on localhost, I have
> to create these swf's too often.
> 
> I was hoping there is a way that I can set up services-config.xml to
> point to the right url...
> 
> I would almost like to set up a daisy chain or something, it tries
> www, if it can't get that, it tries dev, if it cant get that, it tries
> localhost.
> 
> Any help would really be greatly appreciated...
>




Re: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread Laurent Cozic
Application.application.url will give you the url of the *swf file*, not the 
url of the document within which the app is embedded. For that, the only way is 
to use Javascript and ExternalInterface. I think the syntax is:

var docURL = ExternalInterface.call("location.href");

or it might be "document.location.href" - not sure which one is right.

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, kuntamayu  wrote:
From: kuntamayu 
Subject: [flexcoders] Re: is it possible to track visitors / the page an swf is 
embedded on
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 12:31 PM














Try to track



Application. application. url



This may help you. :)



--- In flexcod...@yahoogro ups.com, "Tracy Spratt"  wrote:

>

> Look into the BrowserManager, perhaps it will help.

> 

>  

> 

> Tracy Spratt 

> Lariat Services 

> 

> Flex development bandwidth available 

> 

>  _ _ __

> 

> From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] 

On

> Behalf Of uclamerrick

> Sent: Wednesday, February 18, 2009 12:24 AM

> To: flexcod...@yahoogro ups.com

> Subject: [flexcoders] is it possible to track visitors / the page an 

swf

> is embedded on

> 

>  

> 

> Lets say I run a video site like youtube, how can I capture the url 

of

> the page where my swf object is embedded.

> 

> For example someone takes the embed code from

> http://youtube. com/videoid123   and

> places it onto the page at

> http://myblog. wordpress. com/this_ video_rocks

>  

> 

> I know how to use HTTPService to report this information back to my

> server and store it in the database, but I don't know how to use 

Flex

> 3 / Actionscript 3 to determine the URL of the page that embeds an

> swf. In the example above I would want to capture:

> 

> http://myblog. wordpress. com/this_ video_rocks

>  

> 

> Thanks.

>




 

  




 

















  

[flexcoders] Re: HTTPRequest and Air too slow?

2009-02-18 Thread florian.salihovic
I actually used Charles to have a look at the network communication. It seems 
like the 
data is received in the URLLoader (in my tests i use an URLLoader instead of 
the 
HTTPService) about 100 - 120 ms after the data is received. Which is some sort 
of 
overhead which might be caused from the infrastructure overhead from 
AIR-Runtime to 
the actual URLLoader instance.

Any ideas regarding Air and some problems when it comes to network issues? 


--- In flexcoders@yahoogroups.com, Tom Chiverton  wrote:
>
> On Tuesday 17 Feb 2009, florian.salihovic wrote:
> > But somehow the HTTPService seems to wait longer for the service's
> > response.
> 
> Can you get a packet trace off the network ?
> 
> -- 
> Tom Chiverton
> Helping to authoritatively benchmark compelling fine-grained back-end 
> best-of-breed functionalities
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under 
registered number OC307980 whose registered office address is at Halliwells 
LLP, 3 
Hardman Square, Spinningfields, Manchester, M3 3EB.  A list of members is 
available for 
inspection at the registered office together with a list of those non members 
who are 
referred to as partners.  We use the word ?partner? to refer to a member of the 
LLP, or an 
employee or consultant with equivalent standing and qualifications. Regulated 
by the 
Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above and may 
> be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and 
must not use any information contained in nor copy it nor inform any person 
other than 
Halliwells LLP or the addressee of its existence or contents.  If you have 
received this email 
in error please delete it and notify Halliwells LLP IT Department on 0870 365 
2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>





[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread kuntamayu

Try to track

Application.application.url

This may help you. :)



--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Look into the BrowserManager, perhaps it will help.
> 
>  
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
> Behalf Of uclamerrick
> Sent: Wednesday, February 18, 2009 12:24 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] is it possible to track visitors / the page an 
swf
> is embedded on
> 
>  
> 
> Lets say I run a video site like youtube, how can I capture the url 
of
> the page where my swf object is embedded.
> 
> For example someone takes the embed code from
> http://youtube.com/videoid123   and
> places it onto the page at
> http://myblog.wordpress.com/this_video_rocks
>  
> 
> I know how to use HTTPService to report this information back to my
> server and store it in the database, but I don't know how to use 
Flex
> 3 / Actionscript 3 to determine the URL of the page that embeds an
> swf. In the example above I would want to capture:
> 
> http://myblog.wordpress.com/this_video_rocks
>  
> 
> Thanks.
>





Re: [flexcoders] Re: problem with services-config.xml in multiple work environments..

2009-02-18 Thread Tom Chiverton
On Wednesday 18 Feb 2009, tchredeemed wrote:
> Yeah, I can do that, no big deal, it doesn't really fix the issue
> because I have to use SecureAMFendpoint when its live and AMFEndpoint
> when it is not.

But both channels in the list for the destination.

-- 
Tom Chiverton
Helping to advantageously strategize scalable attention-grabbing best-of-breed 
ROI



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Publishing source code without Flex Builder?

2009-02-18 Thread Tom Chiverton
On Tuesday 17 Feb 2009, Keith Hughitt wrote:
> Anyone know how to include a "View Source" option in the context menu
> for Flex applications built using the SDK alone?

Do it from Builder, see what it writes where, and package the same files from 
the command line.

-- 
Tom Chiverton
Helping to revolutionarily e-enable bricks-and-clicks professional models



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Re: HTTPRequest and Air too slow?

2009-02-18 Thread Tom Chiverton
On Tuesday 17 Feb 2009, florian.salihovic wrote:
> But somehow the HTTPService seems to wait longer for the service's
> response.

Can you get a packet trace off the network ?

-- 
Tom Chiverton
Helping to authoritatively benchmark compelling fine-grained back-end 
best-of-breed functionalities



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] writing data to SQL database

2009-02-18 Thread Tom Chiverton
On Tuesday 17 Feb 2009, Danny Buetow wrote:
> am able to edit and delete records, yet I am not able to add a record. I
> receive no error and when running in debug mode, I get no breaks. I have

You need to confirm the request was sent or not to ColdFusion - set a break 
point where the code calls the remote method.
ColdFusion has log files, what do they say ?

-- 
Tom Chiverton
Helping to enormously generate patterns



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Send a confirmation Email

2009-02-18 Thread Simon Bailey

LOL my bad, not reading this through properly, doh!

On 18 Feb 2009, at 10:11, Laurent Cozic wrote:



This would open the user's email client, and I don't think he would  
want the user to send the confirmation email to himself. I think  
that the right way would be to use a server side script that would  
take the username as a parameter, build the email and send it.


You can do that quite easily in PHP:

http://email.about.com/cs/phpemailtips/qt/et031202.htm

Then in Flex, just use URLLoader to call the PHP script.

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, Simon Bailey  wrote:
From: Simon Bailey 
Subject: Re: [flexcoders] Send a confirmation Email
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 10:02 AM

A quick and easy way to do this would be to use URLRequest as below:


navigateToURL( new URLRequest( "mailto:simon@ newtriks. com?subject=  
Registration Complete" ), "_blank" );


Simon [ Website ] newtriks.com [ Blog ] nutrixinteractive. com/blog/


On 18 Feb 2009, at 08:57, christophe_jacqueli n wrote:


Hello,

How to send a confirmation Email in the flex program when the user  
get

register ?

Thank you,
Christophe,











Re: [flexcoders] Send a confirmation Email

2009-02-18 Thread bjorn
Do this on the serverside, not in Flex.



2009/2/18 christophe_jacquelin 

>   Hello,
>
> How to send a confirmation Email in the flex program when the user get
> register ?
>
> Thank you,
> Christophe,
>
>  
>



-- 

http://www.juicability.com - flex blog
http://www.nospoiler.com - link to youtube videos without the spoilers


Re: [flexcoders] Send a confirmation Email

2009-02-18 Thread Laurent Cozic
This would open the user's email client, and I don't think he would want the 
user to send the confirmation email to himself. I think that the right way 
would be to use a server side script that would take the username as a 
parameter, build the email and send it.

You can do that quite easily in PHP:

http://email.about.com/cs/phpemailtips/qt/et031202.htm

Then in Flex, just use URLLoader to call the PHP script.

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, Simon Bailey  wrote:
From: Simon Bailey 
Subject: Re: [flexcoders] Send a confirmation Email
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 10:02 AM












A quick and easy way to do this would be to use URLRequest as below:
navigateToURL( new URLRequest( "mailto:simon@ newtriks. com?subject= 
Registration Complete" ), "_blank" );
Simon [ Website ] newtriks.com [ Blog ] nutrixinteractive. com/blog/ 

On 18 Feb 2009, at 08:57, christophe_jacqueli n wrote:
Hello,

How to send a confirmation Email in the flex program when the user get
register ? 

Thank you,
Christophe,



 

  




 

















  

Re: [flexcoders] Event passing directly between module and Main application (Shell)

2009-02-18 Thread Simon Bailey

Andrew covers this with custom events here:

http://blog.schwabe.net/index.cfm/2008/4/29/Dispatching-custom-events-from-a-Flex-Module

Simon [ Website ] newtriks.com [ Blog ] nutrixinteractive.com/blog/

On 18 Feb 2009, at 09:46, kuntamayu wrote:


Can any one guide me hot to pass Button / mouse events from a module
to the Main application (Shell).

The scenario is like this :
I have two different modules appart from my Main applicaion
(1) module for subscription / payment : SubscriModule.mxml
(2) module for image slide show : SlidesModule.mxml

now, I want to notify my main application on the click of OK button
from a module ( i.e. SubscriModule.mxml) to main application (shell)

So, how to dispatch and listen of modules and shell swf (application
swf) in each other.

Thanking you in advance.







Re: [flexcoders] Send a confirmation Email

2009-02-18 Thread Simon Bailey

A quick and easy way to do this would be to use URLRequest as below:

navigateToURL( new URLRequest( "mailto:si...@newtriks.com?subject=registration 
 Complete" ), "_blank" );


Simon [ Website ] newtriks.com [ Blog ] nutrixinteractive.com/blog/


On 18 Feb 2009, at 08:57, christophe_jacquelin wrote:


Hello,

How to send a confirmation Email in the flex program when the user get
register ?

Thank you,
Christophe,







Re: [flexcoders] Country List

2009-02-18 Thread Simon Bailey

Here are some helpful resources specific to your requirements:

http://www.tink.ws/blog/files/as3/PayPalCountries.as
http://aralbalkan.com/1128
http://www.peterelst.com/blog/2006/12/24/flex-country-combobox-component/

Simon [ Website ] newtriks.com [ Blog ] nutrixinteractive.com/blog/

On 18 Feb 2009, at 08:56, christophe_jacquelin wrote:


Hello,

I want to make a combo with the list of country. Where can I find such
a list ?

Thank you,
Christophe,







[flexcoders] Event passing directly between module and Main application (Shell)

2009-02-18 Thread kuntamayu
Can any one guide me hot to pass Button / mouse events from a module 
to the Main application (Shell).

The scenario is like this :
I have two different modules appart from my Main applicaion
(1) module for subscription / payment : SubscriModule.mxml
(2) module for image slide show : SlidesModule.mxml

now, I want to notify my main application on the click of OK button 
from a module ( i.e. SubscriModule.mxml) to main application (shell)

So, how to dispatch and listen of modules and shell swf (application 
swf) in each other.


Thanking you in advance.



[flexcoders] Re: Unloading a swf that includes a ViewStack can cause a RTE

2009-02-18 Thread rob_mcmichael
Hi Alex,

The stack is as follows: 
===
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
mx.managers::HistoryManagerImpl/calcCRC()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManagerImpl.as:392]
at
mx.managers::HistoryManagerImpl()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManagerImpl.as:268]
at
mx.managers::HistoryManagerImpl$/getInstance()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManagerImpl.as:215]
at
mx.core::Singleton$/getInstance()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Singleton.as:113]
at mx.managers::HistoryManager$/get
impl()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]
at
mx.managers::HistoryManager$/unregister()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:144]
at
mx.containers::ViewStack/removedFromStageHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\ViewStack.as:1188]
at flash.display::Loader/_unload()
at flash.display::Loader/unload()
at
mx.controls::SWFLoader/load()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1318]
at
mx.controls::SWFLoader/commitProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1167]
at
mx.core::UIComponent/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5807]
at
mx.managers::LayoutManager/validateProperties()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:539]
at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:689]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]


Thanks

Rob


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> What is the exact stack trace of the RTE?
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of rob_mcmichael
> Sent: Tuesday, February 17, 2009 7:17 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Unloading a swf that includes a ViewStack can
cause a RTE
> 
> 
> Hi all,
> 
> I am sill seeing this bug when trying to unload a SWF in an AIR 1.5
project:
> 
> http://bugs.adobe.com/jira/browse/SDK-17422
> 
> I have tried everything mentioned but no avail.
> 
> If anyone can help, please let me know.
> 
> Thanks
> 
> Rob
>




  1   2   >