[flexcoders] RESOLVED: VerifyError: Error #1053

2007-05-16 Thread Jim Robson
The issue was resolved by uninstalling and reinstalling Flex Builder.
Before resorting to this, I tried the following (without success,
obviously): 

1. Cleaned the workspace (multiple times)
2. Closed and restarted Flex Builder (multiple times)
3. Closed and reopened the project
4. Deleted and recreated the project
5. Uninstalled and reinstalled the Flash players
6. Shut down and restarted my laptop

--- In flexcoders@yahoogroups.com, "Jim Robson" <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
> 
> I'm getting the error referenced in the subject line when I place
any series
> effect anywhere in any application. I get it with SeriesInterpolate,
> SeriesSlide, and SeriesZoom tags. I also get it if I try to apply
the effect
> in ActionScript using the setStyle method of a chart series (e.g.
PieSeries,
> ColumnSeries) object. In fact, I get the same error even if the series
> effect tag is the only thing between  and
!
> 
> Anybody else run into this? I'm thinking that either my SDK, or my
copy of
> Flex Builder, or my copy of Charting, or perhaps my Flash player, is
> corrupt. 
> 
> Please pass along any info or suggestions you may have. I'm pasting the
> complete error message plus a code sample below.
> 
> Thanks
> -Jim
> 
> 
> Here's the complete error message:
> 
> 
> param 1 incompatible
>virt mx.effects::IEffectInstance
> mx.effects::TweenEffect/mx.effects:TweenEffect::initInstance()
>over mx.effects::EffectInstance
>
mx.charts.effects::SeriesEffect/mx.charts.effects:SeriesEffect::initInstance
> ()
> VerifyError: Error #1053: Illegal override of SeriesEffect in
> mx.charts.effects.SeriesEffect.
>   at TestSeriesEffects/TestSeriesEffects::_SeriesInterpolate1_i()
>   at
>
TestSeriesEffects$iinit()[C:\projects\dhs\TestSeriesEffects\TestSeriesEffect
> s.mxml:25]
>   at _TestSeriesEffects_mx_managers_SystemManager/create()
>   at
>
mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWind
>
ow()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2289]
>   at
>
mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\d
> ev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214]
> [SWF]
C:\projects\dhs\TestSeriesEffects\bin\TestSeriesEffects-debug.swf -
> 722,293 bytes after decompression
> 
> 
> ===
> 
> I first ran into the error when trying to use the effect in an app
that I'm
> building for a customer. When I couldn't get around it, I tried it in
> various other apps, but kept getting the same error. I finally
copied and
> pasted an entire sample app from the docs, and got the same result.
Here's
> the sample app I used:
> 
> 
> 
> http://www.adobe.com/2006/mxml";>
>   
> 
> 
> duration="1000" 
>  minimumElementDuration="200" 
>  elementOffset="0"
>   />
>   
>   
>  
> 
> yField="item" 
> displayName="Quantity" 
> showDataEffect="rearrangeData"
>/>
> 
>  
>   
>   
> 
>




[flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-16 Thread barry.beattie

if you find a solution to the bug, do ensure to keep everyone
informed, yes? for my application I'm finding it a bit of a show-stopper.


> Thanks for the link, let me check it to reach any decision.




[flexcoders] Is it possible for Flex Builder to echo the mxmlc.exe command it uses ?

2007-05-16 Thread helihobby
How can I see ( if any ) the mxmlc.exe args that Flex Builder is using 
when I tell it to compile using the GUI ( Right Click -> Compile ).

I wanna right a mxmlc script but need to see first what Flex Builder is 
using.

Thanks for the help,

Sean.



RE: [flexcoders] Re: access to flex app icon set?

2007-05-16 Thread Lincoln Mitchell
Thanks Mrinal, that worked fine.

Linc

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mrinal Wadhwa
Sent: Thursday, 17 May 2007 5:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: access to flex app icon set?

 

Hi Linc,

In your Flex Builder2 > Flex SDK 2 > frameworks folder ...

There is defaults.css ... in that if you search TitleWindow in it you would
see that the close button is defined as follows ...

closeButtonDisabledSkin:
Embed(source="Assets.swf",symbol="CloseButtonDisabled");
closeButtonDownSkin:
Embed(source="Assets.swf",symbol="CloseButtonDown");
closeButtonOverSkin:
Embed(source="Assets.swf",symbol="CloseButtonOver");
closeButtonUpSkin: Embed(source="Assets.swf",symbol="CloseButtonUp");


Assets.swf is also present in Flex Builder2 > Flex SDK 2 > frameworks


Mrinal Wadhwa   






--- In flexcoders@yahoogroups.com, "lincmitch" <[EMAIL PROTECTED]> wrote:
>
> Is it possible to get the icon set used in a Flex application?
> In particular I was after the "close" icon on a TitleWindow.
> I have search for pngs in the install folder "C:\Program
> Files\Adobe\Flex Builder 2". Maybe they are generated in code, so its
> not possible.
> 
> Linc
>

 



{Disarmed} Re: [flexcoders] Flex on Mac

2007-05-16 Thread fuad_kamal
you can't (multiple monitors).  It's an issue w/Eclipse on Mac. 
Solution:  cinema display :P

--- In flexcoders@yahoogroups.com, Jurgen Beck <[EMAIL PROTECTED]> wrote:
>
> Same here. I actually switched from Windows XP Professional running 
> stand-alone Flex Builder to a Mac Pro and MacBook Pro. Works great. In 
> fact, I seem to have less memory issues with Flex Builder on the Mac 
> than I had with running it on Windows XP.
> 
> The only thing I wish it would do on the Mac is allowing me to use two 
> monitors. On the Windows side this is no problem. Can't seem to figure 
> out how to do that on the Mac.
> 
> Jurgen
> 
> Mark McCray wrote:
> >
> > runs just fine for me. intel mac here.
> >
> > I use flex via plugin to eclipse, because i use other langs like PHP 
> > and Java.
> > Mark
> >
> > On May 11, 2007, at 1:06 PM, Arleston Lueders wrote:
> >
> >> Hello everybody!
> >>
> >> I'm thinking in buy a MacBook. Does anyone have a Mac here? What do 
> >> you think about it?
> >> And the Flex will run normal on Mac, right?
> >>
> >> Thanks,
> >> Arleston
> >>
> >
> >
>




[flexcoders] Help! - certain portions of text disappear when printing from Flex App

2007-05-16 Thread Mike Anderson
Hello All, this is one of the most frustrating problems I think I ever
had to deal with...

Instead of creating an invisible container which properly lays out all
my printable elements, I went and created a WYSIWYG mock-up of the final
elements to be printed.  This way, once the user is satisfied with what
he/she sees on the screen, they can be confident that this will be what
comes out on the printer.  For ease of use, I placed my PrintControl
inside of a drag able & sizeable TitleWindow - so the user can Pan and
Zoom the content around.

With that said, I am experiencing some issues with my Text disappearing
- specifically at certain Zoom Levels.  And it's ALWAYS the last Word in
a Sentence.  I am not sure why this is happening, and why it only
happens at certain Zoom Levels, but it's becoming increasingly
frustrating for me and my users.

Quick FYI, I am using the  control to display my text.  I am
considering using a different control, and rendering it all as HTML - so
I don't have to create all these unique Styles, due to the text being so
different in so many places.

Just in case my problems had to do with Fonts, and any related issues
that go along with Fonts, I went ahead and embedded all my Fonts as well
as turning on the "FlashType" option.

I have my Anti-Aliasing settings set to maximum, and I tried both
"Pixel" and "Sub-Pixel" settings in hopes of that having a positive
effect.  In addition to this, I tried playing with all the
"FlexPrintJobScaleType" settings in case that was messing with my text.

Still, I get sporadic results - as well as getting different results on
*different computers*.

Could somebody please offer any words of wisdom as to why this may be
happening?

Thank you in advance for any help you can offer,

Mike


Re: [flexcoders] Flex on Mac

2007-05-16 Thread Nick Sophinos
Yeah and totally don't buy Apple's FUD that only Apple Brand RAM
is a valid choice.  After all, even they don't use their branded RAM in
their new laptops all the time.  My 15" Powerbook came straight from
factory with Hynix RAM.

- Nick



On 5/16/07, Brett <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Depending on when you were checking the Mac you may be able to get
>  that Mac even cheaper since they bumped up the specs that morning.
>  I'm not sure about the games, I haven't played a PC game for years,
>  but if they would work OK with the integrated 950 chipset then it
>  should be fine. Although you'd have to boot directly into Windows to
>  make use of the acceleration, for now. Also I would highly recommend
>  you DON"T buy the extra ram from apple. You can pick it up from
>  crucial.com or newegg.com for a lot cheaper. It's cake to install a
>  new HD or RAM on the MacBook also which is nice, both are accessible
>  once you unlatch the battery.
>
>  Personally I'd go with a Mac instead of a PC :)
>  


RE: [flexcoders] Re: WebService sending dynamic XML - problem

2007-05-16 Thread Tracy Spratt
Ah, rats.

 

And you don't want to manually encode/decode the strings?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of discipl4
Sent: Wednesday, May 16, 2007 7:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService sending dynamic XML - problem

 

Tracy,

Thanks for the reply :) If you pass it like that, it gets encoded :(
The XML tags get turned into > and < because the SOAP wrapper
thinks you were sending string data inside of 1 XML tag.. which you
are really.

That is my problem exactly.

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What happens if you sen the xml as a string explicitly, and then parse
> it into a dom on the server?
> 
> 
> 
> {myXMLObject.toXMLString()}
> 
> 
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of discipl4
> Sent: Wednesday, May 16, 2007 6:39 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: WebService sending dynamic XML - problem
> 
> 
> 
> Nate,
> 
> Thank you for the quick response!! :)
> 
> I did not know you could implement a WS call the way you do, very
> cool, although unless Im understanding it improperly, I dont think it
> will work for me. Please correct me if I am misinterpreting how your
> way works.
> 
> You do ws.getMyFunction(firstName, lastName, city) .. for instance,
> and your webservice gets the data in an expected size and format,
> right? It goes, param1 is the firstname, param2 is the lastname, and
> param3 is the city. No definition involved but it is still finite. 
> 
> What I need to do is have a flexible structure in my xml to have an
> infinite amount tags inside certain blocks. 
> 
> So sometimes I might pass and xml that looks like this:
> 
> 
> FirstName
> LastName
> San Diego
> 
> 
> and sometimes I need to send this:
> 
> 
> FirstName
> LastName
> San Diego
> Chicago
> New York
> 
> 
> If I pass in the parameters as you have, I have no way to denote the
> beginning and end of that section that contains 'n' number of
elements.
> 
> Does that make sense? I know it's hairy :) I really want to keep the
> XML structure. I think if I did it your way, I could pass in a ton of
> parameters as key/value pairs and build the xml on the other side...
> like.. ws.getMyFunction(firstname, Bill, lastname, Smith, city1,
> Chicago) ... but man, then I have to dissect the nice XML object that
> Flex gives you to work with.
> 
> Thanks again for your time in hashing this out with me!!
> 
> Best,
> 
> - - Dan
> 
> --- In flexcoders@yahoogroups.com


> , "Nate Pearson"  wrote:
> >
> > This is how I do it:
> > http://myurl/service.asmx?WSDL
 
>  > " 
> > useProxy="false" showBusyCursor="true">
> > 
> > 
> > 
> > 
> > Then in action script I go ws.getMyFunction(param1, param2, param3).
> > 
> > You don't have to define your parameters in MXML. If you don't, Flex
> > will let you send as many or as little parameters as you want. I
only
> > get an error if the amount of parameters that I send don't match the
> > type and number on the server side.
> > 
> > Hope this helps,
> > 
> > Nate
> > 
> > --- In flexcoders@yahoogroups.com
 
>  , "discipl4"  wrote:
> > >
> > > Hi friends - I have been wrestling with a problem that I was
hoping
> > > you could help me out with :)
> > > 
> > > I understand the premise of defining a WebService in Flex, with
> > > parameters and data, and sending the data over the wire to my
WSDL. 
> > > However, I have a unique situation where I want to assemble a
> dynamic
> > > XML file and send it over a WebService. Unless you define a 1 to 1
> > > mapping of parameters in Flex to a WSDL, I cant find any way to
make
> > > this work.
> > > 
> > > Example: This works just fine as an operation on a webservice - 
> > > 
> > > 
> > > 
> > > {someStringVariable}
> > > 
> > > 
> > > 
> > > This is a 1 to 1 mapping of a parameter in Flex to my WSDL, which
> > > expects 1 value called myParameter.
> > > 
> > > However, if I pass in an XML object, SOAP will change all of my <
> and
> > > > to < and > to avoid breaking the SOAP envelope. I
understand
> > > the need to do this, but I just cant find a way around it.
> > > 
> > > Example:
> > > 
> > > var myXMLObject:XML = ""
> > > 
> > > 
> > > 
> > > {myXMLObject}
> > > 
> > > 
> > > 
> > > The resulting packet across the wire will be one
> > > parameter(myparameter), with my XML as a string and all of the <
and
> >
> > > encoded to >...etc. I have tried every hack I can think of

RE: [flexcoders] Re: HELP! How to get a subnode in such a XML data?

2007-05-16 Thread Tracy Spratt
Yes, always do this:

trace(myXML.toXMLString())

 

the ordinary toString(), which trace uses, does not handle single xml
nodes correctly.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of xyjaws
Sent: Wednesday, May 16, 2007 8:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HELP! How to get a subnode in such a XML data?

 

It's my fault.

It do work actually. To my strange, the trace command outuput nothing 
of a single xml node without any child.

 



RE: [flexcoders] Communication of data between parent and child movie.

2007-05-16 Thread Tracy Spratt
And if loose coupling is not a key issue for you, you can simply access
public members in the loaded swf using the "content" property of
SWFLoader.  If you are loading appliations, use SWFLoader, not Image.

 

Access top level application members using Application.application.

 

You will need to listen for the complete event of the loader and the
APPLICATION_COMPLETE event of the loaded app before you can access
properties via the "content" property:



 

  /** runs when SWFLoader content has all downloaded */

  private function onCompleteAppLoader(oEvent:Event):void

  {

var smAppLoaded:SystemManager =
SystemManager(oEvent.target.content);

smAppLoaded.addEventListener(FlexEvent.APPLICATION_COMPLETE,
onCurrentApplicationComplete)

//vbMask.visible = false;

  }//onCompleteAppLoader

  

  /** runs when the app loaded in the SWFLoader has completed
initialization

  *   and is ready for any access (applicationComplete event)

  */

  private function onCurrentApplicationComplete(oEvent:Event):void

  {

_appLoaded = Application(oEvent.target.application);

_sAppLoadedUrl = _appLoaded.url

var iPosLastPathDelimiter:int = _sAppLoadedUrl.lastIndexOf("\\");

if (iPosLastPathDelimiter == -1)  {

  iPosLastPathDelimiter = _sAppLoadedUrl.lastIndexOf("/");

}

_sAppLoadedName =
_sAppLoadedUrl.substring(iPosLastPathDelimiter+1,_sAppLoadedUrl.lastInde
xOf("."));

  }//onCurrentApplicationComplete

  

  /**  */

  public function showProgress(oEvent:Event):void

  {

var sBytesLoaded:String = oEvent.target.bytesLoaded;

var sBytesTotal:String = oEvent.target.bytesTotal;

_nLoadProgress = (sBytesLoaded/sBytesTotal) * 100;

lbLoading.alpha = 1/_nLoadProgress * 10;

if (_nLoadProgress == 100)  {

  lbLoading.visible = false;

  lbLoading.alpha = 1; 

}

 

  } //showProgress

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, May 16, 2007 7:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Communication of data between parent and child
movie.

 

Using the inbuilt event dispatching system is your best bet.

That way you can have your parent(s) and child(s) loosely coupled.

 

There are particular design patterns that also deal with this issue.

Personally i like the combination of DataBinding,
ModelLocator(Singleton) and Commands, ala Cairngorm :)

 

 

Bjorn

 

 

On 17/05/2007, at 8:58 AM, ivansebastiansurya wrote:





Hi everyone,

Currently I have to write a Flex application that holds other swf 
application within it (I will have a skeleton swf movie with menu on 
the left hand side and when a menu item is clicked, the corresponding 
sub application is loaded on the right hand side, onto an Image 
control).

The problem is that how can we propagate information from the child 
movie to the parent movie and vice versa? Say the sub movie does the 
login procedure and return the authentication information, how can I 
pass this information to the parent movie so that it can be used to 
control the access given to this particular user?

 



[flexcoders] Re: WebService sending dynamic XML - problem

2007-05-16 Thread discipl4
Tracy,

Thanks for the reply :)  If you pass it like that, it gets encoded :(
 The XML tags get turned into > and < because the SOAP wrapper
thinks you were sending string data inside of 1 XML tag.. which you
are really.

That is my problem exactly.



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What happens if you sen the xml as a string explicitly, and then parse
> it into a dom on the server?
> 
> 
> 
> {myXMLObject.toXMLString()}
> 
> 
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of discipl4
> Sent: Wednesday, May 16, 2007 6:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: WebService sending dynamic XML - problem
> 
>  
> 
> Nate,
> 
> Thank you for the quick response!! :)
> 
> I did not know you could implement a WS call the way you do, very
> cool, although unless Im understanding it improperly, I dont think it
> will work for me. Please correct me if I am misinterpreting how your
> way works.
> 
> You do ws.getMyFunction(firstName, lastName, city) .. for instance,
> and your webservice gets the data in an expected size and format,
> right? It goes, param1 is the firstname, param2 is the lastname, and
> param3 is the city. No definition involved but it is still finite. 
> 
> What I need to do is have a flexible structure in my xml to have an
> infinite amount tags inside certain blocks. 
> 
> So sometimes I might pass and xml that looks like this:
> 
> 
> FirstName
> LastName
> San Diego
> 
> 
> and sometimes I need to send this:
> 
> 
> FirstName
> LastName
> San Diego
> Chicago
> New York
> 
> 
> If I pass in the parameters as you have, I have no way to denote the
> beginning and end of that section that contains 'n' number of elements.
> 
> Does that make sense? I know it's hairy :) I really want to keep the
> XML structure. I think if I did it your way, I could pass in a ton of
> parameters as key/value pairs and build the xml on the other side...
> like.. ws.getMyFunction(firstname, Bill, lastname, Smith, city1,
> Chicago) ... but man, then I have to dissect the nice XML object that
> Flex gives you to work with.
> 
> Thanks again for your time in hashing this out with me!!
> 
> Best,
> 
> - - Dan
> 
> --- In flexcoders@yahoogroups.com 
> , "Nate Pearson"  wrote:
> >
> > This is how I do it:
> > http://myurl/service.asmx?WSDL
>  " 
> > useProxy="false" showBusyCursor="true">
> > 
> > 
> > 
> > 
> > Then in action script I go ws.getMyFunction(param1, param2, param3).
> > 
> > You don't have to define your parameters in MXML. If you don't, Flex
> > will let you send as many or as little parameters as you want. I only
> > get an error if the amount of parameters that I send don't match the
> > type and number on the server side.
> > 
> > Hope this helps,
> > 
> > Nate
> > 
> > --- In flexcoders@yahoogroups.com
>  , "discipl4"  wrote:
> > >
> > > Hi friends - I have been wrestling with a problem that I was hoping
> > > you could help me out with :)
> > > 
> > > I understand the premise of defining a WebService in Flex, with
> > > parameters and data, and sending the data over the wire to my WSDL. 
> > > However, I have a unique situation where I want to assemble a
> dynamic
> > > XML file and send it over a WebService. Unless you define a 1 to 1
> > > mapping of parameters in Flex to a WSDL, I cant find any way to make
> > > this work.
> > > 
> > > Example: This works just fine as an operation on a webservice - 
> > > 
> > > 
> > > 
> > > {someStringVariable}
> > > 
> > > 
> > > 
> > > This is a 1 to 1 mapping of a parameter in Flex to my WSDL, which
> > > expects 1 value called myParameter.
> > > 
> > > However, if I pass in an XML object, SOAP will change all of my <
> and
> > > > to < and > to avoid breaking the SOAP envelope. I understand
> > > the need to do this, but I just cant find a way around it.
> > > 
> > > Example:
> > > 
> > > var myXMLObject:XML = ""
> > > 
> > > 
> > > 
> > > {myXMLObject}
> > > 
> > > 
> > > 
> > > The resulting packet across the wire will be one
> > > parameter(myparameter), with my XML as a string and all of the < and
> >
> > > encoded to >...etc. I have tried every hack I can think of and I
> > > cant get this to work. Has anyone else had experience using a
> > > dynamically sized XML as the model for a webservice?
> > > 
> > > Any help is MUCH appreciated :)
> > > 
> > > Best Regards,
> > > 
> > > - - Dan
> > > 
> > > p.s. - I have come up with ways around this.. such as sending as an
> > > HTTPService with contentType="application/xml".. or decoding the
> >,
> > > < on the webservice side. Both of those work, but neither of those
> > > fit within the webservice standards we currently apply here. Thanks
> > > again.
> > >
> >
>




[flexcoders] Re: Flex: Modular Applications

2007-05-16 Thread Russell Munro
I have worked a-lot with modules in recent months & there is one great
way I have found to manage modules that is more predicable, easier to
handler & far nicer on memory than any other means I can find. Don't
remove the module! Once you have loaded the module store it in a
variable and when you need it again get the one you have already
loaded. Its simple and it works.

Russell Munro


--- In flexcoders@yahoogroups.com, "cwolsen7905" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> I'm working on a modular application.
> 
> However it appears to me that module.unload does not do any cleanup..
> 
> It leaves behind eventlisteners and objects in the parent application.
> Is there any way to get it to do propper cleanup?
> 
> -Christopher
>




[flexcoders] Re: HELP! How to get a subnode in such a XML data?

2007-05-16 Thread xyjaws
It's my fault.

It do work actually. To my strange, the trace command outuput nothing 
of a single xml node without any child.



Re: [flexcoders] Flex on Mac

2007-05-16 Thread Brett
Depending on when you were checking the Mac you may be able to get  
that Mac even cheaper since they bumped up the specs that morning.   
I'm not sure about the games, I haven't played a PC game for years,  
but if they would work OK with the integrated 950 chipset then it  
should be fine. Although you'd have to boot directly into Windows to  
make use of the acceleration, for now. Also I would highly recommend  
you DON"T buy the extra ram from apple. You can pick it up from  
crucial.com or newegg.com for a lot cheaper.   It's cake to install a  
new HD or RAM on the MacBook also which is nice, both are accessible  
once you unlatch the battery.

Personally I'd go with a Mac instead of a PC :)


RE: [flexcoders] Date - Timezone with WS

2007-05-16 Thread Peter Farland
ActionScript 3 Dates are actually "DateTime" instances and always have a
timezone. Dates are always shown in the local timezone in Flash, this
isn't Flex specific. You have to use the UTC specific accessors in
ActionScript to get the time in UTC / Zulu / GMT time. There is no
record of the original timezone that was used to construct the Date.
 
Serialization formats often send dateTime information in UTC to keep
things simple - either endpoint can adjust the time on display as
necessary.
 
Note that there are a few bugs in how timezone-less date, time and
dateTime XML Schema types are handled in Flex WebService that should be
fixed in the new implementation of Flex SDK 2.0.1 Hotfix 2 which is due
out soon. However, this isn't necessarily related to your dateTime as it
has a timezone specified.
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paulwelling
Sent: Wednesday, May 16, 2007 6:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Date - Timezone with WS



Hello,

I have a WS that returns a date. Our server is in EDT.
Using Charles to sniff the date: 2007-05-15T00:00:00-04:00

When debugging the resultset in Flex, it appears that Flex has ignored
TZ info passed and has applied the client's TZ to the date..! 

(I changed my PC's TZ to GMT and the TZ offset in the resultset gets
changed accordingly, even though the server is still passing -04:00!!!)

Has anyone come up with a good work-around / fix for this... (I'm
still in shock on this one...)

Thanks for the help!
Paul



 


Re: [flexcoders] Date - Timezone with WS

2007-05-16 Thread Kelly Birr
Paul,

I gave up making sense of the way Flex 2 handles dates from web services 
almost a year ago and stated passing them as strings.  I brought this up 
many times during the beta and since then and have never seen a good 
solution for getting Flex to stop mucking with the timezone. 

The other big problem with the Date class in AS3 is that it is a 
reference type and cannot be directly compared using ==.  You have to us 
an external date compare function or compare the individual components 
of both dates (after checking that neither one is null). 

I've been using strings for all date related processing in flex for 
about 9 months and it's been perfect.

- Kelly

paulwelling wrote:
> Hello,
>
> I have a WS that returns a date.  Our server is in EDT.
> Using Charles to sniff the date: 2007-05-15T00:00:00-04:00
>
> When debugging the resultset in Flex, it appears that Flex has ignored
> TZ info passed and has applied the client's TZ to the date..!  
>
> (I changed my PC's TZ to GMT and the TZ offset in the resultset gets
> changed accordingly, even though the server is still passing -04:00!!!)
>
> Has anyone come up with a good work-around / fix for this...  (I'm
> still in shock on this one...)
>
> Thanks for the help!
> Paul
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>
>
>
>
>
>   



[flexcoders] Re: The complete component communication solution for Flex. ALON DP.

2007-05-16 Thread jameseisenlohr
Yes, Sean. Definitely looking forward to seeing some sample code!



--- In flexcoders@yahoogroups.com, "nakedintruderdesign"
<[EMAIL PROTECTED]> wrote:
>
> 
> Thanks a lot Sean, really looking forward to that.
> 
> Regards,
> 
> Jamie Mason
> 
> --- In flexcoders@yahoogroups.com, "helihobby"  wrote:
> >
> > Will soon upload sample code as I was emailed and asked for that.
> > 
> > As always, Thank you for all the help and support.
> > 
> > Regards,
> > 
> > Sean - http://www.HeliHobby.com
> > 
> > P.S.
> > 
> > You can read my solution for Flex Component communication here:
> > 
> > http://www.helihobby.com/html/alon_desingpattern.html
> > 
> > --- In flexcoders@yahoogroups.com, "helihobby"  wrote:
> > >
> > > The Flex Framework is a powerful and rich environment. However due 
> > to 
> > > its complex and elaborate event driven architecture it is easy to 
> > loose 
> > > control and it is hard to maintain a clear communication among all 
> > > components and objects. 
> > > 
> > > To solve this, I came up with the ALON Design Pattern and I wish to 
> > get 
> > > some feedback.
> > > 
> > > It is a the "Magic Bullet" for all communications in Flex :)
> > > 
> > > Read here:
> > > 
> > > http://www.helihobby.com/html/alon_desingpattern.html
> > > 
> > > Please post here any comments you may have.
> > > 
> > > Thank you for your support.
> > > 
> > > Sean - HeliHobby.com
> > >
> >
>




Re: [flexcoders] Filtering Best Practices Question

2007-05-16 Thread Bjorn Schultheiss

With a complex objects list this is difficult.
I would suggest doing it server side.

If the lists contained numerical or string items  you could rely on  
sorting to make your iteration process shorter.



Bjorn


On 17/05/2007, at 4:36 AM, Nate Pearson wrote:


What's the best practice when you have to compare two large lists? My
main list is 9000 objects long. I have to compare this to another
list which might have 4000 objects in it.

Right now I'm doing it the WRONG way. For each row in the Main list i
iterate through every item in the 4000 objects. As soon as I hit a
match I return a true and that exits the iteration. This is still a
very slow process.

Both lists are dynamic.

Any ideas on the right way to do this?

Thanks,

Nate








Re: [flexcoders] Equivalent of Application.application.globalVar in a Module

2007-05-16 Thread Bjorn Schultheiss
Without testing, i'm pretty sure even parentApplication refers to  
Application so you might be out of luck.
You could have a shell singleton and then register each module  
singleton via a string reference.
so you could use something like var s:ModuleSingleton =  
ShellSingleton.getInstance().getSingleton('module1');

registerSingleton();
removeSingleton();
hasSingleton();

Thats one solution, perhaps not the most elegant.


Bjorn


On 17/05/2007, at 7:49 AM, passive_thoughts wrote:


To create 'global' variables in flex without resorting to using a
singleton, the 'recommended way' seems to be using public variables in
the  and then accessing them via
Application.application, as outlined here
http://livedocs.macromedia.com/flex/2/docs/0843.html

When using modules, Application.application will always refer to the
shell application not to has anyone figured out how to
create quasi module scoped global variables? (I can't use a singleton
since I will be loading multiple instances of the same module)

V








Re: [flexcoders] Communication of data between parent and child movie.

2007-05-16 Thread Bjorn Schultheiss

Using the inbuilt event dispatching system is your best bet.
That way you can have your parent(s) and child(s) loosely coupled.

There are particular design patterns that also deal with this issue.
Personally i like the combination of DataBinding, ModelLocator 
(Singleton) and Commands, ala Cairngorm :)



Bjorn


On 17/05/2007, at 8:58 AM, ivansebastiansurya wrote:


Hi everyone,

Currently I have to write a Flex application that holds other swf
application within it (I will have a skeleton swf movie with menu on
the left hand side and when a menu item is clicked, the corresponding
sub application is loaded on the right hand side, onto an Image
control).

The problem is that how can we propagate information from the child
movie to the parent movie and vice versa? Say the sub movie does the
login procedure and return the authentication information, how can I
pass this information to the parent movie so that it can be used to
control the access given to this particular user?


Re: [flexcoders] Flex and spell check?

2007-05-16 Thread hua waveland

you may want to check out Hilary Bridel's FlexSpellCheck Component, pretty
cool.
http://www.bridel.org/?p=22

Hua

On 5/16/07, bitfacepatrick <[EMAIL PROTECTED]> wrote:


  I need to add spell check functionality to my Flex project. Has anyone
had any success implementing this type of functionality? Or suggest a
3rd party component.

 



Re: [flexcoders] Blue-Green Background color / image

2007-05-16 Thread Bjorn Schultheiss

I think the blue-green background is set in your application scope.
For example if you set Application.backgorundColor to #FF you  
should get a white screen flicker.


Bjorn

On 17/05/2007, at 2:31 AM, bsausser wrote:


Tried LiveDocs: but flickers the blue-green color and/or image.
styleName="plain"
 ... 

How can I set 1) my own color; 2) my own image; or 3) transparency
where it will not flicker the blue-green background?

Brian








Re: [flexcoders] Why no scroll bar?

2007-05-16 Thread Bjorn Schultheiss
I think its due to the way your application swf is inserted into the  
html.


It might pay to create a container within  that has  
its minWidth set.
That way you will still get your application scope scroll bars when  
the window is resized below 1024 width.



Bjorn


On 17/05/2007, at 1:51 AM, Ian Skinner wrote:

I have my base  tag set with a minWidth="1024".  
When
the browser is less this this width no scroll bars are available  
leaving
the hidden content unaccessible. Why is this and how can I allow  
access

to the hidden content?

http://www.adobe.com/2006/mxml";
layout="absolute"
creationComplete="getCalendar()"
minWidth="1024"
verticalScrollPolicy="off" horizontalScrollPolicy="on"
xmlns:mcViews="Flex.Views.*">







Re: [flexcoders] XMLNS to use same components in multiple projects

2007-05-16 Thread Bjorn Schultheiss
you can refer to your mxml-manifest.xml file found in the {FlexSDK}/ 
frameworks dir.

that way you can use xmlns:myComps="http://whatever.com/mxml/";

So basically you set your compiler to also read your new manifest file.


Bjorn

On 17/05/2007, at 1:53 AM, boy_trike wrote:

I have a few custom componets that I want to use in multiple  
projects. How can I set up a
nameSpace in each application that will reference a specific folder  
on my computer? Sort of

like XMLNS:myComps="c:\flex\mycomponents\*"

Thanks
Bruce








[flexcoders] Communication of data between parent and child movie.

2007-05-16 Thread ivansebastiansurya
Hi everyone,

Currently I have to write a Flex application that holds other swf 
application within it (I will have a skeleton swf movie with menu on 
the left hand side and when a menu item is clicked, the corresponding 
sub application is loaded on the right hand side, onto an Image 
control).

The problem is that how can we propagate information from the child 
movie to the parent movie and vice versa?  Say the sub movie does the 
login procedure and return the authentication information, how can I 
pass this information to the parent movie so that it can be used to 
control the access given to this particular user?

Also, how can I pass information from the parent movie to the child 
movie?

Thanks in advance,

Ivan.



RE: [flexcoders] Re: WebService sending dynamic XML - problem

2007-05-16 Thread Tracy Spratt
What happens if you sen the xml as a string explicitly, and then parse
it into a dom on the server?



{myXMLObject.toXMLString()}



 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of discipl4
Sent: Wednesday, May 16, 2007 6:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WebService sending dynamic XML - problem

 

Nate,

Thank you for the quick response!! :)

I did not know you could implement a WS call the way you do, very
cool, although unless Im understanding it improperly, I dont think it
will work for me. Please correct me if I am misinterpreting how your
way works.

You do ws.getMyFunction(firstName, lastName, city) .. for instance,
and your webservice gets the data in an expected size and format,
right? It goes, param1 is the firstname, param2 is the lastname, and
param3 is the city. No definition involved but it is still finite. 

What I need to do is have a flexible structure in my xml to have an
infinite amount tags inside certain blocks. 

So sometimes I might pass and xml that looks like this:


FirstName
LastName
San Diego


and sometimes I need to send this:


FirstName
LastName
San Diego
Chicago
New York


If I pass in the parameters as you have, I have no way to denote the
beginning and end of that section that contains 'n' number of elements.

Does that make sense? I know it's hairy :) I really want to keep the
XML structure. I think if I did it your way, I could pass in a ton of
parameters as key/value pairs and build the xml on the other side...
like.. ws.getMyFunction(firstname, Bill, lastname, Smith, city1,
Chicago) ... but man, then I have to dissect the nice XML object that
Flex gives you to work with.

Thanks again for your time in hashing this out with me!!

Best,

- - Dan

--- In flexcoders@yahoogroups.com 
, "Nate Pearson" <[EMAIL PROTECTED]> wrote:
>
> This is how I do it:
> http://myurl/service.asmx?WSDL
 " 
> useProxy="false" showBusyCursor="true">
> 
> 
> 
> 
> Then in action script I go ws.getMyFunction(param1, param2, param3).
> 
> You don't have to define your parameters in MXML. If you don't, Flex
> will let you send as many or as little parameters as you want. I only
> get an error if the amount of parameters that I send don't match the
> type and number on the server side.
> 
> Hope this helps,
> 
> Nate
> 
> --- In flexcoders@yahoogroups.com
 , "discipl4"  wrote:
> >
> > Hi friends - I have been wrestling with a problem that I was hoping
> > you could help me out with :)
> > 
> > I understand the premise of defining a WebService in Flex, with
> > parameters and data, and sending the data over the wire to my WSDL. 
> > However, I have a unique situation where I want to assemble a
dynamic
> > XML file and send it over a WebService. Unless you define a 1 to 1
> > mapping of parameters in Flex to a WSDL, I cant find any way to make
> > this work.
> > 
> > Example: This works just fine as an operation on a webservice - 
> > 
> > 
> > 
> > {someStringVariable}
> > 
> > 
> > 
> > This is a 1 to 1 mapping of a parameter in Flex to my WSDL, which
> > expects 1 value called myParameter.
> > 
> > However, if I pass in an XML object, SOAP will change all of my <
and
> > > to < and > to avoid breaking the SOAP envelope. I understand
> > the need to do this, but I just cant find a way around it.
> > 
> > Example:
> > 
> > var myXMLObject:XML = ""
> > 
> > 
> > 
> > {myXMLObject}
> > 
> > 
> > 
> > The resulting packet across the wire will be one
> > parameter(myparameter), with my XML as a string and all of the < and
>
> > encoded to >...etc. I have tried every hack I can think of and I
> > cant get this to work. Has anyone else had experience using a
> > dynamically sized XML as the model for a webservice?
> > 
> > Any help is MUCH appreciated :)
> > 
> > Best Regards,
> > 
> > - - Dan
> > 
> > p.s. - I have come up with ways around this.. such as sending as an
> > HTTPService with contentType="application/xml".. or decoding the
>,
> > < on the webservice side. Both of those work, but neither of those
> > fit within the webservice standards we currently apply here. Thanks
> > again.
> >
>

 



[flexcoders] How to special characters in resource bundle .properties file

2007-05-16 Thread Brian Morearty

Hi,

Does anyone know how to put special characters such as a line feed or
double quotation mark in a resource bundle .properties file?

I've tried various methods of escaping the special characters. Nothing
works.

The following all result in compile-time errors in the generated code:

label=this is in "quotes"
label=this is in \u0022quotes\u0022
label=this is in \"quotes\"
label=this is on a \nnew line
label=this is on a \u000anew line

The following don't result in a compiler error, but the text is shown
literally in the UI (no special character translation if I set the UI
element's text property instead of its htmlText property):

label=this is in "quotes"
label=this is on a 
new line

Any ideas?

- Brian Morearty
   Intuit



[flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-16 Thread Syed Mazhar Hasan Qadri
Thanks for the link, let me check it to reach any decision.

--- In flexcoders@yahoogroups.com, "barry.beattie" <[EMAIL PROTECTED]>
wrote:
>
> --- In flexcoders@yahoogroups.com, "Syed Mazhar Hasan Qadri"
>  wrote:
> >
> > Hello Barry, can you send me the download link or the swc of that HTML
> > component because i need a non-apollo HTML component for my Flex app.
> > 
> > --- In flexcoders@yahoogroups.com, "barry.beattie" 
> > wrote:
> > >
> > >
> >
>
http://www.flexcapacitor.com/htmlcomponent/examples/HTMLFrameInApplication.html
> > > 
> > > I'm using the HTML component in IFRAME mode on a canvas with other
> > > controls.
> > > 
> 
> 
> [sigh]
> 
> http://www.google.com.au/search?q=flexcapacitor+htmlcomponent.swc
> 
> 
> what about the bug in it?
>




[flexcoders] Re: WebService sending dynamic XML - problem

2007-05-16 Thread discipl4
Nate,

Thank you for the quick response!! :)

I did not know you could implement a WS call the way you do, very
cool, although unless Im understanding it improperly, I dont think it
will work for me.  Please correct me if I am misinterpreting how your
way works.

You do ws.getMyFunction(firstName, lastName, city) .. for instance,
and your webservice gets the data in an expected size and format,
right?  It goes, param1 is the firstname, param2 is the lastname, and
param3 is the city.  No definition involved but it is still finite.  

What I need to do is have a flexible structure in my xml to have an
infinite amount tags inside certain blocks. 

So sometimes I might pass and xml that looks like this:


FirstName
LastName
San Diego



and sometimes I need to send this:


FirstName
LastName
San Diego
Chicago
New York


If I pass in the parameters as you have, I have no way to denote the
beginning and end of that section that contains 'n' number of elements.

Does that make sense?  I know it's hairy :)  I really want to keep the
XML structure.  I think if I did it your way, I could pass in a ton of
parameters as key/value pairs and build the xml on the other side...
like.. ws.getMyFunction(firstname, Bill, lastname, Smith, city1,
Chicago) ...  but man, then I have to dissect the nice XML object that
Flex gives you to work with.

Thanks again for your time in hashing this out with me!!

Best,

- - Dan


--- In flexcoders@yahoogroups.com, "Nate Pearson" <[EMAIL PROTECTED]> wrote:
>
> This is how I do it:
> http://myurl/service.asmx?WSDL"; 
>useProxy="false"  showBusyCursor="true">
> 
> 
> 
> 
> Then in action script I go ws.getMyFunction(param1, param2, param3).
> 
> You don't have to define your parameters in MXML.  If you don't, Flex
> will let you send as many or as little parameters as you want.  I only
> get an error if the amount of parameters that I send don't match the
> type and number on the server side.
> 
> Hope this helps,
> 
> Nate
> 
> --- In flexcoders@yahoogroups.com, "discipl4"  wrote:
> >
> > Hi friends - I have been wrestling with a problem that I was hoping
> > you could help me out with :)
> > 
> > I understand the premise of defining a WebService in Flex, with
> > parameters and data, and sending the data over the wire to my WSDL. 
> > However, I have a unique situation where I want to assemble a dynamic
> > XML file and send it over a WebService.  Unless you define a 1 to 1
> > mapping of parameters in Flex to a WSDL, I cant find any way to make
> > this work.
> > 
> > Example:  This works just fine as an operation on a webservice - 
> > 
> > 
> >  
> >   {someStringVariable}
> >  
> > 
> > 
> > This is a 1 to 1 mapping of a parameter in Flex to my WSDL, which
> > expects 1 value called myParameter.
> > 
> > However, if I pass in an XML object, SOAP will change all of my < and
> > > to < and > to avoid breaking the SOAP envelope.  I understand
> > the need to do this, but I just cant find a way around it.
> > 
> > Example:
> > 
> > var myXMLObject:XML = ""
> > 
> > 
> >  
> >   {myXMLObject}
> >  
> > 
> > 
> > The resulting packet across the wire will be one
> > parameter(myparameter), with my XML as a string and all of the < and >
> > encoded to >...etc.  I have tried every hack I can think of and I
> > cant get this to work.  Has anyone else had experience using a
> > dynamically sized XML as the model for a webservice?
> > 
> > Any help is MUCH appreciated :)
> > 
> > Best Regards,
> > 
> > - - Dan
> > 
> > p.s. - I have come up with ways around this.. such as sending as an
> > HTTPService with contentType="application/xml".. or decoding the >,
> > < on the webservice side.  Both of those work, but neither of those
> > fit within the webservice standards we currently apply here.  Thanks
> > again.
> >
>




[flexcoders] Date - Timezone with WS

2007-05-16 Thread paulwelling
Hello,

I have a WS that returns a date.  Our server is in EDT.
Using Charles to sniff the date: 2007-05-15T00:00:00-04:00

When debugging the resultset in Flex, it appears that Flex has ignored
TZ info passed and has applied the client's TZ to the date..!  

(I changed my PC's TZ to GMT and the TZ offset in the resultset gets
changed accordingly, even though the server is still passing -04:00!!!)

Has anyone come up with a good work-around / fix for this...  (I'm
still in shock on this one...)

Thanks for the help!
Paul





[flexcoders] Equivalent of Application.application.globalVar in a Module

2007-05-16 Thread passive_thoughts
To create 'global' variables in flex without resorting to using a 
singleton, the 'recommended way' seems to be using public variables in 
the  and then accessing them via 
Application.application, as outlined here 
http://livedocs.macromedia.com/flex/2/docs/0843.html

When using modules, Application.application will always refer to the 
shell application not to has anyone figured out how to 
create quasi module scoped global variables?  (I can't use a singleton 
since I will be loading multiple instances of the same module)

V



Re: RE: [flexcoders] finding and removing nodes from xml

2007-05-16 Thread khair

This is what I use to recursively remove all Attributes specific to a
Child name or whole XML.
If anyone got a faster way I'd be glad to learn.

--Keith H--

private function
findAndRemoveAttributeNames(xml:XML,find:String,in_tags_named:String=""):XML
{
var ok:Boolean=true;
if(in_tags_named != "" && xml.localName() != in_tags_named){
ok=false;
}
if([EMAIL PROTECTED] != null && ok){
delete [EMAIL PROTECTED];
}   
var n:int=0;
var c:XML;
while(n < xml.children().length()){
c=xml.children()[n];
findAndRemoveAttributeNames(c,find);
n++;
}
return xml;
}




- Original Message -

> 
> I'm trying to find the most correct and efficient syntax to find nodes
> with a particular attribute value and remove them from an xml 
> document..
> 
> suppose my xml is :
> 
> 
> 
> 0
> 
> 
>  lastName="Smith">[EMAIL PROTECTED]  
>  lastName="lastName">[EMAIL PROTECTED] 
> 
>  lastName="davies">[EMAIL PROTECTED]  
>  lastName="me">[EMAIL PROTECTED]  
>  lastName="frack">[EMAIL PROTECTED]  
>  lastName="davees">[EMAIL PROTECTED] 
> 
> 
> 
> 
> 
> And I want to find recipients with an id of 6 and 23 and remove them
> from the xml... What is the syntax for this?
> 
> I can find those nodes into an XMLList fine... Its removing them I'm
> having fun with..
> 
> Cheers,
> Grant
> 
> 
> 
> 
> 
> 
begin:vcard
n:HAIR;KEITH
fn:KEITH HAIR
version:2.1
email;internet:[EMAIL PROTECTED]
end:vcard



RE: [flexcoders] finding and removing nodes from xml

2007-05-16 Thread Peter Farland
Does something like this work (based on your original email)? The trick
is to loop over the XMLList backwards so that you don't have to correct
the index each time the list gets smaller from the delete operation.

var xmlList:XMLList = xml..*.(attribute("id") == "6" || attribute("id")
== "24");
for (var i:int = xmlList.length(); i >= 0; i--)
{
delete xmlList[i];
}




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Wednesday, May 16, 2007 4:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] finding and removing nodes from xml



thanks peter, that using a literal delete... 
 
waht if you do delete via reference...  
 
e.g. node:XMLNode = xml.tagName["@id=3"];
 
if you delete node you've you tried to delete the new reference... how
do you delete the tag with an id attribute of 3?
 
Grant
 
 
  
...
> b l u e t u b e i n t e r a c t i v e
.: The connection between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti  

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Wednesday, May 16, 2007 3:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] finding and removing nodes from xml



http://livedocs.adobe.com/flex/2/langref/operators.html#delete_(XML
 )



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Wednesday, May 16, 2007 3:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] finding and removing nodes from xml



I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..


suppose my xml is :



0


[EMAIL PROTECTED]  
[EMAIL PROTECTED] 

[EMAIL PROTECTED]  
[EMAIL PROTECTED]  
[EMAIL PROTECTED]  
[EMAIL PROTECTED] 





And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant




 


[flexcoders] Re: access to flex app icon set?

2007-05-16 Thread Mrinal Wadhwa
Hi Linc,

In your Flex Builder2 > Flex SDK 2 > frameworks folder ...

There is defaults.css ... in that if you search TitleWindow in it you
would see that the close button is defined as follows ...

 closeButtonDisabledSkin:
Embed(source="Assets.swf",symbol="CloseButtonDisabled");
 closeButtonDownSkin:
Embed(source="Assets.swf",symbol="CloseButtonDown");
 closeButtonOverSkin:
Embed(source="Assets.swf",symbol="CloseButtonOver");
 closeButtonUpSkin:
Embed(source="Assets.swf",symbol="CloseButtonUp");


Assets.swf is also present in Flex Builder2 > Flex SDK 2 > frameworks


Mrinal Wadhwa 






--- In flexcoders@yahoogroups.com, "lincmitch" <[EMAIL PROTECTED]> wrote:
>
> Is it possible to get the icon set used in a Flex application?
> In particular I was after the "close" icon on a TitleWindow.
> I have search for pngs in the install folder "C:\Program
> Files\Adobe\Flex Builder 2". Maybe they are generated in code, so its
> not possible.
>
> Linc
>



[flexcoders] ByteArray.readMultiByte bug on Macintosh?

2007-05-16 Thread dario.drome
Hi,
I have isolated a problem that appears only when a SWF (built using 
Flex 2.0.1) runs under Macintosh:

The flex application reads a binary data package (serialized on a 
windows server) using an URLLoader
In that binary stream the server serialize things like numbers, 
single bytes and strings.
All is OK with the de-serialization of the data except with strings. 
They are serialized in a very simple way: first a byte containing the 
string's length and, then, the characters stream encoded 
using "Windows-1252".
When the application tries to de-serialize such a string, it first 
read the string's length (ByteArray.readByte) and then, it tries to 
read the "string body" using ByteArray.readMultiByte() method.
The result: when the client is a windows box (using firefox or MSIE) 
there is not any problem. However, when the client is a Mac box (OSX 
10.4 with FireFox) readMultiByte gives a different result each time 
it de-serialize the (same) binary stream.

The function where the problem is isolated is the following:

public function readString(binData:ByteArray):String
{
   var str:String="";
   var length:int = binData.readUnsignedByte();
   str = binData.readMultiByte(length, "Windows-1252");
   return str;
}

I think that I could get rid of the problem by reading each single 
string's character and applying my self the conversion from Windows-
1252 to UTF-8, but I would like to rely on ByteArray.readMultiByte.

Have anybody out there found also this problem?
Perhaps it is not a problem and I am doing something in the wrong 
way, Could anybody help?

Thanks in advance.




Re: [flexcoders] Parse Unknown XML Structure

2007-05-16 Thread John Robinson

I think you want to use XML.children() and XML.attributes().

John



On May 16, 2007, at 2:32 PM, Kevin Aebig wrote:


Hey all,



First post, so be gentle.



Back in the ol days, Flash developers had to use recursion to parse  
through an XML document. I’m finding myself again in this position,  
but don’t know how to proceed as my initial attempts don’t recurse  
currently. Also, I’d like to find out if there is a better way to  
do it with AS3 these days.




Basically I need to be able to look at every node and tell:

-  whether or not it has specific attributes

-  whether or not it has children



I know this seems easy, but the XML structure isn’t known  
beforehand, so using simple object notation seems futile.




Thanks for any help you can provide…



!k






[flexcoders] access to flex app icon set?

2007-05-16 Thread lincmitch
Is it possible to get the icon set used in a Flex application?
In particular I was after the "close" icon on a TitleWindow.
I have search for pngs in the install folder "C:\Program
Files\Adobe\Flex Builder 2". Maybe they are generated in code, so its
not possible.

Linc



RE: [flexcoders] finding and removing nodes from xml

2007-05-16 Thread Grant Davies
thanks peter, that using a literal delete... 
 
waht if you do delete via reference...  
 
e.g. node:XMLNode = xml.tagName["@id=3"];
 
if you delete node you've you tried to delete the new reference... how
do you delete the tag with an id attribute of 3?
 
Grant
 
 
  
...
> b l u e t u b e i n t e r a c t i v e
.: The connection between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti  

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Wednesday, May 16, 2007 3:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] finding and removing nodes from xml



http://livedocs.adobe.com/flex/2/langref/operators.html#delete_(XML
 )



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Wednesday, May 16, 2007 3:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] finding and removing nodes from xml



I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..


suppose my xml is :



0


[EMAIL PROTECTED]  
[EMAIL PROTECTED] 

[EMAIL PROTECTED]  
[EMAIL PROTECTED]  
[EMAIL PROTECTED]  
[EMAIL PROTECTED] 





And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant




 


[flexcoders] Re: WebService sending dynamic XML - problem

2007-05-16 Thread Nate Pearson
This is how I do it:
http://myurl/service.asmx?WSDL"; 
   useProxy="false"  showBusyCursor="true">




Then in action script I go ws.getMyFunction(param1, param2, param3).

You don't have to define your parameters in MXML.  If you don't, Flex
will let you send as many or as little parameters as you want.  I only
get an error if the amount of parameters that I send don't match the
type and number on the server side.

Hope this helps,

Nate

--- In flexcoders@yahoogroups.com, "discipl4" <[EMAIL PROTECTED]> wrote:
>
> Hi friends - I have been wrestling with a problem that I was hoping
> you could help me out with :)
> 
> I understand the premise of defining a WebService in Flex, with
> parameters and data, and sending the data over the wire to my WSDL. 
> However, I have a unique situation where I want to assemble a dynamic
> XML file and send it over a WebService.  Unless you define a 1 to 1
> mapping of parameters in Flex to a WSDL, I cant find any way to make
> this work.
> 
> Example:  This works just fine as an operation on a webservice - 
> 
> 
>  
>   {someStringVariable}
>  
> 
> 
> This is a 1 to 1 mapping of a parameter in Flex to my WSDL, which
> expects 1 value called myParameter.
> 
> However, if I pass in an XML object, SOAP will change all of my < and
> > to < and > to avoid breaking the SOAP envelope.  I understand
> the need to do this, but I just cant find a way around it.
> 
> Example:
> 
> var myXMLObject:XML = ""
> 
> 
>  
>   {myXMLObject}
>  
> 
> 
> The resulting packet across the wire will be one
> parameter(myparameter), with my XML as a string and all of the < and >
> encoded to >...etc.  I have tried every hack I can think of and I
> cant get this to work.  Has anyone else had experience using a
> dynamically sized XML as the model for a webservice?
> 
> Any help is MUCH appreciated :)
> 
> Best Regards,
> 
> - - Dan
> 
> p.s. - I have come up with ways around this.. such as sending as an
> HTTPService with contentType="application/xml".. or decoding the >,
> < on the webservice side.  Both of those work, but neither of those
> fit within the webservice standards we currently apply here.  Thanks
> again.
>




RE: [flexcoders] finding and removing nodes from xml

2007-05-16 Thread Peter Farland
http://livedocs.adobe.com/flex/2/langref/operators.html#delete_(XML)



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Wednesday, May 16, 2007 3:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] finding and removing nodes from xml



I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..


suppose my xml is :



0


[EMAIL PROTECTED]  
[EMAIL PROTECTED] 

[EMAIL PROTECTED]  
[EMAIL PROTECTED]  
[EMAIL PROTECTED]  
[EMAIL PROTECTED] 





And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant




 


[flexcoders] WebService sending dynamic XML - problem

2007-05-16 Thread discipl4
Hi friends - I have been wrestling with a problem that I was hoping
you could help me out with :)

I understand the premise of defining a WebService in Flex, with
parameters and data, and sending the data over the wire to my WSDL. 
However, I have a unique situation where I want to assemble a dynamic
XML file and send it over a WebService.  Unless you define a 1 to 1
mapping of parameters in Flex to a WSDL, I cant find any way to make
this work.

Example:  This works just fine as an operation on a webservice - 


 
  {someStringVariable}
 


This is a 1 to 1 mapping of a parameter in Flex to my WSDL, which
expects 1 value called myParameter.

However, if I pass in an XML object, SOAP will change all of my < and
> to < and > to avoid breaking the SOAP envelope.  I understand
the need to do this, but I just cant find a way around it.

Example:

var myXMLObject:XML = ""


 
  {myXMLObject}
 


The resulting packet across the wire will be one
parameter(myparameter), with my XML as a string and all of the < and >
encoded to >...etc.  I have tried every hack I can think of and I
cant get this to work.  Has anyone else had experience using a
dynamically sized XML as the model for a webservice?

Any help is MUCH appreciated :)

Best Regards,

- - Dan

p.s. - I have come up with ways around this.. such as sending as an
HTTPService with contentType="application/xml".. or decoding the >,
< on the webservice side.  Both of those work, but neither of those
fit within the webservice standards we currently apply here.  Thanks
again.



[flexcoders] finding and removing nodes from xml

2007-05-16 Thread Grant Davies
I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..
 
 
suppose my xml is :
 


  0
  
  
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
  



And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant
 



[flexcoders] Re: Parse Unknown XML Structure

2007-05-16 Thread Nate Pearson
I'm pretty new to XML in flex too.  I had about the exact same
question as you 30 min ago.

This link helped a lot:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=13_Working_with_XML_169_08.html

At the end it shows for..in and for each..in.  That should help you
walk through it.  Since you don't know anything about the XML I'm not
sure how you would get the walking started...

That link should help you learn until someone smarter answers :).

-Nate


--- In flexcoders@yahoogroups.com, "Kevin Aebig" <[EMAIL PROTECTED]> wrote:
>
> Hey all,
> 
>  
> 
> First post, so be gentle. 
> 
>  
> 
> Back in the ol days, Flash developers had to use recursion to parse
through
> an XML document. I'm finding myself again in this position, but
don't know
> how to proceed as my initial attempts don't recurse currently. Also, I'd
> like to find out if there is a better way to do it with AS3 these days.
> 
>  
> 
> Basically I need to be able to look at every node and tell:
> 
> -  whether or not it has specific attributes
> 
> -  whether or not it has children
> 
>  
> 
> I know this seems easy, but the XML structure isn't known beforehand, so
> using simple object notation seems futile.
> 
>  
> 
> Thanks for any help you can provide.
> 
>  
> 
> !k
>




[flexcoders] Parse Unknown XML Structure

2007-05-16 Thread Kevin Aebig
Hey all,

 

First post, so be gentle. 

 

Back in the ol days, Flash developers had to use recursion to parse through
an XML document. I'm finding myself again in this position, but don't know
how to proceed as my initial attempts don't recurse currently. Also, I'd
like to find out if there is a better way to do it with AS3 these days.

 

Basically I need to be able to look at every node and tell:

-  whether or not it has specific attributes

-  whether or not it has children

 

I know this seems easy, but the XML structure isn't known beforehand, so
using simple object notation seems futile.

 

Thanks for any help you can provide.

 

!k



[flexcoders] Filtering Best Practices Question

2007-05-16 Thread Nate Pearson
What's the best practice when you have to compare two large lists?  My
main list is 9000 objects long.  I have to compare this to another
list which might have 4000 objects in it.  

Right now I'm doing it the WRONG way.  For each row in the Main list i
iterate through every item in the 4000 objects.  As soon as I hit a
match I return a true and that exits the iteration.  This is still a
very slow process.

Both lists are dynamic.

Any ideas on the right way to do this?

Thanks,

Nate



[flexcoders] Labels on inner side of axis for Charts

2007-05-16 Thread Brendan Meutzner

Hi,

Before I go digging through the charting framework, I thought I'd see if
anyone else has accomplished placing the labels on the inside of the chart
axis (and better yet, having them align left when placed there), and are
willing to share code/ideas?

Thanks,

Brendan

--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


[flexcoders] Re: Flex or CF bug?

2007-05-16 Thread Jamie
Thanks Pete.  This makes perfect sense now that I think about it.

--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> Neither, it's a known requirement.
>  
> CF has the concept of "named arguments" versus ordered arguments. A
> single Object is seen as a name-value map for named parameters.
>  
> Pete
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Jamie
> Sent: Wednesday, May 16, 2007 11:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex or CF bug?
> 
> 
> 
> I blogged an issue I came across yesterday.  In short, I'm saving some
> data, passing it through a RemoteObject call to a CFC...
> 
> var leadInfo:Object = new Object();
> ...
> ro.saveLeader(leadInfo);
> 
> Doesn't work, but
> 
> var leadInfo:Object = new Object();
> ...
> ro.saveLeader(leadInfo,1);
> 
> does, though the second argument is just a dummy. I did everything I
> could think of, but I was only able to get the object into the CFC's
> arguments scope by having that dummy.
> 
> http://codingmurloc.wordpress.com/2007/05/15/passing-object-to-a-cfc-fle
> x-or-cf-bug/
>  ex-or-cf-bug/>
>




[flexcoders] Re: End result of a Fade-In effect leaves text and images pixelated (jaggered)???

2007-05-16 Thread dfortenberry
This 'may' help
Not sure if you found a solution yet, but this Fade example may help:
http://livedocs.adobe.com/flex/2/langref/mx/effects/Fade.html#include
ExamplesSummary

Regards


--- In flexcoders@yahoogroups.com, "tjcox1969" <[EMAIL PROTECTED]> wrote:
>
> I have a canvas on my application.  On that canvas I have several
> types of controls.  Input fields, text, buttons and images.  On the
> showEffect of the canvas, I use the fade effect: 
> 
> 
> 
> When my canvas appears, it fades in correctly, but the end result
> leaves  the text and image rather jaggered (pixelated on the
> edges) and it looks horrible.  If I disable the fade and just have 
the
> canvas appear, everything looks nice and crisp.  Do I need to 
issue a
> repaint or something?  Also, in my Fade effect, the I set the 
duration
> to 15000 (15 seonds as a test) but it still fades-in in about 1-2 
seconds.
> 
> Thanks for any help.
>




Re: [flexcoders] Flex on Vista?

2007-05-16 Thread Kevin Newman
You can get Flex to play nice with Vista Aero Glass by using a new 
version of Java with it (I can't remember if I manually installed a 
manifest file or not next to the javaw.exe file).

Basically, you'd set up your Flex shortcut like this:

"C:\Program Files\Adobe\Flex Builder 2\FlexBuilder.exe" -vm "C:\Program 
Files\Java\jre1.6.0\bin\javaw.exe"

It's been a while since I ran it this way in Vista (I got rid of Vista 
for other reasons), but I do remember getting it to work this way. I'd 
bet that something similar would work for the Eclipse Plugin.

Kevin N.


Kelly Birr wrote:
> I've been running Windows Vista since mid-November 2006. I find it to be 
> more stable and reliable than Windows XP. I do still have a few 
> compatibility problems with some programs and hardware devices who's 
> manufacturers have not released updates, but this is to be expected with 
> any new Windows version.
>
> As for Flex on Vista: Flex 2.01 works pretty well on Vista but is still 
> unsupported by Adobe. I use Eclipse 3.2.2, with Flex 2.01 installed as a 
> Plug-in and find it works very well. It's easily good enough for 
> production work. I also use the Subclipse add-in and find it works very 
> well.
>
> It does not play well with the new Aero Glass look though, and often 
> causes Vista to revert to the Basic look. Vista goes back to Aero once 
> Eclipse is closed. This same thing happens in many Java programs so I 
> think the problem may be JRE related and not specifically Eclipse/Flex, 
> but I'm not sure.
>
> - Kelly
>
> Steve Kellogg wrote:
>   
>> Hey Folks, I need some quick advice:
>>
>> I’ve been avoiding the switch to Vista as long as possible (simply 
>> because I didn’t want to risk an interruption in productivity).
>>
>> NOW, however I seem to have a dying laptop, and the decision has 
>> become more urgent.
>>
>> Do you guys have any feel for whether Flex/Eclipse is running ok/well 
>> on Vista? Any specific problems I should watch out for? Does anyone 
>> use the SeapineSCM plugin with it on Vista? Does Apollo seem to be ok 
>> on Vista?
>>
>> Any advice is appreciated.
>>
>>  
>> 
>
>
>
>   




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Chart components, Continued - Mx Series Zoom effect issues not drawing all

2007-05-16 Thread patricklemiuex
(I just accidentally hit enter on yahoo and it posted my incomplete
message, d'oh!)

Here's my issue I have a panel that pops up on a resize effect... I
have a chart on this panel with a lot of data, using an mx:SeriesZoom,
sometimes the tween sets the floor not at 0, but at about 20 or
thirty, refreshing the data it draws correctly the second time.

I found a way around the issue by adding a startDelay to the the
SeriesZoom, however, this produces the chart to draw once right away
when it populates and then redraw when it animates after my starDelay
of 500 milliseconds.  I turned off the visibility of the area series,
but the SeriesZoom doesn't automatically turn the visibility on when
it starts, which is odd, shouldn't it?

Ok, so if I can't seem to dispatch an event from the SeriesZoom and
then  try to get the event.currentTarget.visible=true;how do I
make this animation work correctly?



Thanks,
Patrick



[flexcoders] Charting Components - mx Series Zoom effect bug

2007-05-16 Thread patricklemiuex
I have some panels with resize effects, that pop up a chart. I notice
on super long data results in my Area Chart that the animation doesn't
tween and draw the chart completely



RE: [flexcoders] Flex and spell check?

2007-05-16 Thread Dimitrios Gianninas
I used jazzy, its for java: http://sourceforge.net/projects/jazzy
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
bitfacepatrick
Sent: Wednesday, May 16, 2007 8:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex and spell check?



I need to add spell check functionality to my Flex project. Has anyone
had any success implementing this type of functionality? Or suggest a
3rd party component.



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



RE: [flexcoders] Flex or CF bug?

2007-05-16 Thread Peter Farland
Neither, it's a known requirement.
 
CF has the concept of "named arguments" versus ordered arguments. A
single Object is seen as a name-value map for named parameters.
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jamie
Sent: Wednesday, May 16, 2007 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex or CF bug?



I blogged an issue I came across yesterday.  In short, I'm saving some
data, passing it through a RemoteObject call to a CFC...

var leadInfo:Object = new Object();
...
ro.saveLeader(leadInfo);

Doesn't work, but

var leadInfo:Object = new Object();
...
ro.saveLeader(leadInfo,1);

does, though the second argument is just a dummy. I did everything I
could think of, but I was only able to get the object into the CFC's
arguments scope by having that dummy.

http://codingmurloc.wordpress.com/2007/05/15/passing-object-to-a-cfc-fle
x-or-cf-bug/
   

 


[flexcoders] TimeChooser conponent similiar to DateChooser?

2007-05-16 Thread djbrown_rotonews
Has anyone coded up a TimeChooser component that would behave similiar 
to the DateChooser component? Something that would allow us to 
generate combo boxes on the fly essentially, taking in start time, end 
time and increments as parameters?



[flexcoders] Flex or CF bug?

2007-05-16 Thread Jamie
I blogged an issue I came across yesterday.  In short, I'm saving some
data, passing it through a RemoteObject call to a CFC...

var leadInfo:Object = new Object();
...
ro.saveLeader(leadInfo);

Doesn't work, but

var leadInfo:Object = new Object();
...
ro.saveLeader(leadInfo,1);

does, though the second argument is just a dummy. I did everything I
could think of, but I was only able to get the object into the CFC's
arguments scope by having that dummy.

http://codingmurloc.wordpress.com/2007/05/15/passing-object-to-a-cfc-fle\
x-or-cf-bug/
 


[flexcoders] End result of a Fade-In effect leaves text and images pixelated (jaggered)???

2007-05-16 Thread tjcox1969
I have a canvas on my application.  On that canvas I have several
types of controls.  Input fields, text, buttons and images.  On the
showEffect of the canvas, I use the fade effect: 



When my canvas appears, it fades in correctly, but the end result
leaves  the text and image rather jaggered (pixelated on the
edges) and it looks horrible.  If I disable the fade and just have the
canvas appear, everything looks nice and crisp.  Do I need to issue a
repaint or something?  Also, in my Fade effect, the I set the duration
to 15000 (15 seonds as a test) but it still fades-in in about 1-2 seconds.

Thanks for any help.





[flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-16 Thread barry.beattie
--- In flexcoders@yahoogroups.com, "Syed Mazhar Hasan Qadri"
<[EMAIL PROTECTED]> wrote:
>
> Hello Barry, can you send me the download link or the swc of that HTML
> component because i need a non-apollo HTML component for my Flex app.
> 
> --- In flexcoders@yahoogroups.com, "barry.beattie" 
> wrote:
> >
> >
>
http://www.flexcapacitor.com/htmlcomponent/examples/HTMLFrameInApplication.html
> > 
> > I'm using the HTML component in IFRAME mode on a canvas with other
> > controls.
> > 


[sigh]

http://www.google.com.au/search?q=flexcapacitor+htmlcomponent.swc


what about the bug in it?






[flexcoders] Re: Flex: Modular Applications

2007-05-16 Thread kyle.vanvranken
I have been having the same issue more or less. See here:

http://tech.groups.yahoo.com/group/flexcoders/message/71791

>From what it looks the only way to get most of it cleaned up is to
implement some sort of cleanup method on all your modules. Making
things like listeners weak should make this a little easier. I really
wish there was more documentation wise about "Best Practices" in
dealing with modules short of the simple examples loading a UI
component as a module. If that's all they're meant to do why bother. A
REAL example with a module that has things like a Remote Object in it.
Examples of how best to load it up AND properly unload/dispose of it all.

- Kyle


--- In flexcoders@yahoogroups.com, Christopher Olsen <[EMAIL PROTECTED]> wrote:
>
> Kyle,
> 
> Thanks a bunch this should help...
> 
> I'm guess things like producers/responders would also need to be 
> disconnected first before garbage collection happens?
> Because when i unload a module all these things appear to continue to 
> hang around.
> 
> -Christopher
> 
> kyle.vanvranken wrote:
> >
> > This might help with you're listeners.
> >
> > http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html 
> > 
> >
> > - Kyle
> >
> >
>




[flexcoders] Blue-Green Background color / image

2007-05-16 Thread bsausser
Tried LiveDocs: but flickers the blue-green color and/or image.
  styleName="plain"
   ... 

How can I set 1) my own color; 2) my own image; or 3) transparency 
where it will not flicker the blue-green background?

Brian





[flexcoders] Why no scroll bar?

2007-05-16 Thread Ian Skinner
I have my base  tag set with a minWidth="1024".  When 
the browser is less this this width no scroll bars are available leaving 
the hidden content unaccessible.  Why is this and how can I allow access 
to the hidden content?

http://www.adobe.com/2006/mxml";
   layout="absolute"
   creationComplete="getCalendar()"
   minWidth="1024"
   verticalScrollPolicy="off" horizontalScrollPolicy="on"
   xmlns:mcViews="Flex.Views.*">


[flexcoders] How can I deselect ALL buttons on a ToggleButtonBar?

2007-05-16 Thread Mike Anderson
Hello All,

I am trying to figure out a way, to deselect all the Buttons belonging
to a ToggleButtonBar Control, and I am hitting a brick wall.

I tried looping through the DataProvider using getChildAt(x) and setting
each 'Button.selected' equal to 'false' - but all that does, is removes
the dark border surrounding the presently selected Button.  Technically
the button is still selected, and it's all the more obvious in my case,
since I have a lot of styles applied to the selected Button.

I even tried setting the selectedIndex to '-1' as well as 'null' - in
hopes of putting the ToggleButtonBar back into it's "first time loaded
state", and still nothing works.

Could anybody help?

Thanks in advance,

Mike


[flexcoders] XMLNS to use same components in multiple projects

2007-05-16 Thread boy_trike
I have a few custom componets that I want to use in multiple projects.  How can 
I set up a 
nameSpace in each application that will reference a specific folder on my 
computer?  Sort of 
like XMLNS:myComps="c:\flex\mycomponents\*"

Thanks
Bruce



[flexcoders] Re: anyone using HTMLcomponent.swc? possible bug.

2007-05-16 Thread Syed Mazhar Hasan Qadri
Hello Barry, can you send me the download link or the swc of that HTML
component because i need a non-apollo HTML component for my Flex app.

--- In flexcoders@yahoogroups.com, "barry.beattie" <[EMAIL PROTECTED]>
wrote:
>
>
http://www.flexcapacitor.com/htmlcomponent/examples/HTMLFrameInApplication.html
> 
> I'm using the HTML component in IFRAME mode on a canvas with other
> controls.
> 
> When ever I click a button, the HTML content disappears within the
> HTML component. clicking on the component itself returns focus and the
> HTML appears again.
> 
> I've also got other controls - sliders - that has no effect. Also
> tried mouseUp() instead of click(). no improvement
> 
> the sample (link above) is a bit deceptive: the buttons there directly
> give the control focus back. My use just leaves the IFRAME sitting
> there independent of the actions on the rest of the canvas.
> 
> can anyone suggest things to try to pin-point exactly where the
> problem might be? I'm using it pretty simply, nothing fancy.
> 
> 
> 
>   
>   
> 
>   
>height="100%" >
>   
> 
> 
>elementType="iframe" source="{bookmark}"
> id="myframe2" width="100%"/>
>   
> 
>id="pnl_dataEntry" 
> title="Please Rate Your Response Here" y="331">
>verticalAlign="middle"
> horizontalAlign="center"> 
>   
>height="100%" id="questionText" 
>   text="[EMAIL 
> PROTECTED]"/>
>   
>   
>verticalAlign="middle"
> horizontalAlign="center">
>   
>   
>id="btnFirst" click="first()" />
>id="btnBack" click="back()" />
>   
>  
> focusOut="onRatingChange( event )" minimum="0" maximum="10"
> snapInterval="1"/>
>
>id="btnNext" click="next()"/>
>id="btnLast" click="last()"/>
>   
>width="10%"/> 
>   
>   
>   
> 
>   
>   
>   
>height="100%">
>elementType="iframe"
> source="{policyDoc}" id="myframe"/>
>   
>  
>   
>   
>   
> 
>   
>   
>




[flexcoders] Re: RTMP Server

2007-05-16 Thread Syed Mazhar Hasan Qadri
I will also like to test this, because i am willing to have such an
application for my next product that will display realtime stocks
information in the form of charts so this type of application will be
handy for me.

--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> Hi Christopher
> 
> I would be interested to know more see if it can be applied 
> to us.
> 
> -Bod
> 
> --- In flexcoders@yahoogroups.com, Christopher Olsen  
> wrote:
> >
> > For anyone interested I've been working on an RTMP server written 
> in C 
> > to handle messaging & streaming..
> > 
> > If anyone is interested in testing it out please let me know and 
> I'll 
> > let you know where you can obtain a copy of the source.
> > 
> > 
> > -Christopher
> >
>




[flexcoders] Re: Flex on Mac

2007-05-16 Thread fuad_kamal
Since switching to mac I won't ever look back...

good deal?  There is no comparison...it's like comparing a formula one
race car to a family sedanapples to oranges...totally different
engineering & performance.  Mac is a Unix OS while Windows is a memory
hogging monstrosity...the OS itself takes up half your system
resources.  So your comparison of what you can get for the money is
way off...you need a lot more RAM, bigger hard drive, faster
processor, just to support the Windows OS.  For example, I got a Mac
mini with only 512 MB of RAM and it still runs faster than Windows
machines in our household with double the RAM.

For my current contract I have to run Windows due to some requirements
from the client (has nothing to do with what mac can or can't run), so
I am running XP on Parallels on my MacBook pro.  I have to admit,
having 3 Gig of ram is nice b/c I can dedicate a full 1.5 gig to
Windows.  Windows XP on my macbook pro actually runs FASTER than on my
Windows laptop, which I am now donating to my kids b/c w/the Macbook
pro I no longer have any need to have a windows box on my desk. 
Honestly when I am not working on this contract I shut down parallels
and never use it for any other purpose - Mac more than fullfills all
my needs.  I run Flex builder on both platforms, only difference is
that you can't break the panels apart onto mutliple monitors on Mac,
that's due to a limitation in Eclipse on Mac.

I also run all the CS3 apps on my mac, they run even better than the
CS2, which seemed plenty fast; the fact that CS2 was running through
Rosetta wasn't noticeable at all, but then again, my machine does have
3 gig of RAM...

btw you can get a discount on your mac (10-15%) by going through the
AppleStore rather than getting it online, if you open a business
account, otherwise if you're a student or instructor you can get an
academic discount.

--- In flexcoders@yahoogroups.com, "Celikdemir, Oguz"
<[EMAIL PROTECTED]> wrote:
>
> I have both ( PC and MAC )
> 
>  
> 
> My MyBook 1.86 Ghz Core Duo, 2 GB ram and standard Harddisk. I used Flex
> and Flash on MyBook, PC as well. I didn't see any differences, worked
> well. But there ise one advantage if you buy MyBook, you can use 2
> different operating system at the same time ( OSX and XP ). But I have
> got one suggestion for you. If you want to buy MyBook, choose big
> harddisk that 60 GB it's not enough for me.
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Arleston Lueders
> Sent: Monday, May 14, 2007 7:14 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Flex on Mac
> 
>  
> 
> Thanks guys. At this moment I can affoard a MacBook 2.0GHz, 1gb RAM (up
> to 2), 80gb HD.
> Is it a good deal get a Mac? because with the same price you can get a
> better PC (with non-board video, more ram and hd,...).
> My main goal is using Adobe tools (Flash, Flex, Fireworks, ColdFusion...
> ), and if the machine supports... will run some games like counter
> strike, winning eleven.
> Its a big question... pc or apple. :)
> 
> Thanks again! 
> (sorry about my english)
> 
> 2007/5/11, Johannes Nel <[EMAIL PROTECTED]>:
> 
> runs fine.
> 
> On 5/11/07, Arleston Lueders < [EMAIL PROTECTED]
>  > wrote:
> 
>   Hello everybody!
>   
>   I'm thinking in buy a MacBook. Does anyone have a Mac here? What
> do you think about it?
>   And the Flex will run normal on Mac, right?
>   
>   Thanks,
>   Arleston 
> 
> 
> 
> 
> -- 
> j:pn 
> http://www.lennel.org
>




[flexcoders] Re: Flex on Vista?

2007-05-16 Thread camlinaeizerous
I grabbed Vista Ultimate when it was released. I'm running a custom
built liquid computer at home and the nice aero glass theme etc and
some of the flashy stuff is quite nice running on it. Flex was a non
issue to install and get running.

CF MX7 wasn't exactly strait forward though as you need to change a
few things to get it to work properly on IIS7. I spent a while
browsing trying different things to get it to work properly and I wish
I kept a list of everything I had to do to get it to run properly
because there wasn't a single lone fix that worked I had to combine
them all together.

Vista has its own set of issues like the voice recognition
vulnerability where audio played over the speakers can be picked up by
the voice recognition executing voice commands form the audio file.
This is and isn't a vulnerability but every where I see it brought up
it is a vulnerability and not a feature unless it is a message form MS. 

Side Note: For a laptop stick with XP as Vista eats more ram then XP
did just like what ever comes after Vista will eat even more.



[flexcoders] How to create skin for buttons in a ButtonBar?

2007-05-16 Thread arpan srivastava
Hi All,

I have two buttons in a buttonbar, and in one button I have to make a 
triangle in upward direction and in other a triangle in downward direction to 
show up and down directions. I tried the following code but was not able to get 
the triangle.

Here is what i did:

var a:Array = new Array();

var temp:Object = new Object();
temp["labelField"] = "First";
temp["iconField"] = TriangleDownSkin;
a.push(temp);

temp = new Object();
temp["labelField"] = "Second";
temp["iconField"] = TriangleUpSkin;
a.push(temp);

buttonBar.labelField = "labelField";
buttonBar.iconField = "iconField";
buttonBar.dataProvider = a;

and "TriangleUpSkin" class  is implemented as below: 

public class TriangleUpSkin extends ProgrammaticSkin
{
public function TriangleUpSkin()
{
super();
}

override protected function updateDisplayList(w:Number, h:Number):void{
  var g:Graphics = graphics;
g.moveTo(w / 2,h/4);
g.lineTo((3*w)/4, (3*h)/4);
g.lineTo(w / 4,(3*h)/4);
g.lineTo(w / 2,h/4 );
g.endFill(); 
}
}

i cannot embed any file, is there anyway i can create triangle?





 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

[flexcoders] Re: Flex and spell check?

2007-05-16 Thread billy_d_white
--- In flexcoders@yahoogroups.com, "bitfacepatrick" <[EMAIL PROTECTED]> wrote:
>
> I need to add spell check functionality to my Flex project. Has anyone
> had any success implementing this type of functionality? Or suggest a
> 3rd party component.
>

Hilary Bridel's got one of the best spell checkers going. Check out
http://www.bridel.org/?p=22



Re: [flexcoders] Cross-scripting availability

2007-05-16 Thread Sergey Kovalyov

Are there any examples?

On 5/15/07, Antoine Malpel <[EMAIL PROTECTED]> wrote:


  Sergey Kovalyov a écrit :

 Hi All!

Is it possible to load SWF compiled from Flash 8 IDE into Flex application
and access its methods and properties? If so, how?

Thank you in advance!

Sergey.

You can't, or use Flash 9 (avm2 swf), and then you acces prop etc via
SWFLoader.content._mc.prop etc





[flexcoders] Why GridItem is inherited from HBox, not Box?

2007-05-16 Thread Sergey Kovalyov

Hi All!

Why GridItem is inherited from HBox, not Box? It makes impossible to change
the direction property.

Sergey.


[flexcoders] form serialization

2007-05-16 Thread Derrick Anderson
hey does anyone know of a way to serialize a form into an object?

similar to $('formID').serialize() in prototype.js?

I would like to take a form and create an xml object with it.

thanks




   
Pinpoint
 customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

[flexcoders] Flex emoticon

2007-05-16 Thread Oleg Filipchuk

Hello,
I'm developing Flex chat and face the problems to display emoticons in
TextArea. After some googling I've found this one
http://labs.flexcoders.nl/?p=52
Do you have any idea how did they handle to display inline images in that
TextArea?
Thanks

--
Best regards,
Oleg Filipchuk


Re: [flexcoders] Can any one explain Cairngorm architecture

2007-05-16 Thread Douglas McCarroll
Hi Praveen,

I've gathered the best resources I've found here:

http://www.brightworks.com/technology/adobe_flex/cairngorm.html

Another good resource:

http://cairngormdocs.org/

Especially our blog's 'Cairngorm Code Examples" category:

http://cairngormdocs.org/blog/?cat=6

Best way to learn is to dive into the examples, study the code, and 
study the articles, perhaps starting with Steven Webster's six-part series.

HTH,

Douglas



Praveen Saxena wrote:
>
> Hi,
> I am new to Flex can any one explain me The Cairngorm architecture,
> and provide me the very simple example which implement the Cairngorm.
> and also some study materials.
> -Regards,
> Praveen
>
>  



[flexcoders] Re: Embedding XML

2007-05-16 Thread brandona788
I'm not sure about the limitations yet.  I wouldn't imagine the
filesize would affect anything (xml parsing is fast and the filesize
effects the swf size).

We are precompiling our SWF for deployment and the compile time isn't
that long for our use.  But you do have to recompile everytime you
change the XML file.

We made this decision because we didn't see a need to have a HTTP
request for every XML file when we need it.  If it were loaded when we
load our ModelLocator we load the XML files and it seems rather fast
right now.

--- In flexcoders@yahoogroups.com, "barry.beattie" <[EMAIL PROTECTED]>
wrote:
>
> any limitations in doing it this way?
> 
>  - file size?
>  - change the xml content and need to re-compile?
> 
> I only ask because I've been using HTTPrequest and to be honest my use
> might not need to ... (now that you've brought this method up)
> 
> thoughts? opinions?
> 
> thanx
> b
>




RE: [flexcoders] Problem with post

2007-05-16 Thread Petro Bochan
Hi,

 

Try not to use the HTTPService with the URLVariables class. The latter
is best used with the URLLoader class. I had fairly good experience with
that. That might be the reason why the first variable is not being sent
properly.

 

Cheers,

Petro

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guillermo Villasana
Sent: Tuesday, May 15, 2007 8:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with post

 

Is there any reason why if i send with method post, one variable will 
not be sent ?

var params:URLVariables=new URLVariables();
var myservice:HTTPService=new HTTPService();

params.var1=event.values[0];
params.var2=event.values[1];
params.var3=event.values[2];

myservice.method="post";
myservice.url.etc

myservice.send(params);

the odd things is that var1 no matter where I put it, is not sent, but 
if I just change .method="post" to .method="get"
then everything is sent correctly...
any thoughts?

Terius

 



Re: [flexcoders] Getting Parent's Style

2007-05-16 Thread Johannes Nel

also look into inheritbale style declarations

On 5/15/07, Alex Harui <[EMAIL PROTECTED]> wrote:


   Parent is of type DisplayObjectContainer which does not have getStyle.



So you have to cast:



(parent as IStyleClient).getStyle("backgroundColor");

Or

IStyleClient(parent).getStyle("backgroundColor");


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Geoffrey
*Sent:* Tuesday, May 15, 2007 10:10 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Getting Parent's Style



I'm converting some Flex1.5 code to flex 2.0.  One of the classes (a
commonly used custom component) uses the following to set the background
color to that of the parent container:


__labelCanvas.setStyle("backgroundColor")=_parent.getStyle("backgroundColor");


This doesn't work in Flex2.0, nor does parent.getStyle("backgroundColor");

How can I get a style attribute of a parent container?

BTW, I can't just let it be transparent because I need to obscure some
drawn graphic elements of the parent, but I want __labelCanvas to have the
same background color as the parent.  Also, the parent might not always be
the same color, else I would set a CSS descriptor for ! it.

Thanks,
GT

 





--
j:pn
http://www.lennel.org


Re: [flexcoders] flash remoting documentation

2007-05-16 Thread Derrick Anderson
thanks for the help guys, i was not sure what the path in the source was 
relative to- seems it's relative to the url that is running the flash app- all 
makes sense now

d.

- Original Message 
From: João Fernandes <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2007 5:25:05 AM
Subject: Re: [flexcoders] flash remoting documentation









  



the source attribute is the path that ColdFusion will use to 
resolve 

your CFC.

If you use com.winn.leads it will expect to find leads.cfc inside 

com/winn/ folder.

It's just like when you use createObject( 'component' ,'some.dot. notation' ).



If you are using cf with apache/iis yes, the endpoint url should be 

something targeting port 80 (standard).

Also, set a fault handler for you remote object and run it in debug mode 

and take a look into the error returned.



Also, I don't know if it was a typo but you should call myCfc.getInfo( )



João Fernandes



Derrick Anderson wrote:

> Hi,

>

> I am running CF standard 7.0.2 as it says is required to do this.

>

> in my C:\CFusionMX7\ wwwroot\WEB- INF\flex\ flex-services. xml file i have 

> the 1 standard channel, without the port (cuz im not using built in 

> server, right?)

>

>  class="mx.messaging .channels. AMFChannel" >

>

> 

>  false

> 

> 

>  class="coldfusion. flash.messaging. io.amf.serialize rs.TypedObjectDe 
> serializer" 

> />

> 

> 

>  

>

> THEN, in my flex application very simply i am defining

>

>  source="com. winn.leads" result="remotingCFC Handler(event) "/>

>

> but when i run

>

> myCfc.getInfo

>

> which should return me a number (just for testing), nothing happens- 

> the handler function puts the response in a textarea- i have an http 

> proxy running and i don't even see a request going out.  i was getting 

> an error that it could not find that CFC but somehow i fixed that.

>

> what i need to know is:

> the SOURCE attribute of the mx:RemoteObject class, what path is this 

> from?  how is the endpoint url in the channel related to the URL i'm 

> using for the site, and what is the best way to access components in 

> my site (not in the cfusionMX7\wwwroot) .

>

> thanks,

> d.

>

> - Original Message 

> From: João Fernandes 

> To: [EMAIL PROTECTED] ups.com

> Sent: Tuesday, May 15, 2007 2:38:44 PM

> Subject: Re: [flexcoders] flash remoting documentation

>

> Hi Derrick,

>

> what is your problem about connecting flex with CF? what version of CF

> are you running?

>

> João Fernandes

>

>

>

>  - - - - - -

> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge 

>  222>to 

> see what's on, when.

>  






  
















   
Get
 the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

RE: [flexcoders] Re: Security sandbox problem

2007-05-16 Thread Alex Harui
Looks like you're running an effect that needs to touch the bits.  You
may have to disable the effect or change to a different effect.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of justme1231331
Sent: Tuesday, May 15, 2007 10:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Security sandbox problem

 

Error is as follows..

When at the site select the 'Digital Life' news feed and click on
"Photos: TiVo and Tina's wedding". It will display the description. When
you click on the 'X' in the description pane is when the error comes up.
Not sure how long that article will be there for, it is a live feed.


SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
http://www.quad-com.ca/flex/index.swf
  cannot access
http://dw.com.com/clear/c.gif?ts=1115768950&edId=3&prtnr=CNET%20Networks
,%20Inc.&oid=2300-1041-6183647&ptId=2547&onId=1041&sId=17&asId=6183647&a
stId=1&CTYPE=rss_feeds&CVAL=6183647
 . A policy file is required, but
the checkPolicyFile flag was not set when this media was loaded.
 at flash.display::BitmapData/draw()
 at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds()
 at mx.effects.effectClass! es::MaskEffectInstance/::initMask()
 at mx.effects.effectClasses::MaskEffectInstance/startEffect()
 at mx.effects.effectClasses::ParallelInstance/play()
 at mx.effects::EffectInstance/startEffect()
 at mx.effects::Effect/play()
 at mx.effects::EffectManager$/::createAndPlayEffect()
 at
mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::e
ventHandler()
 at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven
tFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at mx.core::UIComponent/setVisible()
 at mx.core::UIComponent/set visible()
 at index/hidecnetdescription()
 at index/__btnhidecnet! description_click()

--- In flexcoder! [EMAIL PROTECTED] roups.com, "Alex Harui" <[EMAIL PROTECTED]> 
wrote:
>
> What error are you getting? Post the full text of the error and call
> stack.
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of justme1231331
> Sent: Monday, May 14, 2007 7:57 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Security sandbox problem
> 
> 
> 
> I'm rebuilding my website using flex and so far having some fun but I 
> seem to have run into a problem regarding security.
> 
> I built a miniature RSS reader on the side which grabs headlines from 
> CNet. To get around the obvious security problem, I reference a local 
> cfm page that goes and gets the feed for me. The feed descriptions are

> html based, no problem for a textArea. The problem is that some of
the! 
> descriptions have images in them.
> 
> If there is an image, the displaying animation will play, the image 
> will show. When exiting the display, the sandbox error comes up and
the 
> whole layout gets screwed up.
> 
> I think this is a bug somewhere. Check it out for yourself.
> 
> http://www.quad-com.ca/flex  
> 
> Source is available.
>

 



[flexcoders] detached entity .LazyInitializationException? urgently

2007-05-16 Thread bdevis76
Hi to all,
i'm disperate with my prblem.
I have this scenario:
1)I'm using jms/mdb ejb3 with jboss 4.2
2)I'm using FDS with Consumer/Producer comp.

My mdb

  public void onMessage(Message message) {
  try {
   
   
Clienti _msg = (Clienti)
((ObjectMessage)message).getObject();
System.out.println("MessageBean onMessage"
+_msg.getNome());
ClientiFacadeRemote
facade=(ClientiFacadeRemote)CachingServiceLocator.getInstance().getRemoteHome(ClientiFacade.class);
Clienti _cli=facade.findByName(_msg.getNome());
System.out.println("onMessage toString "+_cli.toString());
Clienti _cl = new Clienti(_cli);
//to queue 
Send(_cl);



this my ClientFacade
@Stateless
//@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class ClientiFacade implements ClientiFacadeRemote {

@PersistenceContext()

private EntityManager em;
  //private EntityManagerFactory entityManagerFactory =
Persistence.createEntityManagerFactory("NuovVdeUN");
  //EntityManager em = entityManagerFactory.createEntityManager();
   

/** Creates a new instance of ClientiFacade */
public ClientiFacade() {
}

public void create(Clienti clienti) {
em.persist(clienti);
}

public void edit(Clienti clienti) {
em.merge(clienti);
}

public void destroy(Clienti clienti) {
em.merge(clienti);
em.remove(clienti);
}

public Clienti find(Object pk) {
return (Clienti) em.find(Clienti.class, pk);
}

public List findAll() {
   
return em.createQuery("select object(o) from Clienti as
o").getResultList();
}

public Clienti findByName(String nome) {
Clienti _cli
=(Clienti)em.createNamedQuery("Clienti.findByNome").setParameter("nome",nome).getSingleResult();
em.clear();
return _cli;
}

}

vde.com.ejb.vo.Clienti is my EJB3 Entity with some Lazy collection
ActionScript DTO
   import mx.collections.ArrayCollection;
   [Managed]
   [RemoteClass (alias="vde.com.ejb.vo.Clienti")]
   public class Clienti
..


I have made 30 test/example  with Persistence.Extended @Steful etc.
my last test using EntityManager.clear for detached entity...
but my ActionScript dto always try to initialize all my collection
lazy and throws my exception "Lazy  and
flex.messaging.io.ArrayCollection.(ArrayCollection.java:44


Why if my backend doesn't initiliaze some Lazy Collection why my Flex
wonts that all lazy collection are initilaze? Pls it's a week that i
have this problem.
I have read in www.graniteds.org (oper source alternative) .."With
GDS, you can keep those uninitialized references with lazy"... but how
i can doing this with Fds.
I have also download  Live Cycle data beta but i have the same problem.
Can you help me pls? 
Devis










[flexcoders] mouseClickData

2007-05-16 Thread Giro
If i place a mouseclickdata on a ColumnChart, flex builder say me  "Cannot
resolve attribute 'mouseClickData' for component type
mx.charts.ColumnChart."

 

Any idea because this happend.

 

Thk.

Giro.



[flexcoders] Determining column display order in a DataGrid

2007-05-16 Thread cuddlygunchi
Hello,

I have a datagrid whose columns are being populated by an array of 
DataGridColumn objects.

The initial order of display of these columns in the grid is the order 
in which i choose to add the column objects in the array.

But when a user drags the columns around, how can I determine the new 
order in which the columns are being displayed? I would like to trigger 
an event when the columns are rearranged and be able to determine the 
index at which a particular column is being displayed in a grid at that 
time.

I have verified that my array providing values to the datagrid.columns 
is unchanged even after the column order has been changed by drag-drop.

Any clue would be much appreciated.

Many Thanks,
Aman




[flexcoders] Flex and spell check?

2007-05-16 Thread bitfacepatrick
I need to add spell check functionality to my Flex project. Has anyone
had any success implementing this type of functionality? Or suggest a
3rd party component.



RE: [flexcoders] Flex on Mac

2007-05-16 Thread Celikdemir, Oguz
I have both ( PC and MAC )

 

My MyBook 1.86 Ghz Core Duo, 2 GB ram and standard Harddisk. I used Flex
and Flash on MyBook, PC as well. I didn't see any differences, worked
well. But there ise one advantage if you buy MyBook, you can use 2
different operating system at the same time ( OSX and XP ). But I have
got one suggestion for you. If you want to buy MyBook, choose big
harddisk that 60 GB it's not enough for me.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Arleston Lueders
Sent: Monday, May 14, 2007 7:14 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex on Mac

 

Thanks guys. At this moment I can affoard a MacBook 2.0GHz, 1gb RAM (up
to 2), 80gb HD.
Is it a good deal get a Mac? because with the same price you can get a
better PC (with non-board video, more ram and hd,...).
My main goal is using Adobe tools (Flash, Flex, Fireworks, ColdFusion...
), and if the machine supports... will run some games like counter
strike, winning eleven.
Its a big question... pc or apple. :)

Thanks again! 
(sorry about my english)

2007/5/11, Johannes Nel <[EMAIL PROTECTED]>:

runs fine.

On 5/11/07, Arleston Lueders < [EMAIL PROTECTED]
 > wrote:

Hello everybody!

I'm thinking in buy a MacBook. Does anyone have a Mac here? What
do you think about it?
And the Flex will run normal on Mac, right?

Thanks,
Arleston 




-- 
j:pn 
http://www.lennel.org

 

 



[flexcoders] Can any one explain Cairngorm architecture

2007-05-16 Thread Praveen Saxena
Hi, 
   I am new to Flex can any one explain me The Cairngorm architecture,
 and provide me the very simple example which implement the Cairngorm.
 and also some study materials.
-Regards,
 Praveen



RE: [flexcoders] Difference between getChild and getAtomationChild

2007-05-16 Thread Sasha Magee
OK, let's try this again, 
 
As Johannes guessed, the automationChild is used by the automated
testing system so that automation scripts can reflect the logical
component hierarchy, rather than the display component hierarchy. 
 
Unless you are developing custom components that will be tested with the
Flex automated testing integration, you shouldn't need to pay any
attention to the automationChild.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Johannes Nel
Sent: Tuesday, May 15, 2007 5:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Difference between getChild and
getAtomationChild



my guess its the interface for QTP


On 5/15/07, Tom Chiverton <[EMAIL PROTECTED]
 > wrote: 

On Tuesday 15 May 2007, pmotzfeldt wrote:
> Hi, I am wondering what the difference between a regular child
and an 
> automation child of for instance an UIComponent.


Some children are for purely GUI purposes, such as a title bar
or label.

--
Tom Chiverton
Helping to administratively repurpose bricks-and-clicks clusters

on: http://thefalken.livejournal.com
 



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 St James's Court Brown Street Manchester M2 2JF.  A
list of members is available for inspection at the registered office.
Any reference to a partner in relation to Halliwells LLP means a member
of Halliwells LLP. Regulated by the Law Society. 

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

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



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


(Yahoo! ID required)

mailto:[EMAIL PROTECTED]
 








-- 
j:pn 
http://www.lennel.org  


 


Re: [flexcoders] Flex on Mac

2007-05-16 Thread Adam Reynolds
Personally I would get a PC BUT only because you are not limiting 
yourself to running Adobe products. You want a play machine.

As you are running CF and X databases as well I would recommend 2GB of 
RAM. Graphics card is not so important.




Arleston Lueders wrote:
>
> Thanks guys. At this moment I can affoard a MacBook 2.0GHz, 1gb RAM 
> (up to 2), 80gb HD.
> Is it a good deal get a Mac? because with the same price you can get a 
> better PC (with non-board video, more ram and hd,...).
> My main goal is using Adobe tools (Flash, Flex, Fireworks, 
> ColdFusion... ), and if the machine supports... will run some games 
> like counter strike, winning eleven.
> Its a big question... pc or apple. :)
>
> Thanks again!
> (sorry about my english)
>
> 2007/5/11, Johannes Nel <[EMAIL PROTECTED] 
> >:
>
> runs fine.
>
> On 5/11/07, *Arleston Lueders* < [EMAIL PROTECTED]
> > wrote:
>
> Hello everybody!
>
> I'm thinking in buy a MacBook. Does anyone have a Mac here?
> What do you think about it?
> And the Flex will run normal on Mac, right?
>
> Thanks,
> Arleston
>
>
>
>
> -- 
> j:pn
> http://www.lennel.org 
>
>
>  



Re: [flexcoders] Difference between getChild and getAtomationChild

2007-05-16 Thread Peter Hall

Correct. getAutomationChild() is a method of the IAutomationObject
interface, and only returns children that also implement that interface.
IAutomationObject is part of the mx.automation package, which is designed
for automated testing. So basically, it's a filter for testing tools so they
only have to look at objects that can be automated. The Flex extension for
Mercury QTP is currently (I think) the only commercial tool that makes use
of it.

Peter

On 5/15/07, Johannes Nel <[EMAIL PROTECTED]> wrote:


  my guess its the interface for QTP


On 5/15/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 15 May 2007, pmotzfeldt wrote:
> > Hi, I am wondering what the difference between a regular child and an
> > automation child of for instance an UIComponent.
>
> 
> Some children are for purely GUI purposes, such as a title bar or label.
>
> --
> Tom Chiverton
> Helping to administratively repurpose bricks-and-clicks clusters
> on: http://thefalken.livejournal.com
>
> 
>
> 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 St James's Court Brown Street Manchester M2 2JF.  A list of members is
> available for inspection at the registered office. Any reference to a
> partner in relation to Halliwells LLP means a member of Halliwells LLP.
> Regulated by the Law Society.
>
> 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 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


--
j:pn
http://www.lennel.org

 



Re: [flexcoders] Changing alpha for modal window?

2007-05-16 Thread Michael Schmalle

Hi,

var global:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global");
global.setStyle("modalTransparency", 50);

Peace, Mike

On 5/15/07, candysmate <[EMAIL PROTECTED]> wrote:


  I've used
_global.style.modalTransparency = 50;

to change the alpha of a modal window in Flash in the past. However,
I'm not sure how to do this in Flex 2.

I have created a popUp with this function:

private function growerPopup(): void
{
growerPopupDialog = PopUpManager.createPopUp(this,
dialogs.growerSearchDialog, true) as TitleWindow;
PopUpManager.centerPopUp(growerPopupDialog);
}

How do I change the alpha for this popUp please?

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Removing Framework dependencies using ASDoc

2007-05-16 Thread Igor Costa

Simple pass this argument -exclude-class or -exclude-dependencies in your
asdoc.exe

best
--
Igor Costa

On 5/16/07, Carlos Rovira <[EMAIL PROTECTED]> wrote:


  Hi,

I'm trying to create asdocs for a library of as classes and I have a
problem with flex framework dependencies. I'm searching for a solution
for the problem but with no luck yet.

My question is: how I can exclude the flex framework classes from my
documentation?

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





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


[flexcoders] Re: Removing Framework dependencies using ASDoc

2007-05-16 Thread Carlos Rovira
Ok, I found it specifiyng the framework swcs the classes are not
documented :)

Sorry for the noise ;)

2007/5/16, Carlos Rovira <[EMAIL PROTECTED]>:
> Hi,
>
> I'm trying to create asdocs for a library of as classes and I have a
> problem with flex framework dependencies. I'm searching for a solution
> for the problem but with no luck yet.
>
> My question is: how I can exclude the flex framework classes from my
> documentation?
>
>
> --
> ::| Carlos Rovira
> ::| http://www.carlosrovira.com
> ::| http://www.madeinflex.com
>


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


Re: [flexcoders] flash remoting documentation

2007-05-16 Thread João Fernandes
the source attribute is the path that ColdFusion will use to resolve 
your CFC.
If you use com.winn.leads it will expect to find leads.cfc inside 
com/winn/ folder.
It's just like when you use createObject('component','some.dot.notation').

If you are using cf with apache/iis yes, the endpoint url should be 
something targeting port 80 (standard).
Also, set a fault handler for you remote object and run it in debug mode 
and take a look into the error returned.

Also, I don't know if it was a typo but you should call myCfc.getInfo()



João Fernandes


Derrick Anderson wrote:
> Hi,
>
> I am running CF standard 7.0.2 as it says is required to do this.
>
> in my C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-services.xml file i have 
> the 1 standard channel, without the port (cuz im not using built in 
> server, right?)
>
>  class="mx.messaging.channels.AMFChannel">
>
> 
> false
> 
> 
>  class="coldfusion.flash.messaging.io.amf.serializers.TypedObjectDeserializer" 
> />
> 
> 
>  
>
> THEN, in my flex application very simply i am defining
>
>  source="com.winn.leads" result="remotingCFCHandler(event)"/>
>
> but when i run
>
> myCfc.getInfo
>
> which should return me a number (just for testing), nothing happens- 
> the handler function puts the response in a textarea- i have an http 
> proxy running and i don't even see a request going out.  i was getting 
> an error that it could not find that CFC but somehow i fixed that.
>
> what i need to know is:
> the SOURCE attribute of the mx:RemoteObject class, what path is this 
> from?  how is the endpoint url in the channel related to the URL i'm 
> using for the site, and what is the best way to access components in 
> my site (not in the cfusionMX7\wwwroot).
>
> thanks,
> d.
>
> - Original Message 
> From: João Fernandes <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, May 15, 2007 2:38:44 PM
> Subject: Re: [flexcoders] flash remoting documentation
>
> Hi Derrick,
>
> what is your problem about connecting flex with CF? what version of CF
> are you running?
>
> João Fernandes
>
>
>
> 
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge 
> to 
> see what's on, when.
>  



[flexcoders] Removing Framework dependencies using ASDoc

2007-05-16 Thread Carlos Rovira
Hi,

I'm trying to create asdocs for a library of as classes and I have a
problem with flex framework dependencies. I'm searching for a solution
for the problem but with no luck yet.

My question is: how I can exclude the flex framework classes from my
documentation?


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


[flexcoders] Re: RTMP Server

2007-05-16 Thread bhaq1972
Hi Christopher

I would be interested to know more see if it can be applied 
to us.

-Bod

--- In flexcoders@yahoogroups.com, Christopher Olsen <[EMAIL PROTECTED]> 
wrote:
>
> For anyone interested I've been working on an RTMP server written 
in C 
> to handle messaging & streaming..
> 
> If anyone is interested in testing it out please let me know and 
I'll 
> let you know where you can obtain a copy of the source.
> 
> 
> -Christopher
>




[flexcoders] Re: Set panel width dynamically?

2007-05-16 Thread chrisellem.flexfactory
thanks



[flexcoders] HELP! How to get a subnode in such a XML data?

2007-05-16 Thread xyjaws
var cc: XML = 

  


  
;

trace(cc..node.(@data=="a"));

I hope it will return the node of 
however, it returns null;

Great thanks to anyone give helps.




Re: [flexcoders] flash remoting documentation

2007-05-16 Thread Derrick Anderson
Hi,

I am running CF standard 7.0.2 as it says is required to do this.

in my C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-services.xml file i have the 1 
standard channel, without the port (cuz im not using built in server, right?)




false





  

THEN, in my flex application very simply i am defining



but when i run

myCfc.getInfo

which should return me a number (just for testing), nothing happens- the 
handler function puts the response in a textarea- i have an http proxy running 
and i don't even see a request going out.  i was getting an error that it could 
not find that CFC but somehow i fixed that.

what i need to know is:
the SOURCE attribute of the mx:RemoteObject class, what path is this from?  how 
is the endpoint url in the channel related to the URL i'm using for the site, 
and what is the best way to access components in my site (not in the 
cfusionMX7\wwwroot).

thanks,
d.

- Original Message 
From: João Fernandes <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 15, 2007 2:38:44 PM
Subject: Re: [flexcoders] flash remoting documentation









  



Hi Derrick,



what is your problem about connecting flex with CF? what version of CF 

are you running?



João Fernandes




  
















   
Boardwalk
 for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's 
economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

[flexcoders] Re: Set panel width dynamically?

2007-05-16 Thread fuekor06
Hello,

just use VBox.percentWidth

regards

ralph

--- In flexcoders@yahoogroups.com, "chrisellem.flexfactory" 
<[EMAIL PROTECTED]> wrote:
>
> 
> inside function
> 
> 
> vBox.width = 900;  // This works fine but I want a percent
> 
> vBox.width ="100%"; // This errors. any help appreciated.
> 
> Regards
> 
> Chris
>




RE: [flexcoders] Set panel width dynamically?

2007-05-16 Thread Ravi Kumar Gummadi
Try

 

vBox.percentWidth 

 


** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.

**



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chrisellem.flexfactory
Sent: Wednesday, May 16, 2007 1:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Set panel width dynamically?

 


inside function

vBox.width = 900; // This works fine but I want a percent

vBox.width ="100%"; // This errors. any help appreciated.

Regards

Chris

 



[flexcoders] Changing alpha for modal window?

2007-05-16 Thread candysmate
I've used 
_global.style.modalTransparency = 50;

to change the alpha of a modal window in Flash in the past. However,
I'm not sure how to do this in Flex 2.

I have created a popUp with this function:

private function growerPopup(): void
{
  growerPopupDialog = PopUpManager.createPopUp(this,
dialogs.growerSearchDialog, true) as TitleWindow;   
  PopUpManager.centerPopUp(growerPopupDialog);
}

How do I change the alpha for this popUp please?





[flexcoders] Set panel width dynamically?

2007-05-16 Thread chrisellem.flexfactory

inside function


vBox.width = 900;  // This works fine but I want a percent

vBox.width ="100%"; // This errors. any help appreciated.

Regards

Chris



  1   2   >