[flexcoders] checkbox in itemRenderer

2007-06-07 Thread danj520
Hi,

I have an itemrenderer that I want to insert a checkbox component.
When I display the TileList, how can I detect when the checkbox has
been checked (and its value, true/false) for each itemrenderer? I have
approx 40 tiles...Thanks in advance.. 



[flexcoders] REPOST - TileList 'change' not updating subsequent times

2007-04-15 Thread danj520
I wonder if anyone else has this issue. I have a TileList and when a
tile is initially clicked, the change event works and evokes the
State change normally. When I leave the state and return, even though
I select the same tile, it does nothing. But, if I select other
tiles, the state changes. Here's my code: (BTW, what does ns2 refer
to in the component name?) Thanks in advance, we all appreciate this
board.

mx:TileList id=lowloss_tl x=5 y=3 height=203 width=333
maxColumns=3 direction=horizontal

allowMultipleSelection=false
dataProvider={flexlowlossSrv.lastResult.catalog.product}

itemRenderer=renders.connrender toolTip=Click to see
connector detail

mx:change

![CDATA[

currentState='connDetails';

]]

/mx:change
/mx:TileList
===
mx:State name=connDetails basedOn=flex_lowloss
mx:AddChild relativeTo={canvas3} position=lastChild
ns2:conntemplate data={lowloss_tl.selectedItem} x=1000
y=47
/ns2:conntemplate
/mx:AddChild

/mx:State



[flexcoders] Re: REPOST - TileList 'change' not updating subsequent times

2007-04-15 Thread danj520
--- In flexcoders@yahoogroups.com, danj520 [EMAIL PROTECTED] wrote:

Found the problem myself...you need to specify itemClick= instead 
of:
mx:change

![CDATA[

currentState='whateverState';

]]

Works everytime...

 I wonder if anyone else has this issue. I have a TileList and when a
 tile is initially clicked, the change event works and evokes the
 State change normally. When I leave the state and return, even 
though
 I select the same tile, it does nothing. But, if I select other
 tiles, the state changes. Here's my code: (BTW, what does ns2 
refer
 to in the component name?) Thanks in advance, we all appreciate this
 board.
 
 mx:TileList id=lowloss_tl x=5 y=3 height=203 width=333
 maxColumns=3 direction=horizontal
 
 allowMultipleSelection=false
 dataProvider={flexlowlossSrv.lastResult.catalog.product}
 
 itemRenderer=renders.connrender toolTip=Click to see
 connector detail
 
 mx:change
 
 ![CDATA[
 
 currentState='connDetails';
 
 ]]
 
 /mx:change
 /mx:TileList
 ===
 mx:State name=connDetails basedOn=flex_lowloss
 mx:AddChild relativeTo={canvas3} position=lastChild
 ns2:conntemplate data={lowloss_tl.selectedItem} x=1000
 y=47
 /ns2:conntemplate
 /mx:AddChild
 
 /mx:State





[flexcoders] How do you replay an effect?

2007-04-07 Thread danj520
I have numerous states, transitions and effects. When I enter a state 
and the effect plays, i.e. creationCompleteEfect={draw_panels}, it 
works fine the first time, but when leaving and re-entering the same 
state, the effects don't play and the components appear static. I'm 
guessing I need to use ShowEffect and HideEffect for each instance. 
Thanks to all.



[flexcoders] Re: error with HTTPService

2007-03-20 Thread danj520
Hi and thank you for your reply. Yes, I did bind the results like your
example and it works great. Thank you! 

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

 Did you try [EMAIL PROTECTED]
 
 --- In flexcoders@yahoogroups.com, danj520 danj520@ wrote:
 
  Hello,
  I'm trying to bind the returned results from a ComboBox to a url in
  HTTPService. Flex returns a Value must be quoted error with this
  statement:
  
  mx:HTTPService id=productService url={appName.SelectedItem.url}
  result=productServiceResultHandler(event)
  showBusyCursor=true/
  
  Here's my code for theComboBox.
  
  mx:ComboBox id=appName styleName=glass width=161
  change=productService.send();
  mx:dataProvider
  mx:Array
  mx:Object label=”12.5V HF SSB”
  url=”data/125-hf-ssb.xml?filter=12vhgssb”/
  mx:Object label=”28V HF SSB”
  url=”data/28v-hf-ssb.xml?filter=28vhfssb”/
  mx:Object label=”50V HF SSB”
  url=”data/50v-hf-ssb.xml?filter=50vhfssb”/
  mx:Object label=”Cell Basestation”
  url=”data/cell-basestation.xml?filter=cellbasestation”/
  mx:Object label=”Cellular Mobile”
  url=”data/cellular-mobile.xml?filter=cellularmobile”/
  mx:Object label=”DME TACAN”
  url=”data/dme-tacan.xml?filter=dme-tacan”/
  
  /mx:Array
  /mx:dataProvider
  /mx:ComboBox
  Can't seem to find much in the docs about this, except that url must
  be quoted. What am I doing wrong? Thanks in advance.
 





[flexcoders] Re: ComboBox URLs

2007-03-19 Thread danj520
Hi Alex,
Thank you for your great help...one question..how would I pass
appName.selectedItem.url as a string to the HTTPService?

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

 I would expect you would set it up something like this:
 
  
 
 mx:ComboBox id=appName styleName=glass width=161
 change=dispatchFilter();
 mx:dataProvider
 mx:Array
 mx:Object label=All url=http://a.b.com/somehttpservice?filter=all;
 /
 mx:Object label=Cellular Mobile
 url=http://a.b.com/somehttpservice?filter=cellularmobile; /
 
 ...
 /mx:Array
 /mx:dataProvider
 /mx:ComboBox
 
 
 
 private function dispatchFilter():void
 
 {
 
 trace(appName.selectedItem.url); // use this url to fetch the XML
 
 }
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of danj520
 Sent: Sunday, March 18, 2007 11:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox  URLs
 
  
 
 I tried this, but I'm not sure it will work as you suggested. Here's
 what I have for populating the ComboBox and the change event. 
 
 mx:ComboBox id=appName styleName=glass width=161
 change=dispatchFilter();
 mx:dataProvider
 mx:Array
 mx:StringAll/mx:String
 mx:StringCellular Mobile/mx:String
 mx:String12.5V HF SSB/mx:String
 mx:String28V HF SSB/mx:String
 mx:String50V HF SSB/mx:String
 mx:StringCellular Base Station/mx:String
 /mx:Array
 /mx:dataProvider
 /mx:ComboBox
 
 private function dispatchFilter():void
 {
 var event:ProductFilterEvent = 
 new ProductFilterEvent(filter, thumbBeingPressed);
 dispatchEvent(event);
 currentState = showingThumbnails;
 }
 If I choose any option, the dispatchFilter function will filter the
 data based on the option criteria, and it's not what I want, what I
 want is the URL defined for the HTTPService so I can load a new XML
 file on the fly. What I think I need is a different change= function
 to do that. Hopefully, this is not too confusing. Thank you again
 kindly for your time. 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Assuming you know the mapping of combobox items to URLs, you can
  populate the array as follows:
  
  
  
  mx:Array
  
  mx:Object label=choice 1 url=http://a.b.com/url1
 http://a.b.com/url1  /
  
  mx:Object label=choice 2 url=http://a.b.com/url2
 http://a.b.com/url2  /
  
  mx:Object label=choice 3 url=http://a.b.com/url3
 http://a.b.com/url3  /
  
  /mx:Array
  
  
  
  The combo box will display choice 1, choice 2, or choice3. When
  an option is selected, selectedItem.url is the url.
  
  
  
  -Alex
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of danj520
  Sent: Sunday, March 18, 2007 10:05 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] ComboBox  URLs
  
  
  
  I hope someone can help. I have a ComboBox that has a list of options.
  When an option is selected, I would like a corresponding XML file to
  be loaded. I assume I have to declare a string variable to assign the
  URL. The ComboBox dataProvider is hard-coded with an mx:Array, but
  I'm stuck on how to assign the URL from the option selected. I
  appreciate any help I can get. I'm familiar with how to load the data
  with HTTPService. Thanks in advance...
 





[flexcoders] error with HTTPService

2007-03-19 Thread danj520
Hello,
I'm trying to bind the returned results from a ComboBox to a url in
HTTPService. Flex returns a Value must be quoted error with this
statement:

mx:HTTPService id=productService url={appName.SelectedItem.url}
result=productServiceResultHandler(event)
showBusyCursor=true/

Here's my code for theComboBox.

mx:ComboBox id=appName styleName=glass width=161
change=productService.send();
mx:dataProvider
mx:Array
mx:Object label=”12.5V HF SSB”
url=”data/125-hf-ssb.xml?filter=12vhgssb”/
mx:Object label=”28V HF SSB”
url=”data/28v-hf-ssb.xml?filter=28vhfssb”/
mx:Object label=”50V HF SSB”
url=”data/50v-hf-ssb.xml?filter=50vhfssb”/
mx:Object label=”Cell Basestation”
url=”data/cell-basestation.xml?filter=cellbasestation”/
mx:Object label=”Cellular Mobile”
url=”data/cellular-mobile.xml?filter=cellularmobile”/
mx:Object label=”DME TACAN”
url=”data/dme-tacan.xml?filter=dme-tacan”/

/mx:Array
/mx:dataProvider
/mx:ComboBox
Can't seem to find much in the docs about this, except that url must
be quoted. What am I doing wrong? Thanks in advance.



[flexcoders] ComboBox URLs

2007-03-18 Thread danj520
I hope someone can help. I have a ComboBox that has a list of options.
When an option is selected, I would like a corresponding XML file to
be loaded. I assume I have to declare a string variable to assign the
URL.   The ComboBox dataProvider is hard-coded with an mx:Array, but
I'm stuck on how to assign the URL from the option selected. I
appreciate any help I can get. I'm familiar with how to load the data
with HTTPService. Thanks in advance...

  



[flexcoders] Re: ComboBox URLs

2007-03-18 Thread danj520
Thank you Alex, you are the man...

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

 Assuming you know the mapping of combobox items to URLs, you can
 populate the array as follows:
 
  
 
 mx:Array
 
 mx:Object label=choice 1 url=http://a.b.com/url1;  /
 
 mx:Object label=choice 2 url=http://a.b.com/url2;  /
 
 mx:Object label=choice 3 url=http://a.b.com/url3; /
 
 /mx:Array
 
  
 
 The combo box will display choice 1, choice 2, or choice3.  When
 an option is selected, selectedItem.url is the url.
 
  
 
 -Alex
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of danj520
 Sent: Sunday, March 18, 2007 10:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ComboBox  URLs
 
  
 
 I hope someone can help. I have a ComboBox that has a list of options.
 When an option is selected, I would like a corresponding XML file to
 be loaded. I assume I have to declare a string variable to assign the
 URL. The ComboBox dataProvider is hard-coded with an mx:Array, but
 I'm stuck on how to assign the URL from the option selected. I
 appreciate any help I can get. I'm familiar with how to load the data
 with HTTPService. Thanks in advance...





[flexcoders] Re: ComboBox URLs

2007-03-18 Thread danj520
I tried this, but I'm not sure it will work as you suggested. Here's
what I have for populating the ComboBox and the change event. 

mx:ComboBox id=appName styleName=glass width=161
change=dispatchFilter();
mx:dataProvider
mx:Array
mx:StringAll/mx:String
mx:StringCellular Mobile/mx:String
mx:String12.5V HF SSB/mx:String
mx:String28V HF SSB/mx:String
mx:String50V HF SSB/mx:String
mx:StringCellular Base Station/mx:String
/mx:Array
/mx:dataProvider
/mx:ComboBox

private function dispatchFilter():void
{
var event:ProductFilterEvent = 
new ProductFilterEvent(filter, thumbBeingPressed);
dispatchEvent(event);
currentState = showingThumbnails;
}
If I choose any option, the dispatchFilter function will filter the
data based on the option criteria, and it's not what I want, what I
want is the URL defined for the HTTPService so I can load a new XML
file on the fly. What I think I need is a different change= function
to do that. Hopefully, this is not too confusing. Thank you again
kindly for your time. 

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

 Assuming you know the mapping of combobox items to URLs, you can
 populate the array as follows:
 
  
 
 mx:Array
 
 mx:Object label=choice 1 url=http://a.b.com/url1;  /
 
 mx:Object label=choice 2 url=http://a.b.com/url2;  /
 
 mx:Object label=choice 3 url=http://a.b.com/url3; /
 
 /mx:Array
 
  
 
 The combo box will display choice 1, choice 2, or choice3.  When
 an option is selected, selectedItem.url is the url.
 
  
 
 -Alex
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of danj520
 Sent: Sunday, March 18, 2007 10:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ComboBox  URLs
 
  
 
 I hope someone can help. I have a ComboBox that has a list of options.
 When an option is selected, I would like a corresponding XML file to
 be loaded. I assume I have to declare a string variable to assign the
 URL. The ComboBox dataProvider is hard-coded with an mx:Array, but
 I'm stuck on how to assign the URL from the option selected. I
 appreciate any help I can get. I'm familiar with how to load the data
 with HTTPService. Thanks in advance...





[flexcoders] Re: Alex's Distortion effects

2007-02-07 Thread danj520
Thank you Alex, you experts are great!

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

 Hi there, 
  
 SimpleFlip is just an MXML component, which contains the setup code for
 the effects. There are various examples provided in the download like
 that. Check out the Creating and Extending Flex 2 Components
 documentation, chapter Creating MXML components for more information.
  
 Best,
 Alex
  
 
  
 
  
 
 Alex Uhlmann 
 Consultant (Rich Internet Applications)
 Adobe Consulting
 Westpoint, 4 Redheughs Rigg, 
 South Gyle, Edinburgh, EH12 9DQ, UK
 p: +44 (0) 131 338 6969
 m: +44 (0) 7917 428 951
 [EMAIL PROTECTED]
 http://weblogs.macromedia.com/auhlmann
 
 Adobe Systems Europe Limited | Registered office: 151 St. Vincent
 Street, Glasgow G2 5NJ | Company No. SC101089
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of danj520
 Sent: 07 February 2007 00:45
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Alex's Distortion effects
 
 
 
 http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.
 cfm
 http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor
 .cfm 
 
 The example has the following code:
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application 
 xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 xmlns:distortion=view.distortion.*
 
 distortion:SimpleFlip /
 /mx:Application
 
 Do you run this or integrate into other code?
 
 I love these distortion effects, but don't have a clue how to
 implement them. Also get Design Mode: Error creating item SimpleFlip
 even though paths to classes are correct. Can anyone help me? Thanks
 again in advance..





[flexcoders] Alex's Distortion effects

2007-02-06 Thread danj520
http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.cfm

The example has the following code:

?xml version=1.0 encoding=utf-8?

mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:distortion=view.distortion.*

distortion:SimpleFlip /
/mx:Application

Do you run this or integrate into other code?

I love these distortion effects, but don't have a clue how to
implement them. Also get Design Mode: Error creating item SimpleFlip
even though paths to classes are correct. Can anyone help me? Thanks
again in advance.. 



[flexcoders] Re: POST not working

2007-01-10 Thread danj520
Thanks for the reply...

As you can tell, I'm trying to write the results of my simple form to
a file, can be any format, i.e., text, XML, etc. to preferably an
email address or to a text file. What I'd like to see in the file
would look like this

Name: John Smith
Address1: 234 Main St
Address2: Suite 100
City: Los Angeles
State: CA
Zip: 90028
Email: [EMAIL PROTECTED]

Is there a way to do this? Can't seem to find any info in the Flex
docs...thanks again...


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

 I don't think you can post to a .txt file. That would be way too easy.
 I mean, you need some server-side program to accept the url and write
 the file.  Have you ever posted to a .txt file in any other language?
 What are you expecting such a file to look like?
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of danj520
 Sent: Tuesday, January 09, 2007 3:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] POST not working
 
  
 
 Anyone know why this isn't working? When run, nothing is posted..all
 form fields exist and are valid...thanks in advance...
 
 mx:HTTPService id=userRequest
 url=data/forms/contact.txt useProxy=false
 method=POST
 mx:request xmlns=
 username{nameInput.text}/username
 address1{address1.text}/address1
 address2{address2.text}/address2
 city{city.text}/city
 state{state.text}/state
 zip{zip.text}/zip
 country{country.text}/country
 emailaddress{emailInput.text}/emailaddress
 /mx:request
 /mx:HTTPService





[flexcoders] POST not working

2007-01-09 Thread danj520
Anyone know why this isn't working? When run, nothing is posted..all
form fields exist and are valid...thanks in advance...

mx:HTTPService id=userRequest
url=data/forms/contact.txt useProxy=false
method=POST
mx:request xmlns=
username{nameInput.text}/username
address1{address1.text}/address1
address2{address2.text}/address2
city{city.text}/city
state{state.text}/state
zip{zip.text}/zip
country{country.text}/country
emailaddress{emailInput.text}/emailaddress
/mx:request
/mx:HTTPService



[flexcoders] no disk in drive error

2006-12-20 Thread danj520
I had to reinstall Windows recently and reinstall Flex 2.0 trial. When 
I run a file, it says No disk in drive and I can't continue. Anyone 
else have this problem or know how to solve? Thanks in advance.





[flexcoders] integrating PageFlip (flash file) into container

2006-12-19 Thread danj520
Another newbie here...Has anyone been successful integrating this
Flash file into Flex?
http://www.iparigrafika.hu/pageflip/

How can it be put inside a container, i.e., panel, canvas, etc. to use
as a doc viewer? any help appreciated.

Thanks in advance..



[flexcoders] want to load multiple XML files to populate various controls

2006-12-15 Thread danj520
can you have multiple instances of httpService?

Here is my code:

mx:HTTPService id=adapSrv url=data/adapters.xml/
mx:HTTPService id=attenSrv url=data/attenuators.xml/
mx:HTTPService id=btSrv url=data/biastees.xml/
mx:HTTPService id=combSrv url=data/combiners.xml/
mx:HTTPService id=termSrv url=data/terminations.xml/
mx:HTTPService id=popSrv url=data/popular.xml/

When run, app finds the popSrv path and loads the data, but won't 
find any other paths even though the files exist in their respective 
paths. Any help would be appreciated.