Hello,
I have a combobox using an itemrenderer.
On change I want to display the same itemrenderer ( class )
as the selected item in the combobox.
e.g.:
a combobox with a colors list
on change: show the selected color in stead of the color value
Hope it makes sense : )
Thanks!
your headers and content
afterwards.
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Webdevotion
*Sent:* Friday, April 25, 2008 1:24 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [Flexcoders] Variable headerheight
sets all headers to the same height.
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Webdevotion
*Sent:* Wednesday, April 23, 2008 9:15 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [Flexcoders] Variable headerheight
Hello Coders,
How can I set a variable headerheight for my accordion headers?
I'm almost there but every time the accordion state toggles ( opens a new
child to be displayed),
the accordion re-calculates the wrong headerheight.
I'm using:
- a custom headerclass
- a vbox with a textarea as the
Hello,
Upon popular request from our clients:
How does one calculate the buy-out ( all rights: re-using, re-distributing,
... )
on a project?
Is there a difference between easy and complex projects?
Can someone point me to some nice links on the subject?
Tnx!
Bram
Found a solution here:
http://www.pixelwit.com/blog/2007/05/14/hexadecimal-color-fading/
On 1/9/08, Webdevotion [EMAIL PROTECTED] wrote:
Hello list,
Does anyone have a function ready that darkens a hexadecimal color?
eg: var shadedColor : Number = darken( 0xFF );
Hello list,
Does anyone have a function ready that darkens a hexadecimal color?
eg: var shadedColor : Number = darken( 0xFF );
Turned out to be a NULL value in one of the columns of the joined tables.
On 12/7/07, Webdevotion [EMAIL PROTECTED] wrote:
Hello,
I'm running a query in my amfphp class ( using a valid sql string,
it works directly on mysql ), but it returns an invalid result.
It seems that the result
Hello,
I'm running a query in my amfphp class ( using a valid sql string,
it works directly on mysql ), but it returns an invalid result.
It seems that the result recordset is scrambled ...
ServiceCapture output: [result] (Object): [deserialization error]
The error also occurs when SC is not
Hey everyone,
I've been hunting a bug down for a while now in a Flex project:
*This is the generated error:*
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
*at mx.controls.listClasses::ListBase/collectionChangeHandler()**
an item from the
dataProvider. Is there anything unique about the dataProvider or how you're
removing the item from the dataProvider?
- Dan Freiman
On 10/24/07, Webdevotion [EMAIL PROTECTED] wrote:
Hey everyone,
I've been hunting a bug down for a while now in a Flex project
through the pages.
All the best, Bram
On 10/24/07, Alex Harui [EMAIL PROTECTED] wrote:
Are you doing a reset or remove? Are you removing rows that are locked?
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Webdevotion
*Sent
PROTECTED]
* On Behalf Of *Webdevotion
*Sent:* Wednesday, October 24, 2007 7:43 AM
*To:* [EMAIL PROTECTED] ups.com
*Subject:* Re: [Flexcoders] Error from
mx\controls\listClasses\ListBase.as
That's a good question ... The application is quite big, I'll have to
look into that.
But yes
reproducible?
Could you be piling up changes like removing from an old collection then
setting a new collection before the remove gets processed from the old?
-Alex
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Webdevotion
PropertyChangeEvent or have any Bindable properties? Some of these
questions are a shot in the dark.
- Dan Freiman
On 10/24/07, Webdevotion [EMAIL PROTECTED] wrote:
If found that I do not get the error when I leave this filterfunction
out:
public function set cables ( k : ArrayCollection
. I could see something
going on wrong with. I'm not really sure how to test this theory except for
making an explicit deep copy function instead of using toArray(). That
might be more time than it's worth considering that this is guesswork right
now.
- Dan Freiman
On 10/24/07, Webdevotion
ttnx alex
Thanks Alex
On 9/28/07, Alex Harui [EMAIL PROTECTED] wrote:
you can't for/in class instances, only dynamic props. use objectutil
or describetype
--
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Webdevotion
*Sent
Hey Guys and Gals,
My for var prop in object loop does not work :(
The debugger clearly states that the object contains the correct properties
...
Any ideas ?
var item : Object = model.services[i];
for(var prop:String in item)
{
trace(prop: + prop);
}
the point is that the whole for loop is not executed.
I'm having problems vertically aligning the labels next to each Radiobutton.
Is it because I'm using a styleName ?
How can I solve this problem ?
Tried using mx:Text and mx:HBox etc, but the Radiobuttons stick to the top
...
Tnx!
mx:RadioButtonGroup id=answersGroup /
mx:Repeater id=list
Hello,
I'm having a problem with my component.
It has the same sort of functionality as a tabbar,
but more visual requirements ( hover fx etc. ).
My tabs ( = Canvas component ) always returns width=0;
What am I doing wrong ?
This is my code for the main class:
package
Thanks guys!
Finally got the way it works.
Was a bit lost for a moment.
PROTECTED] wrote:
On Monday 04 Jun 2007, Webdevotion wrote:
tab = new Tab();
children.push( tab );
tab.label = _items[i];
tab.x = remw;
remw = tab.width;
Unless you wait for Tab to be drawn, it will have zero width.
--
Tom Chiverton
Helping to greatly entrench 24/365 platforms
on: http
Hello,
I'm not able to use Colortransform on a sprite in my AS only component.
I read a post from a while ago in the archives. It stated that you could
run into problems when you use graphics.beginstyle(0xFF).
I changed my color to 0xEFEFEF, but am still not able to use the
colortransform.
Hello,
I was wondering if anyone has experience building a hotel
reservation/administration system?
It should be accessible throught internet and intranet.
Maybe someone has such a system for sale?
Whitepapers, tips, code snippets are all welcome.
kind regards,
Bram
Hey,
I'm looking for a nice fire effect, but can't seem to find one in AS3.
Is there someone willing to share some code to accomplish this ?
Tutorials are more than welcome too.
tnx
I converted this into as3:
*
http://as3.betaruce.com/tut/fire/fire_f8.html
*
Tnx, I actually found that presentation today : )
This fires the event I want:
var collection : Array = model.downloads.toArray();
collection.push( newDownloadVO );
model.downloads = new ArrayCollection( collection );
model.downloads.addItem( aNewDownloadVO ) will not fire an event.
Any one knows why ?
)
in the creation complete of the mxml file :
ModelVT.getInstance
().user.projects.addEventListener(collectionChange,dgYenile);
private function dgYenile(e:Event):void{
dataGrid.invalidateList();
}
- Original Message
From: Webdevotion [EMAIL PROTECTED
@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Webdevotion
*Sent:* Tuesday, February 27, 2007 6:22 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] assigning a value to a model value object
Hello,
I want to assign a value from my libraryview's datagrid to
a TrackVO in my
solved it by using
mx:DataGridColumn headerText=Download width=90 dataField=id
or any other property of your data arraycollection.
Found your question also in another thread.
Can you post the answer to this thread please ?
If you find it eventually that is : )
, onLibraryChange );
function onLibraryChange(){ /*do stuff*/ }
-Scott
On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote:
Hello,
How can I now when my arraycollection in my modellocator is filled with
items ?
I tried using collectionEvent.collection_change, but it does not fire
when
setting my AC
Hello,
I want to assign a value from my libraryview's datagrid to
a TrackVO in my modelLocator.
model.currentTrack = gridlist.selectedItem as TrackVO;
However, this will not work, currentTrack is null.
When I do Alert.show( gridlist.selectedItem.file ) it shows
me the correct output.
What is
My datagrid is populated by an arraycollection whicht contains TracklistVO
objects.
When I try to create an inline itemrenderer it throws an error:
mx:DataGridColumn headerText=Download width=90
mx:itemRenderer
mx:Component
mx:Button label=get track click=outerDocument.download(data);/
I'm getting my data back from a Ruby service.
The service method I'm calling is query of joined tables.
RoR returns this as an array of AlbumVO's.
Every AlbumVO item contains an array of TrackVO's.
That's the way it works.
To be able to use this data structure in my datagrid,
I have to loop
Hello,
How can I now when my arraycollection in my modellocator is filled with
items ?
I tried using collectionEvent.collection_change, but it does not fire when
setting my AC like this in my command, after the remoting result handler:
model.library = new ArrayCollection(data.result);
What is
Hello List,
Is there anyone who can shed a light on how to deploy
a Flex / Flickr mashup without those domain security errors ?
Is there someone who has a Flickr/Flex app online that can help us out here
?
What did you do to deploy your app online ?
Hello,
I want to store an instance of a Singleton class User into a clientside
Shared Object.
Everything turns out allright, that is untill I try this in a class:
user = so.data.User;
This code works fine for me, but ...
If I call the User in another class, eg:
User.getInstance().name
Than
and vice versa ...
I want to store user information ( name, email, ... ) from my User singleton
in my shared object and when the user returns, I want to read the data from
the shared object and put all the values in my User class.
I can do that by going thru al the public setters, but it'd
sure:
package be.webdevotion.business
{
public class User
{
private static var _instance:User;
private var _email:String=;
private var _name:String=;
private var _transformations:Array;
var user:User = User.getInstance();
Can't find the words to describe my problem.
It's not easy, it's difficult to grasp.
Tried that by setting _instance to public earlier today.
I will check it out again.
I give up for now. Six hours is long enough : )
I will use
User.getInstance().name = so.data.user.name;
I allready use
registerClassAlias(be.webdevotion.business.User,User);
to register the User class in the so.data.
This way the shared object knows about the data type ; )
Thanks Ralf,
Finally got it :)
I think this has solved my issue.
Hey Tom,
I just put the use network flag in my compiler settings, no avail.
I don't get it. Flickr must have set their crossdomain policy files, right
?
For clarification: this is my error when deployed online:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox
Hey List,
I found a lot of request online, but no answers.
How can I put my Flickr / Flex application online without the sandbox
security warnings?
Everything works when I check it on my desktop, but online I run into this
security errors.
myApp.swf cannot load data from *Flickr server*
Do I
Thanks Joan,
The scope tip did it for me :)
I was doing a lot of error catching, but no errors occured.
So this tip was very helpfull!
Whenever I set my wmode to transparent, all my remote calls fail.
No errors, nothing.
I saw a thread on this, where an Adobe employee would post a bug
back in april 2006. But the bug still stands ?
Does anyone have some experience with fixing this ?
Tnx, Bram
I have resolved the bytearray problem.
Only question: how to apply blendmodes etc to the generated bitmap ?
Here you go franto,
http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/
my problem still stands, anyone ?
Franto,
I posted a reply on your question today in the other thread ; )
Hello,
I want to save a manipulated jpg file to the server.
I can encode it to JPG etc, but the result is the original JPG.
I want to preserve the effects that I have applied to the sprite
containing the loaded JPG.
// eg: this does copy the jpg, but not the blendmode
Another problem that I have is that my cfc method will not accept my
ByteArray.
Actionscript:
=
var picture:Picture = Slideshow.getInstance().getPicture();
var bmp:BitmapData = new BitmapData(picture.width,picture.height,false);
bmp.draw(picture);
var myPNG:ByteArray =
No one ? Come n : )
Any nice tutorials or pointers ?
That's exactly what I needed!
How do you call the $1 technique?
Groups ?
Thanks Mike !
Tnx Mike for the insight! Really helpfull information.
Reg exps are very handy, but difficult to grasp in the beginning.
Cheers ; )
Hello,
Using reg exps I want to replace text enclosed in link/link tags with a
href=... tags.
var p:RegExp = /link\b[^]*(.*?)\/link/gi;
// the replace() replaces al link.../link occurences with a
href=googlegoogle/a
s = s.replace(p,a href='http://www.google.be' target='_blank'
www.google.be/a);
I use the stand alone player to debug.
I've changed the debug paths to *-debug.swf in my
debug settings. You can do this by clicking on the little
arrow next to the bug button in Flex Builder and then go to debug.
Another method for fixing this can be using project clean.
I also solve my problem by recreating the swf files.
I rename my main app class and set it as default file.
This way the needed files are recreated in the bin folder.
It's a hassle but I'm gonna look into your tip of using:
FlexBuilder -clean -vmargs -Xmx512m
I also ran into these types of errors.
Only thing that works for me is create a new main class
and copy paste the code from the previous main class.
Then I set the latest main class to the default application.
This forces Flex Builder to recreate the swf files and it
gets rid of the errors you
Dusty, can you check if you get the following error in the
error log in the Plug In Development perspective of Eclipse 3.2 ?
Uncaught exception in compiler
According to this
pagehttp://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex201_sdk.html,
this error should be fixed ...
\be\webdevotion\lnb\view\slideshow\Slideshow.as:40]
at be.webdevotion.lnb.view.slideshow::Slideshow$iinit
()[C:\*\workspace\lnb\be\webdevotion\lnb\view\slideshow\Slideshow.as:24]
at LNB$iinit()[C:\*\workspace\lnb\LNB.as:80]
This error even occurs when my main class constructor is just empty.
This error
Hey Hans,
Look at this blogpost:
http://casario.blogs.com/mmworld/2006/08/implementing_in.html
succes ermee ; )
Ok, I found a way to reproduce my problem.
Create a new project.
Add a new child ( eg: a Car class which extends Sprite ).
Inside the Car class, try to access stage.
eg: var w:Number = stage.stageWidth;
From that moment on, your app fails to compile,
even after removing the stage.stageWidth
Hey Saeed,
Did you declare the variables correctly ?
You have put this code outside your class:
*fileRef.addEventListener(Event.SELECT , selectHandler);
fileRef.addEventListener(Event.COMPLETE , completeHandler);
fileRef.browse();*
Put those lines inside your constructor and those errors will
If you are the creator of the Portlet,
why not implement those states yourself ?
On the state minimized, remove the main canvas.
If the state is maximized, add the main canvas again ( with all its children
).
etc.
That main canvas is an mx:canvas that you add to your component.
When others use
serviceProxy is set in the constructor of the class,
the params are valid in the method callproperty.
I use
var myProxy:RemotingProxy = new RemotingProxy();
myProxy.getNews();
Maybe the private var serviceProxy is not yet instantiated ...
How can I make sure it's instantiated before I call a
Even if I try it like this, it fails:
// override to catch call operations
flash_proxy override function callProperty(methodName:*, ...args):* {
serviceProxy = new ServiceProxy(
http://localhost.:8500/flashservices/gateway;, mysite.services.public);
Hello,
I've been staring into the dark since yesterday on this one.
I extend Proxy and implement IEventDispatcher
public dynamic class RemotingProxy extends Proxy implements
IEventDispatcher{
// my class
}
somewhere in my class I have the callProperty method
flash_proxy override function
My problem still stands, anyone ?
I'm having problems connecting from any AS3 project since I
installed 2.0.1 today on my localhost. Can anyone give me
some pointers ?
Working with CFMX 7.0.2.
Tnx !
sorry, made a typo
flash_proxy override function callProperty( methodName:* , ... args ):*
{
return serviceProxy[methodName.toString()].apply(serviceProxy,args );
}
Oh yes,
To remove all items from a tilelist you just use
collection = new ArrayCollection();
In my example the dataprovider is refilled as a proof of concept.
Commenting the line:
collection = new
Hello,
I've been staring into the dark since yesterday on this one.
I extend Proxy and implement IEventDispatcher
public dynamic class RemotingProxy extends Proxy implements
IEventDispatcher{
// my class
}
somewhere in my class I have the callProperty method
flash_proxy override
Hey Sascha,
Try to compile and use my example. Just create a new Flex Project.
Maybe you ran into a debug error. Please be sure that all your debug
sessions have stopped in the debugger by pressing the red square button.
Sometimes I have to restart my Builder in order to get rid of those
Please look into my example more closely.
When you click the button I first clear the list and then fill it again with
new items from an arraycollection ; )
collection = new ArrayCollection(); // clears the list
collection = new
I'm having problems connecting from any AS3 project since I
installed 2.0.1 today on my localhost. Can anyone give me
some pointers ?
Working with CFMX 7.0.2.
Tnx !
When using amfphp or flash remoting for that matter, you'll find out that
you Actionscript code understands your AMFPHP objects and vice versa.
No need to parse data into native Actionscript objects. Agreed,
E4X etc has made this less harsh to use, but you'll still gain a lot on the
client side
Marcello,
Just a little remark:
AMFPHP is heading towards AMF3 support, including RemoteObject.
In alpha stage now, but I don't think it will take long for a final release
any more.
Also check out the new service browser live demo:
here.http://5etdemi.com/amfphp2/browser/
Hello Flexcoders,
Is it allright to use Cairngorm for AS 3 projects?
I'm getting up to speed with Flex and AS 3.0 and
want to start learning some relevant frameworks.
Which ones are among the best choices for
strictly AS 3 projects ?
Bram
That's correct Hank, AS 3 only projects.
thank for the interesting links ; )
Iterator Patterns are a great way to extend your toolset when
working with Data Collections such as ArrayCollection.
Pick up this great book: Advanced Actionscript 3: Design Patterns
Can anyone shed a light on my problem ?
The first time I ran this, it worked, I even tried to reinstall the Flex
Builder Plugin.
Just to make this clear, I'm working with the plugin version on top of
Eclipse.
Thanks !
I ran into this error when trying the example on a very simple mxml
Do a google for iG:Syntax Hiliter.
Nice code highlighter for wordpress etc.
pro:
You can integrate the flv player component(s) in your app
It handles web services very nicely ( amf, very small filesize )
It can do anything you can do with Actionscript 3 It's blazing fast !
including connection to FMS
It's very well documented
Nice frameworks google for Cairngorm
E4X
Hello,Can someone explain me the use ofListCollectionView.contains( )? I can't get it to work.var keyword:String = txtSearch.text; if( !keywords.contains( {label:keyword} )) {
keywords.addItem( {label:keyword} ); }tnx !
__._,_.___
--
Flexcoders Mailing List
FAQ:
I'm trying to get the data out of a clicked image:I'm working with the adobe flickr classes.mx:Tilemx:Repeater id=rp dataProvider={ photos } mx:Button click=
dump.text = 'url is: ' +event.target.getRepeaterItem().url//mx:Repeater /mx:TileAll I get is [object
Thanks guys for your input !
__._,_.___
--
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
This did the trick:mx:Image source=mypicture.jpg click=loadBigPhoto(event.currentTarget.getRepeaterItem()) /
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
Hello,I want to dispatch an onclick event from a datagrid inside Providers.mxml ( = component ).My main mxml should listen to this event, it has the mx:methods tag.How do I do this ?I know about Arp and Cairngorm, but I am just getting into Flex, so first thing first for me.
tnx ; )
--
Hello,I just powered on my pc to found out that none of my Flex projects are displaying ... They are being compiledon the server or as a swf without errors, they have a filesize ( 200kb etc. ). The Flex command window does
not give any errors.What are the things I need to check here ?tnx very
tnx, it worked.I could have swore that I tried this though :sAnyway, glad you made me try again : )
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
do bubbles, you can listen to it from anywhere (including datagrid itselft )
jeremy
On 4/23/06, Webdevotion
[EMAIL PROTECTED] wrote:
Hello,Shortquestion:I implementeddispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));in the listdata setter of my datagrid cellrenderer.How can I get anything
Isn't there anyone with some tips on this topic ?
On 4/20/06, Webdevotion [EMAIL PROTECTED] wrote:
Hello,I'm trying to create a datagriditemrenderer using Actionscript.I know I'm importing to much right now, it's for testing purposes ; )Does anyone have some insight into this techniques ?All
Thanks :)This will be off great value to me!As I'm pretty new to Flex, how can I add png files to the stage ?I'm using [embed...]
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
1 - 100 of 106 matches
Mail list logo