[flexcoders] Passing Data

2012-09-21 Thread Davidson, Jerry
I have an item renderer that is a linkbutton.  It is in an advancedatagrid of a 
few columns.  When it is clicked, a procedure is fired up and that procedure 
needs to know the values of the datasource for that row.  How do I communicate 
that?

Here is the renderer:

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

  if (value == null ||
value == "")
  {
return;
  }

  super.data = value;

  var lb2:LinkButton = new LinkButton();

  lb2.label = value.individualName +
": " + value.rspVer;

  lb2.addEventListener(MouseEvent.CLICK, retrieveList);
  addChild(lb2);
}

public function retrieveList(event:Event):void
{
  var retrieve:UserAARetrieveVO = new UserAARetrieveVO();
  retrieve.type = Const.USER_AA_RETRIEVE;
  retrieve.indvID = // selected row of datasource id;
  retrieve.parmStartDate =  // selected row of datasource start;
  retrieve.parmEndDate =// selected row of datasource end;

  (new UserAARetrieveEvent(retrieve)).dispatch();
}


TIA,
Jerry



Re: [flexcoders] passing Data

2011-11-24 Thread Rishi Tandon
Use http object for the same.

Sent from my iPad

On 24-Nov-2011, at 12:46 PM, "Sreeja I"  wrote:

> how to pass data from flex applications to a ne tab through url?
> 
> 


[flexcoders] passing Data

2011-11-24 Thread Sreeja I
how to pass data from flex applications to a ne tab through url?



Re: [flexcoders] passing data to itemrenderer children

2009-05-12 Thread Jeffry Houser

 Because the data didn't change? 

sinstone_flickr wrote:
> hey guys and gals,
>
> i'm using a list with an itemRenderer to show a list of activities in our 
> LMS. the list has its dataProvider set to use XML retrieved from the backend:
>
>  dataProvider="{this.learningDesignXML.Activity}" />
>
> inside the declaration of the ActivityListItemRenderer, there is this:
>
> http://www.adobe.com/2006/mxml";
>   width="100%" height="100%" paddingBottom="0" paddingTop="0" 
> paddingLeft="0" paddingRight="0"
>   itemRenderer="{new ArgumentsToRendererFactory({}, 
> ActivityItemRenderer)}"
>   variableRowHeight="true" useRollOver="false"  horizontalCenter="0" 
> verticalAlign="middle" selectable="false">
>
> now... you can see that the itemRenderer is specified here. this itemRenderer 
> has three important children who have the data passed to them through 
> binding. looks like this:
>
> 
>data="{data} "/>
>data="{data}" />
>id="branchingActivityState" data="{data}" />
>   
>
> for some reason, when data changes in the list, the dataChange event is 
> caught in the itemRenderer itself. however, its children who have this same 
> data bound to them, don't catch the dataChange event when it is changed.
>
> why? any ideas?
>
> thanks!
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

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




[flexcoders] passing data to itemrenderer children

2009-05-12 Thread sinstone_flickr
hey guys and gals,

i'm using a list with an itemRenderer to show a list of activities in our LMS. 
the list has its dataProvider set to use XML retrieved from the backend:



inside the declaration of the ActivityListItemRenderer, there is this:

http://www.adobe.com/2006/mxml";
width="100%" height="100%" paddingBottom="0" paddingTop="0" 
paddingLeft="0" paddingRight="0"
itemRenderer="{new ArgumentsToRendererFactory({}, 
ActivityItemRenderer)}"
variableRowHeight="true" useRollOver="false"  horizontalCenter="0" 
verticalAlign="middle" selectable="false">

now... you can see that the itemRenderer is specified here. this itemRenderer 
has three important children who have the data passed to them through binding. 
looks like this:







for some reason, when data changes in the list, the dataChange event is caught 
in the itemRenderer itself. however, its children who have this same data bound 
to them, don't catch the dataChange event when it is changed.

why? any ideas?

thanks!




[flexcoders] Passing data providers to drop-in item editors/renderers

2009-02-24 Thread Tyler Kocheran
I need to pass in data to one of my item editors for a data grid column. I
have an array of data objects that are loaded at runtime and I need to pass
that collection to item editors so they can use it as a data provider.
Here's an example of what I need to do. I'm loading a bunch of "TKImage"
objects which define a few properties like "name" and "id". I need to use
the "id" property as each individual item's data field, and apply the name
as each individual item's label field. I know it's possible to do something
like this statically at compile time with a nested  tag and
I know it's also possible to use a static property to pass the data along,
but I'm trying to avoid those two things because my application has the need
to be dynamic, and I don't like global variables too much ;)

 What I need is for something like this to function:


  
   
   
   
  



-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.


RE: [flexcoders] Passing data to a cell on a DataGrid, and putting there a ComboBox

2009-01-19 Thread Tracy Spratt
One set of answers:

1- Assuming the ComboBox dataProvider is the same for all rows, you couild bind 
it to a data model on the main application.

2- If I recall correctly, using an itemEditor and editable column makes flex 
display the editor when you click in a cell.  You would use the normal DataGrid 
editing events to manipulate the data if needed.  If set up correctly, the DG 
will handle updating the dataProvider.  I tend to prefer non-editable columns 
containing full interactive itemRenderers that handle all of the display, and 
updating of the dataProvider item themselves.  The itemRenderer has a reference 
to the current dataProvider row item.  You can simply update the item there.  
Use the dataProvider API to update the item, to ensure the UI responds to the 
change.

3 - see 2 above

 

Additional notes:

*   itemRenderers should be be data driven.  You must update a renderers 
visual state based on changes to the underlying data.
*   If you want ComboBox to display the current cell value as the 
selectedItem, you will need to do some workl.
*   Interactive Item renderers are not simple, especially if youwant to 
perserve performance.  Find an example and modify it.  Do not start from 
scratch.   

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of João
Sent: Monday, January 19, 2009 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing data to a cell on a DataGrid, and putting there a 
ComboBox

 

Hi,

My application has an AdvancedDataGrid that shows a list of data. I
would like that the user could edit data on the DataGrid itself just
by clicking on a row/cell. After the click, that cell shows a ComboBox
filled with data that comes from other data source different from the
datasource provided to the AdvancedDataGrid.

My problems are:

1- Best practices to pass the data (that comes from other datasource)
to the ComboBox on the cell ? Should I extend the ADG ?

2- To show the ComboBox on the cell, the proposed solution is to use
an itemRenderer or an itemEditor? What's the difference between both,
and which one of them fits better on my problem ?

3- After the user chooses the value, I need to save the change
somewhere. I am thinking on dispatching an event, with bubbles = true,
and catching it on the AdvancedDataGrid parent. Do you think this is a
good approach?

Thanks,

João Saleiro

 



[flexcoders] Passing data to a cell on a DataGrid, and putting there a ComboBox

2009-01-19 Thread João
Hi,

My application has an AdvancedDataGrid that shows a list of data. I
would like that the user could edit data on the DataGrid itself just
by clicking on a row/cell. After the click, that cell shows a ComboBox
filled with data that comes from other data source different from the
datasource provided to the AdvancedDataGrid.

My problems are:

1- Best practices to pass the data (that comes from other datasource)
to the ComboBox on the cell ? Should I extend the ADG ?

2- To show the ComboBox on the cell, the proposed solution is to use
an itemRenderer or an itemEditor? What's the difference between both,
and which one of them fits better on my problem ?

3- After the user chooses the value, I need to save the change
somewhere. I am thinking on dispatching an event, with bubbles = true,
and catching it on the AdvancedDataGrid parent. Do you think this is a
good approach?

Thanks,

João Saleiro



Re: [flexcoders] passing data with custom event up displaylist chain?

2008-10-15 Thread Maciek Sakrejda
You should create a new Event subclass--this is a lot easier to follow
and to maintain--but if you need a quick solution, you can use
DynamicEvent:

var event:DynamicEvent = new DynamicEvent("stuffHappened");
event.stuff = { stuffName : 'foo', stuffId : 123, stuffData : [1,2,3] };
event.otherStuff = "foo bar baz";
event.anythingAtAll = "whatever you like";

The DynamicEvent class descends from Event but is dynamic, just like
object, so you can dynamically add any properties you like. Again, this
is rarely a good idea in the long term: it's cleaner to define a custom
Event subclass. But it is possible.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mic <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing data with custom event up displaylist
chain?
Date: Wed, 15 Oct 2008 07:30:35 -

is it true to say that a custom event can communicate nothing except
"an event has been sent", and that in order to send data, an event
subclass with public properties has to be coded? I have a tileList
deep within containers that must communicate its selectedItem to a
higher-level Canvas. I thought I might be able to somehow get the info
into the custom event before it is sent:


// [Event("updateStuff", type="flash.events.Event"))]
[Event("updateStuff", type="flash.events.MouseEvent")] 


mx:TileList id="myTileList" click = "updateStuff(event)"

private function updateStuff(e:Event):void{
var eventStuff:Event = new Event("updateStuff",true);
// put e data into eventStuff; - cannot do this :-)
this.dispatchEvent(eventStuff); 
}

I am presuming that it does not make sense to bubble the tileList
MouseClick up the chain and then have the higher-level Canvas listener
trap every mouse click and look for a currentTarget of "myTileList".

TIA, Mic.




 




[flexcoders] passing data with custom event up displaylist chain?

2008-10-15 Thread Mic
is it true to say that a custom event can communicate nothing except
"an event has been sent", and that in order to send data, an event
subclass with public properties has to be coded? I have a tileList
deep within containers that must communicate its selectedItem to a
higher-level Canvas. I thought I might be able to somehow get the info
into the custom event before it is sent:


// [Event("updateStuff", type="flash.events.Event"))]
[Event("updateStuff", type="flash.events.MouseEvent")]


mx:TileList id="myTileList" click = "updateStuff(event)"

private function updateStuff(e:Event):void{
   var eventStuff:Event = new Event("updateStuff",true);
   // put e data into eventStuff; - cannot do this :-)
   this.dispatchEvent(eventStuff);  
}

I am presuming that it does not make sense to bubble the tileList
MouseClick up the chain and then have the higher-level Canvas listener
 trap every mouse click and look for a currentTarget of "myTileList".
 
TIA, Mic.



[flexcoders] Passing data to AdvancedDataGridRendererProvider

2008-07-18 Thread frank_sommers
Hi, 

I'm trying to pass some custom data into the AdvancedDataGridItemRenderer. But 
as far as I 
can see, only the datafield can be passed to this component. Is there any way 
to specify to 
the class factory some other object references, too? 

In my case, I want the user to be able to affect the UI state from within an 
item renderer, 
and therefore I'd like to pass references to another UI component as well to 
the 
AdvancedDataGridItemRenderer. 

Any suggestions would be appreciated. 

Thanks, 

-- Frank





[flexcoders] Passing data from top level component to lower level component

2008-07-08 Thread Steve Good
Hi gang,

I'm having a dense moment.  How do I pass data through an event from  
the application level component to a child component?  I know how to  
pass data through an event from a child component to the application  
component, is it a similar process?

Thanks!

Steve Good
http://lanctr.com






Re: [flexcoders] passing data from PHP to Flex

2008-06-25 Thread David Pariente
if u take out the print line, and u just echo the XML it should work properly...


- Mensaje original 
De: ghus32 <[EMAIL PROTECTED]>
Para: flexcoders@yahoogroups.com
Enviado: martes, 24 de junio, 2008 19:56:47
Asunto: [flexcoders] passing data from PHP to Flex


Hello everyone,

I have an upload script that I am using in Flex with PHP. The upload 
function is working fine, but I want to pass data from the serverside 
script back to the app. I want to communicate the message part in the 
php back to Flex.

HOw would I go about doing this..

My PHP code is below

$uploaddir = TEMPLATE_DIRECTORY;
$filename= trim($_FILES[ 'file'][' name']);

if(is_uploaded_ file($_FILES[ 'file'][' tmp_name' ]))
{


$id = time().mt_rand( 0,1);
$file = $id;


move_uploaded_ file($_FILES[ 'file'][' tmp_name' ],$uploaddir. $file);

$filepath=$uploaddi r.'/';

$query_filename= "INSERT INTO template(name, location, temp_name) 
VALUES ('$filename' , '$filepath' , '$file')";

$result_filename = mysql_query( $query_filename );

}
print "Your file has been uploaded successfully! Yay!";

$message =  " $file 
uploadedsuccessfull y.  ";
echo $message;




  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

RE: [flexcoders] passing data from PHP to Flex

2008-06-24 Thread Tracy Spratt
We answered this one a day or two ago, check the archives. 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ghus32
Sent: Tuesday, June 24, 2008 1:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing data from PHP to Flex

 

Hello everyone,

I have an upload script that I am using in Flex with PHP. The upload 
function is working fine, but I want to pass data from the serverside 
script back to the app. I want to communicate the message part in the 
php back to Flex.

HOw would I go about doing this..

My PHP code is below

$uploaddir = TEMPLATE_DIRECTORY;
$filename= trim($_FILES['file']['name']);

if(is_uploaded_file($_FILES['file']['tmp_name']))
{


$id = time().mt_rand(0,1);
$file = $id;


move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.$file);

$filepath=$uploaddir.'/';

$query_filename= "INSERT INTO template(name, location, temp_name) 
VALUES ('$filename', '$filepath' , '$file')";

$result_filename = mysql_query( $query_filename );

}
print "Your file has been uploaded successfully! Yay!";

$message = "$file 
uploadedsuccessfully.";
echo $message;

 



[flexcoders] passing data from PHP to Flex

2008-06-24 Thread ghus32
Hello everyone,

I have an upload script that I am using in Flex with PHP. The upload 
function is working fine, but I want to pass data from the serverside 
script back to the app. I want to communicate the message part in the 
php back to Flex.

HOw would I go about doing this..






My PHP code is below

$uploaddir = TEMPLATE_DIRECTORY;
$filename= trim($_FILES['file']['name']);



if(is_uploaded_file($_FILES['file']['tmp_name']))
{
 

  $id = time().mt_rand(0,1);
  $file = $id;
 
  
move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.$file);

$filepath=$uploaddir.'/';



$query_filename= "INSERT INTO template(name, location, temp_name) 
VALUES ('$filename', '$filepath' , '$file')";

$result_filename = mysql_query( $query_filename );

}
print "Your file has been uploaded successfully! Yay!";



$message =  "$file 
uploadedsuccessfully.";
echo $message;




RE: [flexcoders] passing data from a PopUp Window labelfield.text to calling main app textbox

2008-06-03 Thread Tracy Spratt
http://www.cflex.net/showFileDetails.cfm?ObjectID=558

Shows several options, but does not use events.  I mostly use events
these days.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ritexcorp
Sent: Tuesday, June 03, 2008 12:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing data from a PopUp Window labelfield.text
to calling main app textbox

 

Hi guys, I am new to the group and new to Flex, my background is in 
Java, so I am going through alot of tutorials getting up to speed. I 
want to redo my website http://www.mycabservice.com
<http://www.mycabservice.com>  with a Flex UI 
frontend, so heres the problem. So far I have a flex 2 application 
that has a popup window that contains 4 cascading combo boxes fed from 
an xml file, and I want the last combobox selection -"airport", to 
populate airport selection back to the opening application's textbox. 
and display the popup selection. country-state-city-"airport". 
popup.labelfield.text= mainapp.textbox.text. This is an easy one but 
it is consuming too much of my time to sort out. I have seen some 
examples using events, what is the simplest method to use.

 



[flexcoders] passing data from a PopUp Window labelfield.text to calling main app textbox

2008-06-03 Thread ritexcorp
Hi guys, I am new to the group and new to Flex, my background is in 
Java, so I am going through alot of tutorials getting up to speed. I 
want to redo my website http://www.mycabservice.com with a Flex UI 
frontend, so heres the problem. So far I have a flex 2 application 
that has a popup window that contains 4 cascading combo boxes fed from 
an xml file, and I want the last combobox selection -"airport", to 
populate airport selection back to the opening application's textbox. 
and display the popup selection.  country-state-city-"airport". 
popup.labelfield.text= mainapp.textbox.text.  This is an easy one but 
it is consuming too much of my time to sort out.  I have seen some 
examples using events, what is the simplest method to use.



[flexcoders] Passing data from grid row to form components problem

2008-02-26 Thread kapil b
Hi All,

I am new to flex... in my sample application i m retrieving the data from the 
xml and displaying it in the grid.

On clicking on particular row, the row data should get populated in a form 
(containing text boxs) so that i can delete and update the contents and save 
back to database.

I am using java remote object to save/update the data on submitting the form

Problem : Row Data doesn't  get populated in the form on clicking the row in 
grid.

Please give me approach to solve this problem

Thanks,
Kapil





  Save all your chat conversations. Find them online at 
http://in.messenger.yahoo.com/webmessengerpromo.php

[flexcoders] Passing data between components

2007-08-31 Thread nextadvantage
Hi All;

I am a front end designer and am having issues trying to get view
stack ID's from one component into a link bar in another component.

I have gone through many tutorials but need some help with this
sample.. . I can't grasp how to get the data from the view
stack id into the other component.

Can someone please show me some sample code how to do this, thanks...



RE: [flexcoders] passing data to an EventListener

2007-03-30 Thread Tracy Spratt
Hey, that IS a clever idea, thanks!

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muzak
Sent: Friday, March 30, 2007 5:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] passing data to an EventListener

 

You can use the data property, which is normally used in combination
with item renderers or item editors, but nothing says you can't 
use it for something else ;-)

import mx.controls.Button;

private function appInit():void {
var offset:Number = 0;
for (var i:Number=0; i<10; i++) {
var b:Button = new Button();
b.data = {btnIndex:i};
b.y = offset;
b.label = "click me";
b.toolTip = "button "+i;
b.addEventListener(MouseEvent.CLICK, buttonClickHandler);
addChild(b);
offset+=20;
}
}

private function buttonClickHandler(evt:Event):void {
trace("index: "+evt.currentTarget.data.btnIndex);
}

regards,
Muzak

- Original Message - 
From: "dougco2000" <[EMAIL PROTECTED] <mailto:doug%40dougco.com> >
To: mailto:flexcoders%40yahoogroups.com> >
Sent: Friday, March 30, 2007 8:43 AM
Subject: [flexcoders] passing data to an EventListener

I'm creating a number of buttons programmatically and I'd like to have
a unique value passed along to a function when each one is clicked.

So if I am doing something like:

for (i=0;i<10;i++) {
b = new Button();
b.y = offset;
b.label = "click me";
b.tooltip = "button "+i;
b.addEventListener(MouseEvent.CLICK, butSelect);
addChild(b);
offset+=20;
}

And I want to have, let's say, "i" passed along to the "butSelect"
function, how is that done? I humored myself and tried doing
butSelect(i) but of course the mouseEvent is passed and you're not
allowed to provide any parameters to the function.

Thanks!

 



Re: [flexcoders] passing data to an EventListener

2007-03-30 Thread Muzak
You can use the data property, which is normally used in combination with item 
renderers or item editors, but nothing says you can't 
use it for something else ;-)


   import mx.controls.Button;

   private function appInit():void {
var offset:Number = 0;
for (var i:Number=0; i<10; i++) {
 var b:Button = new Button();
 b.data = {btnIndex:i};
 b.y = offset;
 b.label = "click me";
 b.toolTip = "button "+i;
 b.addEventListener(MouseEvent.CLICK, buttonClickHandler);
 addChild(b);
 offset+=20;
}
   }

   private function buttonClickHandler(evt:Event):void {
trace("index: "+evt.currentTarget.data.btnIndex);
   }

regards,
Muzak

- Original Message - 
From: "dougco2000" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 30, 2007 8:43 AM
Subject: [flexcoders] passing data to an EventListener


I'm creating a number of buttons programmatically and I'd like to have
a unique value passed along to a function when each one is clicked.

So if I am doing something like:

for (i=0;i<10;i++) {
  b = new Button();
  b.y = offset;
  b.label = "click me";
  b.tooltip = "button "+i;
  b.addEventListener(MouseEvent.CLICK, butSelect);
  addChild(b);
  offset+=20;
}

And I want to have, let's say, "i" passed along to the "butSelect"
function, how is that done? I humored myself and tried doing
butSelect(i) but of course the mouseEvent is passed and you're not
allowed to provide any parameters to the function.

Thanks!





[flexcoders] passing data to an EventListener

2007-03-29 Thread dougco2000
I'm creating a number of buttons programmatically and I'd like to have
a unique value passed along to a function when each one is clicked.

So if I am doing something like:

for (i=0;i<10;i++) {
  b = new Button();
  b.y = offset;
  b.label = "click me";
  b.tooltip = "button "+i;
  b.addEventListener(MouseEvent.CLICK, butSelect);
  addChild(b);
  offset+=20;
}

And I want to have, let's say, "i" passed along to the "butSelect"
function, how is that done? I humored myself and tried doing
butSelect(i) but of course the mouseEvent is passed and you're not
allowed to provide any parameters to the function.

Thanks!



RE: [flexcoders] Passing data from TitleWindow to application

2007-03-02 Thread Tracy Spratt
Simplest is to have your PopUp call a method on the Main app in the
closeDialog method.  I have an example of this on cflex.net.  But best
practice is probably to have the title window emit an event, and in the
handler, use event.target to get the value you want.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Friday, March 02, 2007 3:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing data from TitleWindow to application

 

I've attempted to model this after an Adobe example found here: 

http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html
<http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html> 

I'm trying to take that example and apply it to set the height of a 
control, based on logic in the TitleWindow popup. When you close the 
TitleWindow, I want the height value of the List to be updated.

FILE: test.mxml:


http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
layout="absolute" creationComplete="initApp()">














FILE: MyTitleWindow.mxml



http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 
title="Details" showCloseButton="true" close="closeDialog();">










 



[flexcoders] Passing data from TitleWindow to application

2007-03-02 Thread jmfillman
I've attempted to model this after an Adobe example found here: 

http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html

I'm trying to take that example and apply it to set the height of a 
control, based on logic in the TitleWindow popup. When you close the 
TitleWindow, I want the height value of the List to be updated.

FILE: test.mxml:


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
















FILE: MyTitleWindow.mxml



http://www.adobe.com/2006/mxml"; 
title="Details" showCloseButton="true" close="closeDialog();">












[flexcoders] Passing data between JavaScript and Flex apps via FABridge (Question!)

2007-02-19 Thread Private Romeo
I am trying to build a simple sample which shows how (xml) data gets passed
via JavaScript to a Flex application where it is bound to a Flex Charting
control. However, I am stuck at the data passing part.

 

Here is the simple Flex Charting MXML Application:

 



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

   

   

 

   

   

 



   January

   1000

   3





   February

   1200

   5



 

   

   

 

 



   



 

 

   



 

Basically it draws a column chart and initially binds it to data delivered
by the mx:Model with id "sampleData".

The JavaScript function called on a click of an HTML Button looks something
like this:

 

function updateData() {

var flexApp = FABridge.flash.root();

   var newData =
"January12005February10003";

   flexApp.changeData(newData);

}

 

Obviously I am trying to pass XML data to the Flex application where the
data binding is changed and the chart should update. The change of the data
provider does work. Once the HTML Button gets clicked, the chart clears, so
it does NOT show the new data.

 

I assume there is something wrong with the data types I am passing around.
Can anybody provide me with the final aha experience?!

 

Thanks.

R.

 

<>

Re: [flexcoders] Passing data from JSP to Flex

2006-08-28 Thread e baggg



Anas-  Please see the HTTPService class. This is the code from the API docs. The "url" attribute would the URL link to your server side java Delegate. If you are using FDS (Flex Data Services), then you can actually return your java domain objects, otherwise, you'll have to return XML or Strings.Notice how the Datagrid is bound to the XML that the httpservice returns : feedRequest.lastResult creationComplete="feedRequest.send();">id="feedRequest" url="" useProxy="false" />paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">dataProvider="{feedRequest.lastResult.rss.channel.item}">Anas Mughal
 <[EMAIL PROTECTED]> wrote: I am new to Flex. Could someone help me with the following question.     We have a struts-based application that we are gradually porting over to Flex. Currently, the user authentication (login screen) is done via a JSP page. A new module of the application is wrriten in Flex.     We would like to pass the logged-in user information to Flex. How should we do that?     Thank you very much for your kind assistance. 
 --  Anas MughalGet your email and more, right on the  new Yahoo.com
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.
__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] Passing data from JSP to Flex

2006-08-25 Thread Seth Hodgson
Hi Anas,

After you've logged in via your JSP login page you'll have an authenticated 
HttpSession on the server. If you then visit an mxml app hosted within the same 
web application (under the same context root) any remoting/messaging/data 
service interaction the mxml app has with the server will use this same 
authenticated session as long as the mxml app is contacting the server over an 
AMF or HTTP channel.

If you want to display specific info about the logged in user in the mxml app, 
the simplest route would be to use RemoteObject to request it from the server. 
You'd just need to write a simple POJO that looked up the info you wanted from 
the current authenticated server session.

Best,
Seth 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anas 
Mughal
Sent: Thursday, August 24, 2006 8:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing data from JSP to Flex

I am new to Flex. Could someone help me with the following question.
 
We have a struts-based application that we are gradually porting over to Flex. 
Currently, the user authentication (login screen) is done via a JSP page. A new 
module of the application is wrriten in Flex.
 
We would like to pass the logged-in user information to Flex. How should we do 
that?
 
Thank you very much for your kind assistance.
--
Anas Mughal
  

Get your email and more, right on the new Yahoo.com 
 


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

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

<*> 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] Passing data from JSP to Flex

2006-08-24 Thread Anas Mughal



I am new to Flex. Could someone help me with the following question.     We have a struts-based application that we are gradually porting over to Flex. Currently, the user authentication (login screen) is done via a JSP page. A new module of the application is wrriten in Flex.     We would like to pass the logged-in user information to Flex. How should we do that?     Thank you very much for your kind assistance.  --  Anas Mughal 
		Get your email and more, right on the  new Yahoo.com 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] passing data jsp to mxml using flex 2

2006-08-24 Thread sas_dbest
I have jsp page i want ro pass data from that jsp page to an mxml file.
how do i do that?
If anybody can come up with a sniplet.
thank you





--
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] passing data to a datagrid

2006-08-09 Thread Tracy Spratt












In general terms, build an ArrayCollection
from the data you want to pass, and assign that ArrayCollection to the
dataprovider property of the second grid.

 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of s_hernandez01
Sent: Wednesday, August 09, 2006
9:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing data
to a datagrid



 







Hey Flexers, 

I am trying to send specific data from a datagrid to another datagrid
and am having trouble with my actionscript. I can manage to send data
if the index is selected, but I only want to send certain data to the
other datagrid. Can anyone help? Here is what I have so far...

http://www.adobe.com/2006/mxml"
layout="absolute" xmlns="*" creationComplete="init()">





xml"
useProxy="false"
result="(srv.lastResult.catalog.product)"/>


verticalAlign="middle" horizontalAlign="center">

"{srv.lastResult.catalog.product}"
id="srcGrid" itemClick="init()">




width="300"/>





/>




http://www.adobe.com/2006/mxml"
dataProvider="{myDP}">








width="300"/>








__._,_.___





--
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] passing data to a datagrid

2006-08-09 Thread s_hernandez01
Hey Flexers, 

I am trying to send specific data from a datagrid to another datagrid
and am having trouble with my actionscript.  I can manage to send data
if the index is selected, but I only want to send certain data to the
other datagrid.  Can anyone help?  Here is what I have so far...


http://www.adobe.com/2006/mxml";
layout="absolute" xmlns="*" creationComplete="init()">

























http://www.adobe.com/2006/mxml";
dataProvider="{myDP}">















--
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] passing data to CF and back

2006-08-04 Thread Devin Holloway
I have an ArrayCollection used as the dataProvider for a datagrid.
Submitting a form adds an item to the ArrayCollection (and therefore
the grid).

I'm also detecting changes to the ArrayCollection using the
CollectionEvent.COLLECTION_CHANGE event listener. When detecting an
"ADD", for example, I take the string value of one of the fields in
the newly added item, and pass it to a cfc method using RemoteObject.
The CFC does some processing and returns data.

In the RemoteObject ResultHandler, I want to use the returned data to
update the item in the grid. The problem is, I no longer know what
index of the ArrayCollection to update. It won't be the last item,
'cause users can continually add items to the queue.

Do I need to pass the index index of the new item to the cfc, and then
pass it back so I know which index to then update? Or is there a
better way? Even as users add items to the queue, it's possible that
they can remove an item from the queue before it gets processed by the
CFC... so it doesn't seem like passing the index to the cfc and back
is a good choice.

Or... is there a better way to architect this overall?





--
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] Passing data between seperate components

2006-06-06 Thread rgwilson26
I have an app where I have created a single control bar that allows 
the user to navigate through various components in my application. 
This is so that the navigiation is always located at the bottom of 
the screen and is visible at all times to the user without 
scrolling. I am doing this becuase some of my components are fairly 
large, and while the user scrolls down the bottom navigation will 
stay in view at all times.

My navigation component succesfully navigates through my components 
through a dispatched event with no problems. What I want to do is 
send the data in each component to a data model. However, I have not 
figured a way to do this without putting the control directly inside 
the component. What I need is a way in which the navigation 
component can some how tell each component to send its data to my 
data model each time a navigation click event is fired.

Simply put, I need a way for one component (my navigation component) 
to tell each individual component to send data to my data model. If 
anyone has worked with some sort of navigation bar that is used to 
direct the user from component to component while saving data along 
the way I would appreciate some advice on how to approach this.

Thanks in advance,

Ryan





 Yahoo! Groups Sponsor ~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/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] Passing data between two datagrids

2006-05-16 Thread Tracy Spratt



This line:
teamMemberObj.selectedTeamMembers = dgTeamMemberName.selectedItems[j].name;
just puts the last name into the variable.  It needs to be an array, like:
var aSelectedMembers:Array;
teamMemberObj.aSelectedMembers[j] = dgTeamMemberName.selectedItems[j].name;

Then in initPopup:
dgTeamMemberAssignment2.dataProvider = teamMemberObj.aSelectedMembers;

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rgwilson26
Sent: Tuesday, May 16, 2006 1:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing data between two datagrids

I am working on an app (Flex 1.5) that passes data from the main 
apps dataGrid and sends it to a popUp with another dataGrid. I have 
some logic that will select all the data in the main apps datagrid 
and send it to the popUp, but it only sends the last value in my 
main apps dataGrid..

Does anyone have any suggestions of how to send all the values of my 
main apps data grid to the popUps datagrid? I want the user to be 
able to open the pop up with all the main app datagrid values so 
they can add or delete them within the pop-up.

Below is some sample code. 

Thanks,


**
   Main component
***








   
  
   





**
   popUp component
***







  
    
  















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



  












[flexcoders] Passing data between two datagrids

2006-05-16 Thread rgwilson26



I am working on an app (Flex 1.5) that passes data from the main 
apps dataGrid and sends it to a popUp with another dataGrid. I have 
some logic that will select all the data in the main apps datagrid 
and send it to the popUp, but it only sends the last value in my 
main apps dataGrid..

Does anyone have any suggestions of how to send all the values of my 
main apps data grid to the popUps datagrid? I want the user to be 
able to open the pop up with all the main app datagrid values so 
they can add or delete them within the pop-up.

Below is some sample code. 

Thanks,


**
   Main component
***








   
  
   





**
   popUp component
***







  
    
  


















--
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] passing data to dynamically created TabNavigator children

2005-07-21 Thread Scott Barnes
Instead of using createTab(classRef, instanceName, label, icon) use
createChildWithStyles(classRef, instanceName, initObj)

ie:

customCreateTab(classRef:Function, instanceName:String, label:String,
icon:String, customParam:String):Void {

var initObj = new Object();
if(label != undefined) {
initObj.label = label;
}
if(icon != undefined) {
initObj.icon = icon;
}

if(customParm != undefined) {
initObj.customParam = customParam;
}

yourPathToTabNavigator.createChildWithStyles(classRef, instanceName, initObj);

}


I recommend you keep this in a method wrapper to safe guard yourself
down the track in the event createChildWithStyles() is deleted from
Flex 2.0, 3.0, 4.0 etc..  as  your now off the reservation so to
speak.







On 7/22/05, Cliff Meyers <[EMAIL PROTECTED]> wrote:
> I have a class that dynamically adds several components to a
> TabNavigator via AS.  I need to pass some data into these components.
> If they were static (ie, created with MXML) I'd just add an attribute
> and so some databinding.  How can I accomplish the same thing with AS?
>  There doesn't seem to be a way to assign an ID to a component when
> creating it so I'm not sure what the best way to access the component
> is using AS.  Thanks a lot!
> 
> 
> -Cliff
> 
> 
> --
> 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
> 
> 
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com


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

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

<*> 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] passing data to dynamically created TabNavigator children

2005-07-21 Thread Manuel Saint-Victor, M.D.
Cliff,

I had just been working on the same thing.  I have a partial solution that
I don't know if it will help.


function createSchoolTab(event){
var newSchool=event.target.selectedItem.label;

var
newTab:mx.core.UIObject=mx.core.UIObject(medSchoolsTabNav.createTab(SchoolView,'SchoolNameHere','The
Canvas'));
var selectedTab=medSchoolsTabNav.selectedChild=newTab;
selectedTab.label="label property";

}

Mani
-- 
"Live as if you were to die tomorrow. Learn as if you were to live forever."
  --  Mahatma Gandhi

On Thu, July 21, 2005 3:38 pm, Cliff Meyers said:
> I have a class that dynamically adds several components to a
>  TabNavigator via AS.  I need to pass some data into these components.
>  If they were static (ie, created with MXML) I'd just add an attribute
>  and so some databinding.  How can I accomplish the same thing with AS?
>   There doesn't seem to be a way to assign an ID to a component when
>  creating it so I'm not sure what the best way to access the component
>  is using AS.  Thanks a lot!
>
>
>  -Cliff
>
>
>   --
>  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 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] passing data to dynamically created TabNavigator children

2005-07-21 Thread Cliff Meyers
I have a class that dynamically adds several components to a
TabNavigator via AS.  I need to pass some data into these components. 
If they were static (ie, created with MXML) I'd just add an attribute
and so some databinding.  How can I accomplish the same thing with AS?
 There doesn't seem to be a way to assign an ID to a component when
creating it so I'm not sure what the best way to access the component
is using AS.  Thanks a lot!


-Cliff


--
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] Passing data from Html to Flex application.Urgent pls

2005-06-24 Thread Mike Chambers
You can find a list of browsers we have tested the kit on here:

http://www.osflash.org/doku.php?id=flashjs:docs:requirements

Let us (me) know if you find out it works in any other browsers.

mike chambers

[EMAIL PROTECTED]

On Jun 24, 2005, at 6:22 AM, Abdul Qabiz wrote:

> Scott,
>
> I think FlashJavaScript kit should work on all browsers that can run
> Flash Player. Because FlashJavaScript uses LocalConnection, so it
> doesn't call ActiveX/Plugin SetVariable(..)/GetVariable(..) method...
>
> It would be great, if someone can verify this by testing on all
> platforms/browsers. Probably a survey is required...
>
>
> -abdul
>
> -Original Message-
> From: flexcoders@yahoogroups.com  
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Scott Barnes
> Sent: Friday, June 24, 2005 6:20 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Passing data from Html to Flex
> application.Urgent pls
>
> Hi Nithya,
>
> Your best bet is to implement the
> http://weblogs.macromedia.com/flashjavascript/ mind you its a browser
> limited only situation as getting JavaScript --> FLASH is umm yeah,
> dooable in most mainstream browser versions but not 100% fool proof.
>
> On 6/11/05, nithya karthik <[EMAIL PROTECTED]> wrote:
>
>>
>> hai,
>>  I have a flex application with a tilelist of images. On click of
>>
> each
>
>> image takes me to a html page which has some details regarding the
>>
> image. I
>
>> have a button on each html page say"add" then it must add the
>>
> particaular
>
>> item to a datagri\d in my flex application.. how should i pass the
>>
> data from
>
>> html page to flex application.? please help me with the code to do
>>
> this. i
>
>> am adding the code of mine below.
>>
>> Mxml application:
>> 
>> > xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
>> creationComplete="iFrame.visible=true">
>>
>>  
>> 
>> > panelBorderStyle="roundCorners">
>>
>> > dataProvider="{catalog.product}"
>> width="100%"
>> height="100%"
>> cellRenderer="Thumbnail"
>> itemWidth="120"
>> itemHeight="108"
>> change="iFrame.source=tile.selectedItem.path"/>
>>
>> 
>> >
> marginTop="1"
>
>> marginBottom="1"  marginLeft="1" marginRight="1">
>> 
>> 
>> > selected="true" click="iFrame.visible=cbVisible.selected"/>
>> 
>> 
>> 
>> 
>>
>> Html page which gets loaded during click of the first image in
>>
> tileList is:
>
>> 
>> 
>> 
>
>> Product Detail
>> 
>> 
>> 
>>  
>> 
>> 
>> 
>>
>> Say i have a datagrid in the panel of the flex application then on
>>
> click of
>
>> the button "add" in the html page it must add the item(in tile list,
>>
> on
>
>> click of which the html page opended) to the datagrid.. how should i
>>
> do it?
>
>> please help.. It needs quick solution please..
>>
>> thanks,
>> nithya
>>
>> Send instant messages to your online friends
>>
> http://uk.messenger.yahoo.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 the Yahoo! Terms of Service.
>>
>
>
> -- 
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com ("Waiting for FLEX NCL to arrive")
>
>
> --
> 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
>
>
>
>
>
>
>
>



--
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] Passing data from Html to Flex application.Urgent pls

2005-06-24 Thread Scott Barnes
heh, i'm betting you are 99.9% correct but those darn browsers have a
habit of saying one thing and doing another heheh.

Ditto on that request though as it has caught my interest for a
side-project ... *cough* MM/Adobe should really come up with a browser
and save us all from temptation and deliver us from evil. :)


On 6/24/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote:
> Scott,
> 
> I think FlashJavaScript kit should work on all browsers that can run
> Flash Player. Because FlashJavaScript uses LocalConnection, so it
> doesn't call ActiveX/Plugin SetVariable(..)/GetVariable(..) method...
> 
> It would be great, if someone can verify this by testing on all
> platforms/browsers. Probably a survey is required...
> 
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Scott Barnes
> Sent: Friday, June 24, 2005 6:20 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Passing data from Html to Flex
> application.Urgent pls
> 
> Hi Nithya,
> 
> Your best bet is to implement the
> http://weblogs.macromedia.com/flashjavascript/ mind you its a browser
> limited only situation as getting JavaScript --> FLASH is umm yeah,
> dooable in most mainstream browser versions but not 100% fool proof.
> 
> On 6/11/05, nithya karthik <[EMAIL PROTECTED]> wrote:
> >
> > hai,
> >  I have a flex application with a tilelist of images. On click of
> each
> > image takes me to a html page which has some details regarding the
> image. I
> > have a button on each html page say"add" then it must add the
> particaular
> > item to a datagri\d in my flex application.. how should i pass the
> data from
> > html page to flex application.? please help me with the code to do
> this. i
> > am adding the code of mine below.
> >
> > Mxml application:
> > 
> >  > xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
> > creationComplete="iFrame.visible=true">
> >
> >  
> > 
> >  > panelBorderStyle="roundCorners">
> >
> >  > dataProvider="{catalog.product}"
> > width="100%"
> > height="100%"
> > cellRenderer="Thumbnail"
> > itemWidth="120"
> > itemHeight="108"
> > change="iFrame.source=tile.selectedItem.path"/>
> >
> > 
> >  marginTop="1"
> > marginBottom="1"  marginLeft="1" marginRight="1">
> > 
> > 
> >  > selected="true" click="iFrame.visible=cbVisible.selected"/>
> > 
> > 
> > 
> > 
> >
> > Html page which gets loaded during click of the first image in
> tileList is:
> > 
> > 
> > 
> > Product Detail
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> >
> > Say i have a datagrid in the panel of the flex application then on
> click of
> > the button "add" in the html page it must add the item(in tile list,
> on
> > click of which the html page opended) to the datagrid.. how should i
> do it?
> > please help.. It needs quick solution please..
> >
> > thanks,
> > nithya
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.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 the Yahoo! Terms of Service.
> 
> 
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com ("Waiting for FLEX NCL to arrive")
> 
> 
> --
> 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
> 
> 
> 
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com ("Waiting for FLEX NCL to arrive")


--
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] Passing data from Html to Flex application.Urgent pls

2005-06-24 Thread Abdul Qabiz
Scott,

I think FlashJavaScript kit should work on all browsers that can run
Flash Player. Because FlashJavaScript uses LocalConnection, so it
doesn't call ActiveX/Plugin SetVariable(..)/GetVariable(..) method...

It would be great, if someone can verify this by testing on all
platforms/browsers. Probably a survey is required...


-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Barnes
Sent: Friday, June 24, 2005 6:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Passing data from Html to Flex
application.Urgent pls

Hi Nithya,

Your best bet is to implement the
http://weblogs.macromedia.com/flashjavascript/ mind you its a browser
limited only situation as getting JavaScript --> FLASH is umm yeah,
dooable in most mainstream browser versions but not 100% fool proof.

On 6/11/05, nithya karthik <[EMAIL PROTECTED]> wrote:
>  
> hai, 
>  I have a flex application with a tilelist of images. On click of
each
> image takes me to a html page which has some details regarding the
image. I
> have a button on each html page say"add" then it must add the
particaular
> item to a datagri\d in my flex application.. how should i pass the
data from
> html page to flex application.? please help me with the code to do
this. i
> am adding the code of mine below. 
>   
> Mxml application: 
>  
>  xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
> creationComplete="iFrame.visible=true"> 
>
>  
>  
>  panelBorderStyle="roundCorners">
>  
>  dataProvider="{catalog.product}"
> width="100%"
> height="100%"
> cellRenderer="Thumbnail"
> itemWidth="120"
> itemHeight="108"
> change="iFrame.source=tile.selectedItem.path"/> 
>  
>  
>  marginBottom="1"  marginLeft="1" marginRight="1">
> 
> 
>  selected="true" click="iFrame.visible=cbVisible.selected"/>
> 
>  
>  
>  
>   
> Html page which gets loaded during click of the first image in
tileList is: 
> 
> 
> 
> Product Detail
>  
> 
> 
>  
> 
> 
>  
>   
> Say i have a datagrid in the panel of the flex application then on
click of
> the button "add" in the html page it must add the item(in tile list,
on
> click of which the html page opended) to the datagrid.. how should i
do it?
> please help.. It needs quick solution please.. 
>   
> thanks, 
> nithya
> 
> Send instant messages to your online friends
http://uk.messenger.yahoo.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 the Yahoo! Terms of Service. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com ("Waiting for FLEX NCL to arrive")


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

<*> 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] Passing data from Html to Flex application.Urgent pls

2005-06-24 Thread Scott Barnes
Hi Nithya,

Your best bet is to implement the
http://weblogs.macromedia.com/flashjavascript/ mind you its a browser
limited only situation as getting JavaScript --> FLASH is umm yeah,
dooable in most mainstream browser versions but not 100% fool proof.

On 6/11/05, nithya karthik <[EMAIL PROTECTED]> wrote:
>  
> hai, 
>  I have a flex application with a tilelist of images. On click of each
> image takes me to a html page which has some details regarding the image. I
> have a button on each html page say"add" then it must add the particaular
> item to a datagri\d in my flex application.. how should i pass the data from
> html page to flex application.? please help me with the code to do this. i
> am adding the code of mine below. 
>   
> Mxml application: 
>  
>  xmlns:mx="http://www.macromedia.com/2003/mxml"; xmlns="*"
> creationComplete="iFrame.visible=true"> 
>
>  
>  
>  panelBorderStyle="roundCorners">
>  
>  dataProvider="{catalog.product}"
> width="100%"
> height="100%"
> cellRenderer="Thumbnail"
> itemWidth="120"
> itemHeight="108"
> change="iFrame.source=tile.selectedItem.path"/> 
>  
>  
>  marginBottom="1"  marginLeft="1" marginRight="1">
> 
> 
>  selected="true" click="iFrame.visible=cbVisible.selected"/>
> 
>  
>  
>  
>   
> Html page which gets loaded during click of the first image in tileList is: 
> 
> 
> 
> Product Detail
>  
> 
> 
>  
> 
> 
>  
>   
> Say i have a datagrid in the panel of the flex application then on click of
> the button "add" in the html page it must add the item(in tile list, on
> click of which the html page opended) to the datagrid.. how should i do it?
> please help.. It needs quick solution please.. 
>   
> thanks, 
> nithya
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.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 the Yahoo! Terms of Service. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com ("Waiting for FLEX NCL to arrive")


--
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] passing data from jsp page to flex app

2005-06-12 Thread nithya karthik



Hai,
   I tried ur code but item is not getting added to the cart. I dont understand the reason. please can u help?Abdul Qabiz <[EMAIL PROTECTED]> wrote:


Hi Nithya,
 
Both of Flex applications can communicate using LocalConnection. See the modified code below:
 
 
1) ##app.mxml##
 


http://www.macromedia.com/2003/mxml" xmlns="*" initialize="onAppInit()"    creationComplete="iFrame.visible=true">
   
    
        
        dataProvider="{catalog.product}"    width="100%"    height="100%"    cellRenderer="Thumbnail"    itemWidth="120"    itemHeight="108" change="iFrame.source=tile.selectedItem.path"/>
                             
                        
    

 
 
 
2) ##popup.jsp##
 

<%@ taglib uri="FlexTagLib" prefix="mm"%>Product Detail
http://www.macromedia.com/2003/mxml" initialize="onAppInit()">     var cart;    var _lc:LocalConnection;      function onAppInit()    {    _lc = new LocalConnection();       
 }    function addRow() {    //if (name.text != "") cart.addItem( {name: name.text, orderno: orderno.text} );    if(name.text != "") _lc.send("cartConnection", "addItemToCart", {name: name.text, orderno: orderno.text});    }   
   
 
 
 
Also check out LocalConnection documentation for more help.
 
Hope that helps...
 
-abdul
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthikSent: Saturday, June 11, 2005 12:04 PMTo: flexcodersSubject: [flexcoders] passing data from jsp page to flex app

hai, i have a flex appl that would call a jsp page. in the jsp page i have an embedded mxml witha button "add". when i trigger that it must get added to my mxml page outside jsp page. how to do this? my code is as below:
 
mxml:

http://www.macromedia.com/2003/mxml" xmlns="*"    creationComplete="iFrame.visible=true">
    
        
        dataProvider="{catalog.product}"    width="100%"    height="100%"    cellRenderer="Thumbnail"    itemWidth="120"    itemHeight="108" change="iFrame.source=tile.selectedItem.path"/>
                             
                        
    

 
Jsp code:
<%@ taglib uri="FlexTagLib" prefix="mm"%>Product Detail
http://www.macromedia.com/2003/mxml">  var cart;    function addRow() {    if (name.text != "") cart.addItem( {name: name.text, orderno: orderno.text} );    }   
   
 
When i click on the add button in jsp page it should get added in my flex datagrid outisde the jsp page. I dont know how i shoule refer to the grid. pls help.
Send instant messages to your online friends http://uk.messenger.yahoo.com Send instant messages to your online friends http://uk.messenger.yahoo.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 the Yahoo! Terms of Service.










RE: [flexcoders] passing data from jsp page to flex app

2005-06-11 Thread Abdul Qabiz





Hi Nithya,
 
Both of Flex applications can communicate using 
LocalConnection. See the modified code below:
 
 
1) ##app.mxml##
 


http://www.macromedia.com/2003/mxml" 
xmlns="*" initialize="onAppInit()"    
creationComplete="iFrame.visible=true">
 
  
    
    
    
        
dataProvider="{catalog.product}"    
width="100%"    
height="100%"    
cellRenderer="Thumbnail"    
itemWidth="120"    itemHeight="108" 
change="iFrame.source=tile.selectedItem.path"/>
     
 
    
    
    
    
   
    

    
    
    
    
    
    

    

 
 
 
2) ##popup.jsp##
 

<%@ taglib uri="FlexTagLib" 
prefix="mm"%>Product 
Detail
http://www.macromedia.com/2003/mxml" 
initialize="onAppInit()"> 
    var 
cart;    var _lc:LocalConnection;  
    function 
onAppInit()    
{    _lc = 
new 
LocalConnection();    
    
}    function 
addRow() {    
//if (name.text != "") cart.addItem( {name: name.text, orderno: orderno.text} 
);    
if(name.text != "") _lc.send("cartConnection", "addItemToCart", {name: 
name.text, orderno: 
orderno.text});    
}   

   
 
 
 
Also check out LocalConnection documentation for more 
help.
 
Hope that helps...
 
-abdul
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of nithya 
karthikSent: Saturday, June 11, 2005 12:04 PMTo: 
flexcodersSubject: [flexcoders] passing data from jsp page to flex 
app

hai, i have a flex appl that would call a jsp page. in the jsp page i have 
an embedded mxml witha button "add". when i trigger that it must get added to my 
mxml page outside jsp page. how to do this? my code is as below:
 
mxml:

http://www.macromedia.com/2003/mxml" 
xmlns="*"    creationComplete="iFrame.visible=true">
    
        
        
dataProvider="{catalog.product}"    
width="100%"    
height="100%"    
cellRenderer="Thumbnail"    
itemWidth="120"    itemHeight="108" 
change="iFrame.source=tile.selectedItem.path"/>
     
 
    
    
    
    
   
    

        
    
    
    
    

    

 
Jsp code:
<%@ taglib uri="FlexTagLib" 
prefix="mm"%>Product 
Detail
http://www.macromedia.com/2003/mxml">  var 
cart;    function addRow() 
{    if 
(name.text != "") cart.addItem( {name: name.text, orderno: orderno.text} 
);    }  
 
   
 
When i click on the add button in jsp page it should get added in my flex 
datagrid outisde the jsp page. I dont know how i shoule refer to the grid. pls 
help.
Send instant messages to your online friends http://uk.messenger.yahoo.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 the Yahoo! Terms of Service.










[flexcoders] passing data from jsp page to flex app

2005-06-10 Thread nithya karthik



hai, i have a flex appl that would call a jsp page. in the jsp page i have an embedded mxml witha button "add". when i trigger that it must get added to my mxml page outside jsp page. how to do this? my code is as below:
 
mxml:

http://www.macromedia.com/2003/mxml" xmlns="*"    creationComplete="iFrame.visible=true">
    
        
        dataProvider="{catalog.product}"    width="100%"    height="100%"    cellRenderer="Thumbnail"    itemWidth="120"    itemHeight="108" change="iFrame.source=tile.selectedItem.path"/>
                             
                        
    

 
Jsp code:
<%@ taglib uri="FlexTagLib" prefix="mm"%>Product Detail
http://www.macromedia.com/2003/mxml">  var cart;    function addRow() {    if (name.text != "") cart.addItem( {name: name.text, orderno: orderno.text} );    }   
   
 
When i click on the add button in jsp page it should get added in my flex datagrid outisde the jsp page. I dont know how i shoule refer to the grid. pls help.Send instant messages to your online friends http://uk.messenger.yahoo.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 the Yahoo! Terms of Service.










[flexcoders] Passing data from Html to Flex application.Urgent pls

2005-06-10 Thread nithya karthik



hai,
 I have a flex application with a tilelist of images. On click of each image takes me to a html page which has some details regarding the image. I have a button on each html page say"add" then it must add the particaular item to a datagri\d in my flex application.. how should i pass the data from html page to flex application.? please help me with the code to do this. i am adding the code of mine below.
 
Mxml application:

http://www.macromedia.com/2003/mxml" xmlns="*"    creationComplete="iFrame.visible=true">
    
     
        dataProvider="{catalog.product}"    width="100%"    height="100%"    cellRenderer="Thumbnail"    itemWidth="120"    itemHeight="108" change="iFrame.source=tile.selectedItem.path"/>
 
                        
    

 
Html page which gets loaded during click of the first image in tileList is:
Product Detail
 
 
Say i have a datagrid in the panel of the flex application then on click of the button "add" in the html page it must add the item(in tile list, on click of which the html page opended) to the datagrid.. how should i do it? please help.. It needs quick solution please..
 
thanks,
nithyaSend instant messages to your online friends http://uk.messenger.yahoo.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 the Yahoo! Terms of Service.