[flexcoders] Re: ColdFusion CFCs Not Returning Data

2007-10-15 Thread Mike Collins
Sounds like a job for Charles.  http://www.xk72.com/charles/ a great
debugging tool when trying to see what's crossing the wire between
Flex and CF.



[flexcoders] Loading Modules

2007-03-26 Thread Mike Collins

I have looked for several days on how to create and load module in Flex
Builder 2 and while there are tons of partial examples I have yet to find a
good complete example.

I am trying to find somthing that shows:

  1. How to create a project that can use modules
  2. How to create one or more modules (Using both mxml files and as
  files)
  3. How to load these modules from the main application
  4. How to (In Flex Builder) compile the project

Again I have found several things that show how to small portions of this,
yet nothing that shows everything from step 1 to 4. Some sights have HUGE
discussions on all of the why-tos and how-it-works, etc. But no one that I
have seen shows a sample project file and sample mxml and as files.

Any help would be appreciated.

Thanks,
Mike


Re: [flexcoders] OS X Dock implemented in Flex

2007-03-23 Thread Mike Collins

Please do post the code. This would be nice to have the source for.

Mike



On 3/23/07, Allen Riddle <[EMAIL PROTECTED]> wrote:


 Hey everyone, my coworker created an OS X dock in Flex for our use in our
application. He just posted it on his web site. If enough people dig it,
he's going to post the code so everyone can partake. Check it out.



http://www.timothyhuertas.com





*Allen Riddle*

Sofware Development

x3217






Re: [flexcoders] How to pass some values along with invalidateDisplayList

2007-03-22 Thread Mike Collins

Why worry about the mouse position?

Why not set the state of your menu object to indicate which menu is
selected, which one is hovered over, which ones are open, etc.

These state values get set in the MOUSE_MOVE event before you invalidate and
then the updateDisplayList already knows the state of the menu.

Mike


On 3/22/07, Janis Radins <[EMAIL PROTECTED]> wrote:


Hello ppl!

I have run into some problems in here.
I'm making menu which is supposed to react on Mouse position. Actually I'm
trying to recreate macintosh menu dock.
When menu is in active state i subscribe to MouseEvent.MOUSE_MOVE and
whenever it's called I fire invalidateDisplayList which leads to
updateDisplayList on next time graphics are rendered.
Guess that sounds pretty logical and stright forward.

Now, the problem is that I have problem with synchronizing whole thing,
because between time when invalidateDisplayList is issued and
updateDisplayList mouse position has already changed.
Hence my fist idea was to "somehow" pass current mouse position along with
invalidateDisplayList call, though I dont see any possible way to solve it
atm.

Any ideas will be preciated.

Jānis




[flexcoders] how can I know what browser my app is in?

2007-03-19 Thread Mike Collins

I have looked up userAgent, user-agent, browser, browser type, etc. and can
not find anything that will allow me to tell what browser is hosting my app.

Can anyone tell me if and where something like this may be?

Thanks,
Mike


Re: [flexcoders] Runtime Memory Problems

2007-03-17 Thread Mike Collins

Sorry, I wrote down the numbers incorrectly.

Our images are between 256Meg and 600Meg and the app grows to 2.5GIG while I
only have 2Gig of physical memory.
100 Meg woudl be nice :)

Mike


On 3/15/07, slangeberg <[EMAIL PROTECTED]> wrote:


 Only after I hit a saturation
> point (Around 2.5Meg) would it Garbage Collect. My machine has 2Gig
> of Ram.
>

You're worried about a Flex app using 2.5MB memory? That's nearly nothing.
I've seen apps use upwards of 100M, and that's still not much compared to
2GB.

If you look at the articles online and perhaps posts within this list,
you'll see that there are indeed thresholds within the player, to kick in
garbage collection, but in this instance, i don't see the issue.(?)

-Scott


On 15 Mar 2007 08:41:48 -0700, One Person <[EMAIL PROTECTED]> wrote:
>
>   Description:
> We are creating a web-app built with Flex 2.
> This app uses some very large image files (From around 256K to over
> 600K)
> We have an image viewer section of our Flex app that will allow the
> user to move from one image to another.
> I was noticing that with our app in IE7 that memory useage would
> climb each time we grabbed a new image but even after letting it set
> for several minutes the memory usage would not go down. It was acting
> as if Garbage Collection was not getting called. So I added all kinds
> of code to make sure that we were letting go of the previous images
> to allow Garbage Collection to work.
>
> After 3 days of trying to track down the problem I decided to create
> a smaller Flex app that only used our image viewer control to limit
> the number of variables in the problem. After a few hours I still
> could not figure out the problem so I replace our image view with a
> standard  tag. The problem still existed after doing this.
> Having take our code out of the picutre I decided to compare results
> in FireFox. FireFox would Garbage Collect fairly quickly and the
> problem did not seem to exist using my test Flex app in FireFox.
>
> From what I can tell, IE7 and Flash (version 9.0.28.0) do not seem to
> work well at allowing Garbage Collection to work.
> I have the same version of Flash installed in FireFox 2.0.0.2 and
> there does not seem to be any problem there.
>
> The code below is what I used in my mxml file. To test it you will
> need to point to some kind of large images that you have access to.
> The images that I was using are on an internal network and so are
> unavailable to anyone on the outside.
>
> 
>  layout="absolute"
> xmlns:mx="http://www.adobe.com/2006/mxml";
> initialize="init()"
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  height="100%"/>
> 
> 
> 
> 
>
> I can't find a way to post my images so I hope this description is
> good enough.
>
> In IE7 the memory would climb each time I would move to the next
> image. On the left of this graph I loaded several images and then let
> IE7 sit. After a few minutes, and memory staying where it was, I
> continued click next to load images. Only after I hit a saturation
> point (Around 2.5Meg) would it Garbage Collect. My machine has 2Gig
> of Ram.
>
> The next rise in the graph is where I kept loading images over and
> over until the memory usage was about the same as just before the
> garbage collection happened the previous time. I let that sit for a
> while and then tried to load one more image. That caused the garbage
> collection to happen.
>
> The next 4 peaks in the graph are where I basicly clicked on the next
> button over and over as fast as I could and the Garbage Collection
> seemed to happen a little more often.
>
> In FireFox I ran similar tests of loading images and waiting in
> FireFox. The Garbage Collection seems to be working fairly well here.
> Each time I would load a new image the previous one would be cleaned
> up with garbage collection.
>
> So I'm not sure what can be done or if there is a fix for this. I
> really would LOVE to have access to the Garbage Collection in Flash
> so I could force things to happen when I am dumping a real large
> image.
>
> Thanks,
> Mike Collins
>
>


--

: : ) Scott 



[flexcoders] Re: Disabling button on buttonBar - error...

2006-11-03 Thread Mike Collins
Quick thought here... create a State in design mode, delete\disable 
your button, then look at the code the design mode UI builds for you.




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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: cf query, xml & fle

2006-09-13 Thread Mike Collins
Not what you may be looking for but you might try converting the 
entire cfquery into XML.  I wrote this in CF to convert any query 
into XML.


  
  
  
  
  
  
   
">

 
 #xmlformat(v)#">
   
   ">
  
  ">
  
 






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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




[flexcoders] Re: Anyone else using yahoo webhosting

2006-09-01 Thread Mike Collins
All yahoo plans can serve swf files so you should be fine.  It looks 
like it supports PHP\MySQL so you can process forms and work with SQL.  
You can use HTTPService and pass form data into PHP for processing.  






--
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: Anyone actually able to save data from flex

2006-08-31 Thread Mike Collins
Here is one sample.

Server side code:
File test1.cfm
#xmlout#

MXML


http://www.adobe.com/2006/mxml"; width="335"
height="100%" 
 paddingTop="2" paddingLeft="0"  paddingRight="1" >




100Test












--
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: Anyone actually able to save data from flex

2006-08-30 Thread Mike Collins
HTTPService passes strings not objects so that is most likely the 
issue.  Either convert the DataModel to a xml string or do something 
like this to pass in the variables as form variables.  

If you want to pass objects you need to use RemoteObject calls.

public function submitURL() {

var variables:Object = new Object();
// Build request
variables.parent1firstname = 
parent1firstname.text;
variables.parent1lastname = parent1lastname.text;
  
 // Submit   
submitData.request = variables;
submitData.send();
}








--
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: How to cast a WebService lastResult when CFC returnType="xml"

2006-08-24 Thread Mike Collins
I did this with HTTPService with returning an xml as a string from a 
cfm.  The HTTPService resultformat is object.  A combo box would us it 
this way.



This example shows a piece of xml that has all my combo lists.  This 
one is the product array.

For your xml you would use  <>.lastResult.people.person







--
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: any way to catch application exit?

2006-08-15 Thread Mike Collins
As far as the SharedObject, I would think binding the lso field to some 
source field should take care of keeping the SharedObject current.






--
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: Validators -- Is there a better way of doing this? (Flex 2)

2006-08-07 Thread Mike Collins
I don't know if this the best way but it worked for a registration 
form I built.  Items are validated at valueCommit and when the user 
clicks submit.

// Function to validate data and submit it to the server. 
private function validateAndSubmit():void {
// Validate the required fields. 
errormessage = '';
   errormessage += collectValidations(v_playerfirstname);
   errormessage += collectValidations(v_playerlastname);
   errormessage += collectValidations(v_playerdob);
   errormessage += collectValidations(v_parent1firstname);
   errormessage += collectValidations(v_parent1lastname);
   errormessage += collectValidations(v_parent2firstname);
   errormessage += collectValidations(v_parent2lastname);
   errormessage += collectValidations(v_parent1phone1);
   errormessage += collectValidations(v_parent2phone1);
  
   if (errormessage) {
Alert.show('Please correct the below:\n' + 
errormessage, 'FILL Pre-Registration')
return;
   }
   // Submit data to server.
submitURL();
}
 
  public function collectValidations
(v:mx.validators.Validator):String {
   vResult = v.validate();
if (vResult.type==ValidationResultEvent.INVALID) {
return v.source.id + ' ' + vResult.message + '\n';
}
  return '';
   }
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 






--
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: getURL()

2006-08-03 Thread Mike Collins
Another option is to create a local function called getURL that calls 
navigateToURL.  It may reduce some code changes for you.






--
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] Flex 2: Inline ItemRenderer --> Getting current row of DataGrid

2006-04-20 Thread Mike Collins



I have the following for a DataGridColumn, which works just fine:

 
width="65" headerText="Product" >
                    

   
                    
    
color="{outerDocument.checkProductUsage(this,data.selected)}" />
               
  
                  
  
                
   

The function it calls looks like this:
public function checkProductUsage(c:mx.controls.Text, 
sel:String):Number {
if (sel == 'true') {
//ta_debug.text = mx.utils.ObjectUtil.toString(d);
//example of what I want - dg_products.selectedIndices.push
(currentrow of datagrid);
  return 0xFF;
}else {
  return 0x00;
  }
}

This all works, the text color changes based on the data.selected 
value, but I really want to add the row index to the selectedindices 
of the DataGrid.

How do I get the currentrow of the DataGrid from in an itemrenderer 
like this?  Am I missing another approach?

Thanks,
Mike









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





  




  
  
  YAHOO! GROUPS LINKS



   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.