[flexcoders] Re: external XML to image tile

2008-01-15 Thread simonjpalmer
You haven't said where your xml files live, so I am going to presume
you have a server infrastructure to deliver them.  If you don't then
you either need to make one or use the desktop version of Flex, Air. 
If you need guidance on how to make a server then I think it is
outside this forum (go and look at JBoss/J2EE or PHP or ColdFusion or
.Net if you don't ever want your server to run outside Windows). 
There are many ways of getting the data back, but since you are
talking about XML my guess would be HTTP (rather than AMF).

The flash player is single threaded so you don't get truly
asynchronous processing on the client, however your responders for
your server requests are event driven and will fire asynchronously and
be processed as the responses come in from the server (the order is
random, the processing is synchronous).

Use the XML object in flex to handle the payload of your response. 
That will do all the parsing for you and give you access to your
model.  You'll have to traverse the data yourself to get at the
elements and attributes you need for display but that is all well
documented and fairly simple and I am sure you have seen it, the only
bit missing is the knowledge of your model(s) and only you have that.

There are many ways of displaying lists, and many examples of how to
do it.  Start by reading up about the HorizontalList control and
ItemRenderers.  If your model is reasonably coherent then there a
chance you could bind directly to it from your display controls, which
is about the simplest client implementation you can get.

good luck and hth get you started
Simon

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

 It has been awhile since I dabbled in Flex, but I am back.
 
 Can someone help me to:
 
 - parse an external XML file
 - write the contents (Image thumbnail, text name, text description,
 and id#) to some sort of tile horizontally
 - I actually will have 7-10 XML files, each with similar content
 above, that must be read asynchronisly (sp.?)
 
 I feel this should be an easy task, but all of the examples I am
 finding are with local XML and really simple XML... my XML is external
 and not at all simple
 
 Any advice is appreciated,
 Miss Giggy





Re: [flexcoders] Re: Exit

2008-01-15 Thread Savan Patel
Thanks Guys,

Alger, thanks for solving the doubts :) I am sure it will help others as well. 
:)

Regards,
Savan
- Original Message 
From: Randy Martin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 12 January, 2008 9:26:20 AM
Subject: RE: [flexcoders] Re: Exit

You can implement a simple exit function for a flex app by putting this code in 
the head of index.template. html:
 
script language=javascrip t type=text/javascri pt
!--
  function closeWin() {
window.close( );
  }
//--
/script
 
Then, you can do this in your app:
 
mx:Script
  ![CDATA[
import flash.external. ExternalInterfac e;
 
private function exitApp():void {
  ExternalInterface. call(closeWin );
}
  ]]
/mx:Script
 
And somewhere in the mxml:
 
mx:Button id=btnExit label=Exit click=exitApp( )/
 
Works like a charm.
 
~randy




From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Alger Werft
Sent: Friday, January 11, 2008 1:43 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Re: Exit



 While I worked on the item, I was calling a JS function on
window.onbeforeunl oad event, which shall transfer the call to flex's
logout function. But it did not helped me to resolve the issue. 
 I did not come to know where I was wrong, in making a call or in
accessing flex's code..

I once used window.onunload for that. But I do not know if that's the
best suited event for your needs, especially when it comes to
crossbrowser issues.

 ** If we add any JS functions in index.template. html and compile
the code, All the flex classes can acces that JS function without
importing anything, right? Please let me know about this.

That is correct!

 
 Thanks Again,
 Savan
 - Original Message 
 From: Alger Werft alger.werft@ ...
 To: [EMAIL PROTECTED] ups.com
 Sent: Thursday, 10 January, 2008 4:51:50 PM
 Subject: [flexcoders] Re: Exit
 
 Hi Savan,
 
 yes, just include the JS Function in the head/ of your
 index.template. html
 
 Alger
 
 --- In [EMAIL PROTECTED] ups.com, flex.fusion flex.fusion@ ...
wrote:
 
  Hi Alger,
  
  Can you please tell us where shall we have these  _global_ 
  JavaScript functions written? 
  
  Shall there be separate JavaScripts being called from 'header or 
  body' portion of index.template. html project file? 
  
  Or there is someother way you wanted to convey, please guide about 
  it.
  
  Thanks  Regards,
  Savan
  
  --- In [EMAIL PROTECTED] ups.com, Alger Werft alger.werft@  
  wrote:
  
   You are trying to access the JavaScript object 'window', but you 
  are in 
   the ActionScript world, and there the window you are looking for 
  does 
   not exist.
   
   Write a _global_ JavaScript function that calls window.close( ).
   And from AS call that Function.
   
   JS
   function closeWindow( ) {
   window.close( )
   }
   
   
   AS
   ExternalInterface. call(closeWindo w);
   
   
   Alger
   
   John wrote:


Hi there,

I am trying to create a close window routine that will be run 
  when a
user clicks the exit button using the following:

!-- Routine to Close down the Courseware --
mx:Script
![CDATA[
private function closeWindow( ):void{
ExternalInterface. call(window. close);
}
]]
/mx:Script

Now I am getting silly errors like Access of unidentified 
  property
window. Can someone please shed some light on this

   
  
 
 
 
 
 
 
 Did you know? You can CHAT without downloading messenger. Go
to http://in.messenger .yahoo.com/ webmessengerprom o.php/





No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.516 / Virus Database: 269.19.0/1218 - Release Date: 1/10/2008 1:32 
PM

__._,_..___ 
Messages in this topic (7) Reply (via web post) | Start a new topic 
Messages 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE


Earn your degree in as few as 2 years - Advance your career with an AS, BS, MS 
degree - College-Finder.net. 
 
Change settings via the Web (Yahoo! ID required) 
Change settings via email: Switch delivery to Daily Digest | Switch format to 
Traditional 
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe Recent Activity
 83New Members
Visit Your Group 
Yahoo! Finance
It's Now Personal
Guides, news,
advice  more.
Search Ads
Get new customers.
List your web site
in Yahoo! Search.
Best of Y! Groups
Check out the best
of what Yahoo!
Groups has to offer.. 



  Why delete messages? Unlimited storage is just a click away. Go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

[flexcoders] Blurry Bitmap Data

2008-01-15 Thread Giles Roadnight
Hi All

I am using a book component that you can turn the pages of ect.

It's working fine except for one really annoying bug.

When I mouse over the corner of the page it starts to draw the flipped
page. To do this it caches the bitmap data for the front and back of
the page that is being flipped and then draws it onto a shape's
graphics object using bitmap fill.

The image that is drawn is ever so slightly blurry and moves about 1
pixel away from the page it replaces.

I have checked that the render object is in the same place as the
page, that the graphics object is being drawn at the correct
coordinates and that the bitmap data is ok. If I draw it to a shape
attached to Applciation.application it comes out fine. If I draw it to
the internal render object or to a new shape that I added myself they
are both blurry.

Any suggestions?

Thanks




[flexcoders] Does Flex needs a url to a WSDL to know how to connect to a webservice?

2008-01-15 Thread João
Hello, 

we have built a Flex application that connects to Web-Services created
by a third-party. The problem is that our client doesn't want the WSDL
publicly accessible. 
Is there a way to have Flex connecting to web-services without the
need of an WSDL? For example, by embedding the WSDL on the swf, or
something like that? I have tried removing the WSDL argument and
hardcoding the endpointURI on the WebService tag, but this way it
simples doesn't work.

Is there a solution?

Thanks, 

João Saleiro



[flexcoders] Volume of VideoDisplay Component reset everytime video source is changed or rewind?

2008-01-15 Thread Nadeem Manzoor
Hello Flex Gurus


I am having a problem with VideoDisplay Component that every time i rewind
the videoDisplay its volume is restored . I am using an HSlider as volume
control and i have Bind the Volume property to HSlider like

videoDisplayInstance.volume={HSliderInstance.value}

Now when i change the video source or i just replay the video its volume is
again restored to its default value. How can i solve this issue

I am sure someone on this must had this problem.


-- 
Regards,

Nadeem Manzoor


Re: [flexcoders] Blurry Bitmap Data

2008-01-15 Thread Giles Roadnight
I've managed to fix this now - as is always the way with these things you
struggle with it for 3 days, post to the list then work it out yourself!

The problem was that the shape x coordinate was at 495.5 so I Math.floor ed
it
The parent was also at a non-integer x position so I still had the problem.

basically the shape you are rendering to needs to have integers for it's
stage based x and y coordinates.

Hope that helps someone else with the same problem.

Giles

On Jan 15, 2008 10:10 AM, Giles Roadnight [EMAIL PROTECTED] wrote:

   Hi All

 I am using a book component that you can turn the pages of ect.

 It's working fine except for one really annoying bug.

 When I mouse over the corner of the page it starts to draw the flipped
 page. To do this it caches the bitmap data for the front and back of
 the page that is being flipped and then draws it onto a shape's
 graphics object using bitmap fill.

 The image that is drawn is ever so slightly blurry and moves about 1
 pixel away from the page it replaces.

 I have checked that the render object is in the same place as the
 page, that the graphics object is being drawn at the correct
 coordinates and that the bitmap data is ok. If I draw it to a shape
 attached to Applciation.application it comes out fine. If I draw it to
 the internal render object or to a new shape that I added myself they
 are both blurry.

 Any suggestions?

 Thanks

  




-- 
Giles Roadnight
http://giles.roadnight.name


[flexcoders] Flex + WebORB for PHP

2008-01-15 Thread Manu Dhanda

Hii,

I am trying to run the sample application for this combo.
While am not getting any compile errors, I am constantly being presented by
CHANNEL DISCONNECTED error.

Any thoughts like where am going wrong?

Thanks,
Manu.
-- 
View this message in context: 
http://www.nabble.com/Flex-%2B-WebORB-for-PHP-tp14837956p14837956.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Loading CSS at startup a possible solution?

2008-01-15 Thread stephen50232
Hi, I was asked by my boss the other day how the Flex application I'm 
building will support branding for multiple clients. So I've come up 
with an idea that I'd like to run past you out there to see if its a 
good idea or if there is a better way to do this.

So the idea is a client loads our system via their own unique URL, 
then when the system loads its in their colour scheme and loads their 
logo. Then each client will see the same layout of the system, but in 
their colours scheme with their logo.

To get the colour scheme and logo to load I was thinking of creating 
CSS files and complining them into SWF's then part of the 
creationComplete function in the main.mxml file I'd make a remote 
call to the database and get the address of the style sheet (which is 
held in a database) for that client. I'd know which client it is by 
reading the URL (I know I can do this in ColdFusion, but can it be 
done in Flex?) 

Then in the result function of the remote call I'd pass the url of 
the stylesheet to the StyleManager.loadStyleDeclarations function.

So that's my idea, a couple of things I'm not sure of, one can flex 
read the calling URL, and will I be able to make remote calls as the 
application is loading?

What do you think of my idea is there a better way of doing this?

Thanks

Stephen



Re: [flexcoders] Loading CSS at startup a possible solution?

2008-01-15 Thread Tom Chiverton
On Tuesday 15 Jan 2008, stephen50232 wrote:
 So that's my idea, a couple of things I'm not sure of, one can flex
 read the calling URL, and will I be able to make remote calls as the
 application is loading?

Yes, and yes (you can make your default view empty and/or write your own 
preloader.

-- 
Tom Chiverton
Helping to centrally generate high-end customers
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


--
Flexcoders 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] Re: Does Flex needs a url to a WSDL to know how to connect to a webservice?

2008-01-15 Thread javaguru_uk
--- In flexcoders@yahoogroups.com, João [EMAIL PROTECTED] wrote:

 Hello, 
 
 we have built a Flex application that connects to Web-Services created
 by a third-party. The problem is that our client doesn't want the WSDL
 publicly accessible. 
 Is there a way to have Flex connecting to web-services without the
 need of an WSDL? For example, by embedding the WSDL on the swf, or
 something like that? I have tried removing the WSDL argument and
 hardcoding the endpointURI on the WebService tag, but this way it
 simples doesn't work.
 

The way you connect to webservices is the same for every language. You
need to know which methods are provided by the service. That is what
the WDSL does. It establishes the agreement rules between the service
client and the service provider. In other words, it tells you the
functions you can call and the data types used.

I am not quite sure what you mean by embedding the WSDL in the swf,
because the WSDL file stays on the server end, and swf is a client
interface, not server.

When you say publicly available, do you mean available on the
internet? Or is the application working in an intranet?

Have a look at
http://www.systinet.com/doc/ssc-60/primer/html/how.web.services.work.html
so that you can understand how webservices work, and then just dive
into the manuals to know how to use them in Flex. But, basically, you
need to provide an endpointURI, because without it the webservice
component doesn't know where the webservice is.

It is the same as if you are trying to send some data to a php or jsp
script. Will you be able to send the data if you don't provide the url
address of that script? Same thing with webservices.

Hope that helps.

All the best,

Fidel.




Re: [flexcoders] Flex + WebORB for PHP

2008-01-15 Thread Scott Melby
I believe WebORB has a forum for this type of thing... but I think the 
last time I had this issue it was due to not copying the weborb.php as 
directed on this page 
http://www.themidnightcoders.com/weborb/php/gettingstarted.htm.  See the 
big red IMPORTANT section for details.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Manu Dhanda wrote:



Hii,

I am trying to run the sample application for this combo.
While am not getting any compile errors, I am constantly being 
presented by

CHANNEL DISCONNECTED error.

Any thoughts like where am going wrong?

Thanks,
Manu.
--
View this message in context: 
http://www.nabble.com/Flex-%2B-WebORB-for-PHP-tp14837956p14837956.html 
http://www.nabble.com/Flex-%2B-WebORB-for-PHP-tp14837956p14837956.html

Sent from the FlexCoders mailing list archive at Nabble.com.

 


Re: [flexcoders] Does Flex needs a url to a WSDL to know how to connect to a webservice?

2008-01-15 Thread Tom Chiverton
On Tuesday 15 Jan 2008, João wrote:
 we have built a Flex application that connects to Web-Services created
 by a third-party. The problem is that our client doesn't want the WSDL
 publicly accessible.

In what way ?
You can have the API require a login, for instance, but the only other 
approach would be a VPN along side the Flex application.

 Is there a way to have Flex connecting to web-services without the
 need of an WSDL? 

WSDL is what enables web servies. You can't have one and not the other, unless 
you are just doing simple XML RPC or whatever.

-- 
Tom Chiverton
Helping to conveniently orchestrate cross-media content
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


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


RE: [flexcoders] Flex 2 and Vista

2008-01-15 Thread Merrill, Jason
No solutions, but I feel your pain.  I've had major trouble installing
Flexbuilder 2 and Flexbuilder 3 beta trials on Vista Home Premium, I
never was able to get it to work.  That after multiple proper
uninstalls/re-installs and asking on this list about it. Extremely
disappointing.  The installers ran, and then when you go to launch, it
gives an error and fails (can't recall what the error was, but it was
Flex specific, not a Vista error).  Installs of FB trials on Windows XP
worked fine.
 
However, you mentioned you also installed the Flex SDK, which I have
installed on Vista Home Premium and it works fine in conjunction with
FlashDevelop as the editor.  I don't know if installing the SDK is what
messed up my FB trials, as you may be experiencing that as well.
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



[flexcoders] Problem with button size when skinning

2008-01-15 Thread mnorrstrand
Hi, 

I'm using a runtime CSS to skin my app, but for some reason my buttons
won't resize according to the skin. I am not using scale9 since the
app is not resizable by the user and the button skin is a static image
loaded as a symbol from a .swf. The button remains squashed and
deformed, but if I create it using Actionscript and addChild, it works
perfectly.
I have tried loading the styles both after and before
creationComplete, using
StyleManager.loadStyleDeclarations(mySkin.swf) (a compiled CSS), but
nothing works.
The button uses styleName=myButton as property, and in the CSS it
looks like this:

.myButton {
upSkin: Embed(source=styles.swf, symbol=btn_up);
disabledSkin: Embed(source=styles.swf, symbol=btn_disabled);
overSkin: Embed(source=styles.swf, symbol=btn_over);
downSkin: Embed(source=styles.swf, symbol=btn_over);
}
The mxml tag looks like this:
mx:Button x=67 y=180 id=myButton click=onClick()
styleName=myButton/

The skin is visible but distorted. As I don't know the size of the
button skin at runtime (possible to use other skins), I can't set the
size initially. This works fine however (ie looks the way it should):

var btn:Button = new Button();
btn.styleName = myButton;
btn.x = 85;
btn.y = 80;
addChild(btn); 

I've been looking at examples that work fine using the exact same
technique, what is the problem?

Regards



Re: [flexcoders] Error #2038: File I/O Error when uploading file

2008-01-15 Thread Pete Mackie

Charles:  http://www.xk72.com/charles
and
ServiceCapture: http://kevinlangdon.com/serviceCapture

are both excellent network sniffing proxies and are nominally priced  
(free trials). Both are well supported by their authors too.


You will be curiously surprised by what flows back and forth over the  
client to server wire.


Personally, I can't imagine developing and debugging Flex code on the  
client without fully viewing the outgoing and incoming packets. I can  
guarantee that you will soon wonder who you ever work without a  
network sniffing proxy.


Pete Mackie
-
On Jan 14, 2008, at 2:45 PM, Seth Hodgson wrote:

Use a network sniffer to monitor the Http traffic for you upload and  
the Http response. The plugin API exposed by Firefox doesn’t provide  
any useful Http error information to the player in many situations,  
and when this happens the player dispatches a generic 2038 error  
which is the best it can do given the circumstances. Inspecting the  
network traffic should let you identify the underlying issue.




Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of tuomas.glad

Sent: Monday, January 14, 2008 7:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error #2038: File I/O Error when uploading file

Hi,

I'm trying to upload file to server with Firefox and I'm getting error
2038. With IE everything seems to be fine.

Any ideas what might cause this?

Thanks,
Tuomas








[flexcoders] Application domain and Modules

2008-01-15 Thread Gregor Kiddie

Is there any reason why the below code would not work? Although I see the 
module getting loaded when watching the debugger, and I can see that the 
modules always get different Application domains, nothing ever gets added to 
the Content Pane. It does when I load the module without the new 
ApplicationDomain.

The module consists of a MXML view which is just a label, bound to a singleton 
AS class. What I'm aiming for is the ability to load a module with a singleton 
into the same application repeatedly, and have the modules act completely 
seperately (i.e. there is two instances of the singleton, one for each module).

Rogerg.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical 
width=100% 
height=100%

mx:Script
![CDATA[
import mx.modules.ModuleLoader;

private function addModule() : void {
var loader : ModuleLoader = new ModuleLoader();
loader.url = SampleModule.swf;
contentPanel.addChild(loader);
}

private function addAppModule() : void {
var loader : ModuleLoader = new ModuleLoader();
loader.applicationDomain = new ApplicationDomain();
loader.url = SampleModule.swf;
loader.loadModule();
contentPanel.addChild(loader);
}
]]
/mx:Script

mx:HBox
mx:Button id=addButton label=Add a module - SAME 
click=addModule() /
mx:Button id=addAppButton label=Add a module - NEW 
click=addAppModule() /
/mx:HBox

mx:VBox id=contentPanel width=100% height=100% /

/mx:Application


_
Get Hotmail on your mobile, text MSN to 63463!
http://mobile.uk.msn.com/pc/mail.aspx

[flexcoders] Re: How to use air to read Excel file?

2008-01-15 Thread César P .
If you have a Java backend you can do it with
JExcelApi
http://jexcelapi.sourceforge.net/

or POI
http://poi.apache.org/

I have used both in some web applications.



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

 Recently, i meet a problem, how to use air to read .xls file. Search
 in the google, there is little messages about it? 
 Can anyone tell how to handle this, Thanks!
 
 dormouse





[flexcoders] Re: Does Flex needs a url to a WSDL to know how to connect to a webservice?

2008-01-15 Thread javaguru_uk
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 In what way ?
 You can have the API require a login, for instance, but the only other 
 approach would be a VPN along side the Flex application.

I have a question regarding authentication and security. Has anyone
tried webservice security with flex? 



[flexcoders] Creating an LCDS project under a custom web app folder as opposed to flex.war

2008-01-15 Thread sigiscark

Hi,

The Flex documentation - Building and Deploying Flex Applications,
Chapter 3, page 45 - states that you can create your Flex project
under your own Java web application folder (a opposed to the flex.war
folder), but is very scarce with details.

Anyone to enlighten us ?

What should a Java web application folder contain so that Flex Builder
allows to create a Flex project within it ?

E.g you would have:

flex.war
applications.war

flex.war is the LCDS WAR file/folder. applications.war is the Java web
application folder under which we want to create our Flex projects.

Regards,
Karl Sigiscar.




[flexcoders] HTTPService - save DataGrid data

2008-01-15 Thread markgoldin_2000
I am using HTTPService to bring data from server. My DataGrid data is 
an xml. In order to save do I need to convert DataGrid data before 
sending it back to the server?

Thanks



[flexcoders] XMLSocket Send().

2008-01-15 Thread wanderingwithoutlight
Hi,

I'm trying to setup a really simple XMLSocket connection.
The SWF (the client) and the Java class (the server) are both running
in local on my Mac Laptop.

I used the example in the LiveDocs to get started:
http://livedocs.adobe.com/labs/flex3/html/help.html?content=17_Networking_and_communications_5.html

I'm able to make the SWF to connect to the Java server. But the data
are only sent when the SWF is closed. I mean when I send data using
xmlsock.send(xmlFormattedData); the data are not received by the
java server until I closed the running SWF. When I close the SWF I can
see the received data in the trace produced by the java server. 

What am I missing ?

//h



[flexcoders] XMLConverter - Library to help convert Value Objects to XML and back

2008-01-15 Thread attesaman
Hi everyone,
XMLConverter is an Actionscript library that converts Value Objects to 
XML, and vice-versa. It uses a combination of reflection, converters, 
and hints in your code to produce the XML you need for your back-end 
applications. It was written after having good experiences with 
XStream whilst writing Java backends for our Flex applications and not 
being able to find a suitable equivalent in Actionscript. 

I have written a quick doc on how to use the library here: 
http://www.customware.net/repository/display/FLEX/Integrating+Flex+with
+XML+using+XMLConverter

Thanks,
Daren



[flexcoders] [help] how to reize and drapdrop image?

2008-01-15 Thread stevetsh
Hi all,

after I used the www.drawanywhere.com, I want to know how to do the
two great functions: online image resizing and save the status of my
works?

thanks
steve



Re: [flexcoders] Datagrid - Adding Running Total Row

2008-01-15 Thread Merle Reine
You need to use the server for calculations.  Use a database query (mysql?)
to grab the datagrid data and total and export to xml.  then use the xml for
the datagrid.

example
xml
data
  header
 1Order Number/1
 2Quantity/2
 3Price/3
  /header
  items
item1a1/itema
item1b4/item1b
item1c25.00/item1c
  /items
  items
  item2a1/item2a
  item2b3/item2b
  item2c12.25/item2c
  /items
  quantity total7/quantity total
  price total37.25/price total
/data
/xml


Hope that makes sense as It is 2am and I am going back to bed.

I assume you are using php and mysql of course because who isn't.  ;)



On Jan 14, 2008 2:21 PM, Jehanzeb Musani [EMAIL PROTECTED] wrote:

   Hello,

 I need to know that whether DataGrid or
 AdvancedDataGrid in Flex supports running totals? Let
 say I have the following data.

 Order Number Quantity Price
 ---
 1..4..25.00
 2..3..12.25
 3..11.10.00
 
 3..18.246.75
 

 The dataprovider contains the first three rows of the
 aforementioned table. The requirement is that the grid
 should calculate the total of the data in the
 dataprovider.

 I can manually add the running total row in the data
 provider so that grid can display that row. But the
 next requirement is that the running total row should
 be displayed in different backcolor, forecolor and
 font.

 Can you tell me how can I implement the running total
 functionality in Flex?

 Regards,
 Jehanzeb

 __
 Never miss a thing. Make Yahoo your home page.
 http://www.yahoo.com/r/hs
  




-- 
Merle Reine
Email Address: echo [EMAIL PROTECTED] | perl -pe 'y/a-z/n-za-m/'


Re: [flexcoders] HTTPService - save DataGrid data

2008-01-15 Thread Scott Melby
Is there a reason that you can't use SharedObject to save the grid size, 
etc. on the client side?


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



markgoldin_2000 wrote:


I am using HTTPService to bring data from server. My DataGrid data is
an xml. In order to save do I need to convert DataGrid data before
sending it back to the server?

Thanks

 


[flexcoders] Flex to Flash developers

2008-01-15 Thread molandim
Hello

I have been working with flash since the version 4.0, and since there
I worked with actionscript. Today I only work with actionscript,
developing classes to several application in flash.

Then I decided to try flex and because my early knowledge I believe
that flex would be a piece of cake, but it is not. It seems that I am
starting learning from the basic. 

Is there any material, tutorial, for flex to flash developers?

Thanks.



RE: [flexcoders] Re: Flex 2 and Vista

2008-01-15 Thread Greg Hess
Hi Kerry,

I am running Eclipse 3.1.2 - Flex Builder 2 plug-in on both Vista Business and 
Home Premium. I did encounter NTFS permission issues when performing the 
install to the Program Files directory, and changing the dir permissions 
resolved the issue, granting my user acct full permissions.

Hope that helps,

Greg

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kerry 
Thompson
Sent: Tuesday, January 15, 2008 5:52 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flex 2 and Vista


 My development environment is MyEclipse + Flex Builder 2 plugin.

Thanks, Chris. I'm reinstalling, but I'm using the Flex Builder stand-alone,
without Eclipse. If that doesn't work, I'll try using Eclipse.

Cordially,

Kerry Thompson



Re: [flexcoders] HTTPService - save DataGrid data

2008-01-15 Thread Scott Melby
Just re-read this and realized I may have mis-understood the question 
:)  If you want to save data from grid back to server after user changes 
it, take a look at DataGrid.itemEditEnd event.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Scott Melby wrote:


Is there a reason that you can't use SharedObject to save the grid 
size, etc. on the client side?


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com


markgoldin_2000 wrote:


I am using HTTPService to bring data from server. My DataGrid data is
an xml. In order to save do I need to convert DataGrid data before
sending it back to the server?

Thanks

 


[flexcoders] Re: Flex + Spring + Hibernate - Lazy=true

2008-01-15 Thread andrii_olefirenko
hi, 
these problems caused mainly by AMF3 which is quite low level and
sessionless. as i understand AMF3, it uses references for these
objects only that are in the same request, so it assumes that neither
server nor client remembers what objects were already sent. that's the
main problem - just having this session aware protocol implemented
will make all communication lazy by default. (in addition, it would be
nice to be able to control how deeply object graph should be
serialized for each particular request)

regards, 
Andrii Olefirenko
 

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

 We haven't released the source for blazeds yet but it is coming.  It
 does not contain any AS source generation but I think that is easy to
 layer on and there are a bunch of decent implementations out there.
 There is better support for customizing the serialization process in
 blazeds (improved over 2.5.1).  The beta for blazeds has some of this
 but we are adding even more between beta and the release.  
 
  
 
 Implementing lazy loading is a bit of a pain with hibernate if you have
 to do it using remote object.  There are two major issues:
 
  
 
 1)   the class names of the generated wrapper classes used by
 hibernate mess up the mapping of the class names used to find the right
 AS class.  This one is easy to get around with this PropertyProxy
 mechanism.   In fact, LC DS contains the source to a PropertyProxy
 implementation (HibernatePropertyProxy.java) which you can use with
 remote object to strip the generated class name off before
 serialization.  This has the side effect of returning empty versions of
 all non-loaded lazy properties which brings us to problem 2).  Note that
 hibernate has different mechanisms for doing the lazy loading.. it can
 do byte code modification but I haven't used that technique so I'm not
 sure how it works here. 
 
 2)   If you did not fetch a property with lazy=true in hibernate
 before the session is closed, the attempt to access that property during
 serialization fails with the session closed error.  To get around
 this, you can make sure you access all properties you need before the
 serialization.. this is the approach used by LC DS but because it has a
 model of the association properties, you don't have to code it up
 yourself.  It is done by the assembler so it is automatic.Another
 hacky approach is to put a servlet filter in which opens up a hibernate
 session before calling the MessageBrokerServlet, then close the session
 once it returns.  That means you lose control over the hibernate
 sessions in your application and you have a transaction which is open
 for the entire duration of the request which is not very flexible.
 There might also be performance problems if you have a
 session/transaction open while you are doing I/O.  Not sure that will be
 a problem but these are the reasons we went with the prefetch
 mechanism in LC DS's hibernate assembler.
 
  
 
  In terms of the issues with hibernate in 2.5 and earlier versions, one
 of the trickiest things is that you need to make your
 data-management-config.xml match up with the hibernate config.  We're
 hoping to get a chance into a future version which makes this not
 necessary since the configs are pretty similar.  You also need to do the
 AS code which matches the Java code yourself (or use a 3rd party code
 gen tool).  
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of andrii_olefirenko
 Sent: Friday, January 11, 2008 5:46 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex + Spring + Hibernate - Lazy=true
 
  
 
 Assemblers are more for CRUD apps. And even with Hibernate assembler, 
 i haven't achieved lazy loading (it was old version of FDS and maybe 
 i didn't try hard but anyway). 
 If anyone has been able to implement lazy loading with LCDS 2.5, let 
 me know so at least i will be assured that this is possible :)
 in addition to lazy loading, there are also problems of multiple 
 instances if the same object, and the need to manually write 
 actionscript counterparts of java objects. IFAIK, there no tool for 
 automated generation AS3 classes out of java classes in BlazeDS. For 
 big projects with permanent changes to the objects it is pain to 
 manually maintain both AS3 and java obejcts sync.
 
 it would be nice to implement all these features in open-sourced 
 BlazeDS, but i didn't find any source code in distribution as for 
 now. 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Rodrigo Pereira 
 Fraga rpffoz@ wrote:
 
  Oh my god
  
  =/
  
  But who uses the LCDS, it does not contain a HibernateAssembler 
  which implements the use of lazy?
  
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , andrii_olefirenko andriyo@ 
  wrote:
  
   BlazeDS (and LCDS as far as i remember) doesn't support this out 
 of 
   box. 

[flexcoders] What's the minimize version of Flash Player for running Flex 3 SWF?

2008-01-15 Thread flexawesome

Hey there,


Flex 3 will be out early this year. I'd like to know what's the
minimize Flash player version for running Flex 3 SWF?

Any official documents?

Have a nice day



[flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread Jeff Krueger
Hello,
 
I am trying to find more detailed information about how Adobe AIR is able 
to support a disconnected session.  I believe I read somewhere that it is using 
a sqlanywhere DB, but I could be 100% wrong on that.  My question is I am 
wondering if the temporary storage of this information is encrypted in any way. 
 We are looking at creating an AIR application that will take credit cards.  
You can imagine the regulations around that.  So I was wondering if there is 
any documentation as to the details of how the disconnected sessions are 
implemented in AIR.  So far I have not been able to find anything.  Any help on 
this would be greatly appreciated.
 
Thanks
 
Jeff


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] Flex + WebORB for PHP

2008-01-15 Thread Manu Dhanda

I had copied it as directed ( in the output folder).
But, still it's not working.

Any other reasons??

Thanks.
Manu.


Scott Melby-3 wrote:
 
 I believe WebORB has a forum for this type of thing... but I think the 
 last time I had this issue it was due to not copying the weborb.php as 
 directed on this page 
 http://www.themidnightcoders.com/weborb/php/gettingstarted.htm.  See the 
 big red IMPORTANT section for details.
 
 hth
 Scott
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com
 
 
 
 Manu Dhanda wrote:


 Hii,

 I am trying to run the sample application for this combo.
 While am not getting any compile errors, I am constantly being 
 presented by
 CHANNEL DISCONNECTED error.

 Any thoughts like where am going wrong?

 Thanks,
 Manu.
 -- 
 View this message in context: 
 http://www.nabble.com/Flex-%2B-WebORB-for-PHP-tp14837956p14837956.html 
 http://www.nabble.com/Flex-%2B-WebORB-for-PHP-tp14837956p14837956.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  
 
 

-- 
View this message in context: 
http://www.nabble.com/Flex-%2B-WebORB-for-PHP-tp14837956p14841554.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread Paul Andrews
- Original Message - 
  From: Jeff Krueger 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, January 15, 2008 4:26 PM
  Subject: [flexcoders] Adobe AIR Disconnected storage with Credit Cards


  Hello,

   

  I am trying to find more detailed information about how Adobe AIR is able 
to support a disconnected session.  I believe I read somewhere that it is using 
a sqlanywhere DB, but I could be 100% wrong on that.  My question is I am 
wondering if the temporary storage of this information is encrypted in any way. 
 We are looking at creating an AIR application that will take credit cards.  
You can imagine the regulations around that.  So I was wondering if there is 
any documentation as to the details of how the disconnected sessions are 
implemented in AIR.  So far I have not been able to find anything.  Any help on 
this would be greatly appreciated.

How about encrypting them in the application?



If the application is disconnected, you won't be able to verify the cards. Most 
websites don't keep credit card details (unless the user specifically allows 
it) so credit cards and a disconnected application sound like a challenge. I 
can't remember the last time I gave credit card info that wasn't verified on 
the spot.



Paul


  Thanks

   

  Jeff


Re: [flexcoders] What's the minimize version of Flash Player for running Flex 3 SWF?

2008-01-15 Thread Tom Chiverton
On Tuesday 15 Jan 2008, flexawesome wrote:
 Flex 3 will be out early this year. I'd like to know what's the
 minimize Flash player version for running Flex 3 SWF?

9, although 6 onwards can be 'seemlessly' upgraded with JavaScript.

-- 
Tom Chiverton
Helping to economically negotiate plug-and-play mindshares
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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


--
Flexcoders 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] Re: What's the minimize version of Flash Player for running Flex 3 SWF?

2008-01-15 Thread flexawesome
--- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote:

 
 Hey there,
 
 
 Flex 3 will be out early this year. I'd like to know what's the
 minimize Flash player version for running Flex 3 SWF?
 
 Any official documents?
 
 Have a nice day



hey, v9 is required but I am not quit sure, what's the minor version
for Flex 3? 

For example 9.048? or 9.115 ?

Cheers



[flexcoders] Re: external XML to image tile

2008-01-15 Thread missgiggygirl
Thank you Simon for the overview. :)

The XML is done by someone else, and is already done, so that is not
an issue.

I know I have to use the XML object to use the incoming XML, but I
really haven't seen much (if any) code that shows how to do this with
external XML.  I have seen a lot of code that binds internal XML lists
to elements, however.  Maybe I am using the wrong search terms or am
somehow glancing over stuff I could be using.

Another issue is I want to use a code behind model, and again I don't
see a lot of stuff using this method.

Thanks again for your response,
Miss Giggy



[flexcoders] Re: List issues

2008-01-15 Thread markcavins
Yep tried that as well and still nothing. This just seems that I am
missing something small but very important. All I want to accomplish
is to grab a xml document and then display it in a horizontal list. I
only want to display the asset name and nothing else and yet I can't
seem to find a way to get it to display. Sorry morning rant.


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

 So that would be the result of the query, I assume. In that case you
need to 
 refer to fleet directly - you will lose the outermost level.
 
 tempXML.lastResult.fleet not tempXML.lastResult.asset.fleet .
 
 Paul
 
 
 
 
 - Original Message - 
 From: markcavins [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, January 15, 2008 12:55 AM
 Subject: [flexcoders] Re: List issues
 
 
  This is the output for each asset
 
  asset id=236
  name333CCC/name
  tag52/tag
  vinVIN09876SDF133/vin
  fleet0052/fleet
  type id=0Standard/type
  subtype id=4STANDARD/subtype
  exsid/
  mileage1946/mileage
  locationHome/location
  mileoffset0/mileoffset
  radioaddress/
  mfgGMC/mfg
  inservice20 Sep 2007/inservice
  inspdate id=2601 type=trill1190310279/inspdate
  #8722;
  yardstat
  yard/
  stat timestamp=0unknown/stat
  /yardstat
  opstatus timestamp=1190311036unsat/opstatus
  gps1/gps
  homeloi/
  /asset
 
  --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote:
 
  relist your current source and what your xml should look like.
 
  To use the debugger, set a breakpoint at the start of the result
  handler
  (click in the margin to the left of the first line  - you should get
  a small
  circle). Run in debugging mode by pressing the spider icon.
  Execution will
  stop when the breakpoint is hit. You can then see the variable
  contents in
  the variables window and see exactly what your result is.
 
  Paul
  - Original Message - 
  From: markcavins markcavins@
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, January 15, 2008 12:37 AM
  Subject: [flexcoders] Re: List issues
 
 
  I am still thinking that part of the problem is that no where to I
   call the path of tempXML (tempXML.lastResult.asset.fleet) to
actually
   get this data. I am still trying to mess with the debugger but it
   doesn't seem to be returnining anyt thing.
 
 
 
 
 
  --
  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] skinning problem, need help!!

2008-01-15 Thread Gustavo Duenas



Hi I have this code and I was trying to re-skinning some  buttons,  
with different skins, but something happens and I don't know what  
would have happened.


this is my code

mx:Style
contact
{
upSkin: Embed(lib/skinsButtons1/ContactUp.png);
overSkin: Embed(lib/skinsButtons1/ContactOver.png);
downSkin: Embed(lib/skinsButtons1/ContactDown.png);

 }

portFolio
{
upSkin: Embed(lib/skinsButtons1/PortFolioUp.png);
overSkin: Embed(lib/skinsButtons1/PortFolioOver.png);
downSkin: Embed(lib/skinsButtons1/PortFolioDown.png);
 }
who
{
upSkin: Embed(lib/skinsButtons1/WhoUp.png);
overSkin: Embed(lib/skinsButtons1/WhoOver.png);
downSkin: Embed(lib/skinsButtons1/WhoDown.png);
 }
/mx:Style
mx:Button x=53 y=203 label=Contact styleName=contact/
mx:Button x=395 y=203 label=PortFolio styleName=portFolio/
mx:Button x=230 y=203 label=Who we are styleName=who/



///and this is my error message in the console//


Severity and DescriptionPathResourceLocation
Creation Time   Id
The type selector 'contact' was not processed, because the type was  
not used in the application.	LRSAdvertising	LRSAdvertising.mxml	 
Unknown	1200418313203	146

///the others are the same , three errors in total.

HELP!!


Gustavo A. Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS
904.  265 0330 - 904. 386 7958
www.leftandrightsolutions.com
Jacksonville - Florida






[flexcoders] advancedDataGrid woes

2008-01-15 Thread roller_27
I've been looking for examples or tips on adding and deleting items 
from a hierarchical dataprovider. The amount of support documentation 
seems limited, which i suppose is understandable for a beta, even if it 
is Beta3. 

This post from pearls of flex was very helpful.
http://flexpearls.blogspot.com/2007/11/xmllist-hierarchicaldata-and.html

However, I would have imagined that it would have been a relatively 
simple task to delete the selected item from the advanced data grid, 
even if it was heirarchical. Anyway I'll include an example of what i 
tried.

Has anyone else tried anything along this line? Eventually the data 
will be coming back from a service call, but i'm just trying to 
familiarise myself with the advancedDataGrids capabilities  before i 
get into too heavily.

cheers!
Rob

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
mx:Script
![CDATA[
import mx.collections.HierarchicalData;

private var cities:Array = [
{ location: 'Group1',
children: [
{ location: 'item1',
population: 2236765,
family: 886053,
code: 'TO'
},
{ location: 'item2',
population: 183869,
family: 75317,
code: 'VC'
},
{ location: 'item3',
population: 334614,
family: 130363,
code: 'NO' }
]},
{ location: 'Group2',
children: [
{ location: 'item1',
population: 213587,
family: 90934,
code: 'IM'
},
{ location: 'item2',
population: 284647,
family: 120883,
code: 'SV'
},
{ location: 'item3',
population: 950849,
family: 391796,
code: 'GE'
}
]},
{ location: 'Group3',
children: [
{ location: 'item1',
population: 797039,
family: 289925,
code: 'VA'
},
{ location: 'item2',
population: 522147,
family: 188961,
code: 'CO'
},
{ location: 'item3',
population: 3738685,
family: 1423856,
code: 'MI'
}]
}];


private function addBranchDP():void
{   
cities.push({ location: 'Group4',
children: [
{ location: 'Item1',
population: 797039,
family: 289925,
code: 'VA'
},
{ location: 'Item2',
population: 522147,
family: 188961,
code: 'CO'
},
{ location: 'Item3',
population: 3738685,
family: 1423856,
code: 'MI'
}]
});

myADG.dataProvider = new HierarchicalData
(cities);
}

private function removeBranchDP():void
{
// This doesn't work
myADG.removeChildAt(myADG.selectedIndex);

}
]]

/mx:Script
mx:AdvancedDataGrid
id=myADG
it
dataProvider={new HierarchicalData(cities)}
width=90%
variableRowHeight=true
wordWrap=true x=24 y=10 height=400
mx:columns
mx:AdvancedDataGridColumn headerText=Region
dataField=location/
mx:AdvancedDataGridColumn headerText=Population
dataField=population /
mx:AdvancedDataGridColumn headerText=Code
dataField=code/
mx:AdvancedDataGridColumn headerText=Family
dataField=family/
/mx:columns
/mx:AdvancedDataGrid
mx:Button x=63 y=418 label=Add buttonMode=true 
click=addBranchDP()/
mx:Button x=120 y=418 label=Delete buttonMode=true 
click=removeBranchDP()/
mx:Text x=541 y=420 text={myADG.selectedIndex} 
width=233 color=#FF/
mx:Text x=541 y=444 text={myADG.selectedIndices.valueOf
()} 

RE: [flexcoders] skinning problem, need help!!

2008-01-15 Thread Merrill, Jason
I think in your css, since you're not styling classes like Panel or
Label, you need to use a dot first:
 
.contact{} instead of contact{}
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas
Sent: Tuesday, January 15, 2008 12:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] skinning problem, need help!!






Hi I have this code and I was trying to re-skinning some
buttons, with different skins, but something happens and I don't know
what would have happened.

this is my code


mx:Style
contact 
{
upSkin: Embed(lib/skinsButtons1/ContactUp.png);
overSkin: Embed(lib/skinsButtons1/ContactOver.png);
downSkin: Embed(lib/skinsButtons1/ContactDown.png);

   


 }




portFolio
{
upSkin: Embed(lib/skinsButtons1/PortFolioUp.png);
overSkin: Embed(lib/skinsButtons1/PortFolioOver.png);
downSkin: Embed(lib/skinsButtons1/PortFolioDown.png);
 }
who
{
upSkin: Embed(lib/skinsButtons1/WhoUp.png);
overSkin: Embed(lib/skinsButtons1/WhoOver.png);
downSkin: Embed(lib/skinsButtons1/WhoDown.png);
 }
/mx:Style
mx:Button x=53 y=203 label=Contact styleName=contact/
mx:Button x=395 y=203 label=PortFolio
styleName=portFolio/
mx:Button x=230 y=203 label=Who we are styleName=who/






///and this is my error message in the console//





Severity and Description Path Resource Location Creation Time Id
The type selector 'contact' was not processed, because the type
was not used in the application. LRSAdvertising LRSAdvertising.mxml
Unknown 1200418313203 146
///the others are the same , three errors in total.

HELP!!




Gustavo A. Duenas
Creative Director

LEFT AND RIGHT SOLUTIONS
904.  265 0330 - 904. 386 7958
www.leftandrightsolutions.com
Jacksonville - Florida







 



[flexcoders] Type Coercion Issue with custom event

2008-01-15 Thread Rick Root
tryign to debug this line of code:

systemManager.dispatchEvent(new AuthEvent(AuthEvent.AUTHSUCCESS,
false, false, e));

You can view the entire function that line of code resides in here:
http://cfm.pastebin.com/d3fcd26de

steps into the systemManager object, then I step return and we're fine.

Then step into the AuthEvent class.. also fine... I step over each
until it returns to the above line.

Here is the AuthEvent.as

package ads.events
{
import flash.events.Event;

import mx.rpc.events.ResultEvent;

public class AuthEvent extends Event
{
public static const AUTHSUCCESS:String = 'authsuccess';
public static const AUTHFAILURE:String = 'authfailure';
public var authResult:ResultEvent = null;

public function AuthEvent(type:String,
bubbles:Boolean=false, cancelable:Boolean=false,
authResult:ResultEvent=null)
{
this.authResult = authResult;
super(type, bubbles, cancelable);
}
override public function clone():Event
{
return new AuthEvent(type, false, false, authResult);
}

}
}

At this point, the debugger shows this line still highlighted:

systemManager.dispatchEvent(new AuthEvent(AuthEvent.AUTHSUCCESS,
false, false, e));

And I do step into again... generates the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert
ads.events::[EMAIL PROTECTED] to mx.rpc.events.ResultEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
ads::LoginWindow/authByUsernameResult()[C:\src\flexProjects\Components\ads\LoginWindow.mxml:83]

so my question is - what's causing this problem?  dispatchEvent()
expects an Event, which it gets... so exactly why is anything being
converted from ads.events.AuthEvent to mx.rpc.events.ResultEvent?

Many thanks.

-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark


Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread Jeff Krueger
Paul, 
 
Thanks.  Yes I was thinking about something close to that.  Of course when 
the CC is entered you can do the check digit to make sure the number is valid.  
I have a good background in Flex all the way back to flex 1.5.  I haven't 
started with AIR yet, but I am thinking so I put the CC into the value object 
and attempt to call my webservice to actually do the charge.  I am looking for 
details about how the application handles the fact it can't get to the 
webservice.  What is AIR doing being the scene to save that so it can resend 
it when a connection is available again.  Yes if I encrypt the CC before 
putting it into the value object that helps, but I still have to answer the 
question for the auditors of where is the encrypted information stored.  Is it 
purged after the connection is reestablished, etc.  So in a perfect world maybe 
there is a flag for a field in AIR that if it has to store it for a temp time 
that it will encrypt it.  I am just having
 a hard time finding out the low level details of how this is supported (The 
store and forward).
 
Thanks
 
Jeff
 



- Original Message 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 9:33:23 AM
Subject: Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

- Original Message - 
From: Jeff Krueger 
To: [EMAIL PROTECTED] ups.com 
Sent: Tuesday, January 15, 2008 4:26 PM
Subject: [flexcoders] Adobe AIR Disconnected storage with Credit Cards


Hello,
 
I am trying to find more detailed information about how Adobe AIR is able 
to support a disconnected session.  I believe I read somewhere that it is using 
a sqlanywhere DB, but I could be 100% wrong on that.  My question is I am 
wondering if the temporary storage of this information is encrypted in any way. 
 We are looking at creating an AIR application that will take credit cards.  
You can imagine the regulations around that.  So I was wondering if there is 
any documentation as to the details of how the disconnected sessions are 
implemented in AIR.  So far I have not been able to find anything.  Any help on 
this would be greatly appreciated.
How about encrypting them in the application?
 
If the application is disconnected, you won't be able to verify the cards. Most 
websites don't keep credit card details (unless the user specifically allows 
it) so credit cards and a disconnected application sound like a challenge. I 
can't remember the last time I gave credit card info that wasn't verified on 
the spot.
 
Paul
Thanks
 
Jeff



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] Making dragProxyImage snap to mouse cursor when performing doDrag()

2008-01-15 Thread Mike Anderson
Hello All,

I have an Icon Bar where users can drag Icons from a floating bar, and
create duplicates on the map below.  I have my image icons setup in such
a way, where they all have an arrow on the upper left-hand corner, which
visually indicates to the user, the 0,0 point.

The problem I am having, is when the user starts dragging the icon, it
starts dragging the icon immediately without any relation to the mouse
cursor and it's related dragProxyImage.

When the icon gets dropped onto the map, it gets offset - by the same
amount of distance, as the mouse cursor distance from the registration
point of the dragProxy Image.

This could all be alleviated, if I could just force the dragProxyImage
to snap it's 0,0 registration point, to the tip of the mouse cursor.
This way, the Icon will appear on the map, precisely where the user
wants to put it.

Does anybody have any suggestions as to how I could accomplish something
like this?

Thanks in advance for all your help.

Mike


[flexcoders] Re: external XML to image tile

2008-01-15 Thread simonjpalmer
I guess I don't really understand what you mean by internal and
external XML.  My immediate reaction is to say XML is XML, if it is
well formed then there are a standard set of APIs for getting at the
elements and attributes.  You'll have to use those APIs to decipher
the model and you should have a DTD or schema to describe the model
and facilitate that.

If you want application logic bound up in your model (code behind
model) then you might do better to have a client domain model which
reflects what you are trying to do with the data and a layer in your
architecture which transforms the XML model from the form that has
already been defined into something more suited to your display needs.
 Maybe you should research MVC design pattern.  Alternatively use a
factory pattern and have all your procedural code in static functions
which operate on the model.  Both approaches are sound architecturally.

If you go the route of a separate domain model remember that you'll
probably need a 2-way mapping, so make sure you consider both reading
and writing when designing your model (it's easy to lose information
if you only consider reading and then not be able to reconstitute the
orginial model when you come to write).

Depending on whether you have any control over your server
architecture you can decide whether you do the transformation on the
server or the client.  Each route has its own merits.


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

 Thank you Simon for the overview. :)
 
 The XML is done by someone else, and is already done, so that is not
 an issue.
 
 I know I have to use the XML object to use the incoming XML, but I
 really haven't seen much (if any) code that shows how to do this with
 external XML.  I have seen a lot of code that binds internal XML lists
 to elements, however.  Maybe I am using the wrong search terms or am
 somehow glancing over stuff I could be using.
 
 Another issue is I want to use a code behind model, and again I don't
 see a lot of stuff using this method.
 
 Thanks again for your response,
 Miss Giggy





[flexcoders] Re: HTTPService - save DataGrid data

2008-01-15 Thread markgoldin_2000
But I am not sure what exaclty I need to provide to the send method 
to post data back to server.
--- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote:

 Just re-read this and realized I may have mis-understood the 
question 
 :)  If you want to save data from grid back to server after user 
changes 
 it, take a look at DataGrid.itemEditEnd event.
 
 hth
 Scott
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com
 
 
 
 Scott Melby wrote:
 
  Is there a reason that you can't use SharedObject to save the 
grid 
  size, etc. on the client side?
 
  hth
  Scott
 
  Scott Melby
  Founder, Fast Lane Software LLC
  http://www.fastlanesw.com
 
 
  markgoldin_2000 wrote:
 
  I am using HTTPService to bring data from server. My DataGrid 
data is
  an xml. In order to save do I need to convert DataGrid data 
before
  sending it back to the server?
 
  Thanks
 
 





Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread George
For me I would never try to store sensitive private information anywhere 
as user don't know. I would ask to input credit cards information once 
again when getting back online.

George

Jeff Krueger wrote:
 Paul, 
  
 Thanks.  Yes I was thinking about something close to that.  Of course 
 when the CC is entered you can do the check digit to make sure the number is 
 valid.  I have a good background in Flex all the way back to flex 1.5.  I 
 haven't started with AIR yet, but I am thinking so I put the CC into the 
 value object and attempt to call my webservice to actually do the charge.  I 
 am looking for details about how the application handles the fact it can't 
 get to the webservice.  What is AIR doing being the scene to save that so 
 it can resend it when a connection is available again.  Yes if I encrypt the 
 CC before putting it into the value object that helps, but I still have to 
 answer the question for the auditors of where is the encrypted information 
 stored.  Is it purged after the connection is reestablished, etc.  So in a 
 perfect world maybe there is a flag for a field in AIR that if it has to 
 store it for a temp time that it will encrypt it.  I am just having
  a hard time finding out the low level details of how this is supported (The 
 store and forward).
  
 Thanks
  
 Jeff
  
   



Re: [flexcoders] XMLSocket Send().

2008-01-15 Thread Hugues Bruyere
Hello,

no clue about what I must be doing wrong ?

Why do I need to 'close' the XML socket in order for the Java server  
to receive the data from the swf ?

Thanks,

//h

On 15-Jan-08, at 12:14 AM, wanderingwithoutlight wrote:

 Hi,

 I'm trying to setup a really simple XMLSocket connection.
 The SWF (the client) and the Java class (the server) are both running
 in local on my Mac Laptop.

 I used the example in the LiveDocs to get started:
 http://livedocs.adobe.com/labs/flex3/html/help.html?content=17_Networking_and_communications_5.html

 I'm able to make the SWF to connect to the Java server. But the data
 are only sent when the SWF is closed. I mean when I send data using
 xmlsock.send(xmlFormattedData); the data are not received by the
 java server until I closed the running SWF. When I close the SWF I can
 see the received data in the trace produced by the java server.

 What am I missing ?

 //h



 --
 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: How to use air to read Excel file?

2008-01-15 Thread simonjpalmer
From Office 2003 onwards Excel supports an XML file format as do the
rest of the office products except PowerPoint.  From Office 2007
onwards the open office XML formats are the standard persistence
format.  You'll probably have received docx files already if you know
people who have upgraded.

A quick health warning, the office XML formats are fiendishly complex.
 I generate Word docs as part of my app and it was a complex and
fiddly job to get it right.  Thankfully I don't have to read them.  We
wound up using XSL on the server to do the job.  Second lesson was
that there are no really good 3rd party tools to help out - the one
that looked the best was recently acquired by google.  There are
others but they all fell a little short.  We found the Apache toolset
inadequate, but that's not to say it is not a good start.

My next venture will be an open source Java API on office docs. 
Anyone interested?  We'll sell it to Facebook or whoever is the next
Google after Google becomes Microsoft and Microsoft become IBM.

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

 The Flex framework doesn't have built-in support for reading Excel
 files. Given that AIR has a File class which can read any kind of file,
 what you need to understand is the format of a binary .xls file so that
 you know how to interpret the bytes that you read. I googled xls file
 format and found
  
 http://sc.openoffice.org/excelfileformat.pdf
  
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of dormousecheck
 Sent: Sunday, January 13, 2008 8:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to use air to read Excel file?
 
 
 
 Recently, i meet a problem, how to use air to read .xls file. Search
 in the google, there is little messages about it? 
 Can anyone tell how to handle this, Thanks!
 
 dormouse





Re: [flexcoders] skinning buttons questions

2008-01-15 Thread Gustavo Duenas
Ok, I've just solved a minutes ago, I went to fireworks and when I  
set up the symbol, I've just click on the 9 slice
and then I save the file as fireworks png, and it works, I have the  
labels now...It appears that is a problem to do this, when the

png are set up as images not as fireworks png filesI though so.

Regards


Gustavo
On Jan 14, 2008, at 11:49 PM, Alex Harui wrote:



Your example doesn’t have a label for the button.



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas

Sent: Monday, January 14, 2008 8:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] skinning buttons questions



Hi Coders, I went to this place and I used the example code to skin  
buttons in a graphical way.




http://www.adobe.com/devnet/flex/quickstart/skinning_components/ 
#graphical






this is the code



 mx:Style

Button

{

upSkin: Embed(assets/box_closed.png);



overSkin: Embed(assets/box.png);

downSkin: Embed(assets/box_new.png);



}

/mx:Style



mx:Button/



mx:Text text=Roll over and click the box!/



/mx:Application





Ok, I did it using my own applications, but I was wondering why,  
when the skinning was successful, the text or the label of the  
button doesn't appear.




Someone knows why? there is a way to set up the text to appear or  
the graphical way doesn't allow me to use text?




Regards





Gustavo












[flexcoders] Re: Type Coercion Issue with custom event

2008-01-15 Thread ricrootnc
Just so it's clear... I've updated my custom event class as such:

package ads.events
{
import flash.events.Event;
import mx.rpc.events.ResultEvent;

public class AuthEvent extends Event
{
public static const AUTHSUCCESS:String 
= 'authsuccess';
public static const AUTHFAILURE:String 
= 'authfailure';
public var authResult:ResultEvent = null;

public function AuthEvent(type:String, 
bubbles:Boolean=false, cancelable:Boolean=false, 
authResult:ResultEvent=null)
{
super(type, bubbles, cancelable);
this.authResult = authResult;
}
override public function clone():Event 
{
return new AuthEvent(type, false, false, 
authResult);
}
}
}

When I step through this, everything is fine.. no problem actually 
creating the event.  

It's actually dispatching the event that generates the error...

TypeError: Error #1034: Type Coercion failed: cannot convert 
ads.events::[EMAIL PROTECTED] to mx.rpc.events.ResultEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ads::LoginWindow/authByUsernameResult()
[C:\src\flexProjects\Components\ads\LoginWindow.mxml:83]


Rick



Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread Jeff Krueger
I know what you are saying.  Unfortuantly the process flow doesn't really allow 
for the user to come back.  In reality the disconnects from the internet 
should be very brief, but of course I can not gaurantee that.

Thanks

Jeff



- Original Message 
From: George [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 11:32:58 AM
Subject: Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

For me I would never try to store sensitive private information anywhere 
as user don't know. I would ask to input credit cards information once 
again when getting back online.

George

Jeff Krueger wrote:
 Paul, 
 
 Thanks. Yes I was thinking about something close to that. Of course when the 
 CC is entered you can do the check digit to make sure the number is valid. I 
 have a good background in Flex all the way back to flex 1.5. I haven't 
 started with AIR yet, but I am thinking so I put the CC into the value object 
 and attempt to call my webservice to actually do the charge. I am looking for 
 details about how the application handles the fact it can't get to the 
 webservice. What is AIR doing being the scene to save that so it can resend 
 it when a connection is available again. Yes if I encrypt the CC before 
 putting it into the value object that helps, but I still have to answer the 
 question for the auditors of where is the encrypted information stored. Is it 
 purged after the connection is reestablished, etc. So in a perfect world 
 maybe there is a flag for a field in AIR that if it has to store it for a 
 temp time that it will encrypt it. I am just having
 a hard time finding out the low level details of how this is supported (The 
 store and forward).
 
 Thanks
 
 Jeff
 
 





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[flexcoders] Re: Error #2038: File I/O Error when uploading file

2008-01-15 Thread Evan Bellinger
Are you doing the upload over SSL?  If so, uploading over SSL in
FireFox does not work out of the box.  You've got to do a bit of
hackery to get it to work.

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

 Hi,
 
 I'm trying to upload file to server with Firefox and I'm getting error
 2038. With IE everything seems to be fine.
 
 Any ideas what might cause this?
 
 Thanks,
 Tuomas





RE: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread Scott Mulder
From what I have figured out. Flex stores to a local db file that is
accessible to any other flex app that is running on the local machine.  Not
secure.  The only way you are going to get it to be secure (from my
understanding) is to encrypt it yourself and develop a security routine
yourself.  Syncing with the server is either handled on your own, or if you
use liveCycle or some other DTO with logic that does this automatically.
There are some good tutorials on doing this with Java and LiveCycles, but I
don't have much access to my server and don't know how to tell if I have
LiveCycles installed (or knowledge of Java) so I have been writing a custom
sync routine that happens whenever a record is saved that sends all unsynced
records (UPDATED, DELETED, NEW) to the FDS gateway into a ColdFusion
Service.  I am also going to use GUIDs to insure that the info is unique.
You'll want to clear the CCs out of your local SQLite db manually if you
intend to store it the way I'm doing it.

 

If I'm wrong someone correct me.

 

Scott

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George
Sent: Tuesday, January 15, 2008 1:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

 

For me I would never try to store sensitive private information anywhere 
as user don't know. I would ask to input credit cards information once 
again when getting back online.

George

Jeff Krueger wrote:
 Paul, 
 
 Thanks. Yes I was thinking about something close to that. Of course when
the CC is entered you can do the check digit to make sure the number is
valid. I have a good background in Flex all the way back to flex 1.5. I
haven't started with AIR yet, but I am thinking so I put the CC into the
value object and attempt to call my webservice to actually do the charge. I
am looking for details about how the application handles the fact it can't
get to the webservice. What is AIR doing being the scene to save that so
it can resend it when a connection is available again. Yes if I encrypt the
CC before putting it into the value object that helps, but I still have to
answer the question for the auditors of where is the encrypted information
stored. Is it purged after the connection is reestablished, etc. So in a
perfect world maybe there is a flag for a field in AIR that if it has to
store it for a temp time that it will encrypt it. I am just having
 a hard time finding out the low level details of how this is supported
(The store and forward).
 
 Thanks
 
 Jeff
 
 

 

image001.jpgimage002.jpg

Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread ivo
Air apps also have available an EncryptedLocalStore 

http://livedocs.adobe.com/labs/flex3/langref/flash/data/EncryptedLocalStore.html



- Original Message 
From: Scott Mulder [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 10:55:37 AM
Subject: RE: [flexcoders] Adobe AIR Disconnected storage with Credit Cards










  












From what I have figured out… Flex stores to a local db
file that is accessible to any other flex app that is running on the local
machine.  Not secure.  The only way you are going to get it to be
secure (from my understanding) is to encrypt it yourself and develop a security
routine yourself.  Syncing with the server is either handled on your own,
or if you use liveCycle or some other DTO with logic that does this
automatically.  There are some good tutorials on doing this with Java and
LiveCycles, but I don’t have much access to my server and don’t
know how to tell if I have LiveCycles installed (or knowledge of Java) so I
have been writing a custom sync routine that happens whenever a record is saved
that sends all unsynced records (“UPDATED”, “DELETED”, “NEW”)
to the FDS gateway into a ColdFusion Service.  I am also going to use
GUIDs to insure that the info is unique.  You’ll want to clear the
CCs out of your local SQLite db manually if you intend to store it the way I’m
doing it.
 

  
 

If I’m wrong someone correct me.
 

  
 

Scott
 

  
 

  
 





From:
[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of 
George

Sent: Tuesday, January 15, 2008 1:33 PM

To: [EMAIL PROTECTED] ups.com

Subject: Re: [flexcoders] Adobe AIR Disconnected storage with Credit
Cards
 







  
 







For me I would never try to store sensitive
private information anywhere 

as user don't know. I would ask to input credit cards information once 

again when getting back online.



George



Jeff Krueger wrote:

 Paul, 

 

 Thanks. Yes I was thinking about something close to that. Of course when
the CC is entered you can do the check digit to make sure the number is valid.
I have a good background in Flex all the way back to flex 1.5. I haven't
started with AIR yet, but I am thinking so I put the CC into the value object
and attempt to call my webservice to actually do the charge. I am looking for
details about how the application handles the fact it can't get to the
webservice. What is AIR doing being the scene to save that so it
can resend it when a connection is available again. Yes if I encrypt the CC
before putting it into the value object that helps, but I still have to answer
the question for the auditors of where is the encrypted information stored. Is
it purged after the connection is reestablished, etc. So in a perfect world
maybe there is a flag for a field in AIR that if it has to store it for a temp
time that it will encrypt it. I am just having

 a hard time finding out the low level details of how this is supported
(The store and forward).

 

 Thanks

 

 Jeff

 

 
 




 
 











  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}

Re: [flexcoders] Re: HTTPService - save DataGrid data

2008-01-15 Thread Scott Melby

Mark -

You can make your backend code take whatever you like.  The 
HTTPService.send will just post to a URL that you specify (based on url 
property).  You can then pass params... here is an example.


var params:Object = new Object();
params.changedItemID = 1;
params.name = New Name;
myHttpService.send(params);

on the backend you can then just parse the request params to get the 
changed data and commit them to your DB etc.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



markgoldin_2000 wrote:


But I am not sure what exaclty I need to provide to the send method
to post data back to server.
--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote:


 Just re-read this and realized I may have mis-understood the
question
 :) If you want to save data from grid back to server after user
changes
 it, take a look at DataGrid.itemEditEnd event.

 hth
 Scott

 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com http://www.fastlanesw.com



 Scott Melby wrote:
 
  Is there a reason that you can't use SharedObject to save the
grid
  size, etc. on the client side?
 
  hth
  Scott
 
  Scott Melby
  Founder, Fast Lane Software LLC
  http://www.fastlanesw.com http://www.fastlanesw.com
 
 
  markgoldin_2000 wrote:
 
  I am using HTTPService to bring data from server. My DataGrid
data is
  an xml. In order to save do I need to convert DataGrid data
before
  sending it back to the server?
 
  Thanks
 
 


 


Re: [flexcoders] Error #2038: File I/O Error when uploading file

2008-01-15 Thread nhid
I'm using jsp server script for the upload and also getting the same error.
Which server script are you using?

Any suggestions anyone?   thanks.

On 1/14/08, tuomas.glad [EMAIL PROTECTED] wrote:

   Hi,

 I'm trying to upload file to server with Firefox and I'm getting error
 2038. With IE everything seems to be fine.

 Any ideas what might cause this?

 Thanks,
 Tuomas

 



[flexcoders] Re: HTTPService - save DataGrid data

2008-01-15 Thread markgoldin_2000
But I need to send modified DataGrid's data:  a dataProvider that was 
initially created in the service's Result event.

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

 Mark -
 
 You can make your backend code take whatever you like.  The 
 HTTPService.send will just post to a URL that you specify (based on 
url 
 property).  You can then pass params... here is an example.
 
 var params:Object = new Object();
 params.changedItemID = 1;
 params.name = New Name;
 myHttpService.send(params);
 
 on the backend you can then just parse the request params to get 
the 
 changed data and commit them to your DB etc.
 
 hth
 Scott
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com
 
 
 
 markgoldin_2000 wrote:
 
  But I am not sure what exaclty I need to provide to the send 
method
  to post data back to server.
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ 
wrote:
  
   Just re-read this and realized I may have mis-understood the
  question
   :) If you want to save data from grid back to server after user
  changes
   it, take a look at DataGrid.itemEditEnd event.
  
   hth
   Scott
  
   Scott Melby
   Founder, Fast Lane Software LLC
   http://www.fastlanesw.com http://www.fastlanesw.com
  
  
  
   Scott Melby wrote:
   
Is there a reason that you can't use SharedObject to save the
  grid
size, etc. on the client side?
   
hth
Scott
   
Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com http://www.fastlanesw.com
   
   
markgoldin_2000 wrote:
   
I am using HTTPService to bring data from server. My DataGrid
  data is
an xml. In order to save do I need to convert DataGrid data
  before
sending it back to the server?
   
Thanks
   
   
  
 
 





RE: [flexcoders] Re: Type Coercion Issue with custom event

2008-01-15 Thread Alex Harui
You get this kind of error when one of the listeners is expecting a
ResultEvent

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ricrootnc
Sent: Tuesday, January 15, 2008 10:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Type Coercion Issue with custom event

 

Just so it's clear... I've updated my custom event class as such:

package ads.events
{
import flash.events.Event;
import mx.rpc.events.ResultEvent;

public class AuthEvent extends Event
{
public static const AUTHSUCCESS:String 
= 'authsuccess';
public static const AUTHFAILURE:String 
= 'authfailure';
public var authResult:ResultEvent = null;

public function AuthEvent(type:String, 
bubbles:Boolean=false, cancelable:Boolean=false, 
authResult:ResultEvent=null)
{
super(type, bubbles, cancelable);
this.authResult = authResult;
}
override public function clone():Event 
{
return new AuthEvent(type, false, false, 
authResult);
} 
}
}

When I step through this, everything is fine.. no problem actually 
creating the event. 

It's actually dispatching the event that generates the error...

TypeError: Error #1034: Type Coercion failed: cannot convert 
ads.events::[EMAIL PROTECTED] to mx.rpc.events.ResultEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ads::LoginWindow/authByUsernameResult()
[C:\src\flexProjects\Components\ads\LoginWindow.mxml:83]

Rick

 



RE: [flexcoders] Flash player fullscreen and text inputs

2008-01-15 Thread Deepa Subramaniam
I just talked to a colleague about this. Apparently this is definitely
possible in AIR, with FullScreenMode.FULL_SCREEN_INTERACTIVE.

 

In the browser player, its not supported. People have had varying
success with setting focus into an HTML textfield after the app goes
fullscreen and then capturing keystrokes and sending it back to Flash
via the ExternalInterface APIs. 

 

Goodluck,

deepa

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anzer
Sent: Monday, January 14, 2008 9:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash player fullscreen and text inputs

 

Hi,

Is there any work around to support inputs in Flash player full screen
mode?

 

 

 

Regards,

http://www.digitalmesh.com http://www.digitalmesh.com/  

 



RE: [flexcoders] Datagrid - Adding Running Total Row

2008-01-15 Thread Alex Harui
I thought the ADG has a SummaryRow feature.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merle Reine
Sent: Tuesday, January 15, 2008 2:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Datagrid - Adding Running Total Row

 

You need to use the server for calculations.  Use a database query
(mysql?) to grab the datagrid data and total and export to xml.  then
use the xml for the datagrid.

example
xml
data
  header 
 1Order Number/1
 2Quantity/2
 3Price/3
  /header
  items
item1a1/itema
item1b4/item1b 
item1c25.00/item1c
  /items
  items
  item2a1/item2a
  item2b3/item2b
  item2c12.25/item2c
  /items
  quantity total7/quantity total
  price total37.25/price total
/data
/xml


Hope that makes sense as It is 2am and I am going back to bed. 

I assume you are using php and mysql of course because who isn't.  ;)




On Jan 14, 2008 2:21 PM, Jehanzeb Musani [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hello,

I need to know that whether DataGrid or
AdvancedDataGrid in Flex supports running totals? Let
say I have the following data.

Order Number Quantity Price
---
1..4..25.00
2..3..12.25
3..11.10.00

3..18.246.75


The dataprovider contains the first three rows of the
aforementioned table. The requirement is that the grid
should calculate the total of the data in the
dataprovider.

I can manually add the running total row in the data
provider so that grid can display that row. But the
next requirement is that the running total row should
be displayed in different backcolor, forecolor and
font.

Can you tell me how can I implement the running total
functionality in Flex?

Regards,
Jehanzeb

__
Never miss a thing. Make Yahoo your home page. 
http://www.yahoo.com/r/hs http://www.yahoo.com/r/hs 




-- 
Merle Reine
Email Address: echo [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
| perl -pe 'y/a-z/n-za-m/' 

 



RE: [flexcoders] Application domain and Modules

2008-01-15 Thread Alex Harui
Modules must have a common application domain otherwise you cannot
access them via classes or interfaces.  See my blog for more info
(blogs.adobe.com/aharui)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gregor Kiddie
Sent: Monday, January 14, 2008 5:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Application domain and Modules

 

Is there any reason why the below code would not work? Although I see
the module getting loaded when watching the debugger, and I can see that
the modules always get different Application domains, nothing ever gets
added to the Content Pane. It does when I load the module without the
new ApplicationDomain.

The module consists of a MXML view which is just a label, bound to a
singleton AS class. What I'm aiming for is the ability to load a module
with a singleton into the same application repeatedly, and have the
modules act completely seperately (i.e. there is two instances of the
singleton, one for each module).

Rogerg.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical 
width=100% 
height=100%

mx:Script
nb! sp;   ![CDATA[
import mx.modules.ModuleLoader;

private function addModule() : void {
var loader : ModuleLoader = new ModuleLoader();
loader.url = SampleModule.swf;
contentPanel.addChild(loader);
}

private function addAppModule() : void {
var loader : ModuleLoader ! = new ModuleLoader();
  ! nbsp; n bsp;   loader.applicationDomain = new
ApplicationDomain();
loader.url = SampleModule.swf;
loader.loadModule();
contentPanel.addChild(loader);
}
]]
/mx:Script

mx:HBox
mx:Button id=addButton label=Add a module - SAME
click=addModule() /
mx:Button id=addAppButton label=Add a module - NEW
click=addAppModule() /
/mx:HBox
   ! ; 
mx:VBox id=contentPanel width=100% height=100% /

/mx:Application





Think you know your TV, music and film? Try Search Charades!
https://www.searchcharades.com  

 



RE: [flexcoders] Flash player fullscreen and text inputs

2008-01-15 Thread Deepa Subramaniam
Its important to note that this was a security measure added to the
player to avoid phishing scams. You may want to consider whether AIR
would be more appropriate for your project. 

 

More info here:
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Deepa Subramaniam
Sent: Tuesday, January 15, 2008 11:29 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flash player fullscreen and text inputs

 

I just talked to a colleague about this. Apparently this is definitely
possible in AIR, with FullScreenMode.FULL_SCREEN_INTERACTIVE.

 

In the browser player, its not supported. People have had varying
success with setting focus into an HTML textfield after the app goes
fullscreen and then capturing keystrokes and sending it back to Flash
via the ExternalInterface APIs. 

 

Goodluck,

deepa

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anzer
Sent: Monday, January 14, 2008 9:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash player fullscreen and text inputs

 

Hi,

Is there any work around to support inputs in Flash player full screen
mode?

 

 

 

Regards,

http://www.digitalmesh.com http://www.digitalmesh.com/  

 

 



[flexcoders] How can I add a toolTip to the titleIcon of a Panel?

2008-01-15 Thread adamacosta16
I'm guessing something along the lines of extending the panel.  Any 
ideas out there?



[flexcoders] Re: What's the minimize version of Flash Player for running Flex 3 SWF?

2008-01-15 Thread Mike Morearty
Any and all minor versions of Flash Player 9 are supported by Flex 3,
all the way back to the first release of Player 9.

Developers using Flex Builder will need to have the latest player
(9.0.115) on their dev machine where they do debugging.  This is due
to changes in the way Flex Builder and the Flash player communicate. 
But your users will not need 115.

Each release of the Flash Player does, of course, have new features;
and obviously, if your code uses those new features, then your users
will need the corresponding Flash player.  For example, if you are
targeting Player 9.0.115, you can make dramatically smaller swf files:
see
http://www.onflex.org/ted/2007/06/flex-3-thursday-dramatically-smaller.php
.

- Mike Morearty, Adobe Flex Builder team


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

 --- In flexcoders@yahoogroups.com, flexawesome flexawesome@ wrote:
 
  
  Hey there,
  
  
  Flex 3 will be out early this year. I'd like to know what's the
  minimize Flash player version for running Flex 3 SWF?
  
  Any official documents?
  
  Have a nice day
 
 
 
 hey, v9 is required but I am not quit sure, what's the minor version
 for Flex 3? 
 
 For example 9.048? or 9.115 ?
 
 Cheers





Re: [flexcoders] Re: Type Coercion Issue with custom event

2008-01-15 Thread Rick Root
 On 1/15/08, Alex Harui [EMAIL PROTECTED] wrote:
 You get this kind of error when one of the listeners is expecting a
ResultEvent

Thanks Alex.. I finally figured it out and was just coming back here to
post.

You are correct.. one of my listeners was listening for a ResultEvent... too
bad FlexBuilder couldn't tell me that.

At least now I'll remember to consider that if this comes up again!

Rick

-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind the
scenes video at www.myspace.com/brianvanderark


Re: [flexcoders] XMLSocket Send().

2008-01-15 Thread Hugues Bruyere
I got it !.
The problem was linked to a formatting issue of the data been sent.

//h

On 15-Jan-08, at 1:37 PM, Hugues Bruyere wrote:

 Hello,

 no clue about what I must be doing wrong ?

 Why do I need to 'close' the XML socket in order for the Java server  
 to receive the data from the swf ?

 Thanks,

 //h

 On 15-Jan-08, at 12:14 AM, wanderingwithoutlight wrote:

 Hi,

 I'm trying to setup a really simple XMLSocket connection.
 The SWF (the client) and the Java class (the server) are both running
 in local on my Mac Laptop.

 I used the example in the LiveDocs to get started:
 http://livedocs.adobe.com/labs/flex3/html/help.html?content=17_Networking_and_communications_5.html

 I'm able to make the SWF to connect to the Java server. But the data
 are only sent when the SWF is closed. I mean when I send data using
 xmlsock.send(xmlFormattedData); the data are not received by the
 java server until I closed the running SWF. When I close the SWF I  
 can
 see the received data in the trace produced by the java server.

 What am I missing ?

 //h



 --
 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] Having problems removing a listener

2008-01-15 Thread kuroiryu42
I have a singleton event dispatcher.
I have a data panel that lives in a tabnavigator.
When the panel is removed from the tabnavigator I would like
it to stop listening and hopefully be gc'd.

upon init the panel adds its listener func.
CentralEventDispatcher.getInstance().addEventListener(MainController.EVENT_DATA_LOADED,dataLoadFunc);

I have a remove function triggered when the panel is removed from the
tabnavigator.

private function removeListener():void
{
var ced:CentralEventDispatcher =  CentralEventDispatcher.getInstance();
if(ced.hasEventListener(MainController.EVENT_DATA_LOADED))
{
   
ced.removeEventListener(MainController.EVENT_DATA_LOADED,dataLoadFunc);
}
}






[flexcoders] Recommendations on keeping Flex sessions alive

2008-01-15 Thread ngpaiva
Background:
The clients and server instance are connected via VPN tunnel.  The 
firewalls between client and server side have been addressed, where 
the Flex TCP/IP connections won't timeout unless inactive for over 1 
hour.
Between client side network and server side network there are the 
routers, firewalls, and one load-balancer to keep in mind.

Problem:
My customers have observed that throughout the day their connection 
is dropped various times.  I have ran a test where I observed the 
same issue, however for the most part my connection gets dropped 
after over 1 hour of inactivity on the application using Flex 
framework.
I ran Wireshark to capture the HTTP and TCP traffic between client 
and server side communication, and can't seem to capture what is 
causing the connection to be dropped.
My customers in question however, have seen this issue with more 
frequency.  They are on a separate network from mine, and we both 
have dedicated VPN tunnels to the server side network.
Looking at the JBoss server log where we track login/logout 
functionality, I do observe that customers are logging in every 20 
minutes or so on certain days, without a logout being recorded.  
Which basically tells me their connection was dropped, causing them 
to have to re-login.
The message I get on the browser is that the connection was lost, 
followed by the following message pop-up:
Channel.Ping.Failed error url: 'http://url_of_site/
{context.root}/messagebroker/http

Looking for feedback on:
1. One possible solution is to implement in the Flex framework based 
application a heartbeat type of functionality.  This would help keep 
the TCP connections from going stale.  Anyone taken this approach?  
Would it be possible?
2. In the event of a network based issue, the heartbeat may not be 
able to prevent the connection drop.  Any idea if the Flex framework 
can simply re-establish the connection without having the client re-
login?

Thanks in advance for any pointers.



RE: [flexcoders] Only allow dragging tree branch items with the same branch

2008-01-15 Thread Jerry DuVal
Ok, I'm a little further on this. My tree allows drag only btwn items with
the same parent.  The only issue I have remaing is during the
dragOverHandler event I'm checking to make sure that item being dropped has
the same parent as the target ( which works fine ).  In the event that the
item does NOT have the same parent I call event.preventDefault(); , which
works , except  the item that was attempted to be dragged now has a bar
highlighted under it.  I seems like the tree calls a private method
clearSelected(false); .  Any work around would be appreciated.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, January 11, 2008 5:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Only allow dragging tree branch items with the
same branch

 

Look up the drag events dragEnter, dragOver, dragExit.  Calling
preventDefault() under the right situation should be the answer.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jery.duval
Sent: Friday, January 11, 2008 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Only allow dragging tree branch items with the same
branch

 

I'm a newbie to flex, but long time Java Framework developer. I have 
created a tree and enabled the drag and drop. I want to limit the 
user to only being able to drag and drop within the same tree branch.

ex. I would only want b, a, or r to be dragged within Foo 

Tree 
foo
b
a
r
test
m
e

Any examples would be appreciated. Thanks in advance;

Jerry DuVal
Pace Systems Group, Inc.
800.624.5999
www.Pace2020.com

 



[flexcoders] Re: How can I add a toolTip to the titleIcon of a Panel?

2008-01-15 Thread ben.clinkinbeard
Did this in my Panel subclass just the other day:

public function getTitleIconObject():DisplayObject
{
use namespace mx_internal;
return titleIconObject as DisplayObject;
}

HTH,
Ben


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

 I'm guessing something along the lines of extending the panel.  Any 
 ideas out there?





Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

2008-01-15 Thread Jeff Krueger
Thanks for the information.  I think I have enough to get started trying to 
solve this problem.  I think Ivo's response with the encrypted store might help 
out also.

Thanks Again

Jeff



- Original Message 
From: Scott Mulder [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 11:55:37 AM
Subject: RE: [flexcoders] Adobe AIR Disconnected storage with Credit Cards

From what I have figured out… Flex stores to a local db file that is 
accessible to any other flex app that is running on the local machine.  Not 
secure.  The only way you are going to get it to be secure (from my 
understanding) is to encrypt it yourself and develop a security routine 
yourself.  Syncing with the server is either handled on your own, or if you 
use liveCycle or some other DTO with logic that does this automatically.  
There are some good tutorials on doing this with Java and LiveCycles, but I 
don’t have much access to my server and don’t know how to tell if I have 
LiveCycles installed (or knowledge of Java) so I have been writing a custom 
sync routine that happens whenever a record is saved that sends all unsynced 
records (“UPDATED”, “DELETED”, “NEW”) to the FDS gateway into a ColdFusion 
Service.  I am also going to use GUIDs to insure that the info is unique.  
You’ll want to clear the CCs out of your local SQLite db
 manually if you intend to store it the way I’m doing it.
 
If I’m wrong someone correct me.
 
Scott
 
 
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of George
Sent: Tuesday, January 15, 2008 1:33 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Adobe AIR Disconnected storage with Credit Cards
 
For me I would never try to store sensitive private information anywhere 
as user don't know. I would ask to input credit cards information once 
again when getting back online.

George

Jeff Krueger wrote:
 Paul, 
 
 Thanks. Yes I was thinking about something close to that. Of course when the 
 CC is entered you can do the check digit to make sure the number is valid. I 
 have a good background in Flex all the way back to flex 1.5. I haven't 
 started with AIR yet, but I am thinking so I put the CC into the value object 
 and attempt to call my webservice to actually do the charge. I am looking for 
 details about how the application handles the fact it can't get to the 
 webservice. What is AIR doing being the scene to save that so it can resend 
 it when a connection is available again. Yes if I encrypt the CC before 
 putting it into the value object that helps, but I still have to answer the 
 question for the auditors of where is the encrypted information stored. Is it 
 purged after the connection is reestablished, etc. So in a perfect world 
 maybe there is a flag for a field in AIR that if it has to store it for a 
 temp time that it will encrypt it. I am just having
 a hard time finding out the low level details of how this is supported (The 
 store and forward).
 
 Thanks
 
 Jeff
 
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] Flex to Flash developers

2008-01-15 Thread Mark Lapasa
Programming ActionScript 3.0 which is a part of the docs that come 
with Flex was something I found very helpful. The other materials that 
is recommended is Colin Moock's book, Essential ActionScript 3.0 
(http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946/ref=pd_bbs_sr_1?ie=UTF8s=booksqid=1200430757sr=8-1)

Also Programming Flex 2 is a bit dated but none the less a great intro 
to Flex from bottom up. It doesn't lend itself to get Flash users to 
become Flex users but it hits you very early that there is a 'Flex' way 
of doing things (i.e. embedding bitmaps).



-mL
knowledge.lapasa.net

molandim wrote:

 Hello

 I have been working with flash since the version 4.0, and since there
 I worked with actionscript. Today I only work with actionscript,
 developing classes to several application in flash.

 Then I decided to try flex and because my early knowledge I believe
 that flex would be a piece of cake, but it is not. It seems that I am
 starting learning from the basic.

 Is there any material, tutorial, for flex to flash developers?

 Thanks.

  



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



RE: [flexcoders] Flex to Flash developers

2008-01-15 Thread Merrill, Jason
I like Adobe Flex 2 - Training from the Source by Adobe Press (Tapper
Bloes, Talbot).  It's a straight out tutorial. Teaches you all the
basics.
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=99040/stime=1200431351/nc1=4507179/nc2=5170403/nc3=5170416 
 



RE: [flexcoders] Re: PrintDataGrid variablerowheight issue

2008-01-15 Thread Alex Harui
I just updated some info in the bug.  It is deferred because the Player
has some issues that we can't easily workaround that prevent us from
having guaranteed solution.  I added code for a temporary workaround
that will hopefully work in 'more' cases but not all.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mitek17
Sent: Monday, January 14, 2008 8:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PrintDataGrid variablerowheight issue

 

Hooray! It is in the state of Deferred Closed. :(

PS I am just using a workaround - in the function which does a
printing layout (e.g. showPrint() in SDK help) I do the following:

pdg_procedures.height +=5; 

This extra 5 pixels fix the problem.

Cheers,
Dmitri.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, jf317820 [EMAIL PROTECTED] wrote:

 https://bugs.adobe.com/jira/browse/SDK-14174
https://bugs.adobe.com/jira/browse/SDK-14174 
 

 



Re: [flexcoders] Dynamic DataGrid + slow horizontal scrolling

2008-01-15 Thread Gary Smith

Thanks Scott you've been a great help, this is a great improvement over the
last test example

demo:
http://www.smithkjaer.dk/flex/tst3/ArrayCollectionDemo4.html

source:
http://www.smithkjaer.dk/flex/tst3/srcview/index.html

What has surprised me the most from this exercise is that alot of the
tutorials I have read seem to make a big point that when you recive a result
from a httpservice in your datahandler, that Flex delivers this as an
ArrayCollection in the dataHandler's event.result. Thus my previous demo.

When you use the debugger this also seems to confirm the point that it is
structured as an ArrayCollection, so my question is why does just assigning
the ArrayCollection in my previous test not work , but boiler plate coding
to convert e4x into an ArrayCollection work. 


Are there hooks or am I missing something...


-- 
View this message in context: 
http://www.nabble.com/Dynamic-DataGrid-%2B-slow-horizontal-scrolling-tp14731055p14848459.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] FB2: Cleaning Projects Annoyance

2008-01-15 Thread Merrill, Jason
Is it just me and the way I'm developing or do many of you find you have
to clean your project often to get rid of old caches of code and files?
It's very frustrating, it seems I have to clean my project because the
compiler thinks some method is still written a certain way, or some XML
file looks some other old way.  I'm finding I have to clean my project
several times a day sometimes in Flexbuilder 2.  Is it just me and I'm
doing something wrong?
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 




[flexcoders] Previous Flex SDKs available anywhere?

2008-01-15 Thread ben.clinkinbeard
Is Adobe making these available anywhere or do we have to piecemeal
them together ourselves? I would like to test my library against all
the flavors of Flex 2.0.1 (original and each HF) and then compile it
for the lowest supported version but I would like to avoid spending an
hour or two configuring them all if possible.

Thanks,
Ben



Re: [flexcoders] FB2: Cleaning Projects Annoyance

2008-01-15 Thread Derrick Anderson
i'm in no means a 'heavy' flex user, and in the few projects i have done, i
have had issues with this.

seems that if i were writing actionscript full time this would be a big
pita.

d.

On Jan 15, 2008 4:40 PM, Merrill, Jason [EMAIL PROTECTED]
wrote:

Is it just me and the way I'm developing or do many of you find you
 have to clean your project often to get rid of old caches of code and
 files?  It's very frustrating, it seems I have to clean my project because
 the compiler thinks some method is still written a certain way, or some XML
 file looks some other old way.  I'm finding I have to clean my project
 several times a day sometimes in Flexbuilder 2.  Is it just me and I'm doing
 something wrong?


 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community

  



[flexcoders] [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With Danny Dura

2008-01-15 Thread Chris Velevitch
Thursday, 24th January.

Flex 3 and AIR are getting close to launch and in preparation, Danny
Dura from the Platform Evangelism Team will be specifically in Sydney
to show off the great new features for this exciting launch.

Check the listings below to hook up with the local user group in the
city closest to you and join us for an evening of Flex and AIR.

Don't miss out on the opportunity to see and hear about this highly
anticipated release of Flex 3 and AIR during this special pre-release
tour. Plus, in addition to giving away some one of a kind Flex/AIR
branded schwag, each event will also be raffling off a copy of Flex
Builder 3 Professional (pending availability) and a full commercial
copy of CS3 Web Premium!

Details and RSVP on http://sydneyflashdev2008prelaunchtour.eventbrite.com

-- 
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au


RE: [flexcoders] FB2: Cleaning Projects Annoyance

2008-01-15 Thread Merrill, Jason
Yeah, I'm doing a lot of Actionscript on this project, and it's
becomming a real pain for sure.
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson
Sent: Tuesday, January 15, 2008 4:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FB2: Cleaning Projects Annoyance



i'm in no means a 'heavy' flex user, and in the few projects i
have done, i have had issues with this.

seems that if i were writing actionscript full time this would
be a big pita.

d.


On Jan 15, 2008 4:40 PM, Merrill, Jason
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:




Is it just me and the way I'm developing or do many of
you find you have to clean your project often to get rid of old caches
of code and files?  It's very frustrating, it seems I have to clean my
project because the compiler thinks some method is still written a
certain way, or some XML file looks some other old way.  I'm finding I
have to clean my project several times a day sometimes in Flexbuilder 2.
Is it just me and I'm doing something wrong?
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 







 



RE: [flexcoders] DataGrid Refresh

2008-01-15 Thread Dale Fraser
validateNow does not work

 

refresh does not seem to be available on my dataProvider which is a variable
array collection.

 

If I redo the binding

 

gridName.dataProvider = variableName;

 

This works, but it redisplays the whole grid and looses your position within
the data.

 

Regards

Dale Fraser

 

http://learncf.com

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Max Frigge
Sent: Tuesday, 15 January 2008 6:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid Refresh

 

Hey I am not quite sure about this, but 
it should be either:

yourDataProvider.refresh(); 

or

you could try dataGrid.validateNow();


HTH (and I am not telling any crap ;)

- Original Message 
From: Dale Fraser [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 4:16:07 PM
Subject: [flexcoders] DataGrid Refresh

I have a datagrid and am programmatically updating some entries in the
selected row.

 

I have tried both

 

selectedItem. columnName = blah

 

and changing the bound dataProvider.

 

Both work, but the grid does not refresh. If I do a column sort it refreshes
and I see the changed data.

 

Regards

Dale Fraser

 

http://learncf. com

 

 

 

  _  

Looking for last minute shopping deals? Find
http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/ca
tegory.php?category=shopping  them fast with Yahoo! Search.

 



Re: [flexcoders] [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With Danny Dura

2008-01-15 Thread ben gomez farrell
Hmmm I was going to say the same for my Raleigh, NC area group (on 
the 23rd), but I'll just say that there's a Flex Pre-Release tour coming 
up, same details, except we have Ben Forta, and your area might have 
other folks...

Here's the list, there's tons of these things coming up all over the 
place all between now and the beginning of February
http://flex.org/tour/

ben

Chris
 Velevitch wrote:

 Thursday, 24th January.

 Flex 3 and AIR are getting close to launch and in preparation, Danny
 Dura from the Platform Evangelism Team will be specifically in Sydney
 to show off the great new features for this exciting launch.

 Check the listings below to hook up with the local user group in the
 city closest to you and join us for an evening of Flex and AIR.

 Don't miss out on the opportunity to see and hear about this highly
 anticipated release of Flex 3 and AIR during this special pre-release
 tour. Plus, in addition to giving away some one of a kind Flex/AIR
 branded schwag, each event will also be raffling off a copy of Flex
 Builder 3 Professional (pending availability) and a full commercial
 copy of CS3 Web Premium!

 Details and RSVP on 
 http://sydneyflashdev2008prelaunchtour.eventbrite.com 
 http://sydneyflashdev2008prelaunchtour.eventbrite.com

 -- 
 Chris
 --
 Chris Velevitch
 Manager - Sydney Flash Platform Developers Group
 m: 0415 469 095
 www.flashdev.org.au

  


Re: [flexcoders] DataGrid Refresh

2008-01-15 Thread George
The best way you could dispatch CollectionEvent.CHANGE event. It will 
refresh DG definitely.

grid.dataProvider.dispatchEvent(new 
CollectionEvent(CollectionEvent.CHANGE));


Dale Fraser wrote:
 validateNow does not work

  

 refresh does not seem to be available on my dataProvider which is a variable
 array collection.

  

 If I redo the binding

  

 gridName.dataProvider = variableName;

  

 This works, but it redisplays the whole grid and looses your position within
 the data.

  

 Regards

 Dale Fraser

  

 http://learncf.com

  

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Max Frigge
 Sent: Tuesday, 15 January 2008 6:24 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] DataGrid Refresh

  

 Hey I am not quite sure about this, but 
 it should be either:

 yourDataProvider.refresh(); 

 or

 you could try dataGrid.validateNow();


 HTH (and I am not telling any crap ;)

 - Original Message 
 From: Dale Fraser [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, January 15, 2008 4:16:07 PM
 Subject: [flexcoders] DataGrid Refresh

 I have a datagrid and am programmatically updating some entries in the
 selected row.

  

 I have tried both

  

 selectedItem. columnName = blah

  

 and changing the bound dataProvider.

  

 Both work, but the grid does not refresh. If I do a column sort it refreshes
 and I see the changed data.

  

 Regards

 Dale Fraser

  

 http://learncf. com

  
   


[flexcoders] Re: List issues

2008-01-15 Thread markcavins
Thank you to Tracy, Paul Andrews, Peter Ent and all the others that
were with me in spirit trying to figure this out. In case any one has
this same problem I am posting the solution that fixed this and this
part is closed.

Thank you again.

Mark 

Code:

mx:HTTPService  id=tempXML  resultFormat=e4x
result=onResult(event) 
url=https://{customer.text}.mysite.net/interface.php?action=showopenamp;operation=showassetsamp;format=xmlamp;opstatus=critamp;username={username.text}amp;password={password.text};
/

mx:TileList dataProvider={_xlcMyListData} labelField=fleet
width=344 backgroundColor=#00 color=#ff 
fontSize=27
borderColor=#00 columnWidth=300 rowHeight=50
themeColor=#808080 fontWeight=bold allowMultipleSelection=true 
id=TileList1 height=0 y=202 x=178/

mx:Script
![CDATA[

  import mx.collections.XMLListCollection;
  
  [Bindable]
  private var _xlcMyListData:XMLListCollection;


private function onResult(Event:ResultEvent):void {
var xmlResult:XML = XML(Event.result);
_xlcMyListData = new XMLListCollection(xmlResult..asset);
}
  
]]
/mx:Script



RE: [flexcoders] [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With Danny Dura

2008-01-15 Thread Seth Caldwell
Drat, I just got back from Sydney last night. Anyone know of any events like
this in San Diego or LA?

 

Seth Caldwell

Software Engineer

3750 Convoy StreetSuite 312 San Diego, CA  92111
[T] 805.450.1741 |  [F] 858.300.0560
[EMAIL PROTECTED]

aresdirect.com | arestravel.com

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Velevitch
Sent: Tuesday, January 15, 2008 2:08 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; flexcoders@yahoogroups.com; Flashcoders mailing
list
Subject: [flexcoders] [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With
Danny Dura

 

Thursday, 24th January.

Flex 3 and AIR are getting close to launch and in preparation, Danny
Dura from the Platform Evangelism Team will be specifically in Sydney
to show off the great new features for this exciting launch.

Check the listings below to hook up with the local user group in the
city closest to you and join us for an evening of Flex and AIR.

Don't miss out on the opportunity to see and hear about this highly
anticipated release of Flex 3 and AIR during this special pre-release
tour. Plus, in addition to giving away some one of a kind Flex/AIR
branded schwag, each event will also be raffling off a copy of Flex
Builder 3 Professional (pending availability) and a full commercial
copy of CS3 Web Premium!

Details and RSVP on http://sydneyflashdev2008prelaunchtour.eventbrite.com

-- 
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au

 



RE: [flexcoders] DataGrid Refresh

2008-01-15 Thread Dale Fraser
George,

 

You are the man, that works, except for one error which I fixed

 

Should be

 

entriesGrid.dataProvider.dispatchEvent(new
CollectionEvent(CollectionEvent.COLLECTION_CHANGE));

 

not

 

entriesGrid.dataProvider.dispatchEvent(new
CollectionEvent(CollectionEvent.CHANGE));

 

 

Regards

Dale Fraser

 

http://learncf.com

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George
Sent: Wednesday, 16 January 2008 9:55 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid Refresh

 

The best way you could dispatch CollectionEvent.CHANGE event. It will 
refresh DG definitely.

grid.dataProvider.dispatchEvent(new 
CollectionEvent(CollectionEvent.CHANGE));

Dale Fraser wrote:
 validateNow does not work

 

 refresh does not seem to be available on my dataProvider which is a
variable
 array collection.

 

 If I redo the binding

 

 gridName.dataProvider = variableName;

 

 This works, but it redisplays the whole grid and looses your position
within
 the data.

 

 Regards

 Dale Fraser

 

 http://learncf.com

 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
 Behalf Of Max Frigge
 Sent: Tuesday, 15 January 2008 6:24 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] DataGrid Refresh

 

 Hey I am not quite sure about this, but 
 it should be either:

 yourDataProvider.refresh(); 

 or

 you could try dataGrid.validateNow();


 HTH (and I am not telling any crap ;)

 - Original Message 
 From: Dale Fraser [EMAIL PROTECTED] mailto:dale%40fraser.id.au 
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Tuesday, January 15, 2008 4:16:07 PM
 Subject: [flexcoders] DataGrid Refresh

 I have a datagrid and am programmatically updating some entries in the
 selected row.

 

 I have tried both

 

 selectedItem. columnName = blah

 

 and changing the bound dataProvider.

 

 Both work, but the grid does not refresh. If I do a column sort it
refreshes
 and I see the changed data.

 

 Regards

 Dale Fraser

 

 http://learncf. com

 
 

 



Re: [flexcoders] Re: List issues

2008-01-15 Thread Paul Andrews
Well done. Now you can forget that Ajax stuff..  ;-)

I guess using the .. in your XML solves the problem of where the asset data 
sits in the XML tree.

Paul
- Original Message - 
From: markcavins [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 10:58 PM
Subject: [flexcoders] Re: List issues


 Thank you to Tracy, Paul Andrews, Peter Ent and all the others that
 were with me in spirit trying to figure this out. In case any one has
 this same problem I am posting the solution that fixed this and this
 part is closed.

 Thank you again.

 Mark



RE: [flexcoders] Re: XML List problems

2008-01-15 Thread Tracy Spratt
Ok, move the trace statement up a bit higher:

private function onResult(Event:ResultEvent):void {
 var xmlResult:XML = XML(event.result); 

 trace(_xmlResult.toXMLString());

 

Post some of the xml traced in the logfile.

 

Tracy




 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markcavins
Sent: Monday, January 14, 2008 5:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML List problems

 

Thanks again Tracy,

I know there is still something that I am doing wrong because I still
do not see any data in the app.

mx:HTTPService id=tempXML resultFormat=e4x
result=onResult(event)
url=https://{customer.text}.mysite.net/interface.php?action=showopenam
p;operation=showassetsamp;format=xmlamp;opstatus=critamp;username={us
ername.text}amp;password={password.text}
/

mx:TileList dataProvider={_xlcMyListData} 
width=344 backgroundColor=#00 color=#ff fontSize=27
borderColor=#00 columnWidth=300 rowHeight=50
themeColor=#808080 fontWeight=bold allowMultipleSelection=true 
id=TileList1 height=0 y=202 x=178/

mx:Script
![CDATA[
//tempXML.lastResult.asset.fleet

import mx.rpc.Events.ResultEvent;
import mx.collections.XMLListCollection;

[Bindable]
private var _xlcMyListData:XMLListCollection;

private function onResult(Event:ResultEvent):void {
var xmlResult:XML = XML(event.result); 
var xlMyListData:XMLList = xmlResult.myListData; 
_xlcMyListData = new XMLListCollection(xlMyListData); 
trace(_xlcMyListData.toXMLString()); 


}

]]
/mx:Script

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 Also, Mark, you can remove the AsyncToken stuff until you are ready
for
 it.
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Alger Werft
 Sent: Friday, January 11, 2008 4:50 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] Re: XML List problems
 
 
 
 Concerning three of your errors:
 
 in onResult():
 
 You are passing in oEvent.
 The next line you are using event.
 
 You are declaring
 var callToken:AsyncToke
 
 but are using:
 token.callId = myQuery1;
 
 You are calling:
 doQuery2();
 
 The declaration of this method is nowhere to be found.
 
 Read your code a bit more carefully. FlexBuilder gives you hints. Use
 them.
 Look at the lines FlexBuilder lists in the Problems-View.
 If FlexBuilder says undefined property, ask yourself, is this
property
 
 declared? Have I misspelled it?
 Same goes for undefined method.
 
 markcavins schrieb:
 
  OK I've seen some of the errors
 
  mx:HTTPService id=tempXML resultFormat=e4x
  result=onResult(event)
 

url=https://{customer.text}.mysite.net/interface.php?action=showopenam

p;operation=showassetsamp;format=xmlamp;opstatus=critamp;username={us
 ername.text}amp;password={password.text}
  /
 
  mx:TileList dataProvider={_xlcMyListData}
  width=344 backgroundColor=#00 color=#ff fontSize=27
  borderColor=#00 columnWidth=300 rowHeight=50
  themeColor=#808080 fontWeight=bold allowMultipleSelection=true
  id=TileList1 height=0 y=202 x=178/
 
  mx:Script
  ![CDATA[
 
 
  import mx.rpc.Events.ResultEvent;
  import mx.rpc.AsyncToken;
  import mx.collections.XMLListCollection;
 
  [Bindable]
  private var _xlcMyListData:XMLListCollection;
 
 
  var oRequest:Object = new Object();
  oRequest.Arg1 = value1;
  var callToken:AsyncToken = tempXML.send(oRequest);
  token.callId = myQuery1;
 
  private function onResult(oEvent:ResultEvent):void {
  var xmlResult:XML = XML(event.result);
  var xlMyListData:XMLList = xmlResult.myListData;
  _xlcMyListData = new XMLListCollection(xlMyListData);
  trace(_xlcMyListData.toXMLString());
  var callToken:AsyncToken = oEvent.token;
  var sCallId = callToken.callId;
  switch(sCallId) {
  case myQuery1:
  doQuery2();
  break;
  }
 
 
  }
 
  ]]
  /mx:Script
 
  that cut the errors is half
 
  1120: Access of undefined property event.
  1120: Access of undefined property oRequest.
  1120: Access of undefined property token.
  1180: Call to a possibly undefined method doQuery2.
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, markcavins markcavins@
 
  wrote:
  
   This is what I have currently. I removed the comments to make it
   cleaner to read here.
  
   mx:HTTPService id=tempXML resultFormat=e4x
   result=onResult(event)
  
 

url=https://{customer.text}.mysite.net/interface.php?action=showopenam

p;operation=showassetsamp;format=xmlamp;opstatus=critamp;username={us
 ername.text}amp;password={password.text}
   /
  
   mx:Script
   ![CDATA[
  
  
   import mx.rpc.Events.ResultEvent;
   import mx.rpc.AsyncToken;
   import mx.rpc.XMLListCollection;
  
   [Bindable]
   private var 

Re: [flexcoders] DataGrid Refresh

2008-01-15 Thread George
Yeah, I typed directly in Thunderbird so there's no hints like Flex 
Builder. ;)

Doesn't matter.  Good luck!
George

Dale Fraser wrote:
 George,

  

 You are the man, that works, except for one error which I fixed

  

 Should be

  

 entriesGrid.dataProvider.dispatchEvent(new
 CollectionEvent(CollectionEvent.COLLECTION_CHANGE));

  

 not

  

 entriesGrid.dataProvider.dispatchEvent(new
 CollectionEvent(CollectionEvent.CHANGE));

  

  

 Regards

 Dale Fraser

  

 http://learncf.com

  

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of George
 Sent: Wednesday, 16 January 2008 9:55 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] DataGrid Refresh

  

 The best way you could dispatch CollectionEvent.CHANGE event. It will 
 refresh DG definitely.

 grid.dataProvider.dispatchEvent(new 
 CollectionEvent(CollectionEvent.CHANGE));

 Dale Fraser wrote:
   
 validateNow does not work



 refresh does not seem to be available on my dataProvider which is a
 
 variable
   
 array collection.



 If I redo the binding



 gridName.dataProvider = variableName;



 This works, but it redisplays the whole grid and looses your position
 
 within
   
 the data.



 Regards

 Dale Fraser



 http://learncf.com



 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
 On
   
 Behalf Of Max Frigge
 Sent: Tuesday, 15 January 2008 6:24 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] DataGrid Refresh



 Hey I am not quite sure about this, but 
 it should be either:

 yourDataProvider.refresh(); 

 or

 you could try dataGrid.validateNow();


 HTH (and I am not telling any crap ;)

 - Original Message 
 From: Dale Fraser [EMAIL PROTECTED] mailto:dale%40fraser.id.au 
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Sent: Tuesday, January 15, 2008 4:16:07 PM
 Subject: [flexcoders] DataGrid Refresh

 I have a datagrid and am programmatically updating some entries in the
 selected row.



 I have tried both



 selectedItem. columnName = blah



 and changing the bound dataProvider.



 Both work, but the grid does not refresh. If I do a column sort it
 
 refreshes
   
 and I see the changed data.



 Regards

 Dale Fraser



 http://learncf. com



 



Re: [flexcoders] [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With Danny Dura

2008-01-15 Thread Chris Velevitch
On Jan 16, 2008 10:01 AM, Seth Caldwell [EMAIL PROTECTED] wrote:
 Drat, I just got back from Sydney last night. Anyone know of any events like
 this in San Diego or LA?

Try http://flex.org/tour for your area.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au


[flexcoders] Re: [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With Danny Dura

2008-01-15 Thread Chris Velevitch
Should had mentioned that Danny Dura will in Sydney to do this presention.

On Jan 16, 2008 9:08 AM, Chris Velevitch [EMAIL PROTECTED] wrote:
 Thursday, 24th January.

 Flex 3 and AIR are getting close to launch and in preparation, Danny
 Dura from the Platform Evangelism Team will be specifically in Sydney
 to show off the great new features for this exciting launch.

 Check the listings below to hook up with the local user group in the
 city closest to you and join us for an evening of Flex and AIR.

 Don't miss out on the opportunity to see and hear about this highly
 anticipated release of Flex 3 and AIR during this special pre-release
 tour. Plus, in addition to giving away some one of a kind Flex/AIR
 branded schwag, each event will also be raffling off a copy of Flex
 Builder 3 Professional (pending availability) and a full commercial
 copy of CS3 Web Premium!

 Details and RSVP on http://sydneyflashdev2008prelaunchtour.eventbrite.com

 --
 Chris
 --
 Chris Velevitch
 Manager - Sydney Flash Platform Developers Group
 m: 0415 469 095
 www.flashdev.org.au




-- 
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au


RE: [flexcoders] DataGrid Refresh

2008-01-15 Thread Tracy Spratt
Dale, use the ArrayCollection API to update the item (probably
setItemAt()).  Simply assigning a value to selectedItem doesn't
displatch the events necessary to make the DG UI update.

 

refresh() *is* a method on the AC.  Calling that should also work (but
it may cause a full redraw, I don't recall.)  Why do you say it is not
available?  It is listed in the docs.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dale Fraser
Sent: Tuesday, January 15, 2008 5:43 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid Refresh

 

validateNow does not work

 

refresh does not seem to be available on my dataProvider which is a
variable array collection.

 

If I redo the binding

 

gridName.dataProvider = variableName;

 

This works, but it redisplays the whole grid and looses your position
within the data.

 

Regards

Dale Fraser

 

http://learncf.com

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Max Frigge
Sent: Tuesday, 15 January 2008 6:24 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGrid Refresh

 

Hey I am not quite sure about this, but 
it should be either:

yourDataProvider.refresh(); 

or

you could try dataGrid.validateNow();


HTH (and I am not telling any crap ;)

- Original Message 
From: Dale Fraser [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 15, 2008 4:16:07 PM
Subject: [flexcoders] DataGrid Refresh

I have a datagrid and am programmatically updating some entries in the
selected row.

 

I have tried both

 

selectedItem. columnName = blah

 

and changing the bound dataProvider.

 

Both work, but the grid does not refresh. If I do a column sort it
refreshes and I see the changed data.

 

Regards

Dale Fraser

 

http://learncf. com

 

 

 



Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearc
h/category.php?category=shopping 

 



RE: [flexcoders] Re: HTTPService - save DataGrid data

2008-01-15 Thread Tracy Spratt
You probably got xml from the server.  Are you using it directly, or via
XMLListCollection? If so, then updates to the dataGrid should be
reflected in the main XML and you can send the xml straight back to the
server.  This is how I usually do it.

 

If you generated an ArrayCollection of value objects, you will need to
manually build the xml and send it back.

 

While we are supposed to be able to send xml documents directly using
HTTPService, I heard about trouble with this and have settled on sending
XML strings via normal contentType by posting name=value pairs.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, January 15, 2008 2:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HTTPService - save DataGrid data

 

But I need to send modified DataGrid's data: a dataProvider that was 
initially created in the service's Result event.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Scott Melby [EMAIL PROTECTED] wrote:

 Mark -
 
 You can make your backend code take whatever you like. The 
 HTTPService.send will just post to a URL that you specify (based on 
url 
 property). You can then pass params... here is an example.
 
 var params:Object = new Object();
 params.changedItemID = 1;
 params.name = New Name;
 myHttpService.send(params);
 
 on the backend you can then just parse the request params to get 
the 
 changed data and commit them to your DB etc.
 
 hth
 Scott
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com http://www.fastlanesw.com 
 
 
 
 markgoldin_2000 wrote:
 
  But I am not sure what exaclty I need to provide to the send 
method
  to post data back to server.
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  
  mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ 
wrote:
  
   Just re-read this and realized I may have mis-understood the
  question
   :) If you want to save data from grid back to server after user
  changes
   it, take a look at DataGrid.itemEditEnd event.
  
   hth
   Scott
  
   Scott Melby
   Founder, Fast Lane Software LLC
   http://www.fastlanesw.com http://www.fastlanesw.com
http://www.fastlanesw.com http://www.fastlanesw.com 
  
  
  
   Scott Melby wrote:
   
Is there a reason that you can't use SharedObject to save the
  grid
size, etc. on the client side?
   
hth
Scott
   
Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com http://www.fastlanesw.com
http://www.fastlanesw.com http://www.fastlanesw.com 
   
   
markgoldin_2000 wrote:
   
I am using HTTPService to bring data from server. My DataGrid
  data is
an xml. In order to save do I need to convert DataGrid data
  before
sending it back to the server?
   
Thanks
   
   
  
 
 


 



[flexcoders] child X position and parent X position

2008-01-15 Thread Corey Smaller
ok so I have a child canvas and a parent canvas that acts as a mask.  
I have the navigation set up using the arrow keys between all the
elements in the child container. Lets say my child container's height
is 5000 and width is 5000 but my mask is 800 x 600 (the childs size
actually varies based on the tot width of the rows and total number of
rows returned from the DB). when I scroll up past the viewable top
and/or viewable bottom the child should move 600 pixels up or down to
stay in view.  is there a  way to compare the childs position to the
parents where my code knows when to move the canvas?? 
I thought well, if the highlighted item's Y position is equal to the
parent containers then it should move  but its not that easy.

any thoughts?

i have tried paginating, sending fresh HTTP requests for the next 5
rows of data, and a few other methods and the best and most fluid way
i have found to set this up is to load all my data at once in the mask
since there is not alot of graphics or tons of data being loaded.



RE: [flexcoders] Re: [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With Danny Dura

2008-01-15 Thread Merrill, Jason
Should had mentioned that Danny Dura will [be] in Sydney to do this
presention.
 
You did..?  :)  :   
 
Danny Dura from the Platform Evangelism Team will be specifically in
Sydney to show off the great new features for this exciting launch.
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 




[flexcoders] StyleManager.loadStyleDeclarations causes SecruityError

2008-01-15 Thread Lachlan Cotter

Hi Flexcoders,



Can anyone help me with an apparent sandbox issue?

I'm attempting to load an SWF at runtime using the StyleManager.

StyleManager.loadStyleDeclarations(url);

The URL is on a remote web sever and I am running the code from a  
local trusted SWF. I understand this should be enough to allow Flash  
player to download the asset. However, this results in the following  
error being thrown from somewhere in the ModuleManager.


Error: Unable to load style(SWF is not a loadable module): http:// 
mysever.com/my path to the .swf


I also tried using the 'trustedContent' argument to  
loadStyleDeclarations


StyleManager.loadStyleDeclarations(url, true, true);

However, this seems to result in a different error:

SecurityError: Error #2142: Security sandbox violation: local SWF  
files cannot use the LoaderContext.securityDomain property.


The server does have a crossdomain policy file:

?xml version=1.0?
!DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/ 
dtds/cross-domain-policy.dtd

cross-domain-policy
  allow-access-from domain=* /
/cross-domain-policy

But Flash player doesn't seem to be loading it. According to Safari's  
Activity monitor.


The SWF file does exist. I downloaded in a browser it and loaded it  
locally through the StyleManager without problems.


Can anyone shed some light on this?



Many thanks,
Lach

smime.p7s
Description: S/MIME cryptographic signature


[flexcoders] Re: [SYD-ANN] Sydney Flex and AIR Pre-Release Tour With Danny Dura

2008-01-15 Thread Jeff Houser
 With all due respects to Chris, is it appropriate to ask that such
announcements do not get posted to the list?  I do not wish to see a
multitude of announcements for events I cannot attend.

 There must be some way to promote to your local market, without
bombarding the list right? 

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

 Thursday, 24th January.
 
 Flex 3 and AIR are getting close to launch and in preparation, Danny
 Dura from the Platform Evangelism Team will be specifically in Sydney
 to show off the great new features for this exciting launch.
 
 Check the listings below to hook up with the local user group in the
 city closest to you and join us for an evening of Flex and AIR.
 
 Don't miss out on the opportunity to see and hear about this highly
 anticipated release of Flex 3 and AIR during this special pre-release
 tour. Plus, in addition to giving away some one of a kind Flex/AIR
 branded schwag, each event will also be raffling off a copy of Flex
 Builder 3 Professional (pending availability) and a full commercial
 copy of CS3 Web Premium!
 
 Details and RSVP on
http://sydneyflashdev2008prelaunchtour.eventbrite.com
 
 -- 
 Chris
 --
 Chris Velevitch
 Manager - Sydney Flash Platform Developers Group
 m: 0415 469 095
 www.flashdev.org.au





[flexcoders] (unknown)

2008-01-15 Thread Girish
Thanks for replying


  Now you can chat without downloading messenger. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php

RE: [flexcoders] child X position and parent X position

2008-01-15 Thread Tracy Spratt
You want the coordinate system methods.  See localToGlobal() and the
related functions in the docs.  See the heading Using Flex coordinates
in the Developer's guide.  It has a good explanation.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Smaller
Sent: Tuesday, January 15, 2008 7:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] child X position and parent X position

 

ok so I have a child canvas and a parent canvas that acts as a mask. 
I have the navigation set up using the arrow keys between all the
elements in the child container. Lets say my child container's height
is 5000 and width is 5000 but my mask is 800 x 600 (the childs size
actually varies based on the tot width of the rows and total number of
rows returned from the DB). when I scroll up past the viewable top
and/or viewable bottom the child should move 600 pixels up or down to
stay in view. is there a way to compare the childs position to the
parents where my code knows when to move the canvas?? 
I thought well, if the highlighted item's Y position is equal to the
parent containers then it should move but its not that easy.

any thoughts?

i have tried paginating, sending fresh HTTP requests for the next 5
rows of data, and a few other methods and the best and most fluid way
i have found to set this up is to load all my data at once in the mask
since there is not alot of graphics or tons of data being loaded.

 



[flexcoders] Re: Remove spaces between 2 vboxs

2008-01-15 Thread girish_ok
use this property
mx:VBox id=v1 VerticalGap=0 /mx:VBox



  1   2   >