[flexcoders] Form field clearing

2009-04-09 Thread smccran
Hi all,

I have a standard flex form, and I want to do a simple 'reset' function.

At the moment I would simply set each field value as blank like this:

private function clear():void
{
nameField.text = "";
tel.text = "";
email.text = "";

}












Is there a better way of doing this? Or a way I can just say jobRequest.reset? 
where 'jobRequest' is the form name.

Thanks
Shaun




[flexcoders] Creating exceptions to an eventlistener

2009-04-01 Thread smccran
Hi all,

I've got a canvas with an event listener, that allows the user to drag the 
canvas around.

The only problem is that I have a datagrid inside this canvas, and the event 
listener is interfering with it. 

IE I cannot drag the slider in the datagrid, or resize the column etc, as the 
event listener kicks in and moves the whole canvas instead.

How can I create an exception for the datagrid?

Thanks
Shaun



[flexcoders] Connecting an AIR application to FCF through Webservices.

2009-03-30 Thread smccran
Hi all,
I am trying to connect an AIR app to a coldfusion back end webservice (CFC), 
but am getting an error message:

Code:

http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl"; 
showBusyCursor="true" useProxy="true">





Error:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" 
faultDetail="Unable to load WSDL. If currently online, please verify the URI 
and/or format of the WSDL 
(http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl)"]
at 
mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:222]
at 
mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at 
mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at 
mx.messaging::ChannelSet/faultPendingSends()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
at 
mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
at flash.events::EventDispatcher/dispatchEventFunction()

Does anyone have any ideas why I cannot connect to a remote server?

Thanks
Shaun



[flexcoders] Re: Multiple arrays?

2008-08-18 Thread smccran
That would be much better, but I couldn't figure out how to change 
the layout.

IE I'm using 4, because I can then map each one to a mx:Hbox, or an 
mx:Vbox.

How would you split the array into the 'directions' for display?


--- In flexcoders@yahoogroups.com, "Howard Fore" <[EMAIL PROTECTED]> 
wrote:
>
> Why not just use one array and number the seats all the way around 
the
> square?
> 
> On Mon, Aug 18, 2008 at 8:39 AM, smccran <[EMAIL PROTECTED]> wrote:
> 
> > Hi all,
> >
> > I'm trying to produce a booking form, where users can select their
> > seat. The seats are laid out in a square. I'm currently doing this
> > with 4 arrays, one for each side of the square. This is proving 
very
> > complicated tho, as I have a remote object from a cfc returning 
the
> > results from all 4 arrays, and its proving a nightmare to map the
> > results back to the images? (full code below.
> >
> > Anyone have any thoughts on how they would approach this?
> >
> 
> 
> 
> -- 
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff 
Atwood
>




[flexcoders] Multiple arrays?

2008-08-18 Thread smccran
Hi all,

I'm trying to produce a booking form, where users can select their 
seat. The seats are laid out in a square. I'm currently doing this 
with 4 arrays, one for each side of the square. This is proving very 
complicated tho, as I have a remote object from a cfc returning the 
results from all 4 arrays, and its proving a nightmare to map the 
results back to the images? (full code below.

Anyone have any thoughts on how they would approach this?

Thanks
Shaun





http://www.adobe.com/2006/mxml"; 
layout="absolute" backgroundColor="#00" 
backgroundGradientColors="[#22, #22]" creationComplete="init
()">









  









   
   
 





  




   
   
   
   
   
   

  
   

   
   
   

   
   

 
   

   



   


   


   


   
  

  
  
  
  
  
  
  
  
  
  
  

  
  
  
 
   
   





[flexcoders] Aamzon flash scrolly rotator

2008-05-23 Thread smccran
Hi all,

I found this the other day, its Amazons flash driven rotating Item 
picker

http://www.amazon.co.uk/b/ref=amb_link_62695165_1?
ie=UTF8&node=10917681&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=ilm&pf_rd_r=0ACZ4V8
V6PJSJ3K5HGZT&pf_rd_t=101&pf_rd_p=187921591&pf_rd_i=266239

I really like the functionality, and have been trying to work out how 
to build something similar for a slightly different purpose.

I'm guessing this is do-able in flex, but I don't really have the first 
idea of where to start!.

Anyone got any ideas?

Thanks
Shaun




[flexcoders] Scrollbar weirdness

2007-11-15 Thread smccran
Hi all,
I have a datagrid that has longer data in some rows than others. The 
problem is that my scrollbar is changing size! Does anyone know how 
to stop the scrollbar changing height?

A sample code is below.

Thanks
Shaun





Code:



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



Christina Coenraets
555-219-2270
[EMAIL PROTECTED]
true


Joanne Wall
555-219-2012
[EMAIL PROTECTED]
true


Maurice Smith
555-219-2012
[EMAIL PROTECTED]
false


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
Headmaster of Hogwarts School of Witchcraft and 
Wizardry 

Order of Merlin and other honors. 

Chocolate Frog card: "Considered by many the greatest wizard of 
modern times. Dumbledore is particularly famous for his defeat of the 
dark wizard Grindelwald in 1945, for the discovery of the twelve uses 
of dragon's blood, and his work on alchemy with his partner, Nicolas 
Flamel. Prof. Dumbledore enjoys chamber music and tenpin 
bowling."  

"Nitwit! Blubber! Oddment! Tweak!" 

Shining silver hair. 

"Men have wasted away before [the Mirror of Erised], entranced by 
what they have seen, or been driven mad, not knowing if what it shows 
is real or even possible." 

Rigged mirror to help those who wanted to find the stone but not.

"Nitwit! Blubber! Oddment! Tweak!" 

Shining silver hair. 

"Men have wasted away before [the Mirror of Erised], entranced by 
what they have seen, or been driven mad, not knowing if what it shows 
is real or even possible." 

Rigged mirror to help those who wanted to find the stone but not use 
it.  

Spiral escalator to office; large and beautiful circular room. 

Auburn hair 50 years ago. 

Suspended as headmaster.

true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true


Mary Jones
555-219-2000
[EMAIL PROTECTED]
true



































[flexcoders] Referencing elements in a component

2007-10-05 Thread smccran
Hi,

I have TileList (Shopping basket), with a component in it. 

The tilelist has a numeric stepper displayed in the component. There 
is a change event on the stepper, that calls a function that 
increases or decreases the number of that item in the basket. 

I have two problems, the first is that there is also a button 
to 'remove item from basket' in the function for this I cannot get it 
to reference the numeric stepper (ns.value = ns.value -1) how do you 
reference items inside a component from external (component to 
external is 'outerDocument'). I've seen the 'target.xxx', is that 
anything to do with it.

The second is that I have many items in the TileList, sometimes if I 
active the second numeric stepper it affects the first item. How do 
you reference a specific index, or row of the tilelist?

Thanks
Shaun





[flexcoders] Referencing items in other states

2007-09-07 Thread smccran
Hi,
Bit of a N00b question, I have a site with multiple viewstates, 
obviously there are individual elements within each view state. 

I'm getting an error when pressing a button on one state that calls a 
function, that references an element on another state. 

The error is saying that 'The element doesn't exist'. This only 
happens if I haven't viewed the state in the browser.

IE I can't make an element visible if I haven't viewed that state, 
can I do something like:

viewState.elementName.visible = true

rather than just:

elementName.visible = true (which doesn't work)

Thanks
Shaun




[flexcoders] State Refresh

2007-09-04 Thread smccran
Hi all,

I have a page which contains a tilelist. The Tilelist is populated from 
a list.

I have a button in the tilelist which triggers a function which removes 
an element from a list.

My problem is that without 'refreshing' the screen it doesn't look like 
the list item has been removed. Iv'e tried recalling the state 
(currentState='wishList') but it doesn't work. I need it to re-draw the 
state to show the item has gone.

Is there a refresh function? How can I reload the currentState?

Thanks
Shaun



[flexcoders] Proxy settings

2007-03-12 Thread smccran
Hi

I seem to be having some issues around connecting to the Application:mx 
location.

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

I think its cos my internal server can't see the net without proxy 
settings.

Has anyone else encountered this? And if you have did you write a 
proxy.xml doc?

Thanks
Shaun



[flexcoders] Is it a proxy setting?

2007-03-07 Thread smccran
Hi all!

First post, so go easy on me

I'm using this code



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


   http://192.168.50.254/mcd/test.cfm"; useProxy="false" method="POST">
  
 {username.text}
 {emailaddress.text}
  
   

and I get an error.

If I change the url to:

url="http://www.website.com/test.cfm";

then it works. I'm guessing that this is a proxy issue, as it doesn't 
seem to resolve on my internal network?

Thanks
Shaun