[flexcoders] Re: Intelligent ViewStack Children

2008-04-16 Thread joshuagatcke
Rick, 

Thanks for the awesome advice! Gonna hash this out. When we get this working I 
will definitely post the solution on here so other people can look it up :D

Thanks again for taking the time to give me some direction on this. 



[flexcoders] Re: Intelligent ViewStack Children

2008-04-16 Thread joshuagatcke
this is amazing! no joke. 

Thanks Bruce!



[flexcoders] Re: Intelligent ViewStack Children

2008-04-14 Thread joshuagatcke
Hi Rick, 

Thanks for the response. 

You are right on the money. Our component can exist anywhere, including inside 
a 
ViewStack. We are working with an iframe component (over the flash) and really 
having a 
problem with ViewStacks. We just want to find a property of anything that could 
enable the 
component to know if it is or isn't inside a ViewStack and if so, if the 
component is suppose 
to be showing or not. 




[flexcoders] Re: scale nine bug?

2008-01-29 Thread joshuagatcke
I completely understand event.target vs. event.currentTarget, maybe I was not 
so clear in my 
post. Any other takers. We have reasons for not testing event.currentTarget in 
our 
application, of course I have extremely simplified the example for the sake of 
this list.

Anyhow, I am wondering if this is normal behavior and why scale nine formatting 
on an CSS 
background image would make a difference on the event.target. Can anyone 
explain this to 
me. I have read and re-read over the documentation about image assets, scale 
nine,  events 
for both flex 2 what is there for flex 3 and still do not understand what would 
be causing 
this. 

Adobe guys? Should that happen? 

I think I might file a bug. 





[flexcoders] Re: use runtime image more than once

2008-01-08 Thread joshuagatcke
We thought about having a flash assets file or something along those lines, but 
we really 
can't have this stuff in a compiled file as the types of icons changes all the 
time on a per user 
basis. It would be nearly impossible to track all the changes and update the 
assets file to 
meet requirements. Not to mention that it would be impossible for our users to 
accomplish 
that. 

We are going to just rely on the browser cache for now until we have the 
resources to write 
something custom if possible. The idea would be that you could create an image 
class that 
you could use repeatedly from a runtime image source. I have a feeling I might 
be asking for 
too much though. 



[flexcoders] Re: use runtime image more than once

2008-01-07 Thread joshuagatcke
Hello Thanks for the feedback. I did see the super image by Eli. 

Yes the cache does handle this. It's not too bad, but I thought it might be 
possible to make 
this better and faster. Also, my logs show huge amounts of requests for those 
images even 
though they are suppose to be coming out of the browser cache after the first 
request, so I'm 
not sure. 






[flexcoders] is this a bug? - filter problems - sample app

2007-11-04 Thread joshuagatcke
Is this a flex bug? Run the simple app below, it contains 2 panels with text 
fields and 
combo boxes inside each. One panel has a custom drop shadow filter, the other 
has a 
normal panel drop shadow. You will notice, if you select the text in the 
textInput in the 
panel with the custom filter, the text highlight color is grey. You might also 
notice all the 
text in the custom drop shadow panel is weaker looking, even in the comboBox. 

Other problem, if you change the css for the combo box so that the 
letterSpacing is 
greater than zero (0), you will notice that the text in the comboBox inside the 
panel with 
the custom filter disappears. 

To be honest, I can't fathom how something as simple as a dropShadow filter on 
a panel 
can cause all these problems. I am starting to wonder if half the time I am 
chasing 
problems I have no control over. 

If anyone can offer an insight, it would be greatly appreciated. 
Thanks in advance, 



?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

mx:Script
![CDATA[
import flash.filters.*;

// Application window Drop Shadows
private function appDropShadow():DropShadowFilter {
var distance:Number = 1;
var angle:Number = 90;
var color:Number = 0x00;
var alpha:Number = 1;
var blurX:Number = 10;
var blurY:Number = 10;
var strength:Number = 0.45;
var quality:Number = BitmapFilterQuality.LOW;
var inner:Boolean = false;
var knockout:Boolean = false;

return new DropShadowFilter(distance, angle, color, 
alpha, 
blurX, blurY, strength, quality, inner, 
knockout);
}

[Bindable] public var CBData:Array = [
{label:'One', data:1},
{label:'Two', data:2},
{label:'Three', data:3}
];
]]
/mx:Script

mx:Style
Panel{
backgroundColor:#fff;
headerHeight:0;
borderThicknessTop:1;
borderThicknessRight:1;
borderThicknessBottom:1;
borderThicknessLeft:1;
borderStyle:solid;
cornerRadius:5;
roundedBottomCorners:true;
dropShadowEnabled:false;
}

ComboBox{
cornerRadius: 12;
paddingLeft: 5;
paddingRight: 3;
paddingTop: 0;
paddingBottom: 0;
letterSpacing:0;
highlightAlphas: 1, 0;
fillAlphas: 1, 1, 1, 1;
fillColors: #ff, #cc, #ff, #ff;
color: #33;
borderColor: #dd;
borderAlpha:1;
fontWeight: normal;
}
/mx:Style
mx:Panel width=200 height=200 y=30 x=20 
filters={[appDropShadow()]} 
dropShadowEnabled=false
mx:Label text=Custom Drop Shadow w/ Filter/
mx:TextInput text=tester/
mx:ComboBox dataProvider={CBData}/
/mx:Panel

mx:Panel width=200 height=200 y=30 x=270 
dropShadowEnabled=true
mx:Label text=Normal Panel Drop Shadow/
mx:TextInput text=tester/
mx:ComboBox dataProvider={CBData}/
/mx:Panel
/mx:Application





[flexcoders] Re: all text selection in app is grey

2007-10-31 Thread joshuagatcke
forgot to mention, the cursor is light grey too. 



[flexcoders] Re: all text selection in app is grey

2007-10-31 Thread joshuagatcke
ok, found out what is causing it, a dropshadow filter that I was applying to 
all panels. I am 
not sure how my filter can wreak my text selection color. Can anyone shed light 
on this 
issue? Is it a bug? Here is my filter: 

private function appDropShadow():DropShadowFilter {
var distance:Number = 1;
var angle:Number = 90;
var color:Number = 0x00;
var alpha:Number = 1;
var blurX:Number = 10;
var blurY:Number = 10;
var strength:Number = 0.45;
var quality:Number = BitmapFilterQuality.LOW;
var inner:Boolean = false;
var knockout:Boolean = false;

return new DropShadowFilter(distance, angle, color, alpha, 
blurX, blurY, strength, quality, inner, knockout);
}

I would love to continue using the filter if possible, but loosing the text 
selection color is 
killing me. Also noticed that the filter is causing my comboBox menu text to be 
invisible 
as well. how is this possible?

Thanks,



[flexcoders] dataGridColumn width problems

2007-10-21 Thread joshuagatcke
I have a datagrid inside a container that can change width. The DG is 100% 
width, it has 4 columns. I would like the last 3 
columns to be a specific size while the first column takes up whatever space is 
left. Right now, when my DG loads the columns 
are almost all the same size, then if you resize the DG making it wider then 
smaller the last 3 columns slowly take over the 
first column until there is almost nothing left.

At first I tried giving widths to the last 3 columns so they would be set, I 
thought this would work just like html tables for 
example. That didn't work, so I tried binding (DG.width - the other 3 columns 
widths) as the width of the first column but this 
causes amazingly slow performance when resizing the DG...you can actually see 
the DG columns jumping to catch up with the 
resized window, it's really ugly and makes my app feel like it is crawling. 

here is an example: 

mx:DataGrid id=myDG width=100% height=100% resizableColumns=false
 mx:columns
   mx:DataGridColumn minWidth=135 width={myDG.width - 225}/ // 20 
extra pixles for scrollbar.
   mx:DataGridColumn minWidth=80 width=80 /
   mx:DataGridColumn minWidth=90 width=90 /
   mx:DataGridColumn minWidth=35 width=35 /
 /mx:columns
/mx:DataGrid

I'm not sure what to do here...how come the DGcolumns have min widths but no 
max width? I have searched this list and 
didn't see any other posts about this problem, does this not effect other 
people? 

Thanks in advance for your help, this list is awesome.



[flexcoders] Drag Multiple items with the dragManager

2007-10-18 Thread joshuagatcke
Does anyone know how I can send multiple items to dragManager.doDrag()? I am 
not 
using a list based control/container, and I have manually added drag and drop 
support to 
the items I want to drag/drop to. I want to select multiple items then send an 
array of 
those items to the dragManager to drag multiple items at once.

I am also trying to figure out how to hide the dragInitiator item while i am 
dragging the 
item so it looks like the item is being dragged live, not a copy of the item. I 
am using a 
copy of the dragInitiators Bitmap data for the dragProxy, I also tried to use 
the 
dragInitiator as the dragProxy, but cannot find a way to get the item to 
re-appear after a 
drop. I tried setting the visibility of the dragInitiator to false when the 
mouseMove event 
fires, then returning it back to visible = true when the item is dropped, but 
this seems 
flaky at best. 

To sum it up, I just want it to look like I am dragging an item or multiple 
items across the 
screen. I cannot resort to using the simple start/end drag() methods and mouse 
events 
because these items will also be able to be dropped on drop targets. 

The drag Manager seems awesome, I just wish I knew how to take advantage of it 
a bit 
more. I have read all the documentation several times and still do not know how 
to do 
these things. I tried looking at the list based controls to see how they drag 
multiple items 
etc, to no avail. 

Thanks in advance for any tips/advice/help. 



[flexcoders] Re: Drag Multiple items with the dragManager

2007-10-18 Thread joshuagatcke
ok, so as I understand it from your advise, I would dynamically re-create the 
items I want to 
look like the user is dragging in a canvas, and arrange the items the same 
way they are on 
the screen, pass them to the doDrag method as the dragProxy, then hide the 
dragInitiator 
(and other selected items) then just pass this information (what has been 
selected) in the 
dragSource?

Sounds like a plan. Seems overly complicated to do such a simple task as 
dragging items 
from one container to another, or moving items around on the screen. Oh well, I 
will do what 
needs to be done. 

Thanks for the help. Any other tips and advice out there? Anything I''m 
missing? 



[flexcoders] Re: amfphp + codeigniter

2007-02-20 Thread joshuagatcke
I seen that flickr has rest web services, I am really just trying to use xmlRPC 
from flex with 
PHP. This does not seem that possible. I thought I could close the gap with 
AMFPHP, but that 
would be a realy pain. I might as well just trunk through the XML. I am 
thoroughly 
disappointed with the flex + PHP combination. I wish I had know more about the 
limitations 
of flex before I purchased flex builder. 



[flexcoders] Re: Project Opportunity

2007-02-15 Thread joshuagatcke
Thanks for the tip :) 






[flexcoders] change markup in richTextEditor

2006-12-29 Thread joshuagatcke
I am wondering if it is possible to change the markup that is output by the 
rich text editor, if 
anyone has any tips or advice, it would be much appreciated. 

Thanks in advance,