Actionscript 3 :: Displaying Code In Flex?
Sep 23, 2011
I have AS3 script bitfade.text.steel returning type Sprite. It works in Flash environment but not in FLEX. In Flex it displays nothing. No errors appear. It looks like the attached code also works. I use Flex SDK 4.5
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
[code]....
View 2 Replies
Similar Posts:
Dec 14, 2009
Two days ago I managed to create XML based gallery the problem is I want to create a menu OVER the gallery the issue is when I create an object and place it over the gallery it actually displayes it underneath the gallery.
View 4 Replies
Jul 28, 2011
I am trying to place an image besides the label in y-axis. So I have created a custom label renderer(A HBox containing and ). The source for the image has to be set based on a property present in the data provider. The problem is, I am not able to access the BarSeriesItem in the fnSetSource() method.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
width="1280" height="750">
[code].......
View 2 Replies
Sep 25, 2010
I want to create a list of progress bars and update the list accordingly.I have group data in an Array as
<mx:Array id="arr">
<mx:Object label="Group One" min="0" max="200" currentValue="60" />
<mx:Object label="Group Two" min="0" max="300" currentValue="50" />[code]....
The values in the array object indicate name of group,minimum,maximum and current value for the group (to be used in progressbar).I used the list with "mx.controls.ProgressBar" as itemRenderer as
<mx:List width="100%" dataProvider="{arr}"
itemRenderer="mx.controls.ProgressBar"/>
Now what I need is whenever currentValue field of Array "arr" changes i want to update the progressbar "progress" value to currentValue (where min and maximum value of progressbar are stored in Array "arr").
View 3 Replies
Jul 22, 2010
How can I display one component on the top of another one in flex without explicitly mentioning x-axis & y-axis?
View 2 Replies
Mar 31, 2010
I have a custom dataGrid that acts more like a 2D list (if that makes sense at all). I am dynamically creating the columns and recreating the dataProvider to suit my needs. While debugging I can see that I am creating the columns and setting them to the dataGrid and creating and setting the dataProvider, but for some reason I am able to see the dataGrid and the columns but not the data.
[Bindable]
private var mockData:ArrayCollection = new ArrayCollection([
{value: "425341*"},
{value: "425341*"},
[Code]....
View 2 Replies
Apr 20, 2010
I'm trying to extend the Image class but hit a problem that I can't get past. I have a private image (img) that loads an image and a function that takes that image and copies it onto the parent. The debug function "copyit2" displays the image fine (so I know it's loaded OK). But the function "copyit" doesn't work - it just displays a white rectangle. I can't see how to make copyit work so that the original image is copied to the BitmapData and then subsequenty copied onto the parent?
(The idea is to do some processing on the Bitmap data before it is displayed, although this isn't shown here to keep the example simple.) I suspect it is something to do with the security of loading images, but I'm loading it from the same server as the application is run from - so this shouldn't be a problem?
[Code]...
View 1 Replies
Sep 7, 2010
We have a Datagrid:[code]where practiceJoinRequestThicks is an ArrayCollection of PracticeJoinRequestThick object.The PracticeJoinRequestThick has an Practice Object.Practice has an arraycollection "PracticeContactAddresses" which is an arraycollection of PracticeContactAddress object and Practice ContactAddress object has Address object which has the field city:String.Now when I try to display the City, it does not work.
View 2 Replies
Dec 24, 2010
In the following code i dont have any error but why is that the addchild(video); i.e, the the video captured by webcam is not displayed
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
[Code]......
View 1 Replies
Apr 16, 2011
I have an application whit accordion
<mx:Accordion minHeight="200" includeIn="radegund0" top="10" bottom="10" left="10" right="10" openDuration="2000" openEasingFunction="{Elastic.easeOut}">
<s:NavigatorContent width="100%" height="100%">
[Code]......
but when click on the second tab for the first time the content is not shown until the effect is over.
View 1 Replies
May 30, 2011
I'm a Flex noob and I've been struggling with this problem for a last week, and I'm at my wits end.
I have opened the following XML file
<root>
<person>
<city-of-death>asdf</city-of-death>
<place-of-death>qwert</place-of-death>
</person>
[Code]...
I would be so incredibly grateful if someone could help. I am pulling out my hair!
View 1 Replies
Oct 27, 2011
I have 2 images that are used hundreds of times throughout my application. Although they are only ~2.5 kilobytes each, they're multitude is causing the browser to load nearly 7 megs of data if reference them like this[code]...
Instead of having this issue, I would like to embed the image once, and then repeatedly reference the embedded object. I'm not exactly sure how to do this. From what I've read online, doing the following should work[code]...
View 1 Replies
Mar 25, 2012
I worked with HaXe and actionscript programming, but I'm new to flex. Here's my question. If I want to get image from server (blazeds) in AS3 I'll load it to Loader a loader and then add it to some e.g. MovieClip. Should I do the same to load an image in flex? Or there some common for flex schema for doing that? Another question is. If I have an Image on blazeds server what will a better way to get it: to pass it through java (i.e. read it, and then pass to client) or directcly with Loader?
View 2 Replies
Jan 28, 2009
This is probably a very easy question but i dont really have an answer for it... what i want to do is show one full-size element after another. Currently im using a VBox with 2 elements inside, but it just divides itself into half and adds sliders onto both elements. What i want is to show both elements in their full size and for the VBox to add a slider if necessary.
View 9 Replies
Nov 6, 2009
I have a List, that is not showing any items until you scroll, then the items show up. Does anyone know how to fix this? I tried calling list.invalidateDisplayList(); and list.invalidateList();
EDIT: Here is some code:
<mx:Script>
<![CDATA[
[Bindable][code]...........
I found that if I add creationComplete="{list.dataProvider = _xmlList }" It solves the problem.
View 2 Replies
Nov 6, 2009
getting data from a database and displaying it in a Flex (Flash) swf. Currently I have some C# code that gets the data from the DB and saves it to an XML file on my site. Then the .swf reads that xml file.
protected void Page_Load(object sender, EventArgs e)
{
DataTable _dt = new DataTable();
_dt = ProductList.GetProductssForAdmin(10);
[code]....
View 4 Replies
Nov 20, 2009
I am using a WindowShader in my website. every thing is working fine. but for somereason i am unable to display any background for my "home_feeds" VBox. If i add components on it, i can see them. But they backgound is not working. Even if i remove every thing from the Canvas(with home_feeds) i still dont see any background. But if i remove the comments from my mx:List.. i can see the background.
my code is given below
<mx:VBox right="35" paddingRight="10" verticalAlign="top" horizontalAlign="right">
<containers:WindowShade id="shade" opened="false" openIcon="{null}" closeIcon="{null}" paddingTop="0"
[Code].....
View 1 Replies
Jan 6, 2010
I have something like this xml data
<data>
<result month="Jan-04">
<employee id="1">
[code].....
View 1 Replies
Jan 25, 2010
I have datagrid with data populated.when user clicks on one particular cell of one column ,popup window has to be dispayed.And also same requirment is there for another column also.I could not find how to do it for cell.doubleclick and click properties are applicable to row selection.
View 1 Replies
May 25, 2010
If the below code is run (i know the cData sections are not visible in the preview, something causes it to be ignored).
The result does not represent the data correctly.
1. Flex ignores missing date 24 aug for DECKER.
2. It wrongly associates 42.77 to 23-Aug instead of 24-AUG.
Is there a way in flex, where the x-axis is a union of all available points ?
[Code]....
View 2 Replies
Jun 10, 2010
I have a bit of a memory leak issue in my Flex application, and the short version of my question is: is there any way (in AcitonScript 3) to find all live references to a given object? What I have is a number of views with presentation models behind each of them (using Swiz). The views of interest are children of a TabNavigator, so when I close the tab, the view is removed from the stage. When the view is removed from the stage, Swiz sets the model reference in the view to null, as it should. I also removeAllChildren() from the view.
However when profiling the application, when I do this and run a GC, neither the view nor the presentation model are freed (though both set their references to each other to null). One model object used by the view (not a presenter, though) IS freed, so it's not completely broken. I've only just started profiling today (firmly believing in not optimising too early), so I imagine there's some kind of reference floating around somewhere, but I can't see where, and what would be super helpful would be the ability to debug and see a list of objects that reference the target object. Is this at all possible, and if not natively, is there some light-weight way to code this into future apps for debugging purposes?
View 2 Replies
Sep 2, 2010
I'm getting nothing with this:
mainAns.htmlText = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>';
Maybe it has something to do with the quotes? the text will be retrieved from a database.I dont see what I am doing wrong
I think it's the way I calculate the number of lines in the string... How would I calculate the amount of lines using rich text?
View 1 Replies
Dec 22, 2010
I have a Datagrid with an ItemRenderer assigned to a column which is a Currency column(String). The renderer is mean to display the Flag of the currency eg; for USD it should display a USD flag image etc. At the moment the column is appearing Blank without an image. I have the following renderer (which extends UIComponent). I am dynamically loading the images in the commitProperties() method. At the moment I have hard-coded it to the USD image to get it to work
public class CenteredEmbedImage extends UIComponent implements IListItemRenderer,IDropInListItemRenderer
{
private var _loader:Loader;
[Code]....
View 1 Replies
Jan 17, 2011
I have the following Actionscript code in my Flex 4 app to display images on a Sprite. Works perfect in the local flash player while developing this:
private function initializePhoto():void {
var photoLoader:Loader = new Loader();
photoLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPhotoReady);
[code].....
View 2 Replies
Feb 23, 2011
I'm working on a flash cards application and am using an ArrayCollection of Objects to store each cards individual data. When the user click the 'save' button, the text from the two textAreas and the 'title' textinput are stored in the AC as one object with .title, .side1 and .side2 properties that contain the text from the flash card. I have made a List in a separate class I want to have display the title of each card the user has created, but after days of researching and looking around, I still cannot get the display to list the titles.
Part of my NewCard.mxml:
<?xml version="1.0" encoding="utf-8"?>
<fx:Script><![CDATA[
import flash.events.EventDispatcher;
import mx.collections.ArrayCollection;
import spark.effects.SlideViewTransition;
[Code] .....
View 1 Replies
Mar 7, 2011
I have a flex app that used to be an internet based app. In it I have a function that creates tooltip error messages when I tell it to create an error message. I pulled this app out verbatim to a desktop app and restructured things a bit to get it to run, but I did not mess with the core fundamentals of the mxml file that utilizes this aside from changing the root tag from a type of 's:Group' to 's:Window'. Everything runs correctly, but the tooltips are not displaying.
Here's the tooltip code (inline mxml code in the fx:script cdata tag):
import mx.controls.ToolTip;
import mx.managers.ToolTipManager;
public var errorTip:ToolTip;
private function createErrorMsg(errorMsg:String, object:Object):void {
if (errorTip){ToolTipManager.destroyToolTip(errorTip);
[Code] .....
Basically, I pass the function a string and an object (text input, checkbox, button, etc...etc...) and it positions it and displays the error message. This fully works in my web version, but not in my desktop version.
Here's the code that instantiates the window:
var window:LoginWindow = new LoginWindow();
Window.systemChrome = NativeWindowSystemChrome.NONE;
Window.transparent = true;
Window.open(true);
Window.maximize()
On a side note, I check to see if the errorTip exists at the beginning of the function and then destroy it so that the higher scoped variable 'errorTip' always equals the reference to the currently displayed error. This allows me to just destroy that error tip on form validation and then error check again, but it only allows one tooltip to be displayed at a time. Is there a better way to query the tooltip manager for all of it's currently displayed tooltips and destroy them all?
View 1 Replies
Apr 12, 2011
Been tearing my hair out for ages trying to get my custom ContextMenu to apply to a TextArea, It will just display the default (copy, paste ect...).
import mx.events.FlexEvent;
public var nm:NativeMenu = new NativeMenu();
public var cm:ContextMenu = new ContextMenu();[code].......
View 1 Replies
Apr 13, 2011
i have a namespaced Xml structure :
<rootlevel xmlns="http://www.wigo.org/simo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wigo.org/wigo ./schemas/lexicon.xsd">
<name>simulation</name>
[Code].....
now, i have a labelFunction that passes in the xml..as an object but when i ran the programme, the tree view has each node, name, num_vars and variable as branches but the content in each of them was null and blank.
how can i properly display the namespaced XML on a tree view such that it shows every branches and elements in each branch?
private function treeLabel(item:Object):String{
var label:String = item.localName();
return label;
}
View 1 Replies
Jul 8, 2011
I am experiencing some rather quirky behaviour with datagrid itemRenderers. First, I create an ArrayCollection as follows:
[Bindable]
private var myBooleans:ArrayCollection = new ArrayCollection([false,true]);
And afterwards I bind it to a datagrid:
<mx:DataGrid dataProvider="{myBooleans}" width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn
xmlns:mx="library://ns.adobe.com/flex/mx"
[Code].....
When running this, the datagrid only shows a row with the correct itemRenderer if the boolean == true. For the row where the boolean == false, it will display an empty row.
I would also like to add that wrapping the boolean in a wrapper object will not cut it for my use case since I will receive an ArrayCollection of unwrapped booleans through an RPC call.
View 1 Replies
Aug 9, 2011
I have a flex AreaChart with a custom dataTipRenderer:
<mx:AreaChart id="numParticipants"
dataProvider="{UsersModel.graphData.data_points.point}"
seriesFilters="[]" right="10" left="10"
[Code].....
View 1 Replies