Re: [flexcoders] Re: Application Idea

2009-05-14 Thread Mike Britton
Personally, and as a matter of pride, I would avoid reinventing the wheel.


Mike Britton
--
http://www.mikebritton.com

 - Original Message -
 From: Baz
 To: flexcoders@yahoogroups.com
 Sent: Thursday, May 14, 2009 10:40 PM
 Subject: Re: [flexcoders] Re: Application Idea

 You want your app to be successful right? Well what's the most successful
 app on the web? Google. Why not emulate it... You can have the frontend done
 pretty quickly, so you're already 50% done. It's only a matter of getting
 the backend right.

 Good luck.



Re: [flexcoders] Problem with loading xml file using HTTPService or URLLoader

2007-05-30 Thread Mike Britton

Are you declaring the namespace?  If not and you're using e4x, you'll need
to do this to access the nodes.  Are you simply unable to get the file?  Use
the Flex debugger so you know your errors in the stack trace.

Otherwise this seems like a security issue, one that may be resolved with
crossdomain.xml.  Pull up your crossdomain xml file and make sure it's not
malformed.

Mike


On 5/29/07, Maciek Malaszuk [EMAIL PROTECTED] wrote:


  Hi,

I'm struggling with strange problem.
I'm trying to load XML file in my code which containst data about
images but thats nor really relevant.

Lets assume i have remote server where i run my code (domain
x.net).

When i point both httpservice or urlloader to http://mydomain.net/
photos.xml it does work on my local machine but DOES NOT when i copy
the file to that mydomain server.

This is only one configuration it works on.

Different scenario i tried and does not work is:
loader pointing to http://mylocalmachineIP/photos.xml (which is
accessible from the internet) and application neither on local
machine nor server works.

Did anyone encountered similar problem before? I would expect
httpservice to be able to access file regardless of its location if
the url is valid...

Thanks for help as i'm really stuck on this one.

 





--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com


Re: [flexcoders] Problem with loading xml file using HTTPService or URLLoader

2007-05-30 Thread Mike Britton

Try:

cross-domain-policy domain=*
allow-access-from domain=malaszuk.net http://malaszuk.net/photos.xml/
allow-access-from domain=80.192.78.134http://80.192.78.134/photos/photos.xml
/
allow-access-from domain=*/
/cross-domain-policy


Mike Britton


Re: [flexcoders] Time Based State Transitions

2007-02-27 Thread Mike Britton

You could use Timer, but this would also work.  You may want to switch it to
use a Singleton.

Usage:

var myTraceBack:CommunicationManager = new CommunicationManager();
myTraceBack.addEventListener(CommunicationManager.ANIMATION_COMPLETE,
onDoneMove);
myTraceBack.startCountdown(1000);


package
{
   import flash.display.Sprite;
   import flash.events.TimerEvent;
   import flash.utils.Timer;
   import flash.display.MovieClip;
   import flash.events.Event;

   [Event(name=done, type=flash.events.Event)]

   public class CommunicationManager extends Sprite
   {
   public var myOwner:MovieClip;
   public static var ANIMATION_COMPLETE:String = done;

   public function CommunicationManager()
   {
   super();
   }

   public function startCountdown( duration:Number ):void
   {
   var minuteTimer:Timer = new Timer(duration, 1);

   minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
   minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
onTimerComplete);

   minuteTimer.start();


   }

   public function onTick(event:TimerEvent):void
   {
   trace(onTick);
   }

   public function onTimerComplete(event:TimerEvent):void
   {
   trace(onTimerComplete!);
   this.dispatchEvent(new Event(done));
   }

   }
}


hth,

Mike Britton

On 2/26/07, nextadvantage [EMAIL PROTECTED] wrote:


  How would I go about changing view states say every 10 secs... with a 1
sec fade?

 





--
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com


Re: [flexcoders] Creating a Video Player in Flex

2007-02-27 Thread Mike Britton

I made this component with that in mind.  It's a work in progress, but the
HSlider code is pretty solid:


?xml version=1.0 encoding=utf-8?
mx:Canvas
   xmlns:mx= http://www.adobe.com/2006/mxml;
   creationComplete=init()

   mx:states
   mx:State name=Full Screen
   mx:SetProperty target={myVid} name=width value=100%/
   mx:SetProperty target={myVid} name=height value=100%/
   mx:SetProperty target={hbox1} name=width value=100%/
   mx:SetProperty target={hbox1} name=height value=100%/
   mx:RemoveChild target={hSliderScale}/
   mx:SetProperty target={button1} name=label value=Close
Full Screen/
   mx:SetStyle target={hbox1} name=horizontalAlign
value=center/
   mx:SetStyle target={hbox1} name=paddingTop value=5/
   /mx:State
   mx:State name=*/
   /mx:states

   mx:Script
   ![CDATA[
   import mx.events.CuePointEvent;
   import mx.events.*;
   import mx.managers.PopUpManager;

   private static var SCRUB_POINT:Number;
   private static var DURATION:Number;
   private static var IS_PAUSED:Boolean;
   public static var CURRENT_TIME:Number;

   private var playheadPos:Number = 0;

   private var isFullScreen:Boolean;

   [Bindable]
   public var screenWidth:Number;
   [Bindable]
   public var screenHeight:Number;

   [Bindable]
   public var myCuePoints:Array = [
   {name:Cue Point 1,time:2},
   {name:Cue Point 2,time:4},
   {name:Cue Point 3,time:6}
   ]

   private function init():void {
   myVid.addEventListener(VideoEvent.PLAYHEAD_UPDATE,
progressHandler);
   screenWidth = 320;
   screenHeight = 240;
   isFullScreen = false;
   }

   private function cpHandler(event:CuePointEvent):void {
   //cp.text = ;
   //cp.text = Reached Cuepoint:  + event.cuePointName +  
+ String(event.cuePointTime);
   }

   private function scrubHandler():void {
   playheadPos = Math.floor((hSlider.value*.01)*DURATION);

   if (IS_PAUSED) {
   IS_PAUSED = false;
   }
   }

   private function progressHandler(event:VideoEvent):void {
   var progress:Number = event.target.playheadTime;
   var totalHSliderVal:Number = hSlider.maximum;

   DURATION= Math.floor(event.target.totalTime);
   playheadPos= Math.floor(event.target.playheadTime);

   setTime();

   hSlider.value = Math.floor(progress/DURATION*100);
   }

   private function onScrubComplete():void {
   IS_PAUSED = true;
   myVid.playheadTime = playheadPos;
   myVid.pause();
   }

   private function onScrubStart():void {
   IS_PAUSED = true;
   myVid.pause();
   }

   private function initPlayback(event:VideoEvent) {
   DURATION = Math.floor(event.target.totalTime);
   playheadPos = Math.floor((hSlider.value*.01)*DURATION);
   }

   private function setTime() {
   CURRENT_TIME = playheadPos;
   }

   private function scaleDisplay() {
   var percChange:Number = hSliderScale.value;

   var inc:Number = percChange*.001;
   var increaseX:Number = inc*myVid.width;
   var increaseY:Number = inc*myVid.height;

   if (hSliderScale.value == hSliderScale.minimum) {
   myVid.width = screenWidth;
   myVid.height = screenHeight;
   } else if (hSliderScale.value == hSliderScale.maximum) {
   myVid.width = myVid.width+100;
   myVid.height = myVid.height+100;
   } else {
   myVid.width = increaseX+screenWidth;
   myVid.height = increaseY+screenHeight;
   }
   hSlider.width = myVid.width;
   }

   private function sizePressHandler() {

   }

   private function sizeReleaseHandler() {
   if (hSliderScale.value == 100) {
   myVid.width = screenWidth;
   myVid.height = screenHeight;
   }
   hSlider.width = myVid.width;
   }

   private function toggleFullScreen() {
   if (!isFullScreen) {
   currentState = Full Screen;
   isFullScreen = true;
   } else {
   currentState = *;
   isFullScreen = false;
   }
   }
   ]]
   /mx:Script


   mx:Box id=pnl_main height=100% width=100%
   horizontalAlign=center textAlign=center
   paddingTop=0 paddingLeft=0 paddingRight=0 paddingBottom=0

   

Re: [flexcoders] Re: Custom Component Styles

2007-02-26 Thread Mike Britton

Graham,

You may also want to take a look at this:
http://www.scalenine.com/

You'll need the Flex 2.1 update to use it.

hth,

Mike Britton


[flexcoders] Re: TextArea scrollbar not showing at runtime

2006-09-23 Thread Mike Britton
I'm still having this problem, and have found no solution.  Has no one
else ran into this problem where the Flex 2 TextArea scrollbar doesn't
appear when text is loaded into it?  I thought calling
invalidateProperties() would help, but now I'm considering various
hacks like updating the text every few thousand miliseconds to ensure
the scrollbar is showing up.

It may have something to do with adjusting the font size at runtime.


Mike


--
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] Re: Removing outline from tabs

2006-09-12 Thread Mike Britton
I'm having the same problem.  If you haven't already found a solution,
I'll post back when I'm finished digging.

Mike Britton






--
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] Re: Transform XML with external CSS styleSheet via htmlText

2006-09-05 Thread Mike Britton
?xml version=1.0 encoding=utf-8?
mx:Application creationComplete=initApp();
xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
 mx:Script
 ![CDATA[
 private function initApp():void
 {
 var htmlString:String = a
href='http://www.mikebritton.com'Visit this site to split hairs!/a;
 post_ta.htmlText = makePrettyLinks( htmlString );
 }

 private function makePrettyLinks(str:String):String
 {
 var pattern1:RegExp = /a/gi;
 var pattern2:RegExp = /a/gi;

 var firstPass:String = str.replace(pattern1,
bua);
 var secondPass:String = firstPass.replace(pattern2,
a/u/b);

 return secondPass;
 }
 ]]
 /mx:Script
 mx:TextArea id=post_ta backgroundColor=#DF width=100%
height=100% editable=false /
/mx:Application


Hopefully this formats correctly!  Email me at [EMAIL PROTECTED] if
it doesn't and you're still stuck.


Mike Britton







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

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

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

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





Re: [flexcoders] Pagination feature in Flex 2

2006-08-20 Thread Mike Britton



Yes, how about a little more detail on this? As a Flex developer without the ability to purchase FDS right now, I'd benefit greatly from not having to create my own paging component.Mike

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: selectedindex and change event

2006-08-20 Thread Mike Britton



Is this still unresolved? I'm in cairngorm too, and have the same problem. callLater isn't working; I need to set the selectedIndexes after the grids are populated with data. Timer is a hack in this case because there's no way for me to determine how long the data will take. Same with setInterval. I going with passing the view into the event if I can figure out how to do this.
Mike

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: selectedindex and change event

2006-08-20 Thread Mike Britton
OK - I'm passing views into my events and setting selectedIndex in my
onResults and it's working very well.  Reminds me a lot of ARP, where
the views are somewhat coupled to the commands through viewRef.

Thanks for that suggestion.

Mike


On 8/21/06, Mike Britton [EMAIL PROTECTED] wrote:
 Is this still unresolved?  I'm in cairngorm too, and have the same problem.
 callLater isn't working; I need to set the selectedIndexes after the grids
 are populated with data.  Timer is a hack in this case because there's no
 way for me to determine how long the data will take.  Same with setInterval.
  I going with passing the view into the event if I can figure out how to do
 this.


 Mike



-- 
Mike
--
http://www.mikebritton.com
http://www.mikenkim.com


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

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

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

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




[flexcoders] onData Equivalent?

2006-08-13 Thread Mike Britton



I see onData for the URLLoader class. What do I use to detect when data has loaded into a DataGrid?Thanks in Advance,Mike Britton

__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: onData Equivalent?

2006-08-13 Thread Mike Britton
The reason I ask: Cairngorm is a lightweight framework and I want to
keep it that way.  I want to Flex framework to do the heavy lifting on
the UI.






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

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

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

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




[flexcoders] TextArea scrollbar not showing at runtime

2006-08-07 Thread Mike Britton



When I set the htmlText attribute of a TextArea to the value of a DataGrid's selectedItem, at runtime the TextArea's scrollbar doesn't show up. I have to resize the VDividedBox it's in to get the durn scrollbar to appear. Has anyone experienced this problem?
Mike

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Dumping the State of a Flex 2 Application

2006-08-05 Thread Mike Britton



Alert.show(currentState);Hopefully I'm not oversimplifying this solution - but I think it's what you're asking.Mike

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Cairngorm user interaction best practices

2006-08-01 Thread Mike Britton
I have a problem that's slowly eating away my soul.  I've returned a
value object and populated a DataGrid.  Now, suppose I want to access
the value when the user clicks on the grid.  In terms of best
practices and assuming a public member of the value object is an
ArrayCollection called books, should I access the value through the
grid itself (i.e. myDataGrid.selectedItem.bookID) or from the model:

var myCollection:ArrayCollection = new ArrayCollection();
myCollection = model.books;
var myValue:String = myCollection.getItemAt(myDataGrid.selectedIndex).name;
lblBook.text = myValue;

In AS2 I would have used the grid's data property, but in
Flex2/Cairngorm my instinct is to avoid this.


Thanks in Advance,

Mike Britton


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

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

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

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




Re: [flexcoders] Advice finding definitive Cairngorm examples ported for Flex 2.0

2006-07-31 Thread Mike Britton



I've found these to be helpful:http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html
http://renaun.com/blog/2006/07/26/71/http://www.jessewarden.com/archives/2005/12/amfphp_10_works.htmlFeel free to take a look at my 
del.icio.us: http://del.icio.us/mbritton72/flex -- I save all the Flex 2 leads I find, particularly when they focus on AMFPHP.We're all pouncing on Cairngorm and Steve is right: the community should help sort it out. We're all pretty dedicated, so this momentary confusion will be short-lived.
Mike

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Cairngorm - Invoking screens

2006-07-30 Thread Mike Britton
Building a larger application involves a combination of view states
and MXML components.  Take JesterXL's Amazon search example:

http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html

In this example, you can see the use of view states.  This is how many
screens can be combined into one.  I definitely suggest you look at
States in the Flex help.

In the same example, a modal window is used to show debugging info.
The same technique can load in forms in the form of MXML components.
You can have a directory of forms, each one something like this:

!-- windowView.mxml --
?xml version=1.0?
mx:TitleWindow
showCloseButton=true close=PopUpManager.removePopUp(this);
creationComplete=initApp();
xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:Script
![CDATA[
import mx.managers.PopUpManager;

private function initApp():void {
this.title = Job Listing;
}
private function cancel():void {
PopUpManager.removePopUp(this);

}
]]
/mx:Script

mx:VBox verticalAlign=top width=100% height=100%
verticalGap=10 paddingBottom=5 paddingLeft=5 paddingRight=5
paddingTop=5 x=4 y=4
mx:Form width=100% height=100%
mx:FormItem label=Location:
mx:Label text=Albany, NY width=100%/
/mx:FormItem
mx:FormItem label=Job Type:
mx:Label text=Contract width=100%/
/mx:FormItem
mx:FormItem label=URL:
mx:Label text=http://www.epicenterconsulting.com;
width=100%/
/mx:FormItem
mx:FormItem label=Description:
mx:TextArea wordWrap=true text=dolor sit amet,
consectetuer adipiscing elit. Donec diam tortor, viverra vitae,
vestibulum in, molestie posuere, felis. Morbi posuere interdum nulla.
Aenean libero pede, pretium lacinia, consectetuer in, vehicula non,
enim. Morbi at enim.. width=200 height=200/
/mx:FormItem
mx:FormItem label=Apply:
mx:Label htmlText=dolor sit amet,
[EMAIL PROTECTED] width=100%/
/mx:FormItem
/mx:Form
/mx:VBox
/mx:TitleWindow

Then you can invoke this window from your main.mxml:

private function showModalWindow():void {
 myModal = TitleWindow(PopUpManager.createPopUp(this, windowView, 
true));
 myModal.width = 440;
 myModal.height = 465;
 myModal.x = 0;
 myModal.y = 0;
 myModal.addEventListener(mouseDownOutside, enableAll);
}

Combine this technique with States and a TabNavigator and you have a
lot of room to build a large app.  I'm in the same boat as you,
learning Cairngorm by examples and by reading the list and
experimenting.  The learning curve is fairly steep, and without the
help of examples, putting the pieces together can be a slow process.
You aren't alone, but it can feel like it sometimes.  As I learn new
stuff I'll be sure to post tutes on my blog for people to check out.
I also recommend checking all the examples at Adobe -- Mike Potter's,
etc -- they are extremely helpful.

hth,

Mike Britton


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

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

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

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





Re: [flexcoders] Are the contents of a WSDL document accessible?

2006-07-29 Thread Mike Britton



What language are you using?mx:WebService id=insertBookService  wsdl=http://localhost:8500/remotingExample.cfc?wsdl
 result=handleFormResult(event)  showBusyCursor=true  fault=errorHandler(event)  mx:operation name=addBook   mx:request
bookAuthor{bookAuthor.text}/bookAuthorbookTitle{bookTitle.text}/bookTitlebookGenre{bookGenre.text}/bookGenrebookLink{
bookLink.text}/bookLink   /mx:request  /mx:operation/mx:WebServiceHit me back offlist if you need more sample code. I recommend you check out mx.rpc.soap.WebService
 in Flex Builder help.Mike Britton

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] How does Flex 2.0 handle ColdFusion Query results?

2006-07-28 Thread Mike Britton



I don't think this is OT since Kelly mentioned it above, but concerning the column names being all uppercase, when calling the same method that returns a query as a webservice (using mx:WebService), the columns ARE uppercase. Returning a query with RemoteObject, the column names are normal.
I apologize in advance for the length of this post!!--- CFC method ---cffunction  name=getAllBooks  displayname=getAllBooks  hint=I get books for display in Flex 
 access=remote  output=false  returntype=query  cfquery name=qryAllBooks datasource=books  select * from books order by author asc
 /cfquery  cfreturn qryAllBooks //cffunction!-- MXML --?xml version=1.0 encoding=utf-8?mx:Application 
 xmlns:mx=http://www.adobe.com/2006/mxml  xmlns:comp=components.* layout=absolute creationComplete=initApp()
  mx:Script  ![CDATA[   import mx.controls.Alert;   import mx.rpc.Fault;   import mx.rpc.events.FaultEvent;   import mx.rpc.events.ResultEvent
;   import mx.rpc.soap.mxml.WebService;   import mx.events.ValidationResultEvent;  private var vResult:ValidationResultEvent;   
   public function initApp():void {   }  public function handleFormResult(event:ResultEvent):void {Alert.show(Your Book Has Been Submitted!);
   }  public function handleRemotingResult(event:ResultEvent):void {Alert.show(Remoting Result Received!);qryDG_dg.dataProvider = 
event.result;   }  public function handleWebServiceResult(event:ResultEvent):void {Alert.show(Webservice Result Received!);wsdlDG01_dg.dataProvider = 
event.result;   }  public function errorHandler(event:FaultEvent):void {Alert.show(event.fault.message);   }  public function submitBook():void {
var validFlag:Boolean = true;var authorResult:ValidationResultEvent = authorV.validate();var titleResult:ValidationResultEvent = titleV.validate();var genreResult:ValidationResultEvent = 
genreV.validate();var linkResult:ValidationResultEvent = linkV.validate();if (authorResult.type == ValidationResultEvent.INVALID) { validFlag = false;
 Alert.show(Author Name must be four or more characters and no less than 1 character.);}if (titleResult.type == ValidationResultEvent.INVALID
) { validFlag = false; Alert.show(Title is required.);}if (genreResult.type == ValidationResultEvent.INVALID
) { validFlag = false; Alert.show(Genre is required and cannot be less than three characters.);}   if (linkResult.type
 == ValidationResultEvent.INVALID) { validFlag = false; Alert.show(Link is required and cannot be less than three characters.);}
if (validFlag) insertBookService.addBook.send();   }  ]] /mx:Script  mx:RemoteObject  id=qryService 
  destination=ColdFusion  source=remotingExample   result=handleRemotingResult(event)   showBusyCursor=true   fault=errorHandler(event)/
  mx:WebService  id=insertBookService   wsdl=http://localhost:8500/remotingExample.cfc?wsdl  result=handleFormResult(event) 
  showBusyCursor=true   fault=errorHandler(event)   mx:operation name=addBookmx:request bookAuthor{
bookAuthor.text}/bookAuthor bookTitle{bookTitle.text}/bookTitle bookGenre{bookGenre.text}/bookGenre bookLink{
bookLink.text}/bookLink/mx:request   /mx:operation /mx:WebService   mx:WebService   id=wsdlQryService  useProxy=false
  wsdl=http://localhost:8500/remotingExample.cfc?wsdl  mx:operationname=getAllBooksresult=handleWebServiceResult(event)
   fault=errorHandler(event)/ /mx:WebService  mx:StringValidator id=authorV source={bookAuthor} property=text minLength=1 maxLength=55 required=true/
 mx:StringValidator id=titleV source={bookTitle} property=text required=true/  mx:StringValidator id=genreV source={bookGenre} property=text required=true minLength=3/ 
 mx:StringValidator id=linkV source={bookLink} property=text required=true minLength=3/   mx:VBox height=100% left=10 top=10 right=10 bottom=10 id=main_vb horizontalAlign=center verticalAlign=top verticalGap=10
  mx:Panel width=50% height=100% layout=absolute id=panel_for_dg title=   mx:VBox width=100% horizontalAlign=center
mx:DataGrid x=0 y=0 id=qryDG_dg width=100% height=120 mx:columns  mx:DataGridColumn headerText=Author dataField=author/
  mx:DataGridColumn headerText=Title dataField=title/  mx:DataGridColumn headerText=Genre dataField=genre/
  mx:DataGridColumn headerText=Link dataField=link/ /mx:columns/mx:DataGridmx:Button x=10 y=128 label=Get Query from Standard Remoting width=100% id=qry_btn click=
qryService.getAllBooks();/mx:DataGrid id=wsdlDG01_dg width=100% height=120 mx:columns  mx:DataGridColumn headerText=Author dataField=AUTHOR/
  mx:DataGridColumn headerText=Title dataField=TITLE/  mx:DataGridColumn headerText=Genre dataField=GENRE/
  mx:DataGridColumn headerText=Link dataField=LINK/ /mx:columns/mx:DataGridmx:Button x=10 y=128 label=Get Query from Web Service using MXML width=100% 

Re: [flexcoders] Which PHP Plugin for Flex IDE?

2006-07-26 Thread Mike Britton



Same, but I don't like PHPEclipse. I'd buy Zend studio if it was an Eclipse plugin. Mike

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Caringorm - Visual Flowchart Poster!

2006-07-25 Thread Mike Britton
That rocks!  Make sure you do a hi-res version so I can hang it on my
office door :-)

Mike


 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




Re: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs

2006-07-24 Thread Mike Britton



Jeff,You must have CF 7 and run the 
7.0.2 updater for ColdFusion Flash remoting to work with Flex 2.You do use RemoteObject: mx:RemoteObject  id=myService   destination=ColdFusion  source=cfcName 
  result=handleRemotingResult(event)   showBusyCursor=true/Hit me back offlist and I will send you a few code examples.hth,Mike
On 7/24/06, Battershall, Jeff [EMAIL PROTECTED] wrote:













  



Obviously, FDS would be a preferred way of integrating with CF if
available, but if it is not, what options exist?

1) HTTP Service - ok.
2) Web Service - ok.
3) Remoting?  This is where I'm not quite getting it. Can you still use
remoting to a server running CFMX 6.1 from Flex 2.0?  If so, are you
using remote object?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)

  













-- Mike--http://www.mikebritton.comhttp://www.mikenkim.com

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] So? What are folks here actually building...?

2006-07-21 Thread Mike Britton
I'm working on a Flex port of my ARP web log (prototype:
http://tinyurl.com/nnt37), and a Flex 2 prototyping tool that links
devnotes to application states (prototype: http://tinyurl.com/nk7ob).

The web log will be built in ARP, the devnotes in Cairngorm.

Mike


 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: Dumb Newbie Question - Underlined Hyperlinks

2006-07-16 Thread Mike Britton
I hate myself for this, but:

var link:String = bua href='http://www.google.com'
target='_blank'View Listing/au/b;

I can't find a way to change the link color through an external CSS
file though, and it's killing me.  You have to define the class like a
DOM object and there's no flippin way to specify the links in a
TextArea to be blue.





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

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

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

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




[flexcoders] RichTextEditor setFocus()?

2006-07-14 Thread Mike Britton
I have a custom component containing a RichTextEditor.  How do I set
cursor focus on its internal textarea?  I've tried all the obvious
things to no avail.






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

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

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




[flexcoders] Re: RichTextEditor setFocus()?

2006-07-14 Thread Mike Britton
To save time, I ended up using a simple TextArea instead.  I suspect I
need to do a getChildAt() to access the TextArea, then use setFocus().



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

 I have a custom component containing a RichTextEditor.  How do I set
 cursor focus on its internal textarea?  I've tried all the obvious
 things to no avail.







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

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

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

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





[flexcoders] Re: Cairngorm question

2006-06-05 Thread Mike Britton



For what it's worth, I'm also interested in either the updated
articles for CG2B3/Flex 2.0 or a *basic* sample application, before
the Flex 2 release if possible.

Mike









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Data Service : Tutorials.zip file Cairngorm help for beginner

2006-02-10 Thread Mike Britton



Steven Webster's site has a lot of Cairngorn info:http://www.richinternetapps.com/archives/cat_cairngorm.htmlhth,Mike






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Flex Components 508 Compliance

2006-02-08 Thread Mike Britton
Hi, I'm new to this list but am an occasional poster on Flashcoders. 
My question: Will the new Flex components (when they come out) be 508
compliant?  If so, will they be immediately available for use in Flash 8?

Thanks in advance,

Mike Britton
mikebritton.com





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

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

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

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