[flexcoders] Re: Animated Flash Component Resizing when used as Button Skin

2009-04-14 Thread tpokrajcic
Hi Aurek, sorry for not replying earlier but I was on the trip. There is no need to override Button width/height, I guess the problem is in dimensions of the MovieClip that's used as a skin. I plan to play with my similar problem tomorrow. If you want, send me sources of your button and swf of

[flexcoders] Re: Animated Flash Component Resizing when used as Button Skin

2009-04-08 Thread tpokrajcic
Hi, I'm just having a similar issue when using Sprite as Papervision3D texture. Problem with scaling can be solved by overriding width and height getters to give you a constant value because size of Sprite and MovieClip is calculated based on sizes and positions of their children. However, I'm

Re: [flexcoders] possible bug in viewstacks with states or am i not doing something right?

2008-03-02 Thread tpokrajcic
Hi Derek, recently I had similar issue with TabNavigator and states that was driving me insane. The catch was to set creationPolicy property of TabNavigator (ViewStack in your case) to all. Tomislav Derrick Anderson-2 wrote: hi, i'm seeing odd behavior in my application, whenever i use a

[flexcoders] Binding to proxy class

2008-01-30 Thread tpokrajcic
Hi, is there a way to avoid compiler warnings Data binding will not be able to detect assignments to myVar when binding to properties of Proxy class? My class goes something like this: import vegas.data.map.ArrayMap; dynamic public class MyProxyClass extends Proxy implements IEventDispatcher {

[flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic
I made a simple example of TitleWindow with TabNavigator and 2 states. Please check it out (source view available) at: http://www.svemir.net/flex/tabs_and_states/ Window crashes after pressing button for state change. But if you walk a bit over tabs (click Tab2 and Tab3) window changes state.

Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic
TitleWindow closes instead of changing state. Silently, no exceptions thrown. Tom Chiverton-2 wrote: On Monday 28 Jan 2008, tpokrajcic wrote: In some cases something just crashes (like here) Just to be clear, are you seeing an actual crash (of player or browser), a run time exception

Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic
I generally had a lot of pain with states during past few weeks... This is a very simple example that doesn't work, and I have many others. In some cases something just crashes (like here), sometimes state changes don't apply everywhere and sometimes component coordinates get messed up (it seems

Re: Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic
wow, it works. i can't express how much i'm glad it's not a bug :) thnx people, tomislav Jerome Clarke wrote: After looking through the source code to how it works... it is not a bug :p... my mistake What's happening is the tab navigator doesn't create all the children because the

[flexcoders] TabNavigator and States problem

2008-01-02 Thread tpokrajcic
I have a TitleWindow and a TabNavigator inside with several tabs based on Canvas. There are two states - Base State and Edit. TitleWindow goes to Edit state upon click on Edit button. Now a problem: After clicking on a button, state of current tab changes to Edit, but when I click other tabs,

[flexcoders] Re: Scan document using Flex 2 or 3. Help please

2007-12-11 Thread tpokrajcic
we used flash ocx control to embed flash into a c# application and it worked well (but the way to that point was kind of painful). there are some 3rd party solutions that could work for tighter connection with local os, zinc for example. i haven't worked with it, but it seems like a nice tool -

Re: [flexcoders] MessageResponder-MessageAgent-Responder

2007-12-10 Thread tpokrajcic
finally resolved. AcknowledgeMessage.correlationId has to match IMessage.messageId and AsyncRequest will call proper responder. public class MyMessageResponder extends MessageResponder { override protected function resultHandler(message:IMessage):void{ var ack:AcknowledgeMessage=new

[flexcoders] MessageResponder-MessageAgent-Responder

2007-12-07 Thread tpokrajcic
hi, i'm implementing a custom communication protocol support and i'm confused with MessageResponder - MessageAgent - Responder interaction. if i understand it correctly it works like this: 1. when socket data arrives, Channel invokes MessageResponder.result() method 2. MessageResponder's