Re: [flexcoders] FlexBuilder 2 alpha outline view dosen't show

2005-10-25 Thread Paolo Bernardini



ok, thanks Matt, I hope it will make it to the final release because is a very usefull tool
2005/10/24, Matt Chotin [EMAIL PROTECTED]:


Outline view isn't supported in the alpha.

Matt





From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Paolo BernardiniSent: Monday, October 24, 2005 6:08 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] FlexBuilder 2 alpha outline view dosen't show

I'm not able to see the outline view in flex builder 2, it says An 
outline is not available. It dosen't matter if is an mxml file or as. Any idea why?
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
SPONSORED LINKS 




Web site design development 

Computer software development 

Software design and development 


Macromedia flex 

Software development best practice 


YAHOO! GROUPS LINKS 

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











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] [Flex2] State and size

2005-10-25 Thread Stephane De Jonckheere
Hi all, 
I'm currently trying Flex 2 and the new State feature.
I'd like to do some kind of fullscreen button.

I managed to do that in Flex 2 but I have some problems.
First of all I need to set the width and height back in a new State.
Switching back to the Base State (setting currentState to null) is not
working 'cause the panel keep the width and height of the fullscreen state.
That's why I'm using the restore state. Ain't it a bug in the state feature?
Or is there something I am not doing correctly?

See code below.

Regards,
Stephane

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*
mx:states
mx:State name=FullScreen
mx:RemoveChild child={searchPanel}/
mx:RemoveChild child={mainBox}/
mx:AddChild target={appCanvas}
child={searchPanel}/
/mx:State
mx:State name=Restore
mx:PropertyOverride target={appCanvas}
property=height value=100%/
mx:PropertyOverride target={appCanvas}
property=width value=100%/
mx:PropertyOverride target={mainBox}
property=height value=100%/
mx:PropertyOverride target={mainBox}
property=width value=100%/
mx:PropertyOverride target={menuPanel}
property=height value=100%/
mx:PropertyOverride target={menuPanel}
property=width value=25%/
mx:PropertyOverride target={contentBox}
property=height value=100%/
mx:PropertyOverride target={contentBox}
property=width value=75%/
mx:PropertyOverride target={searchPanel}
property=height value=100%/
mx:PropertyOverride target={searchPanel}
property=width value=100%/
mx:PropertyOverride target={resultPanel}
property=height value=100%/
mx:PropertyOverride target={resultPanel}
property=width value=100%/
/mx:State
/mx:states
mx:Script
static var fullscreen:Boolean=false;
/mx:Script
mx:Canvas id=appCanvas width=100% height=100%
mx:HDividedBox id=mainBox width=100% height=100%
mx:Panel id=menuPanel height=100% width=25%
mx:Canvas height=100% width=100%/
/mx:Panel
mx:VBox id=contentBox height=100% width=75%
hScrollPolicy=off vScrollPolicy=off
mx:Panel id=searchPanel height=100%
width=100% resizeEffect=Resize
mx:Canvas height=100%
width=100% id=canvas1
mx:Button x=275 y=116
label=Switch
click=currentState=(fullscreen?'Restore':'FullScreen');fullscreen=!fullscre
en; id=button1/
mx:Button x=275 y=156
label=getState click=if (currentState!=null) {
mx.controls.Alert.show(currentState.toString()); } else {
mx.controls.Alert.show('Base State'); } id=button2/
/mx:Canvas
/mx:Panel
mx:Panel id=resultPanel height=100%
width=100%
mx:Canvas height=100%
width=100%/
/mx:Panel
/mx:VBox
/mx:HDividedBox

/mx:Canvas
/mx:Application



***

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager to [EMAIL PROTECTED]

***





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Re: BindingManager and Properties interogation.. (Flex 1.5)

2005-10-25 Thread Scott Barnes



On 10/25/05, Matt Chotin [EMAIL PROTECTED] wrote:

















I was talking 1.5 for ClassReference, it
shouldn't go in BindingManager if you don't have curly braces. Not
sure why it didn't behave for you.
Nope, Still places them inside the binding Manager.heh found a bug then? 

i tried it on a few different classes, and all did the same.. the
moment curly braces enter the equation, its _level0.document._bindings.
I'm using FAST to inspect the _level0 heirachy and it does show up
there aswell as within trace statements i've made... 

class com.mossyblog.test extends mx.containers.HBox {
 [ClassReference]
 public var testAttr:Boolean;

}

mb:test testAttr={true}/



The organization of bindings is different
in 2.0 I think, but in any case we have no intention of that stuff being
exposed for other purposes so I wouldn't count on us changing anything
for you here JSo,
(probably not the forum for this) the chances of us getting source for
FLEX 2.0 framework is ummm... not likely? I say this as i've often
relied on the frameworks source to help reduce verbose MXML to
simplistic ones... by using MXML tag to do one or more things at once..



Glad you liked the accent, trying to
offend as many Aussies as possible, Pete Farland almost cried in pain J

Its not that bad, could be worse, Steve Irwin style umm..thats even
painful for aussies... we don't all sound like that, and of course i
personally prefer to stage dive onto great white sharks, where as
others prefer crocs... thats of course after we overcome our fear of
not being allowed to jump into kangaroo pouches when we are little ;)
...damn, if i only could of worked in throw a shrimp on the barbe in
there somehow...





From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Scott
 Barnes
Sent: Monday, October 24, 2005
9:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
BindingManager and Properties interogation.. (Flex 1.5)









On 10/25/05, Matt
Chotin [EMAIL PROTECTED]
wrote:



If you want to ensure that the class gets linked but is
available at creation up you can use [ClassReference] as the metadata on the
property of your component and we'll link it in so that you don't have to use
bindings. That should give things to you a little earlier.



[ClassReference]

var monkeyClass:Object;



Then when you startup look if monkeyClass is a Function
(you're done) or String (pray that it was linked). But binding becomes
unnecessary. If you always want the class reference you could of course
type your variable as Function.





So this is all in FLEX 2.0 yeah? not for 1.5.. ie 1.5 seems to do a
parse where it seperates complex attributes from simple, if complex store in
binding manager else show in obj.properties..











Flex 2 will allow you to say that a variable should be of
type Class.







Yeah, haven't had the
chance this week to jump back into 2.0, but will revisit this then :) heheh.










Is this enough or do you still need the binding stuff
later? 







Personally, i'd like the binding manager to represend its bindings in a
Struct/hashmap rather then keys havin dot.notations.. in that, if
the following exists:

oe:myCustomTag id=monkey attr1={true}
attr2={false} attr3={ref.to.class.path}/

Then inside document._bindings it would look like this:

document._bindingsByDestination[monkey.attr1]
document._bindingsByDestination[monkey.attr2]
document._bindingsByDestination[monkey.attr3]




Rather then.
document._bindingsByDestination.monkey[attr1]
document._bindingsByDestination.monkey[attr2]
document._bindingsByDestination.monkey[attr3]

Not sure, but to me the later sounds more optimal as then you could kill a
branch, rather then forloop text pattern searching?



Yeah, the deferred instantiation structure to work with
binding and all that jazz was pretty insane. Almost every engineer on the
app model was involved in it somewhere J





Anyone who says the FLEX Engineer team are hacks, umm deserves a big ol
fashion slap with a trout ;) i'm impressed anyway, now i have to
relearn everying for FLEX 2.0... geez...hopefully there is some transfer there
in terms of logic that i can leveridge (ie i'm hoping its not too radical in
change of framework).

Thanks Matt.
(P.S... nice Aussie Accent at MAX btw.. it was disturbing heh)











Matt











From: 
flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Scott Barnes
Sent: Monday, October 24, 2005
4:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
BindingManager and Properties interogation.. (Flex 1.5)







Hi Matt,



On
10/25/05, Matt Chotin [EMAIL PROTECTED]
wrote:



Well in this particular example you know that cellRenderer doesn't
need to use a binding _expression_, it can be done as a string and we know that
CellRenderers are usually classes so we do a lookup?





I should
of used a different naming for my attribute. I've created my own MXML tag
*component* that in a nutshell 

[flexcoders] Re: Flex 2. Chart Installation problems

2005-10-25 Thread yaagcur
Matt
Thanks for replying - I have got some livedocs examples working now
I guess my problem was that I was just transposing the 1.5 chart
examples. Hopefully there will be an update for 2.0 soon (inc drilldown
on stacked charts)
Andrew


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

 What happens if you create a simple chart from scratch (there are plenty
 of examples in the doc)? Is it that the sample is not working or no
 charts at all are working?
 
 And when you say appropriate directories can you be more specific?
 
 Tnks,
 
 Matt Horn
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur
  Sent: Sunday, October 23, 2005 5:39 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Flex 2. Chart Installation problems
  
  Sorry if this a repost but cannot see it on the list from yesterday
  
  I've extracted the charts.swc and categories.xml to the 
  appropriate directories and copied the BarBasic.mxml and 
  regiondata.xml files from the chartexplorer to a new project 
  
  However when I run the mxml with no changes I just get a blank chart.
  No errors in debugging so
  presumably it is seeing the xml data OK 
  
  Anyone else having problems or could point me in tight direction
  
  
  
  
  
   Yahoo! Groups Sponsor 
  ~-- Get Bzzzy! (real tools to help you 
  find a job). Welcome to the Sweet Life.
  http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
  --
  --~- 
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
  
  
  
   
  
  
 







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: File Upload / FileIO

2005-10-25 Thread mackdoyle
I'm going to bump this because I never saw it show up in the list
yesterday.





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Implementing ModelLocator pattern in AS3/Flex2

2005-10-25 Thread Clint Modien



It would if you created an internal var first


Test.mxml
-
?xml version=1.0 ?mx:Application xmlns:mx=
http://www.macromedia.com/2005/mxml xmlns=*

mx:Script![CDATA[import TestLocator;private varmyTestLocator = TestLocator.getInstance
();private function onChangeClick():Void {TestLocator.getInstance().someProperty = 'Some other value';}]]/mx:Script

mx:Label text={myTestLocator.someProperty} /

mx:Button label=Change value click=onChangeClick() /

/mx:Application
On 10/25/05, Benoit Hediard [EMAIL PROTECTED] wrote:

I don't think that bindings works on singleton instance syntax.

TestLocator.as
-
package {public class TestLocator {private static var testLocator:TestLocator;public var someProperty:String;
public static function getInstance():TestLocator {if(testLocator == null)testLocator = new TestLocator();return testLocator; }public function TestLocator() {
this.someProperty = Some value;}}}

Test.mxml
-
?xml version=1.0 ?mx:Application xmlns:mx=
http://www.macromedia.com/2005/mxml xmlns=*

mx:Script![CDATA[import TestLocator;private function onChangeClick():Void {TestLocator.getInstance().someProperty = 'Some other value';
}]]/mx:Script

mx:Label text={TestLocator.getInstance().someProperty} /

mx:Button label=Change value click=onChangeClick() /

/mx:Application

Anyway, I'll wait for the release of Cairngorm for Flex2.0 to see how Steven and Allistair did this part of their framework.


Thanks.

Benoit Hediard


De: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] De la part de Matt ChotinEnvoyé: lundi 24 octobre 2005 19:39À: 
flexcoders@yahoogroups.comObjet: RE: [flexcoders] Implementing ModelLocator pattern in AS3/Flex2



I haven't investigated this for real but you may need to turn ModelLocator into a singleton so that there's an instance of an object to watch. Because we're doing code-gen and not prototype hacking it's impossible to make a Class object an EventDispatcher. The singleton approach would allow us to use the code-gen and then you'd simply bind to 
ModelLocator.getInstance().myModel instead of ModelLocator.myModel.

Matt





From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Clint ModienSent: Friday, October 21, 2005 12:18 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Implementing ModelLocator pattern in AS3/Flex2

Make the objects in the Model Locator typed by importing the classes you need to ref.

On 10/21/05, Benoit Hediard 
[EMAIL PROTECTED] wrote: 

Since it is not possible to create bindings to static properties, how do you implement the ModelLocator pattern in AS3?




Benoit Hediard



PS: by the way, any information on an alpha release of Cairngorm for Flex2.0?
--
Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 



YAHOO! GROUPS LINKS
 


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




--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


YAHOO! GROUPS LINKS 

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










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] checkbox in repeater

2005-10-25 Thread Husain Kitabi



Hi
This works!!

Thanks.Matt Chotin [EMAIL PROTECTED] wrote:









You should have access to mods as a 2-d array.

mods[i][j]

every mods[i] is the array of checkboxes for the listModules repeater.

For (var i:Number=0; i  mods.length; i++)
{
 For (var j:Number=0; j  mods[i].length; j++)
 {
 Trace(mods[i][j].label + ‘ = ‘ + mods[i][j].selected);
 }
}

Haven’t tested this but this should hopefully get you on track.

Matt





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain KitabiSent: Friday, October 21, 2005 8:35 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] checkbox in repeater


Hi

I am having a repeater - repeater - checkbox. 



mx:Repeater id="list" dataProvider="{courseDtos}"
mx:HBox mouseDown="slideOpen(event.target.repeaterIndices[0])"
mx:Label text="{list.currentItem.courseName}"/
/mx:HBox

mx:VBox id="detail" marginLeft="10" marginBottom="10" height="0" vScrollPolicy="off" hScrollPolicy="off"
mx:Repeater id="listModules" dataProvider="{list.currentItem.modules}"

mx:CheckBox id="mods" label="{listModules.currentItem.moduleName}"/
/mx:Repeater
/mx:VBox

/mx:Repeater


I need the values of mods. I tried the following in my script

function getSelectedModules(){

var len= list.dataProvider.length;
var str = "";
for(var j=0;jlen ;j++){
for(var i=0; ilistModules[j].dataProvider.length;i++){
str = str + '\n' + listModules[j].mods[i].label;
}

}
mx.controls.Alert.show("Checbox :"+ str);
}

This returns me undefined. Any ideas how to get checkbox values

Regards
hussain



Yahoo! FareChase - Search multiple travel sites in one click. hussain
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Web-services giving hell to implement

2005-10-25 Thread knly browne



Good day awll...

I have a little quirk with connecting to web-services in Flex 2.0. In
flex 1.x you simply configured the service file that resides on the
server and then you add you web-service object to you applications
configure the wsdl and you good to go..

For flex 2.0 i see that the model had changed dramatically...now there
is the advent of the crossdomain.xml that must be placed in the root
directory of the server that you are trying to get the service from, so
the Question now becomes if the server resides half way around the
world..how in gods name do i place a config file on that server...
now the server that give me the web-service is implemented using
rem-objects for delphi.. so its not a java server its a delphi
program..how do i install a crossdomain.xml file on that appication..

Flex 2.0 doesn't come with any web-services example...
As of present i have no idea of how to use web-services in Flex 2.0
can anyone out there assist me..?
Thanks-- Kenlie BrowneSoftware Developer






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





  




  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] How to upload file from local file system

2005-10-25 Thread jagabcdeff
Hi,

Now i am working on uploading  file from local system.
How to do this with Flex.


any help is appreciate..

Thanks,
Jagadeesh





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] File Upload / FileIO

2005-10-25 Thread JesterXL
Something is accessing it.  Meaning, Flash 8 is currently viewing the SWF, 
or you have it open.  FlexBuilder will not upload a file if something has a 
file handle open to the file.  Close all applications referencing the SWF, 
reboot FlexBuilder, and try again.

- Original Message - 
From: mackdoyle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, October 24, 2005 11:18 AM
Subject: [flexcoders] File Upload / FileIO


I am trying to get the file upload working and have placed all of the
files in the app root for now. When I try to run the main.mxml in Flex
Builder, I get an error message saying An error occurred - cannot put
fileio.swf. The process cannot access the file because it is being
used by another process. Any ideas what is causing this?






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







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] File Upload / FileIO

2005-10-25 Thread JesterXL
...or are you talking about the actual ability to upload files via the File 
object in Flash 8?

- Original Message - 
From: JesterXL [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 25, 2005 10:51 AM
Subject: Re: [flexcoders] File Upload / FileIO


Something is accessing it.  Meaning, Flash 8 is currently viewing the SWF,
or you have it open.  FlexBuilder will not upload a file if something has a
file handle open to the file.  Close all applications referencing the SWF,
reboot FlexBuilder, and try again.

- Original Message - 
From: mackdoyle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, October 24, 2005 11:18 AM
Subject: [flexcoders] File Upload / FileIO


I am trying to get the file upload working and have placed all of the
files in the app root for now. When I try to run the main.mxml in Flex
Builder, I get an error message saying An error occurred - cannot put
fileio.swf. The process cannot access the file because it is being
used by another process. Any ideas what is causing this?






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








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







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] How to upload file from local file system

2005-10-25 Thread jagabcdeff
Hi,

Now i am working on uploading file from local system to oracle 
database.
How to do this with Flex.


any help is appreciate..

Thanks,
Jagadeesh







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: Re: [flexcoders] Implementing ModelLocator pattern in AS3/Flex2

2005-10-25 Thread Benoit Hediard





Indeed, it works this way.
Here is the working code for those 
interested.

TestLocator

package {public class TestLocator 
{private static var 
testLocator:TestLocator;[Bindable]public 
var someProperty:String;public static function 
getInstance():TestLocator {if(testLocator == 
null)testLocator = new 
TestLocator();return 
testLocator; }public 
function TestLocator() {this.someProperty = "Some 
value";}}}

Test.mxml
---
?xml version="1.0" ?mx:Application 
xmlns:mx="http://www.macromedia.com/2005/mxml" 
xmlns="*"

mx:Script![CDATA[import 
TestLocator;public var model:TestLocator = 
TestLocator.getInstance();private function 
onChangeClick():Void {model.someProperty = 'Some other 
value';}]]/mx:Script

mx:Label text="{model.someProperty}" 
/

mx:Button label="Change value" click="onChangeClick()" 
/

/mx:Application

Thanks.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Clint 
ModienEnvoyé: mardi 25 octobre 2005 16:24À: 
flexcoders@yahoogroups.comObjet: [Norton AntiSpam] Re: 
[flexcoders] Implementing ModelLocator pattern in AS3/Flex2

It would if you created an internal var first


Test.mxml
-
?xml 
version="1.0" ?mx:Application xmlns:mx=" 
http://www.macromedia.com/2005/mxml" xmlns="*"

mx:Script![CDATA[import 
TestLocator;private varmyTestLocator = TestLocator.getInstance ();private function 
onChangeClick():Void 
{TestLocator.getInstance().someProperty = 'Some other 
value';}]]/mx:Script

mx:Label 
text="{myTestLocator.someProperty}" 
/

mx:Button label="Change value" click="onChangeClick()" 
/

/mx:Application
On 10/25/05, Benoit 
Hediard [EMAIL PROTECTED] 
wrote: 

  I don't 
  think that bindings works on singleton instance syntax.
  
  TestLocator.as
  -
  package 
  {public class TestLocator 
  {private static var 
  testLocator:TestLocator;public var 
  someProperty:String; public static function 
  getInstance():TestLocator {if(testLocator == 
  null)testLocator = new 
  TestLocator();return 
  testLocator; }public 
  function TestLocator() { this.someProperty = "Some 
  value";}}}
  
  Test.mxml
  -
  ?xml 
  version="1.0" ?mx:Application xmlns:mx=" 
  http://www.macromedia.com/2005/mxml" xmlns="*"
  
  mx:Script![CDATA[import 
  TestLocator;private function 
  onChangeClick():Void 
  {TestLocator.getInstance().someProperty = 'Some other 
  value'; 
  }]]/mx:Script
  
  mx:Label text="{TestLocator.getInstance().someProperty}" 
  /
  
  mx:Button label="Change value" click="onChangeClick()" 
  /
  
  /mx:Application
  
  Anyway, 
  I'll wait for the release of Cairngorm for Flex2.0 to see how Steven and 
  Allistair did this part of their framework.
  
  Thanks.
  
  Benoit 
  Hediard
  
  
  De: flexcoders@yahoogroups.com [mailto: 
  flexcoders@yahoogroups.com] De la part de Matt 
  ChotinEnvoyé: lundi 24 octobre 2005 19:39À: 
  flexcoders@yahoogroups.comObjet: RE: 
  [flexcoders] Implementing ModelLocator pattern in 
  AS3/Flex2
  
  
  
  I haven't 
  investigated this for real but you may need to turn ModelLocator into a 
  singleton so that there's an instance of an object to watch. Because 
  we're doing code-gen and not prototype hacking it's impossible to make a Class 
  object an EventDispatcher. The singleton approach would allow us to use 
  the code-gen and then you'd simply bind to ModelLocator.getInstance().myModel 
  instead of ModelLocator.myModel.
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Friday, October 21, 2005 12:18 
  PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Implementing 
  ModelLocator pattern in AS3/Flex2
  
  Make the objects in the Model Locator typed by 
  importing the classes you need to ref.
  
  On 
  10/21/05, Benoit Hediard  [EMAIL PROTECTED] 
  wrote: 
  
  Since it is not possible to create 
  bindings to static properties, how do you implement the ModelLocator pattern 
  in AS3?
  
  
  
  Benoit 
  Hediard
  
  
  
  PS: by the way, any information on 
  an alpha release of Cairngorm for Flex2.0?
  -- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  
  
  
  YAHOO! 
  GROUPS LINKS 
  
  
Visit your group "flexcoders 
" on the web. 
To 
unsubscribe from this group, send an email to: 
[EMAIL PROTECTED] 
Your 
use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
  
  
  
  
  --Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  
  
  YAHOO! GROUPS LINKS 
  
Visit your group "flexcoders" on the web. 
To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED] 

Your use of Yahoo! Groups is subject to the Yahoo! Terms 

Re: [flexcoders] Web-services giving hell to implement

2005-10-25 Thread Spike



I would imagine that once the Flex Enterprise services become available
you would connect to the webservice using that as a proxy the same way
as you did in Flex 1.5.
For now, you will have to either use a different webservice or create
some sort of webservice proxy that sits on the same server as the .swf.

The crossdomain.xml approach has always been available in Flex 1.5 too,
it's just that it's impractical when you don't control the webservice.

Spike
On 10/25/05, knly browne [EMAIL PROTECTED] wrote:



Good day awll...

I have a little quirk with connecting to web-services in Flex 2.0. In
flex 1.x you simply configured the service file that resides on the
server and then you add you web-service object to you applications
configure the wsdl and you good to go..

For flex 2.0 i see that the model had changed dramatically...now there
is the advent of the crossdomain.xml that must be placed in the root
directory of the server that you are trying to get the service from, so
the Question now becomes if the server resides half way around the
world..how in gods name do i place a config file on that server...
now the server that give me the web-service is implemented using
rem-objects for delphi.. so its not a java server its a delphi
program..how do i install a crossdomain.xml file on that appication..

Flex 2.0 doesn't come with any web-services example...
As of present i have no idea of how to use web-services in Flex 2.0
can anyone out there assist me..?
Thanks-- Kenlie BrowneSoftware Developer






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






  




  
  
  YAHOO! GROUPS LINKS



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




  








-- Stephen MilliganDo you do the Badger?http://www.yellowbadger.com
Do you cfeclipse? http://www.cfeclipse.org






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Re: Web-services giving hell to implement

2005-10-25 Thread Dave Wolf
The model actually hasnt changed.  In Flex 1.5 you could also use 
the crossdomain.xml solution to allow the player to connect to a web 
service on a different host then it was downloaded from.  

Now in Flex1.5 you had the flexproxy servlet which would act as a 
proxy and redirect those calls tot he third party.  You wouldnt need 
crossdomain.xml then.  However, you could bypass the proxy and then 
use crossdomain.xml.  All youre choice.

In Flex2 you will need the enterprise data services to have access 
to the proxy.  So to do what you want, and not rely on 
crossdomain.xml in Flex2 you need the more expensive (in line with 
Flex 1.5) version. 

The difference is for the much lower price you can skip needing the 
proxy *if* you own the service and can use crossdomain.xml.  If you 
dont, you need the enterprise version.

Make sense?


-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY x85

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

 Good day awll...
 
 I have a little quirk with connecting to web-services in Flex 2.0. 
In flex
 1.x you simply configured the service file that resides on the 
server and
 then you add you web-service object to you applications configure 
the wsdl
 and you good to go..
 
 For flex 2.0 i see that the model had changed dramatically...now 
there is
 the advent of the crossdomain.xml that must be placed in the root 
directory
 of the server that you are trying to get the service from, so the 
Question
 now becomes if the server resides half way around the world..how 
in gods
 name do i place a config file on that server...
 now the server that give me the web-service is implemented using 
rem-objects
 for delphi.. so its not a java server its a delphi program..how do 
i install
 a crossdomain.xml file on that appication..
 
 Flex 2.0 doesn't come with any web-services example...
 As of present i have no idea of how to use web-services in Flex 2.0
 can anyone out there assist me..?
 Thanks
 
 --
 Kenlie Browne
 Software Developer







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] How to do constructor when extending Container

2005-10-25 Thread Tracy Spratt
Perhaps you don't really want to pass the data in the constructor?  You
can pass data into a custom component through the mxml declaration tag:
comp:MyCanvas id=myc dataIn={oMyDataObject} .../

Just declare a public var in the component dataIn.  Or make it a
setter function if you want to take some complex action.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Monday, October 24, 2005 9:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to do constructor when extending Container

I am trying to extend the Canvas in an .as file, following the Rich
Client book by Webster et al, of course mine is more complicated as it
contains other components whose attributes need to be initialized. I
need to pass some attributes in via the constructor. Could someone
show me a code snippet that illustrates this, or tell me the right
way to do it?

Thanks,
Libby






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



 






 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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





RE: [flexcoders] How to upload file from local file system

2005-10-25 Thread João Fernandes
Take a look here,

http://www.macromedia.com/devnet/flex/articles/fp8_features.html 


João Fernandes
Secção de Desenvolvimento
Departamento de Informática


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jagabcdeff
Sent: terça-feira, 25 de Outubro de 2005 15:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to upload file from local file system

Hi,

Now i am working on uploading file from local system to oracle database.
How to do this with Flex.


any help is appreciate..

Thanks,
Jagadeesh








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



 




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] How to upload file from local file system

2005-10-25 Thread João Fernandes
Take a look here,
 


João Fernandes

Secção de Desenvolvimento

Departamento de Informática


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jagabcdeff
Sent: terça-feira, 25 de Outubro de 2005 15:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to upload file from local file system

Hi,

Now i am working on uploading file from local system to oracle database.
How to do this with Flex.


any help is appreciate..

Thanks,
Jagadeesh








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



 




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] How to upload file from local file system

2005-10-25 Thread Darron J. Schall
jagabcdeff wrote:

Hi,

Now i am working on uploading file from local system to oracle 
database.
How to do this with Flex.
  


I've recently done this, and the process I used looks something like this:

If Flash Player 7 and Non ActiveX player
- Disable upload, prompt for upgrade to latest playet with Express 
Install

If Flash Player 7 and ActiveX player
- Use a combination of hidden IFRAME with an upload form and the 
Flash / JavaScript integration kit.  This is similar to the approach 
outline here: 
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19382  
but a cleaner implementation because of the using the Flash / JS kit.

If Flash Player 8
- Create a FileAPI version 8 .swf file to allows for multiple upload 
via FileReferenceList and load the .swf into an mx:Loader.  Call methods 
on FileAPI to handle upload.  The FileIO .swf from 
http://www.macromedia.com/devnet/flex/articles/fp8_features.html only 
allowed for single file uploads, so I created my own to handle multiple 
file uploads.

The reason upload for Flash Player 7 only works on IE is because on 
FireFox you can't programmatically click the input type=file hidden 
form element to have it show the browse dialog.

Sorry I can't be more specific here, but the links above should point 
you in the right direction for creating your own upload solution.

Also, I tried the route of creating intrinsic classes for FileReference 
and FileReferenceList, and then just used the those in a Flex app, then 
wrote a simple Java app to turn the .swfs from version 7 to version 8 
and deployed the .swfs on a server.  This worked for simple Flex 
applications (using the Flash 8 file api directly), but setting a more 
complex Flex application to version 8 broke it, so I had to go back to 
the approach of loading the FileAPI version 8 .swf file into the Flex 
version 7 .swf.

The approach approach is to create a seemless upload experience.  
Clicking the upload button in Flex will open the file browse dialog.  
Upon selecting file(s), the upload process begins showing all of the 
files and their progress.  If you're having trouble, you can also create 
a separate upload process.  Have the upload button open a javascript 
window with an upload form.  Use the upload form's browse and submit 
buttons to handle the file upload.  When the form closes, notify the 
Flex application that the upload is complete.

-d



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Re: Web-services giving hell to implement

2005-10-25 Thread Sho Kuwamoto
One more thing. You can write your own proxy. Depending on which server
language you are using, and whether you need to deal with authentication
or not, it can be as simple as two lines of code.

Please see:

http://labs.macromedia.com/wiki/index.php/Flex:Accessing_Data

-Sho 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: Tuesday, October 25, 2005 8:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Web-services giving hell to implement

The model actually hasnt changed.  In Flex 1.5 you could also use 
the crossdomain.xml solution to allow the player to connect to a web 
service on a different host then it was downloaded from.  

Now in Flex1.5 you had the flexproxy servlet which would act as a 
proxy and redirect those calls tot he third party.  You wouldnt need 
crossdomain.xml then.  However, you could bypass the proxy and then 
use crossdomain.xml.  All youre choice.

In Flex2 you will need the enterprise data services to have access 
to the proxy.  So to do what you want, and not rely on 
crossdomain.xml in Flex2 you need the more expensive (in line with 
Flex 1.5) version. 

The difference is for the much lower price you can skip needing the 
proxy *if* you own the service and can use crossdomain.xml.  If you 
dont, you need the enterprise version.

Make sense?


-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY x85

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

 Good day awll...
 
 I have a little quirk with connecting to web-services in Flex 2.0. 
In flex
 1.x you simply configured the service file that resides on the 
server and
 then you add you web-service object to you applications configure 
the wsdl
 and you good to go..
 
 For flex 2.0 i see that the model had changed dramatically...now 
there is
 the advent of the crossdomain.xml that must be placed in the root 
directory
 of the server that you are trying to get the service from, so the 
Question
 now becomes if the server resides half way around the world..how 
in gods
 name do i place a config file on that server...
 now the server that give me the web-service is implemented using 
rem-objects
 for delphi.. so its not a java server its a delphi program..how do 
i install
 a crossdomain.xml file on that appication..
 
 Flex 2.0 doesn't come with any web-services example...
 As of present i have no idea of how to use web-services in Flex 2.0
 can anyone out there assist me..?
 Thanks
 
 --
 Kenlie Browne
 Software Developer








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



 




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] [Flex2] State and size

2005-10-25 Thread Sho Kuwamoto
There are currently some bugs in the state feature when it comes to
percentage widths/heights, as well as widths and heights that are not
explicitly set.

We are planning on fixing these before release.

-Sho
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephane De Jonckheere
Sent: Tuesday, October 25, 2005 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] [Flex2] State and size

Hi all, 
I'm currently trying Flex 2 and the new State feature.
I'd like to do some kind of fullscreen button.

I managed to do that in Flex 2 but I have some problems.
First of all I need to set the width and height back in a new State.
Switching back to the Base State (setting currentState to null) is not
working 'cause the panel keep the width and height of the fullscreen
state.
That's why I'm using the restore state. Ain't it a bug in the state
feature?
Or is there something I am not doing correctly?

See code below.

Regards,
Stephane

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=*
mx:states
mx:State name=FullScreen
mx:RemoveChild child={searchPanel}/
mx:RemoveChild child={mainBox}/
mx:AddChild target={appCanvas}
child={searchPanel}/
/mx:State
mx:State name=Restore
mx:PropertyOverride target={appCanvas}
property=height value=100%/
mx:PropertyOverride target={appCanvas}
property=width value=100%/
mx:PropertyOverride target={mainBox}
property=height value=100%/
mx:PropertyOverride target={mainBox}
property=width value=100%/
mx:PropertyOverride target={menuPanel}
property=height value=100%/
mx:PropertyOverride target={menuPanel}
property=width value=25%/
mx:PropertyOverride target={contentBox}
property=height value=100%/
mx:PropertyOverride target={contentBox}
property=width value=75%/
mx:PropertyOverride target={searchPanel}
property=height value=100%/
mx:PropertyOverride target={searchPanel}
property=width value=100%/
mx:PropertyOverride target={resultPanel}
property=height value=100%/
mx:PropertyOverride target={resultPanel}
property=width value=100%/
/mx:State
/mx:states
mx:Script
static var fullscreen:Boolean=false;
/mx:Script
mx:Canvas id=appCanvas width=100% height=100%
mx:HDividedBox id=mainBox width=100% height=100%
mx:Panel id=menuPanel height=100%
width=25%
mx:Canvas height=100% width=100%/
/mx:Panel
mx:VBox id=contentBox height=100%
width=75%
hScrollPolicy=off vScrollPolicy=off
mx:Panel id=searchPanel height=100%
width=100% resizeEffect=Resize
mx:Canvas height=100%
width=100% id=canvas1
mx:Button x=275
y=116
label=Switch
click=currentState=(fullscreen?'Restore':'FullScreen');fullscreen=!full
scre
en; id=button1/
mx:Button x=275
y=156
label=getState click=if (currentState!=null) {
mx.controls.Alert.show(currentState.toString()); } else {
mx.controls.Alert.show('Base State'); } id=button2/
/mx:Canvas
/mx:Panel
mx:Panel id=resultPanel height=100%
width=100%
mx:Canvas height=100%
width=100%/
/mx:Panel
/mx:VBox
/mx:HDividedBox

/mx:Canvas
/mx:Application




***

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager to [EMAIL PROTECTED]


***






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



 




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: 

[flexcoders] Date class question

2005-10-25 Thread Marcin Glowacki
What is the easiest way to add 7 days to current day that is a flex's
action script Date object?

Thank you





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Date class question

2005-10-25 Thread Benoit Hediard
One solution could be:

var ONE_DAY:Number = 8640; // NOTE: 8640 milliseconds represents one
day
var someDate:Date = new Date();
someDate.setTime(someDate.getTime() + ONE_DAY*7);

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Marcin Glowacki
Envoyé : mardi 25 octobre 2005 18:05
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Date class question

What is the easiest way to add 7 days to current day that is a flex's action
script Date object?

Thank you





 Yahoo! Groups Sponsor ~-- Get
Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Date class question

2005-10-25 Thread Jeff Tapper
Take a look at my blog, I wrote a DateAdd for ActionScript class.

http://jeff.mxdj.com/dateadd_for_actionscript.htm

At 12:05 PM 10/25/2005, you wrote:
What is the easiest way to add 7 days to current day that is a flex's
action script Date object?

Thank you





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




SPONSORED LINKS
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb
 
site design development 
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer
 
software development 
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware
 
design and development
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia
 
flex 
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware
 
development best practice


--
YAHOO! GROUPS LINKS

*  Visit your group 
 http://groups.yahoo.com/group/flexcodersflexcoders on the web.
*
*  To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
*  Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.


--



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?

2005-10-25 Thread Merrill, Jason










Sending this again because it never seems to
have gone through:



Thanks Ashish  that works now.
Seems like a lot of work just to get it to render as HTML does, but oh
well. I guess there is a lot to learn about layout in Flex 2.



By the way, in the F2 Alpha, I could not get
older versions of the bullet.gif to go away, no matter how many times I deleted
the file from the file system in the project folder, and the bin folder Flex
produces. I even deleted it in Flex and re-imported it, made sure it was
updated in the project and bin folders, deleted my browser cache, etc.
Still showed the old graphic when it compiled. The only way I could get
it to update with the new graphic was to comment out the line: mx:Image
source=@Embed('assets/bullet.gif')/ , then compile, then un-comment the line and
compile again. Then the graphic was updated. Weird  it was like
Flexbuilder keeps some other cache somewhere else outside the project folder. 



Thanks for
the help.







Jason
Merrill | E-Learning Solutions |
icfconsulting.com 





















NOTICE:
This message is for the designated recipient only and may 
contain privileged or confidential information. If you have received it in 
error, please notify the sender immediately and delete the original.Any 
other use of this e-mail by you is prohibited.






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] FLex Java ASP SQL Server

2005-10-25 Thread yourponnusamy
Hi, 

I just saw the possibility of flex 2 and I was wondering if it was 
possible to retrieve data from an SQl server, like (microsoft SQL or 
MySQL).
I understood that we could do this using php or java.. but I didn't 
found anything usefull on google..

Can't we connect directly to the SQL server??

So if you have any link explaining how to do it, i would very much 
appreciate.
 
Thanks and Regards,

Ponnusamy V





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?

2005-10-25 Thread Muzak
Yeah, having the same issue (caching) when embedding assets.
When embedding specific items from a swf file it either tells me it can't find 
the specified asset or when updating the swf, I get 
the old version.

Usually, cleaning the project seems to do the trick (Project -- Clean).

regards,
Muzak

- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 25, 2005 6:44 PM
Subject: RE: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?


Sending this again because it never seems to have gone through:



Thanks Ashish - that works now.  Seems like a lot of work just to get it
to render as HTML does, but oh well.  I guess there is a lot to learn
about layout in Flex 2.



By the way, in the F2 Alpha, I could not get older versions of the
bullet.gif to go away, no matter how many times I deleted the file from
the file system in the project folder, and the bin folder Flex produces.
I even deleted it in Flex and re-imported it, made sure it was updated
in the project and bin folders, deleted my browser cache, etc.  Still
showed the old graphic when it compiled.  The only way I could get it to
update with the new graphic was to comment out the line: mx:Image
source=@Embed('assets/bullet.gif')/ , then compile, then un-comment
the line and compile again. Then the graphic was updated. Weird - it was
like Flexbuilder keeps some other cache somewhere else outside the
project folder.



Thanks for the help.





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] FLex Java ASP SQL Server

2005-10-25 Thread Clint Modien



slightly more helpful link...

http://msdn.microsoft.com/library/default.asp?url="">

On 10/25/05, Clint Modien [EMAIL PROTECTED] wrote:

this would be a very poor architecture for a web application but you could use sqlxml to directly access sql server via http...

http://msdn.microsoft.com/library/default.asp?url=""




On 10/25/05, yourponnusamy [EMAIL PROTECTED]
 wrote: 
Hi,I just saw the possibility of flex 2 and I was wondering if it waspossible to retrieve data from an SQl server, like (microsoft SQL or 
MySQL).I understood that we could do this using php or java.. but I didn'tfound anything usefull on google..Can't we connect directly to the SQL server??So if you have any link explaining how to do it, i would very much 
appreciate.Thanks and Regards,Ponnusamy V Yahoo! Groups Sponsor ~--Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. 
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM~-
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ 
* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to:  http://docs.yahoo.com/info/terms/







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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] FLex Java ASP SQL Server

2005-10-25 Thread Steven Webster
Ponnusamy,

 I just saw the possibility of flex 2 and I was wondering if 
 it was possible to retrieve data from an SQl server, like 
 (microsoft SQL or MySQL).
 I understood that we could do this using php or java.. but I 
 didn't found anything usefull on google..
 
 Can't we connect directly to the SQL server??
 
 So if you have any link explaining how to do it, i would very 
 much appreciate.
  
 Thanks and Regards,
 
 Ponnusamy V

Flex 2.0 is still an alpha technology, and so the featureset is still
very much being defined.  Furthermore, the enterprise data services have
not shipped with the current Alpha, and this is the piece of interest to
you.

In terms of retrieving data from a SQL Server installation; with Flex
2.0 data services, you can do this with a Service Oriented Architecture
(SOA) OR with a Data Oriented Architecture (DOA).

With an SOA, you'd do this exactly the same as you would for Flex 1.x;
have a middleware tier (most likely Java accessed by RemoteObject, but
could be any other technology exposed as a SOAP WebService) that
performs your CRUD operations (Create/Read/Update/Delete) between Flex
and your database.  In Flex 2.0, this will become known as RPC
Services, as you will remotely invoke procedure calls on the server.

With a data oriented architecture, you will be able to use the new
open-adapter architecture for Flex 2.0, which provides seamless
integration with data services through a number of adapters.  At MAX in
Anaheim, a number of proposed adapters were presented (no decisions have
been made as to which adapters will ship) including an object adapter, a
Hibernate adapter, a JDBC adapter and a Coldfusion Adapter.  The
adapters abstract and remove the complexity of writing your own CRUD
code into configuration in a deployment descriptor (much like
flex-config.xml) in most instances.

The motivation for a DOA is that if your need for persistence is simply
to create, read, update and delete to a database, that you care about
synchronisation, offline operation, and have very little additional
business logic (services) between client and database, then you can
remove much of the drudge work of writing CRUD code, and gain a whole
load of enterprise-class services (such as sychronisation) in addition.
You can keep your serverless Flex compilation, this to me is the
step-change in Flex 2.0  :-)

Now it was presented (and reiterated by Stephen Elop in the quarterly
investors call last night) that this adapter architecture would be an
open-architecture; meaning that there will be a well defined API against
which people can write their own adapters.  There's nothing to say that
someone could not write an adapter that offered tighter integration with
SQL Server through the .NET APIs (ADO.NET) if you required.

So to summarise the answer to your question; if you have data in a SQL
server database, you can integrate that into your Flex apps today using
RemoteObject, WebService or HTTPService and a middle tier proxying
between Flex and your database.  There may even be other strategies;
some databases will now expose stored procedures as Java classes or SOAP
Web Services on your behalf, reducing the effort in coding your midtier.

Tomorrow, with Flex 2.0, this option will continue to be available to
you, but the Flex Enteprise Data Services architecture will offer you
even more powerful mechanisms by which to integrate an RIA experience
with a database persistence tier.

William Wechtenhiser, the Director of Engineering for Flex Enterprise,
has written a tremendous article on Flex Data Services over on
Macromedia Labs, that you can find here:

http://labs.macromedia.com/wiki/index.php/Flex_Enterprise_Services:Data_
Services

That might give you some insight into what Flex 2.0 is going to offer
us.

Exciting times for Enterprise RIA !

Best wishes,

Steven

--
Steven Webster
RIA Practice Director (EMEA)
Macromedia Consulting
 
Office: + 44 (0) 131 338 6108
Mobile: +44 (0) 7917 428 947
 


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] [Flex2] State and size

2005-10-25 Thread Ashish Goyal

Hello Stephane,
It seems like setting resizeEffect on the panel is causing this bug.
Remove resizeEffect=Resize from the searchPanel then switching to
the base state (currentState to '') should work. I have already logged
the bug in the bugbase. Thanks for finding this issue.

-Ashish


 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Stephane De 
 Jonckheere
 Sent: Tuesday, October 25, 2005 12:12 AM
 To: 'flexcoders@yahoogroups.com'
 Subject: [flexcoders] [Flex2] State and size
 
 Hi all, 
 I'm currently trying Flex 2 and the new State feature.
 I'd like to do some kind of fullscreen button.
 
 I managed to do that in Flex 2 but I have some problems.
 First of all I need to set the width and height back in a new State.
 Switching back to the Base State (setting currentState to null) is not
 working 'cause the panel keep the width and height of the 
 fullscreen state.
 That's why I'm using the restore state. Ain't it a bug in the 
 state feature?
 Or is there something I am not doing correctly?
 
 See code below.
 
 Regards,
 Stephane
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application 
 xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=*
   mx:states
   mx:State name=FullScreen
   mx:RemoveChild child={searchPanel}/
   mx:RemoveChild child={mainBox}/
   mx:AddChild target={appCanvas}
 child={searchPanel}/
   /mx:State
   mx:State name=Restore
   mx:PropertyOverride target={appCanvas}
 property=height value=100%/
   mx:PropertyOverride target={appCanvas}
 property=width value=100%/
   mx:PropertyOverride target={mainBox}
 property=height value=100%/
   mx:PropertyOverride target={mainBox}
 property=width value=100%/
   mx:PropertyOverride target={menuPanel}
 property=height value=100%/
   mx:PropertyOverride target={menuPanel}
 property=width value=25%/
   mx:PropertyOverride target={contentBox}
 property=height value=100%/
   mx:PropertyOverride target={contentBox}
 property=width value=75%/
   mx:PropertyOverride target={searchPanel}
 property=height value=100%/
   mx:PropertyOverride target={searchPanel}
 property=width value=100%/
   mx:PropertyOverride target={resultPanel}
 property=height value=100%/
   mx:PropertyOverride target={resultPanel}
 property=width value=100%/
   /mx:State
   /mx:states
   mx:Script
   static var fullscreen:Boolean=false;
   /mx:Script
   mx:Canvas id=appCanvas width=100% height=100%
   mx:HDividedBox id=mainBox width=100% height=100%
   mx:Panel id=menuPanel height=100% 
 width=25%
   mx:Canvas height=100% width=100%/
   /mx:Panel
   mx:VBox id=contentBox height=100% 
 width=75%
 hScrollPolicy=off vScrollPolicy=off
   mx:Panel id=searchPanel height=100%
 width=100% resizeEffect=Resize
   mx:Canvas height=100%
 width=100% id=canvas1
   mx:Button 
 x=275 y=116
 label=Switch
 click=currentState=(fullscreen?'Restore':'FullScreen');fullsc
 reen=!fullscre
 en; id=button1/
   mx:Button 
 x=275 y=156
 label=getState click=if (currentState!=null) {
 mx.controls.Alert.show(currentState.toString()); } else {
 mx.controls.Alert.show('Base State'); } id=button2/
   /mx:Canvas
   /mx:Panel
   mx:Panel id=resultPanel height=100%
 width=100%
   mx:Canvas height=100%
 width=100%/
   /mx:Panel
   /mx:VBox
   /mx:HDividedBox
   
   /mx:Canvas
 /mx:Application
 
 
 
 **
 *
 
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager to [EMAIL PROTECTED]
 
 **
 *
 
 
 
 
 
  Yahoo! Groups Sponsor 
 ~-- 
 Get Bzzzy! (real tools to help you find a job). Welcome to 
 the Sweet Life.
 http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
 --
 --~- 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 

Re: [flexcoders] FLex Java ASP SQL Server

2005-10-25 Thread Clint Modien



nice... thanks for the tidbits steven...
On 10/25/05, Steven Webster [EMAIL PROTECTED] wrote:
Ponnusamy, I just saw the possibility of flex 2 and I was wondering if it was possible to retrieve data from an SQl server, like
 (microsoft SQL or MySQL). I understood that we could do this using php or java.. but I didn't found anything usefull on google.. Can't we connect directly to the SQL server??
 So if you have any link explaining how to do it, i would very much appreciate. Thanks and Regards, Ponnusamy VFlex 2.0 is still an alpha technology, and so the featureset is still
very much being defined.Furthermore, the enterprise data services havenot shipped with the current Alpha, and this is the piece of interest toyou.In terms of retrieving data from a SQL Server installation; with Flex
2.0 data services, you can do this with a Service Oriented Architecture(SOA) OR with a Data Oriented Architecture (DOA).With an SOA, you'd do this exactly the same as you would for Flex 1.x;have a middleware tier (most likely Java accessed by RemoteObject, but
could be any other technology exposed as a SOAP WebService) thatperforms your CRUD operations (Create/Read/Update/Delete) between Flexand your database.In Flex 2.0, this will become known as RPCServices, as you will remotely invoke procedure calls on the server.
With a data oriented architecture, you will be able to use the newopen-adapter architecture for Flex 2.0, which provides seamlessintegration with data services through a number of adapters.At MAX inAnaheim, a number of proposed adapters were presented (no decisions have
been made as to which adapters will ship) including an object adapter, aHibernate adapter, a JDBC adapter and a Coldfusion Adapter.Theadapters abstract and remove the complexity of writing your own CRUDcode into configuration in a deployment descriptor (much like
flex-config.xml) in most instances.The motivation for a DOA is that if your need for persistence is simplyto create, read, update and delete to a database, that you care aboutsynchronisation, offline operation, and have very little additional
business logic (services) between client and database, then you canremove much of the drudge work of writing CRUD code, and gain a wholeload of enterprise-class services (such as sychronisation) in addition.
You can keep your serverless Flex compilation, this to me is thestep-change in Flex 2.0:-)Now it was presented (and reiterated by Stephen Elop in the quarterlyinvestors call last night) that this adapter architecture would be an
open-architecture; meaning that there will be a well defined API againstwhich people can write their own adapters.There's nothing to say thatsomeone could not write an adapter that offered tighter integration with
SQL Server through the .NET APIs (ADO.NET) if you required.So to summarise the answer to your question; if you have data in a SQLserver database, you can integrate that into your Flex apps today using
RemoteObject, WebService or HTTPService and a middle tier proxyingbetween Flex and your database.There may even be other strategies;some databases will now expose stored procedures as Java classes or SOAP
Web Services on your behalf, reducing the effort in coding your midtier.Tomorrow, with Flex 2.0, this option will continue to be available toyou, but the Flex Enteprise Data Services architecture will offer you
even more powerful mechanisms by which to integrate an RIA experiencewith a database persistence tier.William Wechtenhiser, the Director of Engineering for Flex Enterprise,has written a tremendous article on Flex Data Services over on
Macromedia Labs, that you can find here:http://labs.macromedia.com/wiki/index.php/Flex_Enterprise_Services:Data_Services
That might give you some insight into what Flex 2.0 is going to offerus.Exciting times for Enterprise RIA !Best wishes,Steven--Steven WebsterRIA Practice Director (EMEA)
Macromedia ConsultingOffice: + 44 (0) 131 338 6108Mobile: +44 (0) 7917 428 947 Yahoo! Groups Sponsor ~--Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM~---
Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/






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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  

[flexcoders] FLEX2: Date Cell Renderer Solved

2005-10-25 Thread Greg Johnson
It looks like :)

Ok, here is what I did.  First in the MXML I created a Currency 
Formater.

mx:CurrencyFormatter id=StdMoneyFormat 
useThousandsSeparator=true/

Then in the dataGrid for the column I wanted to format I used the 
labelFunction parameter

mx:DataGridColumn headerText=$ Prop. width=75 
labelFunction=formatNumber  columnName=DOLLAR_PROPOSED /

and in my Actionscript file I created a function.

import mx.controls.gridclasses.DataGridColumn;
public function formatNumber(dpItem:Object, 
dgColumn:DataGridColumn):String {
return StdMoneyFormat.format(dpItem[dgColumn.columnName]);
}

unlike cellRenderer, in a dataGrid (**only**) the labelFunction 
passes 2 items.  The std dataObject that cellRenderer passes and 
specificaly the column information.  So I just do a simple return of 
the dataObject indexed by the columnName in the dataGridColumn object.

Just as a note, there is also a columnNumber in the dataGridColum 
object that would do exactly the same, just with the numerical index 
value vs the enumerated index value.

This should work for all the data Formaters includeing Date.

**only** = Acording to the documentation, anything else that uses the 
labelFunction only gets the dataObject since they are 1 dimential 
arrays vs 2 dimentional grids.  Plus if you specify one of the drop 
in renderers it will adjust in all cases to send what they need.  As 
I understand it.
--- In flexcoders@yahoogroups.com, Greg Johnson [EMAIL PROTECTED] 
wrote:

 Think i replyed to the wrong addy since it hasn't shown up in the 
 list.  
 
 Is there some code somewhere I can look at that specificaly is 
 redering the date.  I have messed around and can get a datefield 
box 
 to show, but I don't need to have it edit, I just need to display 
the 
 date mm/dd/.  I have also written my own mxml and still nogo.
 
 --- In flexcoders@yahoogroups.com, Jim Laing [EMAIL PROTECTED] wrote:
 
  In Flex 2, the cell render API is totally different. For one 
thing,
  setValue() is no longer used. For another thing, a cell render is
  passed a dataObject (or something like that) value, which 
contains
  the data to be rendered. All of the examples I've seen thus far 
are
  straight MXML, and most are rendered inline, so you might want to 
 try
  heading in that direction.
  
  Jim
  
  On 10/21/05, Greg Johnson [EMAIL PROTECTED] wrote:
   Ok, for flex 1.5 I had downloaded a nice AS file that would 
render
   dates in cells for me.  However dispite me updateing it to work 
in
   Flex 2 it doesn't.  Any ideas what I missed?
  
  
   /*
* DateFormatCellRenderer is a simple Label-based cell renderer 
 that
   displays
* its item content in a known date format.
*/
   package {
   import mx.formatters.DateFormatter;
   import mx.controls.Label;
   class DateFormatCellRenderer extends Label
   {
   var getDataLabel:Function;
   static var dateFmt:DateFormatter;
  
   private function init() : Void
   {
   // instantiate the 1 and only date formatter 
(more
   efficient than
   // have a date formatter for every instance of 
the
   cell renderer).
   if( dateFmt == null ) {
   dateFmt = new DateFormatter();
   dateFmt.formatString = MM/DD/;
   }
   super.initialize();
   }
  
   private function setValue(str:String, item:Object,
   sel:Boolean):Void
   {
   if( item != null ) {
   // format the date value in the cell
   this.text = dateFmt.format(item
 [getDataLabel
   ()]);
   }
   else {
   this.text = ;
   }
   }
  
   private function size() : Void
   {
   this.setActualSize
(explicitWidth,explicitHeight);
   }
   }
   }
  
   btw the size function change is a complete guess on my part.
  
  
  
  
  
  
   --
   Flexcoders Mailing List
   FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: http://www.mail-archive.com/flexcoders%
 40yahoogroups.com
   Yahoo! Groups Links
  
  
  
  
  
  
  
 







 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Is it Possible to Load the Policy file into the Flash player

2005-10-25 Thread knly browne



I was searching through the documentation and i saw a method called Security.loadPolicyFile(url:String)...
I was just wondering if Loading that would fill the Gap of having to
install the Crossdomain Policy file on the server that delivers the
web-service..

Just trying everything i can..

Thanks Again-- Kenlie BrowneSoftware Developer






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





  




  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Re: File Upload / FileIO

2005-10-25 Thread mackdoyle
I am gettin the error when I try to load my app's index page, which
includes the FileIO object supplied by the Macromedia sample, in Flex
Builder. Loading it in a browser seems to work fine, however so I am
just doing that. 

Now it acts like it is working fine but the file I upload never shows
up in the upload directory path. I am pretty sure it is not a
permissions issue so I think I will play around with the pathing
definition. Curerntly I am using fully qualified paths, so I guess I
will try relative pathing.





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Security Sandbox Violation when loading image

2005-10-25 Thread Alon J Salant










Has anyone learned any more about this
issue or come up with a solution?



I am experiencing a very similar problem:
images loaded from another domain are generating Security Sandbox Violations of
the form:



*** Security Sandbox Violation ***

SecurityDomain 'http://host1/foo' tried to
access incompatible context
'http://host2/bar/thumbnail?width=40height=52id=pap'



It does not appear to be the mere loading
of these images that causes this warning. It is applying effects and accessing
properties. This is true even if I wrap the Image in another component like a
Canvas that I then act on.



Usually, the behavior of the app does not
work when this error is produced but sporadically, in the same application
instance with the same images, the behavior does work while still generating
these errors.



Very puzzling.



Alon













From: Kristopher
Schultz [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 10:42
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Security
Sandbox Violation when loading image







I'm trying to load some images from a different domain
than the one my Flex app lives on. When I do, the debugger prints out a bunch
of errors like this:











*** Security Sandbox Violation ***





SecurityDomain 'http://myserver.com/index.mxml?debug=true'
tried to access incompatible context 'http://otherserver.com/someImage?wid=30'











(Note, the image is dynamically generated and the URL
should not include .jpg)











Despite the errors, my images still seem to load in
successfully, both through the Flex Builder IDE and when viewed directly in IE.
Or so I thought.











The weird thing I've discovered is that if my image paths
are brought into my Flex app via an XML file, then I do get the errors above,
but the images do load successfully. However, if my image paths come in as a
result of a remote object call, I get the same errors and my images DON'T load
successfully. I've double checked the exact path's that are being used in both
situations by tracing out the path immediately before it is used as the value
for the source property of the mx:Image tag and it is
EXACTLY the same in both cases.











So I have questions. First, why do I get those error
messages? Secondly, if there really is a security sandbox violation, why do the
images load successfully under the conditions I mentioned above? And finally,
how do I prevent these violations from occurring in the first place?











Thanks for any insight you can provide.











Kris











-- 











Kristopher Schultz





Developer











Resource Interactive





p: 614.410.2123




 www.resource.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



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



  











[flexcoders] Remote Object not found in Flex config

2005-10-25 Thread Michel Bertrand
Title: Remote Object not found in Flex config








Hi !


I'm having the following error :


Invalid value for 'named' - does not match any object name from the configuration file.


I have already checked my config file and I'm sure to have the name of the remote-object

there, however the error is still happening. At config file I have the settings below:


 remote-objects


 ..


 whitelist



  


 !-- whitelist config for named objects --

 named

   object name=DataBaseHandler

   sourcecom.datasul.persistence.util.DataBaseHandlerDelegate/source

   typestateless-class/type

   /object

 /named

 /whitelist

 /remote-objects


I have the class DataBaseHandlerDelegate at WEB-INF/lib (as a jar file) and at 

WEB-INF/classes/com/datasul/persistence/util/. 


At my MXML tag I have the following:


 mx:RemoteObject id=dataBaseHandlerSrv named=DataBaseHandler

   protocol=http

   showBusyCursor=true

   result=event.call.resultHandler( event );

   fault=event.call.faultHandler( event );

 /mx:RemoteObject




What's wrong ? Where should I look for the error ?


Thanks in advance,

Michel Bertrand | Desenvolvimento | DATASUL Tecnologia
Acesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções de tecnologia 









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





  




  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] Re: File Upload / FileIO

2005-10-25 Thread Carson Hager
How are you writing the file to the server file system?


Carson 



 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY ext. 89
Mobile: 1.703.489.6466
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mackdoyle
Sent: Tuesday, October 25, 2005 12:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: File Upload / FileIO

I am gettin the error when I try to load my app's index page, which
includes the FileIO object supplied by the Macromedia sample, in Flex
Builder. Loading it in a browser seems to work fine, however so I am
just doing that. 

Now it acts like it is working fine but the file I upload never shows up
in the upload directory path. I am pretty sure it is not a permissions
issue so I think I will play around with the pathing definition.
Curerntly I am using fully qualified paths, so I guess I will try
relative pathing.





 Yahoo! Groups Sponsor ~--
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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



 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Flex 2.0 web-service driving me up the wall

2005-10-25 Thread Sho Kuwamoto





Hi Kenlie.

You are almost there!

You have three choices:
 1) Add a crossdomain.xml file to the 
server. 2) Request the HTML file from a 
web server on the same domain as your server (in this case, 
localhost).
 3) Create a proxy.

You can find documentation on this 
here:

http://labs.macromedia.com/wiki/index.php/Flex:Accessing_Data
I 
understand your question about things getting harder, but I'm afraid there's 
nothing we can do about it at this point.
The 
security rules are no different than in Flex 1.0 or Flex 1.5. The security rules 
need to be there to prevent malicious websites from creating Flex applications 
that do bad things, such as collecting private information.
The 
reason you never noticed the security rules in Flex 1.0/1.5 is that the server 
automatically creates proxies for you. The reason we can't do that in Flex 
Builder 2.0 is that proxies *must* run on the server, and Flex Builder 2.0 
doesn't have a server component.
Later, 
when Flex Enterprise Services 2.0 is available, you will be able to do things 
the way that you were used to doing them in Flex 1.0/1.5.
-Sho


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of knly 
browneSent: Tuesday, October 25, 2005 11:36 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2.0 web-service 
driving me up the wall
Good day again..So..i got a copy of the server from the 
server engineer and started it up on my machine.. Created a web-service object 
in my project and compiled my app as it loads up i give me a security violation 
telling my that i can't acces the URL...now the port for the server is http://localhost:8099/soap thats the 
address to the server on my machine.. so i know that you have to alow the 
security to access the URL, so in my flex application i create a method and call 
it on the initialize method for the Application:I tried 
Security.allowDomain('http://localhost:8099/soap') doesn't 
workI tried Security.allowDomain('*'); still doesn't work..So maybe 
am doing something wrong if that is the case could someone be kind enough to 
point me in the right directionFirst of all my application isn't being 
delivered by a server such as jboss or Apache, i just have it on my desktop and 
i launch it by double clicking on the htm file.. cause as we all know its 
standalone swfs.Even if i allowed the domains nothing changed.. i need 
some answers.. examples something cause I personally don't know why and when 
using web-services became so difficult..Thanks in Advance-- Kenlie BrowneSoftware Developer 





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





  




  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Re: File Upload / FileIO

2005-10-25 Thread mackdoyle
With the included cffile for now





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: File Upload / FileIO

2005-10-25 Thread mackdoyle
NP, thanks Carson.

I am noticing that in the events box, when uploading a file, the fr
parameter that is a refernce to the flash.net.FileReference is coming
through as [object Object].





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Re: File Upload / FileIO

2005-10-25 Thread Carson Hager
That's correct. In order for it the FileReference object to be used in
players pre 8.5, they typed it as Object and make dynamic calls against
it.


Carson 



 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY ext. 89
Mobile: 1.703.489.6466
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mackdoyle
Sent: Tuesday, October 25, 2005 12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: File Upload / FileIO

NP, thanks Carson.

I am noticing that in the events box, when uploading a file, the fr
parameter that is a refernce to the flash.net.FileReference is coming
through as [object Object].





 Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Remote Object not found in Flex config

2005-10-25 Thread Roger Gonzalez
Title: Remote Object not found in Flex config





Did you just make these changes?

Try shutting down and restarting your server. There was an issue 
someone else had recently where this wasn't picked up correctly without a 
restart.

-RogerRoger 
Gonzalez[EMAIL PROTECTED] 


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Michel 
  BertrandSent: Tuesday, October 25, 2005 12:18 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Remote Object not 
  found in Flex config
  
  Hi ! 
  I'm having the following error : 

  Invalid value for 'named' - 
  does not match any object name from the configuration file. 
  I have 
  already checked my config file and I'm sure to have the name of the 
  remote-object there, however the error is still happening. At config 
  file I have the settings below: 
   
  remote-objects 
   .. 
   
  whitelist   
    
   
  !-- whitelist config for named objects --  
  named   
   object 
  name="DataBaseHandler"   
   
  sourcecom.datasul.persistence.util.DataBaseHandlerDelegate/source 

   typestateless-class/type 

   /object  
  /named  
  /whitelist  /remote-objects 
  I have the class 
  DataBaseHandlerDelegate at WEB-INF/lib (as a jar file) and at 
  WEB-INF/classes/com/datasul/persistence/util/. 
  At my MXML tag I have the 
  following: 
   
  mx:RemoteObject id="dataBaseHandlerSrv" named="DataBaseHandler"  
   
   
   
   
   
   protocol="http"  
   
   
   
   
   
   showBusyCursor="true"  
   
   
   
   
   
   result="event.call.resultHandler( event );"  
   
   
   
   
   
   fault="event.call.faultHandler( event );"  
  /mx:RemoteObject 
  What's wrong 
  ? Where should I look for the error ? 
  Thanks in 
  advance, Michel Bertrand | Desenvolvimento | 
  DATASUL TecnologiaAcesse www.datasuldirect.com.br e conheça 
  mais sobre os produtos e soluções de tecnologia 





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] Using loadPolicyFile ( )

2005-10-25 Thread knly browne



I need to use a policy file to gain access to my web-service server
..can loadPolicyFile Give the same effect as placing the
crossdomain.xml on the web-server... and if so how do i load the file
from the same location that the application is being delivered
specifying it from a URl
Thanks..-- Kenlie BrowneSoftware Developer






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





  




  
  
  YAHOO! GROUPS LINKS



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



  









[flexcoders] (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working

2005-10-25 Thread fowleryj
MenuBars aren't working properly in my pop-ups, whereas they are
working just fine in my Main.mxml.

In my pop-up, the File menu I've declared won't even drop down when I
click on it.

-

In Main.mxml:

mx:MenuBar id=MainMenuBar width=450
change=menuChangeHandler(event)
mx:dataProvider
mx:XML
menuitem label=Finder
  menuitem label=Finder A type=Finder data=FinderA/
  menuitem label=Finder B type=Finder data=FinderB/
/menuitem
menuitem label=Add/Edit
  menuitem label=Add/Edit A type=Add/Edit data=AddEditA/
  menuitem label=Add/Edit B type=Add/Edit data=AddEditB/
/menuitem
/mx:XML
/mx:dataProvider
/mx:MenuBar

mx:Script![CDATA[
private function menuChangeHandler(event){
if(event.menuItem.attributes.data == FinderA) {
commonViewHelper.openWindow('FinderA')  
} else if(event.menuItem.attributes.data == FinderB) {
commonViewHelper.openWindow('FinderB')
} else if(event.menuItem.attributes.data == AddEditA) {   
commonViewHelper.openWindow('AddEditA')
} else if(event.menuItem.attributes.data == AddEditB) {
commonViewHelper.openWindow('AddEditB')
}
]]/mx:Script

(That works fine)

-

In PopUp.mxml:

mx:MenuBar id=PopUpMenuBar width=450
change=menuChangeHandler(event)
mx:dataProvider
mx:XML
menuitem label=File
  menuitem label=Open type=File data=Open/
  menuitem label=Close type=File data=Close/
  menuitem label=Save type=File data=Save/
/menuitem
/mx:XML
/mx:dataProvider
/mx:MenuBar

private function menuChangeHandler(event){
if(event.menuItem.attributes.data == Open) {
  // Nothing yet
} else if(event.menuItem.attributes.data == Close) {
  PopUpViewHelper.closePopUp(); // Closes the pop-up
} else if(event.menuItem.attributes.data == Save) {
  // Nothing yet
}
}

(This is not working properly - the menu won't even drop down to show
the options.)

Any insight would be greatly appreciated.





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] TextArea - getting the caret x,y location?

2005-10-25 Thread Peter Armstrong
Hi,

I have an editable TextArea that will probably have to contain HTML
text and may have a vertical scrollbar.  Does anyone know how to get
the x,y location of the caret inside of it (while typing)?

I can handle the change event, but I don't know of any properties to
use or methods to call to get the caret x,y coordinates.  If there
were no scroll bars, no HTML text and a monospaced font I could
possibly use Selection.getCaretIndex() and do some really cheesy math
-- but this isn't the case.

Thanks!

Peter Armstrong


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: File Upload / FileIO

2005-10-25 Thread mackdoyle
Where should the destination (upload) folder go by default? In the
flex app root or the CF server root?





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Using loadPolicyFile ( )

2005-10-25 Thread Muzak
this should answer all your questions regarding F8 security:
http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf

regards,
Muzak

- Original Message - 
From: knly browne [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 25, 2005 11:07 PM
Subject: [flexcoders] Using loadPolicyFile ( )


I need to use a policy file to gain access to my web-service server
..can loadPolicyFile Give the same effect as placing the crossdomain.xml on
the web-server... and if so how do i load the file from the same location
that the application is being delivered specifying it from a URl

Thanks..
--
Kenlie Browne
Software Developer




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] TextArea - getting the caret x,y location?

2005-10-25 Thread Gordon Smith
I don't think this is possible in Flex 1.5, but it should be in Flex
2.0. Player 8.5 will have TextField APIs such as 

function get selectionBeginIndex():int;
function get selectionEndIndex():int;
function getCharBoundaries(charIndex:int):Rectangle;

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Armstrong
Sent: Tuesday, October 25, 2005 2:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextArea - getting the caret x,y location?

Hi,

I have an editable TextArea that will probably have to contain HTML
text and may have a vertical scrollbar.  Does anyone know how to get
the x,y location of the caret inside of it (while typing)?

I can handle the change event, but I don't know of any properties to
use or methods to call to get the caret x,y coordinates.  If there
were no scroll bars, no HTML text and a monospaced font I could
possibly use Selection.getCaretIndex() and do some really cheesy math
-- but this isn't the case.

Thanks!

Peter Armstrong



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



 




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Re: File Upload / FileIO

2005-10-25 Thread Carson Hager
It's helpful to include at least a snippet of the previous post so that
we can know to which message you are responding.  Was this to me or
someone else?


Carson 



 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY ext. 89
Mobile: 1.703.489.6466
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mackdoyle
Sent: Tuesday, October 25, 2005 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: File Upload / FileIO

Where should the destination (upload) folder go by default? In the flex
app root or the CF server root?





 Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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



 




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Redraw or Refresh DataGrid

2005-10-25 Thread huhgawz
 Hi all,

The idea is to change the height of certain row. The next code does it
well but after change the height of that row the grid need to be
redraw. So I add the next line inside resizeFirstRow function but
nothing is happen:

grdProducts.redraw();

Someone help me pleaseThanks in advance...


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Model id=ModelProducts
product
nameCoca Cola/name
price10/price
/product
product
namePepsi/name
price12/price
/product
/mx:Model

mx:Script
![CDATA[
function resizeFirstRow() {
var 
row:mx.controls.gridclasses.DataGridRow=grdProducts.rows[0];
row.height=40;
} // resizeFirstRow
]]
/mx:Script

mx:Button label=ResizeFirstRow click=resizeFirstRow() /
mx:DataGrid id=grdProducts width=90% height=150
dataProvider={ModelProducts.product} variableRowHeight=true
mx:columns
mx:Array
mx:DataGridColumn columnName=name 
headerText=Name /
mx:DataGridColumn columnName=price 
headerText=Price /
/mx:Array
/mx:columns
/mx:DataGrid
/mx:Application





 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Redraw or Refresh DataGrid

2005-10-25 Thread Tracy Spratt
The surest way to make the dataGrid refresh is to re-assign the
dataProvider:
grdProducts.dataProvider = ModelProducts;
or even
grdProducts.dataProvider = grdProducts.dataProvider; 

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of huhgawz
Sent: Tuesday, October 25, 2005 6:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Redraw or Refresh DataGrid

 Hi all,

The idea is to change the height of certain row. The next code does it
well but after change the height of that row the grid need to be
redraw. So I add the next line inside resizeFirstRow function but
nothing is happen:

grdProducts.redraw();

Someone help me pleaseThanks in advance...


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Model id=ModelProducts
product
nameCoca Cola/name
price10/price
/product
product
namePepsi/name
price12/price
/product
/mx:Model

mx:Script
![CDATA[
function resizeFirstRow() {
var
row:mx.controls.gridclasses.DataGridRow=grdProducts.rows[0];
row.height=40;
} // resizeFirstRow
]]
/mx:Script

mx:Button label=ResizeFirstRow click=resizeFirstRow() /
mx:DataGrid id=grdProducts width=90% height=150
dataProvider={ModelProducts.product} variableRowHeight=true
mx:columns
mx:Array
mx:DataGridColumn columnName=name
headerText=Name /
mx:DataGridColumn columnName=price
headerText=Price /
/mx:Array
/mx:columns
/mx:DataGrid
/mx:Application






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



 






 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working

2005-10-25 Thread kaibabsowats
More details are need?

How is PopUp.mxml used?
Whats the top component in PopUp.mxml,etc...

You probably doing this but just to double check, in PopUp.mxml are
you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script

Renaun

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

 MenuBars aren't working properly in my pop-ups, whereas they are
 working just fine in my Main.mxml.
 
 In my pop-up, the File menu I've declared won't even drop down when I
 click on it.
 
 -
 
 In Main.mxml:
 
 mx:MenuBar id=MainMenuBar width=450
 change=menuChangeHandler(event)
 mx:dataProvider
 mx:XML
 menuitem label=Finder
   menuitem label=Finder A type=Finder data=FinderA/
   menuitem label=Finder B type=Finder data=FinderB/
 /menuitem
 menuitem label=Add/Edit
   menuitem label=Add/Edit A type=Add/Edit data=AddEditA/
   menuitem label=Add/Edit B type=Add/Edit data=AddEditB/
 /menuitem
 /mx:XML
 /mx:dataProvider
 /mx:MenuBar
 
 mx:Script![CDATA[
 private function menuChangeHandler(event){
 if(event.menuItem.attributes.data == FinderA) {
 commonViewHelper.openWindow('FinderA')
 } else if(event.menuItem.attributes.data == FinderB) {
 commonViewHelper.openWindow('FinderB')
 } else if(event.menuItem.attributes.data == AddEditA) { 
 commonViewHelper.openWindow('AddEditA')
 } else if(event.menuItem.attributes.data == AddEditB) {
 commonViewHelper.openWindow('AddEditB')
 }
 ]]/mx:Script
 
 (That works fine)
 
 -
 
 In PopUp.mxml:
 
 mx:MenuBar id=PopUpMenuBar width=450
 change=menuChangeHandler(event)
 mx:dataProvider
 mx:XML
 menuitem label=File
   menuitem label=Open type=File data=Open/
   menuitem label=Close type=File data=Close/
   menuitem label=Save type=File data=Save/
 /menuitem
 /mx:XML
 /mx:dataProvider
 /mx:MenuBar
 
 private function menuChangeHandler(event){
 if(event.menuItem.attributes.data == Open) {
   // Nothing yet
 } else if(event.menuItem.attributes.data == Close) {
   PopUpViewHelper.closePopUp();   // Closes the pop-up
 } else if(event.menuItem.attributes.data == Save) {
   // Nothing yet
 }
 }
 
 (This is not working properly - the menu won't even drop down to show
 the options.)
 
 Any insight would be greatly appreciated.







 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working

2005-10-25 Thread Mercer, Dustin










This doesnt sound like a cairngorm issue,
but a flex depth issue. Try this Try making the window height about 50
pixels, and add a bunch of menu items to the menubars dataProvider, then
try. See if the menu is showing up under the window (you will be able to see
that because the menus items should extend beyond the bottom of the
window). I am not sure if this is the problem, but it is a logical first place
to check.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaibabsowats
Sent: Tuesday, October 25, 2005
4:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: (Flex
1.5 using Cairngorm Framework) MenuBars in PopUps not Working





More details are need?

How is PopUp.mxml used?
Whats the top component in PopUp.mxml,etc...

You probably doing this but just to double check,
in PopUp.mxml are
you putting the AS function insdie
mx:Script![CDATA[ ]/mx:Script

Renaun

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

 MenuBars aren't working properly in my
pop-ups, whereas they are
 working just fine in my Main.mxml.
 
 In my pop-up, the File menu I've declared
won't even drop down when I
 click on it.
 

-
 
 In Main.mxml:
 
 mx:MenuBar id=MainMenuBar
width=450

change=menuChangeHandler(event)
 mx:dataProvider
 mx:XML
 menuitem label=Finder
 menuitem label=Finder
A type=Finder data="">
 menuitem label=Finder
B type=Finder data="">
 /menuitem
 menuitem label=Add/Edit
 menuitem label=Add/Edit
A type=Add/Edit data="">
 menuitem label=Add/Edit
B type=Add/Edit data="">
 /menuitem
 /mx:XML
 /mx:dataProvider
 /mx:MenuBar
 
 mx:Script![CDATA[
 private function menuChangeHandler(event){
 if(event.menuItem.attributes.data ==
FinderA) {
 commonViewHelper.openWindow('FinderA')
 
 
 } else if(event.menuItem.attributes.data ==
FinderB) {
 commonViewHelper.openWindow('FinderB')
 } else if(event.menuItem.attributes.data ==
AddEditA) {
 
 commonViewHelper.openWindow('AddEditA')
 } else if(event.menuItem.attributes.data ==
AddEditB) {
 commonViewHelper.openWindow('AddEditB')
 }
 ]]/mx:Script
 
 (That works fine)
 

-
 
 In PopUp.mxml:
 
 mx:MenuBar id=PopUpMenuBar
width=450

change=menuChangeHandler(event)
 mx:dataProvider
 mx:XML
 menuitem label=File
 menuitem
label=Open type=File data="">
 menuitem
label=Close type=File data="">
 menuitem
label=Save type=File data="">
 /menuitem
 /mx:XML
 /mx:dataProvider
 /mx:MenuBar
 
 private function menuChangeHandler(event){
 if(event.menuItem.attributes.data ==
Open) {
 // Nothing yet
 } else if(event.menuItem.attributes.data ==
Close) {

PopUpViewHelper.closePopUp(); // Closes the
pop-up  
 } else if(event.menuItem.attributes.data ==
Save) {
 // Nothing yet
 }
 }
 
 (This is not working properly - the menu
won't even drop down to show
 the options.)
 
 Any insight would be greatly appreciated.













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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Remote Object not found in Flex config

2005-10-25 Thread Mercer, Dustin
Title: Remote Object not found in Flex config










And make sure you are not running Flash
Player 8.5.  I had issues with Flash player 8.5 and Named remote objects.  It
was giving me a different error, but there were problems none the less.  After
uninstall of 8.5, my app worked fine.  Very strange











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Roger Gonzalez
Sent: Tuesday, October 25, 2005
1:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Remote
Object not found in Flex config





Did you just make these changes?



Try shutting down and restarting your server.
There was an issue someone else had recently where this wasn't picked up
correctly without a restart.



-Roger

Roger Gonzalez
[EMAIL PROTECTED] 






















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel Bertrand
Sent: Tuesday, October 25, 2005
12:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote
Object not found in Flex config

Hi ! 

I'm having the following error : 

Invalid value for 'named' - does not
match any object name from the configuration file. 

I have already
checked my config file and I'm sure to have the name of the remote-object

there, however the error is still
happening. At config file I have the settings below: 

 remote-objects 

 .. 


whitelist 
 

  


!-- whitelist config for named objects -- 

named 
 
 object
name=DataBaseHandler 
 

sourcecom.datasul.persistence.util.DataBaseHandlerDelegate/source

 
 typestateless-class/type 
 
 /object 

/named 

/whitelist 
 /remote-objects 

I have the class DataBaseHandlerDelegate at WEB-INF/lib (as a jar file) and at 
WEB-INF/classes/com/datasul/persistence/util/. 

At my MXML tag I have the following: 

 mx:RemoteObject
id=dataBaseHandlerSrv named=DataBaseHandler





 
 protocol=http





 
 showBusyCursor=true





 
 result=event.call.resultHandler(
event ); 





 
fault=event.call.faultHandler( event
); 
 /mx:RemoteObject 



What's wrong ?
Where should I look for the error ? 

Thanks in
advance, 
Michel Bertrand | Desenvolvimento
| DATASUL Tecnologia
Acesse www.datasuldirect.com.br e conheça mais sobre os produtos e
soluções de tecnologia 










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











Re: [flexcoders] about the Flex name...

2005-10-25 Thread Manish Jethani
On 10/21/05, Tariq Ahmed [EMAIL PROTECTED] wrote:

 there's a GNU project called Flex

That Flex is extremely cool (there's also JFlex (Java)), and I used to
get resumes of people applying for a job at MM because they thought it
was about GNU Flex. :)


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] ADMIN: Re: Dividing the mailing list into categories

2005-10-25 Thread Manish Jethani
On 10/23/05, Steven Webster [EMAIL PROTECTED] wrote:

 In the first instance, I'd rather we not fragment the list, have the
 knowledge compartmentalised and suffer from people cross-posting to multiple
 lists to try and get questions answered.  Let's stick with one list, roll
 with the punches, and see how we get on.   Let's not do a big up-front
 refactoring :) of the list unless it's evident that it's required; and if
 that does become the case, the problems will have presented themselves and
 the solutions will be self-evident.

+1


 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

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

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

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

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




RE: [flexcoders] Re: Web-services giving hell to implement

2005-10-25 Thread Matt Chotin










Just to add a little color to this about
creating a proxy in two lines J



The proxy that Flex 1.5 provides (and Flex
Enterprise Services will provide) is not a simple straightforward re-direction
to the site of your choice. We also make sure that things like cookies are
transferred correctly, protect the proxy from being used in DOS attacks,
capture header errors that the Player is unable to process and convert them for
use by the ActionScript, etc. There are a number of elements that need to be
considered when writing a true proxy for Flex apps, but with that said if you
are simply trying to access an XML file on a server or do something where no authentication
and no cookies will be needed you may be able to write a simple proxy in the
language of your choice, and that link on the labs site is a good place to get
started.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sho Kuwamoto
Sent: Tuesday, October 25, 2005
9:01 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
Web-services giving hell to implement





One more thing. You can write
your own proxy. Depending on which server
language you are using, and whether you need to
deal with authentication
or not, it can be as simple as two lines of code.

Please see:

http://labs.macromedia.com/wiki/index.php/Flex:Accessing_Data

-Sho 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Dave Wolf
Sent: Tuesday, October 25, 2005 8:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Web-services giving hell
to implement

The model actually hasnt changed. In Flex
1.5 you could also use 
the crossdomain.xml solution to allow the player
to connect to a web 
service on a different host then it was downloaded
from. 

Now in Flex1.5 you had the flexproxy servlet which
would act as a 
proxy and redirect those calls tot he third
party. You wouldnt need 
crossdomain.xml then. However, you could
bypass the proxy and then 
use crossdomain.xml. All youre choice.

In Flex2 you will need the enterprise data
services to have access 
to the proxy. So to do what you want, and
not rely on 
crossdomain.xml in Flex2 you need the more
expensive (in line with 
Flex 1.5) version. 

The difference is for the much lower price you can
skip needing the 
proxy *if* you own the service and can use
crossdomain.xml. If you 
dont, you need the enterprise version.

Make sense?


-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY x85

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

 Good day awll...
 
 I have a little quirk with connecting to
web-services in Flex 2.0. 
In flex
 1.x you simply configured the service file
that resides on the 
server and
 then you add you web-service object to you
applications configure 
the wsdl
 and you good to go..
 
 For flex 2.0 i see that the model had changed
dramatically...now 
there is
 the advent of the crossdomain.xml that must
be placed in the root 
directory
 of the server that you are trying to get the
service from, so the 
Question
 now becomes if the server resides half way
around the world..how 
in gods
 name do i place a config file on that
server...
 now the server that give me the web-service
is implemented using 
rem-objects
 for delphi.. so its not a java server its a
delphi program..how do 
i install
 a crossdomain.xml file on that appication..
 
 Flex 2.0 doesn't come with any web-services
example...
 As of present i have no idea of how to use
web-services in Flex 2.0
 can anyone out there assist me..?
 Thanks
 
 --
 Kenlie Browne
 Software Developer








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

Yahoo! Groups Links














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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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