[flexcoders] Adobe on Holiday

2011-12-21 Thread Alex H
Hi Folks,

Adobe's US Holiday break has started.  There may be little or no responses from 
Adobe until Jan 3.  I won't be going back over old messages so resend anything 
that needs attention on Jan 3.

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui




Re: [flexcoders] Re: getting the total of values of an array collection that is updated manually

2011-12-21 Thread Alex Harui
Add a switch statement for event.kind, keep the last sum around, and modify it 
as appropriate.


On 12/21/11 11:51 AM, "ZIONIST"  wrote:






How do you do that?






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Air Controlling InDesign?

2011-12-21 Thread Gmail Vane
Try look at adobe creative suite extension builder. The bad thing it's not 
free, but it provides api (swc libraries) for interacting with creative suite

Send from my ipod
Michal Szczepanski


[flexcoders] Re: Native extension crashing

2011-12-21 Thread Tomislav
I made it working by putting the second dll in a folder that's part of windows 
system path.
Also, after exporting release build and installing it, application didn't work 
until manually copying the dll into same folder as exe file. 
The fact that it already exists in "\META-INF\AIR\extensions\..." subtree 
didn't help much.

It's far from perfect, but at least it works for development.
Hope this info can help someone.

Cheers,

Tomislav



[flexcoders] Ribbon control In flex

2011-12-21 Thread baskiram08
Hi
   I'm new in flex . any one tell me how to create the Ribbon control in 
flex4.0 & above version (say any sample web site to build the control ) 

Thanks
Baski.



[flexcoders] Re: getting the total of values of an array collection that is updated manually

2011-12-21 Thread ZIONIST
How do you do that?



Re: [flexcoders] Re: getting the total of values of an array collection that is updated manually

2011-12-21 Thread Alex Harui
Looks ok to me.  Is there some specific issue we should look at?  The 
expectation is that this is for a shopping cart and the number of items won’t 
be very big.  If you had 100,000 items, recomputing on every change could be 
slow, and then you might try to get smarter by looking at the event’s 
CollectionEventKind and making specific changes based on the kind.  For 
example, for an ADD event, all you need to do is add the new value to the old 
sum, no need to loop over everything.


On 12/21/11 7:35 AM, "ZIONIST"  wrote:






Hi guys, thanks to your help i have managed to get it to work finally. One 
question though, is this best practice? Below is the code.


http://www.adobe.com/2006/mxml";
layout="horizontal"
xmlns:ns1="*"
xmlns:ns2="as_logic.*">


































 
 
 


























--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Air Controlling InDesign?

2011-12-21 Thread grimmwerks
I know there's a few apps out there to control Photoshop and the like, but I'm 
wondering if anyone has any information as to how to go about it?  Trying to 
find out from the client exactly 'how' they want to control InDesign; I'd 
imagine calling a native process on a script for it...?


Garry Schafer
grimmwerks
gr...@grimmwerks.com
portfolio: www.grimmwerks.com/







[flexcoders] It might be useful [1 Attachment]

2011-12-21 Thread Anchal Dwivedi



[flexcoders] .Net supported HTML5 through Visual WebGui

2011-12-21 Thread James Ong
It mean sense for Adobe to support HTML5 as well.


[flexcoders] Re: getting the total of values of an array collection that is updated manually

2011-12-21 Thread ZIONIST
Hi guys, thanks to your help i have managed to get it to work finally. One 
question though, is this best practice? Below is the code.



http://www.adobe.com/2006/mxml";
layout="horizontal"
xmlns:ns1="*"
xmlns:ns2="as_logic.*">

































 

 
 


 
 







  















[flexcoders] Re: hSlider Thumb Skin positions incorrectly

2011-12-21 Thread stldvd
Tom,

That's an excellent thought. I'm pretty new to spark skinning. I'll investigate 
this... hopefully it will be a relatively simple adjustment.

--- In flexcoders@yahoogroups.com, "tkraikit"  wrote:
>
> 
> It looks like you're in a mobile app but trying to base your skin off of the 
> desktop HSliderThumb skin. Have you looked at using the mobile theme's skin 
> as your starting point instead?
> 
> -- Tom
> 
> 
> --- In flexcoders@yahoogroups.com, "stldvd"  wrote:
> >
> > ::bump::
> > 
> > Anyone?
> > 
> > --- In flexcoders@yahoogroups.com, "stldvd"  wrote:
> > >
> > > Hi All,
> > > 
> > > I'm trying to skin the thumb of an hSlider component. Problems: 
> > > 1) the thumb is resized to be pixelated and grainy. 
> > > 2) Its position is incorrect. Instead of the new button being cleanly 
> > > bisected by the track, it is just below the track, tangential to it. And 
> > > (presumably because its registration point is at upper left) when I slide 
> > > it all the way to the right, it goes  off the end of the track until its 
> > > left edge is at the track's right edge. This also messes up calculations 
> > > for the hSlider.value property. Here's code for the entire test project:
> > > //HSliderTest.mxml:
> > > 
> > > http://ns.adobe.com/mxml/2009"; 
> > >   
> > > xmlns:s="library://ns.adobe.com/flex/spark" 
> > > firstView="views.HSliderTestHomeView" applicationDPI="160">
> > >   
> > >   
> > >   
> > > 
> > > 
> > > //SliderSkin.mxml. Only modified the  > > 
> > > http://ns.adobe.com/mxml/2009"; 
> > > xmlns:s="library://ns.adobe.com/flex/spark"
> > > xmlns:fb="http://ns.adobe.com/flashbuilder/2009"; minHeight="11" 
> > > alpha.disabled="0.5">
> > > 
> > > 
> > > 
> > >  
> > > 
> > > 
> > > /* Define the skin elements that should not be colorized. 
> > >For slider, the skin itself is colorized but the individual 
> > > parts are not. */
> > >   
> > > static private const exclusions:Array = ["track", "thumb"];
> > > 
> > > /**
> > >  * @private
> > >  */  
> > > override public function get colorizeExclusions():Array {return 
> > > exclusions;}
> > > 
> > > /**
> > >  * @private
> > >  */
> > > override protected function initializationComplete():void
> > > {
> > > useChromeColor = true;
> > > super.initializationComplete();
> > > }
> > > 
> > > 
> > > 
> > > /**
> > >  *  @private
> > >  */  
> > > override protected function measure() : void
> > > {
> > > // Temporarily move the thumb to the left of the Slider so 
> > > measurement
> > > // doesn't factor in its x position. This allows resizing the
> > > // HSlider to less than 100px in width. 
> > > var thumbPos:Number = thumb.getLayoutBoundsX();
> > > thumb.setLayoutBoundsPosition(0, thumb.getLayoutBoundsY());
> > > super.measure();
> > > thumb.setLayoutBoundsPosition(thumbPos, 
> > > thumb.getLayoutBoundsY());
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  
> > >  
> > >   
> > > 
> > > 
> > > 
> > > 
> > >  > > distance="3"/>
> > > 
> > > 
> > >  > >  horizontalCenter="0" verticalCenter="1"
> > >  left="5" right="5" top="5" bottom="5"
> > >  textAlign="center" verticalAlign="middle"
> > >  fontWeight="normal" color="white" fontSize="11">
> > > 
> > > 
> > >
> > > 
> > > 
> > > 
> > >  > >   tabEnabled="false"
> > >   skinClass="spark.skins.spark.HSliderTrackSkin" />
> > >   
> > > 
> > >  > > tabEnabled="false" skinClass="skins.SliderThumbSkin" />
> > > 
> > > 
> > > //SliderThumbSkin.mxml
> > > 
> > > 
> > > http://ns.adobe.com/mxml/2009";
> > >  xmlns:s="library://ns.adobe.com/flex/spark"
> > >  
> > > xmlns:fb="http://ns.adobe.com/flashbuilder/2009";
> > >  minWidth="21"
> > >  minHeight="21"
> > >  alpha.disabled="0.5">
> > >   
> > >   
> > >   
> > >   
> > > 
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >> >source.over="assets/PurpleOnlyCircle60x60.png"
> > >source.down="assets/PurpleOnlyCircle60x60.png"
> > >source.disabled="assets/PurpleOnlyCircle60x

[flexcoders] Native extension crashing

2011-12-21 Thread Tomislav
Hi,
I'm working on a native extension for Windows. I have a functional "hello 
world" example and I'm using Wouter Verweirder's ANT script for building and 
starting the app 
(http://blog.aboutme.be/2011/09/12/air-native-extensions-hello-world-example-ant-script/).

Now I wrote a C function in my extension interface that calls a C function from 
external dll. I have a C test that calls my external interface function and 
returns with success.

However, when I call that function from AIR I get an error message:
ArgumentError: Error #3500: The extension context does not have a method with 
the name doSomethingComplicated.

I learned by now that error above appears every time when something breaks in 
underlying dll (when I remove the call from my C function to second dll, 
recompile it and run from AIR everything works fine).

So I believe that there's something wrong between my ANE dll and the external 
dll I'm referencing.
External dll is packed inside ANE together with my dll.

Anyone had similar problem? Any hint appreciated.

Tomislav