[flexcoders] You can now download peerApp

2009-06-20 Thread otunazero
I have posted a link to the peerApp stratus based app. If you wanna test or 
track progress on the development go to http://otunazero.wordpress.com . I 
would appreciate some feedback from members of this group



[flexcoders] 3D plane

2009-06-20 Thread stldvd
In Today's New York Times there's a cool 3D flash app that shows how Tiger 
Woods double-bogeyed a hole:

http://www.nytimes.com/interactive/2009/06/19/sports/0619-tiger-graphic.html?hp

Does anyone know how one could accomplish this in Flex? I want a plane that 
recedes toward the horizon, which would have primitive child objects on it 
(cubes, spheres, whatever) and I want to be able to do the kinds of 
transformations that you see in the above example.

Thanks,

David



[flexcoders] Re: Performance improvement recommendation

2009-06-20 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Use the profiler to see where the time is being spent.  If your attempt to 
 use List had poor scrolling it implies that your post renderer is inefficient.

No, List scrolling in Flex 3 (Halo) isn't really scrolling, it just jumps to 
the next item, so no matter how you optimize your renderers, this is going to 
happen.  I believe this is fixed in Gumbo, so a move to Gumbo might help.

One thing the OP might want to try in addition to lightening the repeated 
components is to use a repeater and start out by just loading 5 (or however 
many are visible without scrolling), and then add to the collection after those 
are drawn.

-Amy



[flexcoders] Sticky Scroll bars

2009-06-20 Thread djhatrick
After a mouse up on my flex app the scroll bar still sticks as I move the mouse 
around, until another click.  This is a real annoying bug, anybody know if this 
is going to be addressed?  

How did this bug get out in the first place from QA?



Re: [flexcoders] matrix help

2009-06-20 Thread Aaron Hardy
It seems like you should just be able to do this:

var scaleFactor:Number = .1;
image1.scaleX *= (1 + scaleFactor);
image1.scaleY *= (1 + scaleFactor);
image2.scaleX *= (1 - scaleFactor);
image2.scaleY *= (1 - scaleFactor);

That should affect your matrices as necessary.  If you're scale factor 
is like 1.1, 1.2, etc. as you describe, you should be able to do this 
instead:

image1.scaleX *= scaleFactor;
image1.scaleY *= scaleFactor;
image2.scaleX *= (1 - (scaleFactor - 1));
image2.scaleY *= (1 - (scaleFactor - 1));

I didn't actually try it out, but it seems like it should work.  Let me 
know.

Aaron

grimmwerks wrote:


 Argh. Still can't get it - like if I have something coming in from 1
 to 4 (ie 1.1, 1.2, 1.3 etc) - I can make the one image scale UP fine
 but can't figure out how the other image scales down the same
 percentage...

 On Jun 18, 2009, at 3:38 PM, grimmwerks wrote:

  Ok I must be having a brain fart here.
 
  Imagine two opposing rectangles; as one scales UP the other scales
  DOWN - ie as one scales up 10% the other scales DOWN 10%. How's the
  best way of doing that using matrices? I seriously must be missing
  something simple...
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
  ! Groups Links
 
 
 

 



Re: [flexcoders] You can now download peerApp

2009-06-20 Thread Aaron Hardy
Nevermind...got this link.  Thanks.

otunazero wrote:


 I have posted a link to the peerApp stratus based app. If you wanna 
 test or track progress on the development go to 
 http://otunazero.wordpress.com http://otunazero.wordpress.com . I 
 would appreciate some feedback from members of this group

 



Re: [flexcoders] argh: matrices and dragging

2009-06-20 Thread Aaron Hardy
I guess you figured it out? Your demo works for me.

Aaron

grimmwerks wrote:


 Argh -- still struggling. What am I missing?



 On Jun 19, 2009, at 5:03 PM, grimmwerks wrote:



 But I need that to get the current state of the large transform matrix.

 What I'm having problems with is this idea that the smaller area maps 
 to the larger area; in Director there was an actual map() function 
 that doesn't seem to be in flash.

 It'd be great if the adobe guys could weigh in on this; ie I can't be 
 the only person having trouble with Matrices / Transforms otherwise 
 I'd be getting a lot more responses.

 I'll try it as you say Thomas; thanks for responding.

 On Jun 19, 2009, at 4:28 PM, thomas parquier wrote:



 I think you should move

 var bigM:Matrix = big.transform.matrix.clone();

 out of your box move handler, because box.x and box.y are positive 
 even when moving to left or top.

 thomas
 ---
 http://www.web-attitude.fr/ http://www.web-attitude.fr/
 msn : thomas.parqu...@web-attitude.fr 
 mailto:thomas.parqu...@web-attitude.fr
 softphone : sip:webattit...@ekiga.net 
 mailto:sip%3awebattit...@ekiga.net
 téléphone portable : +33601 822 056


 2009/6/19 grimmwerks gr...@grimmwerks.com 
 mailto:gr...@grimmwerks.com



 I've got a little app that is the same old small viewer / large
 image type thing we all know and love.


 I've got a slider that sets the scale - ie when the user zooms
 up, the large image zooms up and the 'box' canvas does the
 invert so that it shows what view the user is seeing -- dig?

 Now I'm trying to allow the user to move the small box around
 and see that same view with the large image; I've tried the
 following which ALMOST works --when the user moves the box to
 the right (ie x++ and y++) the large image goes to the left; but
 when the user moves it BACK the large image doesn't move back to
 the right.

 private function boxMouseDrag(e:MouseEvent):void{
 borderBox.transform = box.transform;
 var bigM:Matrix = big.transform.matrix.clone();
 var boxM:Matrix = new Matrix();
 boxM.translate(box.x, box.y);
 boxM.invert();
 bigM.concat(boxM);
 big.transform.matrix = bigM;
 //big.transform.matrix.translate(box.x, box.y);
 out.text = dragging  + box.transform.matrix;
 }


 You can see an example here:  

 http://grimmwerks.com/examples/matrix/
 http://grimmwerks.com/examples/matrix/

 **next up how to make the small view box locked to the viewer
 area in the startDrag...








 



[flexcoders] Re: BlazeDS | Messaging | Design Query

2009-06-20 Thread wrhinfl
How about this in messaging-config.xml:
default-channels
channel ref=my-polling- amf /
/default-channels
destination id=FlexDemoTopic 
channelschannel ref=your-polling-flexdemo-amf//channels
/destination
destination id=destStockData 
channelschannel ref=your-polling-stock-amf//channels
/destination

And this in services-config.xml:
channel-definition id=my-polling-amf 
class=mx.messaging.channels.AMFChannel 
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf\polling;
 class=flex.messaging.endpoints.AMFEndpoint /
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds60/polling-interval-seconds
/properties
/channel-definition
channel-definition id=your-polling-flexdemo-amf 
class=mx.messaging.channels.AMFChannel 
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf\polling;
 class=flex.messaging.endpoints.AMFEndpoint /
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds2/polling-interval-seconds
/properties
/channel-definition
channel-definition id=your-polling-stock-amf 
class=mx.messaging.channels.AMFChannel 
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf\polling;
 class=flex.messaging.endpoints.AMFEndpoint /
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds1/polling-interval-seconds
/properties
/channel-definition

I put the default at 60 seconds, the demo at 2 seconds and the stock at 1 
second.  Have to dig into the documentation a bit to get this 
(http://opensource.adobe.com/wiki/display/blazeds/Developer+Documentation)


--- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote:

 Hi
 
 I have two destination defined in the messaging-config.xml file
 
  default-channels
  channel ref=my-polling-amf /
  /default-channels
 
  destination id=FlexDemoTopic
  /destination
 
  destination id=destStockData
  /destination
 
 and my-polling-amf is defined in the services-config.xml file
 
 channel-definition id=my-polling-amf
 class=mx.messaging.channels.AMFChannel
  endpoint
 url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf\
 polling class=flex.messaging.endpoints.AMFEndpoint/
  properties
  polling-enabledtrue/polling-enabled
  polling-interval-seconds1/polling-interval-seconds
  /properties
  /channel-definition
 
 
 Now, if the polling interval is different for two different desinations
 then how should i configure my channel to support two different polling
 intervals.
 
 Thanks
 ilikeflex





[flexcoders] So might as well move everything to FB4 now?

2009-06-20 Thread Brad Bueche
I'm just developing personal hobby type stuff at this point.   No paying
customers or production work (at least until what I'm working on is far
enough along to demo).

So, I'm thinking, let me know if any of y'all disagree, that there is no
reason that I should not make the jump to FB 4 and just leave Flex 3 behind
for good.

I'm just feeling a little dismayed in that there are still a bunch of Flex 3
books that I was planning to read and now it looks like there are some
fundamental shifts in the flex/flash builder approach to things.  But such
is the price of progress I guess.  For the transition comfort zone, can I
develop in FB4 as if it were Flex Builder 3 and then add specific FB4 things
as I learn them?  I guess that would have to work, right?  (Otherwise, it
would break Flex Builder 3 projects).

Can I run 2 versions of eclipse on the same machine (full Flex 3, and full
FB 4) both with their own java and subversive plugins?

And, its also my understanding that I lose NOTHING by using the plugin (into
an existing eclipse) vs the full install, correct?

Will the FB4 plugin work just fine with a Ganymede 3.4 JEE Birt package?
How about 3.4.1?

brad


Re: [flexcoders] 3D plane

2009-06-20 Thread thomas parquier
The application you mention has probably be done with an external 3D api
such as away3d (away3d.com) or papervision3d.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


2009/6/20 stldvd stl...@yahoo.com



 In Today's New York Times there's a cool 3D flash app that shows how Tiger
 Woods double-bogeyed a hole:


 http://www.nytimes.com/interactive/2009/06/19/sports/0619-tiger-graphic.html?hp

 Does anyone know how one could accomplish this in Flex? I want a plane that
 recedes toward the horizon, which would have primitive child objects on it
 (cubes, spheres, whatever) and I want to be able to do the kinds of
 transformations that you see in the above example.

 Thanks,

 David

  



[flexcoders] Re: You can now download peerApp

2009-06-20 Thread kaspar.luethi
maybe you should define a time to meet, otherwise it might get difficult to 
test max. users (as written in another mail).

i would say, using FMS and stratus, you might have a MAX in the 
thousands...nothing you can easily test. you might need to write a tool doing 
the load test.

and maybe you can explain why we should give you rw-acceess to our filesystems 
:)

some feedback. GUI is ugly and usability bad, but i guess you know that. 
validation of the group attributes is in a different order than the fields 
displayed. and i never got to see any other user but some seemingly left-behind 
groups. maybe delete the group if the last user left it?

k.

--- In flexcoders@yahoogroups.com, otunazero otunaz...@... wrote:

 I have posted a link to the peerApp stratus based app. If you wanna test or 
 track progress on the development go to http://otunazero.wordpress.com . I 
 would appreciate some feedback from members of this group





Re: [flexcoders] argh: matrices and dragging

2009-06-20 Thread grimmwerks
It can't possibly -- ie what you're seeing under the small viewer when  
scaled down doesn't match the large view at all.


On Jun 20, 2009, at 11:21 AM, Aaron Hardy wrote:

 I guess you figured it out? Your demo works for me.

 Aaron

 grimmwerks wrote:


 Argh -- still struggling. What am I missing?



 On Jun 19, 2009, at 5:03 PM, grimmwerks wrote:



 But I need that to get the current state of the large transform  
 matrix.

 What I'm having problems with is this idea that the smaller area  
 maps
 to the larger area; in Director there was an actual map() function
 that doesn't seem to be in flash.

 It'd be great if the adobe guys could weigh in on this; ie I can't  
 be
 the only person having trouble with Matrices / Transforms otherwise
 I'd be getting a lot more responses.

 I'll try it as you say Thomas; thanks for responding.

 On Jun 19, 2009, at 4:28 PM, thomas parquier wrote:



 I think you should move

var bigM:Matrix = big.transform.matrix.clone();

 out of your box move handler, because box.x and box.y are positive
 even when moving to left or top.

 thomas
 ---
 http://www.web-attitude.fr/ http://www.web-attitude.fr/
 msn : thomas.parqu...@web-attitude.fr
 mailto:thomas.parqu...@web-attitude.fr
 softphone : sip:webattit...@ekiga.net
 mailto:sip%3awebattit...@ekiga.net
 téléphone portable : +33601 822 056


 2009/6/19 grimmwerks gr...@grimmwerks.com
 mailto:gr...@grimmwerks.com



I've got a little app that is the same old small viewer / large
image type thing we all know and love.


I've got a slider that sets the scale - ie when the user zooms
up, the large image zooms up and the 'box' canvas does the
invert so that it shows what view the user is seeing -- dig?

Now I'm trying to allow the user to move the small box around
and see that same view with the large image; I've tried the
following which ALMOST works --when the user moves the box to
the right (ie x++ and y++) the large image goes to the left; but
when the user moves it BACK the large image doesn't move back to
the right.

private function boxMouseDrag(e:MouseEvent):void{
borderBox.transform = box.transform;
var bigM:Matrix = big.transform.matrix.clone();
var boxM:Matrix = new Matrix();
boxM.translate(box.x, box.y);
boxM.invert();
bigM.concat(boxM);
big.transform.matrix = bigM;
//big.transform.matrix.translate(box.x, box.y);
out.text = dragging  + box.transform.matrix;
}


You can see an example here:

http://grimmwerks.com/examples/matrix/
http://grimmwerks.com/examples/matrix/

**next up how to make the small view box locked to the viewer
area in the startDrag...












 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
 ! Groups Links






Re: [flexcoders] argh: matrices and dragging

2009-06-20 Thread Aaron Hardy
I'm referring to this statement:

---
Now I'm trying to allow the user to move the small box around
  and see that same view with the large image; I've tried the
  following which ALMOST works --when the user moves the box to
  the right (ie x++ and y++) the large image goes to the left; but
  when the user moves it BACK the large image doesn't move back to
  the right.
---

When I move the border box left and right, the large image is moving in 
the opposite direction.  That part seems to be working.  The part that 
doesn't seem to be working is when moving the border box, the large box 
should be moving more than it actually is.  From looking at your code, I 
think you're trying to take scale into account but just doing it 
incorrectly.  I'm not a matrix pro (few people are, which is probably 
the reason you're getting few responses) and I haven't tested what I'm 
about to say, but here's my shot at it from my experience:

An object's tx and ty are unaffected by the object's scale.  In other 
words, if you translate an image that's a normal scale by 10 on both the 
x and y axis, it's the same as if you translate and image that's at 2x 
scale by 10 on both the x and y axis.  They're both still going to end 
up at 10, 10 in their parent.  So I think there are a couple ways to do 
what you're trying to do.  For starters I think you could get the 
x-change of your border box, multiply it by the large image's scaleX, 
then use that number to translate the large image.  Do the same kind of 
thing with Y.  Does that make sense?

Aaron

grimmwerks wrote:


 It can't possibly -- ie what you're seeing under the small viewer when
 scaled down doesn't match the large view at all.

 On Jun 20, 2009, at 11:21 AM, Aaron Hardy wrote:

  I guess you figured it out? Your demo works for me.
 
  Aaron
 
  grimmwerks wrote:
 
 
  Argh -- still struggling. What am I missing?
 
 
 
  On Jun 19, 2009, at 5:03 PM, grimmwerks wrote:
 
 
 
  But I need that to get the current state of the large transform
  matrix.
 
  What I'm having problems with is this idea that the smaller area
  maps
  to the larger area; in Director there was an actual map() function
  that doesn't seem to be in flash.
 
  It'd be great if the adobe guys could weigh in on this; ie I can't
  be
  the only person having trouble with Matrices / Transforms otherwise
  I'd be getting a lot more responses.
 
  I'll try it as you say Thomas; thanks for responding.
 
  On Jun 19, 2009, at 4:28 PM, thomas parquier wrote:
 
 
 
  I think you should move
 
  var bigM:Matrix = big.transform.matrix.clone();
 
  out of your box move handler, because box.x and box.y are positive
  even when moving to left or top.
 
  thomas
  ---
  http://www.web-attitude.fr/ http://www.web-attitude.fr/ 
 http://www.web-attitude.fr/ http://www.web-attitude.fr/
  msn : thomas.parqu...@web-attitude.fr 
 mailto:thomas.parquier%40web-attitude.fr
  mailto:thomas.parqu...@web-attitude.fr 
 mailto:thomas.parquier%40web-attitude.fr
  softphone : sip:webattit...@ekiga.net 
 mailto:webattitude%40ekiga.net
  mailto:sip%3awebattit...@ekiga.net 
 mailto:sip%253Awebattitude%40ekiga.net
  téléphone portable : +33601 822 056
 
 
  2009/6/19 grimmwerks gr...@grimmwerks.com 
 mailto:grimm%40grimmwerks.com
  mailto:gr...@grimmwerks.com mailto:grimm%40grimmwerks.com
 
 
 
  I've got a little app that is the same old small viewer / large
  image type thing we all know and love.
 
 
  I've got a slider that sets the scale - ie when the user zooms
  up, the large image zooms up and the 'box' canvas does the
  invert so that it shows what view the user is seeing -- dig?
 
  Now I'm trying to allow the user to move the small box around
  and see that same view with the large image; I've tried the
  following which ALMOST works --when the user moves the box to
  the right (ie x++ and y++) the large image goes to the left; but
  when the user moves it BACK the large image doesn't move back to
  the right.
 
  private function boxMouseDrag(e:MouseEvent):void{
  borderBox.transform = box.transform;
  var bigM:Matrix = big.transform.matrix.clone();
  var boxM:Matrix = new Matrix();
  boxM.translate(box.x, box.y);
  boxM.invert();
  bigM.concat(boxM);
  big.transform.matrix = bigM;
  //big.transform.matrix.translate(box.x, box.y);
  out.text = dragging  + box.transform.matrix;
  }
 
 
  You can see an example here:
 
  http://grimmwerks.com/examples/matrix/ 
 http://grimmwerks.com/examples/matrix/
  http://grimmwerks.com/examples/matrix/ 
 http://grimmwerks.com/examples/matrix/
 
  **next up how to make the small view box locked to the viewer
  area in the startDrag...
 
 
 
 
 
 
 
 
 
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: 
 

[flexcoders] Re: Adding a close button to a TabBar

2009-06-20 Thread fumeng5
Just what I was looking for; thank you. 

--- In flexcoders@yahoogroups.com, Tom McNeer tmcn...@... wrote:

 Take a look at Doug McCune's SuperTabNavigator. It can have a close box and
 lots of other stuff.
 
 Here's a blog 
 entryhttp://dougmccune.com/blog/2007/02/07/quest-for-the-perfect-tabnavigator-part-3-with-source/about
 it.
 
 And here's the link to the entire flexlib
 http://flexlib.googlecode.com/(which includes the SuperTabNavigator)
 on Google Code.
 
 -- 
 Thanks,
 
 Tom
 
 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560





[flexcoders] Modules - Height and width doesn't work correctly

2009-06-20 Thread djhatrick
Modules don't get correct width and height from the framework?  Are there any 
plans to get this working in another SDK release for flex 3.  This bug will 
stop my app from going to production, and the thing is, I don't know how to 
work around to fix it?

Thanks,
Patrick



[flexcoders] Re: Modules - Height and width doesn't work correctly

2009-06-20 Thread djhatrick
The problem I have found is that the module get's it's height from the 
screenRect, instead of the container that it sits in... SO, I  am working with 
a draggable module, and it has this vanishing point because it is out of the 
screenRect Bounds...





--- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote:

 Modules don't get correct width and height from the framework?  Are there any 
 plans to get this working in another SDK release for flex 3.  This bug will 
 stop my app from going to production, and the thing is, I don't know how to 
 work around to fix it?
 
 Thanks,
 Patrick