Re: [flexcoders] Newbie Question: Library Path for Using a 3rd-party utility

2011-08-07 Thread dorkie dork from dorktown
BTW Welcome to Flex! :)

On Sun, Aug 7, 2011 at 6:59 AM, tacman1123  wrote:

> **
>
>
> I'm new to Flex, I've been reading the Adobe Training from the Source book,
> but am stuck on a simple setup question.
>
> I want to integrate SQLite, and figured I'd use probinson's sqlite
> utilities (https://github.com/probertson/air-sqlite) to manage the
> connections.
>
> My question is where do I download this set of utilities so that I can
> incorporate them into other projects? I'm modifying the test application
> FlexGrocer to store the inventory locally rather than via the web, but I
> don't want to copy the files into the FlexGrocer/src directory, but probably
> somewhere else that can be more easily used by other projects.
>
> I suspect there's a path I need to set somewhere for where to look for the
> libraries, and then I can just use
>
> import com.probertson.data.QueuedStatement;
> import com.probertson.data.SQLRunner;
>
> In the Project Properties, there's an option for adding a source path --
> should I use that? Or import the swc file that's available from git? If I do
> this, how can I then apply these settings to my project, is that something I
> need to do manually each time I set up a new project?
>
> Thanks, sorry for such basic questions!
>
> Tac
>
>  
>


Re: [flexcoders] Newbie Question: Library Path for Using a 3rd-party utility

2011-08-07 Thread dorkie dork from dorktown
Hi Tac,

First setup your library project. Then go back to your original project and
go into Properties > Flex Build Path and click Add Project. A dialog will
display available library projects for you to choose. Select your new
library and click OK. The workspace will rebuild if it doesn't click Project
> Clean. From now on your original project will be able to access classes in
your library project. Note you may need to open the library project when
working in your main project.

On Sun, Aug 7, 2011 at 6:59 AM, tacman1123  wrote:

> **
>
>
> I'm new to Flex, I've been reading the Adobe Training from the Source book,
> but am stuck on a simple setup question.
>
> I want to integrate SQLite, and figured I'd use probinson's sqlite
> utilities (https://github.com/probertson/air-sqlite) to manage the
> connections.
>
> My question is where do I download this set of utilities so that I can
> incorporate them into other projects? I'm modifying the test application
> FlexGrocer to store the inventory locally rather than via the web, but I
> don't want to copy the files into the FlexGrocer/src directory, but probably
> somewhere else that can be more easily used by other projects.
>
> I suspect there's a path I need to set somewhere for where to look for the
> libraries, and then I can just use
>
> import com.probertson.data.QueuedStatement;
> import com.probertson.data.SQLRunner;
>
> In the Project Properties, there's an option for adding a source path --
> should I use that? Or import the swc file that's available from git? If I do
> this, how can I then apply these settings to my project, is that something I
> need to do manually each time I set up a new project?
>
> Thanks, sorry for such basic questions!
>
> Tac
>
>  
>


[flexcoders] Newbie Question: Library Path for Using a 3rd-party utility

2011-08-07 Thread tacman1123
I'm new to Flex, I've been reading the Adobe Training from the Source book, but 
am stuck on a simple setup question.

I want to integrate SQLite, and figured I'd use probinson's sqlite utilities 
(https://github.com/probertson/air-sqlite) to manage the connections.

My question is where do I download this set of utilities so that I can 
incorporate them into other projects?  I'm modifying the test application 
FlexGrocer to store the inventory locally rather than via the web, but I don't 
want to copy the files into the FlexGrocer/src directory, but probably 
somewhere else that can be more easily used by other projects.  

I suspect there's a path I need to set somewhere for where to look for the 
libraries, and then I can just use 

import com.probertson.data.QueuedStatement;
import com.probertson.data.SQLRunner;

In the Project Properties, there's an option for adding a source path -- should 
I use that? Or import the swc file that's available from git?  If I do this, 
how can I then apply these settings to my project, is that something I need to 
do manually each time I set up a new project?

Thanks, sorry for such basic questions!

Tac



[flexcoders] newbie q: transition from flash to flex (long-ish)

2010-01-27 Thread ulrich
Hi - 

I have a question how to approach a problem the flex way:

I have a quiz, I present a question with 4 answers in a panel.

In flash I would:

- create a custom component (logic and visual): new Component().

- pass a VO to init display and logic of component
- add component to display list.
- component knows when a selection was made: dispatches event
- data model keeps track of results on main
- custom component gets destroyed.

- new q gets presented: step 1.


I know I could do it exactly like this in flex, but what would be Best 
Practices to do this in Flex?

Thank you for your help!

U.



Re: [SPAM] [flexcoders] Newbie question - 'tear-off' panels?

2009-12-07 Thread flexnewbie999

Thanks! I'll give it a try...
--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Set visible="false"?  Might also need to set includeInLayout="false".  Or
> remove the component from the display list (removeChild()) or from the
> dataProvider, depending on the details of your implementation.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of flexnewbie999
> Sent: Monday, December 07, 2009 2:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [SPAM] [flexcoders] Newbie question - 'tear-off' panels?
> 
>  
> 
>   
> 
> Hi,
> I want to implement a front-end where there are multiple 'pages' that can be
> dragged off of the screen and made invisible with another 'page' underneath
> it that then becomes visible. I'm familiar with dragging and dropping but
> the problem I run into is that when the item is dropped the target that the
> item is dropped into is still visible; I want the item that is dropped to be
> torn off of the screen. I might be missing something very simple since I'm
> new at this. I'd appreciate it if someone could point me in the right
> direction.
> 
> Thanks!
>




RE: [SPAM] [flexcoders] Newbie question - 'tear-off' panels?

2009-12-07 Thread Tracy Spratt
Set visible="false"?  Might also need to set includeInLayout="false".  Or
remove the component from the display list (removeChild()) or from the
dataProvider, depending on the details of your implementation.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexnewbie999
Sent: Monday, December 07, 2009 2:44 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Newbie question - 'tear-off' panels?

 

  

Hi,
I want to implement a front-end where there are multiple 'pages' that can be
dragged off of the screen and made invisible with another 'page' underneath
it that then becomes visible. I'm familiar with dragging and dropping but
the problem I run into is that when the item is dropped the target that the
item is dropped into is still visible; I want the item that is dropped to be
torn off of the screen. I might be missing something very simple since I'm
new at this. I'd appreciate it if someone could point me in the right
direction.

Thanks!





[flexcoders] Newbie question - 'tear-off' panels?

2009-12-07 Thread flexnewbie999
Hi,
I want to implement a front-end where there are multiple 'pages' that can be 
dragged off of the screen and made invisible with another 'page' underneath it 
that then becomes visible. I'm familiar with dragging and dropping but the 
problem I run into is that when the item is dropped the target that the item is 
dropped into is still visible; I want the item that is dropped to be torn off 
of the screen. I might be missing something very simple since I'm new at this. 
I'd appreciate it if someone could point me in the right direction.

Thanks!



Re: [flexcoders] newbie question : putting a semicolon in a mxml property

2009-07-12 Thread Sam Lai
Not if there is just a single line of script within the quotation
marks. If you wanted to do something like this though,



Then you do need the semi-colons. Most people just have the semi-colon
there out of habit from when they write AS in .as files or within the
 tags (they are needed in those cases).

2009/7/12 ew6014 :
> hi guys
>
> i was reading the flex documentation and i noticed a ; inside a mxml property
>
> let me give you an example
>
> 
>
> ive tried removing the semicolon ;  and also tried leaving it there and there 
> was no error of any kind.
>
> so im just wondering if this will cause issues or is something going on that 
> i do not know
>
> thank you guys in advance
>
>
>
> 
>
> --
> 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
>
>
>
>


[flexcoders] newbie question : putting a semicolon in a mxml property

2009-07-11 Thread ew6014
hi guys

i was reading the flex documentation and i noticed a ; inside a mxml property

let me give you an example



ive tried removing the semicolon ;  and also tried leaving it there and there 
was no error of any kind.

so im just wondering if this will cause issues or is something going on that i 
do not know

thank you guys in advance



Re: [flexcoders] Newbie questions

2009-06-04 Thread Pedro Sena
Take a look at data binding

http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_1.html

Regards,

PS

On Thu, Jun 4, 2009 at 6:33 PM, markfu...@rocketmail.com <
markfu...@rocketmail.com> wrote:

>
>
> I have been trying to wrap my head around flex/actionscript for several
> weeks now...I'm a little slow. I'm using Coldfusion as an application server
> with Flash Remoting.
>
> So far, I've been able to get info from the database to a datagrid and
> after pulling several hundred hairs out of my head, figured out how to get a
> new record into the database from flex...with one small caveat...in the code
> below, I cannot un-comment the last line
> (//dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;)as it causes an
> error...trying to put text into a numeric field (the value is a number)...Do
> I have to cast it as a number or something?
>
> private function addEditItemInsertHandler():void
> {
> var dataEstimateFixedItem:EstimatesFixedItems = new EstimatesFixedItems();
>
>
>
> dataEstimateFixedItem.ConstructionPhase =
> ConstructionPh.selectedItem.ConstructionPhaseId;
> dataEstimateFixedItem.JobEstimateType =
> JobEstimateType.selectedItem.JobTypeId;
> dataEstimateFixedItem.ItemType = ItemType.selectedItem.ItemTypeId;
> dataEstimateFixedItem.DefaultUnitType =
> DefaultUnitType.selectedItem.DefaultUnitTypeId;
> dataEstimateFixedItem.ItemName = ItemName.text;
> dataEstimateFixedItem.ItemDescription= ItemDescription.text;
>
> //dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;
>
>
> EstimatesFixedItemsGateway.save(dataEstimateFixedItem);
> AddForm.height = 5;
>
>
> }
>
> uh...the code looks a little butt ugly...is there a better way to attach
> code?
>
> Thanks,
>
> Mark Fuqua
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Newbie questions

2009-06-04 Thread markfu...@rocketmail.com
I have been trying to wrap my head around flex/actionscript for several weeks 
now...I'm a little slow.  I'm using Coldfusion as an application server with 
Flash Remoting.

So far, I've been able to get info from the database to a datagrid and after 
pulling several hundred hairs out of my head, figured out how to get a new 
record into the database from flex...with one small caveat...in the code below, 
I cannot un-comment the last line (//dataEstimateFixedItem.PricePerUnit = 
PricePerUnit.text;)as it causes an error...trying to put text into a numeric 
field (the value is a number)...Do I have to cast it as a number or something?

private function addEditItemInsertHandler():void
{
var dataEstimateFixedItem:EstimatesFixedItems = new 
EstimatesFixedItems();



dataEstimateFixedItem.ConstructionPhase = 
ConstructionPh.selectedItem.ConstructionPhaseId;
dataEstimateFixedItem.JobEstimateType = 
JobEstimateType.selectedItem.JobTypeId;
dataEstimateFixedItem.ItemType = 
ItemType.selectedItem.ItemTypeId;
dataEstimateFixedItem.DefaultUnitType = 
DefaultUnitType.selectedItem.DefaultUnitTypeId;
dataEstimateFixedItem.ItemName = ItemName.text;
dataEstimateFixedItem.ItemDescription= 
ItemDescription.text;

//dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;


EstimatesFixedItemsGateway.save(dataEstimateFixedItem);
AddForm.height = 5;


}

uh...the code looks a little butt ugly...is there a better way to attach code? 

Thanks,

Mark Fuqua



RE: [flexcoders] Newbie Question - databinding an arrayCollection to a List Control

2009-05-25 Thread Tracy Spratt
When you set a property of a dataProvider item directly, like:

absentee.selectedItem.status = "absent";

the events to update the UI are not dispatched.

 

You can either use the collection API, like setItemAt(), or call
itemUpdated().

absentee.selectedItem.status = "absent";

absentee..dataProvider.updateItem(absentee.selectedItem);

 

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of hoytlee2000
Sent: Sunday, May 24, 2009 4:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie Question - databinding an arrayCollection to a
List Control

 






Hello,

I've been reading a lot of information on databinding and I'm still a little
confused on how to execute it and when is it necessary.

I have a simple list control of names that I create by adding to an array
collection that I use as the List's dataprovider. when I add a name to the
array the list updates automatically as I would suspect

I also have associated with the names is a status attribute (absent or
present) that I use to determine which icon to display next to the name
using IconFunction property of the List control. I have a contextual menu
bound to the list control that allows the user to right click on a name to
change the status and thus the icon.

This is where I have the problem and can't figure out what to do. The
contextual menu works in that the status will change in the arraycollection
(i check and see that it does) however I can't get the iconFunction to
reevaluate the new value to display the proper icon.

I've read in many postings or similar examples on line that I have to create
an event listener and an event for the collection change event. This is
where I am a little fuzzy in the execution - assuming this is teh correct
solution. I've also peripherally read about setter and getter functions but
I don't even know where to begin with this aspect.

I would appreciate any help with this. here is what I have in terms of code:

for my List Control:



for my arrayCollection:

[Bindable]
public var absentItems:ArrayCollection = new ArrayCollection();

I add to the arrayCollection:

private function addAbsentee():void {
var tmp:Object = new Object();
tmp = ({name:ac.selectedItem.name, status:"absent"});
absentItems.addItem(tmp);
}

my iconFunction is just a switch statement that changes icons based on the
text value of status (either absent or present)

private function myIconFunction(item:Object):Class {
var value:String = item.status.toString();
switch(value) {
case "absent":
return Aicon;
break;
case "vacation":
return Vicon;
break;
case "late":
return Licon;
break; 
}
return null;
}

the contextual menu functions just changes the status for example:

private function makeAbsent(evt:ContextMenuEvent):void {
absentee.selectedItem.status = "absent";
}

1. I don't understand why the list updates when I update the arraycollection
with new items but not when I change a specific property of an array.

2. If I add and event do I add it to the arraycollection and the listener to
the List control, or is it vice-versa. Also what is the function/method that
I add to make the list control update the draw on the icon.

3. Is there a better way to do this, ie., use an xml format instead of a an
arraycollection? Is there an article with examples that is really clear
about explaining all this. I am confused as to some things I've read that
says xmlcollections and arraycollections are not good choices for
databinding.

Thanks!

be well,
hoyt





[flexcoders] Newbie Question - databinding an arrayCollection to a List Control

2009-05-24 Thread hoytlee2000
Hello,

I've been reading a lot of information on databinding and I'm still a little 
confused on how to execute it and when is it necessary.

I have a simple list control of names that I create by adding to an array 
collection that I use as the List's dataprovider.  when I add a name to the 
array the list updates automatically as I would suspect

I also have associated with the names is a status attribute (absent or present) 
that I use to determine which icon to display next to the name using 
IconFunction property of the List control.  I have a contextual menu bound to 
the list control that allows the user to right click on a name to change the 
status and thus the icon.

This is where I have the problem and can't figure out what to do.  The 
contextual menu works in that the status will change in the arraycollection (i 
check and see that it does) however I can't get the iconFunction to reevaluate 
the new value to display the proper icon.

I've read in many postings or similar examples on line that I have to create an 
event listener and an event for the collection change event.  This is where I 
am a little fuzzy in the execution - assuming this is teh correct solution.  
I've also peripherally read about setter and getter functions but I don't even 
know where to begin with this aspect.

I would appreciate any help with this.  here is what I have in terms of code:

for my List Control:



for my arrayCollection:

[Bindable]
public var absentItems:ArrayCollection = new ArrayCollection();

I add to the arrayCollection:

private function addAbsentee():void {
var tmp:Object = new Object();
tmp = ({name:ac.selectedItem.name, status:"absent"});
absentItems.addItem(tmp);
}

my iconFunction is just a switch statement that changes icons based on the text 
value of status (either absent or present)

private function myIconFunction(item:Object):Class {
var value:String = item.status.toString();
switch(value) {
case "absent":
   return Aicon;
   break;
case "vacation":
return Vicon;
break;
case "late":
return Licon;
break;  
}
return null;
}

the contextual menu functions just changes the status for example:

private function makeAbsent(evt:ContextMenuEvent):void {
absentee.selectedItem.status = "absent";
}


1.  I don't understand why the list updates when I update the arraycollection 
with new items but not when I change a specific property of an array.

2.  If I add and event do I add it to the arraycollection and the listener to 
the List control, or is it vice-versa.  Also what is the function/method that I 
add to make the list control update the draw on the icon.

3.  Is there a better way to do this, ie., use an xml format instead of a an 
arraycollection?  Is there an article with examples that is really clear about 
explaining all this.  I am confused as to some things I've read that says 
xmlcollections and arraycollections are not good choices for databinding.

Thanks!

be well,
hoyt



RE: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tracy Spratt
This metadata makes it available in mxml:

[Event(name="userSubmit", type="events.UserEvents")]

 

But the syntax UserEvents.USER_SUBMIT requires a contant in that class:

public class UserEvents extends Event

{

  public static const USER_SUBMIT:String = "userSubmit";

 

Using a constant like that just ensures you won't misspell "userSubmit".

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Monday, May 04, 2009 8:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Newbie question: Custom Components and Custom
Events

 






This is the entire UserEvents class as the example showed me how to build
it. I'm guessing that the declaration for my event is supposed to be in
here, but in the demo we actually created it in the component we were
loading. How and where do I add it to the UserEvents class and why does it
work when I call it from MXML but not from AS?

 

//File: UserEvents.as

package events

{

import flash.events.Event;  

import vo.User;

 

public class UserEvents extends Event

{

public var user:User;



public function UserEvents(type:String,
bubbles:Boolean=false, cancelable:Boolean=false)

{

super(type, bubbles, cancelable);

}



}

}

 

 

//Script Code from Component



[Event(name="userSubmit", type="events.UserEvents")]










-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





Re: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
This is the entire UserEvents class as the example showed me how to build
it. I'm guessing that the declaration for my event is supposed to be in
here, but in the demo we actually created it in the component we were
loading. How and where do I add it to the UserEvents class and why does it
work when I call it from MXML but not from AS?
//File: UserEvents.as
package events
{
import flash.events.Event;
import vo.User;

public class UserEvents extends Event
{
public var user:User;
 public function UserEvents(type:String, bubbles:Boolean=false,
cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}
 }
}


//Script Code from Component

[Event(name="userSubmit", type="events.UserEvents")]





-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


RE: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tracy Spratt
Yes, as Sam says.

 

Also, you could look in the UserEvents code to see what the value of that
constant is and use that string.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sam Lai
Sent: Monday, May 04, 2009 7:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Newbie question: Custom Components and Custom
Events

 






Looks like the USER_SUBMIT variable or constant in your UserEvents
class is not static, but you're accessing it in a static way.

They should be static, so add they keyword static before the var
keyword when you declare USER_SUBMIT and it should all work.

On 5/5/09, Alan Rother mailto:alan.rother%40gmail.com>
gmail.com> wrote:
> Hey All,
> I'm playing around with a super simple demo Simeon Bateman posted on his
> blog
> (http://blog.
<http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/>
simb.net/2009/05/01/flex-101-back-to-the-basics/)<http://blog.
<http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/>
simb.net/2009/05/01/flex-101-back-to-the-basics/>
>
> It's just a little tool designed to teach basic MVC / OO principles to
newbs
> like me. I've get what it's doing and why it works, now I'm trying to
extend
> on it.
>
>
> I'm trying to take this custom component and instead of displaying it in
the
> main app, open it in a pop up window.
>
> 
>
>
> I can get it to do that just fine, but I cannot get the custom event
> registered with the addEventListener. I get the following error message:
>
> 1119: Access of possibly undefined property USER_SUBMIT through a
reference
> with static type Class.
>
>
>
> Any thoughts? It works properly when I use it as is in MXML form, but not
> when I try to create the object using AS.
>
>
> private function openWindow():void {
> win = view.UserForm(PopUpManager.createPopUp(this, UserForm, false));
> PopUpManager.centerPopUp(win);
> win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);
> }
>
> --
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>

-- 
Sent from my mobile device





Re: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Sam Lai
Looks like the USER_SUBMIT variable or constant in your UserEvents
class is not static, but you're accessing it in a static way.

They should be static, so add they keyword static before the var
keyword when you declare USER_SUBMIT and it should all work.

On 5/5/09, Alan Rother  wrote:
> Hey All,
> I'm playing around with a super simple demo Simeon Bateman posted on his
> blog
> (http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/)
>
> It's just a little tool designed to teach basic MVC / OO principles to newbs
> like me. I've get what it's doing and why it works, now I'm trying to extend
> on it.
>
>
> I'm trying to take this custom component and instead of displaying it in the
> main app, open it in a pop up window.
>
> 
>
>
>  I can get it to do that just fine, but I cannot get the custom event
> registered with the addEventListener. I get the following error message:
>
> 1119: Access of possibly undefined property USER_SUBMIT through a reference
> with static type Class.
>
>
>
> Any thoughts? It works properly when I use it as is in MXML form, but not
> when I try to create the object using AS.
>
>
> private function openWindow():void {
> win = view.UserForm(PopUpManager.createPopUp(this, UserForm, false));
> PopUpManager.centerPopUp(win);
> win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);
> }
>
> --
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>

-- 
Sent from my mobile device


Re: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
>>>Did you import UserEvents?

Yep...


http://www.adobe.com/2006/mxml"; layout="vertical"
xmlns:local="*" xmlns:view="view.*">









-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


RE: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tracy Spratt
Did you import UserEvents?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Monday, May 04, 2009 6:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie question: Custom Components and Custom Events

 






Hey All,

 

I'm playing around with a super simple demo Simeon Bateman posted on his
blog (http://blog.
<http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/>
simb.net/2009/05/01/flex-101-back-to-the-basics/)

 

It's just a little tool designed to teach basic MVC / OO principles to newbs
like me. I've get what it's doing and why it works, now I'm trying to extend
on it.

 

 

I'm trying to take this custom component and instead of displaying it in the
main app, open it in a pop up window.

 



 

 

 I can get it to do that just fine, but I cannot get the custom event
registered with the addEventListener. I get the following error message:


1119: Access of possibly undefined property USER_SUBMIT through a reference
with static type Class.

 

 

 

Any thoughts? It works properly when I use it as is in MXML form, but not
when I try to create the object using AS.

 

 

private function openWindow():void {

win =
view.UserForm(PopUpManager.createPopUp(this, UserForm, false));

 
PopUpManager.centerPopUp(win);

 
win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);

}


-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





[flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
Hey All,
I'm playing around with a super simple demo Simeon Bateman posted on his
blog 
(http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/)

It's just a little tool designed to teach basic MVC / OO principles to newbs
like me. I've get what it's doing and why it works, now I'm trying to extend
on it.


I'm trying to take this custom component and instead of displaying it in the
main app, open it in a pop up window.




 I can get it to do that just fine, but I cannot get the custom event
registered with the addEventListener. I get the following error message:

1119: Access of possibly undefined property USER_SUBMIT through a reference
with static type Class.



Any thoughts? It works properly when I use it as is in MXML form, but not
when I try to create the object using AS.


private function openWindow():void {
win = view.UserForm(PopUpManager.createPopUp(this, UserForm, false));
PopUpManager.centerPopUp(win);
win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);
}

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


RE: [flexcoders] Newbie SOA question (maintaining login state)

2009-04-08 Thread Tracy Spratt
No more "normal" way with Flex than with html. Worse, really.  There are
just too many communication options, too many web server options and too
many degrees of secure.  Then the Flash Player weighs in with its own
restrictions on things like WebService headers and it just gets worse.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Michael Pengi
Sent: Wednesday, April 08, 2009 8:09 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Newbie SOA question (maintaining login state)

 







I'd be interested in hearing more about this. Isn't there a 'normal' way to
do this with flex? Maintaining login state would seem to be a basic
requirement for web apps. Just curious.

Tracy Spratt wrote:
> 
> I have a lot to learn about security, and had difficulty wading through
> all
> of the levels and options, so I devised my own programmatic solution.
> 
> When a user logs in from the Flex app (md5 hash on the password), I create
> a
> sessionId, store it in a hashtable in the .net app, and pass it back to
> the
> Flex app. The Flex app sends this token with each call. The server
> checks
> the passed in session id and compares the timestamp to the current time. 
> If
> it is within the timeout period specified, it updates the timestamp and
> authorizes the call. If authorization fails, the user must log in again.
> 
> I am certainly open to a better approach.
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> _ 
> 
> From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
On
> Behalf Of variableop
> Sent: Friday, April 03, 2009 4:07 PM
> To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: [flexcoders] Newbie SOA question
> 
> 
> 
> I would like to provide a solution to maintaining login state over
> multiple
> calls to my .NET web service layer. So basically, the user logs in, then
> stores a login "token" internally on the Flex side so that each web
> service
> call can be authenticated as being made by someone who has already "logged
> in" to the system. Does anyone have any ideas on how to approach this? My
> initial approach was to cache the user's username/password and
> authenticate
> on each web service call (Direct Authentication). I was told, for obvious
> reasons, that this is insecure method and requires database hit each call.
> I
> am trying to implement WSE 3.0 enabled web services on the .NET side. Is
> this an SSO problem, or should I be using STS/Brokered Authentication
> approach? We just started our upgrade to VS2008, so maybe I should just
> pursue WCF methods instead? Any experiences with this would be greatly
> appreciated.
> 
> TIA,
> 
> variable
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.
<http://www.nabble.com/Newbie-SOA-question-tp22875841p22962243.html>
com/Newbie-SOA-question-tp22875841p22962243.html
Sent from the FlexCoders mailing list archive at Nabble.com.





RE: [flexcoders] Newbie SOA question (maintaining login state)

2009-04-08 Thread Michael Pengi

I'd be interested in hearing more about this. Isn't there a 'normal' way to
do this with flex? Maintaining login state would seem to be a basic
requirement for web apps. Just curious.


Tracy Spratt wrote:
> 
> I have a lot to learn about security, and had difficulty wading through
> all
> of the levels and options, so I devised my own programmatic solution.
> 
> When a user logs in from the Flex app (md5 hash on the password), I create
> a
> sessionId, store it in a hashtable in the .net app, and pass it back to
> the
> Flex app.  The Flex app sends this token with each call.  The server
> checks
> the passed in session id and compares the timestamp to the current time. 
> If
> it is within the timeout period specified, it updates the timestamp and
> authorizes the call.  If authorization fails, the user must log in again.
> 
> I am certainly open to a better approach.
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of variableop
> Sent: Friday, April 03, 2009 4:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Newbie SOA question
> 
>  
> 
> I would like to provide a solution to maintaining login state over
> multiple
> calls to my .NET web service layer. So basically, the user logs in, then
> stores a login "token" internally on the Flex side so that each web
> service
> call can be authenticated as being made by someone who has already "logged
> in" to the system. Does anyone have any ideas on how to approach this? My
> initial approach was to cache the user's username/password and
> authenticate
> on each web service call (Direct Authentication). I was told, for obvious
> reasons, that this is insecure method and requires database hit each call.
> I
> am trying to implement WSE 3.0 enabled web services on the .NET side. Is
> this an SSO problem, or should I be using STS/Brokered Authentication
> approach? We just started our upgrade to VS2008, so maybe I should just
> pursue WCF methods instead? Any experiences with this would be greatly
> appreciated.
> 
> TIA,
> 
> variable
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-SOA-question-tp22875841p22962243.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Newbie SOA question

2009-04-03 Thread Tracy Spratt
I have a lot to learn about security, and had difficulty wading through all
of the levels and options, so I devised my own programmatic solution.

 

When a user logs in from the Flex app (md5 hash on the password), I create a
sessionId, store it in a hashtable in the .net app, and pass it back to the
Flex app.  The Flex app sends this token with each call.  The server checks
the passed in session id and compares the timestamp to the current time.  If
it is within the timeout period specified, it updates the timestamp and
authorizes the call.  If authorization fails, the user must log in again.

 

I am certainly open to a better approach.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of variableop
Sent: Friday, April 03, 2009 4:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie SOA question

 

I would like to provide a solution to maintaining login state over multiple
calls to my .NET web service layer. So basically, the user logs in, then
stores a login "token" internally on the Flex side so that each web service
call can be authenticated as being made by someone who has already "logged
in" to the system. Does anyone have any ideas on how to approach this? My
initial approach was to cache the user's username/password and authenticate
on each web service call (Direct Authentication). I was told, for obvious
reasons, that this is insecure method and requires database hit each call. I
am trying to implement WSE 3.0 enabled web services on the .NET side. Is
this an SSO problem, or should I be using STS/Brokered Authentication
approach? We just started our upgrade to VS2008, so maybe I should just
pursue WCF methods instead? Any experiences with this would be greatly
appreciated.

TIA,

variable





[flexcoders] Newbie SOA question

2009-04-03 Thread variableop
I would like to provide a solution to maintaining login state over multiple 
calls to my .NET web service layer.  So basically, the user logs in, then 
stores a login "token" internally on the Flex side so that each web service 
call can be authenticated as being made by someone who has already "logged in" 
to the system.  Does anyone have any ideas on how to approach this?  My initial 
approach was to cache the user's username/password and authenticate on each web 
service call (Direct Authentication).  I was told, for obvious reasons, that 
this is insecure method and requires database hit each call.  I am trying to 
implement WSE 3.0 enabled web services on the .NET side.  Is this an SSO 
problem, or should I be using STS/Brokered Authentication approach?  We just 
started our upgrade to VS2008, so maybe I should just pursue WCF methods 
instead?  Any experiences with this would be greatly appreciated.

TIA,

variable




[flexcoders] Newbie in FLEX, need help on a question

2009-04-02 Thread krishneelu
Hi,

I am not an intermmediate or advanced Flex coder, but just trying to use the 
Flex Builder latest trial version to create some mockups for an application I 
intend to hire resources to develop on. 

My question for flex is:
After I run the application in flex builder, and it displays it on IE browser 
for me, the application frame/mockup screen is sized half the IE browser size 
and is centered ( on IE). How can I change it to display fully utilizing my IE 
browser real estate?

Any help is greatly appreciated.

I do love flex, and excited to learn more!

Cheers
-Neel



Re: [flexcoders] Newbie : Video Capture and Streaming Questions

2009-03-05 Thread p...@vin Uttarwar
Hi,

Yes you need Streaming server like FMS or Red 5 to use NetStream.connect()
method.
Netconnection Creates a bidirectional connection between a Flash Player or
AIR application and a Flash Media Server application.


Regards,
Pravin


2009/3/5 toejamnyc 

>   Good Day.
>
> I hope you'll forgive my very basic questions. I've googled, read FAQ's,
> and built a few tutorials, and have a very basic app that displays video.
> But I still have a very basic question.
>
> Must I have Flash Media Server in order to capture and save video from a
> webcam to a server? Is there *any* way I can build a small development,
> recording app on my existing http://domain?
>
> I am a PHP / MySQL developer, so this is all very new to me. Like I said, I
> can display video, but I'm having a hard time figuring out
> NetStream.connect() -- unless it's indeed true I need FMS.
>
> Thank you in advance for your time and any pointers.
>
>  
>


[flexcoders] Newbie : Video Capture and Streaming Questions

2009-03-05 Thread toejamnyc
Good Day.

I hope you'll forgive my very basic questions. I've googled, read FAQ's, and 
built a few tutorials, and have a very basic app that displays video. But I 
still have a very basic question.

Must I have Flash Media Server in order to capture and save video from a webcam 
to a server? Is there *any* way I can build a small development, recording app 
on my existing http://domain?

I am a PHP / MySQL developer, so this is all very new to me. Like I said, I can 
display video, but I'm having a hard time figuring out NetStream.connect() -- 
unless it's indeed true I need FMS.

Thank you in advance for your time and any pointers.



re: [flexcoders] Newbie Help

2009-02-12 Thread Wally Kolcz
1.) Flex is just an SWF file. You can set the application to any size and embed 
it as a SWF.
3.) Flex has a really good printing solution allowing you to add elements to a 
print job and control the order of printing. 

I believe that AlivePDF can convert and export Flex information as a PDF 
document.


From: "ksunair" 
Sent: Thursday, February 12, 2009 5:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie Help 

Hi All,

I am very new to Flex as a matter of fact I just wrote hello world :)

Anyway, I am evaluating Flex against SilverLight for our new development. Our 
current web 

app is legacy ASP (not ASP.Net) and I have completed a prototype for 
SilverLight and as a 

C# developer I was able to get it done pretty fast. I was reading about Flex 
and it seems to 

be also straight forward. I have few questions if someone can help me with.

1. Is it possible to add a flex object to an existing ASP page. If not, how can 
I call and pass 

information between classic ASP and Flex, is it possible? 

2. I would like to know how to create a hierarchal data grid in Flex? I saw 
some examples 

of the new Hierarchical collection, if it is the solution, is there a simple 
example 

somewhere I can use?

3. I would like to print reports from web and currently silverlight has buggy 

implementation of print, is it possible to print from Flex web page? Also is it 
possible to 

export the data to PDF or HTML format?

I am doing reading right now, as the Flex expert you could help me speed up to 
make my decision.

Thanks a lot.





[flexcoders] Newbie Help

2009-02-12 Thread ksunair
Hi All,

I am very new to Flex as a matter of fact I just wrote hello world :)

Anyway, I am evaluating Flex against SilverLight for our new development. Our 
current web 
app is legacy ASP (not ASP.Net) and I have completed a prototype for 
SilverLight and as a 
C# developer I was able to get it done pretty fast. I was reading about Flex 
and it seems to 
be also straight forward. I have few questions if someone can help me with.
1. Is it possible to add a flex object to an existing ASP page. If not, how can 
I call and pass 
information between classic ASP and Flex, is it possible? 
2. I would like to know how to create a hierarchal data grid in Flex? I saw 
some examples 
of the new Hierarchical collection, if it is the solution, is there a simple 
example 
somewhere I can use?
3. I would like to print reports from web and currently silverlight has buggy 
implementation of print, is it possible to print from Flex web page? Also is it 
possible to 
export the data to PDF or HTML format?

I am doing reading right now, as the Flex expert you could help me speed up to 
make my decision.

Thanks a lot.



RE: [flexcoders] newbie question - call to actionscript class

2009-01-29 Thread Gregor Kiddie
 isn't a visual component. You'll need to use the XML as a
dataprovider from something that is.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of annelie2008
Sent: 29 January 2009 10:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] newbie question - call to actionscript class

 

Hello,

I'm brand new to Flex so I'm sure this is a very stupid question, but 
hopefully someone will be able to help.

My ultimate goal is to take an xaml file with a musical score and 
convert it to flex, but to start with I've hardcoded a score (or 
rather some score elements) in an actionscript class and I'm trying 
to call it from my main application file. When I debug I can see that 
it does get called, however nothing gets drawn on screen. I first did 
the hardcoded score in a project on its own, so I know that the score 
should be able to be displayed.

Here's the code:

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









Does anyone know what I'm doing wrong?

Many thanks,

Annelie

 



[flexcoders] newbie question - call to actionscript class

2009-01-29 Thread annelie2008
Hello,

I'm brand new to Flex so I'm sure this is a very stupid question, but 
hopefully someone will be able to help.

My ultimate goal is to take an xaml file with a musical score and 
convert it to flex, but to start with I've hardcoded a score (or 
rather some score elements) in an actionscript class and I'm trying 
to call it from my main application file. When I debug I can see that 
it does get called, however nothing gets drawn on screen. I first did 
the hardcoded score in a project on its own, so I know that the score 
should be able to be displayed.

Here's the code:

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










Does anyone know what I'm doing wrong?

Many thanks,

Annelie



Re: [flexcoders] Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-06 Thread Josh McDonald
Bindings work with any objects, so long as the fields (or the whole class)
are marked with [Bindable]

-Josh

On Wed, Jan 7, 2009 at 11:44 AM, john.casey64 wrote:

> I'm working on an application where I build a tree (in actionscript
> buildtree()) where I add new leafs from data that is retieve from a
> remote call.
>
> Since the buildtree() function deals with the view - I have this coded
> in the view mxml. The tree is bound to a XMLListCollection which is
> updated by the buildtree() function after a remote value object is updated
>
> The remote RetrieveDataCommand successfully retrieves the data into a
> business value object.
>
> What is the correct Cairgorm method for triggering the builtree()
> function after the RetrieveDataCommand is complete?
>
> I don't want to pollute my Command logic with any specific calls to
> buildtree()
>
> Should I be adding RemoteCommandComplete events to all of my
> RemoteCommands? and then set the view logic to listen for them?
>
> I tried to set a Collection.COLLECTION_CHANGE listener on the Business
> Value object from my View logic. But it seems to fire before the
> ArrayCollection is complete.
>
> I also tried the BindUtils function to bind my buildtree() function to
> my value object,  but bindutils only seems to work with MX visual
> objects, not actionscript value objects.
>
> Any experts out there? I'm sure there must be a simple solution for this.
>
>
> 
>
> --
> 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
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


[flexcoders] Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-06 Thread john.casey64
I'm working on an application where I build a tree (in actionscript
buildtree()) where I add new leafs from data that is retieve from a
remote call.

Since the buildtree() function deals with the view - I have this coded
in the view mxml. The tree is bound to a XMLListCollection which is
updated by the buildtree() function after a remote value object is updated

The remote RetrieveDataCommand successfully retrieves the data into a
business value object.

What is the correct Cairgorm method for triggering the builtree()
function after the RetrieveDataCommand is complete?

I don't want to pollute my Command logic with any specific calls to
buildtree()

Should I be adding RemoteCommandComplete events to all of my
RemoteCommands? and then set the view logic to listen for them?

I tried to set a Collection.COLLECTION_CHANGE listener on the Business
Value object from my View logic. But it seems to fire before the
ArrayCollection is complete.

I also tried the BindUtils function to bind my buildtree() function to
my value object,  but bindutils only seems to work with MX visual
objects, not actionscript value objects.

Any experts out there? I'm sure there must be a simple solution for this. 



[flexcoders] Newbie HELP

2008-12-08 Thread Tony
Ok.  I have been working through a Friends of Ed book called
Foundation Flex for Designers.  In chapter 8, the idea is to build a
external xml file controlled photo gallery.  Screen will be split
horizontally with one side being thumbnails of the larger pictures
stored externally to the application.  The other side (right side) is
supposed to display the targeted picture in full dimensions. I have
not got to the right side yet.  I am to the point where thumb nails
should be showing up in the thumbnail pane.  But I keep getting an
error upon runtime out of flex.  Can any one help???  I have put a zip
file in the files area of this group that contains a folder for the
picture assets and xml file plus all the flex files.  Can someone tell
me what I did wrong??

The next step will be to create a basic css file.  But my thumb nails
should still be showing up in the pane (or is it "pain").

respectfully,
Mini-me



[flexcoders] Newbie binding question

2008-11-24 Thread Michael Prescott
I'm having some troubles with data binding and a named event generated
by a custom non-visual component.  What I'm trying to do is have a
property (say, 'data') which, when it changes, triggers the usual
data-binding updates, but also fires an event that can be listened to
in the MXML.  For example:




I can't seem to meet both of these requirements without throwing two
separate events.  Is this what I should expect?

When I do this:

[Event(name="dataChanged")]
public class MyClass {

[Bindable(name="dataChanged")]
public function set data(data:Object):void {
  this._data = data;
  dispatchEvent( new Event("dataChanged") );

..then the data binding doesn't work.  (The label text doesn't get
updated.)  It seems I have to resort to vanilla data binding (with no
event name), and in addition throw a 'dataChanged' event of my own.

[Event(name="dataChanged")]
public class MyClass {

[Bindable]
public function set data(data:Object):void {
  this._data = data;
  dispatchEvent( new Event("dataChanged") );

Am I missing something?

Michael



Re: [flexcoders] newbie question on synchronous and asynchronous events

2008-10-16 Thread Paul Andrews
I always treat events as asynchronous - I don't see how else you can deal 
with them. I'll have to check out the cookbook article..

Paul
- Original Message - 
From: "Dan" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, October 16, 2008 4:03 PM
Subject: [flexcoders] newbie question on synchronous and asynchronous events


> From Flex cookbook beta on adobe.com, "How to handle events in a
> TestCase?" article:
> "Testing behavior in a TestCase often involves waiting for
> asynchronous events. If the TestCase methods only concern synchronous
> events like property change events fired immediately when the property
> is set, no special handling is required. It is only when asynchronous
> events are involved that extra care needs to be taken. A common
> example would be waiting for a URLLoad to finish or a UIComponent to
> finish creation."
>
> My question is: How do I distinguish between the synchronous and
> asynchronous  events?
> From what is said, if the event is synchronous, then I could test for
> event effect in synchronous manner. For example:
>
> public function testSync(){
> this.myValue = 0
> addEventListener(MySynch.Sync, listener)
> dispatchEvent(new MySynch)
> assertEquals (this.myValue, 10)
> }
>
> public function listener(){
> this.myValue = 10
> }
>
>
> Now, if I write the code for WebService send, test code would not
> work. Am I getting this right? If so, how do I distinguish between the
> synchronous and asynchronous  events?
>
> Thanks,
>
> Dan
>
>
> 
>
> --
> 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
>
>
>
> 



[flexcoders] newbie question on synchronous and asynchronous events

2008-10-16 Thread Dan
>From Flex cookbook beta on adobe.com, "How to handle events in a 
TestCase?" article:
"Testing behavior in a TestCase often involves waiting for 
asynchronous events. If the TestCase methods only concern synchronous 
events like property change events fired immediately when the property 
is set, no special handling is required. It is only when asynchronous 
events are involved that extra care needs to be taken. A common 
example would be waiting for a URLLoad to finish or a UIComponent to 
finish creation."

My question is: How do I distinguish between the synchronous and 
asynchronous  events? 
>From what is said, if the event is synchronous, then I could test for 
event effect in synchronous manner. For example: 

public function testSync(){
this.myValue = 0
addEventListener(MySynch.Sync, listener)
dispatchEvent(new MySynch)
assertEquals (this.myValue, 10) 
}

public function listener(){
this.myValue = 10
}


Now, if I write the code for WebService send, test code would not 
work. Am I getting this right? If so, how do I distinguish between the 
synchronous and asynchronous  events? 

Thanks, 

Dan



[flexcoders] Newbie help, dealing with a design in illustrator

2008-08-21 Thread interz12
Hi,
I'm relatively new to flex so bear with me. I am tasked with taking an
application design done in Illustrator CS3 and getting it up and
running in Flex 3. 

>From what I can tell the illustrator design is just a bunch of layers,
with images, text etc. It is not this vector/skin based thing that I
have read about with flex.

Can anyone suggest how to get this design into a flex app?

a) do I just crop out parts and peices into images, then bring them
into flex and add text and buttons, panels with the images as
backgrounds etc?



[flexcoders] newbie q : Application Server Clustering

2008-08-01 Thread artur_desig2dev
greetings,

Can a Flex 3 app be specially engineered to work with a Application
Server cluster?

we are using WebOrb 3.0 for php.

any links, advice would be greatly appreciated.

also any recs on VPS hosts too..

anyone ever host with MediaTemple DS?
or Amazon's EC2?

thanks!

artur
 



[flexcoders] Newbie Help: Resolve a multiname reference unambiguously...

2008-07-15 Thread cox.blair
Hi,

Totally a newbie here, so please excuse my ignorance. 

I've spent some time working through this problem and this is where I
am at. I want to be able to make multiple calls to my database tables.
I did use the create application from database to generate the php
code to create the xml I need. Works great for my needs, I just need
to be able to make calls to the server. I used the generated datagrid
to display and manipulate some data in my application, so I would like
to keep the original part, just add on to it.

>From what I gather, it is not possible to reference HTTPService twice.

Currently it appears in a ActionScipt file as ->
private var gateway:HTTPService = new HTTPService();

This part is the original datagrid application.


And again in a data block within the mxml file ->
http://localhost/debug/Points.php?method=FindAll";
result="resultHandlerSP(event)"/>

I added this to populate a combobox where the code for the datagrid
exists, except this combo references a different table than the
datagrid connects to.

How would I give an instance of HTTPService a unique ID - or populate
an array in a different way?

Thanks,

 



[flexcoders] newbie : WebORB vs Adobe LiveCycle

2008-07-08 Thread artur_desig2dev
just wondering what the advantages are if any besides cost.

Can webORB scale well?
to handle 50k users?


thanks



[flexcoders] Newbie Nested Remote Object Question

2008-07-08 Thread kroghadam
Hi everybody, I am really enjoying my first look into flex! 
Unfortunately I have ran into a problem with remote objects to java
classes that have compositions of objects in them. In other words my
class has an instance variable that is another object whose data i
also want to access, preferably through the same remote object.

If anyone has some pointers, links to examples or even source code I
would really appreciate it.

Thanks in advance,

-Adam
--Flex Newbie



[flexcoders] Newbie help with Flex Builder CS3

2008-06-15 Thread brucewhealton
Hello all,
   I have to say that this relates to some very basic things
that I guess I don't yet have a good handle on yet.  Ok, the first
issue relates to a problem I am having with the Flash Player.  I did
address the issue previously on this list of not having the correct
Flash Player, the debug version installed.  I got answers for this on
the list and got things installed correctly.
  However, I cannot get any applications to run when I select
the run button within Flex Builder CS3 (from here on, I'll just say
from within flex).  When I do click on that button, it brings up the
browser which says that I need the Flash Player.  So, to check things
out, I go to adobe.com and indeed the Flash content there plays just
fine.  I right click on it and see that indeed I have the Flash Player
9, debugger version, working just fine.  If I try to test a flex
application from within flex, I get that error in the browser saying
that I need Flash Player.
 This started because I was trying to fix a problem that was
happening when I tried to display an application with a datagrid
component.  It was giving me an error saying that it could not read
the xml file or find it.  So, I tried to redefine the Flex workspace.  
  This demonstrated another newbie problem I have and that is
relating to the workspace designation in Flex.  If I change the
workspace after I've been working on a project/application, will that
cause serious problems?  
  This is an embarrassing problem as I'm not new to web
development.  I've done web development and have used a variety of
applications.  So, with regard to the workspace would changing this by
going to Switch Workspace cause a problem of this nature?
   I'm sorry if I'm confusing.  I have been learning flex
using a couple of different texts for learning, and it was only
recently that I ran into these errors.  
Any help or advice would be greatly appreciated.
Thanks,
Bruce




Re: [flexcoders] newbie question - multipage apps - best approach?

2008-04-28 Thread Tom Chiverton
On Saturday 26 Apr 2008, hoytlee2000 wrote:
> Should each page of the UI be it's own MXML
> file and "inluded" in as a component? 

I would say 'at a minimum'. It'll look a lot more organised. You may start 
spotting common/reusable parts too.

> And what are the draw backs?  

You'll have to be a bit more disciplined in when and where you use data 
binding, and to what.
You might need to look at ChangeWatcher, or something more 'serious' like the 
Cairngorm framework.

-- 
Tom Chiverton
Helping to biannually visualize frictionless users
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] newbie question - multipage apps - best approach?

2008-04-26 Thread hoytlee2000
Hello,

I need some advice.  I am starting to develop more complex applications that is 
demanding 
more and more UI pages.  In the past, it was simple enough to include 
everything in the 
same MXML file and I used the viewstack or tab containers to switch between the 
pages.

But now I am finding the code to become increasingly unwieldly when working in 
Flex Builder 
(its just a lot of code to thumb through), so I am starting to build some of 
the UI elements as 
MXML components.

However, I am still relatively new to flex and action script so what are the 
guidelines for when 
to break something out as a component and when to keep it in the same MXML 
file?  Should 
each page of the UI be it's own MXML file and "inluded" in as a component?  And 
what are the 
draw backs?  Thanks.

Any words of advice would be appreciated or good articles to read would be 
helpful.  (I've 
programmed mostly in the past with PHP).

be well,
Hoyt



[flexcoders] Newbie question: Removing text from textarea/disabling a character

2008-04-24 Thread khan.ibraheem
Hello,

I am using a textarea. I want to achieve 2 tasks:

1) Disable a particular character i.e. let suppose I dont want to
allow a certain character being shown(when it is typed) in the text area.

2) How can I remove some portion of the text from the textarea. I have
tried slice method but it hasnt worked.

Looking for help.

Thanks.



[flexcoders] newbie quistion

2008-04-24 Thread peterflexcoder
Hi All

I'm new here, I'm Peter from the Netherlands!

I need you help.
First i did'nt done anything yet in flex.
I know a bit actionscript 3.0

i want a little air application

with that application i can select in a combobox a link and that link open in 
the mx:html 
object. 

I have made a xml file with the name and the link. and it comes good in the 
combobox 
but i don't know how to set the selected link in a preferences file and open in 
the mx:html 
object.

the preferences file is because i want to make him smart and when its open the 
second 
time he must load the link i selected the first time.

How can i do this?
Do someone have a example or something like that?

Thanks in Advance!

Bye Peter from Amsterdam!





[flexcoders] newbie design question

2008-04-24 Thread Eric Cooper
I have been working in Flex for about 3 months now. I am writing a geometry 
tool that allows user to create 
points, line segments, circle and polygons, as well as constraints between 
these objects (e.g., distance, angle, 
perpendicular, etc.). Initially, I created a (subclass of) 
ApplicationControlBar and (a subclass) of Canvas. Tools in 
the app control bar and objects (by which I mean geometric shapes) in the 
canvas.

My canvas listeners for Event.RENDER and then, provided it's been told that 
something has changed, calls its 
draw() method - which, essentially, loops through objects, drawing them to the 
graphics object - after having 
cleared the graphics object. Similarly, the canvas listeners for various 
MouseEvents and KeyboardEvents, and 
traverses the list of objects doing hit tests.

This was okay until I needed to render text (for distances and angles). 
Apparently there are ways around that - 
by rendering text to a bitmap and adding bitmap to graphics command stack 
(though I have yet to actually get 
this working). There are other concerns that I have about my approach thus far.

But switching over to a model where each geometric object is a Sprite or a 
Shape raises some questions, too.

Currently, I can highlight points, edges and angles of polygons are the mouse 
moves over them. I have no idea 
how I would accomplish this with Sprite or Shape, as neither appears to have a 
draw() or paint() method... Would 
I need to add Shapes for "selected look" for each point, line segment, etc. and 
toggle visible property 
appropriately? Is this something that skins might be used for? If so, how?

I realize that this is a somewhat open-ended question, and I am hesitant asking 
it. I have done a fair amount of 
reading (books, blogs, docs), but I think that I am missing something here. If 
you have pointers or advice, I 
would be most grateful.

Thanks.
-Eric



RE: [flexcoders] newbie question

2008-04-23 Thread Steve Good
Cool, I think I understand.  I'll give it a try.

 

Thanks.

 

~Steve

http://lanctr.com/

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 23, 2008 2:02 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie question

 

That is ok, but it is the hard way.  HTTPService is easier to use.

 

So you have the string you need in the completeHandler?  If so, then I guess
I don't understand your question.  If you need to 'save" that string for
later use by some other function, you could declare an "instance" (global)
variable and store it in that.  Declare that var outside of any function:

private var _sMyString:String;

 

then in completeHandler():

_sMyString = event.target.data.resultCode;

 

Now you can access that value from most anywhere.

 

That warning is from the function declaration:

public function postData(){

To fix it do:

public function postData():void{

This declares the return type of the function to be "void"

 

Tracy

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Good
Sent: Wednesday, April 23, 2008 2:10 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie question

 

Sorry about the subject, I'm not sure why I didn't use something more
descriptive.

 

Here's a snippet of the code I'm using. 

 

  public function postData(){

var urlData:String = "foo=bar";

trace(urlData);

var variables:URLVariables = new
URLVariables(urlData);

var request:URLRequest = new URLRequest();

request.url = "http://domain.com/remoteScript.cfm";;

request.method = URLRequestMethod.POST;

request.data = variables;

var loader:URLLoader = new URLLoader();

loader.dataFormat = URLLoaderDataFormat.VARIABLES;

loader.addEventListener(Event.COMPLETE,
completeHandler);

try

{

loader.load(request);

}

catch (error:Error)

{

trace("Unable to load URL");

}



function completeHandler(event:Event):void

{

trace(event.target.data.resultCode);

}

  }

 

I don't know if this is the best way to do this, I just copied and modified
one of the examples at
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_co
mmunications_3.html  

 

The string I'm trying to get is in the last trace, resultCode.  FB3 does
show a warning about the function.  "-1008: return value for function
'postData' has no type declaration."  I don't have a clue what this means.

 

I have a Flex 3 book on order, so hopefully I can bring my dumb questions
down to a minimum once I get my hands on it.

 

Thanks!

 

~Steve

http://lanctr.com/

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 23, 2008 1:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie question

 

Welcome, Steve.

 

First, please use a descriptive subject for all posts, including "AIR", if
you think that might be signficant.  There is too much traffic on this list
for anyone to read all posts, so we choose what to read based on the
subject.  Subjects like "HELP ME!!!" and "URGENT!!!", and even "Newbie
Question" stand a good chance of being skipped.

 

Now, for your question, I do not use AIR much yet, but generally, you need
to use a result handler on your data call.  That function will be called
when your data returns, and you can then do whatever you need with it.  Are
you using RemoteObject to make the call?  All the of the RPC protocols
support the result event.

 

Tracy

 

  _____  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Good
Sent: Wednesday, April 23, 2008 1:44 PM
To: flexcoders
Subject: [flexcoders] newbie question

 

Let me start by saying that I am completely new to Flex and obviously the
list.  I'll apologize upfront for asking the dumb and obvious questions, but
I'm still going to ask them :P

 

So here's a description of what I'm doing and my question.

 

I built an Air app with Flex 3 that posts some form data to a remote cfm
file.  The cfm file then returns a string.  If I watch the app running in
the Flex Builder 3 debug perspective I can see the string that's returned.
My question is this.  How do I get that st

RE: [flexcoders] newbie question

2008-04-23 Thread Tracy Spratt
That is ok, but it is the hard way.  HTTPService is easier to use.

 

So you have the string you need in the completeHandler?  If so, then I
guess I don't understand your question.  If you need to 'save" that
string for later use by some other function, you could declare an
"instance" (global) variable and store it in that.  Declare that var
outside of any function:

private var _sMyString:String;

 

then in completeHandler():

_sMyString = event.target.data.resultCode;

 

Now you can access that value from most anywhere.

 

That warning is from the function declaration:

public function postData(){

To fix it do:

public function postData():void{

This declares the return type of the function to be "void"

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Good
Sent: Wednesday, April 23, 2008 2:10 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie question

 

Sorry about the subject, I'm not sure why I didn't use something more
descriptive.

 

Here's a snippet of the code I'm using. 

 

  public function postData(){

var urlData:String = "foo=bar";

trace(urlData);

var variables:URLVariables = new
URLVariables(urlData);

var request:URLRequest = new URLRequest();

request.url =
"http://domain.com/remoteScript.cfm";;

request.method = URLRequestMethod.POST;

request.data = variables;

var loader:URLLoader = new URLLoader();

loader.dataFormat =
URLLoaderDataFormat.VARIABLES;

loader.addEventListener(Event.COMPLETE,
completeHandler);

try

{

loader.load(request);

}

catch (error:Error)

{

trace("Unable to load URL");

}



function completeHandler(event:Event):void

{

trace(event.target.data.resultCode);

}

  }

 

I don't know if this is the best way to do this, I just copied and
modified one of the examples at
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_an
d_communications_3.html
<http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_a
nd_communications_3.html>   

 

The string I'm trying to get is in the last trace, resultCode.  FB3 does
show a warning about the function.  "-1008: return value for function
'postData' has no type declaration."  I don't have a clue what this
means.

 

I have a Flex 3 book on order, so hopefully I can bring my dumb
questions down to a minimum once I get my hands on it.

 

Thanks!

 

~Steve

http://lanctr.com/

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 23, 2008 1:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie question

 

Welcome, Steve.

 

First, please use a descriptive subject for all posts, including "AIR",
if you think that might be signficant.  There is too much traffic on
this list for anyone to read all posts, so we choose what to read based
on the subject.  Subjects like "HELP ME!!!" and "URGENT!!!", and even
"Newbie Question" stand a good chance of being skipped.

 

Now, for your question, I do not use AIR much yet, but generally, you
need to use a result handler on your data call.  That function will be
called when your data returns, and you can then do whatever you need
with it.  Are you using RemoteObject to make the call?  All the of the
RPC protocols support the result event.

 

Tracy

 

____

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Good
Sent: Wednesday, April 23, 2008 1:44 PM
To: flexcoders
Subject: [flexcoders] newbie question

 

Let me start by saying that I am completely new to Flex and obviously
the list.  I'll apologize upfront for asking the dumb and obvious
questions, but I'm still going to ask them :P

 

So here's a description of what I'm doing and my question.

 

I built an Air app with Flex 3 that posts some form data to a remote cfm
file.  The cfm file then returns a string.  If I watch the app running
in the Flex Builder 3 debug perspective I can see the string that's
returned.  My question is this.  How do I get that string and make it
available to another function?  I want to use the returned string in
another post method in the same app.

 

If more details are r

Re: [flexcoders] newbie question

2008-04-23 Thread Pat Buchanan
Steve:

Several things you need to do.  First, make sure you have *defined a result
handler* for the function call.  Sounds like you have because you said you
could see the result come back.  Then, just access the result via the event,
like below:

private function getMyAnswer_Handler(event:ResultEvent):void{
   Alert.show(event.result);
}

If you are returning a string from your CF call, then the above code would
just show it in an alert box.  Replace it with your function to pass it
along to whatever you want to do with it.

Also, if you want quick responses in the future, be sure to provide a
summary of your question in the subject.  With the amount of questions that
get posted to this forum, many people don't open the messages without know
what they are about.

Thanks
-Pat Buchanan
www.DataNotion.com


On Wed, Apr 23, 2008 at 11:44 AM, Steve Good <[EMAIL PROTECTED]> wrote:

>Let me start by saying that I am completely new to Flex and obviously
> the list.  I'll apologize upfront for asking the dumb and obvious questions,
> but I'm still going to ask them :P
>
>
>
> So here's a description of what I'm doing and my question.
>
>
>
> I built an Air app with Flex 3 that posts some form data to a remote cfm
> file.  The cfm file then returns a string.  If I watch the app running in
> the Flex Builder 3 debug perspective I can see the string that's returned.
> My question is this.  How do I get that string and make it available to
> another function?  I want to use the returned string in another post method
> in the same app.
>
>
>
> If more details are required I can give them, just holler J and Thanks in
> advance.
>
>
>
> ~Steve
>
> http://lanctr.com/
>
>
>
>
> __ Information from ESET NOD32 Antivirus, version of virus
> signature database 3049 (20080423) __
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>  
>


RE: [flexcoders] newbie question

2008-04-23 Thread Steve Good
Sorry about the subject, I'm not sure why I didn't use something more
descriptive.

 

Here's a snippet of the code I'm using. 

 

  public function postData(){

var urlData:String = "foo=bar";

trace(urlData);

var variables:URLVariables = new
URLVariables(urlData);

var request:URLRequest = new URLRequest();

request.url = "http://domain.com/remoteScript.cfm";;

request.method = URLRequestMethod.POST;

request.data = variables;

var loader:URLLoader = new URLLoader();

loader.dataFormat = URLLoaderDataFormat.VARIABLES;

loader.addEventListener(Event.COMPLETE,
completeHandler);

try

{

loader.load(request);

}

catch (error:Error)

{

trace("Unable to load URL");

}



function completeHandler(event:Event):void

{

trace(event.target.data.resultCode);

}

  }

 

I don't know if this is the best way to do this, I just copied and modified
one of the examples at
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_co
mmunications_3.html  

 

The string I'm trying to get is in the last trace, resultCode.  FB3 does
show a warning about the function.  "-1008: return value for function
'postData' has no type declaration."  I don't have a clue what this means.

 

I have a Flex 3 book on order, so hopefully I can bring my dumb questions
down to a minimum once I get my hands on it.

 

Thanks!

 

~Steve

http://lanctr.com/

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, April 23, 2008 1:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie question

 

Welcome, Steve.

 

First, please use a descriptive subject for all posts, including "AIR", if
you think that might be signficant.  There is too much traffic on this list
for anyone to read all posts, so we choose what to read based on the
subject.  Subjects like "HELP ME!!!" and "URGENT!!!", and even "Newbie
Question" stand a good chance of being skipped.

 

Now, for your question, I do not use AIR much yet, but generally, you need
to use a result handler on your data call.  That function will be called
when your data returns, and you can then do whatever you need with it.  Are
you using RemoteObject to make the call?  All the of the RPC protocols
support the result event.

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Good
Sent: Wednesday, April 23, 2008 1:44 PM
To: flexcoders
Subject: [flexcoders] newbie question

 

Let me start by saying that I am completely new to Flex and obviously the
list.  I'll apologize upfront for asking the dumb and obvious questions, but
I'm still going to ask them :P

 

So here's a description of what I'm doing and my question.

 

I built an Air app with Flex 3 that posts some form data to a remote cfm
file.  The cfm file then returns a string.  If I watch the app running in
the Flex Builder 3 debug perspective I can see the string that's returned.
My question is this.  How do I get that string and make it available to
another function?  I want to use the returned string in another post method
in the same app.

 

If more details are required I can give them, just holler J and Thanks in
advance.

 

~Steve

http://lanctr.com/

 



__ Information from ESET NOD32 Antivirus, version of virus signature
database 3049 (20080423) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

 



RE: [flexcoders] newbie question

2008-04-23 Thread Tracy Spratt
Welcome, Steve.

 

First, please use a descriptive subject for all posts, including "AIR",
if you think that might be signficant.  There is too much traffic on
this list for anyone to read all posts, so we choose what to read based
on the subject.  Subjects like "HELP ME!!!" and "URGENT!!!", and even
"Newbie Question" stand a good chance of being skipped.

 

Now, for your question, I do not use AIR much yet, but generally, you
need to use a result handler on your data call.  That function will be
called when your data returns, and you can then do whatever you need
with it.  Are you using RemoteObject to make the call?  All the of the
RPC protocols support the result event.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Good
Sent: Wednesday, April 23, 2008 1:44 PM
To: flexcoders
Subject: [flexcoders] newbie question

 

Let me start by saying that I am completely new to Flex and obviously
the list.  I'll apologize upfront for asking the dumb and obvious
questions, but I'm still going to ask them :P

 

So here's a description of what I'm doing and my question.

 

I built an Air app with Flex 3 that posts some form data to a remote cfm
file.  The cfm file then returns a string.  If I watch the app running
in the Flex Builder 3 debug perspective I can see the string that's
returned.  My question is this.  How do I get that string and make it
available to another function?  I want to use the returned string in
another post method in the same app.

 

If more details are required I can give them, just holler :-) and Thanks
in advance.

 

~Steve

http://lanctr.com/

 



__ Information from ESET NOD32 Antivirus, version of virus
signature database 3049 (20080423) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com <http://www.eset.com> 

 



[flexcoders] newbie question

2008-04-23 Thread Steve Good
Let me start by saying that I am completely new to Flex and obviously the
list.  I'll apologize upfront for asking the dumb and obvious questions, but
I'm still going to ask them :P

 

So here's a description of what I'm doing and my question.

 

I built an Air app with Flex 3 that posts some form data to a remote cfm
file.  The cfm file then returns a string.  If I watch the app running in
the Flex Builder 3 debug perspective I can see the string that's returned.
My question is this.  How do I get that string and make it available to
another function?  I want to use the returned string in another post method
in the same app.

 

If more details are required I can give them, just holler J and Thanks in
advance.

 

~Steve

http://lanctr.com/

 



[flexcoders] Newbie Question: loading text file.

2008-04-22 Thread khan.ibraheem
I want to do 2 different things:

1) I want to load a text file from a hard-coded location and load its
contents in a string. 
2) I want to load a text file from a location choosed by user and load
its contents in a string.

How can I achieve these 2 tasks.

Thanks.



RE: [flexcoders] newbie question

2008-04-16 Thread Gordon Smith
BTW, Timgerr asked essentially the same question early today in the
thread "Flex Compenents, how to make them talk". 

 

If your app is organized like this

 













 

then from MyForm's 

RE: [flexcoders] newbie question

2008-04-16 Thread Tracy Spratt
Another convenient way to do a login is to use a modal popUp
TitleWindow.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shaun
Sent: Wednesday, April 16, 2008 10:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie question

 

Hey Luke,

Luke Vanderfluit wrote:
> 
> I have a component that displays a form (currently in 
> selectedIndex 0), from this component I want the click to send me 
> to ViewStack.selectedIndex 1.
> 
> Is there something like parent.selectedIndex?
> Access the ViewStack (that contains the component as one of its 
> children) directly from the component doesnt work.
> 
> 
> 
> How would I do that?

If i understand correctly, off the top of my head you could do something

like:

//inside parent containing VS.
addEventListener("NextEvent", handleNext);

function handleNext(e:Event):void{
var c:MyFormComponent = e.currentTarget as MyFormComponent;
next(c);
}

function next(c:MyFormComponent){
//something.
myVs.selectedIndex < maxIndex ? myVs.selectedIndex++ : null ;
}

//inside child component within vs.
function handleClick(e:Event):void{
if (e.currentTarget == next)
dispatchEvent(new Event("NextEvent", true));
else
dispatchEvent(new Event("PreviousEvent", true));

}




HTH.
cheers,
- shaun

 



Re: [flexcoders] newbie question

2008-04-16 Thread shaun
Hey Luke,

Luke Vanderfluit wrote:
> 
> I have a component that displays a form (currently in 
> selectedIndex 0), from this component I want the click to send me 
> to ViewStack.selectedIndex 1.
> 
> Is there something like parent.selectedIndex?
> Access the ViewStack (that contains the component as one of its 
> children) directly from the component doesnt work.
> 
> 
> 
> How would I do that?

If i understand correctly, off the top of my head you could do something 
like:


//inside parent containing VS.
addEventListener("NextEvent", handleNext);

function handleNext(e:Event):void{
  var c:MyFormComponent = e.currentTarget as MyFormComponent;
  next(c);
}

function next(c:MyFormComponent){
//something.
myVs.selectedIndex < maxIndex ? myVs.selectedIndex++ : null ;
}


//inside child component within vs.
function handleClick(e:Event):void{
   if (e.currentTarget == next)
dispatchEvent(new Event("NextEvent", true));
   else
dispatchEvent(new Event("PreviousEvent", true));

}





HTH.
cheers,
  - shaun








Re: [flexcoders] newbie question

2008-04-16 Thread Luke Vanderfluit
Hi Gordon.


Gordon Smith wrote:
>>  How do I allow the user to navigate from one page to the next?
> 
>  
> 
> You'd generally use a ViewStack if the pages have little UI in common 
> with each other. Use states if they have a lot in common. You can also 
> mix and match, using a ViewStack for part of the screen, etc.
> 
> A ViewStack shows 1 of N of its child views. You change which child it 
> displays by setting its selectedChild or selectedIndex property.

Thanks very much for your reply...

I have a component that displays a form (currently in 
selectedIndex 0), from this component I want the click to send me 
to ViewStack.selectedIndex 1.

Is there something like parent.selectedIndex?
Access the ViewStack (that contains the component as one of its 
children) directly from the component doesnt work.



How would I do that?

Kind regards.
Luke.

> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 
> 
> 
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Luke Vanderfluit
> *Sent:* Wednesday, April 16, 2008 5:49 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] newbie question
> 
>  
> 
> Hi.
> 
> Im relatively new to flex and am writing an application at work
> using flex! Yes!
> 
> I want to get a log in page working in flex.
> Doing this in html/jsp one would create a page, submit the page
> and (if credentials are good) move to the next page.
> 
> In flex, the concept of reloading pages is non-existent, I believe.
> So I know how to connect to a server from a flex client to test
> the user credentials...
> The question is:
> How do I allow the user to navigate from one page to the next?
> (I am currently using states. Is that the way?)
> 
> My submit button will call an actionscript function that will
> test the credentials, but it should also put the user into the
> next step of the application, what is the accepted way of doing this?
> 
> Thanks.
> Kind regards.
> 
> -- 
> Luke Vanderfluit
> Analyst / Web Programmer
> e3Learning.com.au
> 08 8221 6422
> 
> 


-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422


RE: [flexcoders] newbie question

2008-04-16 Thread Gordon Smith
> How do I allow the user to navigate from one page to the next?

 

You'd generally use a ViewStack if the pages have little UI in common
with each other. Use states if they have a lot in common. You can also
mix and match, using a ViewStack for part of the screen, etc.

 

A ViewStack shows 1 of N of its child views. You change which child it
displays by setting its selectedChild or selectedIndex property.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Luke Vanderfluit
Sent: Wednesday, April 16, 2008 5:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] newbie question

 

Hi.

Im relatively new to flex and am writing an application at work 
using flex! Yes!

I want to get a log in page working in flex.
Doing this in html/jsp one would create a page, submit the page 
and (if credentials are good) move to the next page.

In flex, the concept of reloading pages is non-existent, I believe.
So I know how to connect to a server from a flex client to test 
the user credentials...
The question is:
How do I allow the user to navigate from one page to the next?
(I am currently using states. Is that the way?)

My submit button will call an actionscript function that will 
test the credentials, but it should also put the user into the 
next step of the application, what is the accepted way of doing this?

Thanks.
Kind regards.

-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422

 



[flexcoders] newbie question

2008-04-16 Thread Luke Vanderfluit
Hi.

Im relatively new to flex and am writing an application at work 
using flex! Yes!

I want to get a log in page working in flex.
Doing this in html/jsp one would create a page, submit the page 
and (if credentials are good) move to the next page.

In flex, the concept of reloading pages is non-existent, I believe.
So I know how to connect to a server from a flex client to test 
the user credentials...
The question is:
How do I allow the user to navigate from one page to the next?
(I am currently using states. Is that the way?)

My submit button will call an actionscript function that will 
test the credentials, but it should also put the user into the 
next step of the application, what is the accepted way of doing this?

Thanks.
Kind regards.


-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422


[flexcoders] [newbie] Numbered list support in RichTextEditor?

2008-04-13 Thread Scott Finnie
Hello,

Am looking for numbered list support but standard component only seems
to support unnumbered (bulleted) lists. Wondering about options:

 . Any 3rd party components?
 . Any advice on extending existing?

Thx,
Scott. 



[flexcoders] Newbie, RemoteObject with ActionScript

2008-03-29 Thread bennybobw
Hi All,
I'm trying to get the following remoteObject working with
Actionscript. When I use the mxml it works great. But when I compile
with the actionscript, removing mxml I get an error "Method does not
exist." This doesn't make a lot of sense to me...
I've also tried views.addEventListener(ResultEvent.RESULT, onViewsResult);

Still, no dice. I'm struggling to understand how the two are different.

Thanks for your help.

-bennybobw


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

  

  

  


  











  




[flexcoders] Newbie Question - TextArea, RichTextboxEditor.

2008-03-29 Thread khan.ibraheem
I am a newbie and am learning this technology. Here is what I want. I
want a textarea in which I can color,font of text. That is I can the
color, font of any text in the TEXTAREA programmability. As far as I
know I can not achieve this through textarea because it allows to
change the color,font of selected text. 

So, I thought of using RichTextboxEditor. However, I just need a
simple textarea and not the toolbar, header and other controls visible
in RichTextboxEditor. I have hide the toolbar and header of
RichTextboxEditor but the size of textarea(in RichTextboxEditor) is
not equivalent to the size of RichTextboxEditor. 

Can anyone please help. I would be really thankful to him/her.

Regards.






[flexcoders] Newbie question - Dialog box

2008-03-04 Thread ivovnenko
Hi!
I have a flex app running on a webpage. How can i display a dialog box
that will contain some formated text, maybe an image, button
OK(optional) and a cross-button(in upper-right corner, to close it).
Alert.show() doesn't allow formatted text AFAIK.
Here is the example of what i need:



Re: [flexcoders] Newbie Question - Random position in an array

2008-03-03 Thread Sean Scott
Maciek thanks for clearing that up, but in this case the array being access
was created with known values.  so no possibility of sparsity.

On Mon, Mar 3, 2008 at 10:27 AM, Maciek Sakrejda <[EMAIL PROTECTED]>
wrote:

>   Note that this will break on sparse arrays, though. In Flex, it's
> perfectly valid to have something like
>
> var foo:Array = [];
> foo[0] = 2;
> foo[3] = 5;
>
> This array has length 4, but only two elements. Elements 1 and 2
> evaluate to 'undefined'. I'm not sure if there's an easy way to pick a
> random element out of a sparse array. If you want something
> unscientific, I suppose you can just increment the randomly chosen index
> until you find something. Or randomly pick again (although with *really*
> sparse arrays, this could theoretically be a perf problem).
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>
>
> -Original Message-
> From: Sean Scott <[EMAIL PROTECTED] >
> Reply-To: flexcoders@yahoogroups.com 
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Newbie Question - Random position in an array
> Date: Sat, 1 Mar 2008 22:55:49 -0600
>
> Sherif,
>
> Thanks i ended up with var randSeed:Number = new
> Number(Math.floor(Math.random() * this.techniColors.length));
>
> On Sat, Mar 1, 2008 at 9:48 PM, Sherif Abdou <[EMAIL 
> PROTECTED]
> >
> wrote:
> something like this should work
>
> var randomNumber:int = Math.Random * myArray.length;
>
> then do something like myArray[randomNumber] whatever
>
>
>
>
> - Original Message 
> From: Sean Scott <[EMAIL PROTECTED] >
> To: flexcoders@yahoogroups.com 
> Sent: Saturday, March 1, 2008 9:39:39 PM
> Subject: [flexcoders] Newbie Question - Random position in an
> array
>
> Hi folks, wondering if someone has a function that returns a
> random position from an array.
>
> Thanks from a newbie,
>
>
>
>
>
>
>
> __
> Never miss a thing. Make Yahoo your homepage.
>
>  
>


Re: [flexcoders] Newbie Question - Random position in an array

2008-03-03 Thread Maciek Sakrejda
Note that this will break on sparse arrays, though. In Flex, it's
perfectly valid to have something like

var foo:Array = [];
foo[0] = 2;
foo[3] = 5;

This array has length 4, but only two elements. Elements 1 and 2
evaluate to 'undefined'. I'm not sure if there's an easy way to pick a
random element out of a sparse array. If you want something
unscientific, I suppose you can just increment the randomly chosen index
until you find something. Or randomly pick again (although with *really*
sparse arrays, this could theoretically be a perf problem).
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Sean Scott <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Newbie Question - Random position in an array
Date: Sat, 1 Mar 2008 22:55:49 -0600

Sherif,

Thanks i ended up with var randSeed:Number = new
Number(Math.floor(Math.random() * this.techniColors.length));



On Sat, Mar 1, 2008 at 9:48 PM, Sherif Abdou <[EMAIL PROTECTED]>
wrote:
something like this should work

var randomNumber:int = Math.Random * myArray.length;

then do something like myArray[randomNumber] whatever




- Original Message 
From: Sean Scott <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 9:39:39 PM
Subject: [flexcoders] Newbie Question - Random position in an
array

Hi folks, wondering if someone has a function that returns a
random position from an array.

Thanks from a newbie,








Never miss a thing. Make Yahoo your homepage. 


 




Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sean Scott
Sherif,

Thanks i ended up with var randSeed:Number = new Number(Math.floor(
Math.random() * this.techniColors.length));

On Sat, Mar 1, 2008 at 9:48 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>   something like this should work
>
> var randomNumber:int = Math.Random * myArray.length;
>
> then do something like myArray[randomNumber] whatever
>
>
> - Original Message 
> From: Sean Scott <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Saturday, March 1, 2008 9:39:39 PM
> Subject: [flexcoders] Newbie Question - Random position in an array
>
>  Hi folks, wondering if someone has a function that returns a random
> position from an array.
>
> Thanks from a newbie,
>
>
> --
> Never miss a thing. Make Yahoo your 
> homepage.<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>
> 
>


Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sherif Abdou
something like this should work
var randomNumber:int = Math.Random * myArray.length;
then do something like myArray[randomNumber] whatever



- Original Message 
From: Sean Scott <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 9:39:39 PM
Subject: [flexcoders] Newbie Question - Random position in an array

Hi folks, wondering if someone has a function that returns a random position 
from an array.

Thanks from a newbie,

 


  

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


[flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sean Scott
Hi folks, wondering if someone has a function that returns a random position
from an array.

Thanks from a newbie,


[flexcoders] newbie: pushing data changes back to server

2008-02-04 Thread andrew_sinning
I've been working with Flash in AS2 for quite a while, but so far I've
only just worked through the tutorials in Flex.  The examples show how
to display xml data.  Now I need to modify data, add records (nodes),
and post changes back to the server.

In one of the examples, the data in an rss feed is displayed in a
DataGrid.  When you select a row in the DataGrid a detail about the
selectedItem are displayed in a TextArea using data-binding.

Let's assume that the data is something other than an RSS feed, e.g. a
list of dogs at a kennel.

So, how do I make changes to the text in the TextArea get bound back
to the selectedItem in the DataGrid?

How do I add a new item to the data in the DataGrid?

How do I push these changes back to the server?

I know I'm asking a lot, but I'm itching to get started and I'm just
stuck.

Thanks!





Re: [flexcoders] newbie questions about

2008-01-26 Thread [p e r c e p t i c o n]
thanks Sherif

On Jan 25, 2008 8:10 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>   
>
> remb targets and it takes an array of them
>
> - Original Message 
> From: [p e r c e p t i c o n] <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, January 25, 2008 4:08:53 PM
> Subject: [flexcoders] newbie questions about 
>
>  Hi All,
> I have a question concerning the Move tag/object.. ..
> i'm wondering how to move multiple objects... in my attributes i use
> target to move one object, but can't seem to move multiple objects by using
> the targets attribute... can anyone point me in the right direction
>
> many thanks
>
> p
>
>
> --
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
> 
>


Re: [flexcoders] newbie questions about

2008-01-25 Thread Sherif Abdou


remb targets and it takes an array of them


- Original Message 
From: [p e r c e p t i c o n] <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, January 25, 2008 4:08:53 PM
Subject: [flexcoders] newbie questions about 

Hi All,
I have a question concerning the Move tag/object.. ..
i'm wondering how to move multiple objects... in my attributes i use target to 
move one object, but can't seem to move multiple objects by using the targets 
attribute... can anyone point me in the right direction

many thanks

p




  

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


[flexcoders] newbie questions about

2008-01-25 Thread [p e r c e p t i c o n]
Hi All,
I have a question concerning the Move tag/object
i'm wondering how to move multiple objects... in my attributes i use target
to move one object, but can't seem to move multiple objects by using the
targets attribute...can anyone point me in the right direction

many thanks

p


[flexcoders] Newbie : Flex Hosting Question

2008-01-04 Thread hardikpandya2000
Hello FlexCoders,

I am newbie to Flex and have a very basic question

I need to make Flex Application with Mysql + JSP, what do I need to 
host this kind of application live.

What are the options / alternatives ?

I would really appreciate any help and suggestions.

Thank you all in advance,

Hardik






RE: [flexcoders] Newbie XML to ArrayCollection Confusion

2007-12-31 Thread Tracy Spratt
You can't convert directly, unless you use
resultFormat="object"(default), which converts your sml into a nested
dynamic object structure.  But you have no control over this conversion,
and it can have some side-effects, particularly with data type
conversions.

 

People often convert xml into an ArrayCollection of strongly typed
objects, because accessing strongly typed pbjects is significantly
faster than accessing XML, which this can help performance with very
large data displays (hundreds of renderers).  You will need to loop over
the XMLList (xmlData.score), and build the value object items and add
them to the ArrayCollection manually.

 

But, why not simply use XMLListCollection?

hScores = new XMLListCollection(xmlData.score);

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of t_singe
Sent: Sunday, December 30, 2007 12:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie XML to ArrayCollection Confusion

 

I'm hoping someone can help explain how to retrieve an XML doc via
webservice and then create an ArrayCollection from it. Using the code
and xml below, I am able to retrieve the xml alright and access the
nodes, but when I attempt to convert the xml object to an array I end
up with a single element array. 

My xml document looks like:
 
- 
4 
1 
2 
3 
5 
0 
9 
6 
8 
7 


My webservice event handler looks like:
public function hScoresHandler(event:ResultEvent):void {
var xmlResult:XML ;
var hScores = new ArrayCollection(); 

xmlResult = new XML(event.result);

// This properly outputs the entire XML document
trace(xmlResult);

// These properly output the content from different nodes in the
// XMLM document
trace("first (0) position: " + xmlResult.score[0]);
trace("five position: " + xmlResult.score[5]);
trace("five position: " + [EMAIL PROTECTED]);

// Convert XML to Array
hScores = ArrayUtil.toArray(xmlResult);

// For some reason this outputs a null string
trace(hScores);

// Why is the length only one?
trace("length: " + hScores.length);
}

 



RE: [flexcoders] Newbie Flex Application

2007-12-31 Thread Tracy Spratt
Code looks ok on quick skim.  What is not working?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of obi.wasabi
Sent: Saturday, December 29, 2007 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie Flex Application

 

Hi,

This is my first, perhaps ambitious FLEX application. The object is
building a DVD catalog. 

The form uses:
Text Inputs
Combo Box
Text Area
Radio Buttons

I could use assistance with Getting the Field Data into XML, then
Putting the XML file for 
use as the DataProvider for a Datagrid(View)



http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " layout="absolute" 
viewSourceURL="srcview/index.html">

Label{fontFamily: Verdana; fontSize: 10pt; fontWeight: bold;}













Action
Sci-Fi
Drama
Foreign
Comedy
Horror
Children's
Romance








 
 






 

 











 

 






















 



[flexcoders] Newbie XML to ArrayCollection Confusion

2007-12-30 Thread t_singe
I'm hoping someone can help explain how to retrieve an XML doc via
webservice and then create an ArrayCollection from it.  Using the code
and xml below, I am able to retrieve the xml alright and access the
nodes, but when I attempt to convert the xml object to an array I end
up with a single element array.  

My xml document looks like:
   
- 
 4 
 1 
 2 
 3 
 5 
 0 
 9 
 6 
 8 
 7 
  

My webservice event handler looks like:
public function hScoresHandler(event:ResultEvent):void {
   var xmlResult:XML ;
   var hScores = new ArrayCollection();   

   xmlResult = new XML(event.result);
   
   // This properly outputs the entire XML document
   trace(xmlResult);
   
   // These properly output the content from different nodes in the
   // XMLM document
   trace("first (0) position: " + xmlResult.score[0]);
   trace("five position: " + xmlResult.score[5]);
   trace("five position: " + [EMAIL PROTECTED]);

   // Convert XML to Array
   hScores = ArrayUtil.toArray(xmlResult);

   // For some reason this outputs a null string
   trace(hScores);
   
   // Why is the length only one?
   trace("length: " + hScores.length);
}





[flexcoders] Newbie Flex Application

2007-12-30 Thread obi.wasabi
Hi,

This is my first, perhaps ambitious FLEX application. The object is building a 
DVD catalog. 

The form uses:
Text Inputs
Combo Box
Text Area
Radio Buttons


I could use assistance with Getting the Field Data into XML, then Putting the 
XML file for 
use as the DataProvider for a Datagrid(View)




http://www.adobe.com/2006/mxml"; layout="absolute" 
viewSourceURL="srcview/index.html">

Label{fontFamily: Verdana; fontSize: 10pt; fontWeight: bold;}













Action
Sci-Fi
Drama
Foreign
Comedy
Horror
Children's
Romance








   
  





   
 

   









   

 


























[flexcoders] Newbie: Update color in states

2007-12-07 Thread mlharrisn
I have a couple of states defined in my MXML and I want to change the
color values - preferably data bind them to a variable. But when I do,
I get a compiler error #1119:Access of possibly undefined property.
Does anyone know how I can get the value from my ActionScript to these
states? I'm assuming its a scoping issue

























RE: [flexcoders] Newbie compile issue rattling my brain

2007-11-27 Thread Seth Caldwell
I have an idea, but not sure. When I pasted your code, I noticed end of line
characters in some of your strings. 

For example:



This should be



 

I cleaned it, compiled it, and ran it. All was good.

However, I also changed it from an Mx:Module to an Mx:Canvas, and then
dropped it in my main application.

Hope this helps,

Seth

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mcaplan_labnet
Sent: Tuesday, November 27, 2007 9:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie compile issue rattling my brain

 

Hi there,

I'm learning the ropes of Flex. I have a pretty much textbook example
of how to set up a datagrid that is resulting in compile time syntax
errors. I can't for the life of me see the error.

Any ideas?

Thanks!

mike

Severity and Description Path Resource Location Creation Time Id
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 851
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 854
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 857
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 860
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 863
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214531 850
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 853
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 856
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 859
1084: Syntax error: expecting identifier before case.
labnet/src/modules cases_list.mxml line 7 1196183214547 862
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 852
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 855
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 858
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 861
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules cases_list.mxml line 7 1196183214547 864


http://www.adobe.com/2006/mxml"; layout="absolute"
width="100%" height="100%">























 



Re: [flexcoders] Newbie compile issue rattling my brain

2007-11-27 Thread Aaron Miller
I think you need define your list in an  (inside the source block)
since this is the type of the ArrayCollection.source property. I could be
wrong though, I usually don't define data in MXML.

Regards,
...aaron

On 11/27/07, mcaplan_labnet <[EMAIL PROTECTED]> wrote:
>
>   Hi there,
>
> I'm learning the ropes of Flex. I have a pretty much textbook example
> of how to set up a datagrid that is resulting in compile time syntax
> errors. I can't for the life of me see the error.
>
> Any ideas?
>
> Thanks!
>
> mike
>
> Severity and Description Path Resource Location Creation Time Id
> 1084: Syntax error: expecting colon before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 851
> 1084: Syntax error: expecting colon before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 854
> 1084: Syntax error: expecting colon before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 857
> 1084: Syntax error: expecting colon before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 860
> 1084: Syntax error: expecting colon before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 863
> 1084: Syntax error: expecting identifier before case.
> labnet/src/modules cases_list.mxml line 7 1196183214531 850
> 1084: Syntax error: expecting identifier before case.
> labnet/src/modules cases_list.mxml line 7 1196183214547 853
> 1084: Syntax error: expecting identifier before case.
> labnet/src/modules cases_list.mxml line 7 1196183214547 856
> 1084: Syntax error: expecting identifier before case.
> labnet/src/modules cases_list.mxml line 7 1196183214547 859
> 1084: Syntax error: expecting identifier before case.
> labnet/src/modules cases_list.mxml line 7 1196183214547 862
> 1084: Syntax error: expecting identifier before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 852
> 1084: Syntax error: expecting identifier before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 855
> 1084: Syntax error: expecting identifier before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 858
> 1084: Syntax error: expecting identifier before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 861
> 1084: Syntax error: expecting identifier before rightbrace.
> labnet/src/modules cases_list.mxml line 7 1196183214547 864
>
> 
> http://www.adobe.com/2006/mxml"; layout="absolute"
> width="100%" height="100%">
>  title="Cases">
> 
> 
> 
> 
>  arrival="2007/12/02" delivery="2007/12/16" />
>  arrival="2007/12/03" delivery="2007/12/17" />
> 
>  arrival="2007/12/05" delivery="2007/12/19" />
> 
> 
> 
> 
> 
> 
>  dataField="patient"/>
>  dataField="arrival"/>
>  dataField="delivery" />
> 
> 
> 
> 
>
>  
>



-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


[flexcoders] Newbie compile issue rattling my brain

2007-11-27 Thread mcaplan_labnet
Hi there,

I'm learning the ropes of Flex.  I have a pretty much textbook example
of how to set up a datagrid that is resulting in compile time syntax
errors.  I can't for the life of me see the error.

Any ideas?


Thanks!

mike


Severity and DescriptionPathResourceLocation
Creation Time   Id
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   851
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   854
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   857
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   860
1084: Syntax error: expecting colon before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   863
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214531   850
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   853
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   856
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   859
1084: Syntax error: expecting identifier before case.
labnet/src/modules  cases_list.mxml line 7  1196183214547   862
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   852
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   855
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   858
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   861
1084: Syntax error: expecting identifier before rightbrace.
labnet/src/modules  cases_list.mxml line 7  1196183214547   864



http://www.adobe.com/2006/mxml"; layout="absolute"
width="100%" height="100%">

























[flexcoders] Newbie needs advice with writing data

2007-10-17 Thread Andy Gaffney
Hi all, hope you can help.

I have just started learning Flex and I want to prove an essential  
Component of my Application.

I  need to be able to have a View where the user can add their images  
& captions to the Model.
What is the simplest way of doing this?

I think I need a web service to do this, but since I am making a  
"Kiosk" application, I think Iwill need to
use localhost with some scripting.  I haven't done any back-end work  
since CGI/Perl so I am looking
for a solution that will be easy to learn and implement.

Thanks for your thoughts.

Andy






RE: [flexcoders] Newbie Focus on Result Question

2007-10-02 Thread Alex Harui
set verticalScrollPosition on the form.
 
Other folks shrink the datagrid and grow the form so it doesn't have
scrollbars then reverse when the user is "done" with the form.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of its_llpj
Sent: Tuesday, October 02, 2007 8:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie Focus on Result Question



Hello,

I have a datagrid and underneath the datagrid I'm using a Form to
display the entire record. When I click on a cell in the datagrid it
shows the data in the form, but you have to manually scroll down to
view the information. I would like to scroll down the page and focus
to the Form to show the rest of the record. This way I can keep the
datagrid reasonably small. 

Thanks!



 


[flexcoders] Newbie Focus on Result Question

2007-10-02 Thread its_llpj
Hello,

I have a datagrid and underneath the datagrid I'm using a Form to
display the entire record. When I click on a cell in the datagrid it
shows the data in the form, but you have to manually scroll down to
view the information. I would like to scroll down the page and focus
to the Form to show the rest of the record. This way I can keep the
datagrid reasonably small. 

Thanks!






RE: [flexcoders] newbie

2007-09-06 Thread Mathe Maema
Thank you. will do that and see what happens.

Tracy Spratt <[EMAIL PROTECTED]> wrote:  Get your filtering code 
working without the event and custom event object.  I think you need to have a 
better understanding how filtering works.  Review the docs if needed.
  
  Tracy
  
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mathe 
Maema
Sent: Thursday, September 06, 2007 4:51 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie

  
  I am sorry but I am slow. By applying the filter in the main instance 
variable, are you suggesting that I put it somewhere within this function?



private function accommodationLocatorResultHandler(event:ResultEvent):void
 {
var lodgings:ArrayCollection = 
event.result.accommodations.accommodation;
   var temp:ArrayCollection = new ArrayCollection();
   var cursor:IViewCursor = lodgings.createCursor();
   var filter:AccommodationFilter = new AccommodationFilter();
 
while (!cursor.afterLast)
{
var accommodation:Accommodation = new Accommodation();
accommodation.fill(cursor.current); 
temp.addItem(accommodation);
cursor.moveNext();
}
  
   accommodations = temp;

}

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Call it in the result handler.

Either apply the filter to the main instance level variable 
“accomodations”, or do as you have and then assign selectedAccoms to the 
dataGrid dataProvider.

Tracy

  
-
  
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Mathe Maema
Sent: Wednesday, September 05, 2007 6:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie


This is the function I thought of introducing.  I didn't introduce 
it because I couldn't really work out how it would be called if I wanted data 
to be updated automatically i.e. without a button click or something like that. 


  [Bindable]
   private var selectedAccoms:ArrayCollection;
   public function updateGrid():void
   {
   selectedAccoms = new ArrayCollection(accommodations);
   //selectedAccoms.filterFunction =;
   selectedAccoms.refresh();
   dgAccom.dataProvider = selectedAccoms;
   }

Tracy Spratt <[EMAIL PROTECTED]> wrote:


  Does your handler get called? Does it contain the reference you 
need? How are you applying the filter?  Are you calling refresh()?


  Tracy


  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Mathe Maema
Sent: Wednesday, September 05, 2007 5:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie



  Main





//sending data methods using httpservice to say var accommodations






SearchView


[Bindable]
public var lodgings:ArrayCollections;

 





filterComp
//assume it has 2 checkboxes: chk1 and chk2 which call
// dispatchFilter() when clicked
private function dispatchFilter():void
{
var event:FilterEvent = 
new FilterEvent(filter, checked); //filter hold values of 
selection of chk1 & chk2
dispatchEvent(event);
}

filterEvent.as comstructor
public function FilterEvent(filter:MyFilter, live:Boolean)
{
super(FILTER);
this.filter = filter;
this.live = live;
}
MyFilter.as
public function accept(accommodation:Accommodation):Boolean
{
  
if (graded && !accommodation.graded)
 return false;
if (backpacker && !accommodation.backpacker)
 return false;
return true;
  }



Above is my abbreviated code. I think my problem is that I am unsure 
about how to get the result data after filtering. In my mind the filtering 
function is working on the data retrieved using httpservice...but I havent 
actually cracked that part well...at one point I thought of introducing a 
function for capturing selected data.

Tracy Spratt <[EMAIL PROTECTED]> wrote:



Ok, that is reasonable, what does not work?  Does your handler 
get called? Does it contain the reference you need?  How are you updating the 
dataProvider?



Tracy



  
-
  
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Mathe Maema
Sent: Wednesday, September 05, 2007 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie




I have two pages. The first is the main. In the main I load my  
xml data as follows using Httpservice. I pass this data to the second page as 
follows: 




  




  // accommodations has been declared public

RE: [flexcoders] newbie

2007-09-06 Thread Tracy Spratt
Get your filtering code working without the event and custom event
object.  I think you need to have a better understanding how filtering
works.  Review the docs if needed.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathe Maema
Sent: Thursday, September 06, 2007 4:51 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie

 

I am sorry but I am slow. By applying the filter in the main instance
variable, are you suggesting that I put it somewhere within this
function?

 

private function
accommodationLocatorResultHandler(event:ResultEvent):void
 {
var lodgings:ArrayCollection =
event.result.accommodations.accommodation;
   var temp:ArrayCollection = new ArrayCollection();
   var cursor:IViewCursor = lodgings.createCursor();
   var filter:AccommodationFilter = new AccommodationFilter();
 
while (!cursor.afterLast)
{
var accommodation:Accommodation = new Accommodation();
accommodation.fill(cursor.current); 
temp.addItem(accommodation);
cursor.moveNext();
}
  
   accommodations = temp;

}

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Call it in the result handler.

Either apply the filter to the main instance level variable
"accomodations", or do as you have and then assign selectedAccoms to the
dataGrid dataProvider.

Tracy






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 6:57 PM
To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] newbie

This is the function I thought of introducing.  I didn't
introduce it because I couldn't really work out how it would be called
if I wanted data to be updated automatically i.e. without a button click
or something like that. 

[Bindable]
   private var selectedAccoms:ArrayCollection;
   public function updateGrid():void
   {
   selectedAccoms = new ArrayCollection(accommodations);
   //selectedAccoms.filterFunction =;
   selectedAccoms.refresh();
   dgAccom.dataProvider = selectedAccoms;
   }

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Does your handler get called? Does it contain the
reference you need? How are you applying the filter?  Are you calling
refresh()?

Tracy






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 5:54 PM
To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] newbie

Main



//sending data methods using httpservice to say var
accommodations




SearchView


[Bindable]
public var lodgings:ArrayCollections;

 



filterComp
//assume it has 2 checkboxes: chk1 and chk2 which call
// dispatchFilter() when clicked
private function dispatchFilter():void
{
var event:FilterEvent = 
new FilterEvent(filter, checked);
//filter hold values of selection of chk1 & chk2
dispatchEvent(event);
}

filterEvent.as comstructor
public function FilterEvent(filter:MyFilter,
live:Boolean)
{
super(FILTER);
this.filter = filter;
this.live = live;
}
MyFilter.as
public function
accept(accommodation:Accommodation):Boolean
{
  
if (graded && !accommodation.graded)
 return false;
if (backpacker && !accommodation.backpacker)
 return false;
return true;
  }

Above is my abbreviated code. I think my problem is that
I am unsure about how to get the result data after filtering. In my mind
the filtering function is working on the data retrieved using
httpservice...but I havent actually cracked that part well...at one
point I thought of introducing a function for capturing selected
data.

  

RE: [flexcoders] newbie

2007-09-06 Thread Mathe Maema
I am sorry but I am slow. By applying the filter in the main instance variable, 
are you suggesting that I put it somewhere within this function?
   
  private function accommodationLocatorResultHandler(event:ResultEvent):void
 {
var lodgings:ArrayCollection = 
event.result.accommodations.accommodation;
   var temp:ArrayCollection = new ArrayCollection();
   var cursor:IViewCursor = lodgings.createCursor();
   var filter:AccommodationFilter = new AccommodationFilter();
 
while (!cursor.afterLast)
{
var accommodation:Accommodation = new Accommodation();
accommodation.fill(cursor.current); 
temp.addItem(accommodation);
cursor.moveNext();
}
  
   accommodations = temp;

}

Tracy Spratt <[EMAIL PROTECTED]> wrote:
  Call it in the result handler.
  
  Either apply the filter to the main instance level variable “accomodations”, 
or do as you have and then assign selectedAccoms to the dataGrid dataProvider.
  
  Tracy
  
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mathe 
Maema
Sent: Wednesday, September 05, 2007 6:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie

  
  This is the function I thought of introducing.  I didn't introduce it 
because I couldn't really work out how it would be called if I wanted data to 
be updated automatically i.e. without a button click or something like that. 

[Bindable]
   private var selectedAccoms:ArrayCollection;
   public function updateGrid():void
   {
   selectedAccoms = new ArrayCollection(accommodations);
   //selectedAccoms.filterFunction =;
   selectedAccoms.refresh();
   dgAccom.dataProvider = selectedAccoms;
   }

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Does your handler get called? Does it contain the reference you 
need? How are you applying the filter?  Are you calling refresh()?

Tracy

  
-
  
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Mathe Maema
Sent: Wednesday, September 05, 2007 5:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie


Main


  

//sending data methods using httpservice to say var accommodations





  SearchView


[Bindable]
public var lodgings:ArrayCollections;

 




  filterComp
//assume it has 2 checkboxes: chk1 and chk2 which call
// dispatchFilter() when clicked
private function dispatchFilter():void
{
var event:FilterEvent = 
new FilterEvent(filter, checked); //filter hold values of 
selection of chk1 & chk2
dispatchEvent(event);
}

filterEvent.as comstructor
public function FilterEvent(filter:MyFilter, live:Boolean)
{
super(FILTER);
this.filter = filter;
this.live = live;
}
MyFilter.as
public function accept(accommodation:Accommodation):Boolean
{
  
if (graded && !accommodation.graded)
 return false;
if (backpacker && !accommodation.backpacker)
 return false;
return true;
  }


  Above is my abbreviated code. I think my problem is that I am unsure 
about how to get the result data after filtering. In my mind the filtering 
function is working on the data retrieved using httpservice...but I havent 
actually cracked that part well...at one point I thought of introducing a 
function for capturing selected data.

Tracy Spratt <[EMAIL PROTECTED]> wrote:


  Ok, that is reasonable, what does not work?  Does your handler 
get called? Does it contain the reference you need?  How are you updating the 
dataProvider?


  Tracy


  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Mathe Maema
Sent: Wednesday, September 05, 2007 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie



  I have two pages. The first is the main. In the main I load my  
xml data as follows using Httpservice. I pass this data to the second page as 
follows: 







// accommodations has been declared publicly in SearchView.mxml and 
accoms is the variable that was used to accept data sent by httpservice.  Once 
the data is passed, I display in the datagrid. All is fine at this stage.



My second step was to attempt to filter the data in the datagrid and 
this is where my trouble began. I have two actionscript files one is for 
carrying out the filtering and the other is for the filterEvent. oh by the way 
there is yet another actionscript file which is essentially the class file for 
accommodations.  At this point, the following sequence of events can take place:




   a cli

RE: [flexcoders] newbie

2007-09-05 Thread Tracy Spratt
Call it in the result handler.

 

Either apply the filter to the main instance level variable
"accomodations", or do as you have and then assign selectedAccoms to the
dataGrid dataProvider.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 6:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie

 

This is the function I thought of introducing.  I didn't introduce it
because I couldn't really work out how it would be called if I wanted
data to be updated automatically i.e. without a button click or
something like that. 

[Bindable]
   private var selectedAccoms:ArrayCollection;
   public function updateGrid():void
   {
   selectedAccoms = new ArrayCollection(accommodations);
   //selectedAccoms.filterFunction =;
   selectedAccoms.refresh();
   dgAccom.dataProvider = selectedAccoms;
   }

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Does your handler get called? Does it contain the reference you
need? How are you applying the filter?  Are you calling refresh()?

Tracy






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 5:54 PM
To: flexcoders@yahoogroups.com
    Subject: RE: [flexcoders] newbie

Main



//sending data methods using httpservice to say var
accommodations




SearchView


[Bindable]
public var lodgings:ArrayCollections;

 



filterComp
//assume it has 2 checkboxes: chk1 and chk2 which call
// dispatchFilter() when clicked
private function dispatchFilter():void
{
var event:FilterEvent = 
new FilterEvent(filter, checked); //filter hold
values of selection of chk1 & chk2
dispatchEvent(event);
}

filterEvent.as comstructor
public function FilterEvent(filter:MyFilter, live:Boolean)
{
super(FILTER);
this.filter = filter;
this.live = live;
}
MyFilter.as
public function accept(accommodation:Accommodation):Boolean
{
  
if (graded && !accommodation.graded)
 return false;
if (backpacker && !accommodation.backpacker)
 return false;
return true;
  }

Above is my abbreviated code. I think my problem is that I am
unsure about how to get the result data after filtering. In my mind the
filtering function is working on the data retrieved using
httpservice...but I havent actually cracked that part well...at one
point I thought of introducing a function for capturing selected
data.

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Ok, that is reasonable, what does not work?  Does your
handler get called? Does it contain the reference you need?  How are you
updating the dataProvider?

Tracy






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie

I have two pages. The first is the main. In the main I
load my  xml data as follows using Httpservice. I pass this data to the
second page as follows: 



// accommodations has been declared publicly in
SearchView.mxml and accoms is the variable that was used to accept data
sent by httpservice.  Once the data is passed, I display in the
datagrid. All is fine at this stage.

My second step was to attempt to filter the data in the
datagrid and this is where my trouble began. I have two actionscript
files one is for carrying out the filtering and the other is for the
filterEvent. oh by the way there is yet another actionscript file which
is essentially the class file for accommodations.  At this point, the
following sequence of events can take place:

*   a click on a checkbox calls a function
dispatchFilter
*   the dispatch filter creates an instance of class
filterevent and dispatches the event
*   the dispatched event takes as its parameter
instance of the filter class and thus reviews what has been checked or
unchecked..

I tried using a get function but a while I realised that
I miss something relating to passing data between components.


   

RE: [flexcoders] newbie

2007-09-05 Thread Mathe Maema
This is the function I thought of introducing.  I didn't introduce it because I 
couldn't really work out how it would be called if I wanted data to be updated 
automatically i.e. without a button click or something like that. 
  [Bindable]
   private var selectedAccoms:ArrayCollection;
   public function updateGrid():void
   {
   selectedAccoms = new ArrayCollection(accommodations);
   //selectedAccoms.filterFunction =;
   selectedAccoms.refresh();
   dgAccom.dataProvider = selectedAccoms;
   }

Tracy Spratt <[EMAIL PROTECTED]> wrote:
  Does your handler get called? Does it contain the reference you 
need? How are you applying the filter?  Are you calling refresh()?
  Tracy
  
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mathe 
Maema
Sent: Wednesday, September 05, 2007 5:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie

  
  Main



//sending data methods using httpservice to say var accommodations






SearchView


[Bindable]
public var lodgings:ArrayCollections;

 





filterComp
//assume it has 2 checkboxes: chk1 and chk2 which call
// dispatchFilter() when clicked
private function dispatchFilter():void
{
var event:FilterEvent = 
new FilterEvent(filter, checked); //filter hold values of 
selection of chk1 & chk2
dispatchEvent(event);
}

filterEvent.as comstructor
public function FilterEvent(filter:MyFilter, live:Boolean)
{
super(FILTER);
this.filter = filter;
this.live = live;
}
MyFilter.as
public function accept(accommodation:Accommodation):Boolean
{
  
if (graded && !accommodation.graded)
 return false;
if (backpacker && !accommodation.backpacker)
 return false;
return true;
  }



Above is my abbreviated code. I think my problem is that I am unsure about 
how to get the result data after filtering. In my mind the filtering function 
is working on the data retrieved using httpservice...but I havent actually 
cracked that part well...at one point I thought of introducing a function for 
capturing selected data.

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Ok, that is reasonable, what does not work?  Does your handler get 
called? Does it contain the reference you need?  How are you updating the 
dataProvider?

Tracy

  
-
  
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Mathe Maema
Sent: Wednesday, September 05, 2007 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie


I have two pages. The first is the main. In the main I load my  xml 
data as follows using Httpservice. I pass this data to the second page as 
follows: 


  


  // accommodations has been declared publicly in SearchView.mxml and 
accoms is the variable that was used to accept data sent by httpservice.  Once 
the data is passed, I display in the datagrid. All is fine at this stage.


  My second step was to attempt to filter the data in the datagrid and this 
is where my trouble began. I have two actionscript files one is for carrying 
out the filtering and the other is for the filterEvent. oh by the way there is 
yet another actionscript file which is essentially the class file for 
accommodations.  At this point, the following sequence of events can take place:



   a click on a checkbox calls a function dispatchFilter  
   the dispatch filter creates an instance of class filterevent and dispatches 
the event  
   the dispatched event takes as its parameter instance of the filter class and 
thus reviews what has been checked or unchecked..
  I tried using a get function but a while I realised that I miss something 
relating to passing data between components.


  
Tom Chiverton <[EMAIL PROTECTED]> wrote:


  On Wednesday 05 Sep 2007, [EMAIL PROTECTED] wrote:
> I am sorry no code is included. I really didn't know which part to
> include.

Be specific, and try one part at a time.
What have your tried ? Why didn't it work ?

-- 
Tom Chiverton
Helping to widespreadedly accelerate eigth-generation infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF. A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named

RE: [flexcoders] newbie

2007-09-05 Thread Tracy Spratt
Does your handler get called? Does it contain the reference you need?
How are you applying the filter?  Are you calling refresh()?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 5:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] newbie

 

Main



//sending data methods using httpservice to say var accommodations




 

SearchView


[Bindable]
public var lodgings:ArrayCollections;

 



 

filterComp
//assume it has 2 checkboxes: chk1 and chk2 which call
// dispatchFilter() when clicked
private function dispatchFilter():void
{
var event:FilterEvent = 
new FilterEvent(filter, checked); //filter hold values
of selection of chk1 & chk2
dispatchEvent(event);
}

filterEvent.as comstructor
public function FilterEvent(filter:MyFilter, live:Boolean)
{
super(FILTER);
this.filter = filter;
this.live = live;
}
MyFilter.as
public function accept(accommodation:Accommodation):Boolean
{
  
if (graded && !accommodation.graded)
 return false;
if (backpacker && !accommodation.backpacker)
 return false;
return true;
  }

 

Above is my abbreviated code. I think my problem is that I am unsure
about how to get the result data after filtering. In my mind the
filtering function is working on the data retrieved using
httpservice...but I havent actually cracked that part well...at one
point I thought of introducing a function for capturing selected
data.

Tracy Spratt <[EMAIL PROTECTED]> wrote:

Ok, that is reasonable, what does not work?  Does your handler
get called? Does it contain the reference you need?  How are you
updating the dataProvider?

Tracy






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 2:52 PM
To: flexcoders@yahoogroups.com
    Subject: Re: [flexcoders] newbie

I have two pages. The first is the main. In the main I load my
xml data as follows using Httpservice. I pass this data to the second
page as follows: 



// accommodations has been declared publicly in SearchView.mxml
and accoms is the variable that was used to accept data sent by
httpservice.  Once the data is passed, I display in the datagrid. All is
fine at this stage.

My second step was to attempt to filter the data in the datagrid
and this is where my trouble began. I have two actionscript files one is
for carrying out the filtering and the other is for the filterEvent. oh
by the way there is yet another actionscript file which is essentially
the class file for accommodations.  At this point, the following
sequence of events can take place:

*   a click on a checkbox calls a function dispatchFilter
*   the dispatch filter creates an instance of class
filterevent and dispatches the event
*   the dispatched event takes as its parameter instance of
the filter class and thus reviews what has been checked or unchecked..

I tried using a get function but a while I realised that I miss
something relating to passing data between components.


Tom Chiverton <[EMAIL PROTECTED]> wrote:

On Wednesday 05 Sep 2007, [EMAIL PROTECTED] wrote:
> I am sorry no code is included. I really didn't know
which part to
> include.

Be specific, and try one part at a time.
What have your tried ? Why didn't it work ?

-- 
Tom Chiverton
Helping to widespreadedly accelerate eigth-generation
infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership
registered in England and Wales under registered number OC307980 whose
registered office address is at St James's Court Brown Street Manchester
M2 2JF. A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means a
member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee
named above and may be confidential or legally privileged. If you are
not the addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its exis

RE: [flexcoders] newbie

2007-09-05 Thread Mathe Maema
Main
  

//sending data methods using httpservice to say var accommodations



   
  SearchView


[Bindable]
public var lodgings:ArrayCollections;

 


   
  filterComp
//assume it has 2 checkboxes: chk1 and chk2 which call
// dispatchFilter() when clicked
private function dispatchFilter():void
{
var event:FilterEvent = 
new FilterEvent(filter, checked); //filter hold values of 
selection of chk1 & chk2
dispatchEvent(event);
}

filterEvent.as comstructor
public function FilterEvent(filter:MyFilter, live:Boolean)
{
super(FILTER);
this.filter = filter;
this.live = live;
}
MyFilter.as
public function accept(accommodation:Accommodation):Boolean
{
  
if (graded && !accommodation.graded)
 return false;
if (backpacker && !accommodation.backpacker)
 return false;
return true;
  }
   
  Above is my abbreviated code. I think my problem is that I am unsure about 
how to get the result data after filtering. In my mind the filtering function 
is working on the data retrieved using httpservice...but I havent actually 
cracked that part well...at one point I thought of introducing a function for 
capturing selected data.

Tracy Spratt <[EMAIL PROTECTED]> wrote:
  Ok, that is reasonable, what does not work?  Does your handler 
get called? Does it contain the reference you need?  How are you updating the 
dataProvider?
  Tracy
  
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mathe 
Maema
Sent: Wednesday, September 05, 2007 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie

  
  I have two pages. The first is the main. In the main I load my  xml 
data as follows using Httpservice. I pass this data to the second page as 
follows: 



// accommodations has been declared publicly in SearchView.mxml and accoms 
is the variable that was used to accept data sent by httpservice.  Once the 
data is passed, I display in the datagrid. All is fine at this stage.



My second step was to attempt to filter the data in the datagrid and this 
is where my trouble began. I have two actionscript files one is for carrying 
out the filtering and the other is for the filterEvent. oh by the way there is 
yet another actionscript file which is essentially the class file for 
accommodations.  At this point, the following sequence of events can take place:


   a click on a checkbox calls a function dispatchFilter  
   the dispatch filter creates an instance of class filterevent and dispatches 
the event  
   the dispatched event takes as its parameter instance of the filter class and 
thus reviews what has been checked or unchecked..
I tried using a get function but a while I realised that I miss something 
relating to passing data between components.


Tom Chiverton <[EMAIL PROTECTED]> wrote:

On Wednesday 05 Sep 2007, [EMAIL PROTECTED] wrote:
> I am sorry no code is included. I really didn't know which part to
> include.

Be specific, and try one part at a time.
What have your tried ? Why didn't it work ?

-- 
Tom Chiverton
Helping to widespreadedly accelerate eigth-generation infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF. A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



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





-
  
  For ideas on reducing your carbon footprint visit Yahoo! For Good this month. 




  

 

   
-
 For ideas on reducing your carbon footprint visit Yahoo! For Good this month.

RE: [flexcoders] newbie

2007-09-05 Thread Gordon Smith
If you're writing an app with multiple components, you need a clear
understanding of how each component will reference the others. For
example, if you write
 


...

 
then in the Application script you can refer to searchView to get the
SearchView instance and in the SearchView script you can refer to
parentDocument or application to get the Application instance.
 
If your searchView script has code like
 
private var filter:SearchViewFilter;
 
private someMethod():void
{
...
filter = new SearchViewFilter();
...
}
 
then your searchView can access the SearchViewFilter instance as
'filter'. However, you don't have a back reference from the
SearchViewFilter instance to the SearchView unless you do somethign like
pass 'this' in the constructor and store it.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 11:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie



I have two pages. The first is the main. In the main I load my  xml data
as follows using Httpservice. I pass this data to the second page as
follows: 

// accommodations has been declared publicly in SearchView.mxml and
accoms is the variable that was used to accept data sent by httpservice.
Once the data is passed, I display in the datagrid. All is fine at this
stage.
 
My second step was to attempt to filter the data in the datagrid and
this is where my trouble began. I have two actionscript files one is for
carrying out the filtering and the other is for the filterEvent. oh by
the way there is yet another actionscript file which is essentially the
class file for accommodations.  At this point, the following sequence of
events can take place:

*   a click on a checkbox calls a func! tion dispatchFilter 
*   the dispatch filter creates an instance of class filterevent and
dispatches the event 
*   the dispatched event takes as its parameter instance of the
filter class and thus reviews what has been checked or unchecked..

I tried using a get function but a while I realised that I miss
something relating to passing data between components.

Tom Chiverton <[EMAIL PROTECTED]> wrote:

On Wednesday 05 Sep 2007, [EMAIL PROTECTED] wrote:
> I am sorry no code is included. I really didn't know which
part to
> include.

Be specific, and try one part at a time.
What have your tried ? Why didn't it work ?

-- 
Tom Chiverton
Helping to widespreadedly accelerate eigth-generation
infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF. A
list of members is available for inspection at the registered office.
Any reference to a partner in relation to Halliwells LLP means a member
of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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



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



http://docs.yahoo.com/info/terms/






For ideas on reducing your carbon footprint visit Yahoo! For Good
<http://uk.promotions.yahoo.com/forgood/environment.html>  this month. 

 


RE: [flexcoders] newbie

2007-09-05 Thread Tracy Spratt
Ok, that is reasonable, what does not work?  Does your handler get
called? Does it contain the reference you need?  How are you updating
the dataProvider?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mathe Maema
Sent: Wednesday, September 05, 2007 2:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] newbie

 

I have two pages. The first is the main. In the main I load my  xml data
as follows using Httpservice. I pass this data to the second page as
follows: 



// accommodations has been declared publicly in SearchView.mxml and
accoms is the variable that was used to accept data sent by httpservice.
Once the data is passed, I display in the datagrid. All is fine at this
stage.

 

My second step was to attempt to filter the data in the datagrid and
this is where my trouble began. I have two actionscript files one is for
carrying out the filtering and the other is for the filterEvent. oh by
the way there is yet another actionscript file which is essentially the
class file for accommodations.  At this point, the following sequence of
events can take place:

*   a click on a checkbox calls a function dispatchFilter
*   the dispatch filter creates an instance of class filterevent and
dispatches the event
*   the dispatched event takes as its parameter instance of the
filter class and thus reviews what has been checked or unchecked..

I tried using a get function but a while I realised that I miss
something relating to passing data between components.


Tom Chiverton <[EMAIL PROTECTED]> wrote:

On Wednesday 05 Sep 2007, [EMAIL PROTECTED] wrote:
> I am sorry no code is included. I really didn't know which
part to
> include.

Be specific, and try one part at a time.
What have your tried ? Why didn't it work ?

-- 
Tom Chiverton
Helping to widespreadedly accelerate eigth-generation
infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF. A
list of members is available for inspection at the registered office.
Any reference to a partner in relation to Halliwells LLP means a member
of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

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

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



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



 

  



For ideas on reducing your carbon footprint visit Yahoo! For Good
<http://uk.promotions.yahoo.com/forgood/environment.html>  this month. 

 



Re: [flexcoders] newbie

2007-09-05 Thread Mathe Maema
I have two pages. The first is the main. In the main I load my  xml data as 
follows using Httpservice. I pass this data to the second page as follows: 
  
  // accommodations has been declared publicly in SearchView.mxml and accoms is 
the variable that was used to accept data sent by httpservice.  Once the data 
is passed, I display in the datagrid. All is fine at this stage.
   
  My second step was to attempt to filter the data in the datagrid and this is 
where my trouble began. I have two actionscript files one is for carrying out 
the filtering and the other is for the filterEvent. oh by the way there is yet 
another actionscript file which is essentially the class file for 
accommodations.  At this point, the following sequence of events can take place:

   a click on a checkbox calls a function dispatchFilter  
   the dispatch filter creates an instance of class filterevent and dispatches 
the event  
   the dispatched event takes as its parameter instance of the filter class and 
thus reviews what has been checked or unchecked..
  I tried using a get function but a while I realised that I miss something 
relating to passing data between components.
  
Tom Chiverton <[EMAIL PROTECTED]> wrote:
  On Wednesday 05 Sep 2007, [EMAIL PROTECTED] wrote:
> I am sorry no code is included. I really didn't know which part to
> include.

Be specific, and try one part at a time.
What have your tried ? Why didn't it work ?

-- 
Tom Chiverton
Helping to widespreadedly accelerate eigth-generation infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF. A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



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





   
-
 For ideas on reducing your carbon footprint visit Yahoo! For Good this month.

Re: [flexcoders] newbie

2007-09-05 Thread Tom Chiverton
On Wednesday 05 Sep 2007, [EMAIL PROTECTED] wrote:
> I am sorry no code is included. I really didn't know which part to
> include.

Be specific, and try one part at a time.
What have your tried ? Why didn't it work ?

-- 
Tom Chiverton
Helping to widespreadedly accelerate eigth-generation infrastructures
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] newbie

2007-09-05 Thread g07m5064
I am adapting flexstore such that the products are displayed in a grid.
Essentially the user clicks on either a price slider or checkboxes.
The click event calls a dispatchFilter function. This function creates
an instance of a class called FilterEvents..the FilterEvents triggers
the filtering via the Filter class. When all of this have been done I
need the returned data to be displayed on a datagrid. There is a get
function that has been implemented for purposes of populating the
dataprovider. I am at loss. Please help. 

I am sorry no code is included. I really didn't know which part to
include.





Re: [flexcoders] newbie - adapting flexstore

2007-09-04 Thread Mathe Maema
Thanks guys. I tried binding my data to the dataprovider. That didn't work. I 
suppose I have some logical problems with my code. 
  This is essentially what I want to happen. I click on the checkbox for 
triband and use a slider to adjust the price and relevant data is displayed.  I 
have retained much of the flexstore code but perhaps fail to understand how the 
data is retained after filtering. I will review my code again.
   
  Thanks

Sherif Abdou <[EMAIL PROTECTED]> wrote:
  i actually redid the flex store and i wrote alot of comments and 
explantaion on how it works for my practice but i have no idea if i would be 
allowed to release it. does anyone know who i can contact to get permission? 

  - Original Message 
From: Tracy Spratt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 10:16:18 AM
Subject: RE: [flexcoders] newbie - adapting flexstore


Typically, a data-driven control, like DataGrid is “bound” to a 
dataProvider.  When the dataProvider changes, the control automatically 
updates.  
   
  In mxml, this means the DG dataProvider is bound to the instance level 
ArrayCollection variable _acMyData: mailto:flexcoders@ yahoogroups. com] On 
Behalf Of g07m5064
Sent: Monday, September 03, 2007 4:36 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] newbie - adapting flexstore

   
Hi,
I am new to flex. I would like to adapt the flexstore example such
that the filtered results are displayed in a grid (this is definitely
inspired by home locator). Anyway, after the filtering, I don't quite
comprehend how the datagrid will be updated. Any ideas?

  









  
-
  Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.   

 

   
-
 Yahoo! Answers - Get better answers from someone who knows. Tryit now.

Re: [flexcoders] newbie - adapting flexstore

2007-09-04 Thread Sherif Abdou
i actually redid the flex store and i wrote alot of comments and explantaion on 
how it works for my practice but i have no idea if i would be allowed to 
release it. does anyone know who i can contact to get permission? 

- Original Message 
From: Tracy Spratt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 10:16:18 AM
Subject: RE: [flexcoders] newbie - adapting flexstore









  












Typically, a data-driven control, like DataGrid
is “bound” to a dataProvider.  When the dataProvider changes, the
control automatically updates.  
 

  
 

In mxml, this means the DG dataProvider is
bound to the instance level ArrayCollection variable _acMyData: mailto:flexcoders@ yahoogroups. com] On Behalf Of 
g07m5064

Sent: Monday, September 03, 2007
4:36 PM

To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders] newbie -
adapting flexstore
 




  
 







Hi,

I am new to flex. I would like to adapt the flexstore example such

that the filtered results are displayed in a grid (this is definitely

inspired by home locator). Anyway, after the filtering, I don't quite

comprehend how the datagrid will be updated. Any ideas?
 
















  
























   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

  1   2   3   >