Questions tagged [robotlegs]

Robotlegs is a tiny framework for building Actionscript 3 (Flash and/or Flex) applications

Robotlegs is a pure AS3 micro-architecture (framework) with a light footprint and limited scope. Simply put, Robotlegs is there to help you wire your objects together. It provides the glue that your application needs to easily function in a decoupled way. Through the use of automated metadata based dependency injection Robotlegs removes boilerplate code in an application. By promoting loose coupling and avoiding the use of Singletons and statics in the framework Robotlegs can help you write code that is highly testable.

http://robotlegs.org

79 questions
0
votes
1 answer

local database for adobe air for JSON on Android

I am building an app that will have local database. I plan to implement local database that will be used for offline work, and when app connects with internet it should sync with the server data. What is currently the best way to do it? I prefer…
ThanksBro
  • 911
  • 1
  • 7
  • 20
0
votes
1 answer

Conditional commands

I have three main views in my application: A, B and C. Each of these views contain a view called X. Clicking a button in the X view dispatches a FooEvent to the event pool. I would like to map multiple commands to the FooEvent and execute one of…
hidarikani
  • 1,121
  • 1
  • 11
  • 25
0
votes
1 answer

Is it ok to refference proxy in another proxy?

I just wonder if there are no catches while refferencing a proxy in a proxy. For example in ProxyA: [Inject] private var _proxyB:ProxyB;
MyFantasy512
  • 690
  • 1
  • 9
  • 20
0
votes
1 answer

Starling + Robotlegs - only first mediator instantiating

I am having problems with using the latest version of Starling with Robotlegs. I am finding it all compiles but only my first mediator is instantiated.…
Tom
  • 12,591
  • 13
  • 72
  • 112
0
votes
1 answer

Error in RobotLegs when removing a nested view

We may have a slightly unusual setup, where the context parent-child relationship is not related to the display list. Each view is loaded into a ViewLoader, which sets up the view's context with the following extensions: public function…
Peter Hall
  • 53,120
  • 14
  • 139
  • 204
0
votes
1 answer

Unittesting and mocking robotlegs service calls using Oil extension

I have an ExampleModel that calls to an ExampleService that retrieves data from our backend. I can't figure out how to write unit tests for my application; which is structured as shown below: ExampleService public function…
m.y
  • 691
  • 9
  • 21
0
votes
1 answer

Error 1023 Stack overflow with as3-signals-v0.9-BETA

I am using as3-signals-v0.9-BETA in a simple slide application. In my signal handler, I am dispatching the same signal again based on some conditions. The application throws an exception after a couple of hours on the signals dispatch method. Below…
Chetan Sachdev
  • 738
  • 1
  • 12
  • 31
0
votes
2 answers

Unable to access children in movie clip

Inside flash cs6 I have drawn a flash movieclip in which I set export settings as abc.Gameboard. Inside gameboard I have a bunch of pieces (symbol:Piece) which I export as abc.Piece - both base class set to MovieClip and with class files. The piece…
MikeW
  • 4,749
  • 9
  • 42
  • 83
0
votes
2 answers

away3d and starling resizing issue

I am having problems trying to resize correctly both away3d Gold and Starling in stage3d both working in a single game. I have 4 starling instances and 1 Away3d instance handled by stage3dProxys. This all work PERFECT on the initial size. Problems…
ThanksBro
  • 911
  • 1
  • 7
  • 20
0
votes
1 answer

swiftsuspenders constructor parameters?

Once I read in some google document about coding guidelines that every new instance of a class should go from a factory class, and I use SwiftSuspenders for it. Now my question is, is it possible to create a new instance of an object that requires…
0
votes
1 answer

Robotlegs - second dispatch does not work with addViewListener

I have a mediator created in Robotlegs, and its related view would dispatch two different kinds of events. When the mediator captures the event, it would just simply dispatch the event. The problem I ran into was that the first event is…
Tianzhen Lin
  • 2,404
  • 1
  • 19
  • 19
0
votes
1 answer

Mediator is not registered

I have some problem with views and mediators. I have view named Shop and his mediator. I mapped it in my context: Code: mediatorMap.mapView(Shop, ShopMediator); Then I create object of Shop and add to stage just as user open shop in the game. The…
Pastan
  • 19
  • 4
0
votes
0 answers

How can i get a view position from an another meditator class?

My startup command is: var containerView:ContainerView = new ContainerView(); var sampleView:SampleView = new SampleView(); contextView.addChild(containerView); contextView.addChild(sampleView); containerView.y = 50; containerView.x =…
Ahmet Alsan
  • 624
  • 1
  • 5
  • 10
0
votes
1 answer

Robot legs- timer is service or model?

in robotlegs can a Timer be inside a model or should it be encpsulated in a service. Example: lets say i'm implementing a digital clock in robot legs. Should the Timer that updates the clock be a part of the ClockModel, or should it be in a…
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216
0
votes
1 answer

Is injecting a model into a service an anitipattern

Some services in my Robotlegs app require parameters. I'm wondering which solution is better: Mediators pass parameters to services Services aquire parameters from injected models
hidarikani
  • 1,121
  • 1
  • 11
  • 25