I have always wondered what the best way to do this was:
I need to create a reusable button, but this button will sometimes have an
arrow on the right side, an 'x' on the right side, or nothing on the right
side. There might be the possibility to have these on the left side too.
I have
Basically, Our users have a group of Individuals (com.gladhandle.IndividualVO)
and in one part of the application they can search the individuals.
However, one of our milestones is that they are able to search and the results
are refreshed on keyup of a textinput.
Seeing as this could and
bump
This is what my code looks like:
---
private static var _alertUI:GHAlertUI = new GHAlertUI();
public static const CUSTOM_EVENT:String = GHAlertEvent;
public function GHAlert(){
}
For some reason, when using flex 4, setStyle() is not working.
Is this method deprecated in gumbo?
The code I am using
mx:Button label=test id=testButton borderColor=0x00
click=testButton.setStyle('borderColor', 0xff); /
It does not work for some reason, but it worked fine in flex 3.
actually, it seems setStyle( 'backgroundColor', value ); works fine.
I am not sure what does and doesn't work, but how else would I set the border
color from actionscript in flex gumbo?
I have multiple applications, and they all have to use SOME of the virtual
objects I have created as they all need to update our database through rubyamf
in one way or another.
I was wondering what the best way to create classes / etc that multiple
projects can use. What would be the best way
Basically, I have an arrow that I draw graphically, it has a vertical gradient
from the top to the bottom.
I want it to fade in from left to right, so I was wanting to put a horizontal
gradient on it too...
I am not sure if it is possible to do this, or if this can be done a different
way.
still looking for a clue!
--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote:
bump!
--- In flexcoders@yahoogroups.com, tchredeemed apthorp@ wrote:
Basically, I have an action upload_attachment in a controller handle_data
In flex I call navigateToURL( new URLRequest
Hm, I am not sure that does the trick..
I have researched the problem and it seems that firefox does not send session
information and that is what is causing the error...
Anyone know any workarounds? Mind you I am using ruby on rails for the back
end...
Please help, I am drowning here!
bump!
--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote:
Basically, I have an action upload_attachment in a controller handle_data
In flex I call navigateToURL( new URLRequest(
serverURL+'handle_data/upload_attachment/?profile_id=46' ) );
This seems to work fine
Basically, I have an action upload_attachment in a controller handle_data
In flex I call navigateToURL( new URLRequest(
serverURL+'handle_data/upload_attachment/?profile_id=46' ) );
This seems to work fine in the following browsers:
IE, safari
It does not work in:
Firefox( mac and pc),
Basically, I was wondering how I would just put an image inside of the textarea
like it was a piece of text...
Example:
http://www.andrewthorp.com/image-text-area.jpg
Functional Equivalent of:
Dear [First Name],
Begin typing your message here.
Thanks!
Instead of the text [First Name], I want
I have a situation in which I am currently using a very ugly set up to get the
job done, but I want to change this (will explain) and I am looking for some
insight.
The process is this.
A user gets to a piece of our app and they are presented with some options.
The options are very
@yahoogroups.com, tchredeemed apthorp@ wrote:
I tried this in all browsers on my mac (firefox, safari, camino), and it
uploaded fine.
I tried this on all browsers on my pc (firefox, ie6, ie7), and it did not.
file.upload( new URLRequest(
_appGlobals.serverURL+data/attachment/?order_id
I tried this in all browsers on my mac (firefox, safari, camino), and it
uploaded fine.
I tried this on all browsers on my pc (firefox, ie6, ie7), and it did not.
file.upload( new URLRequest(
_appGlobals.serverURL+data/attachment/?order_id=+_appGlobals.order.id ) );
serverURL =
I am uploading using Rails (Ruby on rails)
PC is getting a 406 Not Acceptable error.
any help would be awesome!
Anyone else run into this problem?
--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote:
I am uploading using Rails (Ruby on rails)
PC is getting a 406 Not Acceptable error.
any help would be awesome!
I have a custom component named RemovableText, it looks like this
mx:HBox
buttons:RemoveButton /
mx:Text /
/mx:HBox
The HBox is the root of the RemovableText.
When I create and add a removable text, I am doing this:
var text:RemovableText = new RemovableText();
text.name = 'removableText';
Can someone tell me when I would want to use certain parts of
Inspectable and what they do for me?
The only one I have really found useful is 'enumeration'...
For instance, what is the difference between
-
[Bindable]
public var arrowDirection:String = 'right';
Basically..
We develop on localhost:3000, we test on http://dev.oursite.com, and
we go live on https://www.oursite.com.
I need 3 different environments, one for each environment.
Right now I have to recompile the SWF everytime I want to create it
for a new environment.
Obviously, when we have
--- In flexcoders@yahoogroups.com, tchredeemed apthorp@ wrote:
Basically..
We develop on localhost:3000, we test on http://dev.oursite.com, and
we go live on https://www.oursite.com.
I need 3 different environments, one for each environment.
Right now I have to recompile the SWF everytime
Yes! That is exactly what I am looking for!
Yeah, I was under the impression he was waiting to see if that's what
I was looking for...
Hopefully he won't mind sharing his code :)
http://andrewthorp.com/flex/colorpicker.png
That is a picture of what I am looking for...
Somehow where I can get the swatch panel without going through the
click on the top piece.
Any ideas?
I'd rather just know how to implement that SwatchPanel component if
that is possible... :)
I was wondering if I could build a flex app that has the SwatchPanel
by default, instead of having to click on the icon to have it drop down.
Yes/No?
Question:
When I set the maxWidth on a text, it does not force to a new line
(like when you explicitly set the width). Is there any way to set it
so that it will force it to a new line if it exceeds the maxWidth,
without having to reserve the space using width?
bump!
What I want it to do is to allow it to grow to the maxWidth, and wrap
the text if it hits the max, right now it just cuts off the text after
the maxWidth...
halp! :)
--- In flexcoders@yahoogroups.com, tchredeemed apth...@... wrote:
Question:
When I set the maxWidth on a text, it does
I am not sure that really solves the problem... as I still have to
type the server in.
Anyone know any better solutions?
Hello, I am using RubyAMF to save information to the database.
The FileReference.upload method is causing some issues because
logically I would like to pass the File information with other
information rather than just using upload().
That being said, is there any way to convert FileReference
the
data as is.}
-TH
--- In flexcoders@yahoogroups.com, tchredeemed apthorp@ wrote:
Hello, I am using RubyAMF to save information to the database.
The FileReference.upload method is causing some issues because
logically I would like to pass the File information with other
I don't have flash.filesystem
when I do import flash.fi the only thing is filters..
hmm!! :)
does anyone know of any flex color pickers (kinda like photoshop color
selection tool) that I can shamelessly rip off (open source, obviously
=])?
THANKS! :)
Actually, I need one that is much more open then that... a 'millions
of colors' color picker..!
anyone know??
I was wondering if anyone could help me here..
We have a site that is SSL encrypted, and I embed a flex app inside
the html of it.
When I launch the app, it gives a popup (only in IE) saying a secure
site is requesting non secure information. However, the only images I
request are requested by
Basically, right now my setup looks like this:
!-- SECURE --
!-- channel-definition id=rubyamf
class=mx.messaging.channels.SecureAMFChannel --
!-- NOT SECURE --
channel-definition id=rubyamf
@yahoogroups.com, Rob Kunkle r...@... wrote:
Are you sure your application is using fonts that are embedded in the
application, and not drawing on fonts from the client system?
Rob
On Jan 20, 2009, at 7:32 PM, tchredeemed wrote:
I have noticed that when I embed my fonts they load fine in Mac
I am actually embedding them like this:
I have a module BickhamPro.mxml:
on creationComplete I call creationCompleteHandler();
[Embed(source='assets/Bickham Script Pro.ttf', fontFamily='Bickham
Script Pro', fontName='Bickham Script Pro', fontWeight=normal,
fontStyle=normal,
I have noticed that when I embed my fonts they load fine in Mac -
Safari
Firefox
However, on a Windows machine -
IE 6/7
Google Chrome
Firefox
The fonts do not load correctly.
Anyone know why this happens? Even in some places, the fonts look
fine, however in a lot of places they won't seem to
When I load different modules, I notice a large decrease in performance.
The thing is, there are only 2 modules that get loaded, and the user
can go back and forth.
startup = module 1
click link to get to module 2
click 'back' button to get back to module 1
click link to get ot module 2
click
does the module loading itself really effect performance?
I have noticed a peculiar problem with some images being rendered in
flex.
This image:
is being rendered like this:
I can navigate to the folder the image is in, and I assure you, it looks
like the first. This only happens to some images, not all, in fact its
the small minority that it
to it? How is it being loaded
into Flex (@Embed or just setting the source of an Image object)?
-Alex
--- In flexcoders@yahoogroups.com, tchredeemed apthorp@ wrote:
I have noticed a peculiar problem with some images being rendered in
flex.
This image:
is being rendered like
about it that flex does not quite understand.
I forget how you check for this, but it may be worth you finding out and
having a look?
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tchredeemed
Sent: 07 January 2009 16:18
bump
To see what I am talking about...
look at - http://www.andrewthorp.com/flexsmoothing/
Hello!
Our application needs the ability to take a logo (which gets uploaded
in a different interface via rails) and resize it dynamically
depending on which item they are purchasing.
As of right now, I am using a Loader and when Event.COMPLETE is
dispatched, I catch it, create a new
Has anyone done this?
Anyone done this?
This is how I try to do it:
fileReference.upload( new URLRequest(
http://localhost:3000/files/upload; ) );
however, I get
Error #2038 File I/O error
Anyone know why I am getting this error? can you not post to the
localhost?
Is there something else I have to do?
Will this allow me to actually embed fonts dynamically? or to just use
fonts that I have already embedded?
I am concerned about the filesize if we embed all files.
I think what Alex said might work, we could embed the font into a
module, and only load a module as we need the font.
Has anyone ever done this? Seen any tutorials on this? It seems that a
good amount of people would want something like this.
I keep running into issues with it, and it is very frustrating!
Is there any way to do this?
Basically, I only need some fonts and it will change depending on the
situation.
How would I do that?
Also, do you know of any way to tell if the user has a font already,
and I will only embed it if they need it (don't want to load a font
that they already have...)
Anyone?? :)
--- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote:
I have created my own CanvasStack (to replace the viewstack) because
viewstacks and models do not mix.
?xml version=1.0 encoding=utf-8?
mx:Canvas
xmlns:mx=http://www.adobe.com/2006/mxml
Of tchredeemed
Sent: Tuesday, November 18, 2008 8:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: TextFormat being reset?
Anyone?? :)
--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
tchredeemed apthorp@ wrote:
I have created my own CanvasStack (to replace
Basically, when I query a database, if I get back a row that has
contactType='contactInformation', I have to display all of the piece
of contactInformation I have for a given user...
Usually:
Full Name
Job Title
Phone
Phone
Phone
Address
Email
Website
Here is the problem, I want to be able
How do you add a TextField to the screen?
I tried using the same example from the dynamic help, but nothing is
appearing...
package assets {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
public class
If I have these two dynamic tags:
name color=ff size=20 /address color=ff size=16 /
How can I use a Regular Expression, or some other way, to first only
get everything between name and /, than to parse each field for the
value?
Ok, I have figured out a way to get the tags... now I have one problem...
I get the name properties, like this:
var ptrn:RegExp = /name(.?*)\//;
Now, is it possible to use a variable in there for name?
Something like this:
var field:String = 'name';
var ptrn:RegExp = /field(.?*)\//;
Y/N?
one problem:
It comes back like this:
name color=ff size=16 /address color=00 size=20
align=left /phone ... etc /
So, how would I separate them by the node that I am currently working
with?
I do have this working, however... but I am facing 1 problem:
var ptrn:RegExp = new RegExp(+tag+(.*?)\/);
tag can be 'name', 'address', 'phone', etc...
What I am having the problem with, is it is returning everything
before and after the match too..
so for the previous example (name
Well basically, I will get a string with multiple pieces
name ... /
address ... /
phone ... /
ETC..
Basically, I need to say
var string:XML = currentpiece (name ... /, address ... /, etc)..
So how can I (like how I pass tag in for the regexp) separate the
address / tag or whatever, depending
I have created my own CanvasStack (to replace the viewstack) because
viewstacks and models do not mix.
?xml version=1.0 encoding=utf-8?
mx:Canvas
xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=initApp() height=100%
horizontalScrollPolicy=off verticalScrollPolicy=off
This is my code:
public class LimitedTextArea extends TextArea {
private static const MAX_LINES:int = 10;
private var storedInput:String;
private var limitHit:Boolean = false;
public function LimitedTextArea(){
this.addEventListener( KeyboardEvent.KEY_UP, keyUpHandler
public class LimitedTextArea extends TextArea {
private static const MAX_LINES:int = 10;
private var textLength:int = 0;
private var storedInput:String;
private var limitHit:Boolean = false;
public function LimitedTextArea(){
this.addEventListener( KeyboardEvent.KEY_UP, keyUpHandler );
Yes, it would, and I think I just figured out how to do it...
A few changes and I have come up with this:
public class LimitedTextArea extends TextArea {
private static const MAX_LINES:int = 10;
private var allowMore:Boolean = true;
public function
Basically, I created a custom component that extends TextArea, and I
created a getter that returns the super.textField.
Right now, I am doing this:
private var savedText:String;
private var limitHit:Boolean = false;
keyDown(){
savedText = textArea.text;
var tf:TextField = TextField(
code:
mx:HBox
mouseOver=moCanvas.visible=true;
mouseOut=moCanvas.visible=false;
mx:Text text=test /
mx:Canvas id=moCanvas width=10 height=10 visible=false
backgroundColor=0x00 /
/mx:HBox
Obviously simplified, basically I am interested in finding out why the
mouseOut event is triggered
Hi, I am using Firefox, and I have found (as I am sure most of you
know) that the httpStatus Event on a SWFLoader is always 0, because
Firefox does not pass the httpStatus to the flash player...
No big deal, as long as there is SOME way to tell if an image loaded
succesfully in flex?
I can tell
Type Coercion failed: cannot convert mx.managers::History Manager
[EMAIL PROTECTED] to mx.managers.IHistoryManager.
what would be causing this error?
I am not explicitly referencing the HistoryManager in my app at all...
wierd! :)
2 Things.
1 - I misspelled weird!
2 - I use a ViewStack in one of my modules, and it only happens when I
navigate away from said module to a new module!
--- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote:
Type Coercion failed: cannot convert mx.managers::History Manager
I have a .swf that I load into my flex app...
like this:
[Embed(source=swfloader.swf)]
[Bindable]
private var swfLoaderAnimation:Class;
mx:SWFLoader id=loader source={swfLoaderAnimation}
horizontalCenter=0 verticalCenter=0 /
---
The problem(s):
1- Sometimes this
When I launch my application, if I do this:
textArea.selectionBeginIndex=10;
textArea.selectionEndIndex=20;
textArea.setFocus();
Should it not put the cursor into the textArea and have the 10th
through 20th characters selected?
So that by default, if I put that in creationComplete, and they
Thanks guys, now I guess my problem is how to give the application
focus without clicking on it?
parentApplication.systemManager.activate() ?
Not sure exactly where to go :)
I add children, and only Text or Spacer, to a vbox.
After I have added them, I want to get the height of the vbox.
However, when I call vbox.height, it gives me 0.
If I call the measure() method, same problem, measuredHeight, same
problem.
Any ideas?
grrr! same problem!
Let me give an example of what I am doing!
Keep in mind I am typing this very fast, and it most likely will have
spelling mistakes, but it should give you an idea!
?xml version=1.0 encoding=utf-8?
mx:VBox
xmlns:mx=http://www.adobe.com/2006/mxml;
one problem..
the children do not get added until I request for them to, via an
eventListener that does not get dispatched until much after the
creationComplete event...
this is probably the problem :(
I cant figure out how to remove the border from a button!
mx:Button
Any help!?
Please help..!
I need a flash developer or someone who can point me to their secret
hangout!!!
nope, i mean flash
I have an image, and I need someone to turn this image into a flash swf
for me...
I could try to describe it, but I figured it would be best to show a
picture of it. and that is located here:
http://img356.imageshack.us/img356/5438/loaderjh8.jpg
Note:
Basically that white bead just spins around the circle and never
stops... essentially it shows up on top of each piece of the circle..
you all get it.
public class MyClass {
public function MyClass(){
var drawingComponent:UIComponent = new UIComponent();
// draw on the drawingComponent;
}
}
If I have that, and I do (in my flex) new MyClass() and add it to the
mxml, it doesn't show up with what I draw on drawingComponent.
How do I add the
/Library/Internet Plug-Ins/Flash Player.plugin
Flex Builder cannot locate the required debugger version of Flash
Player. You might need to install the debugger version of Flash
Player 9 or reinstall Flex Builder.
Do you want to try to debug with the current version?
I got this error before,
Ok.
1) I went into Flex Builder and installed the flash player that comes
in Flex Builder 3/Player/mac
After I did this, the project would compile and run without giving me
any errors, but it never updated (for instance, I changed the
background color, and it would 'compile and run', but the
For instance
trace('testing'); in the creationCompleteHandler() does not trace
testing...
likewise, if I delete all function calls out of the
creationCompleteHandler, it still calls them...
--- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote:
Ok.
1) I went into Flex
also
it actually runs MyApp.swf?debug=true
isnt it supposed to be MyApp-debug.swf ?
Ok, so I am working with bitmapData, using embedded jpgs.
I need to be able to dynamically replace certain areas with a given
branded color.
I have got it where it will replace the majority, but it leaves a
bunch of pixels around the edges when I use floodFill. I think this
is where threshold
If I have a bunch of images that need to be color-coded for a given
color, how would I do this?
Let's say I have a grid with 8 images, and all 8 of them have portions
that need to have a 'branded color,' but the branded color is
different depending on the user, and the images are different
--- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote:
If I have a bunch of images that need to be color-coded for a given
color, how would I do this?
Let's say I have a grid with 8 images, and all 8 of them have portions
that need to have a 'branded color,' but the branded
Hey, I need some help understanding the bitmapdata.transform() method.
the bitmapdata has this color 0x00ffe4 and I need to replace that
with 0xff.
How would I go about doing this?
--- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote:
Hey, I need some help understanding the bitmapdata.transform() method.
the bitmapdata has this color 0x00ffe4 and I need to replace that
with 0xff.
How would I go about doing this?
I am sorry, I meant threshold
I know its not through HTTPServices..
We were using SabreAMF when we were using PHP for the data... but we
have changed to RoR, does anyone know what the best way to get data is?
Is it easy to embed a flex application inside of an HTML page instead
of the app being standalone?
Any tutorials?
Any help?
just wondering if anyone has done this, or if there is any
documentation anywhere for it.
I can catch the enter keydown, and increase height, but the delete
doesn't work exactly the same. only if they are deleting a line
should the box get smaller, any ideas?
Heres the problem, I need to draw a gradient that goes from 0 opacity
black to 100% opacity black from left to right.
However, this also needs to fade out the further down you go.
The gradient is 10 pixels wide, and about 400 pixels tall.
So its essentially a horizontal gradient that fades as
1 - 100 of 136 matches
Mail list logo