Hey all,
I have a Flex3 project I am trying to add unit testing to. Currently using
Flashbuilder 4.5 Pro. I am using the IDE-provided stub generators to do this.
I took my real project out of the equation, and made a Flex 3 project with an
app and one static function I wish to test. I creat
Alex, thanks again for you help, it got me there :) I have found the solution.
The problem was that this was indeed a vector graphic I was trying to import,
so I needed to bring it in as a SpriteAsset. I can addChild the SpriteAsset to
component I'm working from...I can then set that componen
Hey Alex,
Looks like I'm ignorant here. First, yeah, that was the only thing the trace
spit out. Secondly, I have never implemented the external stylesheet with
embeds other than stuff in our SWF -- so, it sounded right in my head when I
said it. (and the SWF is all artsy and stuff. My home
Thanks for the help, Alex!
So, code:
trace( ObjectUtil.toString(
StyleManager.getStyleDeclaration(".wdwTest").getStyle("icon")) );
var test:Class =
StyleManager.getStyleDeclaration(".wdwTest").getStyle("icon");
var bitmap:Bitmap = new test();
CSS (cursor_move is
ong. Is there a way to do this?
thanks!
--- In flexcoders@yahoogroups.com, Alex Harui wrote:
>
> What code works when it is in the "code swf"?
>
>
> On 5/11/12 8:43 PM, "flexwdw" wrote:
>
>
>
>
>
>
> I should add -- this all work
I should add -- this all works with an image embedded in the code swf...it's
just when I try to do the same thing from the external swf it doesn't work. I
can use the asset as a cursor just fine, so I know there is nothing wrong the
asset too.
--- In flexcoders@yahoogroups.com
I can't seem to figure out how to get the BitmapData for a resource embedded in
an external stylesheet swf. I'd really like to have a piece of artwork in the
swf that I can pull in via code and render into a UIComponent as a bitmap.
Does anyone know how to do this? If I use the StyleManager t
So, using 3.6 SDK, I want to put the artwork for my cursors in the stylesheet
swf rather than embed them in our executable swf.
I know I can accomplish this by generating a Class for the artwork using
UIComponent's getStyle("skinNameInTheStylesheetSwf") and then using that to set
the cursor.
Thanks Gordon for the explanation, that makes sense.
Alex, in general, we have had quite a bit of problems using states in the 3.x
stuff. In short, we banned it because of the maintenance problems it caused
(and a couple other reasons). That said, this is one of the places it would be
more ap
So, I've run into this before but I don't recall it being the headscratcher it
has become today
I'm using Flex 3.5 in an app. I have an MXML class with a bunch of UI in it.
I have been asked to add a switch that causes the positions of some of the
different child components to change. Th
Thanks Alex, we were sending nulls, and sure enough -- it works after I change
that. Not sure why it decided last night to stop working, but thanks greatly
for the suggestion!
--- In flexcoders@yahoogroups.com, Alex Harui wrote:
>
> Are you setting the SecurityDomain parameter in loadStyleDe
So, I have a situation where my app swf is separate from my stylesheet swf. I
use styleManager.loadStyleDeclartions to do this.
In some situations we have, my app swf actually lives on a different domain
than my stylesheet swf. We have a crossdomain file setup on both domains for
this, and
Hey all,
I have to be able to dynamically remove children from an accordion container.
Problem is, this causes a crash when the animation that runs on the selected
child is running when I need to remove the panel. I see no way to force this
animation to end or register for notification of it
Thanks all for the help...I think the SDK update is the right plan for my
situation...an update to 3.5 and the problem goes away
Hey Alex,
The code that is bonking is in TileBase.createItemRenderer. The comment on
this block is "if it is the default column factory, see if the
freeItemRenderers table has a free one". factory and renderer objects are
valid and non-null.
delete freeItemRenderersByFactory[factory][rende
A pattern I am particularly fond of when dealing with TileList(s) that use
complex item renderers is to split my parameters up. I only pass items in via
the "data" property which are different on a per tile basis. For items that
need to be passed into the renderer that are the same for each ti
Thanks for the reply, Alex.
measuredWidth & measuredHeight are 0.
explicitWidth & explicitHeight are NaN.
The parameters are both 0.
The parent that this guy is getting added to is UIComponent (which happens to
be a complex item renderer), I'm not sure if that could be playing into this?
Out
Hello. I have a situation where I have an object that extends HBox. This
object has a variable number of children. The object gets created and added to
it's parent at runtime. The reason I chose HBox is because it will size
itself. I want the width and the height of the HBox to be the width
Hey all,
I have a TileList with rather large tiles and a sometimes small view. At
times, this means that only two rows are shown in the tile list view. I need
the functionality to drag and drop items in the tile list for sorting.
The problem is that the sensitivity of the live scrolling in
Hey all,
I have a baffling situation where the stage.height and the stage.width are
going negative (-1.07... in fact). At this time, stageWidth and stageHeight
are valid, so I have an initialized stage object. This is occurring in a
complex application, and I have not been able to reproduce i
20 matches
Mail list logo