[flexcoders] Cold fusion and Flex Remoting setup driving me nuts

2010-09-09 Thread Joshua
Hello,

I've been searching and searching for some consistent info regarding the 
complete setup required to get flex 3 to talk directly to a cfc on a REMOTE 
coldfusion server.  

I've got access to the coldfusion server admin.  

My problems.

1.  Where is the flex gateway specified (or flash)?  I see all these articles 
saying it's at www.mydomain.com/flex2gateway.  I have no idea how to verify 
that and when I do a remote call to it in flex it says

MessagingError message='Destination 'http://www.mydomain.com/flex2gateway/' 
either does not exist or the destination has no channels defined (and the 
application does not define any default channels.)']

2.  So, I couldn't find the default flex gateway so I created my own under the 
events gateway tab.  I gave it an id of flexRMS a type of CFML and pointed the 
cfc path to the cfc I want to call and set the config file to 
Coldfusion8/gateway/config/flex-data/management/gateway.cfg

I can't connect to that either

3.  If I could connect, which I can't, I need to point to a different 
components folder on the server that holds all the cfcs that I really need to 
invoke.

4.  So, I thought well maybe I need to configure my flex project and specify 
that I'm using Coldfusion as the server type.  I check Use Remote Object Access 
Service, then specify Coldfusion Flash Remoting Then I get to the page where 
I'm supposed to check between Coldfusion installation type, Standalone or 
Deployed to J2EE (I've got no idea what to do here) anything I check or fill 
out tells me that I've got no config files in the WEB-INF folder under flex 
when I click the validate Configuration.

Can somebody throw me a bone here.  Jeez




[flexcoders] Re: PopUpManager and FocusManager

2010-05-12 Thread Joshua
used callLater instead of waiting on the event to dispatch.  That worked

callLater(setNewFocus)

function setNewFocus():void {
focusManager.setFocus(this.augmentPackageForm.insuranceValue);
}

--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> This is driving me nuts.  I have a form that has several textInputs in it.  
> When you tab out of a textInput and you have entered something that is not 
> currently in the database I create a Popupwindow with another form in it so 
> the user can add more details (Quick Add for Quickbooks style) about the new 
> text entry.  I'm trying to get the form that is in the popupmanager to get 
> the focus and it kinda works... meaning it looks like it has focus (blue 
> box), but when I start typing I start filling out the next field in the 
> original form (behind the popup).  I have the form component that 'pops up', 
> implementing IFocusManagerContainer and have tried just about everything to 
> get this to work.  
> 
> this.augmentPackageWindow = new TitleWindow;
>   this.augmentPackageForm = new IndivdualizePackageForm;  
> this.augmentPackageWindow.addChild(this.augmentPackageForm);
> this.augmentPackageWindow.addEventListener( 
> Event.ADDED_TO_STAGE, setAugmentFocus);
> PopUpManager.addPopUp( this.augmentPackageWindow, this, true 
> );
> PopUpManager.centerPopUp( this.augmentPackageWindow );
> 
> in the function setAugmentFocus i have stuff like
> 
> var oldFm:FocusManager = new FocusManager(this);
> oldFm.deactivate;
> 
> var fm:FocusManager = new FocusManager(this.augmentPackageForm);
> fm.activate();
> fm.setFocus(this.augmentPackageForm.insuranceValue);
> 
> and like I said, when I run this the "focus" actually goes to the insurance 
> Value field in the augmentPackageForm which is a child in the 
> augmentPackageWindow, but as soon as I start typing I begin to fill out the 
> next field in the underlying form.   
> 
> Help Please!
>




[flexcoders] PopUpManager and FocusManager

2010-05-12 Thread Joshua
This is driving me nuts.  I have a form that has several textInputs in it.  
When you tab out of a textInput and you have entered something that is not 
currently in the database I create a Popupwindow with another form in it so the 
user can add more details (Quick Add for Quickbooks style) about the new text 
entry.  I'm trying to get the form that is in the popupmanager to get the focus 
and it kinda works... meaning it looks like it has focus (blue box), but when I 
start typing I start filling out the next field in the original form (behind 
the popup).  I have the form component that 'pops up', implementing 
IFocusManagerContainer and have tried just about everything to get this to 
work.  

this.augmentPackageWindow = new TitleWindow;
this.augmentPackageForm = new IndivdualizePackageForm;  
this.augmentPackageWindow.addChild(this.augmentPackageForm);
this.augmentPackageWindow.addEventListener( 
Event.ADDED_TO_STAGE, setAugmentFocus);
PopUpManager.addPopUp( this.augmentPackageWindow, this, true );
PopUpManager.centerPopUp( this.augmentPackageWindow );

in the function setAugmentFocus i have stuff like

var oldFm:FocusManager = new FocusManager(this);
oldFm.deactivate;

var fm:FocusManager = new FocusManager(this.augmentPackageForm);
fm.activate();
fm.setFocus(this.augmentPackageForm.insuranceValue);

and like I said, when I run this the "focus" actually goes to the insurance 
Value field in the augmentPackageForm which is a child in the 
augmentPackageWindow, but as soon as I start typing I begin to fill out the 
next field in the underlying form.   

Help Please!



[flexcoders] Re: Updating Static vars

2010-05-10 Thread Joshua
Thanks for the input... I might give that a whirl.  just as an FYI for me, or I 
guess an FMI can you do what I was trying to do initially?  I'm still doing 
some searching, but not finding much on updating static vars or partially 
calling a constructor... Oh, that just gave me an idea.



--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> I'd consider doing something like this:
> 
> public static const PHONES:XML =
> 
> 
> 
> ;
> 
> Les writing, less processing and you can even let the bookkeeper do the work
> (instead of having the XML coded in the file, you could embed it for
> example)
> 
> [Embed(source="phones.xml")]
> public static const PHONES:String;
> 
> Best.
> 
> Oleg
>




[flexcoders] Updating Static vars

2010-05-10 Thread Joshua
Hello I've got a situation as follows

1.  I have a class called MessageStrings.as that I use for storing static 
consts and variables used throughout my project.

2.  Recently, we started an affiliate program where I need to make 
modifications to the MessageStrings to change company names, email addresses, 
etc depending on which affiliate is loading the page (from url string)

3.  Instead of copying a bunch of static vars like
 public static var CONTACT_US:String = "Hello, contact us by phone at: 
"+PHONE;
 public static var CONTACT_US_AFFILIATE:String = "Hello, contact us by 
phone at: "+PHONE_AFFILIATE;

and switching all the references I have to MessageStrings for affiliate info I 
would like to do

public static var CONTACT_US:String = "Hello, contact us by phone at: 
"+getPhone();

and have a new variable (static var) called THE_AFFILIATE that gets set by a 
static function and getPhone returns a static var depending on what 
THE_AFFILIATE is set to.

where getPhone is something like this 

public static function getPhone():String {
var retPhone:String = "";
switch (THE_AFFILIATE) {
case MY_BUSINESS:
retPhone = SUPPORT_PHONE;
break;
case AFFILIATE:
retPhone = SUPPORT_PHONE_AFFILIATE;
break;
}   
return retPhone;
}

So, this almost works, problem is that the class (MessageStrings) sets all the 
variables intially and then when I set the Affiliate info later, the static 
vars are not updated, and therefore do not reflect the text I want to see.  

Is is possible to update all the variables that are affected by a change to the 
affiliate?  Kinda like calling the constructor again, but that won't work cause 
it resets my affiliate variable?







[flexcoders] Re: Search item in Hierarchical Data used in ADG then select node

2010-02-26 Thread Joshua
I think you can use the hierachicalCursor to run through all the nodes in the 
xml and then when you hit the node you are looking for you could specify it as 
the selectedItem in the ADG.



--- In flexcoders@yahoogroups.com, "hpatino.rm"  wrote:
>
> I display hierarchical data (different levels each node) using an XML file 
> sent by the server and converted to "hierachical data" in Flex.
>  
> ADG displays the data correctly.  
>  
>  I want to do the following
>  
>  1. search for a unique value id from a node property "nid" in the 
> hierachical data (not shown in the ADG, but available in the Hierchical data 
> as property in the XML file)
>  
>  2. select the node found and display it on the ADG
>  
> I know I can use adg.hierarchicalCollectionView.openNode(object)
>  
> 
> How to do #1 and then what parameter I must pass to #2?  any other shortcuts 
> or ideas?
> 
> 
> HP
>




[flexcoders] Viewing flash based website in HTML component

2010-02-26 Thread Joshua
Hello,

I've got an air app where I'm trying to use the Html component to load up a 
flash website.  Problem is that the website starts to load (I can see the 
preloader) and then the html component just goes blank.  I wrote the html page 
I'm trying to load so I went in and did some trimming of javascript stuff that 
I didn't really need that I thought might be causing the issue, but, no dice.  
I'm also catch uncaughtScript errors from HTML, and there are none.  Anybody 
have any ideas?  The flash on the page that I'm loading only required flash 
player 8, so I'm thinking that shouldn't be an issue.  The page I'm trying to 
load is www.socialsaga.com/air_index.php

Here is my little mxml file that won't properly display the site.

http://www.adobe.com/2006/mxml"; 
enabled="true" visible="true" width="100%" height="650">



http://www.socialsaga.com/air_index.php"; id="htmlOne"/>





[flexcoders] Re: Flex Soap Version Mismatch

2009-10-31 Thread Joshua
Well now it doesn't matter.  I got it running through a php proxy.  Here is 
what I ended up with.  Hope this saves somebody else 3 days.
 
https://secure.thedomain.com/ws/theservice.asmx?wsdl';
 
$header[] = "POST /ws/theservice.asmx HTTP/1.1";
$header[] = "Host: www.shipnotic.com";
$header[] = "Content-Type: text/xml; charset=utf-8";
$header[] = "Content-length: ".strlen($soapRequest);
$header[] = "SOAPAction: ".$soapAction;
 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST,'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $soapRequest);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
 
$result = curl_exec($ch);
echo $result;
curl_close($ch);
?>

--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> 
> I'm still running naked, but am getting a better grip on this stuff.
> 
> But here was my break, NOT!!
> 
> The company was nice enough to put me on their crossdomain file.  So, I'm 
> thinking good, but I was wrong.  I still get a security violation
> 
> 
> FaultEvent fault=[RPC Fault faultString="Security error accessing url" 
> faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTPS"] 
> messageId=null type="fault" bubbles=true cancelable=true eventPhase=2
> 
> 
> What is up with that.  I thought that the cross-domain file would handle 
> that.  Here is the cross domain file on the root of the wsdl service
> 
> 
> 
> 
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> 
> 
> 
> 
> 
> I am at https://www.shipnotic.com and am accessing a wsdl at https:// at well.
> 
> 
> anybody know why this is still happening with crossdomain support?
> 
> 
> Thns,
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > I would love to know too but after running around naked and sacrificing 
> > some chickens I could not get it to work.
> > 
> > All I know is that you will actually save time by doing the hand coding. 
> > Maybe some day we'll have an answer but that day is not today.
> > 
> > 
> > HTH.
> > 
> > 
> > 
> > 
> > Steve
> > 
> > --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> > >
> > > Thanks for the advice Steve.  So to do that I'm gonna need to 'hand-code' 
> > > all the calls from Flex to php and then do the same with php, creating 
> > > all the methods by hand from the wsdl?  Isn't there a simpler way to do 
> > > it using the Flex wsdl wizard and a php proxy that just passes through 
> > > the soap request?  And either way I do it I still want to know why the 
> > > way I'm attempting to do it won't work.  Why does going through php 
> > > change my soap envelop and create a mismatch I guess is the big question??
> > >  
> > > 
> > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > >
> > > > I think you may be over thinking this.
> > > > 
> > > > I have the same situation as you - a local PHP server and a remote Web 
> > > > Service.
> > > > 
> > > > I tried for a long time to get it working by proxying through PHP like 
> > > > what you are trying. I could never get it to work.
> > > > 
> > > > Instead, I created a SOAP Client in PHP that could talk to the Web 
> > > > Service. Once this was working I used WebORB to create a service to 
> > > > talk to Flex. Then I merged the code. Now I have Flex sending and 
> > > > receiving objects via WebORB and PHP exchanging data via SOAP. The best 
> > > > of both worlds.
> > > > 
> > > > 
> > > > HTH
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Steve
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> > > > >
> > > > > I have a problem with soap and flex 3.  I have created a webservice 
> > > > > through the import webservice menu in Flex Builder.  If I use the 
> > > > > service as is I get a security error because the crossdomain policy 
> > > > > on the remote server doesn't comply.  So, instead I am using a php 
> > > > > proxy t

[flexcoders] Re: Flex Soap Version Mismatch

2009-10-30 Thread Joshua

I'm still running naked, but am getting a better grip on this stuff.

But here was my break, NOT!!

The company was nice enough to put me on their crossdomain file.  So, I'm 
thinking good, but I was wrong.  I still get a security violation


FaultEvent fault=[RPC Fault faultString="Security error accessing url" 
faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTPS"] 
messageId=null type="fault" bubbles=true cancelable=true eventPhase=2


What is up with that.  I thought that the cross-domain file would handle that.  
Here is the cross domain file on the root of the wsdl service




http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>





I am at https://www.shipnotic.com and am accessing a wsdl at https:// at well.


anybody know why this is still happening with crossdomain support?


Thns,
--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I would love to know too but after running around naked and sacrificing some 
> chickens I could not get it to work.
> 
> All I know is that you will actually save time by doing the hand coding. 
> Maybe some day we'll have an answer but that day is not today.
> 
> 
> HTH.
> 
> 
> 
> 
> Steve
> 
> --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> >
> > Thanks for the advice Steve.  So to do that I'm gonna need to 'hand-code' 
> > all the calls from Flex to php and then do the same with php, creating all 
> > the methods by hand from the wsdl?  Isn't there a simpler way to do it 
> > using the Flex wsdl wizard and a php proxy that just passes through the 
> > soap request?  And either way I do it I still want to know why the way I'm 
> > attempting to do it won't work.  Why does going through php change my soap 
> > envelop and create a mismatch I guess is the big question??
> >  
> > 
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > I think you may be over thinking this.
> > > 
> > > I have the same situation as you - a local PHP server and a remote Web 
> > > Service.
> > > 
> > > I tried for a long time to get it working by proxying through PHP like 
> > > what you are trying. I could never get it to work.
> > > 
> > > Instead, I created a SOAP Client in PHP that could talk to the Web 
> > > Service. Once this was working I used WebORB to create a service to talk 
> > > to Flex. Then I merged the code. Now I have Flex sending and receiving 
> > > objects via WebORB and PHP exchanging data via SOAP. The best of both 
> > > worlds.
> > > 
> > > 
> > > HTH
> > > 
> > > 
> > > 
> > > 
> > > Steve
> > > 
> > > --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> > > >
> > > > I have a problem with soap and flex 3.  I have created a webservice 
> > > > through the import webservice menu in Flex Builder.  If I use the 
> > > > service as is I get a security error because the crossdomain policy on 
> > > > the remote server doesn't comply.  So, instead I am using a php proxy 
> > > > to relay the webservice through my server and out to the webservice 
> > > > back to the server back to Flex.  When I try to do this I get a SOAP 
> > > > mismatch error coming from the below code.
> > > > 
> > > > else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> > > > {
> > > > throw new Error("SOAP Response Version Mismatch");
> > > > }
> > > > 
> > > > I went back in and checked the value of envNS.uri and 
> > > > SOAPConstants.SOAP_ENVELOPE_URI in both the previously described 
> > > > situations (php proxy and straight security riddled call).  In the 
> > > > security riddled call the two variables match.  In the proxy call I get 
> > > > back differing values of envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> > > > 
> > > > Can somebody tell me why the variables are not matching when put 
> > > > through the php proxy.  The php is simple, just curl, so I've pasted it 
> > > > below.  
> > > > 
> > > > ///START PHP SNIPPET
> > > > 
> > > > $url = $_GET['url'];
> > > > $headers = $_GET['headers'];
> > > > $mimeType = $_GET['mimeType'];
> > > > 
> > > > //Start the Curl session
> > > > $session = curl_init();
> > > > 
> > > > // Don't return HTTP headers. Do return the contents of the call
> > > > curl_setopt($session, CURLOPT_URL, $url);
> > > > curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : 
> > > > false);
> > > > curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
> > > > curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
> > > > curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
> > > > 
> > > > // Make the call
> > > > $response = curl_exec($session);
> > > > 
> > > > if ($mimeType != "")
> > > > {
> > > > // The web service returns XML. Set the Content-Type 
> > > > appropriately
> > > > header("Content-Type: ".$mimeType);
> > > > }
> > > > 
> > > > echo $response;
> > > > 
> > > > curl_close($session);
> > > > 
> > > > //END PHP SNIPPET
> > > > 
> > > > Any help would be great.  Thanks,
> > > > 
> > > > Josh
> > > >
> > >
> >
>




[flexcoders] Re: Flex Soap Version Mismatch

2009-10-28 Thread Joshua
Thanks for the advice Steve.  So to do that I'm gonna need to 'hand-code' all 
the calls from Flex to php and then do the same with php, creating all the 
methods by hand from the wsdl?  Isn't there a simpler way to do it using the 
Flex wsdl wizard and a php proxy that just passes through the soap request?  
And either way I do it I still want to know why the way I'm attempting to do it 
won't work.  Why does going through php change my soap envelop and create a 
mismatch I guess is the big question??
 

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I think you may be over thinking this.
> 
> I have the same situation as you - a local PHP server and a remote Web 
> Service.
> 
> I tried for a long time to get it working by proxying through PHP like what 
> you are trying. I could never get it to work.
> 
> Instead, I created a SOAP Client in PHP that could talk to the Web Service. 
> Once this was working I used WebORB to create a service to talk to Flex. Then 
> I merged the code. Now I have Flex sending and receiving objects via WebORB 
> and PHP exchanging data via SOAP. The best of both worlds.
> 
> 
> HTH
> 
> 
> 
> 
> Steve
> 
> --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> >
> > I have a problem with soap and flex 3.  I have created a webservice through 
> > the import webservice menu in Flex Builder.  If I use the service as is I 
> > get a security error because the crossdomain policy on the remote server 
> > doesn't comply.  So, instead I am using a php proxy to relay the webservice 
> > through my server and out to the webservice back to the server back to 
> > Flex.  When I try to do this I get a SOAP mismatch error coming from the 
> > below code.
> > 
> > else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> > {
> > throw new Error("SOAP Response Version Mismatch");
> > }
> > 
> > I went back in and checked the value of envNS.uri and 
> > SOAPConstants.SOAP_ENVELOPE_URI in both the previously described situations 
> > (php proxy and straight security riddled call).  In the security riddled 
> > call the two variables match.  In the proxy call I get back differing 
> > values of envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> > 
> > Can somebody tell me why the variables are not matching when put through 
> > the php proxy.  The php is simple, just curl, so I've pasted it below.  
> > 
> > ///START PHP SNIPPET
> > 
> > $url = $_GET['url'];
> > $headers = $_GET['headers'];
> > $mimeType = $_GET['mimeType'];
> > 
> > //Start the Curl session
> > $session = curl_init();
> > 
> > // Don't return HTTP headers. Do return the contents of the call
> > curl_setopt($session, CURLOPT_URL, $url);
> > curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : false);
> > curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
> > curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
> > curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
> > 
> > // Make the call
> > $response = curl_exec($session);
> > 
> > if ($mimeType != "")
> > {
> > // The web service returns XML. Set the Content-Type appropriately
> > header("Content-Type: ".$mimeType);
> > }
> > 
> > echo $response;
> > 
> > curl_close($session);
> > 
> > //END PHP SNIPPET
> > 
> > Any help would be great.  Thanks,
> > 
> > Josh
> >
>




[flexcoders] Re: Flex Soap Version Mismatch

2009-10-27 Thread Joshua
When instantiating webservice (implements webservice) with this line (no 
proxy/destination url, but rootUrl)


this.myService = new ModpayWeb(null, 
"https://www.mydomain.com/amfphp/services/mpNd.php?url=https%3A%2F%2Fsecure.modpay.com%2Fws%2Fmodpay.asmx%3Fwsdl";);


I get a soap envelop of


http://schemas.xmlsoap.org/wsdl/


which does not match my static const


public static const SOAP_ENVELOPE_URI:String = 
"http://schemas.xmlsoap.org/soap/envelope/";;


and gives me a soap mismatch error


but when I go directly to the source and don't use the proxy I get back an 
envelop of


http://schemas.xmlsoap.org/soap/envelope/


which does match my predefined const


but I get a security error channel  DefaultHttps


??

--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> 
> I just don't get the overall picture here with this wsdl stuff with flex, so 
> I've got some more questions and more info.  Firstly, I don't have a 
> services-config.xml file... Do I need one?  If so how, where do I create it.  
> I've seen a bunch of partial info on the subject but nothing really through.  
> All my stuff is going from https to https, the site is hosted on https and 
> the service is located on https.  Does that matter.  I have control over my 
> server and can put cross-domain files on it.  I have a proxy written with 
> curl trying to relay the call to the service.  Do I need to do anything 
> special with that because I'm am going across https?  I guess the port deal 
> selector on the flex wsdl creation wizard is really a namespace and not a 
> more traditional communication port number.. Is that correct?  
> 
> Also, here is my crossdomain file on the root of my server
> 
>  
> 
> 
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> 
> 
> 
> 
> 
>  
> 
> Does this look good considering https?
> 
> -
> 
> This is what I get if I don't pass a rootUrl in to the AbstractWebService 
> constructor (that's how I use the php proxy)
> 
>  
> 
> FaultEvent fault=[RPC Fault faultString="Security error accessing url" 
> faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTPS"] 
> messageId=null type="fault" bubbles=true cancelable=true eventPhase=2]
> 
>  
> 
> Which, by the way when I'm working in debug mode on my computer works just 
> fine until I upload to server.
> --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> >
> > Some more info...
> > 
> > 
> > I'm running everything over https
> > 
> > 
> > When I create the wsdl code from flex builder wizard, I have to select an 
> > alternative port to connect with the soap1.1 version (on the same screen 
> > where you specify the services you want to connect to).  Is it possible 
> > that when I run the php proxy and curl that I somehow lose the correct port 
> > to connect to 1.1 and get 1.2 response back.  If so, anybody know how I 
> > could correct that?  
> > 
> > --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> > >
> > > I have a problem with soap and flex 3.  I have created a webservice 
> > > through the import webservice menu in Flex Builder.  If I use the service 
> > > as is I get a security error because the crossdomain policy on the remote 
> > > server doesn't comply.  So, instead I am using a php proxy to relay the 
> > > webservice through my server and out to the webservice back to the server 
> > > back to Flex.  When I try to do this I get a SOAP mismatch error coming 
> > > from the below code.
> > > 
> > > else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> > > {
> > > throw new Error("SOAP Response Version Mismatch");
> > > }
> > > 
> > > I went back in and checked the value of envNS.uri and 
> > > SOAPConstants.SOAP_ENVELOPE_URI in both the previously described 
> > > situations (php proxy and straight security riddled call).  In the 
> > > security riddled call the two variables match.  In the proxy call I get 
> > > back differing values of envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> > > 
> > > Can somebody tell me why the variables are not matching when put through 
> > > the php proxy.  The php is simple, just curl, so I've pasted it below.  
> > > 
> > > ///START PHP SNIPPET
> > > 
> > > $url = $_GET['url'];
> > > $headers = $_GET['headers'];
> > &

[flexcoders] Re: Flex Soap Version Mismatch

2009-10-27 Thread Joshua

I just don't get the overall picture here with this wsdl stuff with flex, so 
I've got some more questions and more info.  Firstly, I don't have a 
services-config.xml file... Do I need one?  If so how, where do I create it.  
I've seen a bunch of partial info on the subject but nothing really through.  
All my stuff is going from https to https, the site is hosted on https and the 
service is located on https.  Does that matter.  I have control over my server 
and can put cross-domain files on it.  I have a proxy written with curl trying 
to relay the call to the service.  Do I need to do anything special with that 
because I'm am going across https?  I guess the port deal selector on the flex 
wsdl creation wizard is really a namespace and not a more traditional 
communication port number.. Is that correct?  

Also, here is my crossdomain file on the root of my server

 


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>





 

Does this look good considering https?

-

This is what I get if I don't pass a rootUrl in to the AbstractWebService 
constructor (that's how I use the php proxy)

 

FaultEvent fault=[RPC Fault faultString="Security error accessing url" 
faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTPS"] 
messageId=null type="fault" bubbles=true cancelable=true eventPhase=2]

 

Which, by the way when I'm working in debug mode on my computer works just fine 
until I upload to server.
--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> Some more info...
> 
> 
> I'm running everything over https
> 
> 
> When I create the wsdl code from flex builder wizard, I have to select an 
> alternative port to connect with the soap1.1 version (on the same screen 
> where you specify the services you want to connect to).  Is it possible that 
> when I run the php proxy and curl that I somehow lose the correct port to 
> connect to 1.1 and get 1.2 response back.  If so, anybody know how I could 
> correct that?  
> 
> --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> >
> > I have a problem with soap and flex 3.  I have created a webservice through 
> > the import webservice menu in Flex Builder.  If I use the service as is I 
> > get a security error because the crossdomain policy on the remote server 
> > doesn't comply.  So, instead I am using a php proxy to relay the webservice 
> > through my server and out to the webservice back to the server back to 
> > Flex.  When I try to do this I get a SOAP mismatch error coming from the 
> > below code.
> > 
> > else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> > {
> > throw new Error("SOAP Response Version Mismatch");
> > }
> > 
> > I went back in and checked the value of envNS.uri and 
> > SOAPConstants.SOAP_ENVELOPE_URI in both the previously described situations 
> > (php proxy and straight security riddled call).  In the security riddled 
> > call the two variables match.  In the proxy call I get back differing 
> > values of envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> > 
> > Can somebody tell me why the variables are not matching when put through 
> > the php proxy.  The php is simple, just curl, so I've pasted it below.  
> > 
> > ///START PHP SNIPPET
> > 
> > $url = $_GET['url'];
> > $headers = $_GET['headers'];
> > $mimeType = $_GET['mimeType'];
> > 
> > //Start the Curl session
> > $session = curl_init();
> > 
> > // Don't return HTTP headers. Do return the contents of the call
> > curl_setopt($session, CURLOPT_URL, $url);
> > curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : false);
> > curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
> > curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
> > curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
> > 
> > // Make the call
> > $response = curl_exec($session);
> > 
> > if ($mimeType != "")
> > {
> > // The web service returns XML. Set the Content-Type appropriately
> > header("Content-Type: ".$mimeType);
> > }
> > 
> > echo $response;
> > 
> > curl_close($session);
> > 
> > //END PHP SNIPPET
> > 
> > Any help would be great.  Thanks,
> > 
> > Josh
> >
>




[flexcoders] Re: Flex Soap Version Mismatch

2009-10-27 Thread Joshua
Some more info...


I'm running everything over https


When I create the wsdl code from flex builder wizard, I have to select an 
alternative port to connect with the soap1.1 version (on the same screen where 
you specify the services you want to connect to).  Is it possible that when I 
run the php proxy and curl that I somehow lose the correct port to connect to 
1.1 and get 1.2 response back.  If so, anybody know how I could correct that?  

--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> I have a problem with soap and flex 3.  I have created a webservice through 
> the import webservice menu in Flex Builder.  If I use the service as is I get 
> a security error because the crossdomain policy on the remote server doesn't 
> comply.  So, instead I am using a php proxy to relay the webservice through 
> my server and out to the webservice back to the server back to Flex.  When I 
> try to do this I get a SOAP mismatch error coming from the below code.
> 
> else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> {
> throw new Error("SOAP Response Version Mismatch");
> }
> 
> I went back in and checked the value of envNS.uri and 
> SOAPConstants.SOAP_ENVELOPE_URI in both the previously described situations 
> (php proxy and straight security riddled call).  In the security riddled call 
> the two variables match.  In the proxy call I get back differing values of 
> envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> 
> Can somebody tell me why the variables are not matching when put through the 
> php proxy.  The php is simple, just curl, so I've pasted it below.  
> 
> ///START PHP SNIPPET
> 
> $url = $_GET['url'];
> $headers = $_GET['headers'];
> $mimeType = $_GET['mimeType'];
> 
> //Start the Curl session
> $session = curl_init();
> 
> // Don't return HTTP headers. Do return the contents of the call
> curl_setopt($session, CURLOPT_URL, $url);
> curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : false);
> curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
> curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
> curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
> 
> // Make the call
> $response = curl_exec($session);
> 
> if ($mimeType != "")
> {
> // The web service returns XML. Set the Content-Type appropriately
> header("Content-Type: ".$mimeType);
> }
> 
> echo $response;
> 
> curl_close($session);
> 
> //END PHP SNIPPET
> 
> Any help would be great.  Thanks,
> 
> Josh
>




[flexcoders] Flex Soap Version Mismatch

2009-10-27 Thread Joshua
I have a problem with soap and flex 3.  I have created a webservice through the 
import webservice menu in Flex Builder.  If I use the service as is I get a 
security error because the crossdomain policy on the remote server doesn't 
comply.  So, instead I am using a php proxy to relay the webservice through my 
server and out to the webservice back to the server back to Flex.  When I try 
to do this I get a SOAP mismatch error coming from the below code.

else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
{
throw new Error("SOAP Response Version Mismatch");
}

I went back in and checked the value of envNS.uri and 
SOAPConstants.SOAP_ENVELOPE_URI in both the previously described situations 
(php proxy and straight security riddled call).  In the security riddled call 
the two variables match.  In the proxy call I get back differing values of 
envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.

Can somebody tell me why the variables are not matching when put through the 
php proxy.  The php is simple, just curl, so I've pasted it below.  

///START PHP SNIPPET

$url = $_GET['url'];
$headers = $_GET['headers'];
$mimeType = $_GET['mimeType'];

//Start the Curl session
$session = curl_init();

// Don't return HTTP headers. Do return the contents of the call
curl_setopt($session, CURLOPT_URL, $url);
curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : false);
curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);

// Make the call
$response = curl_exec($session);

if ($mimeType != "")
{
// The web service returns XML. Set the Content-Type appropriately
header("Content-Type: ".$mimeType);
}

echo $response;

curl_close($session);

//END PHP SNIPPET

Any help would be great.  Thanks,

Josh



[flexcoders] Dealing with large object to print.

2009-10-26 Thread Joshua
I'm having a problem with an object (vector image that I have created) that I'm 
printing exceeding the maximum height and width of a printable object.  Are 
there any strategies that I should look for with respect to this issue. 
Capturing the display object as a jpeg with snapshot and then splitting that up 
into different sizes chunks for individual pages, something like that.  I don't 
know... any advice?



[flexcoders] Image not showing up on print job but does on screen

2009-10-15 Thread Joshua
Hello.

I have an array of images that I create from an array of byte array.  I also 
push each image onto a visible display object on the screen.  For some reason I 
can't get the image to actually print using the Flex Print Job.  

I swear it was just working.  Here is my print code.  Anything weird to 
anybody?  Thanks in Advance.

public function printLabels():void {
hideCursor();
var pj:FlexPrintJob = new 
FlexPrintJob();

var pjStart:Boolean = pj.start();

if (pjStart == true) {  
for (var i:int  = 0; i < 
this.labelsToPrint.length; i++) {
var currentPage:Image = 
(this.labelsToPrint[i] as Image);
try {

pj.addObject(currentPage);
}
catch(e:Error) 
{
var err:Error = e;
}
}
pj.send();
}
else {

showMessage(MessageStrings.PRINT_JOB_FAILED_DETAIL, 
MessageStrings.PRINT_JOB_FAILED_TITLE);
}
closeLabels();
}




[flexcoders] Re: Flex and BlazeDS in internet environment

2008-10-08 Thread Joshua Partogi
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Wednesday 08 Oct 2008, Joshua Partogi wrote:
> > > Do you expect 'localhost' to resolve to the correct thing for your
> > > users, on
> > > their machines ?
> >
> > Yes. I expect user to be able to access the apps and resolve the
> > correct thing on their machine.
> 
> You expect them to be running your server on their local machine ?
> Or you expect 'localhost' to resolve to something that isn't the local 
> machine ?

Hi Thom,

Thanks for the reply. It will be a website that is deployed on
internet. So user will access the flex application that is on a remote
machine from their browser on their local machine. What do I need to
write on the endpoint? Should I write the remote server domain name or
will localhost works?

Thanks in advance



[flexcoders] Re: Flex and BlazeDS in internet environment

2008-10-07 Thread Joshua Partogi
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Tuesday 07 Oct 2008, Joshua Partogi wrote:
> > endpoint="http://localhost:8080/messagebroker/amf";
> > Do we have to change the URL?
> 
> Do you expect 'localhost' to resolve to the correct thing for your 
users, on 
> their machines ?

Yes. I expect user to be able to access the apps and resolve the 
correct thing on their machine.

Thanks in advance



[flexcoders] Flex and BlazeDS in internet environment

2008-10-07 Thread Joshua Partogi
Dear all,

Do we have to change our code regarding the BlazeDS usage when we
deploy it in internet environment?
In my dev environment we use this as the RemoteObject enpoint :
endpoint="http://localhost:8080/messagebroker/amf";

Do we have to change the URL?

Anyone has any experience on this?

Thanks in advance

-- 
Read my blog: http://joshuajava.wordpress.com/
Follow me on twitter: http://twitter.com/jpartogi


[flexcoders] How do we clear List's data

2008-09-29 Thread Joshua Partogi
dear all,

I have got a List component that has data in it. But I want to clear
the data in it. How do we do this in Flex? Has anyone got any
experience with this? I tried using list.dataProvider = null but it
doesn't work. Could anyone give me a hint and clue about this please?

Many thanks

-- 
Read my blog: http://joshuajava.wordpress.com/
Follow me on twitter: http://twitter.com/jpartogi


[flexcoders] Formatting number in dataGrid column

2008-09-17 Thread Joshua Partogi
Dear all,

I want to format a number inside a dataGrid column, how do I do this?
I tried using labelFunction as such, but it still doesnt work. Does
anyone here have any clue on how to do it?
private function basePriceLabel(item:Object):String{
return fBasePriceEntry.format(item.basePrice);
}










many thanks in advance

-- 
Read my blog: http://joshuajava.wordpress.com/
Follow me on twitter: http://twitter.com/jpartogi


[flexcoders] Validating more than one source with one validator

2008-09-03 Thread Joshua Partogi
Dear all,

Can we use one validator to validate more than one source?











I placed more than one value inside the source attribute of the
mx:StringValidator component but it didn't work. How do I handle this
kind of issue in Flex? Does anyone has any idea about this?

Many thanks

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


[flexcoders] Re: Applying form login in Flex

2008-08-26 Thread Joshua Partogi
Thanks.

I can work it out now. :-)

Many thanks

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Data from an RPC call, HTTPService for example, is just data, and can be
> used however you wish.  Of course, you will need to use a result handler
> function.  Do you know how to do that?
> 
> Tracy
>
 
> -- 
> Setting a new landmark.
> Blog: http://joshuajava.wordpress.com/
>  
> Twitter: http://twitter.com/thejavafreak
> 
>




[flexcoders] Applying form login in Flex

2008-08-25 Thread Joshua Partogi
Dear all,

How do you apply form login in Flex?

I use HttpService from flex to send the username and password to the
Backend. And then the backend will send back login message in XML
format.

Now how do I display this XML in Flex as it seems that based on the
documentation the XML data to be sent back to the front-end are for
List and DataGrid only.

Or could anyone give me an insight to do form login in Flex?

Many thanks.

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


[flexcoders] Accessing Java Object property in DataGrid

2008-08-15 Thread Joshua Jackson
Dear all,

I want to display a Java object property in DataGridColumn's
dataField. How do I this in Flex?

In my dataProvider I have an object namely called member.

Now from the DataGridColumn's dataField, how do I display member.firstName?

This is what I meant:





Could anyone give me a hint please?

Best regards,
-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


[flexcoders] Upload file component

2008-08-11 Thread Joshua Jackson
Dear all,

How do I upload file with Flex? Is there any file uploader component?
I could not find any in the documentation, perhaps I have missed
anything. Could anyone give me some hints?

Best regards,

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


[flexcoders] Re: How to pass value to ComboBox selectedItem?

2008-08-11 Thread Joshua Jackson
--- In flexcoders@yahoogroups.com, Laurent Cozic <[EMAIL PROTECTED]> wrote:
>
> You need to go through the dataProvider to change the value of the
selected item. For example:
> 
> comboBox.dataProvider.setItemAt(newItem, comboBox.selectedIndex);
> 
 
Thanks Laurent, it works now.

Best regards,



[flexcoders] How to pass value to ComboBox selectedItem?

2008-08-11 Thread Joshua Jackson
Dear all,

I haven't succeed passing object value to ComboBox selectedItem, how
do I do this in Flex? In HTML I pass a record id to the 
value.

Best regards,

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


[flexcoders] Re: How does AIR apps connect to database?

2008-08-11 Thread Joshua Jackson
--- In flexcoders@yahoogroups.com, "Douglas McCarroll"
<[EMAIL PROTECTED]> wrote:
>
> It sounds like you want to connect to a local DB. BlazeDS works fine to
> connect to a remote DB but for a local DB the standard approach is
the use
> the SQLite DB that is built into the AIR runtime.

Exactly. I want to connect to local DB. Is there any docs to connect
to this SQLite DB locally?

cheers,




[flexcoders] Re: How does AIR apps connect to database?

2008-08-10 Thread Joshua Jackson
--- In flexcoders@yahoogroups.com, "haykelbj" <[EMAIL PROTECTED]> wrote:
>
> If you are using remoting with Flex you should still be able to use it
> with AIR.

But you can not bundle a web servlet container with AIR apps. :(

--
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak





[flexcoders] How does AIR apps connect to database?

2008-08-09 Thread Joshua Jackson
Dear all,

I want know how does AIR apps can connect to database? With Flash flex
apps, I connect to the database using BlazeDS. But how do I do this
with AIR apps since I can not distribute the web container with AIR
apps. Could anyone give me a hint on this?

Best regards,

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


[flexcoders] Re: Paginate DataGrid

2008-08-08 Thread Joshua Jackson
I mean the data in DataGrid is paginated, so not all of them is displayed on 
one page. 

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What do you mean by paginated?  The PrintDataGrid will help you print
> across multiple pages.
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Joshua Jackson
> Sent: Friday, August 08, 2008 1:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Paginate DataGrid
> 
> 
> 
> Dear all,
> 
> How do I paginate DataGrid? In the flex 3 reference it is written that
> DataGrid can be paginated, but it doesn't explain on how to do it?
> Could anyone give me a hint on this?
> 
> Best regards
> 
> -- 
> Setting a new landmark.
> Blog: http://joshuajava.wordpress.com/
> <http://joshuajava.wordpress.com/> 
> Twitter: http://twitter.com/thejavafreak
> <http://twitter.com/thejavafreak>
>





[flexcoders] Paginate DataGrid

2008-08-08 Thread Joshua Jackson
Dear all,

How do I paginate DataGrid? In the flex 3 reference it is written that
DataGrid can be paginated, but it doesn't explain on how to do it?
Could anyone give me a hint on this?

Best regards

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


[flexcoders] Multiple select with mx:List

2008-08-04 Thread Joshua Jackson
Dear all,

How do I do multiple selection with mx:List. Is there any parameter
that I have to set? Because I can only select on item from mx:List.
Could anyone give me a hint on this?

Many thanks.



[flexcoders] How do I add selectedItems in the PopUp window?

2008-08-03 Thread Joshua Jackson
Dear all,

In the parent window I have a List targetComponent and in the pop up
window I also have a List component. The question is how do I add the
selectedItems in the popup window to the listData of the
targetComponent/parent window? Could anyone give me a hint on this?

Many thanks

-- 
Setting a new landmark.

Blog: http://joshuajava.wordpress.com/


[flexcoders] How do we implement pop-up input in Flex?

2008-07-31 Thread Joshua Jackson
Dear all,

I want to have a popup input in my flex apps where the values in the
popup window will be set to the parent window that calls this popup
window. How do we set the variable chosen to the parent window in
Flex? Could anyone give me a hint on these please.

Many thanks

-- 
Setting a new landmark.

Blog: http://joshuajava.wordpress.com/


Re: [flexcoders] Refreshing data in dataGrid

2008-07-31 Thread Joshua Jackson
Hi tom, thanks for the fast response. I'm using Java on the server
side. I use spring hibernate for the backend

On 7/31/08, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Wednesday 30 Jul 2008, Joshua Jackson wrote:
>> How do we do this with BlazeDS? I'm currently using BlazeDS. Is there
>> any configuration for notifying the apps that something has changed on
>> the database?
>
> Server-side, you need to nudge BlazeDS that the table has changed, and it
> will
> notify all the subscribed clients.
> What's you server language ?
>
> --
> Tom Chiverton
>
> 
>
> 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
>
>
>
>


-- 
Setting a  new landmark.

Blog: http://joshuajava.wordpress.com/


Re: [flexcoders] Refreshing data in dataGrid

2008-07-30 Thread Joshua Jackson
On Wed, Jul 30, 2008 at 10:29 PM, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Wednesday 30 Jul 2008, Joshua Jackson wrote:
>> I've got a list of data displayed in a datagrid where the DataProvider
>> is from Spring as the backend. Now everytime I add, update or delete
>> data, it doesn't refresh the datagrid. How do I do this in Flex?
>
> Do you want your application to notice automatically that something has
> changed on the server's database ? If so, BlazeDS is your friend.

How do we do this with BlazeDS? I'm currently using BlazeDS. Is there
any configuration for notifying the apps that something has changed on
the database?

>> I've tried doing
>> - dataProvider.refresh();
>> - dataGrid.dataProvider.dispatchEvent(new
>> CollectionEvent(CollectionEvent.COLLECTION_CHANGE));
>
> Or do you mean that you are removing items from the ArrayCollection that is
> set as the dataprovider, in which case as long as you wrote
> dataProvider="{myAC}"
> it should Just Work.

Yes, but the dataProvider is data from the database. Instead of
ArrayCollection that is set on the client.

-- 
Setting a new landmark.

Blog: http://joshuajava.wordpress.com/


[flexcoders] Refreshing data in dataGrid

2008-07-29 Thread Joshua Jackson
Dear all,

I've got a list of data displayed in a datagrid where the DataProvider
is from Spring as the backend. Now everytime I add, update or delete
data, it doesn't refresh the datagrid. How do I do this in Flex?
I've tried doing 
- dataProvider.refresh();
- dataGrid.dataProvider.dispatchEvent(new
CollectionEvent(CollectionEvent.COLLECTION_CHANGE));

But none of them works. Is there a special treatment is the data
provider is from a database? Please give me some hints on this.

Many thanks



[flexcoders] Re: alert button order

2008-07-25 Thread joshua gatcke
Thanks for the tips.

I am going to write a new alert component - this might end up being  
super awesome now that I think about it. Oh the possibilities. :D






[flexcoders] alert button order

2008-07-24 Thread joshua gatcke
Anyone know if it is possible to control the order of buttons in an  
alert? According to the docs adobe has predetermined the button order  
for us.

Currently the alert's buttons read [yes] [no], however our entire app  
has all our controls in reverse order [no] [yes]. This design decision  
is reflected in 100's of places through out our app and for  
consistence sake, we need to make alerts the same way. IMHO it seems  
extremely far fetched that we would have to go to such extremes as re- 
writing the alert class to put out buttons in a specific order.

Is there something in the docs I am missing? Has anyone else  
discovered this shortcoming? Any suggestions?

Thanks in advance for your help and advice. 


[flexcoders] ByteArray as VideoDisplay source

2008-06-19 Thread Joshua Garnett
Does anyone know of a way to connect a VideoDisplay or Video object to a
locally created ByteArray as opposed to a NetStream source?  or perhaps how
to sub-class NetStream in order to manually feed bytes from a ByteArray to
the Video object?
Essentially what I want to do is have a custom loading routine that I will
write and then pass that data on manually to a Video object.  Any help would
be appreciated.  Thanks!


--Josh


[flexcoders] Intelligent ViewStack Children

2008-04-14 Thread joshua gatcke
Does anyone know if it is possible for a component to know if it's  
'visible' or 'on screen' when it's inside a ViewStack without looking  
at the parent ViewStacks properties? I have a component and I need to  
to 'know' if it's actually in the showing viewstack child or in one of  
the hidden ones. I cannot look at the parent ViewStack because I will  
not know where or how this component is being used.

I looked through piles of documentation, not sure if I am just thick  
or something.

Any suggestions would rock the casbah, thanks in advance. 
  


[flexcoders] Re:HBox children alignment?

2008-02-11 Thread joshua gatcke
use a spacer.















[flexcoders] scale nine bug?

2008-01-29 Thread joshua gatcke

Do you think this is a bug?

I have declared a css background image for a panel (id="myPanel")  
component. If I click on this panel the event.target is:

 'myPanel'.

However, if I include scale nine formatting in the css background  
image declaration, the event.target becomes:

'myPanel.style__embed_css_assets_app_panel_panel_bg_png_1655812762_419'


Here is the CSS

Panel{
backgroundColor:#E7E7E7;
backgroundImage:Embed(source="assets/app_panel/panel_bg.png");/ 
*,scaleGridLeft="10", scaleGridTop="45", scaleGridRight="75",  
scaleGridBottom="85");*/

backgroundSize:"100%";
}


Children.



Why would including scale nine formatting to a backgroundImage CSS  
declaration change the event.target? Do  we have to worry about this  
type of thing with every component we try to skin?












[flexcoders] use runtime image more than once

2008-01-07 Thread joshua gatcke

Hello All,

Here is the problem. We are creating icon representations of a file  
system. I have to use runtime images in my application because we want  
people to be able to modify or add as many as needed without having to  
compile an swf etc. Sometimes we have 50 of the same images on the  
screen at the same time (could be more). that means that we get 50  
requests to the server for the exact same image.


I have been searching online how I could place a runtime image in a  
variable so I can use it over and over without having a new request  
(for the same image) sent to the server over and over. So far, nothing.


I have tried several things, so far nothing is panning out. Is this  
sorta thing possible?


Any tips or advice would be greatly appreciated.



Joshua Gatcke -  Director
Visua Design Group Inc.
[EMAIL PROTECTED]







[flexcoders] all text selection in app is grey

2007-10-31 Thread joshua gatcke
when you select any text in our flex app the text selection color is  
grey. It doesn't matter if it is a textInput or a textArea or  
anything else for that matter. Not sure how this happened, as far as  
I can tell, there is no way to set the text selection color via css  
or anything else. Has this ever happened to anyone else?

Thanks in advance for the help
- joshua


[flexcoders] Re: dataGridColumn width problems

2007-10-22 Thread joshua gatcke

Thanks Alex,

That worked perfectly! Such a simple solution, I love it. I guess I  
missed that property the 100 times I read the property list! lol.  I  
hope that this post helps someone else in the future.








Re: [flexcoders] LCDS/Hibernate DataServices Issue

2007-10-19 Thread Joshua Garnett
Hi Jeff,

We also have the relationship specified in our
data-management-config.xmlfile.  Here is what it looks like with names
changed to correspond to my
above example:




collectionCAssembler
spring
true











false




--Josh

On 10/19/07, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
>Hi Josh,
>
>
>
> Unfortunately the LC DS does not yet derive its annotation configuration
> from the hibernate configuration.  This is on our list but in the meantime
> you need to also have annotation configuration in the
> data-management-config.xml file.  In the metadata section of the config
> for each destination, you basically just need a one-to-many or whatever tag
> that corresponds to each association in your hibernate model which you want
> to treat as a managed association.  This is also where you configure LC DS's
> lazy="true/false" flag which controls whether the references are sent by id
> or by value when the parent item is sent to the client.
>
>
>
> Jeff
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Joshua Garnett
> *Sent:* Friday, October 19, 2007 11:44 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] LCDS/Hibernate DataServices Issue
>
>
>
> Hi Jeff,
>
> Yes we have the association tags in place.  We are using Hibernate
> Annotations and have this Annotation: @ManyToOne(optional=false,fetch=
> FetchType.LAZY)
> Object referenceToB;
>
> I should note that this doesn't occur in all cases.  For instance item 0
> in collectionA works correctly, all references from collectionC items to
> collectionB items work correctly, but item 1 in collectionA fails, all
> collectionC's referenceToBs are not actual references they are duplicates.
>
> We have a destination for each of the different collections.
>
>
> --Josh
>
>
>  On 10/18/07, *Jeff Vroom* < [EMAIL PROTECTED]> wrote:
>
> Do you have association tags (i.e. one-to-many) defined for the
> collectionb and collectionc properties?  If you do not have an explicit
> association tag defined, DMS uses the "hierarchical values" mode where it
> still detect changes but treats that entire property more like a "blob"
> which gets sent to/from the server in its entirety on each operation.  It
> will not ensure that there is only one instance for each identity so you can
> easily get aliasing problems.  In order to ensure one instance for each
> identity, we need to know the identity property for the instances in
> collectionb and c so that we can do the mapping properly.
>
>
>
> Jeff
>
>
>  --
>
> *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] *On
> Behalf Of *Joshua Garnett
> *Sent:* Thursday, October 18, 2007 6:54 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] LCDS/Hibernate DataServices Issue
>
>
>
> Hello,
>
> We've recently encountered a problem on a project I'm working on.  We are
> using the Data Management Services to managed all of our persisted objects.
> It connects to our database via a customized Hibernate assembler.  The issue
> we are seeing is that we have a series of collections that point to each
> other and the references aren't being maintained properly throughout the
> system.
>
> Example:
>
> Each item in collectiona, has two properties collectionb and collectionc.
> The items in collectionc have a reference to an item in collectionb.
>
> var itemB:Object = collectionb.getItemAt(0);
> var refItemB:object = collectionc.getItemAt(0).referenceToB;
> itemB.id == refItemB.id
>
> If at this point I make a change to itemB the corresponding object
> refItemB is not changed.  They are identical objects on the server and
> should always be the same on the client.  I can refresh my client and the
> differences in the objects are still present.  It is not until I close the
> session and re-login that refItemB is updated properly.
>
> Any thoughts on what we might be doing wrong or need to adjust?  Thanks,
>
>
> --Josh
>
>
>
>
>
>
>
>
>
>  
>


Re: [flexcoders] LCDS/Hibernate DataServices Issue

2007-10-19 Thread Joshua Garnett
Hi Jeff,

Yes we have the association tags in place.  We are using Hibernate
Annotations and have this Annotation: @ManyToOne(optional=false,fetch=
FetchType.LAZY)
Object referenceToB;

I should note that this doesn't occur in all cases.  For instance item 0 in
collectionA works correctly, all references from collectionC items to
collectionB items work correctly, but item 1 in collectionA fails, all
collectionC's referenceToBs are not actual references they are duplicates.

We have a destination for each of the different collections.


--Josh



On 10/18/07, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
>Do you have association tags (i.e. one-to-many) defined for the
> collectionb and collectionc properties?  If you do not have an explicit
> association tag defined, DMS uses the "hierarchical values" mode where it
> still detect changes but treats that entire property more like a "blob"
> which gets sent to/from the server in its entirety on each operation.  It
> will not ensure that there is only one instance for each identity so you can
> easily get aliasing problems.  In order to ensure one instance for each
> identity, we need to know the identity property for the instances in
> collectionb and c so that we can do the mapping properly.
>
>
>
> Jeff
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Joshua Garnett
> *Sent:* Thursday, October 18, 2007 6:54 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] LCDS/Hibernate DataServices Issue
>
>
>
> Hello,
>
> We've recently encountered a problem on a project I'm working on.  We are
> using the Data Management Services to managed all of our persisted objects.
> It connects to our database via a customized Hibernate assembler.  The issue
> we are seeing is that we have a series of collections that point to each
> other and the references aren't being maintained properly throughout the
> system.
>
> Example:
>
> Each item in collectiona, has two properties collectionb and collectionc.
> The items in collectionc have a reference to an item in collectionb.
>
> var itemB:Object = collectionb.getItemAt(0);
> var refItemB:object = collectionc.getItemAt(0).referenceToB;
> itemB.id == refItemB.id
>
> If at this point I make a change to itemB the corresponding object
> refItemB is not changed.  They are identical objects on the server and
> should always be the same on the client.  I can refresh my client and the
> differences in the objects are still present.  It is not until I close the
> session and re-login that refItemB is updated properly.
>
> Any thoughts on what we might be doing wrong or need to adjust?  Thanks,
>
>
> --Josh
>
>
>
>
>
>
>
>
>
>


[flexcoders] LCDS/Hibernate DataServices Issue

2007-10-18 Thread Joshua Garnett
Hello,

We've recently encountered a problem on a project I'm working on.  We are
using the Data Management Services to managed all of our persisted objects.
It connects to our database via a customized Hibernate assembler.  The issue
we are seeing is that we have a series of collections that point to each
other and the references aren't being maintained properly throughout the
system.

Example:

Each item in collectiona, has two properties collectionb and collectionc.
The items in collectionc have a reference to an item in collectionb.

var itemB:Object = collectionb.getItemAt(0);
var refItemB:object = collectionc.getItemAt(0).referenceToB;
itemB.id == refItemB.id

If at this point I make a change to itemB the corresponding object refItemB
is not changed.  They are identical objects on the server and should always
be the same on the client.  I can refresh my client and the differences in
the objects are still present.  It is not until I close the session and
re-login that refItemB is updated properly.

Any thoughts on what we might be doing wrong or need to adjust?  Thanks,


--Josh


Re: [flexcoders] help binding info to a title window

2007-09-20 Thread Joshua Garnett
Hi Gustavo,

First off you should have some method for converting the XML into an
object.  The class can be named something like SampleVO with the fields
client, description, and image.   Verify that you are able to read in the
XML and set the fields properly.

Then in your title window create the following reference:   [Bindable]
public var sample:SampleVO;
The title property of your TitleWindow would then bind to {sample.client}

Lastly, instead of trying to directly set the title in the openWindow
function, just set myWindow.sample to the sample you want to render.


--Josh

On 9/20/07, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
>
>   Hi Coders, I have a panel with a tile list bonded to a  is an external xml ,
> so far everything is ok . But I need help because I dont know how could I
> bind the  in my xml into the title of the the TiTle Window
> component.
>
> thi is the code of my main app.
>
> //this code is for triggering the Title window created by a popupmanager.
>
> private function openWindow(event:MouseEvent):void{
>  var myWindow1:TitleWindow = TitleWindow(PopUpManager.createPopUp(this,
> myTitleWindow, false));
>  myWindow1.height=450;
>  myWindow1.width=650;
>  var myTitle:String = new String(portafolio.sample);//this is supposed to
> be the id of the model and the main app.
>  myWindow1.title= myTitle;
>  trace(myTitle);//only returns in the title [object, object], [object,
> object], [object, object]
>
> this is the code of my model:
>
> 
>
> //myXml is this:
>
>
> 
>
> 
> Airborne Data
> Airborne Data is a company who takes aerial photography. We
> design their whole corporate Image
>  images/airborneLogo.png
>  
>
>
> 
> Avanti Condos
> Avanti is condo and town Homes project located at Kernan.
> They ask us for one press release and two ads in spanish
> images/avantiLogo.png
> 
>
> 
> Beaver Street Enterprise Center
> The BSEC is a business incubator, we made for them a whole
> new image(in spanish too) and a banner campaign
> images/beaverLogo.png
> 
>
> 
> Cofina Cocoa
>  Cofina is the main cocoa bean exporter from Ecuador, South
> America. We designed for them a multimedia and a thri-fold
> brochure
>  images/cofinaLogo.png
>  
>
>
> 
> Iglesia Fuente de Luz y Salvaci—n
> This a Hispanic Baptist church located in Orange Park, Fl. We
> made a new logo, corporate image and web design
> images/iglesiaLogo.png
> 
>
> 
>  John Malcolm new book
>  This is the cover and back cover design for a polemic new
> book by John Malcolm
>  images/JohnLogo.png
>  
>
>
> 
>  I-Tech Personnel Services
>  I-Tech think this is a year of renovation, so do we. We
> redesign their logo
>  images/itechLogo.png
>  
>
>
> 
>  Just Kids
>  Just Kids is a learning center who are looking for position
> their image in a new way. We made for them a tri-fold brochure
> images/jusKidsLogo.png
> 
>
> 
> Mafle Photography
> Mafle Photography is a newly created professional photo
> studio in Jacksonville. We made for them: logo design, website, postcards
> and email campaign
> images/mafleLogo.png
> 
>
> 
> LT PaintWorks
> Hispanic company who do paintworks, framing, and drywall
> amonth others. We design their whole corporate image, logo and
> mailouts
> images/ltLogo.png
> 
>
> 
>  Natural Coast Signature's Builders
>  Contracting company located in Middleburg, Fl. We made for
> them Logo, corporate image among others
> images/ncsbLogo.png
> 
>
> 
>  The Party Shop
> Party supplier business, who needed a tri-fold brochure in
> spanish to sell their articles for Quincea–eras
> images/partyShopLogo.png
> 
>
> 
>  Sunset Tan
> Tanning salon located in jacksonville, fl. We did for them
> tri-fold brochures, VIP card design, poster design, mobil ads design, mail
> out design
> images/sunsetLogo.png
> 
>
> 
>  Xeye incoroprated
>  This succesful contracting firm located in downtown
> Jacksonville. We did for them their whole new image for the
> 2007
>  images/xeyeLogo.png
>  
>
>
> 
>
>
> //and finally this is the code of myTitleWindow component.
>
>
> 
> http://www.adobe.com/2006/mxml"; layout="absolute"
> width="400" height="300" close="closePopUp()" showCloseButton="true"
> cornerRadius="20" borderStyle="solid" backgroundColor="#F9F899"
> backgroundAlpha="0.82" title="{data.client}">
> 
> 
> 
> 
>
> please I need help, I don't get it what else I should do, I googled this a
> lot of times and nothing.
>
> Regards
>
>
> Gustavo Duenas
>
>
>
>
>
>
>
>
>
>
>
>  
>


Re: [flexcoders] Re: Adding to an ArrayCollection

2007-09-19 Thread Joshua Garnett
Don,

The ArrayCollection contains an array of references. When doing the for each
loop, xyz2 is a reference to the original object you created in the previous
loop.

--Josh

On 9/19/07, donvoltz <[EMAIL PROTECTED]> wrote:
>
>   This is where I am confused.
>
> if I do
>
> xyz2.address = "Some Address"
>
> Am I not just updating the xyz2 variable and not actually the
> arrayCollection?? (I am unclear if there needs to be some additional
> binding to this)
>
> Also, what if the array collection is actually holding a collection of
> references to a custom component. When the array collection is updated,
> will the custom component actually see its property change as well??
>
> Thanks for the help
>
> Don
>
>  
>


Re: [flexcoders] Adding to an ArrayCollection

2007-09-19 Thread Joshua Garnett
Hi Don,

You should be able to do:

for each (xyz2:CustComponent in someArrayCol){
 xyz2.address = "Some address";
}

--Josh

On 9/19/07, donvoltz <[EMAIL PROTECTED]> wrote:
>
>   Is there a good way to add additional information into an array
> collection variable?
>
> If I start with this code to build an array collection with data
>
> public var someArrayCol:ArrayCollection = new ArrayCollection();
>
> for each (var item:XML in someData){
> var xyz:CustComponent = new CustComponent();
> xyz.text = item..name;
> xyz.property1 = item..age;
> someArrayCol.addItem(xyz);
> }
>
> Then at a later time when more data is obtained, how can I add
> additional information to the ArrayCollection?
>
> for example, lets say I get an address back for each of the people
> orignially added, am I able to add this to the current array collection?
>
> for each (xyz2:CustComponent in someArrayCol){
> ??? how to add in address like I did above, however, it is after I used
> addItem
> }
>
> Thanks for the guidance
>
> Don
>
>  
>


Re: [flexcoders] Code behind - class extend mxml vs. mxml extend class

2007-09-19 Thread Joshua Garnett
Hi Christoph,

I think one of the things you should look into doing, is try to avoid
directly referencing the items that are in your view in your code behind
class.  By doing so this will allow you rebuild your view without changing
much to your base class.  For example, say you have an application that has
a number of buttons that trigger some action.  In your BaseClass.as you
could have a number of consts:

[Bindable] protected static const LABEL_SUBMIT:String = "Submit";
[Bindable] protected static const LABEL_RESET:String = "Reset";

Then a simple function to handle the processing of buttons:

protected function handleButtonClick(event:MouseEvent) {
 var b:Button = event.targat as Button;
 var label:String = b.label;

 if(label == LABEL_SUBMIT) {
  doSubmit();
 }
 else if(label ==  LABEL_RESET) {
   doReset();
 else {
  throw(new Error("Invalid Label"));
 }
}

Then in your mxml view you can just bind to the consts and make a call to
the generic function:




This is an overly simplistic example, but it does demonstrate my point.  As
Tom also pointed out, by separating out the view and the code, it looks much
cleaner and in turn is more maintainable.  You'll also have code that is
more unit testable if you can just load in a class and not have to worry
about referencing an initialized view.


--Josh

On 9/19/07, Christoph Atteneder <[EMAIL PROTECTED]> wrote:
>
>What you should have done is declare a public Bindable in the code
> > behind AS
> > for each Button or whatever in the MXML file, where the variable name in
> > the
> > AS class matches the id parameter in the MXML.
> > The creationComplete() handler for the AS class then attaches all the
> > eventListeners.
>
>
> That´s exactly what I want to prevent with the second suggestion. In this
> inheritence usage I have to add manually ALL components on stage as a public
> property and set the id as attribute as you already mentioned.
>
> The point I´m not sure about is class extends mxml vs. mxml extends class.
> Shall the MXML extend the CodeBehind class as suggested in the examples,
> or the CodeBehind class extend the MXML.
>
> I hope this makes it clearer, what I´m not sure about.
>
> cheers,
>
> Christoph
>
> On 9/19/07, Tom Chiverton < [EMAIL PROTECTED]> wrote:
> >
> >   > MyClassCodeBehind extends e.g. Canvas
> >
> > An AS class, yup.
> >
> > > in the MyClass.mxml the root node is type of MyClassCodeBehind. The
> > > mxml class extends more or less the class MyClassCodeBehind.
> >
> > Yeah, the MXML extends the AS.
> >
> > > In this case the class MyClassCodeBehind of course has no access to
> > > the components in the mxml file.
> >
> > What you should have done is declare a public Bindable in the code
> > behind AS
> > for each Button or whatever in the MXML file, where the variable name in
> > the
> > AS class matches the id parameter in the MXML.
> > The creationComplete() handler for the AS class then attaches all the
> > eventListeners.
> >
> > Have you seen
> > http://ricoonflex.wordpress.com/2007/07/05/apply-code-behind-to-components/
> > ?
> >
> > --
> > Tom Chiverton
> > Helping to confidentially leverage back-end architectures
> > 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] Load Manager Class

2007-06-07 Thread Joshua Buhler
I need to load potentially few hundred images into an app I'm
building. Does anyone know of a good AS3-based load manager? Something
that could let me provide a list of images to be loaded, and control
all of the loading for me?

I could write one myself, but honestly, I'd like to save the time
involved if someone else already has.

- Josh


Re: [flexcoders] HSlider Skinning Troubles

2007-06-06 Thread Joshua Buhler
> Add a transparent box behind the light gray triangle area that's the height
> of the thumb.

I thought it might be something like that, so I tried adding a
transparent BG that matched the size of the thumb, but no luck - it
still scaled the thumb down, regardless of the size of the slider
track.

Thanks for the idea though,

Josh



On 6/6/07, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> This is just a shot in the dark:
>
> Add a transparent box behind the light gray triangle area that's the height
> of the thumb.
>
> So, if your thumb is 20 pixels high, and the track is 10 pixels high, draw a
> transparent box in the track that's 20 high and position the track on top of
> that box with the y coordinate of 5 pixels (for 5 pixels above and below
> spacing).
>
> I didn't think it would scale the thumb - but if it does, my guess is that
> it's going to scale it proportionally to the height of the track. Not sure
> about that though.
>
> good luck,
>
> jon
>
>
>
> On Jun 6, 2007, at 9:46 AM, Joshua Buhler wrote:
>
>
> First, a picture of what's going on:
>
>  http://joshbuhler.com/images/sliders.jpg
>
>  (The grey rectangle background on the left isn't part of the problem.)
>
>
>
>  


[flexcoders] HSlider Skinning Troubles

2007-06-06 Thread Joshua Buhler
First, a picture of what's going on:

http://joshbuhler.com/images/sliders.jpg

(The grey rectangle background on the left isn't part of the problem.)


I want the slider to appear like the slider on the right. However,
once it loads in Flex, I get the slider on the left - with the
shrunken thumb button.

The graphics were done in Flash CS3, and have been exported into a
swf. The CSS rule I've defined for the slider is as follows:


Slider {
   thumbDisabledSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_disabledSkin");
   thumbDownSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_downSkin");
   thumbOverSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_overSkin");
   thumbUpSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_upSkin");
   trackHighlightSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderHighlight_Skin");
   trackSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderTrack_Skin");
   dataTipOffset: -50;
}

I've been searching for ways to specify the height of the thumb for a
while now, and haven't had any luck. Any suggestions?


[flexcoders] Testing... 1... 2... 3...

2007-06-06 Thread Joshua Buhler
Just checking to see if I can send messages here. I haven't seen any
of my last few messages come through the list.


[flexcoders] HSlider Skinning Troubles

2007-06-05 Thread Joshua Buhler
First, a picture of what's going on:

http://joshbuhler.com/images/sliders.jpg

(The grey rectangle background on the left isn't part of the problem.)


I want the slider to appear like the slider on the right. However,
once it loads in Flex, I get the slider on the left - with the
shrunken thumb button.

The graphics were done in Flash CS3, and have been exported into a
swf. The CSS rule I've defined for the slider is as follows:


Slider {
thumbDisabledSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_disabledSkin");
thumbDownSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_downSkin");
thumbOverSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_overSkin");
thumbUpSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderThumb_upSkin");
trackHighlightSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderHighlight_Skin");
trackSkin: Embed(source="/assets/skins/viewerSkin.swf",
symbol="SliderTrack_Skin");
dataTipOffset: -50;
}

I've been searching for ways to specify the height of the thumb for a
while now, and haven't had any luck. Any suggestions?


[flexcoders] Re: Changing between Windows and Mac

2007-05-15 Thread Joshua Garnett

Hi everyone,

Just a last update.  Turns out I had encountered my last hurdle.  I received
my serial number 3 weeks after starting the process.  Again, I'd recommend
starting the conversion process as soon as you start your Mac Flex Builder
trial.  If all goes well you should be able to get things converted in a
week, but its always better to plan for the worse.

--Josh

On 5/9/07, Joshua Garnett <[EMAIL PROTECTED]> wrote:


Hi everyone,

I've just gone through the very turbulent process of getting my Flex
Builder 2 serial number converted from Windows to Mac.  The FAQ makes the
process seem fairly straightforward, but it is not.  Here are a few things
to keep in mind when calling Adobe's Customer Service:

1) Do not let the Customer Service Rep transfer you to Sales.  Normally
Cross-Platforms are handled by Adobe's sales department because there are
usually some fees attached to the process.  Switching your Flex Builder
serial number doesn't cost anything, so in this special case Customer
Service should handle the process.   It took me 2 hours, 2 phone
disconnects, and 6 reps before I finally got someone to figure this out.

2) You will be required to send in a Letter of Software Destruction.
You'll put in all of your information and sign that you have deleted your
old version of the software and will no longer use the old serial number.
Customer Service will probably have you search for the letter on Adobe's
site and download it.  Be very careful that you get the right version.
The customer service rep pointed me to lod_return.pdf instead of the correct
form lod_exchange.pdf.  The correct file should have the header "Letter of
Software Destruction" with "(Cross-platform/Cross-launguage)" below it.  If
you fax in the wrong form it'll take about a week before they figure it out
and you'll need to re-fax in the correct form.

3) Call customer service first thing in the morning.  The customer service
rep said that wait times are greatly reduced early in the morning.  The US
department hours start at 9am EST.

4) Give yourself the full 30 days of your Mac trial to do the switch.  In
my experience it has taken almost a week to hear back from Adobe.  I started
this process on April 25th and have already had to call back 2 times each
about a week apart.  I still haven't received my new serial number, but I'm
hoping that I've encountered my last hurdle in the process.

I'll make sure to reply if I encounter any other problems that can be
avoided.


--Josh



[flexcoders] Changing between Windows and Mac

2007-05-09 Thread Joshua Garnett

Hi everyone,

I've just gone through the very turbulent process of getting my Flex Builder
2 serial number converted from Windows to Mac.  The FAQ makes the process
seem fairly straightforward, but it is not.  Here are a few things to keep
in mind when calling Adobe's Customer Service:

1) Do not let the Customer Service Rep transfer you to Sales.  Normally
Cross-Platforms are handled by Adobe's sales department because there are
usually some fees attached to the process.  Switching your Flex Builder
serial number doesn't cost anything, so in this special case Customer
Service should handle the process.   It took me 2 hours, 2 phone
disconnects, and 6 reps before I finally got someone to figure this out.

2) You will be required to send in a Letter of Software Destruction.  You'll
put in all of your information and sign that you have deleted your old
version of the software and will no longer use the old serial number.
Customer Service will probably have you search for the letter on Adobe's
site and download it.  Be very careful that you get the right version.  The
customer service rep pointed me to lod_return.pdf instead of the correct
form lod_exchange.pdf.  The correct file should have the header "Letter of
Software Destruction" with "(Cross-platform/Cross-launguage)" below it.  If
you fax in the wrong form it'll take about a week before they figure it out
and you'll need to re-fax in the correct form.

3) Call customer service first thing in the morning.  The customer service
rep said that wait times are greatly reduced early in the morning.  The US
department hours start at 9am EST.

4) Give yourself the full 30 days of your Mac trial to do the switch.  In my
experience it has taken almost a week to hear back from Adobe.  I started
this process on April 25th and have already had to call back 2 times each
about a week apart.  I still haven't received my new serial number, but I'm
hoping that I've encountered my last hurdle in the process.

I'll make sure to reply if I encounter any other problems that can be
avoided.


--Josh


[flexcoders] capture event on runtime image

2007-04-29 Thread joshua gatcke

Hello all,

I am trying to use an event listener on a parent container of a bunch  
of images that are loaded at runtime. ie:


picContainer.addEventListener(MouseEvent.CLICK, loadApplication,  
false, 0);






The function loadApplication() is getting called, but there is no  
event information. I cannot access things like: target.id or anything  
else on the event for that matter. However, as soon as I embed the  
images, all the event info is there. I do not want to embed the  
images however as I have no control over them, they will be different  
every time.


Hope this makes sense, thanks in advance for your help :)

- joshua


[flexcoders] Re: Tile Extra Space

2007-04-27 Thread joshua gatcke
I haven't found a solution to this at all. Seems to only happen when  
I set the width of the tile to 100%. I want the hight to fit the  
content, so I can't set to a number or percent.


- joshua






[flexcoders] xmlrpc

2007-04-22 Thread joshua gatcke

Hello All,

I am having a hard time understanding how to use  with our  
xmlrpc server. I understand how to send a request with name value  
pairs and how to format the results etc., however, I have no idea how  
I can specify the xmlrpc method to use with the   tag or  
via actionscript.


We are using Flex + PHP and just trying to read write via xmlrpc  
requests. I do not want to use AMFPHP. Is it possible to specify the  
remote xmlrpc method with a rest style request or am I totally out to  
lunch.


Thanks in advance for your help,


- Joshua






[flexcoders] Re: expand entire tree?

2007-04-16 Thread joshua gatcke

Thanks Christophe, that worked wonders.





[flexcoders] expand entire tree?

2007-04-16 Thread joshua gatcke
Does anyone know how to expand a tree on initialize? I have tried the  
following with no avail:


private function setPageListTree():void{
pageListTree.openItems(pageListTree.dataProvider.getItemAt(1));
pageListTree.expandItem(pageListTree.dataProvider.children(), true);
pageListTree.expandChildrenOf(pageListTree, true);
}

Thanks in advance,



Joshua Gatcke -  Director
Visua Design Group Inc.
Cell:(403) 815-3265
[EMAIL PROTECTED]






[flexcoders] change Panel.titleIcon via actionscript

2007-04-14 Thread joshua gatcke
I am hoping someone could help me figure out how to change the  
Panel.titleIcon via AS during runtime. So far from the documentation,  
it looks like I have to use @Embed and cannot use a runtime loaded  
image. I tried creating a bindable object then manipulating that via  
AS, with no avail.


Thanks in advance for your help.




[flexcoders] Tile Extra Space

2007-04-10 Thread joshua gatcke
I am trying to use a  container to layout a set of  
application icons. I have set the  container to a width of 100%  
and would like the icons to wrap to the line below if the browser is  
smaller or resized. The problem I am having is that the icons in my  
 container are 60px tall and The  container does not fit  
the height to the content, it looks like the  container is  
double or triple the icon height, even when there is no need to wrap.  
I have no width or maxWidth etc attributes on the  container.  
This is a real pain, I just want the tile container to fit the height  
to the content.


Thanks in advance for your help

Joshua Gatcke
Design/ Development
[EMAIL PROTECTED]
P: 403.269.1020
C: 403.815.3265
 
-
http://www.LaunchCMS.com - Simple intuitive content management  
software for the web.
 
-









[flexcoders] Re: amfphp + codeigniter

2007-02-21 Thread joshua gatcke

Thanks for the tips :)

As for the xmlrpc as 3 library link you posted, I had found this  
before and was unable to get this to work at all. Has anyone found a  
simple, reliable way to do xmlrpc calls directly from within flex?  
That would be the ultimate solution for our project.


- joshua





[flexcoders] Project Opportunity

2007-02-15 Thread joshua gatcke
Are there any flex + php gurus in Calgary AB?

We are looking for a web developer that can work with us to create  
some exciting new web application with Flex + LAMP/WAMP/WIMP.

We need someone who:
• Knows the web.
• Cares about web standards (W3C).
• Codes OOP and understands coding to interface and polymorphism.
• Has experience with MVC.
• Can write or work with a well developed framework (in Flex & PHP).
• Firm interest in CMS's and Usability.
• Up to date on current web development community information & trends.

We are a small entrepreneurial group. Exciting, casual working  
environment in retro downtown loft office

If you or anyone you know is interested, please contact  
[EMAIL PROTECTED], 403-269-1020 :)

- joshua

--
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] xml-rpc

2007-02-12 Thread joshua gatcke
Does anyone know of an xml-rpc class or package for AS3? I found this  
one: http://www.hrum.org/people/debedb/pro/blog/2006/12/ 
xmlrpc_in_flex_2actionscript_3_1.html however, I cannot seem to get  
it to work. XML-RPC from flex would be the ultimate solution for me.  
Does any one know of any solutions? I don't think I could write this  
myself, and amf -> service -> xml-rpc does not seem like a very  
desirable option.

Thanks in advance,


[flexcoders] amfphp + codeigniter

2007-02-09 Thread joshua gatcke
Has anyone ever created a Flex + PHP project using AMFPHP +  
Codeigniter? I have been trying to integrate the two with no luck.

Or maybe I shouldn't integrate the two, the question then becomes:  
does anyone know how to consume webservices from external sources  
with amfphp? what I mean is, right now, with amfphp I have to point  
my remoteobject tag to amfphp/gateway.php sending the method I want  
to use etc. What if I wanted to use the remote object tag to access  
flickr? would I have to call the flickr webservice from an amfphp  
service and return the results to flex with amfphp, or is there a way  
to go from flex -> flickr using amfphp? If the latter is possible,  
then I can just create xml-rpc web services in CI and serve them to  
flex.

I am trying to create a flex application that people can download and  
install on their servers / host. That is why we are using PHP. I find  
it incredibly limiting to use  with rest style data  
exchange for my entire application, that is why I am trying to use  
amfphp.

Do a lot of you guys use flex + php? if so, what sort of development  
approach do you take?

THanks in advance for any help suggestions.

  


[flexcoders] RPC method

2007-02-06 Thread joshua gatcke

Hello all,

I am trying to create a blog editor with flex and php. I am just  
learning about XML-RPC, and want to use this in my flex app. I have  
set up a XML-RPC server, created my response handling functions, etc.  
Everything is working fine except that I cannot figure out how to  
send the RPC method I want to call with a regular MXML httprequest.  
Here is the example from the documentation,




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







{dept.selectedItem.data}


"{ArrayUtil.toArray 
(employeeSrv.lastResult.employees.employee)}"/>








data="PM"/>


















I understand how to send value pairs, bind data, send the request,  
etc. I just cannot figure out how to call the RPC server method that  
I want to use.


Hope my question is clear, thanks in advance for any help :)
- joshua




Re: [flexcoders] Binding a property to a function

2007-01-30 Thread Joshua Garnett

HI Lieven,

The way I usually do this is wrap the function I want to call with a setter
function.  So for example lets say I have , I'd have a function:

private function set myValue(v:String) : void {
   if(v != null) {
  callMyFunction(v);
   }
}

If you only want to use AS you can use the bindSetter method in
BindingUtils.  You can also look into using the Observe tag.
http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.cfm


--Josh

On 1/26/07, Lieven Cardoen <[EMAIL PROTECTED]> wrote:


 Is it possible to bind a property to a function... A bit like the
MVC-pattern…



When a property changes, a function should be triggered…



BindingUtils can't seem to do this.



Thx, Lieven Cardoen



*Lieven Cardoen
**Application developer
**
**indie**group**
**interactive digital experience**
**engelse wandeling 2 k18
b8500 kortrijk ***




 



[flexcoders] NetConnection animation or visual feedback?

2006-12-06 Thread Joshua Flood
I'm using NetConnection in several places in my application. I'd like
to create a class to extend NetConnection that would open a popup
window to display feedback to tell the user to wait while
communicating with the server. The idea is to put this in the extended
NetConnection class so that I don't have to repeat the feedback code
every time I contact the remote server in the code. 

I had thought I'd be able to extend the "call" function to open the
feedback window and detect completion of the data transfer to close
it. Unfortunately it looks like the call function is not marked
extendable. 

Has anyone else tried to do this? Any ideas of where I should be
looking, or examples? Thanks.



RE: [flexcoders] Company for sale (owns 4 cpu FDS)

2006-09-18 Thread Joshua Ostrom
Alexander,
  How much are you looking to get for your flex licenses?

Joshua Ostrom


>From: "Alexander Tsoukias" <[EMAIL PROTECTED]>
>Reply-To: flexcoders@yahoogroups.com
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Company for sale (owns 4 cpu FDS)
>Date: Mon, 18 Sep 2006 10:49:46 -
>
>Hi all,
>
>I am selling my company after 4 years of development.
>
>Main asset in company are 4 licenses for Flex 2 Enterprise (this is
>FDS unlimited).
>
>Please contact me for more information, I am selling my company at a
>very low price...!
>
>All documentation and proof of purchase available.
>
>Thank you,
>Alexander
>
>
>

_
Windows Live Spaces is here! It’s easy to create your own personal Web site. 
  http://spaces.live.com/signup.aspx



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





Re: [flexcoders] Adobe, Help Memory Leaking !!

2006-08-23 Thread Joshua Garnett



Have you tried setting the recycleChildren attribute of the Repeater to false?  I believe when you have recycleChildren set to true, even if you reduce the number of items in the dataProvider, it still keeps an object in memory that it will reuse.  I've actually encountered other issues with having recycleChildren set to true when the repeaters are nested within repeaters.  There doesn't seem to be any noticeable performance hit by switching it to false.
--JoshOn 8/23/06, Rich Tretola <[EMAIL PROTECTED]> wrote:



How you found any kind of resolution?  As it stand right now my application will be unusable by most of my audience which will obviously not make management happy.  I haven't had this problem with other apps, but there were not nearly as object and data intense.
RichOn 8/23/06, sinatosk <
[EMAIL PROTECTED]> wrote:



just want to say your not the only one... 2 other people have had the same sort of problem here and I have too... it's annoying to be honest. it does go down eventually but not by it self... I've left it running overnight ( one of my applications ) doesn't go down much
On 24/08/06, Rich Tretola <

[EMAIL PROTECTED]> wrote:













  



Just try loading a large amount of buttons a few times and watch the memory go up and up.  When I went back to just a few buttons, the memory actually went up a little rather than dropping back down.



http://www.everythingflex.com/flex2/MemoryTest/
RichOn 8/23/06, Rich Tretola <


[EMAIL PROTECTED]> wrote:
The 300 megs is the application that I am working on, not the sample app.  The actual project app has about 20 or so repeaters, the sample was just a single version to demonstrate that the garbage collector is not working.
I have been able to get the sample app over 200 megs of ram usage by runnig 5000 buttons a few times, the app memory in the txt box shows about 185 megs  See the attached screen shots.  The 5000 was created 1st and then I updated the array to 5 buttons and waited and then took the 2nd screen shot.  The browser never releases the memory and neither does the flash player.
RichOn 8/23/06, Ted Patrick <



[EMAIL PROTECTED]> wrote:



















Rich,

 

No. I have yet to run this app and see 300MB of RAM
consumed ever.  Mine gets a ceiling of like 12MB and never goes higher.

 

When the GC runs it destroys objects within the
totalMemory within the player. When the player needs more memory for new
objects, it adds memory if the gc cannot dispose of what is needed. It is true
to say that on machines with ample resources, the player may accumulate more
resources but this is true with all applications.

 

I have to say I think you may be looking at a bug specific
to your os/system configuration. Is the behavior browser specific? 

 

Just to be sure: 300 megabytes = 314,572,800 bytes


 

Ted Patrick

Flex Evangelist

Adobe Systems Incorporated

 

 









From: 




flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 




On Behalf Of Rich Tretola
Sent: Wednesday, August 23, 2006
2:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe,
Help Memory Leaking !!



 







I first noticed this issue while looking at the task
manager and seeing firefox and IE memory usage going up and up to well over 300
megs of ram.  If I am running the app on a machine with less ram will the
browser use less memory?  Is that what you are saying?  

Rich






On 8/23/06, Ted Patrick <




[EMAIL PROTECTED]> wrote:







Rich,

 

Ok
got some information for you:

 

flash.system.System.totalMemory
- The amount of memory (in bytes) currently in use by Adobe®
Flash® Player.

 

A
better way to think about this is allocated memory. When the player needs more
memory it acquires it from the OS/Browser in use. The player doesn't
necessarily give the memory back. Within that memory in use are the objects
being used. When GC runs, it disposes objects within the allocated memory but
doesn't give memory back to the OS/Browser.

 

The
GC is running and collecting objects, but f lash.system.System.totalMemory
is not the right way to see this happening.

 

Ted Patrick

Flex
Evangelist

Adobe
Systems Incorporated

 

  










From: 




flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Rich Tretola
Sent: Wednesday, August 23, 2006
12:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe,
Help Memory Leaking !!



 







I am testing locally on a pentium m 1.6 2 gigs ram FP
9.16
I have tried firefox, and ie on winxp

On my sample, if you change the number to like 500 and create 500 buttons and then
change it back to 3 buttons, why can I not recover the memory from the 497
buttons that are no longer being used? 

This is a huge probolem on my app because it has like 30 Repeaters that are
constantly changing dataProviders on user decisions and the memory is out of
control, eventually crashing the browser (remember I have 2 gigs of ram). 

Rich





On
8/23/06, 

RE: [flexcoders] Chart error when mouse rolls over

2006-08-11 Thread Joshua Lingwai

get the following run time error when my mouse rolls over one of my charts:
ReferenceError: Error #1069: Property hitData not found on mx.charts.HitData 
and there is no default value.
at Chart1/::formatDataTip()
at mx.charts.chartClasses::ChartBase/::invokeDTFunction()
at mx.charts::HitData/get displayText()
at mx.charts.chartClasses::DataTip/set data()
at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet()
at mx.charts.chartClasses::ChartBase/::processRollEvents()
at mx.charts.chartClasses::ChartBase/::mouseMoveHandler()

Here is the section of code i believe is causing the error:

private function formatDataTip(obj : Object) : String {
var name : String = obj.hitData.item.Publication;
var revenue:Number = obj.hitData.item.Size;


return "Publication: "+name+"Size: "+ revenue;
}

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



--
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] Charting Dilemma....can anyone help?

2006-08-11 Thread Joshua Lingwai
Im receiving the following run time error when the mouse rolls over one of 
my charts:
ReferenceError: Error #1069: Property hitData not found on mx.charts.HitData 
and there is no default value.
at Chart1/::formatDataTip()
at mx.charts.chartClasses::ChartBase/::invokeDTFunction()
at mx.charts::HitData/get displayText()
at mx.charts.chartClasses::DataTip/set data()
at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet()
at mx.charts.chartClasses::ChartBase/::processRollEvents()
at mx.charts.chartClasses::ChartBase/::mouseMoveHandler()


Here is a section of code I believe is causing the error:

private function formatDataTip(obj : Object) : String {
var name : String = obj.hitData.item.Publication;
var revenue:Number  = obj.hitData.item.Size;


return "Publication: "+name+"Size: "+ revenue;
}


Any help would be greatly appreciated

Thanks
Josh
[EMAIL PROTECTED]

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



--
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: Issue with DragEvents

2006-07-17 Thread Joshua Garnett



I've found the source of my problem.  The component is working properly.  The issue had to do with hidden TitleWindow pop ups I had.  This brings up another issue though.  Why are PopUps that have their visibility set to false capturing dragEvents?  Is there some way to keep the pop ups from capturing events when they aren't visible?
--JoshOn 7/17/06, Joshua Garnett <

[EMAIL PROTECTED]> wrote:
I'm trying to capture the dragEnter event in a VBox container, but the event will only fire if the mouse is placed over an empty area of the Vbox.  If the mouse is placed over an area that is filled (label, etc..) it doesn't want to fire.  Is there a way to enable bubbling of DragEvents? or perhaps a better way to structure my component so it will receive the dragEnter event even if the mouse is placed over a sub-component?
Thanks,--Josh





__._,_.___





--
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] Issue with DragEvents

2006-07-17 Thread Joshua Garnett



I'm trying to capture the dragEnter event in a VBox container, but the event will only fire if the mouse is placed over an empty area of the Vbox.  If the mouse is placed over an area that is filled (label, etc..) it doesn't want to fire.  Is there a way to enable bubbling of DragEvents? or perhaps a better way to structure my component so it will receive the dragEnter event even if the mouse is placed over a sub-component?
Thanks,--Josh

__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] F2F FDS AMF Issue

2006-07-07 Thread Joshua Garnett



Peter that fixed my problem.  Thanks!  As for my setup, I'm using Tomcat 5.5.17. For my webserver I'm using Apache 2.0.55, which then connects to Tomcat via the Tomcat connector (version 1.2.15).  I don't have any other security products currently installed.
Is there an updated list of known issues for FDS?  I didn't see the issue I was having listed at http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_fds.html#knownissues
Thanks again,--JoshOn 7/7/06, Peter Farland <[EMAIL PROTECTED]> wrote:



















What app server are you using? Do you have
any additional security products or servlet filters installed (like
siteminder)?

 

There is a known issue with MSIE and HTTPS
requests that receive responses with no-cache HTTP headers. We try to detect
this situation but you can at least forcibly stop a Flex 2 endpoint from
sending no-cache headers on a response by setting the following in the
secure-amf channel-definition  section:

 

false

 

Let me know if that fixes the issue.

 

 









From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Joshua Garnett
Sent: Friday, July 07, 2006 7:41
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] F2F FDS AMF
Issue



 







I've
setup FDS to build the clients on the server using the secure-amf channel as
the default.  The channel uses the java adapter.  Now the client that
I'm working on works fine in Firefox.  It is able to make calls through
the AMF gateway without any issues.  When trying to run the same client in
IE the calls fail to go through.  

Here is the fault message it's generating:

[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed :
HTTP: Failed"] (mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = (null)
  correlationId = "D4E913AE-3952-9C49-707A-48BC31094F36"
  destination = ""
  extendedData = (null) 
  faultCode = "Client.Error.MessageSend"
  faultDetail = "Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed"
  faultString = "Send failed"
  headers = (Object)#2 
  messageId = "8AAD9688-DD0C-B5D7-9BD2-48BC31BE80B4"
  rootCause = (Object)#3
    code = "NetConnection.Call.Failed"
    description = "HTTP: Failed"
    details =
"https://(serverurl)/flex2/messagebroker/amfsecure" 
    level = "error"
  timestamp = 0
  timeToLive = 0

I can load the url to the amf gateway in IE without any errors.  It's just
the client itself that doesn't seem to want to make the connection.  Is
there perhaps any IE specific configuration I need to do?  

The only thing out of the ordinary I noticed is that when loading the client in
IE it initially pops up an error saying that the page contains secure and non-secure
content.  Any help would be appreciated.

Thanks,
--Josh














__._,_.___





--
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] F2F FDS AMF Issue

2006-07-07 Thread Joshua Garnett



I've setup FDS to build the clients on the server using the secure-amf channel as the default.  The channel uses the java adapter.  Now the client that I'm working on works fine in Firefox.  It is able to make calls through the AMF gateway without any issues.  When trying to run the same client in IE the calls fail to go through.  
Here is the fault message it's generating:[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed
: HTTP: Failed"] (mx.messaging.messages::ErrorMessage)#0  body = (Object)#1  clientId = (null)  correlationId = "D4E913AE-3952-9C49-707A-48BC31094F36"  destination = ""  extendedData = (null)
  faultCode = "Client.Error.MessageSend"  faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed"  faultString = "Send failed"  headers = (Object)#2
  messageId = "8AAD9688-DD0C-B5D7-9BD2-48BC31BE80B4"  rootCause = (Object)#3    code = "NetConnection.Call.Failed"    description = "HTTP: Failed"    details = "https://(serverurl)/flex2/messagebroker/amfsecure"
    level = "error"  timestamp = 0  timeToLive = 0I can load the url to the amf gateway in IE without any errors.  It's just the client itself that doesn't seem to want to make the connection.  Is there perhaps any IE specific configuration I need to do?  
The only thing out of the ordinary I noticed is that when loading the client in IE it initially pops up an error saying that the page contains secure and non-secure content.  Any help would be appreciated.
Thanks,--Josh

__._,_.___





--
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 2 SequenceCommand question

2006-07-05 Thread Joshua Garnett



There are a couple of ways that you can do it.  1) Have your command extend SequenceCommand and then in the command's constructor call super(nextEvent). or 2) You can dynamically assign the nextEvent by passing it to the command.  This is the way I prefer, since it allows you to build different chains of commands.  To aide this I built a class called SequenceEvent:
    public class SequenceEvent extends CairngormEvent     {    public var nextEvent : CairngormEvent;        public function SequenceEvent ( eventType:String, nextEvent : CairngormEvent = null ) 
    {    super( eventType );        this.nextEvent = nextEvent;    }    }

__._,_.___





--
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 2 SequenceCommand question

2006-07-05 Thread Joshua Garnett



Hmm... My e-mail got cut off for some reason.For each, of my SequenceCommands I then put the following after the execute statement:            var sequenceEvent:SequenceEvent = SequenceEvent(cairngormEvent);
            nextEvent = sequenceEvent.nextEvent;Then of course at the end of the execute or onResult I put:            executeNextCommand();To build a chain of commands, you must build the chain of events from last to first.
            var secondEvent : SequenceEvent = new SequenceEvent(Controller.EVENT_DO_SECOND);            var firstEvent : SequenceEvent = new SequenceEvent(Controller.EVENT_DO_FIRST, secondEvent);            
CairngormEventDispatcher.getInstance().dispatchEvent(firstEvent);There may be a better approach, but this has been working for me.--JoshOn 7/5/06, 
Joshua Garnett <[EMAIL PROTECTED]> wrote:
There are a couple of ways that you can do it.  1) Have your command extend SequenceCommand and then in the command's constructor call super(nextEvent). or 2) You can dynamically assign the nextEvent by passing it to the command.  This is the way I prefer, since it allows you to build different chains of commands.  To aide this I built a class called SequenceEvent:
    public class SequenceEvent extends CairngormEvent     {    public var nextEvent : CairngormEvent;        public function SequenceEvent ( eventType:String, nextEvent : CairngormEvent = null ) 
    {    super( eventType );        this.nextEvent = nextEvent;    }    }



__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] result & fault event errors:

2006-07-03 Thread Joshua Garnett



I believe you need to change the references to event.call to event.token.--JoshOn 7/3/06, lownlazy000 <
[EMAIL PROTECTED]> wrote:After upgrading to Flex 2 full-version I keep recieving this error:
1119: Access of possibly undefined property call through a referencewith static type mx.rpc.events:FaultEvent.for both these lines:result="event.call.resultHandler(event)"fault="
event.call.faultHandler(event)"The above lines are straight out of a Cairngorm 2 beta 3 example. Cananyone tell me why?Thanks in advance,Russell Munro Yahoo! Groups Sponsor ~-->
Great things are happening at Yahoo! Groups.  See the new email design.http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM~->
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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/
<*> 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 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] F2F: Auto-complete import issue

2006-06-29 Thread Joshua Garnett



Search brings up no references to org.nevis in the project's workspace.  The Cairngorm2.swc file I'm using is the Flex 2 Final version.  For good measure, I just copied the Cairngorm.swc that I compiled from the source and now everything is working properly.  That's really strange.
--JoshOn 6/29/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:
On Thursday 29 June 2006 16:14, Joshua Garnett wrote:> Is there some setting I need to adjust or clear out?Do you have the old source code for Cairngorm somewhere ?--Tom Chiverton
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.
CONFIDENTIALITYThis 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.We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards
 Yahoo! Groups Sponsor ~-->Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM~->--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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/<*> 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 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] F2F: Auto-complete import issue

2006-06-29 Thread Joshua Garnett



When creating a new variable and referencing CairngormEvent, Flex Builder 2 is automatically adding import org.nevis.cairngorm.control.CairngormEvent; instead of import com.adobe.cairngorm.control.CairngormEvent;.  I've imported the new library and it compiles fine, its just that the auto-complete function keeps trying to import the wrong class.
Is there some setting I need to adjust or clear out?Thanks,--Josh

__._,_.___





--
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] switching from beta 3 to the real thing?

2006-06-28 Thread Joshua Garnett



One thing to keep in mind is that F2B3 code doesn't seem to run the same in the newly released Flash 9 Player.  I just loaded up my F2B3 app with the new Flash Player and it doesn't work the same.  The UI colors are off and I can't even load up all of my views in the code.
So make sure you bundle the F2B3 flash installer along with your project or at least do a test to see your code renders properly in the new player.--JoshOn 6/28/06, 
Pan Troglodytes <[EMAIL PROTECTED]> wrote:



Even without trying 2.0 final yet, I would strongly urge you not to upgrade your main flex beta environment.  Install it on a separate computer, spend about and hour or two on just seeing what has changed.  If it takes longer, you're probably best off not doing it.
I think that's the best advice anyone here could give you.  There's no way for people to tell just what minor quirk that they don't know about will really come into play in your app.

On 6/28/06, Sonja Duijvesteijn <[EMAIL PROTECTED]> wrote:










  



Hi all,I've been working on a fairly large application for the last months. This project is the final thing i need to do before graduation, so it's very important everything works. The deadline is next week tuesday (6 days away) and I would love to hand in a version that is final, in stead one working from the beta. But, as always with projects I have quite a list of last minute fixes that need to be done and I have no idea how much time it will take switching from beta 3 to the real deal. 
So the question is, how much time does it take to switch over? Are there parts of code that changed drastically, are there any area's I could expect problems? If things don't work next week it means I'll fail, won't graduate and have to do my internship all over, costing 5 months. So, I'm hesitant to jump on the boat. But man, flex 2 is tempting! 
Kind regards,Sonja Duijvesteijn

  













-- Jason






__._,_.___





--
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] Re: F2B3: Internal build error

2006-06-28 Thread Joshua Garnett



I finally discovered what the problem was.  It turns out I was using the wrong ending tag in my FDS configuration file.  It would be nice to get better feedback in the Builder for this type of error.  Internal Build Error isn't very clear.
--JoshOn 6/27/06, Joshua Garnett <[EMAIL PROTECTED]> wrote:
I'm running the Flex 2 plugin inside of Eclipse.  I made a few changes to the code and ended up hitting an Internal build error.  I'm not sure what the actual cause is since I've tried to back out of the code changes I had recently made.
Here is the message from the .log file:!ENTRY 
com.adobe.flexbuilder.project 4 43 2006-06-27 16:05:48.972!MESSAGE Uncaught exception in compiler!STACK 0flex.messaging.config.ConfigurationException: Configuration error encountered on line 32, column 41: 'The element type "url" must be terminated by the matching end-tag "".'
    at flex.messaging.config.AbstractConfigurationParser.loadDocument(AbstractConfigurationParser.java:143)    at flex.messaging.config.AbstractConfigurationParser.loadDocument(AbstractConfigurationParser.java:99)
    at flex.messaging.config.ClientConfigurationParser.serviceInclude(ClientConfigurationParser.java:157)    at flex.messaging.config.ClientConfigurationParser.services(ClientConfigurationParser.java:133)    at 
flex.messaging.config.ClientConfigurationParser.parseTopLevelConfig(ClientConfigurationParser.java:53)    at flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java:71)    at flex.messaging.config.AbstractConfigurationParser.parse

(AbstractConfigurationParser.java:62)    at flex.messaging.config.ServicesDependencies.getClientConfiguration(ServicesDependencies.java:96)    at flex.messaging.config.ServicesDependencies.(ServicesDependencies.java

:35)    at flex2.compiler.common.CompilerConfiguration.getServicesDependencies(CompilerConfiguration.java:351)    at flex2.compiler.API.getMessagingClasses(API.java:988)    at flex2.compiler.API.compile(API.java

:892)    at com.adobe.flexbuilder.project.compiler.Compiler.compile(Unknown Source)    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(Unknown Source)    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build

(Unknown Source)    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)    at org.eclipse.core.runtime.Platform.run

(Platform.java:783)    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)    at org.eclipse.core.internal.events.BuildManager$1.run

(BuildManager.java:231)    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)    at org.eclipse.core.runtime.Platform.run(Platform.java:783)    at org.eclipse.core.internal.events.BuildManager.basicBuild

(BuildManager.java:234)    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)    at org.eclipse.core.internal.resources.Workspace.build

(Workspace.java:211)    at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:182)    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)Any help with this would be greatly appreciated.
Thanks,--Josh



__._,_.___





--
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] F2B3: Internal build error

2006-06-27 Thread Joshua Garnett



I'm running the Flex 2 plugin inside of Eclipse.  I made a few changes to the code and ended up hitting an Internal build error.  I'm not sure what the actual cause is since I've tried to back out of the code changes I had recently made.
Here is the message from the .log file:!ENTRY 
com.adobe.flexbuilder.project 4 43 2006-06-27 16:05:48.972!MESSAGE Uncaught exception in compiler!STACK 0flex.messaging.config.ConfigurationException: Configuration error encountered on line 32, column 41: 'The element type "url" must be terminated by the matching end-tag "".'
    at flex.messaging.config.AbstractConfigurationParser.loadDocument(AbstractConfigurationParser.java:143)    at flex.messaging.config.AbstractConfigurationParser.loadDocument(AbstractConfigurationParser.java:99)
    at flex.messaging.config.ClientConfigurationParser.serviceInclude(ClientConfigurationParser.java:157)    at flex.messaging.config.ClientConfigurationParser.services(ClientConfigurationParser.java:133)    at 
flex.messaging.config.ClientConfigurationParser.parseTopLevelConfig(ClientConfigurationParser.java:53)    at flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java:71)    at flex.messaging.config.AbstractConfigurationParser.parse
(AbstractConfigurationParser.java:62)    at flex.messaging.config.ServicesDependencies.getClientConfiguration(ServicesDependencies.java:96)    at flex.messaging.config.ServicesDependencies.(ServicesDependencies.java
:35)    at flex2.compiler.common.CompilerConfiguration.getServicesDependencies(CompilerConfiguration.java:351)    at flex2.compiler.API.getMessagingClasses(API.java:988)    at flex2.compiler.API.compile(API.java
:892)    at com.adobe.flexbuilder.project.compiler.Compiler.compile(Unknown Source)    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(Unknown Source)    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build
(Unknown Source)    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)    at org.eclipse.core.runtime.Platform.run
(Platform.java:783)    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)    at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:231)    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)    at org.eclipse.core.runtime.Platform.run(Platform.java:783)    at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:234)    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)    at org.eclipse.core.internal.resources.Workspace.build
(Workspace.java:211)    at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:182)    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)Any help with this would be greatly appreciated.
Thanks,--Josh

__._,_.___





--
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 1.5 AMF Issue

2006-06-14 Thread Joshua Garnett



I'm having a problem passing objects that contain objects through the AMF gateway.  I've found a way to work around it, but I'm not really keen on the solution.  What I'm trying to do is pass an object to a java function.  This object contains a reference to another object within it.  When trying to access methods on the object that is referenced I get a java exception.
Here is some example flex code that doesn't work:var myObject:MyObject = new MyObject();var subObject:SubObject = new SubObject();myObject.sub = subObject;service.myFunction(myObject);
Here is my workaround:
var myObject:MyObject = new MyObject();var subObject:SubObject = new SubObject();myObject.sub = new SubObject();myObject.sub.vara = subObject.vara;myObject.sub.varb = subObject.varb;...service.myFunction

(myObject);I'd rather not have to manually create an object on the object and then manually copy over each of the variables.  Is there a better way around this?  Perhaps a setting on the RemoteObject?
--Josh


__._,_.___





--
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] Question about History Management

2006-06-01 Thread Joshua Noble



Flex 1.5 -

This is something that I'm suspecting but can't seem to find a 
definitive straight answer on (at least from Google): our client wants 
to have a swf generated and handed off to them for use; they bought the 
license but don't want to install jrun and use the mxml files. So far so 
good, but they asked us to enable History Management, aka 'back button'. 
I played around with it for a moment and thought: 'not without the 
server'. The _javascript_ that's creating the lc_id variable is generated 
by some servelet when the mxml file creates its swf (I think) so if the 
user is hitting a pre-generated swf none of this is going to happen. I 
want to go tell the client this is impossible, but wanted to check 
first. Am I right?

-
Joshua Noble
[EMAIL PROTECTED]
617-350-0339 x 33
aim: METProfessor

-







--
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] Re: probably-stupid AS3 question

2006-05-19 Thread Joshua Santangelo



Many thanks for the verbose explanation, that was the solution I was
looking for.

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> You don't show how you declared __editWindow, but from the error message
> it sounds like you declared it as
> 
> var __editWindow:TitleWindow;
> 
> The problem is that Adobe's TitleWindow class doesn't have a "seller"
> property; it's your SellerEdit subclass of TitleWindow that added that
> property.
> 
> When you create an MXML component SellerEdit.mxml starting with
> , the MXML compiler autogenerates a subclass that looks
> like
> 
> public class SellerEdit extends TitleWindow
> {
> public var seller:Object;
> }
> 
> So the solution is to declare
> 
> var __editWindow:SellerEdit;
> 
> and cast the result of createPopUp() to a SellerEdit:
> 
> __editWindow = SellerEdit(PopUpManager.createPopUp(this, SellerEdit,
> true));
> 
> - Gordon
> 
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Josh Santangelo
> Sent: Friday, May 19, 2006 12:53 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] probably-stupid AS3 question
> 
> I'm new here, as will be made clear by the beginner-level of my
> question...
> 
> I have a TitleWindow component in SellerEdit.mxml:
> 
> 
>   
>     
>   
> 
> 
> And from my application, I create it:
> 
> __editWindow = TitleWindow(PopUpManager.createPopUp(this, SellerEdit,
> true));
> __editWindow.title = 'Edit Seller';
> __editWindow.addEventListener('creationComplete', initWindow);
> __editWindow.seller = sellers.selectedItem;
> 
> I get an error on the last line, "Access of possibly undefined property
> seller through a reference with static type mx.containers:TitleWindow."
> 
> According to the "Defining properties and methods in ActionScript"
> article in help, it sounds like this is the right way to do it? Am I
> just missing something obvious?
> 
> thanks,
> -josh
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  












[flexcoders] Flex Developer Position in Boston

2006-05-11 Thread Joshua Noble
Mindseye Technology, Inc.
266 Summer Street
Boston, MA 02210
617-350-0339
http://www.mindseye.com


Mindseye is a growing Boston based company and we need talent. We 
believe that good code is more important than dress code. We build 
applications for the web...and we play to win. If you have the talent, 
we'll provide the experience and challenges!

Flex Developer needed in Boston.

We are seeking a Flex developer to join our Rich Interactive Application 
(RIA) team. This position is focused on ActionScript development as well 
as some timeline animation and visual design. The majority of your time 
will be spent writing ActionScript classes in order to build advanced, 
optimized, interactive Flex applications.

Responsibilities:

Your primary responsibility will be the creation of rich, Flash-based 
applications delivered via the web. You will work with large datasets, 
Rich Internet Application client-server paradigms, dynamic content, 
XML/web services, Flash Remoting, Flash Media Server, and Flex 1.5/2.

Qualifications:

You must be comfortable with the concepts of object-oriented application 
development and web technologies. You must have experience building 
Flash/Flex applications using ActionScript. Must be able to work in a 
team environment and delegate projects to other designers/developers. 
Knowledge of web optimization practices is a must. The ideal candidate 
will also have experience in middle-tier languages such as Java, 
ASP.NET, ColdFusion, or PHP as well as SQL in order to build the RIA’s 
server-side components.

Interested candidates should e-mail their resume to [EMAIL PROTECTED] 
Please submit salary requirements and Flex/ActionScript code sample 
along with resume.

Mindseye offers a generous benefits package, which includes fully paid 
health insurance, dental, 401(k), 3-weeks vacation and 10 paid holidays.

Our new office is conveniently located just minutes from South Station 
in Boston, where the Red Line and Commuter Rail converge.





 Yahoo! Groups Sponsor ~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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] How to user setInterval() to call the remoteobject method?

2006-04-25 Thread Joshua Garnett



Try calling setInterval like this,  intervalID = setInterval(this,"getUser",1);  Also, in the getUser function add clearInterval(intervalID);--JoshOn 4/25/06, 
loveewind <[EMAIL PROTECTED]> wrote:
Hi All, I have a piece of code below:http://www.macromedia.com/2003/mxml
"initialize="test()"> source="net.wind.proxy.UserProxy" >  it seems the setInterval function can't execute remoteobject method,
Who has such experience,wait for your help,Thanks--Flexcoders Mailing ListFAQ: 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/<*> 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] OutOfMemoryError

2006-04-05 Thread Joshua Garnett



I'm not sure if this is related, but when running large Flex 1.5 apps I'd get an OutOfMemory Error from Tomcat.  If you open up the Tomcat monitor and then goto the Java tab you can adjust the memory settings.  I've set "Initial Memory Pool" to 64 and "Maximum Memory Pool" to 512.  After making those changes, I restarted Tomcat and everything worked fine.
--JoshOn 4/5/06, Kim Reddington <[EMAIL PROTECTED]> wrote:







I have a large 
application that I've been running for over a year. All of a sudden the app 
stopped running. I am getting an OutOfMemory Error when I tried to run in any 
browser.  My first thought was it must have been the changes I've made. 
Luckily, we are using CVS, so I grabbed a version of our software from a couple 
weeks ago.  Well, the out of memory error is still there. So then I thought 
maybe it's because I installed Flex 2 Beta 2, so I uninstalled all the Beta 2 
items (Builder, FDS, etc).  The application was still erroring 
out.
 
In trying to debug 
what is happening, I can see that the .as file is being generated, but the SWF 
file is not being created.  The comiler is timing out before it completes 
the SWF.
 
If anyone has any 
ideas of what I could look at, try, whatever.  I been trying to figure this 
out for a couple of weeks and have run out of ideas.  Has anyone seen this 
before? Has anyone had similar experiences after installing Flex 2?  What 
might have changed?
 
Thank you so much 
for your help,
Kim





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com






  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 

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



  















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





  




  
  
  YAHOO! GROUPS LINKS



   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: What happened to Iteration:Two Site?

2006-04-03 Thread Joshua Garnett



Yeah if you refresh that link a few times it'll eventually show up.--JoshOn 4/3/06, rodneyjlucas <[EMAIL PROTECTED]
> wrote:Most of the site is down but I was able to get Cairngorm v2.0 via the
following pagehttp://www.richinternetapps.com/archives/000143.html--- In flexcoders@yahoogroups.com
, "rodneyjlucas" <[EMAIL PROTECTED]>wrote:>> I have been trying since late last week...>> --- In flexcoders@yahoogroups.com
, "Wally Randall" > wrote:> >> > I have been trying to get throught to Iteration:Two all weekend.They> > are back up but most of the site is disabled.  What has happened?  I
> > want to get the Cairngorm 2 Alpha for testing.> >> > http://www.iterationtwo.com/open_source_cairngorm.html> >
>--Flexcoders Mailing ListFAQ: 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/<*> 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 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] Flash within Flex?

2006-03-20 Thread Joshua Garnett



I haven't used Flex 2.0 yet, but I know in Flex 1.5 to load in a swf you can use the Loader Class (checked Flex 2.0 docs and I don't believe this was depreciated).   mxml example: 
Once the file is loaded you can access any public functions/variables that exist in the swf.--JoshOn 3/20/06, riskyseven <
[EMAIL PROTECTED]> wrote:I am very new to Flex, and only working in Flex 2.0
 Beta 1.  What arethe limitations for embedding a flash swf in flex?  It seems if I embedthe swf as an image, it only shows/plays frame 1 of the embedded swf.Supposing I get past this, can you get access to the embedded swf's
actionscript/variables?  Thanks.--Flexcoders Mailing ListFAQ: 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/<*> 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 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.



  









  1   2   >