Consider this VBox:
There's no explicit width or height, only the minimums are set. When the
app runs, we get a 400x300 box. All good. However, if we try to scale this
box:
mybox.scaleX = mybox.scaleY = 0.5;
I would think that we would get a box that's 200x150. Instead, I got a box
that's
re its classes share classes with your app.
>
>
> --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Jason Y. Kwong
> *Sent:* Saturday, September 29, 2007 9:34 PM
> *To:* flexcoders@yahoogroups.com
> *Subjec
--
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Jason Y. Kwong
> *Sent:* Saturday, September 29, 2007 1:05 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Runtime CSS problem with SWFLoader
>
I've got an app which loads different runtime CSS SWFs to change its
appearance at runtime. Everything works fine. However, if I load this app
inside another app using SWFLoader, the style changes don't happen. At
best, some of the new styles are applied, but never all. I can confirm that
the C
I've been tinkering with the services-config.xml file in the
wwwroot/WEB-INF/flex/ directory, specifically the
switch. The thing is, it doesn't seem to do anything (yes, I did restart
the CF server). Whether it is set to "public" or "remote", any Flex app can
access both public and remote funct
Since there doesn't appear to be any follow-up to this topic, I'll provide
an example. I recently started working with printing (using 2.0.1) and
noticed this problem of the background colour "bleeding" through into the
margin of the printed output. This might be printer/driver specific,
though.
EMAIL PROTECTED]> wrote:
I'm glad it's not just me! So, were you able to get something working
for your scenario?
Anyone from the Adobe team want to confirm this and/or offer
alternative solutions?
thanks,
Thunder
--- In flexcoders@yahoogroups.com
I've running into this myself right now as well. If you look at the Tree code, you can see that the "drop parent" is being tracked in the variable _dropData.parent. It gets calculated in the method updateDropData(). Unfortunately, both the variable and the method are private, so they're usele
>From my experiences, the grid takes a beat to update its visual appearance when its data gets updated. After I know that the data has been updated, I normally use callLater() to set the scroll position.
On 6/28/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
I'm still not having any luck. The
t to clip the right edge of the following example.
http://www.adobe.com/2006/mxml">paddingRight="-20" clipContent="true">
if i was using a Canvas instead of an HBox in the above example. it
works.b
ave to play with the numbers to get a specific effect.
On 6/20/06, bhaq1972 <[EMAIL PROTECTED]> wrote:
hi JasonHow can I keep this effect if i modify your example to become
thanksbod--- In flexcoders@yahoogroups.com, "Jason Y. Kwong" <[EMAIL PROTECTED]&
This is actually caused by this bug I posted a few days ago:http://groups.yahoo.com/group/flexcoders/message/39749When you hit Escape, the TextInput control reverts to the previous value by assigning it to the htmlText property. Once it does that, the "text" property is no longer useable.
You c
Have a nested container do the clipping for you. eg:
On 6/16/06, bhaq1972 <[EMAIL PROTECTED]> wrote:
Mike and Tom thanks for the input.firstly, I tried using clipContent before but doesn't work.if i was dealing with fixed widths and set thehorizonatalScrollPolicy 'off', i ca
If you set the htmlText property of a TextInput control, any changes you make to the "text" property is ignored afterwards. This is a bug in the commitProperties() method. There's a block of code that looks like this:
if (htmlTextChanged) { textField.htmlText = _htmlT
With an editable DataGrid, select a row to give the grid focus. On the desktop, bring some other application to the foreground. Then go back and click on the Flex app that's running in the browser (click on the app, not on the browser window title bar). The grid will then put a cell into edit
1. When editing a cell, pressing the Esc key should close the editor and cancel the edit. Currently, the editor is closed but changes made by ther user is written back to the dataprovider.2. The verticalScrollPosition property is not bindable. If you try to bind to it, you get the compiler war
I have a very simple MXML component with a custom event:-
http://www.adobe.com/2006/mxml" width="400" height="300"> [Event("jump", type="MyNewEvent")]
package{ import flash.events.Event
; public class MyNewEvent extends Event
I'm not sure if this is an entirely Flex problem, but I don't recall seeing this when using Flash Remoting. The problem arises when trying to do a RemoteObject call to a CF function that has one required argument that's a struct. eg:
I try to pass an Object for arg1 and I get the error "The
e
dataProvider. That should definitely cause the tree to refresh. In 1.5, we
could do myTree.dataProvider = myTree.dataProvider;
Tracy
From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Jason Y. Kwong
Sent: Tuesday, June 06, 2006 3:46
PM
To: flexcoders@ya
nd the new children are in the XML. Must be a problem with the Tree's refresh logic.
On 6/6/06, Jason Y. Kwong <[EMAIL PROTECTED]> wrote:
I've noticed one other problem: If a Tree's showRoot property is set to false, not even calling invalidateList() will refresh the display. I
I've noticed one other problem: If a Tree's showRoot property is set to false, not even calling invalidateList() will refresh the display. In fact, I can't find any way to get the Tree to refresh in such a case. Any ideas?
On 5/25/06, Michael Montagna <[EMAIL PROTECTED]> wrote:
Post beta3, cha
I know this isn't an overly critical issue, but it's real ugly. Does anyone have a workaround for this? Or at least confirm that it'll be fixed in the production version? Thanks.On 5/31/06,
Jason Y. Kwong <[EMAIL PROTECTED]> wrote:
I have a Canvas with a border and i
I have a Canvas with a border and it contains a TextArea. The Canvas is intentionally made larger than the TextArea via layout constraints. I then apply a Move effect to the Canvas. While the Canvas is moving, the size of the Canvas gets reduced to the minimum size required to contain the Tex
Ok, say the Flex side needs to call methods on the Flash side. We set up a LocalConnection so that the Flash side acts as a server and the Flex side connects to it. In Flash 8: lc = new LocalConnection();
lc.connect("MyFlashServer"); //Give it a unique name //De
nywhere!@Angelo--- In flexcoders@yahoogroups.com
, "Jason Y. Kwong" <[EMAIL PROTECTED]>wrote:>> An IP address like 192.168.1.103 is a local IP address assigned bya router> (most likely a Linksys, right?). An outside machine (not on your
LAN) won't> be able to see
In AS3, the in operator will iterate only through dynamically added properties. Properties/methods that are declared as part of the class are not included, so it will show nothing for the Label.
On 4/4/06, David Moylan <[EMAIL PROTECTED]> wrote:
I want to clone an mx:Label object. I thought I
The function signatures have changed. eg:callProperty(name:Object, ... args):*has changed to:callProperty(name:*, ... args):*
On 4/4/06, sn197412 <[EMAIL PROTECTED]> wrote:
Hi.I'm trying to compile a [EMAIL PROTECTED]But I got errors every "override" lines.What is "Incompatible override"??packa
I've noticed that you can't actually manipulate the columns property directly cause it looks like the grid returns a copy of its internal columns array. eg: trace(grid.columns == grid.columns); //outputs "false"
So doing things like "grid.columns.push(...)" doesn't change anything, even if y
An IP address like 192.168.1.103 is a local IP address assigned by a router (most likely a Linksys, right?). An outside machine (not on your LAN) won't be able to see your machine via that IP.
At least that's my take on the situation...On 3/28/06, angelosalsa <[EMAIL PROTECTED]> wrote:
Hi all.,
When the Loader loads a Flash 7/8 SWF, its height and width properties are set to the SWF's stage height and width. The thing is, the SWF could size its content dynamically so that it's actually larger than specified. The larger SWF is displayed properly in the Flex app and the contentHeight a
Ok, this is a pretty obscure bug, but the scenario isn't so weird. The following app creates a menu and has a button that causes it to be shown. When the menu item is clicked, it pops up an alert box: http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="init()">
For our production environment, our SWFs are served from the same machine that our ColdFusion server resides on, so using {server.name} or {context.root} works fine when configuring destinations. During development, I compile and test SWFs locally. I don't run ColdFusion locally--we have a sep
I go to the Modify tab of the Keys preferences screen and do this:- select Run/Debug from Category dropdown- select Run Flex Application from Name dropdown- click the Name edit box under the Key Sequence section
- press the key-combo I want (eg. Ctrl-Enter)- click Add then click Ok.This worked f
I'm seeing some strangeness with the @ operator: var foo: String = "hello"; @foo = "goodbye"; trace(foo); //Traces out "goodbye"Why does "@foo" resolve to "foo"? Is this expected behaviour? If "foo" is a property and not a local variable, I get a compiler error (as expected).
--
Sorry, I thought you meant Flex 2. I haven't used Flex 1.5 so I'm not much help there.On 3/22/06, Libby <[EMAIL PROTECTED]
> wrote:Is this code Flex 2.0? My StyleManager (v1.5) doesn't seem to have the
method getStyleDeclaration().Thanks,Libby--- In flexcoders@yahoogroups
It's controlled by a global style as it's not specific to the TextInput component:.ErrorTip { borderColor: #00FF00 }orStyleManager.getStyleDeclaration
("ErrorTip").setStyle("borderColor", 0x00FF00);On 3/22/06, Libby <[EMAIL PROTECTED]
> wrote:I've been messing with StyleName, borderColor, er
I hope someone is actually looking into this. Here's a log of the null pointer exception when trying to use J2EE sessions. It's not terribly useful as the stack trace is not shown, but it does show that the exception occurred when trying to access the ColdFusion service, most likely the adapte
This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line:
--services=C:\CFusionM
Actually, never mind. I think I figured it out. An event named "move" was already declared previously by the framework. I guess I should just call it something else. An interesting scenario, anyway...
On 3/10/06, Jason Y. Kwong <[EMAIL PROTECTED]> wrote:
My custom compone
My custom component broadcasts an event called "move". So I declare it in the MXML: [Event(name="move", type="flash.events.Event")]
And then later dispatch it: dispatchEvent(new Event("move"));But I get a runtime error when dispatching: Type Coercion failed: cannot convert flash
We had a bit of a discussion here about this a little while back. The solution I'm using right now uses the Loader component to load the Flash 8 swf at runtime. And, as mentioned, I use LocalConnection to communicate between the Flash 8 swf and the Flex app. It's not great, but it's the only
EMAIL PROTECTED]> wrote:
You won't see those exceptions in a
release player, only debug. Are you using the Flex Loader or the flash.display.Loader?
From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Jason Y. Kwong
Sent: Thursday, February
This is about editing files outside of the current project. Code hints/completion works fine if I open a file via the "[classpath] classes" folder hierarchy, but if I open a file via "Go to Definition" (or Ctrl-click an identifier), code hinting does not work. Again, passing this along...
I have a Tree with an XML dataprovider. I noticed a couple of problems when using the setChildren() method on the source XML object. First, if a branch has children and is open in the Tree, the player crashes if I call setChildren() and pass it an empty XMLList (to clear the children).
Secon
hose are legit errors, you can't just muck with
the root anymore.
From:
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Jason Y. Kwong
Sent: Tuesday, February 14, 2006
10:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Uncaught
exceptions i
?On 2/15/06, Jason Y. Kwong <
[EMAIL PROTECTED]> wrote:
I've got a Button with its icon property set to a coloured icon. I want the Button to show a greyed out icon when it's disabled, so I set the button's disabledIcon style. But this disabled icon didn't show up wh
I've got a Button with its icon property set to a coloured icon. I want the Button to show a greyed out icon when it's disabled, so I set the button's disabledIcon style. But this disabled icon didn't show up when the button is disabled. Turns out that if the icon property is set, it's the on
When using the Loader component to load a Flash 8 swf, I normally get a couple of uncaught exceptions that appear via a pop-up window:ReferenceError: Error #1056: Cannot create property __OnEnterFrameBeacon on _TestApp_mx_managers_SystemManager
ReferenceError: Error #1056: Cannot create property
It's not a huge problem, but it's good to get these things fixed...When binding to ColorPicker.selectedColor, it works fine if the user manually changes the selected colour. However, if the property is changed programmatically, the binding does not execute. It has caused some minor headaches o
Thanks for your response. I know this is a pretty obscure problem.Unfortunately, I've turned on all the logging I can for the CF server. CF has no problems with nested objects and the like. I did these kind of calls all the time using remoting with Flash. Perhaps it isn't a Flex issue but a
*BUMP*Sorry for the repost, but I know that the Adobe folks were pretty occupied last week. Trying this one again...On 2/4/06, Jason Y. Kwong <
[EMAIL PROTECTED]> wrote:I'm attempting to call a CFC from a Flex
2.0 app. I would prefer to use RemoteObject but our ColdFusion server
I have noticed that the following two lines are not equivalent: dataProvider = ; dataProvider = XMLList();The first results in an ArrayCollection dataProvider while the second one results in an XMLListCollection. Strange things happen with an ArrayCollection. Using the second way, I didn'
No, no love here. However, it does bring up the question: What are our options if we want to be able to script a Flash 8 swf inside a Flex2 app?
On 2/9/06, Roger Gonzalez <[EMAIL PROTECTED]> wrote:
Um, so don't fall in love with any of this.
Just sayin'.
-rg
--
Flexcoders Mailing L
For what it's worth, here's a quick little example:http://corefile.net/LoadSimpleSWF.zip
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORE
e.
On 2/8/06, JesterXL <[EMAIL PROTECTED]> wrote:
Have you successfully set a getter/setter
property?
- Original Message -
From:
Jason Y. Kwong
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 08, 2006 3:08 PM
Subject: Re: [flexcoders] embed a movieclip
Ok, I fo
y're considered properties, I guess they're good to go. It's a useable workaround at this point.
On 2/8/06, Jason Y. Kwong <[EMAIL PROTECTED]> wrote:
I'm actually trying to do something similar. What I've found so far should be able to help you. You need
I'm actually trying to do something similar. What I've found so far should be able to help you. You need to load the SWF via the Loader component and then use its content property:private function onComplete(): void{ var swf: MovieClip = MovieClip(myloader.content); swf.gotoAndPlay(...);
}
To answer your specific question about adding nodes... Since you have an XML dataProvider, the selectedNode property will return an XML object. You can then use the appendChild() method to add child nodes. eg:
var node: XML = XML(tree.selectedNode);
node.appendChild();
On 2/5/06, Brendan M
It worked fine in the Alpha, but with Beta 1, setting a Tree's disclosure icon makes the icon unresponsive to mouse clicks. My example:
Now when you click on the disclosure icon, the node does not expand. My icon is a simple 13x13 png that's filled with all blue.
--
Flexcoders Mailing Li
Hari,Thanks for the code sample. It has given me a couple of ideas.Cheers!
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Michael,Thanks for your timely response. It does clear up a few things. My comment about the XML approach being more supported was an (admittedly) obscure reference to my own experiments with the ITreeDataDescriptor interface. It again goes back to visually updating the Tree. If the dataProv
I'm really at a lost as to how we're supposed to work with the hierarchical data that's used with the Tree component. The XML approach seems to be the most supported at the moment, so consider this simple XML: var rootNode: XML =
The dataProvider for the Tree then becomes an
I'm attempting to call a CFC from a Flex 2.0 app. I would prefer to use RemoteObject but our ColdFusion server is running on Linux so we've got no Flex Connectivity. So I'm still using the WebService object to make calls via SOAP. This works fine normally, but things mess up if I try to pass
In AS3 you can now cast directly to int too. eg:var s: String = "123";var i: int = int(s);And, you know, it's interesting that the following works:var s: String = "123";var i: int = s * 10; //You get 1230
But this doesn't:var s: String = "123";
var i: int = s;You get a compiler error: Implicit
I ran into a similar situation a while ago where I needed to add stuff to the panel's title bar. While it's possible to use a Canvas to lay stuff on top of a Panel, this doesn't work if you're trying to create a re-useable custom Panel because the resulting component is a subclass of Canvas, no
Ah yes... This led me to discover the ToolTipManager class. Its createToolTip() method can be used to arbitrarily create both regular and error tooltips. Very handy. On the down side, the class doesn't seem to offer up its tooltip placement algorithm. Oh well.
On 2/1/06, Stephen Gilson <[EM
The Validator objects are not appropriate for what I'm doing, but I do like the way they popup that text "bubble" message when validation fails. Is there a way to manually create/show/hide such popup messages?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/
set be typed as String. So it works as a String in 1.5,but I've tried both String and Class in 2.0 with no luck.Thanks,Brendan--- In
flexcoders@yahoogroups.com, "Jason Y. Kwong" <[EMAIL PROTECTED]>wrote:>> This works for me:>> > > >>
This works for me:
Or you can short-hand it a bit:
On 1/30/06, Brendan Meutzner <[EMAIL PROTECTED]> wrote:
Hi,When I try to implement a custom icon in a Tree component for Flex2.0, it gives me a runtime error stating that it can't fi
res).
You can try rewriting Base.mxml to be
Base.as if there weren't visual children
Public class Base extends Canvas
{
//declare properties and methods
}
Matt
From:
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong
Sent: Friday,
I'm relatively new to Flex 2 and what I'm trying to do is to create a set of custom MXML components that share the same AS base class. So I start with the base component, an empty container to which I add properties/methods via AS. Call it
Base.mxml:http://www.macromedia.com/2005/mxml" xmlns=
71 matches
Mail list logo