/index.cfm?event=showdetail\
spostId=2041productId=2loc=en_US
Oscar Cortes
http://www.holaflex.com http://www.holaflex.com
--- In flexcoders@yahoogroups.com, lyonjudah [EMAIL PROTECTED] wrote:
Hello,
I need to be able to draw a horizontal line (threshold) starting from
a specific value on the Y
I added an extra argument to a ExternalInterface called that was
already working. This argument is an object with one of its
properties being XML.
After I added the object, the JS function was not being called
anymore. After a little debugging, it looks like you cannot send XML
or a
Use labelField or labelFunction. For example, if you arrray
contains objects like oItem.Name, you can do something like:
labelField=Name
if your objects are more complex use labelFunction
Regards,
Oscar
http://www.holaflex.com
--- In flexcoders@yahoogroups.com, Phill B [EMAIL
It sounds like getChildByName is what you need:
yourContainer.getChildByName(panel1)
Regards,
Oscar
http://www.holaflex.com http://www.holaflex.com
--- In flexcoders@yahoogroups.com, gjessup1 [EMAIL PROTECTED] wrote:
I am creating a UI that gets configured from a
FB 3 has multiple SDK support, so you can add your specific version
under Flex/Installed Flex SDK in Preferences. Click Add and browse for
the SDK's location. Then you can set this SDK as your default SDK or
select it when you create a new Flex project.
Regards,
Oscar
Look at the MapCache example in this page :
http://labs.adobe.com/technologies/air/samples/
http://labs.adobe.com/technologies/air/samples/
I think it has that functionality
Regards,
Oscar
http://www.holaflex.com http://www.holaflex.com
--- In flexcoders@yahoogroups.com,
Try something like this:
mx:DateField upSkin=mx.skins.ProgrammaticSkin
overSkin=mx.skins.ProgrammaticSkin/
The 'empty' skins will be applied to the internal downArrowButton in
the ComboBase class use for that calendar button.
Regards,
Oscar
http://www.holaflex.com
--- In
=2041productId=2loc=en_US
Oscar Cortes
http://www.holaflex.com
--- In flexcoders@yahoogroups.com, Scott Stroz [EMAIL PROTECTED] wrote:
Hi.
I am trying to create a LineChart in Flex that has one series and a
'baseline' (I doubt I am using the correct term there), where the
baseline
would
You can invoke JavaScript with navigateToURL(), so if you know the
JavaScript needed to set up a new window like the one you need, you
should be all set.
See these two links:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel\
If you really need this you could access the internal textField and
use the htmlText property using mx_internal. Of course, this could
not work with future versions of the Flex SDK.
Example:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
See if this entry that I posted while ago on the Flex cookbook helps
you...
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails\
postId=2021productId=2
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetail\
spostId=2021productId=2
Try adding validateNow() just before calling expandChildrenOf
myTree.validateNow();
Oscar Cortes
http://holaflex.ocortes.com http://holaflex.ocortes.com
--- In flexcoders@yahoogroups.com, joshua gatcke [EMAIL PROTECTED] wrote:
Does anyone know how
Try with HttpService, there are plenty of examples in the help.
--- In flexcoders@yahoogroups.com, Vinoth [EMAIL PROTECTED] wrote:
Please give me sample code
-Vinoth
--- In flexcoders@yahoogroups.com, shaun etherton shaun@ wrote:
Hi,
Vinoth Babu wrote:
Hi All,
I
You need a subscription to http://www.safaribooks.com
You need the autoLayout property set to true. If you check the
help it reads:
The Zoom effect does not work when the autoLayout property is false
Hi Mike,
The SWFLoader can help to load images or SWF into your Flex
apps. SWFLoader.content is a reference to whatever you have loaded in
the SWFLoader, so the methods and properties that you can use depend of
what it is avaible in the SWF or image that you are loading. On the
What it means is that in addition to importing the class, you need to
instate the FileReference class. Something like ...
var myFM:FileReference = new FileReference();
myFM.browse(new Array());
|-+-
| | |
| |
What about something like this?
[Bindable]
public class ShopModelLocator implements ModelLocator
{
private static var modelLocator : ShopModelLocator;
public static function getInstance() : ShopModelLocator
{
if ( modelLocator == null )
modelLocator = new ShopModelLocator();
return
I have something similar working. Try something like this .
private function fileBrowse():void {
var imagesFilter:FileFilter = new FileFilter(Images, *.jpg;*.jpeg);
configureListeners(imageFileRef);
imageName.text = ;
imageFileRef.browse([imagesFilter]);
}
private
It seems that you need to add listeners for each file individually. Take a
look at the example in here
http://livedocs.macromedia.com/flex/2/langref/flash/net/FileReferenceList.html
|-+-
| | |
| | Shannon
Have you tried the prompt property in the Combo Box?
|-+-
| | |
| | yaagcur |
| | [EMAIL PROTECTED] |
| | Sent by: |
| |
Try this link that appears in www.flex.org
http://www.adobe.com/go/flex_documentation_zip
|-+-
| | |
| | Weyert de Boer |
| | [EMAIL PROTECTED]|
| | Sent by:
Check this out
http://www.macromedia.com/devnet/flex/articles/fp8_features.html
|-+-
| | |
| | Valy Sivec |
| | [EMAIL PROTECTED]|
| | Sent by: |
|
I think this is known problem with Flex 1.5, check the FAQ list
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt.
On the other hand, I ran once into this and I actually created AS classes
for a couple of the functions that I had in my mxml file. Another option
is what your
I know you can use theJSP tag library shipped with Flex to render Flex in a
JSP page but I am not sure about php, probably not.
|-+-
| | |
| | Ravindra Suthar |
| | [EMAIL PROTECTED]|
| |
There was a getIsOpen method in 1.5 to test if a node was open. How can we
this in F2B3?
Thanks
---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is
Hi Tracy,
The Tree component has now a dataDescriptor which you can implement with
your own methods if needed. For example:
mx:Tree id=myTree x=10 y=10 width=273 height=559
dataProvider={something}
dataDescriptor={new MyCustomTreeDataDescriptor()}
I would add that this can be seen in terms of portability, performance and
how much knowledge exist in your company in certain technology. Java will
give the greatest portability, it would run seemly in Windows shops as in
Unix shops. The same is true for ColdFusion and PHP. However, this does
You need to import the Button class, and then you can try something like
this:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=*
layout=vertical
mx:Script
![CDATA[
import mx.events.ItemClickEvent;
import mx.events.ListEvent;
// Add this
Ciao Federico,
This example worked fine for me. I am using Eclispe though. Is it
something missing in your Flex installation?
|-+-
| | |
| | federico.ferri |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/21/2006 10:21 AM |
Try changing
public function onTestEvent()
to
public function onTestEvent(event:Event)
You should add event:Event in your listener.
|-+-
| | |
| | Andrea Varga |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/20/2006
Another alternative would be something like this.,...
1. Add Metadata tag in your component with the name of your event.
mx:Metadata
[Event(name=login, type=flash.events.Event)]
/mx:Metadata
2. Catch that event in your component
Login x=333 y=56 login=handleTestEvent(event)/
3. Add AS to
I am getting the same error that Andriy reports below. However, the uploads
works fine. Carson, where can I find more information about Flash Player
sending the request twice. I am assuming that this is a known problem.
I found others forums where they talk about this error and some of them
Has anyone have any UML diagrams examples that show the interaction among
mxml components, action script classes and Java?
---
This e-mail message (including attachments, if any) is intended for the use
of the individual or
Have you tried using dataProvider.replaceItemAt()? In this way, you don't
need to refresh the whole grid.
|-+-
| | |
| | RAMOS CARDONA JESUS |
| | SALVADOR |
| | [EMAIL
Try fill-colors:
Example:
fill-colors: #00, #ff;
You can also check the Style Explorer for more attributes.
http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html
|-+--
| | |
|
In addition, you might need labelField or labelFunction.
|-+-
| | |
| | Doug Lowder |
| | [EMAIL PROTECTED] |
| | Sent by: |
| |
Thanks Gordon, we would expect the same but you never are able to get the
Word document. In reality, our application is making RemoteCalls. Last
night, I used a packet sniffer and I could see that the request started by
getURL is stopped when results start getting back from one of the Remote
We are having some issues when calling getURL while other processes are
running ( components still being loaded, or RemoteCall returning data). We
isolated the problem in the application below. Click on Test without
checking off the delay button, and a Word document is downloaded from the
URL.
Could anyone try this code? Enter a number of 16 characters for
example:123456789012345. Click the button to get the format... you get $1.
Anything below 15 characters works fine.
am I missing something? or is this a bug?
Thanks
?xml version=1.0 encoding=utf-8?
mx:Application
What about something like ...
mx:VBox visible={Boolean(someCombo.selectedIndex != 0 *
someOtherCombo.selectedIndex != 0)}
|-+-
| | |
| | Alberto Albericio |
| | Salvador |
|
This worked for me .using Label Function
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
initialize=myInit()
mx:Script
![CDATA[
var arr:Array;
public function myInit()
{
arr = new Array()
arr[0] = new Object()
arr[0].j=10;
arr[0].k=new Object()
We are doing some searches using a RemoteObject and displaying the result
on a grid. We noticed that when getting more than 2000 records aprox, it
was taking some time( between 10 and 15 seconds) before they were
displayed . At the beginning we thought that it was the Grid which was
slowing
I guess we are confused because the Onresult should only run when results
are available. We added a timer to see when they are available, and they
are in the first 2 or 3 seconds of the 10-15 that it actually takes to see
the clock go away. If we ask for the length of the result, it is actually
I tried the example in the Macromedia website, but the tree rows
disappeared as I move the mouse over them. Does anyone has tried to make
this work?
http://www.macromedia.com/support/documentation/en/flex/1/cellrenderers/cellrenderers13.html
Thanks,
How can I change the font color or font style in a single Tree node in a
Tree? I am adding new tree nodes in a tree, and somehow I want a visual
indication that they are new.
Any ideas?
---
This e-mail message (including
You can do something like
var node:Object = new Object();
node.label = LABELTEST;
node.data = DATATEST;
node.url = url
node.index =1;
node.state =VI;
var root = treeDP.addTreeNode(node);
You can later access the values using the getProperty method.
I am sending back a AS VO to Java. Originally, I got the AS VO populated
from Java. I made some changes and now I want to send it back, but I am
getting this error message.
flashgateway.GatewayException: Error occurred while attempting to
convert an input arguments type.
What does it
I have the SimpleSquare.as, I am trying to embed a symbol it is there in
a component.
I get this error message:
Unresolved symbol, SimpleSquare, required by
__Packages.commoncomp.Tree2
The thing is that it works in one Flex environment and it does not a
different one.
I am afraid I am not quite following your idea. SimpleSquare.as is a
programmatic skin file. Something like
class SimpleSquare extends UIObject
{
static var symbolName:String = SimpleSquare;
..
...
..
it is nothing fancy. I compiled it and got a SimpleSquare.swc, which is
I actually found out what was happening. I assigned the selectedNode to two
different local variables, then delete the child nodes from one of them
thinking that it would be independent from the other one. This was actually
not true since although I assigned the node to two different variables
How can I hide the line that shows when doing Drag and Drop ? My drop
target is a Tree, but we don't want to show the line.
Thanks
---
This e-mail message (including attachments, if any) is intended for the use
of the
I created a Tree using something like treeDP= new TreeNode(), and adding
branches and items. I have some functionality that inserts new nodes to an
existent branch. Sometimes, the AddTreeNode works fine and sometimes it
doesn't add a node but instead replaces the top one. I am using this
I am doing some DragDrop between trees and I need to validate that an
existing node does not exist more than once in a Tree branch. I am able to
loop in the branch where I am dropping the node and then compare with the
dropped node. However the statement
if ( NodeinBranch == receiveNode)
We are reading a collection of Java Value Objects with one of the
attributes being of java.sql.Timestamp datatype. How can I map this to
ActionScript?
We already have a ActionScript VO mapped to the Java VO using
object.RegisterClass, it seems that it is reading the value OK but when
send the
Omar,
Are you using ColdFusion with Flex? Check out the gateway-config.xml file
and check the serialization section. I had the same problem, and you
actually have different options.
!-- Determines how complex objects/generic class data types are to
be
handled by the
If you have the file and the same options it should. We change
serialization to 'Flex' and lowercase-keys to False. This actually
assigns the name according to the getter in you Java class. Let's say for
example you have an attribute called myFullName but you have a getter for
this attribute
If the second panel has not been open yet then it has not been created thus
the first panel would not have a way to reach it. Is this the case?
I think you can use some binding here. However, I am not sure if you are
using the button in the first panel for testing, or for calling some more
logic. In any case you can trying binding a control in the first panel with
the second. For example:
If you have
Panel1
---
Thanks Matt, I might give this a try. I ended up using something like this
which also works:
For (var i:Number=0; I dg.rowcount; i++)
{
For (var j:Number=0; I dg.columns.length; j++)
{
myHTML += dg.rows[i].cells[j].value;
}
}
As I said, this works and makes
Now that I am able to read the DataGrid displayed values, I am facing
another problem. When I try to use my new class, the one that extended the
DataGrid ( GridHTML.as), I am getting this error message:
Don't know how to parse element
http://www.macromedia.com/2003/mxml:columns;. It is not a
I just noticed that this post never made it to the list ..
- Forwarded by Oscar Cortes/ServiceCenter/US/SunLife on 10/12/2005
02:01 PM
I just noticed that this post never made it to the list ..
- Forwarded by Oscar Cortes/ServiceCenter/US/SunLife on 10/12/2005
02:01 PM
Thanks Ramu, but the columnName is fixed in this case, not binding is
involved. As a matter of fact, I am not sure if you can use binding for a
column name.
I am using labelFunction for a column in a datagrid. How can I read the
displayed value and not the real value directly from the dataGrid?
I am also wondering how to get values from the DataGrid in general. I need
to render the DataGrid to a HTML table, I mean, read columns and rows from
the
Let me reformulate my question. Usually you can use selectedItem.
columnName to read the value of a row/column of a datagrid. This seems to
work fine as shown in the Flex Sample Explorer ( example below). But how
can you read the value of a computed column that was added in addition to
the
Try casting the result to an Array ...
myArray= mx.utils.ArrayUtil.toArray(event.result);
It worked for me in a similar case ...
Are you calling listCities.send() in some place?
Assuming that you already have a RemoteObject to call your Java Class. This
is what I would do:
mx:ComboBox id=item dataProvider={listInfo}
change=myRemoteObject.getMyDataFromJava(item.selectedItem.mydata)/
where mydata is the attribute name in listInfo and which you wanto to
send to
Something like this?
mx:Label text=Enter data / mx:TextInput id=txt_1/
mx:ComboBox id=item dataProvider={listInfo}
change=myRemoteObject.getMyDataFromJava(item.selectedItem.mydata,
{txt_1.text}/
-Oscar.
I am not sure if I am following this idea. I declared the RemoteObject with
a method name, and then the arguments. Something like this:
.. Remote Object ...
mx:method name=myInsertMethod
mx:arguments
arg1idNumber/arg1
I have a overloaded method in Java which I am calling using RemoteObject.
One version of the methods requires X parameters while the other requires
Y. I am trying to call the one with Y but it Flex tries to call the one
with X by the default. How can I tell Flex which to call?
Thanks
I changed the function to :
private function lblFunc(oItem:Object):String
{
if (oItem.hasChildNodes()){
return oItem.getProperty(deptDesc);
}
else
{ return oItem.getProperty(empName);
}
}
It is working but now the Handler is not being called when getMyList() is
called in the initialize of a ComboBox. If I call getMyList() from a button
for example it works.
I didn't have this problem when including the RemoteObject in the same
mxml.
Any ideas?
// Remote call to getMyData in
It is actually private. The cause might be different. We have a Flex /CF7
installation and there is a file in ColdFusion 7 called gateway-config.xml,
and with an entry called lowercase-keys. This seems to explain what we
are seeing.
I just don't remenber where I read that we should expect an
Thanks, this worked. I will read more about EventListener and Delegate
I am not sure but what about selectedChild
Philippe
I want to have all my RemoteObject declarations in a mxml component that I
can later use in another application. I created a services.mxml file where
I have something like this:
?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml;
!--
I am creating radioButtons dynamically using an array. When I try to
assign the selected value into a Text or TextArea it doesn't work. It seems
that I am using addEventListener correctly since I am able to see the
event.target.data in an Alert.
This application shows what I mean:
1. The
Hi Matt,
I used XMLObjectOutput and found out that the name returned in the result
was 'sdesc'. I think I was confused by the fact that I was expecting 'Desc'
or 'desc', which is the getter name for this attribute --getDesc- in the
Java VO. However, it is returning the name of the attribute
Sorry for the late response, I actually got it closer to what I need. I can
see the collection that the Remote Object is returning in a ComboBox.
However, I can see all attributes listed in the ComboBox separated by
commas. I only want to show one of them, the Description. So I figured I
will
Hi Philippe,
You can probably try using a HorizontalList with a cellrenderer. You can
then use implement Action Scripts functions for the drag and drop events.
The Flex store that comes with the examples shows how to do that.
I think your are missing the parenthesis...
var test:myV0 = new myV0();
I have a Java function that returns a Collection of VOs. I declared a
RemoteObject in Flex, and tried to assign the event.result to an Array
variable, but it actually didn't work. I want to use this data as the
DataProvider of ComboBoxes, or List, etc.
How can I read this data in Flex?
I am using a Remote object that returns a string in a XML format, and
converting this string to XML by using
XMLStr = new XML(Str)
I then use XMLStr as dataProvider in a Tree.
mx:Tree labelFunction=lblFuncCode
dataProvider={XMLStr.firstChild.childNodes}
/mx:Tree.
I call a remote object successfully. I can check that because I can dump
the result (XML) in a TextArea control:
mx:TextArea text={functions.getTypesListAll.result}/
However, I want to show the results in a ComboBox or a tree:
This is an example of functions.getTypesListAll.result
Thanks Tracy, it seems to be the right solution but I can not get it to
work.
I created a test.xml with the following:
?xml version=1.0 encoding=UTF-8?
FunctionTypes
FunctionType code=FUNC1 name=Function 1
DocType code=DOC1 name=DocDesc1/
DocType code=DOC2
87 matches
Mail list logo