[flexcoders] Re: draw an arc

2010-05-27 Thread PFD Studio


--- In flexcoders@yahoogroups.com, Mark mark.pusat...@... wrote:

 I need to draw an animated arc in Flex.  So I have 2 points and the arc needs 
 to draw over a period of about 1.5 seconds or so.  I can't even find a good 
 demo for Flash, let alone Flex.  Does anyone know how to go about doing this?

This demo

http://www.peterdavis.info/DrawArc.html

uses a polygon to draw the arc in about 1 degree segments.  To animate, you 
could simply set a timer event handler that would add a new segment at each 
call.

-pd




[flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-04-30 Thread PFD Studio

The talk about openness is completely disingenuous.  Flash/Flex/ActionScript is 
vastly more open than any of the relevant Apple technologies.

Moreover, what Jobs really wants is for Quicktime to be the video technology of 
choice.

I believe Apple will eventually have to cave to market pressure on this one.  
Unfortunately, the delay is a pain in the neck for everyone.

-pd




[flexcoders] Re: Images not getting reloaded when source changes?

2010-04-22 Thread PFD Studio

Thanks!  

--- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote:

 you should have your source as a bindable variable then you can just change 
 that variable when you need to and the source of the image should change.

Good point, but it still should work the way I have it, I think.

 
 I didn't look that closesly at the code... but it also looks like you are 
 trying to load the same source into the image? If the image already has the 
 source value set it won't reload the image you'll have to call 
 unloadAndStop() on the image first

I'm changing the source URL somewhat, by changing the arguments in the query 
string.  Just to check, though, I tried calling unloadAndStop() on each image 
first.  No difference in behavior:

protected function updateTables():void
{
//url1.text = urlBase + 
?styleIndex=1textColor=%23 + textColor + borderColor=%23 + borderColor;
table1.unloadAndStop();
table1.source = urlBase + 
?styleIndex=1textColor=%23 + textColor + borderColor=%23 + borderColor;
url1.text = String(table1.source);
table1.load(String(table1.source));
table3.unloadAndStop();
table3.source = urlBase + 
?styleIndex=3textColor=%23 + textColor + borderColor=%23 + borderColor;
table3.load(String(table3.source));
table5.unloadAndStop();
table5.source = urlBase + 
?styleIndex=5textColor=%23 + textColor + borderColor=%23 + borderColor;
table5.load(String(table5.source));
}