Hi,
Is there any way to get the parent item of a node in a tree when the
node is closed. The method tree.getParentItem (node) returns the
parent based on the current state of the tree (open/close). If the
node is not visible in the current state of tree this method returns null.
The thing is
I can't post the app sorry but any reason why the UI could be
deforming while you scroll?! anyone else had this problem before?
raf
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
Can you post the app? I probably won't be able to look until tomorrow
(for me). Add
Hi,
I just created a demo Flex app that uses a popup - see
myflexapps.appspot.com - check out my demo and if you are stuck I can
pull out the appropriate code for you that shows how this works.
Patrick
--- In flexcoders@yahoogroups.com, Joshua Jackson [EMAIL PROTECTED]
wrote:
Dear all,
I
Hard to say w/o more information. I would try to see if the number of
children matches what you see on screen. Maybe write some code that
shows you what is on the display list and then try to find out how
duplicates are getting created if there are any.
For the DG problem, make sure the
Never mind, I just had to keep the index of top level node in my leaf
node. Then when the user clicked on the leaf node in other list I had
to call
tree.expandItem(tree.dataProvider.getItemAt([EMAIL PROTECTED]), true);
This ensured that the node's parent was expanded and I could get the
parent by
Is it possibile to make the cf/flex builder wizard be able to insert
new data rather then just view and edit? if so how would i do it?
can u provide the code for merapi. i am not getting from that site.
--- On Fri, 8/1/08, Rick Winscot [EMAIL PROTECTED] wrote:
From: Rick Winscot [EMAIL PROTECTED]
Subject: Re: [flexcoders] Integrate flex and Java
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Date: Friday, August 1,
If you are interested in triggering a java application from Flex
Client side, one way I can think of is making a mini Java project,
whose only purpose is to trigger a Runtime.exec, from where you can
initiate whatever java app you want to start via a batch file/shell
script.
Obviously, it
Lets say you have two files; base.mxml, and popup.mxml.
You can achieve this using Events. basically you write a function in
your base.mxml, which is then called when you want to divert
attention to base.mxml file from popup.xml
In your popup.mxml, you do the following:
1) Register the Event
Hi,
I have a canvas containing text. When I fadeout the canvas, via mxml fade
effect, the canvas
fades out but the text does not.
How can I fade out the canvas and the text together?
Cheers,
-c.
Hi,
You need to use an embedded font in order for the fade effect to work. Simply
create a new style for your text, then tick the Embed this font check box in
the style properties.
--
Laurent Cozic
Flash, Flex and Web Application development
http://pogopixels.com
- Original Message
--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
Don't know, could be the best way is add support for a special case
renderer
for the last column, or you could just build that functionality into
the
renderer itself, I don't know enough to say which would be easier /
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
Amy, make sure you want 90% of tilelist functionality, otherwise it
might be better rolling your own. Selection, virtualization,
renderers,
dataproviders, etc.
IIRC, there are stacks of renderers, so I would try
On Thursday 31 Jul 2008, Sid Maskit wrote:
mx:Label id=display text={(isNaN(myNumber as Number)) ? 0 :
PrepForDisplay.format(myNumber)}
Eww.
That is so hard to read.
Either use a labelFunction or just fix PrepForDisplay.format().
--
Tom Chiverton
Using Flex 3, is there any way to have a validator error message
appear automatically without forcing the user to hover the mouse over
a form entry which has ever so slightly changed its border colour to red?
Cheers,
Hi,
I have a List, whose dataprovider is loaded from a server. The list is
using a custom itemRenderer to render data. The renderer has amongst
other things 2 numeric steppers inside it. The list can have durin
execution none, one or many items. I want to be able to use tab and go
through the the
--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
Not sure I follow what you want, but could you manipulate a view of
your
data, rather than having to mess about with charting internals? I
don't know
much about charting so I don't know how much you can customize
--- In flexcoders@yahoogroups.com, Manu Dhanda [EMAIL PROTECTED]
wrote:
Hii
I want to set the datagrid row height based on a Boolean at run
time.
Say I have 10 rows in a datagrid. Now if I set the boolean value to
false, I
want to set 4 rows as of height ZERO. And if at runtime again
--- In flexcoders@yahoogroups.com, gaurav1146 [EMAIL PROTECTED] wrote:
Never mind, I just had to keep the index of top level node in my leaf
node. Then when the user clicked on the leaf node in other list I had
to call
tree.expandItem(tree.dataProvider.getItemAt([EMAIL PROTECTED]),
true);
Hello All,
Can you please help me by giving me a clue for including a scollbar
for a canvas, where the scroll bar should contain the left and right
navigation arrows not to either side of the scroll instead to the right
(i mean to say to one side of the scroll).
i thought of doing this using
Yeah Amy.. thnkz for the tip.
I tried the same thing and it worked.
Manu.
Amy-28 wrote:
--- In flexcoders@yahoogroups.com, Manu Dhanda [EMAIL PROTECTED]
wrote:
Hii
I want to set the datagrid row height based on a Boolean at run
time.
Say I have 10 rows in a datagrid. Now if I
I generally write a simply utility that has a setAppBusy(flag:Boolean)
function. When true I set the application mouseChildren=false and
then do CursorManager.setBusyCursor(). I actually hate the popup/hide
my data/grey the screen approaches. The only gotcha I came across
with this was that
greetings,
Can a Flex 3 app be specially engineered to work with a Application
Server cluster?
we are using WebOrb 3.0 for php.
any links, advice would be greatly appreciated.
also any recs on VPS hosts too..
anyone ever host with MediaTemple DS?
or Amazon's EC2?
thanks!
artur
I have a dynamically populated combobox that I would like to provide
an initial label instead of the first item in the array. It would be
impossible to create an item in the array to show, it would need to
part of the combobox control.
So on initial load of the application, the combobox would
For the other newbies...
Use the Prompt property.
--
Blair
From: cox.blair [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
Date: Fri, 01 Aug 2008 13:39:08 -
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox - How to display 'Click to Select...'
I have a
Cheers Ryan! Found the answer only moments before your email came in.
--
Blair
From: Ryan Gravener [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
Date: Fri, 1 Aug 2008 10:10:49 -0400
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Combobox - How to display 'Click to
Set the prompt property.
On Fri, Aug 1, 2008 at 9:39 AM, cox.blair [EMAIL PROTECTED] wrote:
I have a dynamically populated combobox that I would like to provide
an initial label instead of the first item in the array. It would be
impossible to create an item in the array to show, it would
Hi All,
Have a weird one here...I need to know if it's possible to have an
input field on an alert box? For example, when a user attempts to
remove a person from the list, I have an alert box that confirms their
intent to delete...but part of our process here is that the user must
Hi,
I am using the ModuleManager and IModuleInterface for loading and
unloading Modules in Flex. My question is regarding effective garbage
collecting on unloading a loaded module. I am following the norm in
regards to removing listeners and as many references to the loaded
module as I
You need to use an embedded font in order for the fade effect to work. Simply
create a
new style for your text, then tick the Embed this font check box in the style
properties.
Thanks for the quick reply.
A follow up question.
What if I am ok with the default font (I work in Adobe Air) and I
Hello All,
Is there any way to listen a port in an air application?
Thanks,
// i think it is not possible, but i wanted to ask anyway.
ANIL
You cannot modify the standard Alert class...well you could, but that is not
the solution here.
What you want to do is make your confirmation window with a couple of buttons
and a textinput control... basically your component would be a TitleWindow at
its base and then use the PopUpManager to
Hi Amy, both the column series and the line series use the same
horizontal axis
mx:horizontalAxis
mx:CategoryAxis id=hAxis categoryField=mfg/
/mx:horizontalAxis
mx:series
mx:ColumnSeries id=colPrevSeries
horizontalAxis={hAxis} ...
mx:ColumnSeries id=colCurrSeries
Actually it doesn't really matter what the defautl font is or if it's installed
on the user's system or not. If you want to change the alpha, rotation or, in
general, use any effect on a text component, you have to embed the font.
This is actually a limitation of the Flash Player, not Flex, so
Dimitrios,
Thank you!! That is exactly what I was looking for!!
Best,
Adrian
Dimitrios Gianninas wrote:
You cannot modify the standard Alert class...well you could, but that
is not the solution here.
What you want to do is make your confirmation window with a couple of
buttons and a
--- In flexcoders@yahoogroups.com, chigwell23 [EMAIL PROTECTED]
wrote:
Hi Amy, both the column series and the line series use the same
horizontal axis
mx:horizontalAxis
mx:CategoryAxis id=hAxis categoryField=mfg/
/mx:horizontalAxis
mx:series
mx:ColumnSeries id=colPrevSeries
When creating an annotation on a chart, I noticed that no matter what I
specifically set the width and height to, the annotation is always the
entire size of the chart.
For example, I am creating an annotation that extends Canvas, setting
width = 15, height = 20.
When I trace out the width
--- In flexcoders@yahoogroups.com, Laurent Cozic [EMAIL PROTECTED] wrote:
Actually it doesn't really matter what the defautl font is or if it's
installed on the user's system or not. If you want to change the alpha,
rotation or, in general, use any effect on a text component, you have
to
Alex - looks like the shared code modules worked. I had an error in
the module, although Flex Builder did not display any errors, getting
out, coming back in doing a clean revealed the code problem. Now it
looks like it works!! Thanks again for you help!!! Sorry for the
multiple responses,
There is an alternative not having to embed fonts to create a fade...:
http://blogs.adobe.com/flexdoc/2008/04/alternatives_to_fade_effect_fo_1.html
--- In flexcoders@yahoogroups.com, Laurent Cozic [EMAIL PROTECTED] wrote:
Actually it doesn't really matter what the defautl font is or if
it's
This gave me some problems, changing the selections don't work when I
tried to to this... Anybody else ever tried this successfully in an app?
Thanks,
Patrick
On Thursday 31 Jul 2008, Josh McDonald wrote:
into source control are .actionscriptProperties
This contains the output folder, which could well be developer dependant.
--
Tom Chiverton
This email is sent for and on behalf of Halliwells
OK, let me back up here. First, thanks to those who responded. So I thought
by isolating my problem with an example (heck, I'm not even using Canvas) it
would shed light on why this bug is occuring, but it isn't unfortunately, I'm
more or less confusing the real problem with y'all. Sorry.
I didn't read the other replies, but in general I think it's not a good idea to
add a Flex component to a non-Flex object. You might be able to get it to work
by simulating the framework workflow - for example, by manually calling all the
invalidateXX methods, however it's not a very clean
My app uses a popup window - however the background window shows
through a bit more that I like - how can I fade the background so that
it's still visible bit rather dim while the popup is displayed?
(You can see the app at myflexapps.appspot.com).
I know there are some alpha settings - is that
Nevermind, can i delete this post, the problem was the component was
not drawing... thanks,
Patrick
--- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote:
This gave me some problems, changing the selections don't work when I
tried to to this... Anybody else ever tried this
Hi,
The original question of this long thread was 'Why can't I get the
mx.controls.Image component to display correct in a UIComponent wrapper.
The easy answer to this all is, UIComponent's updateDislayList() method does
NO sizing of it's children. This is what containers do, using whatever
So I have this function which calls another function and returns an
object of type class (which is actually a .swf). Then I return the
found object as Class to something else that called the geticon function.
private function geticon(item:Object):Class
{
var image:Class =
You¹ll have to look to Flash Player 10 for the real answer.
http://gskinner.com/blog/archives/2008/07/unloadandstop_i.html
Rick Winscot
On 8/1/08 10:34 AM, Simon Bailey [EMAIL PROTECTED] wrote:
Hi,
I am using the ModuleManager and IModuleInterface for loading and
unloading
Thanks Rick, I have had a good read of that article already :) you
never know if any one out there has struck oil on FP9 though so I
thought I would throw it out there!
On 1 Aug 2008, at 17:52, Rick Winscot wrote:
You’ll have to look to Flash Player 10 for the real answer.
A SWF isn't a Class so something is already off-track.
Call getQualifiedClassName on image to see what it really is. Or use
ObjectUtil.getClassInfo
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Ervin
Sent: Friday, August
Well, I wouldn't say NEVER. I can put an Image in a UIComponent and
just have to make sure I call setActualSize on the image.
Another rule is Flex is that Navigator children must be Containers,
Container children must be IUIComponents, and UIComponent children can
be anything.
Yet another
Thanks, I'll try that, but what is the non-Flex object you're
referring to? My Sprite classes? If so, it's the other way around,
I'm adding them to a Flex container. If you mean the custom MXML
components, then no, I'm adding them to a Flex component, not the other
way around. Or do you mean
It will be interesting to see how unloadAndStop works in AS3. Most
modules stick because they bring in new CSS type selectors that get
registered with the central StyleManager. If you forcibly punt those
things in FP10, it will be interesting to see if there are any dangling
references that
OK, weird, so why then do children of the UIComponent I added, like
text and sprites, (with graphics drawn in them) appear, but not
Image? Are they rendered in a completely different way?
Thanks,
Jason
--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:
Hi,
The
I have an application based on a AdvancedDataGrid control that makes
use of custom editors and renders to in many ways resemble Excel.
Problem I am having is that if the user begins rapidly entering data
the application will occasionally miss keyboard entry.
Our observation is that in the
I'm within a component.
From here I want to call a function of its parent (the component
referend by the keyword parent)
How do I do that?
Alternatively I could add an eventListener from the parent to one of
the components' son. It's possible?
Thanks.
Is there a way to add code templates and code completions to the
FlexBuilder Flex editor? I haven't been able to find a way. I miss it
dearly from the Java editor.
I have a ByteArray object that's loaded from a local database (SQLite
db) which represents a JPG file. I need to load the ByteArray into a
Bitmap object for eventual loading into a
org.papervision3d.materials.BitmapMaterial object (I want to show the
JPG in a Carousel). I'm having a bit of
Your renderer has to implement IFocusManagerComponent and use setFocus
to pass focus to the internal numericsteppers. It must use the
KEY_FOCUS_CHANGE event to catch TAB and call preventDefault then switch
focus to the other numericstepper.
Maybe I'll find time for an example. This question
Use thicker borders, or popup your own floaters. You're not really
looking for tooltip/errortip behavior here.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cox.blair
Sent: Friday, August 01, 2008 5:18 AM
To: flexcoders@yahoogroups.com
parentDocument.someMethod()
You want to use parentDocument, not parent.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Obregón
Sent: Friday, August 01, 2008 9:15 AM
To:
I think you mentioned scrollbars for that last level, but you didn't
have any in the mockup. In theory you could have so many children in
that last level that you run out of screen space showing them and then
something needs to show scrollbars or indicate that there are things not
visible.
In
Replacing the dataProvider isn't the best option for my particular
application, since requests to add rows will come in at random
intervals, and I don't want to lose selection state and such.
So I've written the code such that, if two add requests happen within
300ms of each other, I call
flash.text.TextField has a default size so some text will show.
flash.display.Sprite is a rubberband and gets its size from the graphics
and drawn in it and child Sprites and Shapes placed in it
Flex components have a completely different model (which is a more
expected model, IMHO) and have all
Should be:
private var CarouselLoader:Loader;
...
var tmpByteArray:ByteArray = myDBObject.thumb;
CarouselLoader = new Loader();
CarouselLoader.contentLoaderInfo.addEventListener(
Event.COMPLETE,bitmapLoaded);
CarouselLoader.loadBytes(tmpByteArray);
...
private function
Huh. I just noticed that when I comment out the line that calls
enableAutoUpdate(), auto-update still happens. This tells me I'm
doing something wrong. Any ideas?
--- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote:
Replacing the dataProvider isn't the best option for my
Thanks for everybody's help. I will pursue the possibility that there
is _accessible_ info in the chart object that the line series can use
to learn about the column series. In the meantime client says just
draw a line segment with the percentage value displayed, so I say no
problem thinking that
Sorry for cluttering the group...
I found one more detail. If, instead of disabling auto-update on the
root node, I do it on the first (and currently only) child node:
gridData[0].children.disableAutoUpdate();
and don't re-enable updates, rows still get added, but only up to the
limit of the
You can draw those graphics in a UIComponent so I would
have grouphandle subclass UIComponent and not Sprite.
Thanks Alex, I tried that, but still no joy, AND the graphics don't render now
either for some strange reason. All I did is change my previously posted code
to: public class
Hi,
Or do you mean Image is a Flex component and not good to
add to a custom sprite?
Yes that's what I meant. By non-Flex I meant an object that is not part of
the mx.* package, i.e. not part of the Flex Framework. A Sprite is a native
Flash object and doesn't know how to display or size a
Your GroupHandle has no measure method so it will be given a size of 0,0
unless you specify a width/height on the GroupHandle
Please read over the docs on custom component development. There is a
basic recipe you should be following.
From:
SOLVED!
Laurent, thank you! That was it. I switched to the Flash
framework's BitmapAsset instead of the Flex framework's Image class,
and it shows up just fine! Wow, so you can't use Image inside
Sprite. Never would have guessed that one!
So I learned that you have to be careful how you
--- In flexcoders@yahoogroups.com, Jason [EMAIL PROTECTED] wrote:
OK, weird, so why then do children of the UIComponent I added, like
text and sprites, (with graphics drawn in them) appear, but not
Image? Are they rendered in a completely different way?
First, you're extending Sprite, so
Thanks Amy and Alex, as you can see, I still have a lot of reading to
do on writing custom .as based components in Flex. Thanks!
Jason
I ran getQualifiedClassName and it came back with:
custom__embed_css_assets_images_bigthing_swf_893847107
which is the directory path to the .swf object (image composed in
flash and exported to swf). In this case the bigthing.swf file.
The issue isn't what image is it is how can I cast it or
Ok - now dig this - I'm attempting to connect to a video stream from
limelight in flex. I get a Connection.Success but no video shows up,
and no MetaData comes through.
I attempt to the same url with our badly written AS2 Flash file (using
FSConnection) and I get a video stream showing up
Yup that did it - thanks very much Alex.
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
Should be:
private var CarouselLoader:Loader;
...
var tmpByteArray:ByteArray = myDBObject.thumb;
CarouselLoader = new Loader();
I was this days extending the component to do the same Excel funcionality.
I conclude that using itemRenderers that extends UIComponent ends
downgrading
the performance of the grid. So I recomend to extend
AdvancedDataGridItemRenderer
although probably you'll have to sacrifice all the
Ok, I've learned a little more. When you re-enable auto updates,
ListCollectionView.handlePendingUpdates() is called. This function
optimizes row-update operations, combining them into a single event,
but row-add operations get handled one by one. So the adds are no
more efficient with
OK, that's a Class, not a display object. Typically you pass that into
an mx:Image as the source and it will display it and you can manipulate
it from there.
You can also create a new instance of it, then it will be a
DisplayObject, actually a subclass of MovieClipLoader, IIRC
I think it will be more efficient to simply reset the source, saving
away the selectedIndex first and restoring it (after updating if
necessary) later.
It might be possible to create your own IList implementation that
handles addItemsAt and sends the appropriate change event, but I'm not
sure
I am following this tutorial
http://kanuwadhwa.wordpress.com/2007/09/21/customize-combobox/#comment-1366
The only thing I have changed is i removed his function and am calling
my own (mentioned before and again here), which brings back a class.
private function geticon(item:Object):Class
Actually... I like to install Sven¹ with my apps. He is a tall Swedish
brute with a club and a pair of brass knuckles... any time the user
shouldn¹t do something in the app... Sven is there to enforce the policy.
Alternatively, you can set Application.application.enabled=false; and make
sure
I think he picked icons that were the right size. I don't see any code
that sizes the icons. You would need to add sizing code to the
tutorial. The article discussion seems to discuss the null problem
you're seeing as well.
A SWF is an inefficient way to embed a simple graphic. Pulling
Eww, eh? Well, gee, Tom, I hope I didn't spoil your breakfast or anything ;)
I think both your refactorings are good ones. I was definitely in how do we
get this working mode, not how do we get this as elegantly written as
possible mode: i.e. I was in code-writing not refactoring mode. So I
Hi
Is mx:rendererProviders tag inside mx:AdvancedDatagrid can be used with
HierarchicalData only?
I don't have HierarchicalData and i want to show the totals in the grid. I
have the xml in the format. But if i use the piece of code at bottom end then
render is never executed.
Can anybody
Replacing the dataProvider might not be more efficient if a lot of
rows are added all at once, to a table that already has a lot of
rows. Then you end up copying much more data around. Though
admittedly, that would be a very rare occurrence in the project I'm
working on.
The other problem is
I don't recommend writing complicated binding expressions, because you
have to use lt; in place of , gt; in place of , and amp; in place
of .
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sid
Keep in mind that swapping/concating Arrays doesn't copy data around as the
collections only store references to objects...
On 8/1/08, whatabrain [EMAIL PROTECTED] wrote:
Replacing the dataProvider might not be more efficient if a lot of
rows are added all at once, to a table that already
What is the name of the file? I hope it's not mic.mxml ... That would be the
name of the class generated by mxmlc and that would conflict with your
variable name.
Hello,
how can I send a text message from AIR/Flex application.
What kind of set up do I need?
Thanks
Sorry-- forgot to mention: I want to send the text
message to a cell phone from AIR/Flex Application
Thanks...
Try the Ribbit API.
developer.ribbit.com
On Aug 1, 2008, at 6:22 PM, hworke wrote:
Sorry-- forgot to mention: I want to send the text
message to a cell phone from AIR/Flex Application
Thanks...
You are going to need to have an SMS Gateway at your disposal. With such a
tool of devastation you can send texts until your enemies tremble!
MUWHAHHAAA.
Ahem. There are a lot of providers out there... But it would be a good idea
to get a base on bridging the gap between http and sms with a
95 matches
Mail list logo