Flex :: Spark CurrencyFormatter Formats '0' Incorrectly?
Feb 10, 2012
I'm having trouble with a spark CurrencyFormatter, which is failing to format the value 0 correctly.All other values are formatted fine.I'm using Flex 4.5Here's an example:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code].....
View 1 Replies
Similar Posts:
Jan 26, 2011
I need to format the column with a currency formatter. I know how to do currency formatting I just need an example on how to implement it into the datagrid column.
View 2 Replies
Jul 1, 2011
I have a renderer that looks like this:
[Code]...
Loading thumbnails using this method works perfectly. The issue happens when you scroll the List.
View 1 Replies
Feb 7, 2011
I'm looking to add a couple of buttons to the title bar of a Spark Panel or Spark TitleWindow. Is this possible to do without making the panel from scratch?
View 1 Replies
Nov 2, 2009
I have a textarea where I measure the textWidth and textHeight to make sure the user cannot enter more text than can fit in the text area. I also extended the textArea with a textHeightNow and textWidthNow that measure the textField's dimensions since they update w/out requiring validation. Now this works great for 90% of the embedded fonts I'm using but any fonts that have giant serifs are not measured properly, for instance look at the 'f's in this text area:You can see they get cut off on both sides because textWidth and textWidthNow both return an incorrect size not taking into account the massive serifs.
View 1 Replies
Jun 3, 2011
I have a date field in flex and have the format set to YYYY-MM-DD. As long as the user clicks the calendar pop-up it set's it that way. However, I need to allow the field to be human enter-able so they can type in a date.The problem is, most users want to type the format MM/DD/YYYY. I have a tool tip that shows the format, but how can I check the format and change it to the YYYY-MM-DD format, or do something else appropriate (alert?)?
View 1 Replies
Oct 15, 2009
I have found this great tutorial, about uploading files with a Flex app, using Php to do the server scripting for us.
http:[url]....Its great, but i wanted to know what changes should i do at the ActionScript so that only accepts image files, and if possible to limit the file size upload and show a message when one of these conditions are violated.
EDIT
File Filter & Size Limiter Done. Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" [code]........
View 3 Replies
Jan 26, 2012
I am working on a drag and drop feature for the sparkScroller. This is sort of how my layout looks:
<mx:Canvas>
<s:Scroller id="items" .. />
<mx:Box id="dummyRow" visible="false" />
<s:View id="touchView" visible="false" />
</mx:Canvas>
So when you hold your finger over a row in the items Scroller for more than a 30 seconds, the touchView becomes visible so does the dummyRow. The dummyRow gets populated to look like the row which you held your finger over.
So the touchView has the event handlers for moving your fingers and places the dummyRow where your finger is. The problem I am having is even though the touchView is reacting to my move events, the scroller still keeps reacting to my move events as well even though it's a sub layer. Because I started on the scroller it still keeps track!
How can I remove focus / tracking from the scroller?
View 1 Replies
Jul 6, 2011
I have a spark skinnable component which contains a datagroup with images. The datagroup is scrolled by hovering the mouse over it. Everything works fine except one thing: after I change the datagroup provider, I need to scroll down automatically. The problem is the images are not loaded immediately after I set the provider so (contentHeight - height) does not yet represent the actual maximum scrolling position. Is there an easy way of telling the datagroup to scroll down as its content loads? Because the workaround seems to be not so straightforward. This is the code for scrolling(thumbnailStrip is my datagroup):
[Code]...
View 1 Replies
Feb 28, 2012
I have created a style in which i am defining a font family.When i apply this style to label it reflects the font were as there is no change when it is applied to a spark button.I Tried various way to Apply font style but it doesn't work.Other properties work fine except font family. Even i tried creating skin class and set the font family style of label in it. While previewing the skin i can see the changes but when i apply it to buttonApproach 1
@font-face{
src:url("HARNGTON.TTF");
fontFamily: MyF;
[code].......
View 2 Replies
Apr 13, 2011
How can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?
View 5 Replies
Mar 11, 2011
I'm creating the Label component like this
var label:Label = new Label();
label.text = "some text";
label.styleName = "someStyle";
addChild(label);
But it stay invisible until I explicit set the width and height.How can I make the label to be auto resized according to it's text?
View 3 Replies
Jun 25, 2011
Anyone missed the old simple method for skinning a simple button?
CODE:
The problem im having is that, this method of creating a simple button with skin is being phased out : Infact it is no longer supported in flex 4.5 mobile projects.
So the question: Is there a simple way to perform this, with spark buttons (which is suppose to be the new way to go). As simple as possible.
Basically i only need a button with 2 images : down/over & up. And i want to keep the code as simple as possible : The new skinning methods, seems to really adds way too much lines for something that used to be as simple as the example above.
View 3 Replies
Oct 4, 2011
Flex 4.5+ is I guess everyone is working on nowadays so I asked this question since I haven't yet find working both spark datagrid and the mx printdatagrid components together.
What I'm trying to achieve is to print all the data inside my spark datagrid. So when I do my research, we use the PrintJob or the FlexPrintJob classes.It works fine but when I need to print multiple pages since the data on my spark datagrid is quite long, I can't somehow find a way how to do it.The print output is only upto where the height of my spark datagrid.So in my research, they somehow managed it to use the mx:PrintDataGrid component.But sad to say, they did it with an mx:DataGrid also.how to use the mx:PrintDataGrid along with s:DataGrid.
var printJob:PrintJob = new PrintJob();
if (printJob.start())
{[code]....
If converting a spark datagrid columns to the mx datagrid columns is not possible, is there a way that I can print all the data on the spark datagrid using multiple pages?
View 1 Replies
Nov 10, 2011
I have been able to disable tabs in a tab bar using the following tutorial.
[URL]
This only works for mx tabbar. Does anyone know how to do this for a spark tabbar? I prefer the lnf of the spark one. When I try it with a spark tab bar it just disables the viewstack of the tab and not the actual tab. An alternative solution may just be to make the mx tab bar look like a spark toolbar with the rounded edges.
View 1 Replies
Mar 28, 2011
Create new AS3 fla fileIn publish settings, click 'Generate Size report'Put some text on the stage - Classic text, static (Though it doesn't seem to matter)Make sure the font is '_sans' (There is no 'Use device fonts' option for this font choice)Publish the fileNote that _sans is now embedded in the SWF, occupying bytes in the size report. Try the same in CS3, and there is nothing embedded, as you would expect. Unfortunately I can't get my fla loaded into CS3 because CS5 will only allow me to export as CS4.
Similarly, change the font to something specific, like Verdana, and set it to use device fonts and it still embeds font data (We're talking about 3 or 4k) but doesn't list any glyphs. Occasionally though, by screwing around, it doesn't embed anything. Then nudge some text in some magical way and it's back to embedding redundant data.
View 2 Replies
Dec 9, 2010
I have an html text field that displays content from an xml file, and a class that determines whether or not to show a scrollbar.The code that determines this is as straightforward as
if (field.maxScrollV>1){
showscrollbars()
}
And 9 times out of ten it is working. Sometimes - it seems when the html contains <li> - maxScrollV is reporting '2' and the scrollbars are showing, even though all text is visible onscreen and it will not actually scroll at all.
View 2 Replies
Jul 2, 2009
I have a project with flash, php and mysql. We have a form for notes, that sends and stores a note, and then we have some other forms, and the other makes a query on a database to know what equipment some employee has. They are different swf movies loaded in another one. The issue is that whenever you make a query for an employee, there is a blank note saved. I already tried to trace something but nothing shows up. The code for notes is NEVER executed on the list change action, but still blank notes are added to the database. Here are the flash codes:
[Code]...
View 1 Replies
Nov 5, 2009
I have a series of images coming in from XML, they are labeled sequentially something_01 - 21. No problems there at all.
When I add the image links to an XMLList, they trace in order... something_01 - 21. No problems there either...
Hell, even when I trace "loadedImages" below they trace in order.
But on stage... though all the images appear & line up the way I want, they're random in order. Image 15 | Image 12 | Image 17 | Image 6, etc...
I'm sure it can be in the code but it's really very frustrating. I first add each image to a box and then load it to a content container.
Code:
XML...
function formatXMLContent():void {
for (var i:uint = 0; i < tourImage.length(); i++) {
var loader:Loader = new Loader();
[Code]....
View 0 Replies
Mar 5, 2009
I've been working with a marginally subclassed form of a TextField, which I need to display with embedded fonts. I'm noticing some surprising behaviour with the width property when embedded fonts are enabled, which is causing me trouble further on in my code.Due to the way I am animating text, I am displaying each word in a separate TextField (or Word object, as I've subclassed it). I then reassemble a line of text with even spacing, and to that I need to know the width of each word, so that following words will begin at the correct x-position. Before I began to use embedded fonts, the width was reported accurately, as expected, but once I enable embedding, the width property is reported as a much lower valueI've included the constructor for my Word object, which shows some traces for debugging
PHP Code:
public function Word(wText:String, partOfSpeech:String, chunkTag:String) {
text = wText;
[code]....
View 3 Replies
May 22, 2009
the loader class isnt loading images to their correct scales.they are always stoo short in width. is there a work around for this? it may be a common issue. im using AS3 for this.
View 1 Replies
Jun 6, 2009
I'm trying to load some jpeg's into my movieclips. They are loading, but my height is displaying wrong. The image is 64x100px. I'm changing my movieclip to show the same size, but the display of the image is stretched.Doing a Debug of the movie, the movieclips show the correct dimensions, but the images are still stretched vertically somehow. My _xscale and _yscale are both at 100.
This is in actionscript 2.0. I've ran this file on both MX2004 and CS3, with the same result. The images aren't progressive,
Code:
numImages = 30;
spacing = 10;
x_pos = 0;
y_pos = 0;[code]..........
View 1 Replies
Mar 13, 2007
I'm pulling text from an XML file that was created throug Filemaker. Some of the text has special characters like ampersands or quotes etc. In the XML file those characters look like they would look in a regular HTML file (& or ") But once it's imported into the textfield in Flash it still only shows the long form (&) instead of the character. In the Property Inspector I clicked on "Render Text as HTML" but it doesn't make a different.
View 1 Replies
Aug 8, 2010
I recently purchased a flash template and after a lot of configuration and tailoring to my own requirements, I have the website look and feel exactly how I want it. I then proceeded to upload the site into cPanel and more specifically Apache, and unfortunately the display within the flash has now gone completely wrong. There are extra spaces in sentences where there were previously none and numerous images and text titles do not display any longer.his occurs in all browsers when viewed live but when viewed from my local computer via my hard drive all browsers display the content as normal??I am more of a Cisco/Network consultant therefore my knowledge in this area stretches a very small amount. I have added the Apache Handlers for .swf, .xml and the image formats but that's about as much as I know
View 9 Replies
Jul 25, 2005
I'm using a Movie Clip (mc1) as a button and for it to be able to function with a mouse click, I placed a Button symbol (b1) inside of the Movie Clip and put some ActionScript onto the nested Button symbol:
Code:
on (release) {
_parent.attachMovie("mc2_id", "dot", 100);
dot._x=150;
dot._y=100;
}
As you can see, I'm trying to get another Movie Clip (mc2) onto the stage and that part works fine, but for some reason it keeps ending up at the top-left corner of the stage even though my code says otherwise. What am I missing? I'm including the .fla if anyone would be kind enough to look at it.
Also, when I was setting the linkage properties for the clip to be attached, I had to enable the "Export in first frame" function just so it would work (I normally don't since I was told it would kill a preloader if I had one); how would you export things without having this box checked if you normally don't do that sort of thing because of a preloader?
View 3 Replies
Mar 7, 2009
I am having a rather annoying problem!! Basically my code is triggering the event when it definitely should not be...Here is my layout:
Node container - holds all my Sprites and has a MOUSE_OVER (<works fine) and a MOUSE_OUT / ROLL_OUT (<neither of which work) Sprites in Node container - contain text + images but have a Shape hitbox on the top layer meaning there should be no confusion!Basically, I check to see if anything rolls over my node container with MOUSE_OVER which triggers correctly and allows me to target which sprite the user has rolled over.
However, when you move the mouse over the sprites (but not outside!) if constantly triggers my MOUSE_OUT and ROLL_OUT events, it makes no difference which one I use...This is is really frustrating and I can not think of even an ugly work around in my code to solve this, it would be nice to fix it and add it to my knowledge later.
EDIT : Actually the MOUSE_OVER triggers as soon as the OUT event has triggered incorrectly.
EDIT 2 :Basically I have a custom cursor and this is the root of the problem, it thinks I am rolling over the cursor and then out constantly.. OK so how can I Ignore my mouse cursor image? So it doesn't think I am rolling out all the time..?
EDIT 3 : FIXED
mouseEnabled = false;
mouseChildren = false;
View 1 Replies
May 8, 2002
I did this e-card, and it seemed fine. Then I played it on another persons computer (both PC), and the sound failed to work. I'm using Flash 5. Other e-cards with sound produced by other people worked fine. So here's my code. On the first frame (root) I have:
[Code]...
View 4 Replies
Aug 20, 2010
Is there more work, or source code files required to customize your look and feel (skins)?
How maintainable and readable is Spark relative to Halo?
Is it more productive and easier to customize overall than Halo, about the same, less?
If you're an SDK user who was 99% happy with Halo's appearance (maybe just a few CSS tweaks), is switching to Spark creating more work for you? Do we now need to employ designers to get a reasonably complete look and feel?
View 2 Replies
Aug 22, 2010
I would like to add some fancy drawing beyond the CSS formatting. How can I put a skin on a spark Label ?
View 1 Replies
Oct 19, 2010
I'm using a spark combobox in my AdvancedDataGrid, as an itemEditor. At some point I noticed that clicking on the scroll bar arrows would close the CB - very annoying. After much research I found this on Stackoverflow which completely solved my problems - One more and last lingering issue left though: when selecting an item from an open dropdownlist the mouse click seems to propagate to the cell below once the dropdown has closed. I assumed that the fix above would take care of this last issue, but it doesn't seem to. I tried to override the item_mouseDownHandler for the CB and stopImmediatePropagation() of the mouse event post its usual behavior, but that also seems to have no effect. I also tried setting the mouseChildren property for the skin['dropDown'] to false, but that impairs the whole functionality.
View 1 Replies