[flexcoders] Simple arithmetic

2005-04-17 Thread Tom Fitzpatrick

I'm trying to pass three numbers to a function and have it return an array 
containing two numbers that will be used as the dataprovider for a list. 
The list uses a labelFunction to display items in the form:

label: data
label: data

for example:

Salary: $80,000
Bonus: $20,000

Here's the latest thing I tried (doesn't work, but shows what I'm shooting 
for):

function getPercentages(varX:Number,varY:Number,varZ:Number)
{
varX= (varX/100)*varZ;
varY= (varY/100)*varZ;
var newSalary = varX.toString();
var newBonus = varY.toString();
var newFigures = [
{label:Salary,data:newSalary},
{label:Bonus,data:newBonus}
];
return newFigures;
}

Feeding the numbers

varX = 80
varY = 20
varZ = 100,000

should yield this list:

Salary: $80,000
Bonus: $20,000

Instead, I get:

Salary: NaN
Bonus: NaN

Assuming I've provided enough information, can anyone see what's wrong?

- Tom






 
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: Containers siziong - scroll bars

2005-04-17 Thread viraf_bankwalla


Is it ?  Your suggestion appears to work which suggests that there 
are different.  What is the difference ?

I decided not to use percents as soem of the articles suggest not 
using percents.  I did get the above working by specifying the 
hScrollPolicy and vScrollPolicy to off.  

So what is the preferred way os specifying sizes, and what the the 
difference between specifying percents vs pixels.

Thanks.


--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On 4/17/05, viraf_bankwalla [EMAIL PROTECTED] wrote:
 
  mx:ViewStack id=appView width={width} height={height}
 
 Isn't that the same as the following, except that the following 
works?
 
   mx:ViewStack id=appView width=100% height=100%
 
 -- 
 [EMAIL PROTECTED]
 http://manish.revise.org/





 
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] resizing containers as user resizes browser window

2005-04-17 Thread viraf_bankwalla


Hi,

How do I resize my containers when the user resizes the browsers 
window?  I added a resize event listner to one of the views in a 
viewstack.  This handler was called twice during the initial rendering 
if the screen, however it was not called when I resized my browser 
window.

Thanks.





 
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: MPEG4 streaming in Flash application?

2005-04-17 Thread Marcello Teodori


--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:
 On 4/14/05, Marcello Teodori [EMAIL PROTECTED] wrote:
 
  I would like to embed within my Flash application an MPEG4 video
stream, but as far 
as I
  know Flash allows only its own FLV Flash Video format.
 
 Is converting the MPEG to FLV using Sorenson Squeeze an option?
 http://www.sorenson.com/

Thank you very much for your answer, I've taken a look at the products
available from Sorenson, but it seems they do the job only for
existing documents, not for a live stream from an RTSP URL, as I am
trying to do.
In fact they look more like desktop applications, while in my mind
the solution should be some sort of server application or hardware
appliance that acts as a gateway converting the MPEG4 stream to
a FLV stream on-the-fly.
But please correct me if I am wrong...

--m
http://magomarcelo.blogspot.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] Simple arithmetic

2005-04-17 Thread Tom Fitzpatrick

OK - here's more info.

I'm passing the returned array as the dataprovider for a list (passed as 
dataObject):

mx:List id=listDisplay rowCount={listDisplay.dataProvider.length} 
labelFunction=myLabelFunction
 dataProvider={dataObject}
 rowHeight=16 selectable=false styleName=dgTextStyle 
width=100%/

The labelFunction is:

 function myLabelFunction(item):String
 {
 return item.label + :  + item.data;
 }

Does that help?

I thought the string conversion in the function would do the trick, because 
the labelFunction is looking for strings, but that still gives me a NaN.

- Tom

At 10:11 AM 4/17/2005, you wrote:
Hi,

Everything in function seems to be right, I feel something is wrong
somewhere else.

Can you post the code, how you are calling this function.

To isolate the problem, just call this function and show results in alert.

e.g.

alert(getPercentages(80,20,1)[0].data)


-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 17, 2005 5:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Simple arithmetic


I'm trying to pass three numbers to a function and have it return an array
containing two numbers that will be used as the dataprovider for a list.
The list uses a labelFunction to display items in the form:

label: data
label: data

for example:

Salary: $80,000
Bonus: $20,000

Here's the latest thing I tried (doesn't work, but shows what I'm shooting
for):

function getPercentages(varX:Number,varY:Number,varZ:Number)
{
 varX= (varX/100)*varZ;
 varY= (varY/100)*varZ;
 var newSalary = varX.toString();
 var newBonus = varY.toString();
 var newFigures = [
 {label:Salary,data:newSalary},
 {label:Bonus,data:newBonus}
 ];
 return newFigures;
}

Feeding the numbers

varX = 80
varY = 20
varZ = 100,000

should yield this list:

Salary: $80,000
Bonus: $20,000

Instead, I get:

Salary: NaN
Bonus: NaN

Assuming I've provided enough information, can anyone see what's wrong?

- Tom







Yahoo! Groups Links









--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
 http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

*
* 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 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] NuSoap / Flex error

2005-04-17 Thread core_elements


Hi,

I'm trying to do a Soap call. My specs :

- WinXP
- Apache/php (http://localhost)
- Tomcat (http://localhost:8080)
- NoSoap 0.6.9 installed on http://localhost 
- Flex 1.5 running on the Tomcat server

Now I have an soap-script that also generates a WDSL document 
(hellowsdl.php) that runs on http://localhost.
I have a MXML document on the Tomcat server : soap.mxml. 

In the MXML document I have a button labeled Hello. When I click 
the button I get the message

Request implements version 
http://schemas.xmlsoap.org/soap/envelope/Response implements version


What am I doing wrong?

My sources

[code]

?php

/*
file : hellowsdl.php
*/

// Pull in the NuSOAP code
require_once('lib/nusoap.php');

// Create the server instance
$server = new soap_server();

// Initialize WSDL support
$server-configureWSDL('hellowsdl', 'urn:hellowsdl');

// Register the method to expose

$server-register('hello',  // method 
name
array('name' = 'xsd:string'),  // input parameters
array('return' = 'xsd:void'),  // output parameters
'urn:hellowsdl',// 
namespace
'urn:hellowsdl#hello',  // soapaction
'rpc',  
// style
'encoded',  
// use
'Says hello to the caller'  // 
documentation
);



// Define the method as a PHP function
function hello($name) {
return 'Hello, ' . $name;
}

// Use the request to (try to) invoke the service
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? 
$HTTP_RAW_POST_DATA : '';
$server-service($HTTP_RAW_POST_DATA);

?
[/code]



soap.mxml :
[code]
?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;

mx:WebService id=service wsdl=http://localhost/hellowsdl.php?
wsdl 

mx:operation name=hello
mx:request
nameMy name/name
/mx:request
/mx:operation

/mx:WebService


mx:Form label=test
mx:FormHeading label=holla/

mx:Button label=Hello click=service.hello.send()/

mx:FormItem label=Response from server
mx:TextArea id=response/
/mx:FormItem

/mx:Form

/mx:Application
[/code]










 
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] ComboBox redraw issue

2005-04-17 Thread JesterXL

Weird issue with dynamically created FormItems.

http://dev.jessewarden.com/flash/panels/ViewMaker_source.zip

- If you tab to the ComboBox (on the Controls Tab), and choose button by 
hitting B, the 2nd FormItem doesn't draw it's label, even though the text 
for it traces out.
- If you manually select the ComboBox to Button instead of hitting but, it 
actually puts the _name of the label in there instead of the text.

...wtf? 



 
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: Containers siziong - scroll bars

2005-04-17 Thread Manish Jethani

On 4/17/05, viraf_bankwalla [EMAIL PROTECTED] wrote:

 Is it ?  Your suggestion appears to work which suggests that there
 are different.  What is the difference ?

Let's take this scenario:

 A
   B
 ...
  /B
 /A

If you set B's width and height to 100%, A will try to size it to the
maximum available space -- after taking the border size, margins, and
gaps into account.  So in this case A knows what it's doing.  If A's
width is 200, it's not necessary that B's width will also be 200.  It
can be less, depending on the border size and the margins
(left/right).

When you set B's width to 200 explicity, A needs to grow in order to
accomodate the margins and border -- unless A's width has also been
set explicitly, in which case both will be at their specified widths
and a horizontal scrollbar may appear.

Now, take the case where you're binding the two widths.  A's width
already depends on B's width.  In addition, you're making B's width
depend on A's width.  This is bound to confuse the layout management
in Flex.  I'm surprised it didn't go into some kind of an infinite
loop (so Flex is smart to handle this).

The layout algorithm in the Box container is rather complex to
explain, and I probably got some of my facts wrong in the above
paragraphs.  I don't have time to look into the details right now, or
I would have told you exactly what is happening.

You shouldn't have to bother about the details.  Use percent
widths/heights if you want flexible layout, else use fixed
width/height, but don't bind a child's width/height to its parent size
in this way.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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] resizing containers as user resizes browser window

2005-04-17 Thread Manish Jethani

On 4/17/05, viraf_bankwalla [EMAIL PROTECTED] wrote:

 How do I resize my containers when the user resizes the browsers
 window?  I added a resize event listner to one of the views in a
 viewstack.  This handler was called twice during the initial rendering
 if the screen, however it was not called when I resized my browser
 window.

Hi it's me again. :)  And I've got the same advice -- use percent
width/height.  Set the Application's width and height to be a
percentage of its container (the browser).  Resizing the browser
should then also resize the Application object.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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] Simple arithmetic

2005-04-17 Thread Manish Jethani

On 4/17/05, Tom Fitzpatrick [EMAIL PROTECTED] wrote:

 function getPercentages(varX:Number,varY:Number,varZ:Number)
 {

[snip]

 Feeding the numbers
 
 varX = 80
 varY = 20
 varZ = 100,000
 
 should yield this list:
 
 Salary: $80,000
 Bonus: $20,000

I verified that the function returns correct values.  You have a
problem somewhere else.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
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] Simple arithmetic

2005-04-17 Thread Tom Fitzpatrick

Manish and Abdul - Thanks. I'll keep looking...

- Tom

At 03:53 PM 4/17/2005, you wrote:
I verified that the function returns correct values.  You have a
problem somewhere else.






 
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] grid does not occupy all of TabNavigator container ?

2005-04-17 Thread sanjayd


I will pay $20 to the first person who can solve this problem !!

Please look at this code:
http://www.geocities.com/sanjayd.rm/freelance/positionsRepoRates.zip

when you bring up the application using via 'Main.mxml',
the grid in the 'Positions.mxml' app does not show all the columns !
The last column is clipped..any idea why ?
Thanks in advance. Sanjay.

I will pay $20 to the first person who can solve this problem !!





 
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] grid does not occupy all of TabNavigator container ?

2005-04-17 Thread jamesw

I don't have a perfect solution yet, but the DataGrid is getting clipped
by the Application container, which extends Box.  You can set a
width=700 on your Positions.mxml Application container and you will see
the whole DataGrid.  However, this may not be perfect since you might want
a percentage value there.  I think that I read something one that Loaded
apps default to around 400 wide.  I will try to get see if I can get a
non-hardcoded width working.

BTW: Is there a reason you are using Loader instead of just doing this:
mx:TabNavigator id=tn width=100% height=100%
  Positions label=Positions width=100% height=100% marginTop=8
marginLeft=8/

-James




 I will pay $20 to the first person who can solve this problem !!

 Please look at this code:
 http://www.geocities.com/sanjayd.rm/freelance/positionsRepoRates.zip

 when you bring up the application using via 'Main.mxml',
 the grid in the 'Positions.mxml' app does not show all the columns !
 The last column is clipped..any idea why ?
 Thanks in advance. Sanjay.

 I will pay $20 to the first person who can solve this problem !!






 Yahoo! Groups Links














 
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] RemoteObject frustration

2005-04-17 Thread kredding.geo


I have been looking at this forever and can't figure out what I am 
missing.
I am trying to access a class called search.  I am passing in some 
text and would like to receive data based on my text.  Right now the 
classes are very basic for testing the RemoteObject.

I am receiving the error message that 'search' cannot be found.  It 
seems to balk at the ro.search(searchCriteria) line listed below. I 
can't even figure out if the problem lies in the java code or the 
mxml code.  Here is a copy of my MXML file:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
initialize=initApp()

mx:Script
![CDATA[
import com.greetingsxpress.cards.services.*;

var searchCriteria:SearchCriteriaVO;
var searchResult:SearchResultVO;

function initApp() {
searchCriteria = new SearchCriteriaVO();
searchResult = new SearchResultVO();
searchResult.cards = new Array();
}

function doSearch() {
searchCriteria.text = foo;
ro.search(searchCriteria);
}

function customizeCard( idx ) { 
cardSelected.text = searchResult.cards[idx];
}
 
function resultHandler() {
//cardsArray=ro.search.result.cards;
searchResult = ro.search.result;

}
]] 
/mx:Script 

mx:RemoteObject id=ro 
source=com.greetingsxpress.cards.services.RemoteService
mx:method name=search result=resultHandler()/
/mx:RemoteObject

!--mx:Model id=cardModel
name{searchResult.imageReference}/name
/mx:Model

mx:Array id=cardsArray/mx:Array--
mx:Canvas width=400 height=400

mx:Button label=Get Cards click=doSearch()/
mx:Tile
mx:Repeater id=cards count=2 
dataProvider={searchResult.cards}
mx:Text id=cardSelected text=Text /
/mx:Repeater
/mx:Tile  /mx:Canvas
/mx:Application



ANY help would be appreciated!!
Thank you





 
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] RemoteObject frustration

2005-04-17 Thread Dan R Blackman



I don't see an Endpoint reference to your remoting gatewaycould that be it?"kredding.geo" [EMAIL PROTECTED] wrote:
I have been looking at this forever and can't figure out what I am missing.I am trying to access a class called search. I am passing in some text and would like to receive data based on my text. Right now the classes are very basic for testing the RemoteObject.I am receiving the error message that 'search' cannot be found. It seems to balk at the ro.search(searchCriteria) line listed below. I can't even figure out if the problem lies in the java code or the mxml code. Here is a copy of my MXML file:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="initApp()" mx:Script
 ![CDATA[  import com.greetingsxpress.cards.services.*;var searchCriteria:SearchCriteriaVO;  var searchResult:SearchResultVO;function initApp() {   searchCriteria = new SearchCriteriaVO();   searchResult = new SearchResultVO();   searchResult.cards = new Array();
  }function doSearch() {   searchCriteria.text = "foo";   ro.search(searchCriteria);  }  function customizeCard( idx ) {  cardSelected.text = searchResult.cards[idx];
  }function resultHandler() { //cardsArray=ro.search.result.cards;   searchResult = ro.search.result;}  ]]  /mx:Script   mx:RemoteObject id="ro" source="com.greetingsxpress.cards.services.RemoteService" mx:method name="search" result="resultHandler()"/
 /mx:RemoteObject  !--mx:Model id="cardModel"  name{searchResult.imageReference}/name /mx:Model  mx:Array id="cardsArray"/mx:Array-- mx:Canvas width="400" height="400"mx:Button label="Get Cards" click="doSearch()"/  mx:Tile   mx:Repeater id="cards" count="2" dataProvider="{searchResult.cards}"
   mx:Text id="cardSelected" text="Text" /   /mx:Repeater  /mx:Tile  /mx:Canvas/mx:ApplicationANY help would be appreciated!!Thank you







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 the Yahoo! Terms of Service.










[flexcoders] Re: how to display the HashMap data in flex mx:Data Grid?

2005-04-17 Thread loveewind


matt,Manish Jethani
thank you

the detail what to do is below:
1.the Java method:


public ArrayList findAllUsers(){
ArrayList list = new ArrayList();
try{
PreparedStatement pstmt = getDB
().getConnection().prepareStatement(QUERY_ALL);
ResultSet rs = pstmt.executeQuery();
HashMap map = new HashMap();

while(rs.next()){
UserVO user = new UserVO();
map.put(new String(crm),new 
Integer(rs.getInt(crm)));
map.put(new String(cdms),new Integer
(rs.getInt(cdms)));
map.put(new String(farnet),new Integer
(rs.getInt(farnet)));
map.put(new String(par),new Integer
(rs.getInt(par)));
map.put(new String(onyx),new Integer
(rs.getInt(onyx)));
map.put(new String(promo),new Integer
(rs.getInt(promo)));
user.setNetworkId(rs.getString(network_id));
user.setFirstName(rs.getString(firstname));
user.setLastName(rs.getString(lastname));
user.setLoggedOn(rs.getString(loggedOn));
user.setActive(rs.getString(active));
user.setAccessMap(map);
list.add(user);


}


}
catch(Exception e){
}
finally{
db.close();
}
return list;
}



2.the related flex page:

the object userList is return from the above method

and I want to display the Object 

 mx:DataGrid id=dgContact   change=selectContact
(dgContact.selectedIndex) dataProvider={userList} width=100% 
height=100% toolTip=Contact List
mx:columns
mx:Array

mx:DataGridColumn columnName=networkId headerText=Network 
ID marginLeft=4 width=50/
mx:DataGridColumn columnName=firstName 
headerText=First Name marginLeft=4 width=60/
mx:DataGridColumn columnName=lastName 
headerText=Last Name marginLeft=4 width=60/  

mx:DataGridColumn columnName=active 
headerText=Active marginLeft=5  width=50/
mx:DataGridColumn columnName=loggedOn 
headerText=Status marginLeft=5  width=50/

mx:DataGridColumn columnName=?? headerText=crm 
marginLeft=5  width=70/

/mx:Array
/mx:columns
/mx:DataGrid


how to write the ??? and the related actionscript

after got the userList and make the attribute
 hashmap to Array? is it ?



--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 I'm not sure what you're trying to do.  If you have the accessMap 
you can
 index into it using names (accessMap['foo']).  Are you trying to 
make the
 hashmap the dataProvider of the DataGrid?  That's not going to 
work, you
 need a linear list for that to happen (which you could create 
pretty easily
 by iterating over the hash map and simply filling an array with 
each time).
 
  
 
 Matt
 
   _  
 
 From: loveewind [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 13, 2005 9:37 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] how to display the HashMap data in flex 
mx:DataGrid?
 
  
 
 
 my java object below:
 public class UserVO {
 private HashMap accessMap = null;
   private String active= null;
   private String firstName = null;
   private String lastName  = null;
   private String loggedOn  = null;
   
   private String networkId = null;
 
   
 /**
 * @return
 */
 public HashMap getAccessMap() {
   return accessMap;
 }
 ..
 }
 
 my actionscript object below:
 
 class com.zdus.crm.user.UserVO{
   var firstName:String;
   var lastName:String;
   var networkId:String;
   var loggedOn:String;
   var active:String;
   var accessMap:Object;
   static var registered=Object.registerClass
 (com.zdus.crm.user.UserVO,com.zdus.crm.user.UserVO);
 }
 
 I have got the hashmap on flex age from remoteobject certainly
 
 i know treat the hashmap as a index array,but i can not do it
 
 thank you! wait for your help online
 
 
 
 
 
 
   _  
 
 Yahoo! Groups 

RE: [flexcoders] RemoteObject frustration

2005-04-17 Thread Matt Chotin










Are you trying to access a class called
search or a method called search on the class RemoteService? Do you have the
RemoteService class in your whitelist? Are you passing in the expected
arguments? What is the exact error message you are seeing? Can you put a
println in your search method on the Java side and see if it comes out in your
console?



Im guessing youre having a
whitelist problem or passing unexpected arguments.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Sunday, April 17, 2005 4:42
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoteObject
frustration






I have been looking at this forever and can't
figure out what I am 
missing.
I am trying to access a class called search.
I am passing in some 
text and would like to receive data based on my
text. Right now the 
classes are very basic for testing the
RemoteObject.

I am receiving the error message that 'search'
cannot be found. It 
seems to balk at the ro.search(searchCriteria)
line listed below. I 
can't even figure out if the problem lies in the
java code or the 
mxml code. Here is a copy of my MXML file:

?xml version=1.0
encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

initialize=initApp()

 mx:Script
 ![CDATA[

 import com.greetingsxpress.cards.services.*;

 

 var searchCriteria:SearchCriteriaVO;

 var searchResult:SearchResultVO;

 

 function initApp() {

  searchCriteria =
new SearchCriteriaVO();

  searchResult =
new SearchResultVO();

 
searchResult.cards = new Array();

 }

 

 function doSearch() {

 
searchCriteria.text = foo;

 
ro.search(searchCriteria);

 }

 
 

 function customizeCard( idx )
{ 
 

  cardSelected.text
= searchResult.cards[idx];

 }

  

function resultHandler() {

//cardsArray=ro.search.result.cards;

  searchResult =
ro.search.result;

  
 }
 
]] 
 /mx:Script 
 
 mx:RemoteObject
id=ro 
source=com.greetingsxpress.cards.services.RemoteService

mx:method name=search result=resultHandler()/
 /mx:RemoteObject
 
 !--mx:Model
id=cardModel


name{searchResult.imageReference}/name
 /mx:Model
 
 mx:Array
id=cardsArray/mx:Array--
 mx:Canvas
width=400 height=400

 

 mx:Button label=Get Cards
click=doSearch()/

 mx:Tile

  mx:Repeater
id=cards count=2 
dataProvider={searchResult.cards}

  mx:Text
id=cardSelected text=Text /



/mx:Repeater

 /mx:Tile 
/mx:Canvas
/mx:Application



ANY help would be appreciated!!
Thank you















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 the Yahoo! Terms of Service.












RE: [flexcoders] NuSoap / Flex error

2005-04-17 Thread Matt Chotin










Im not at all familiar with NuSoap.
Can you post the whole WSDL?



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Sunday, April 17, 2005 10:23
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] NuSoap /
Flex error






Hi,

I'm trying to do a Soap call. My specs :

- WinXP
- Apache/php (http://localhost)
- Tomcat (http://localhost:8080)
- NoSoap 0.6.9 installed on http://localhost 
- Flex 1.5 running on the Tomcat server

Now I have an soap-script that also generates a
WDSL document 
(hellowsdl.php) that runs on http://localhost.
I have a MXML document on the Tomcat server :
soap.mxml. 

In the MXML document I have a button labeled
Hello. When I click 
the button I get the message

Request implements version 
http://schemas.xmlsoap.org/soap/envelope/Response
implements version


What am I doing wrong?

My sources

[code]

?php

/*
 file :
hellowsdl.php
*/

// Pull in the NuSOAP code
require_once('lib/nusoap.php');

// Create the server instance
$server = new soap_server();

// Initialize WSDL support
$server-configureWSDL('hellowsdl',
'urn:hellowsdl');

// Register the method to expose

$server-register('hello',
 
 // method 
name
 array('name' =
'xsd:string'),  //
input parameters
 array('return'
= 'xsd:void'), // output parameters

'urn:hellowsdl', 
 
 // 
namespace
 'urn:hellowsdl#hello',
 
 // soapaction

'rpc', 
 
 
 
 // style

'encoded', 
 
  
 // use
 'Says hello to the
caller' 
 // 
documentation
);



// Define the method as a PHP function
function hello($name) {
 return
'Hello, ' . $name;
}

// Use the request to (try to) invoke the service
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ?

$HTTP_RAW_POST_DATA : '';
$server-service($HTTP_RAW_POST_DATA);

?
[/code]



soap.mxml :
[code]
?xml version=1.0
encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:WebService
id=service wsdl=http://localhost/hellowsdl.php?
wsdl 
  
 
mx:operation name=hello
 
 mx:request
 
  nameMy
name/name
 
 /mx:request
 
/mx:operation
 
 /mx:WebService
 
 
 mx:Form
label=test
 
mx:FormHeading label=holla/
  
 
mx:Button label=Hello
click=service.hello.send()/
  
 
mx:FormItem label=Response from server
  
mx:TextArea id=response/
 
/mx:FormItem
  
 /mx:Form
 
/mx:Application
[/code]




















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 the Yahoo! Terms of Service.












[flexcoders] [Ann] Sydney Developers Group Inaugral meeting

2005-04-17 Thread Chris Velevitch

Attention all Sydney (Australia) based developers:

The Inaugral meeting will be held on Tuesday 10th May at 6pm for a 6:30 start.

There'll be a lucky door prize, but to be in the draw, you'll need to RSVP.

Tonights topic is: What's Flex Really All About?

There's been a lot of talk lately about Flex and the impact of the
price increase. Flex is a server based platform. But really, what does
Flex give that you can't do with Flash, a application Framework, Flash
Remoting or Web Services and diligent development practices? Tonight,
Robin Hilliard of Rockboots will shed some light on this issue with
some real world examples.
(http://cfd81.cfdynamics.com/flashdev/program/)

Venue is MLC School Burwood (http://cfd81.cfdynamics.com/flashdev/venue/)

There'll be a lucky door prize, but to be in the draw, you'll need to RSVP.


 
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: RemoteObject frustration

2005-04-17 Thread kredding.geo


What do you mean by an endpoint reference?

--- In flexcoders@yahoogroups.com, Dan R Blackman [EMAIL PROTECTED] 
wrote:
 I don't see an Endpoint reference to your remoting gatewaycould 
that be it?
 
 kredding.geo [EMAIL PROTECTED] wrote:
 I have been looking at this forever and can't figure out what I am 
 missing.
 I am trying to access a class called search.  I am passing in some 
 text and would like to receive data based on my text.  Right now 
the 
 classes are very basic for testing the RemoteObject.
 
 I am receiving the error message that 'search' cannot be found.  It 
 seems to balk at the ro.search(searchCriteria) line listed below. I 
 can't even figure out if the problem lies in the java code or the 
 mxml code.  Here is a copy of my MXML file:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 initialize=initApp()
 
   mx:Script
   ![CDATA[
 import com.greetingsxpress.cards.services.*;
 
 var searchCriteria:SearchCriteriaVO;
 var searchResult:SearchResultVO;
 
 function initApp() {
   searchCriteria = new SearchCriteriaVO();
   searchResult = new SearchResultVO();
   searchResult.cards = new Array();
 }
 
 function doSearch() {
   searchCriteria.text = foo;
   ro.search(searchCriteria);
 }
 
 function customizeCard( idx ) {  
   cardSelected.text = searchResult.cards[idx];
 }
   
 function resultHandler() {
 //cardsArray=ro.search.result.cards;
   searchResult = ro.search.result;
   
 }
   ]] 
   /mx:Script 
   
   mx:RemoteObject id=ro 
 source=com.greetingsxpress.cards.services.RemoteService
 mx:method name=search result=resultHandler()/
 /mx:RemoteObject
   
   !--mx:Model id=cardModel
 name{searchResult.imageReference}/name
   /mx:Model
   
   mx:Array id=cardsArray/mx:Array--
   mx:Canvas width=400 height=400
 
 mx:Button label=Get Cards click=doSearch()/
 mx:Tile
   mx:Repeater id=cards count=2 
 dataProvider={searchResult.cards}
   mx:Text id=cardSelected text=Text /
   /mx:Repeater
 /mx:Tile   /mx:Canvas
 /mx:Application
 
 
 
 ANY help would be appreciated!!
 Thank you
 
 
 
 
 
 -
 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 the Yahoo! Terms of 
Service.





 
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] Flex, Flashcomm, MediaDisplay Component

2005-04-17 Thread dave buhler

FlexCoders,

We have an application that utilizes Matt and Chris's class for
extending the MediaDisplay component to intergrate Flex with Flash
Communication Server.

Interestingly, I can record an FLV with the same name and have the FLV
stream live, into the component, only 3x before the stream will not
show in a live format. The MediaDisplay Component then displays
nothing or it displays a dated FLV.

After the 3rd recording, the Stream is recorded, but subsequent
attempts to show 'streaming' video (of the same name)  fails.

My best guess is that this is a:
-Flash Communication Server Memory Issue
-Flash SWF, Flex Server, or or Flash Communication Server Garbage
Collection issue.
-An issue with the MediaDisplay component.

Can anyone else shed light on their thoughts about what it could be
and how I could go about debugging this issue?

Best,
Dave


 
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: grid does not occupy all of TabNavigator container ?

2005-04-17 Thread Andrew Spaulding


Hi,

As the loader is not a component it doesnt have any concept of size,
it is merely a control, and a sometimes difficult one at that.

In your Positions.mxml try placing the following in a script block at
the start of the application:

// Check for a _parent movieClip and get the available HEIGHT
function getPreferredHeight() : Number
{
if ( _parent )
{
return _parent.layoutHeight;
}
else
{
return super.getPreferredHeight();
}
}


// Check for a _parent movieClip and get the available WIDTH
function getPreferredWidth() : Number
{
if ( _parent )
{
return _parent.layoutWidth;
}
else
{
return super.getPreferredWidth();
}
}


This will return the available width and height that the loader can use. 

hope this helps,

Andrew Spaulding
www.flexdaddy.com




--- In flexcoders@yahoogroups.com, sanjayd [EMAIL PROTECTED] wrote:
 
 I will pay $20 to the first person who can solve this problem !!
 
 Please look at this code:
 http://www.geocities.com/sanjayd.rm/freelance/positionsRepoRates.zip
 
 when you bring up the application using via 'Main.mxml',
 the grid in the 'Positions.mxml' app does not show all the columns !
 The last column is clipped..any idea why ?
 Thanks in advance. Sanjay.
 
 I will pay $20 to the first person who can solve this problem !!





 
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/