Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread piotrz
Hi DavidM, You do not need add path to your debugger in intellij. If you have added sdk to your project and this project is compiling correctly you should be able to debug your application. Maybe show us your intellij configuration. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread DavidM
Thanks Piotr, I'm not sure what you mean by "IntelliJ Configuration" ? David -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flash-Player-Debugger-location-on-Yosemite-tp8708p8712.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread piotrz
David, I mean actually two places: 1) Project structure and you have there tab "Dependencies" - adding there SDK (on windows Ctrl + ALT + Shift + S) 2) Run/Debug Configurations where you adding Flash App configuration Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this messa

Re: Conditional breakpoints

2014-11-13 Thread Mihai Chira
Both FlashBuilder and IntelliJ have the ability to set a condition for the breakpoint: http://imgur.com/Sbn6kHk (IntelliJ). I don't use FlashBuilder anymore, but I remember using conditional breakpoints frequently. And if I'm not mistaken, FlashBuilder also has the option to suspend the operation o

Re: SVG/SWF to FXG Converter (Win, Mac, Eclipse)

2014-11-13 Thread Harbs
I have an extra Creative Cloud (team) license that I can lend to you while you work on this if you'd like. If you’re interested, send me a private email. Harbs On Nov 13, 2014, at 8:52 AM, Sascha Ahrend wrote: > Unfortunately my Illustrator trial has just expired, maybe you can place the > S

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread DavidM
Thanks will take a look at that shortly. For now I decided to just go back to vanilla Flash Builder 4.7 with it's default SDK and debugger. Reason is that: a) I don't need any functionality beyond the 4.6 SDK, and b) I want to support the 11.1 player and above. i.e: the same platform as my curr

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread piotrz
Understand David and Good Luck. If you will need any help do not hesitate to write on this list. :) Note one thing Flex SDK beyond 4.6 there is not only new functionalities, but also a huge amount of fixed bugs. :) I think even if you use Apache Flex SDK you still should be able to support FP 11.1

Re: Flash Player Debugger location on Yosemite ?

2014-11-13 Thread DavidM
Thanks Piotr, I really appreciate that, and agree about bug fixes. In addition to not being able to get the debugger working in IJ, I also couldn't figure out how to make the Flex 4.13 SDK target 11.1 using either IJ or FB's configuration interfaces. It might be that I develop the app in FB 4.7,

Error #2032: Stream Error

2014-11-13 Thread DavidM
Getting that weird error intermittently during development. - any pointers to a cure? dave -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Error-2032-Stream-Error-tp8721.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Problem with BindingUtils.bindSetter

2014-11-13 Thread mark goldin
I am not getting the expected functionality from BindingUtils.bindSetter. here is relative code: BindingUtils.bindSetter(onLoaded, _model.someObject, "propertyOnSomeObject"); someObject is a bindable class. public function onLoaded(value:Object):void { if (value) // it only gets here once when v

Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Has anyone found a way to prevent Flash Builder (or IntelliJ) from opening a new browser every time I recompile. i.e: I just want the swf recompiled. I could then have the browser reload itself when the new swf is created, by watching the output directory with the LiveReload server. This patter

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread mark goldin
I think when you save any change it would recompile if it is set to Build Automatically. On Thu, Nov 13, 2014 at 9:33 AM, DavidM wrote: > > Has anyone found a way to prevent Flash Builder (or IntelliJ) from opening > a > new browser every time I recompile. > > i.e: I just want the swf recompiled

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Solved this one, by following these steps: (using OSX and FB 4.7, but should work with other IDE's ) 1) Install the LiveReload server: http://livereload.com/ 2) Set it to watch the bin-debug folder 3) Add this to the index.template.html file: 4) Run the project once 5) Set FB to compile au

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Mark, FB does rebuild the swf automatically on save, but I don't think the page reloads the new swf by itself, does it? I got it to work using the LiveReload server and embedding a script in the HTML page, as in my prior response. Are you saying I shouldn't need to use LiveReload? -- View

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread Tom Chiverton
I believe you can change the launch URL and settings in the job settings in Builder ? You get that by clicking the dropdown next to the run or debug icon. Tom On 13/11/14 15:33, DavidM wrote: Has anyone found a way to prevent Flash Builder (or IntelliJ) from opening a new browser every time I

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread mark goldin
Maybe I am not fully understanding. You do not want to run your app after compiling? On Thu, Nov 13, 2014 at 9:47 AM, DavidM wrote: > Mark, FB does rebuild the swf automatically on save, but I don't think the > page reloads the new swf by itself, does it? > > I got it to work using the LiveReloa

Re: SVG/SWF to FXG Converter (Win, Mac, Eclipse)

2014-11-13 Thread Sascha Ahrend
I guess this would be in deed pretty helpful. So thank you, Harbs! My private email is m...@ahrend.tel I already did a little testing in Inkscape, no joy. It also seems as if there’s a lot of embedded bitmaps in the file, so I can’t promise there will ever be a way to co

Re: SVG/SWF to FXG Converter (Win, Mac, Eclipse)

2014-11-13 Thread Sascha Ahrend
Well I made a little step forward (still in inkscape though): Although I could not convert the whole file, copying and creating a a new file from a single element (in this case the first element) created a convertible svg. Please see here: http://www.realcreation.com/S2F_Converter/testfxg/testf

Binding and singleton

2014-11-13 Thread mark goldin
Seems like I am having problems binding to a class that is a member of a singleton. Any pointers? Thanks

Re: Binding and singleton

2014-11-13 Thread Alex Harui
On 11/13/14, 9:16 AM, "mark goldin" wrote: >Seems like I am having problems binding to a class that is a member of a >singleton. >Any pointers? Depends on what kind of Singleton it is. Are you getting warnings at compile or runtime? A singleton with static members can’t implement IEventDispa

Re: AW: Flexmojos 7.0.1 NullPointerException while generating sources

2014-11-13 Thread 4xy
I hope those questions are the last ) 1. I have a lib that uses bunch of air classes like /flash.filesystem.File flash.filesystem.FileMode; flash.filesystem.FileStream;/ I can't find the right dependency for it. I added / org.apache.flex.framework air ${flex.versi

Re: Binding and singleton

2014-11-13 Thread mark goldin
Here is singleton definition: [Bindable] public class ModelLocator extends EventDispatcher implements IModelLocator All properties on that class are public vars. On Thu, Nov 13, 2014 at 12:00 PM, Alex Harui wrote: > > > On 11/13/14, 9:16 AM, "mark goldin" wrote: > > >Seems like I am having pro

Re: AW: Flexmojos 7.0.1 NullPointerException while generating sources

2014-11-13 Thread 4xy
Sorry, but I still have issues I can't figure out by myself... I have two types of warnings. 1. The first one is most annoying cause It makes me designates transitive dependenies explicitly. It looks like . /[WARNING] The POM for com.uic:game-api:swc:2.0-SNAPSHOT is invalid, transitive dependen

Re: AW: Flexmojos 7.0.1 NullPointerException while generating sources

2014-11-13 Thread 4xy
Thanks, man, it helped! -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Flexmojos-7-0-1-NullPointerException-while-generating-sources-tp8699p8711.html Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Binding and singleton

2014-11-13 Thread Alex Harui
On 11/13/14, 10:04 AM, "mark goldin" wrote: >Here is singleton definition: >[Bindable] >public class ModelLocator extends EventDispatcher implements IModelLocator > >All properties on that class are public vars. I’ll assume you are trying to tell me that they are not public static vars? When

Re: SVG/SWF to FXG Converter (Win, Mac, Eclipse)

2014-11-13 Thread Harbs
Okay. I sent you an email. On Nov 13, 2014, at 6:02 PM, Sascha Ahrend wrote: > I guess this would be in deed pretty helpful. So thank you, Harbs! > > My private email is m...@ahrend.tel > > I already did a little testing in Inkscape, no joy. > It also seems as if there

Re: Binding and singleton

2014-11-13 Thread mark goldin
No, they are not static. I even replaces public var ... with setter and getter. Still the same. Here more code for singleton: public var data:Object; public function ModelLocator(enforcer:SingletonEnforcer) { if (enforcer == null){ throw new Error("You can have only one ModelLocator"); } } public

Singleton question

2014-11-13 Thread mark goldin
Here is my singleton: [Bindable] public class ModelLocator extends EventDispatcher implements IModelLocator { private static var _instance:ModelLocator = new ModelLocator(); public var test:String; public function ModelLocator() { if (_instance != null){ throw new Error("You can have only one Mode

Re: Error #2032: Stream Error

2014-11-13 Thread Harbs
Here’s some suggestions: http://stackoverflow.com/questions/6507461/error-2032-stream-error On Nov 13, 2014, at 5:26 PM, DavidM wrote: > Getting that weird error intermittently during development. > - any pointers to a cure? > > dave > > > > -- > View this message in context: > http://apach

Re: Singleton question

2014-11-13 Thread Alex Harui
On 11/13/14, 11:33 AM, "mark goldin" wrote: >When I am debugging I see that _instance is always different object when I >get an instance of my singleton. Is that right? How do you know it is a different object? It could be that the code generator for [Bindable] is messing things up. You migh

Re: Binding and singleton

2014-11-13 Thread Alex Harui
It appears you are binding to sub-objects in the model, and they may not be bindable. What is _model.data? -Alex On 11/13/14, 10:49 AM, "mark goldin" wrote: >No, they are not static. I even replaces public var ... with setter and >getter. Still the same. >Here more code for singleton: >public

Re: Problems with vertical alignment of Textinput on iOS

2014-11-13 Thread Tonic
It seems this problem is not resolved. To fix this problem, I override the layoutContent function in skin ScrollingStageTextInputSkin, and add the half of font size : [CODE] override protected function layoutContents(unscaledWidth:Number,

Re: Singleton question

2014-11-13 Thread mark goldin
The way I know that the object is different is I am checking its internal name in the Debugger every time I get an instance. On Thu, Nov 13, 2014 at 2:07 PM, Alex Harui wrote: > > > On 11/13/14, 11:33 AM, "mark goldin" wrote: > > > >When I am debugging I see that _instance is always different o

Re: Binding and singleton

2014-11-13 Thread mark goldin
It's an object. The whole model class is Bindable. On Thu, Nov 13, 2014 at 2:11 PM, Alex Harui wrote: > It appears you are binding to sub-objects in the model, and they may not > be bindable. What is _model.data? > > -Alex > > On 11/13/14, 10:49 AM, "mark goldin" wrote: > > >No, they are not s

Re: Binding and singleton

2014-11-13 Thread Alex Harui
Declaring a class [Bindable] does not make its sub-objects bindable. Show us the code for the model’s data property. -Alex On 11/13/14, 12:31 PM, "mark goldin" wrote: >It's an object. The whole model class is Bindable. > >On Thu, Nov 13, 2014 at 2:11 PM, Alex Harui wrote: > >> It appears you

Re: Singleton question

2014-11-13 Thread Alex Harui
Not sure what “internal name” means but I didn’t see any name property on the code you supplied. Show us the code for “internal name”. On 11/13/14, 12:30 PM, "mark goldin" wrote: >The way I know that the object is different is I am checking its internal >name in the Debugger every time I get an

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread DavidM
Mark, it's a common pattern in the javascript world, the idea is for the browser to refresh whenever there is a change in a dependency. The steps in my workaround, above, will allow you to just keep one browser tab open, and have it automatically refresh when the swf is recompiled (which happens a

Re: Binding and singleton

2014-11-13 Thread mark goldin
Something like this. A bit simplified: package { [Bindable] public class ModelLocator extends EventDispatcher implements IModelLocator { private static var _instance:ModelLocator; public var data:Object; public function ModelLocator(enforcer:SingletonEnforcer) { if (enforcer == null){ throw new E

Re: Singleton question

2014-11-13 Thread mark goldin
I meant a value that is shown in Debug Window in Value column when I select _instance in Name column . Value has unique number at the end. On Thu, Nov 13, 2014 at 2:46 PM, Alex Harui wrote: > Not sure what “internal name” means but I didn’t see any name property on > the code you supplied. Show

Re: Stopping a new browser window from opening every time I compile

2014-11-13 Thread piotrz
David, In Intellij you can recompile project without starting it using on Windows CTRL + F9 or from menu Build -> Make Project Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Stopping-a-new-browser-window-fr

Re: Binding and singleton

2014-11-13 Thread Alex Harui
In this example, the ‘data’ property is an Object. Properties assigned to Objects are not bindable. There should have been warnings in the compile output or in the console at runtime. If you know the set of properties on the data object, you should define a class for that. [Bindable] public cla

Re: Binding and singleton

2014-11-13 Thread mark goldin
I am very sorry for the confusion. I do have it in exactly same way. I was trying not to provide too much details. What can I say ... On Thu, Nov 13, 2014 at 3:04 PM, Alex Harui wrote: > In this example, the ‘data’ property is an Object. Properties assigned to > Objects are not bindable. There

Re: Singleton question

2014-11-13 Thread Alex Harui
Are you referring to where FlashBuilder shows something like: (@1171655c1) It would be odd for that number to change for a Singleton within the same debug session, but the number can certainly change from run to run. You can try the profiler and see how many instances of the Singleton it thinks i

Re: Singleton question

2014-11-13 Thread mark goldin
Yes, exactly. I am getting different ID every time I get an instance. On Thu, Nov 13, 2014 at 3:10 PM, Alex Harui wrote: > Are you referring to where FlashBuilder shows something like: (@1171655c1) > > It would be odd for that number to change for a Singleton within the same > debug session, but

Re: Binding and singleton

2014-11-13 Thread OmPrakash Muppirala
On Thu, Nov 13, 2014 at 1:09 PM, mark goldin wrote: > I am very sorry for the confusion. I do have it in exactly same way. I was > trying not to provide too much details. What can I say ... > > You should always try to provide as much detail as possible when asking a question. Also, please try n

Re: Binding and singleton

2014-11-13 Thread Alex Harui
There is an art to asking questions. You will get help faster if you can get better at supplying the right amount of information. At this point, to try to save time, try one more post with lots of information: Supply the exact code for the model class and its sub objects, and supply any warnings

Re: Singleton question

2014-11-13 Thread Alex Harui
Mark, English is an ambiguous language. That’s why it isn’t used as a programming language. For example, I have no idea what “get an instance” means. Use the profiler and see what it says. Maybe try posting links to screenshots of the debugger and code. Don’t attach screenshots to these email

Re: Binding and singleton

2014-11-13 Thread mark goldin
Agree about details. But do not with overlapping. Your label does not show its text. Can you imagine how many problems that can be caused by? But here we are talking about singletons and binding, a bit more complicated, at least for me. On Thu, Nov 13, 2014 at 3:12 PM, OmPrakash Muppirala wrote:

Re: Binding and singleton

2014-11-13 Thread mark goldin
I will try again. But this is a commercial application we are talking about and it takes some effort to prepare simplified code. Otherwise I would just dumb the whole damn thing. On Thu, Nov 13, 2014 at 3:17 PM, mark goldin wrote: > Agree about details. But do not with overlapping. > Your label

Re: Binding and singleton

2014-11-13 Thread mark goldin
1. singleton: package { import com.adobe.cairngorm.model.IModelLocator; import com.instepsoftware.prism.vo.AutoGenerated.ReportResult; import flash.events.EventDispatcher; [Bindable] public class ModelLocator extends EventDispatcher implements IModelLocator { private static var _instance:ModelLoc

Re: Binding and singleton

2014-11-13 Thread mark goldin
Just tried Profiler and it does show multiple Instances of ModelLocator that are increasing every time I run the screen. On Thu, Nov 13, 2014 at 3:43 PM, mark goldin wrote: > 1. singleton: > package > { > import com.adobe.cairngorm.model.IModelLocator; > import com.instepsoftware.prism.vo.AutoGe

Re: Binding and singleton

2014-11-13 Thread Alex Harui
Interesting. What are the allocation stack traces of the instances? On 11/13/14, 1:49 PM, "mark goldin" wrote: >Just tried Profiler and it does show multiple Instances of ModelLocator >that are increasing every time I run the screen. > >On Thu, Nov 13, 2014 at 3:43 PM, mark goldin >wrote: > >>

Re: Binding and singleton

2014-11-13 Thread Alex Harui
On 11/13/14, 1:43 PM, "mark goldin" wrote: > >That is close to real code. >I know for sure that _ModelLocator.healthReport gets data in the result >function. The whole thing works for the one time only. >Any consecutive run will have _ModelLocator.healthReport = null in set >dataProvider. > >Th

AW: AW: Flexmojos 7.0.1 NullPointerException while generating sources

2014-11-13 Thread Christofer Dutz
Does your last post mean that your problems are solved? In general the Flash classes are in playerglobal.swc and the air classes ar in airglobal. Adding this dependency should do the trick ... but use the air version that you have mavenized. com.adobe.air framework 13.

Re: Binding and singleton

2014-11-13 Thread mark goldin
By next time I mean when I navigate to the screen second time. Yes, I have if (value) in dataProvider setter. The data is valid and received from the server. Ir's a singleton that the data is placed on is not really a singleton. The Profiler is showing multiple instances of it. On Thu, Nov 13, 20

Re: AlivePDF

2014-11-13 Thread Paul Hastings
On 11/13/2014 2:22 AM, Sascha Ahrend wrote: If i may ask, from your experience - do you refer to any main functions not being 100% complete, or is this generally more exotic ones? I checked the examples and 86 out of 87 went well (maybe there is different versions of the library). its been more

Re: Binding and singleton

2014-11-13 Thread mark goldin
How do I see these stack traces? On Thu, Nov 13, 2014 at 4:25 PM, Alex Harui wrote: > Interesting. What are the allocation stack traces of the instances? > > On 11/13/14, 1:49 PM, "mark goldin" wrote: > > >Just tried Profiler and it does show multiple Instances of ModelLocator > >that are incr

Re: Binding and singleton

2014-11-13 Thread Alex Harui
When the profiler starts up, it should give you a dialog with the option to keep allocation traces. Then, in any memory snapshot, you should be able to click on an instance and view the stack trace. Also, setting breakpoints on the constructor of the Singleton should also catch instantiation of it

Re: Singleton question

2014-11-13 Thread pkumar.flex
sorry for incomplete reply. below is exact code. private static var _instance:ModelLocator; public static function getInstance():ModelLocator { if(! _instance) return new ModelLocator(); else return _instance; } On Fri, Nov 14, 2014 at 10:57 AM, Prashant Kumar wrote: > do not create model lo

Re: Singleton question

2014-11-13 Thread pkumar.flex
do not create model locator object after class declaration. Use below getInstance() to create model locator object. like this: private static var _instance:ModelLocator; public static function getInstance():ModelLocator { if(! _instance) } On Fri, Nov 14, 2014 at 12:58 AM, mark goldin [via Ap