Hi,
I want to add an icon to a button at runtime.
I watched the generated as-File and the button mx:Button
icon=@Embed('test.gif')/ was generated to this code:
new mx.core.UIObjectDescriptor({ type: mx.controls.Button, id: Button7,
_properties: function() { return { icon:
Hi,
not directly, you need to embed the resource and assign a name to it:
// somewhere in you code
[Embed(test.gif)]
public var testIcon:String;
this makes the resource available through the testIcon identifier. Later
on you can assign the icon by doing
myButton =
Douglas,
Thanks for the link, it kinda clarified my own direction which was
tending towards stateless classes. My whole design philosophy is
really to have stand alone calls to remote objects, any info required
has to be passed into the call.
So far all my flex work has been on querying data for
HI Abdul,
I was looking more of an in memory image, that way we dont have to deal
with clean up on the server. Also, multiple users may be logged on and
requesting different photos.
any way to go base64-binary-image in memory in AS2?
-alyOn 10/12/05, Abdul Qabiz [EMAIL PROTECTED] wrote:
Matt:
I tried your example script but it works for only first click and sort data in
ascending order. Any click after then produce no change to grid items.
This script raises me another question to you, feedbackCreationDate is
declared as Date data type which means the default ordering should
Are you making corresponding AS classes to
match your Java VO classes?
If so are you declaring the remoteClass so
that Flex knows which AS classes match which Java VO classes?
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Omar Ramos
Can anybody explain to me what for is frameRate property. It seems
that nothing changes when I change framerate of my flex application to
120. Does it mean that if I change it to 120 the flex application will
run smoother and quicker? ANd what is the maximum framRate??
Hi all,
is there a way to get the property list and the type of an object?
Best regards,
Alban.
***
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or
Hello All,
I will be there too :)
I'm 23 and I'm from Kiev, Ukraine.
Looking forward to see you all there.
Best regards
Stanislav
On 10/12/05, Douglas Knudsen [EMAIL PROTECTED] wrote:
Maybe we can write 'FLEXCODERS' on our badges. Then we can spot each
other in the halls, in sessions, or
Try the code below, you'll need to put a TextArea somewhere on screen
with the id=trace_txt.
trace_txt.text = 'Object type: ' + typeof(obj) + '\n';
for (var p in obj){
trace_txt.text += p + ' - ' + obj[p] + '\n';
}
-Original Message-
From: flexcoders@yahoogroups.com
Yes, as I said the example was meant to
get you part way, to get the sort to work in both directions you need to do
more work that I dont have time to write for you. There are some
sorting examples for different purposes on my blog at
I think we also have a className property
that you can use since typeof wont give you any details beyond object
for a class.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Derrick Grigg
Sent: Thursday, October 13, 2005
9:01 AM
To:
In coldfusion you would have to do :
cffile action=""
file="C:\CFusionMX7\wwwroot\1890.jpg" variable="data"cfcontent
variable="#data#" type="image/jpeg"
or get the data from a database field, it's the return
header that will make it work
Philippe
Maegerman
From:
Hi all,
I will be attending too. 27 from Puerto Rico so just look for the latin guy lol
Omar Ramos
System Developer
On 10/13/05, Stanislav Zayarsky [EMAIL PROTECTED] wrote:
Hello All,I will be there too :)I'm 23 and I'm from Kiev, Ukraine.Looking forward to see you all there.
Best
Yes I have both VO identical and registered via registerObject. Java just seams to put my properties to lowercase. I guess I will have to just go with lowercase properties.
Omar Ramos
System Developer
On 10/12/05, Kelly Roman [EMAIL PROTECTED] wrote:
Are you making corresponding AS classes
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
All right, I figured this one out - using the SeriesInterpolate effect
demonstrated in the chart explorer. (In case anyone else was wondering how
to do this.)
- Tom
At 09:08 AM 10/12/2005, you wrote:
I've created a chart with a dynamically changing dataprovider. Is there a
way to add an effect
Ok, I am building a tree using a remoteobject call to get the data for
it. The data returned is an array of VOs. The result is only one
level deep, the top level of the tree. I plan to dynamically build
child nodes via the change event. The data is a list of US states.
When I click a state I
Hi,
Yeah that is surely possible, if you look at second way I
mentioned in my last mail. ButI am not sure, how it would work with
webservices.
You can pass a servlet url to Image tag, that servlet cant
return content of type image/jpeg to flex...
-abdul
From:
For some reason, my falseUpSkin and falseDownSkin work fine, but when
I add falseOverSkin (using the same value as down) it doesn't work.
Any ideas why?
mx:SimpleButton falseUpSkin={ModelLocator.assets.coverage_nw_off}
falseDownSkin={ModelLocator.assets.coverage_nw_on}
I would like to know how to store and access components in more than
one directory. I have a directory called components that holds my
navigation components that I referr to in my main.mxml file as
such xmlns:nav=Navigation_Components.*.
What I want to do is create another directory with my
This would work, but you need two
welcomeMessage variables initApptwo() is just overwriting the first should be:
public function initApptwo() {
mySO2 = SharedObject.getLocal(mydata2);
welcomeMessageTwo = Hello + getNametwo();
}
and
mx:Label id=label2
text={welcomeMessageTwo}
Job Details:
Location : MA, Boston
Duration : 6 Months
MacroMedia Flash / FLEX Developer Sr Developer
Experience - 3+ years as a Flash, ActionScript programmer.
- Experience with Flex and MXML required.
- Strong skills in object oriented programming.
- Significant experience working
Ok. Lets say I have a search screen(btw the queries are running via
a webservice to a set of CFCs). The search screen lets you choose
between person, department, and company.
Person Search returns a list of people you can select from.
Department Search returns a list of departments you can
Hi Oscar,
I am using Flex with JRUN and Java classes. Does this applies too? And what did you do to fix the problem. Thanks
Omar Ramos
System Developer
On 10/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Omar,Are you using ColdFusion with Flex? Check out the gateway-config.xml file
and
Hi Guys,
Anyone knows how to detect the browser close event in flex? To do something before the browser is closed? I have tried the unload event on the application tag but that doesn't seam to work.Any Ideas?
Omar Ramos
System Developer
--
Flexcoders Mailing List
FAQ:
It might help if I also actually asked a question I guess :)
I need the department to people list to be generic, but depending on
what tab you are on for the result event to be handled by a function
based on the tab you ahve selected.
I am guessing this means using a custom event that is
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
ok, suddenly, yes suddenly, I started getting the nifty arrow next to
each item. Removing isBranch from my VO makes it go away. kewl.
But now all items appear as
[object Object],1, , [object Object]
oddness...one of those days...with MAX on my mind I'm probably missing
some silly thing.
DK
Hi Oscar,
I have my gateway.config with
serializationFlex/
serialization
lowercase-keysfalse/
lowercase-keys
And my getter and setters like this
private String _name_en;
public int getName() {return this._name_en;}public void setName(int _name) {this_name_en = _name;}
And still flex
I am having some problems getting a button on one panel of an accordion to change the textinput box on another panel of an accordion and I was wondering if someone can give me some idea as to what could be causing this?
--
Flexcoders Mailing List
FAQ:
You can also use instanceof operator to compare the type of
objects..
var a:Array= new Array();
if(a instanceof Array)
{
//true
}
-abdul
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt
ChotinSent: Thursday, October 13, 2005 6:05 AMTo:
Hi Omar,
I don't see the problem.
That's the way it should work.
Flex will find a getName getter and determine that the name of the
variable is name according to javabean naming conventions.
You should NEVER use uppercase initial letters in variables. period.
This is a widely used convention.
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?
Are both panels in the same accordion? if it's the case, are you sure that the
text input is already created?
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
-Original Message-
From: flexcoders@yahoogroups.com on behalf of [EMAIL PROTECTED]
Sent: Thu 13-Oct-05 7:41
I think I understand what your saying the second panel has to be opened before the first one can reach it right?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
From What I understand, the frameRate is a limiter value.
EG: if you set it to 120, the maximum it will go if 120.
The Framerate depends largely on the clients machine, and how good it is.
You can't force the Flash runtime (aka Flash player) to do 120
framerate (frames per second) on a 486 with
Is there any way to set it up to wehre I would not have to open the second panel first though?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Perhaps you are over-complicating this. Or I am over-simplifying it!
Why not just invoke the second search in the result handler of the
first?
Tracy
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Johnson
Sent: Thursday, October 13, 2005
That means you are trying to assign a complex object to a display
component that needs text.
You will want to define the labelField property if the data you want for
the label is a first level property of your node.
If the data you want for the label consists of more than one property,
or the
Hi Aldo,
I currently have it like this. The reason I wanted it the other way around is because I come more from a .NET programing language. In .NET you have your properties defined this way. This reflects the properties of a Sql Table which are defined the same way. So I wanted to maintain
I'm trying to center a form within a Canvas which is within a Panel.
We're using multiple MXML files. I've got a loginView.mxml file and a
main.mxml files.
On the main.mxml file we use a panel and a viewstack to display the
login and main views.
Within the loginView.mxml page we have a Canvas,
So I asked a little while ago about why falseOverSkin didn't seem to
be working in SImpleButton. I decided to simply set the value myself
using mouseOver. However, this doesn't seem to be working.
Assuming that FOO is a simplebutton - how would I change the visible skin?
--
On the accordion tag, set creationPolicy=all.
Search the archives, or the FAQ or cflex.net
or google for more detail on deferred instantiation
Tracy
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday,
Thanks Tracy. Right, I got the labelField property setup corectly. I
just discovered my faux pau. My VO in as relating to my Java VO had a
constructor with args. I didn't realise this was a no no. Apparently
not only does the Java version of your VO require a no-args
constructor, your as VO
I am probably over-complicating it, thats always a possiblity.
However the reason I can't is because the second search that actually
gets used will be dependent on which of the 4 tabs you select. But
the first search needs to stay the same.
IOW for example
1. Search for Departments based on
This is due to a feature of Flex known as
Deferred Instantiation.
My post on Tuesday entitled Re:
Unable to refer controls in Accordion ! addressed the issue.
- Gordon
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
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
---
On the accordion tag, set
creationPolicy=all.
Setting a creationPolicy=All on the accordian
container will cause all of the children to be created when the
accordian is created.
In my post two days ago I tried to explain
why setting creationPolicy=all is not The Right Way to
I'm just debugging that one myself. If you embed the images, all works fine.
When you
use the Cairngorm model of loading the assets in an asset class, then bind them
to
SimpleButton, button hilites don't work in my app until I click on the buttons
a few times.
--- In
Hi,
Is there any way to handle undeclared Arguments passed in to function?
eg: function myFunction(oneArg:String,twoArg:Boolean[,...other args])
I think you can do this sort of thing in Java and Javascript.
I think they are avalible in an array called args.
so args[0] refers to oneArg.
Any
HI all,
I have successfully done uploading file in a directory using fileIO
feature provided by Flex using Flash 8.
Now I wanna to save the uploaded file in database.
SO can anybody tell me how to save uploaded file in database using
Flex.My databse is oracle 9i.
Any url or suggessions ?
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
Greg,
set an show function for each Car/DoorKey/EmploymentFile/Room tab.
This function should check if any department was selected or not.
you can define an unique function and with the tab.selectedIndex you can know
wich tab was clicked and call the right webservice. Then the
Search the web. There are hundreds of examples that show you the
debachle that is Oracle's JDBC driver and binary data.
Carson
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
Email: [EMAIL PROTECTED]
Office: 866-CYNERGY ext.
I need to display text in one cell in up to two lines. If text fits in
one line I should show one line. If the text fits in two lines, I
should display them, and at last if the text is really long, I should
trancate it at the end of second line.
I tried to create cell renderer that is a mx:Text
David Harris wrote:
Is there any way to handle undeclared Arguments passed in to function?
Check out the arguments array that is created inside of the function
automatically for you
function foo() {
trace( arguments[0] );
}
foo( bar ); // output bar
-d
This works incase anyone else runs into the same problem...
mx:Panel id=AOPScheduler title=Login dropShadow=true
x={(this.width - AOPScheduler.width) / 2}
y={(this.height - AOPScheduler.height) / 2}
On 10/13/05, Greg Morphis [EMAIL PROTECTED] wrote:
I'm trying to center a form within a
How do you cancel a drag 'n drop operation so they object is dragging is
not placed anywhere...and the original is not removed from the source
component?
Thanks!
Stace
Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you find a job). Welcome
Hi,
You would be required to write server-side logic for the same. You can
write code in your server-side file, which is being used for file
upload, to save to Oracle DB as BLOB.
Search google to find out how to save a file as BLOB in a DB.
-abdul
-Original Message-
From:
Typically we do not manipulate either the source or target until the
dragDrop event happens over a valid target.
When in the drag operation are you wanting to cancel?
Tracy
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stacy Young
Sent:
Suppose I have a datagrid. I'd like to be able to restrict certain
editable columns from being accessed using the tab key.
Is there a way to disable tabbing for a particular column?
Yahoo! Groups Sponsor ~--
Get Bzzzy! (real tools to help you
Any reports from the field on SpringBeanAdapter?
http://www.carbonfive.com/community/archives/2005/07/springbeanadapt.html
Thanks
- Richard
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
Its an unusual situationIm
trying to prevent an item from being dropped outside a set of folders (in the
root)so I have completed the logic to detect if this happensand
if so, I can stop the item from being addedbut its still being
removed from the original component via my
Hi,
You can get the width/height of root element using width/height variable
in the same file(scope).
Assuming Canvas is root element of LoginView.mxml:
mx:Canvas width=600 height=600
xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Panel id=AOPScheduler title=Login dropShadow=true
Not very elegant but I got around it with
using a boolean variableif the location isnt valid, just sets a
flag that is then checked on doDragComplete
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Stacy Young
Sent: Thursday, October 13, 2005
7:07 PM
Could you apply the location checking
logic in the dragOver?
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacy Young
Sent: Thursday, October 13, 2005
7:43 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
cancel drag 'n
Yep that works, thx! any idea if I
can trigger that x icon (shows when hovering over object that
doesnt support drag n drop) to provide additional feedback when
hovering over an invalid position?
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tracy
On 10/13/05, Marcin Glowacki [EMAIL PROTECTED] wrote:
I tried to create cell renderer that is a mx:Text control, but with no
success...
I cound not get the second line to be displayed...
I think you need to set variableRowHeight to true.
Yahoo! Groups Sponsor
Are you calling:
event.target.showDropFeedback();
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stacy Young
Sent: Thursday, October 13, 2005
8:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
cancel drag 'n drop
Yesif the location is valid, I call
that function
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Thursday, October 13, 2005
8:58 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
cancel drag 'n drop operation?
I will be there too.
I am also 23 but my birthday is on
Saturday so I will be 24 when I get there.
Hahahaha
I will be in pretty much every Flex
session though.
Weee
See you there
--Kelly
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com
I've always heard that it's bad to save files as BLOBs in the database,
and that it was better to save the file to the file system and store a
reference to the file in the db...no?
On 10/13/05, Carson Hager [EMAIL PROTECTED] wrote:
Search the web. There are hundreds of examples that show
I don't see any problem with it provided you design your
tables to keep the data in a separate table, possibly separate tablespace,
etc. Most reasonably good databases today have very good blob/clob
support.
Carson
Carson HagerCynergy
74 matches
Mail list logo