It's not just RemoteObject -
TRACE doesn't even work - which means, the code isn't even
executing -
Is there any reason, why the code isn't executing
properly?
Thanks again,
Mike
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt
ChotinSent: Friday, June
Ok iknow what the problem is, Is not errorTipBottom, but errorTipAbove
and errorTipBelow.
But the problem is that it still on right side of my textfield and not
on above or below. the only thing that changed is the fact that the
arrow is now pointing down or up.
Somebody?
--- In
Hi,
I'm doing something really simple,
Calling an HTTPservice and showing it in a grid. The code for the
mxml is:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
creationComplete=myService.send();
mx:HTTPService id=myService
Hi,
If i change the result format from a web service as XML then do data binding of the result to a data grid, i dont get the expected results.
I get numerous column headers which i cant read, some of them are getChildNode, NextChild, something like that.
The webservice result what i get
Please forgive me if this is a simplistic problem, but here goes...
I have a Tree that is populated via a HTTPService call that returns
XML containing a 'label' attribute and a 'data' attribute.
I need the 'data' attribute to act as an identifier for a subsiquent
and different HTTPService
There is a great write-up by Jack Minster
on Flex Authority. Check out:
http://www.flexauthority.com/articlesArchive/FlexCF7Merge.cfm
Jeff
Founder
Flex Authority
http://www.flexauthority.com
We are actively seeking contributors for
the site. Have a sample that you want to
hi there, a rookie needs some help ;)
My Goal is to create custom Components dynamicly. Its no problem to
generate components with createChild(), but i dont know how to adress
custom components and what has to be imported in actionscript first.
tnx for your help..
Yahoo! Groups Links
*
Hey all,
Our application uses a HTTPService to comunicate with the server
back-end. Now I want to use SSL to secure the communication.
I have configured my iis tomcat server to use SSL. The flex
application is served correct using https.
In the 'Developing Flex Applications' documentation it
Hi,
I've a problem, after removing and adding components at runtime. After
that, I can't see the content of TextInput-Fields, ...
I wrote a short example:
components.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns=*
mx:Script
Hi,
If your component class extends from mx.core.View or any of its
subclasses (container class) like Box, HBox, VBox etc, your component
would have this method automatically.
Following is custom mxml component, which extends form Hbox and you can
call createChild(..) on its intstances. For
ah, easier than i thought, tnx :)
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to:
Hi,
This is a known issue. It has been discussed before also, I guess Scott
Barnes brought up similar issue.
The workaround suggested was to have a little delay between
destroyChild(..) and createChild(..) operations. This can be done using:
- doLater(..)
- setInterval(..)
doLater(..) is clean
Ive tried this in flash, and the communication was not secure.
You could use a packet sniffer to check - http://www.ethereal.com/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Behalf Of dd_trilobyte
Sent: 17 June 2005 12:49
To: flexcoders@yahoogroups.com
Hi,
it works fine. But I have a new problem with this solution.
In my real application I need to save the created component in a varible.
newComp=myVBox.createChild(component_1, comp,{firstName: Geir,
lastName: Frigard})
I found no way to get the return value of a function, which is called
I believe you need to do the latter:
https://localhost/server.php;
The protocol attribute is used to decide which proxy URL to use (http or
https). If you're not using the proxy you should get a compile time
warning that the protocol attribute is only for when useProxy=true
(the default).
Kerry,
Can you please provide the test-case where you found that communication
was not secure? It would help us to fill any loop holes.
FYI! Macromedia Flash Player uses the browsers SSL capabilities for
secure communication. So if you found that packets were not secure, I am
sure that applies
Hi,
I am sure, you can do that. You can refactor your code by breaking
AddComp1(..) function in two separate functions. First function would
remove the at 0 and invoke the other function using doLater(..); Other
function would add a new child and save the reference in some global
variable.
For
How can I get the sequence diagram for cairngorm 0.99? Thanks
in advance
Shahn
It is our company policy not to accept email of any data controlled by
the International Traffic in Arms Regulations (ITAR). Please contact our
Security Officer, Alexander Houtzeel, for instructions and
In my experience, Flex prefers XML to use the label attribute, i.e.,
props
prop label=java.vendor value=Sun Microsystems Inc. /
prop ... /
/props
if you want Flex to be able to automatically parse the XML. If you
can't change the XML source, you may have to manually parse it using
code:
Hi
everybody,
I need your help
tomanage myincapacity of usingcorrectly the
repeater.
In my repeater I
define an TextInput , a List , aButton and a CheckBox.
I would like to
clear the text property of my TextInput by clicking the corresponding Button and
to make visible my List by
Hi All,
I have a situation with TabNavigator - where in before user navigate
to next tab I have to do some validations on data they entered and if no
errors then only I let the user go to next tab. In order to achieve this I
need to trap some event before change event can occure. From my
Hello everybody!
Does anyone have an example using Link control as a
CellRenderer?
Thanks for your help.
-
Isidro.
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email
Hello everybody!
Does anyone have an example using Link control as a
CellRenderer?
Thanks for your help.
-
Isidro.
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email
I'm rendering a chart that displays data over a period of time
(trend). Each day equals a 'tick' on the horz axis and the
corresponding date displays as the label.
The problem - when going past '90' days or so, the labels become
unreadable because they're too small and stacked so closely
I thought I had resolved the problem by creating classes in
ActionScript where the collections are specifically designed as
Arrays. The problem seems to be how Flex determines if an object is
an array or not when it reads the message from the web service.
Depending on how I set it up, the
Hi, everybody!
I traed to build a CellRenderer using Link control, for use
in a DataGrid, but i dont know how to broadcast the click event of the
Link, and to be listened in the app using the DataGrid. In other words, I
need to catch the click event of the renderer, inside my app.
I've got a line chart of daily data starting in Jan 2004 - there are
several series and the data displays very well.
I'm having real problems with the horizontal axis labels - they are
displaying way way too small and nothing I do seems to address it.
I have a label function which allows only
Not quite, but close?
http://www.jessewarden.com/archives/2005/01/datagrid_hyperl.html
- Original Message -
From: isidrolv
To: flexcoders@yahoogroups.com
Sent: Friday, June 17, 2005 12:31 PM
Subject: [flexcoders] Link control as a CellRenderer
Hello
everybody!
Does anyone
Hi Guyz...
Can anyone help me out?
I have two buttons in my panel...add and remove.On clicking the add the
combobox(editable) components are added at runtime to the panel and on
cliking the remove button the components are removed.I have achieved
this functionality..
I would like to store
Hey-
I have a DataGrid component that contains
a date that I am formatting using a DateFormatter. However, if a user clicks on
the column header, it sorts incorrectly. I suspect it is sorting on the raw
data and not the formatted data (the formatted data is mm/dd/ so
alphabetical
I have a data grid that is using a check boc cellrender in on of the
colums. I need to know how to change the color of the text in that row
when the check box is checked.
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* To
In case anyone needs an example, it was amazingly simple to do; hooking up
Flex' RemoteObject to AMFPHP. Flex rules.
Example files here:
http://www.jessewarden.com/archives/2005/06/flash_flex_amfp.html
--JesterXL
Yahoo! Groups Links
* To visit your group on the web, go to:
I have a data grid that is using a check boc cellrender in on of the
colums. I need to know how to change the color of the text in that row
when the check box is checked.
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* To
I would suggest changing your dataProvider to
'{myService.result.props.prop}'
You might also want to consider mx:List for your component
instead of mx:DataGrid. the component is probably better for single column
data like this. (datagrid's are actually made of multiple List
components.)
Dude, my emails are slow as nuts to this
list...
*ahem*
Try this for your click event:
listOwner.dispatchEvent({type: "hyperlinkClick",
target: listOwner,cell: this, text: cellData});
That way, if anyone subscribes to the DataGrid's
"hyperlinkClick" event, they'll get that event, with
You cant use currentIndex or
currentItem in an event handler because they only exist while the repeater is
rendering.
The sample app below uses getChildAt and
getRepeater item to modify a controls visibility and the underlying
dataProvider. There may be a better way, but this works.
ya basically... flex deseirializes the soap objects an untyped AS2 Object tree.
load the tree manually into you class heirachy with a load function in your as2 objects
here's an example of what i mean... just look @ the load func
might want to ignore all the event code you probably won't
Rip out everything but the creationComplete
handler with the trace. See what happens.
Tracy
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson
Sent: Friday, June 17, 2005 2:47
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Code
I am trying to set up a Datagrid that uses a custom cell renderer to
display an image based on the value of a property for the object bound
to each row of the grid. I have the image working fine, however I
can't seem to affect the horizontal alignment of the cell. If I use
textAlign on the
I have a data grid that is a component for another page. In one of
the columns in the data grid I am providing a check box. The plan is
for the user to click the check box and have the text in that row
turn red. How to get that event to happen and is the fact that the
data grid is component
I have a couple of cases where I would like to modify the default components
to display differently, beyond what I can do in the CSS. I would like to
avoid building all new components but I will if I have to.
The first is that I would like to create TextInputs that are required but do
not show
Jitesh,
There's a solution that achieves this in the book Developing Rich Clients
with Macromedia Flex. If you're lucky, it's one of the chapters that
appeared on www.macromedia.com/devnet/flex, if you're not lucky, you'll need
to grab a copy of the book.
Best,
Steven
--
Steven Webster
There are several documents on the Flex Documentation page that describe
this process:
http://www.macromedia.com/support/documentation/en/flex/1_5/createcompon
ents/index.html
http://www.macromedia.com/devnet/flex/articles/creating_comp.html
Stephen
-Original Message-
From:
Here's the way to do it using instanceIndex.
The ideas are:
1. Each repeated instance of a component has
an instanceIndex property: 0, 1, 2, etc. So when one of the buttons is clicked,
you can find out that its index is, say, 1.
2. The id assigned to a repeated component
becomes
How do you get fine grained control in MXML arrays? Like, how do I
represent this in MXML?
var type_array:Array = [];
type_array.push({label: d4, data: 4});
type_array.push({label: d6, data: 6});
type_array.push({label: d8, data: 8});
type_array.push({label: d10, data: 10});
mx:Array
mx:Object
labeld4/label
data4/data
/mx:Object
/mx:Array
Alternatively:
mx:Array
mx:Object label=d4
data="" /
/mx:Array
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Friday, June 17, 2005
Hi,
You can nest tags in custom components. That should not be problem. Look
at the following code, its modified version of your code.
##StatusImageCellRenderer.mxml##
?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; marginBottom=0
marginLeft=0
Yes, the idea is that the HTTPService returns HTTP data to Flex
without reloading of the current page. You need to write a handler
for the return of the HTTPService, and you should get a String
containing the output of your S.O.println(). But that redirect does
nothing for Flex. You can
It seems I can use the meta-tags used for ActionScript components in MXML?\
[Event(clear)]
I've put that everywhere, and Flex always refuses to compile it. Must my
MXML component be fully AS?
--JesterXL
Yahoo! Groups Links
* To visit your group on the web, go to:
Hi Jesse,
No you can do it in MXML components also using Metadata tag. For
example:
##MyComponent.mxml##
mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Metadata
[Event(clear)]
/mx:Metadata
!-- Rest of code //--
/mx:VBox
-abdul
Dar dar... thanks, btw!
- Original Message -
From: Abdul Qabiz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, June 17, 2005 4:11 PM
Subject: RE: [flexcoders] Emitting Events in MXML Components
Hi Jesse,
No you can do it in MXML components also using Metadata tag. For
Awe man... just tested and it works like a charm; this binding stuff is too
easy. I guess I owe Roger a beer now...!
- Original Message -
From: Abdul Qabiz [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, June 17, 2005 4:11 PM
Subject: RE: [flexcoders] Emitting Events in
Hi,
Mike Chembers recently wrote some code to do that. Check
out following link,
http://weblogs.macromedia.com/mesh/archives/2005/04/sorting_date_fi.cfm
hope that helps...
-abdul
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Drew
FalkmanSent: Friday, June
Hehe..And would this work?var theLabel:String = "d4";var theData:Number = 4;var theBoolean:Boolean = true;mx:Array mx:Object label={String(theLabel)} data="" flag="{Boolean(theBoolean)}" //mx:ArrayAnd if it doesn't work, does that mean that Flex always recognize 'true' as a Boolean and not as a
You may want to try this instead. I didnt
test this, but I think I have used it before.
mx:Array
mx:Object
mx:Stringd4/mx:String
mx:Numberd4/mx:Number
mx:Booleand4/mx:Boolean
/mx:Object
/mx:Array
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Wait a sec, for data binding all beers go
to me I think! Roger gets beer for shared libraries and the compiler actually
finding your classes.
J
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Friday, June 17, 2005
That is what JesterXL tried, and it didn't work:mx:Array mx:Object mx:Stringd4/mx:String mx:Number4/mx:Number /mx:Object /mx:ArrayOp 17-jun-2005, om 22:32 heeft Mercer, Dustin het volgende geschreven:You may want to try this instead. I didnt test this, but I think I have used it
I guess, that intelligent guess also does the data type
check. For example, if compiler finds flag is Boolean type it would look for
possible values, i.e. true or false. If compiler
doesn't find it, it would throw compile time error
If flag is string type, it would take any assigned
You can do that, but those are unamed properties,
hence my question about how to name them. For instance, what if you need
to get the to boolean; how do you access it? A for in loop utilizing
instanceof to determine if it's a Boolean? What if I had more than
one?
- Original Message
Oops, that wont work at all L I am not sure if this
will work either, but it doesnt throw any compiler errors (but neither
did the wrong one) . There are other ways also depending on what you
are trying to do. Are you trying to avoid AS altogether or just trying the
different options?
Another way is to create an AS class to
encapsulate the repeating object Like so:
Class YourItem
{
public var label : String;
public var data : Number;
public var bool : Boolean;
public function YourItem()
{
//blank constructor
}
}
Add xmlns=*
mx:Array
[snip]
mx:Array
mx:Object
mx:Stringd4/mx:String
mx:Numberd4/mx:Number
mx:Booleand4/mx:Boolean
/mx:Object
/mx:Array
[/snip]
that works, a array with an object would be
created with three properties with these names:
String, Boolean and Number with values d4, d4 and d4
Trying to avoid AS, hehe!
- Original Message -
From: Mercer, Dustin
To: flexcoders@yahoogroups.com
Sent: Friday, June 17, 2005 4:39 PM
Subject: RE: [flexcoders] AS Array vs. MXML Array
Oops, that won?t work
at all L I am not sure if
this will work either, but it doesn?t throw
There's been a long thread about the MXML representation of this.
But I want to point out that, in ActionScript, all those pushes are
inefficient. You should just write
var type_array:Array =
[
{ label: d4, data: 4 },
{ label: d6, data: 6 },
...
];
- Gordon
-Original
Because mx:String under an object
makes it a property. You cannot have to properties on an object with the same
name.
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thijs Triemstra | Collab
Sent: Friday, June 17, 2005 1:51
PM
To:
i try call pop via : var popup12 = mx.managers.PopUpManager.createPopUp(_root,frm_matriculas, modal, {deferred: true});all ok !But this way var popup12 = mx.managers.PopUpManager.createPopUp
(_root,frm_matriculas, modal, {deferred: true});function llama_popup (pop_1:object ){ var popup12 =
You should never need to use backingObject.
You want to use:
treeData=node.getData();
and for label:
sLabel = node.getProperty(label);
Remember that data is an object and can contain as much data as you
want:
treenodeNew = treenodeParent.addTreeNode(myNewNodeLabel,
When you use XML, you must use the XML
class methods to nav to a node, such as childNodes[0].childNodes[1], and to
specify the array for the dataProvider (childNodes).
You cannot dot down., like
node1.node2.node3.
Also, except in special circumstances, you
cannot use columnName, or
Thanks JesterXL, that works great,
is just what i need. Sometimes i need to open a new explorer window, another I need
to execute an AS action or MXML , other I need to open an html page inside IFrame
component hyperlinkClick event is the key great!! Thanks a
lot!
Isidro
Ok. Now I feel a bit sheepish. It states in the Action Script Docs for
FormItem that 'required' property just shows or hides the asterix(star)
in the UI. Nothing more. I got myself totally confused by looking at
the Flex Store example that sneaks in their own validator,
RequiredFieldValidator.
When you do binding the type will be
maintained. So all of those will be of the type you specified.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thijs Triemstra | Collab
Sent: Friday, June 17, 2005 1:26
PM
To:
It does support required but it doesnt
seem to be raising an error if you dont type in the field and call
isValid directly. If you do type in the field, backspace, and tab out you will
see the error. Well file for it not working automatically on the
isValid call.
Matt
From:
Actually I lied since I was calling
isValid incorrectly. Just setting required to true on the StringValidator should
be fine. And in fact required is set to true by default
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
You need to make sure that frm_matriculas
is still linked into your application. If Flex does not see a reference to
that class it will not put it in the SWF for you.
Add something like this line to your
Application:
var dependency : frm_matriculas;
HTH,
Matt
From:
OK, I looked into the code. Looks like we
force it to the right automatically if theres enough room. If the tip
would be off the stage to the right then we either go up or down. This isnt
configurable in 1.5. You should file an enhancement request at http://www.macromedia.com/go/wish for
Youre going to need to write a cell
renderer for the columns where you want the text to turn red. Watch the property
of the object with the checkbox (deleterx) and if it is set turn your color
red.
Your cell renderer could be something like
this maybe:
mx:Label
mx:Script
Function
Wow! - Tracy, that actually worked!
-I did as you suggested, and removed everything exceptmy
TitleWindow tags, and an ActionScript function - that sends Trace() text
to my debug window (triggered by the creationComplete
event).
So, where do you think my previous code is
failing?There is
Try putting the RemoteObject outside the
popup but leave the other code in. Start there. Weve seen RemoteObject
have problems before.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mike Anderson
Sent: Friday, June 17, 2005 7:45
PM
To:
Clint,
Your solution was very useful. This resolves the issue at least
until Flex learns to deserialize xml to strongly typed classes.
Thanks very much!!
Cliff
--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote:
ya basically... flex deseirializes the soap objects an
79 matches
Mail list logo