Flex :: Character Getting Replaced By Blank When Passed As Application Param?
Feb 22, 2011
I am passing a string param into flex application as FlashVars.The param sometime contains special characters, everything shows fine except + sign which gets replaced by blank when it reaches flex.Here is the scenario for eg.I have a local variable in JS that gets some values and for this example it can be taken as following
var testVar = "some_test_string_that_contains_+_character";
Then to my Flex object AC_FL_RunContent I pass "FlashVars","test="+testVar
In the flex code on Init of application I have written
var testValue:String = application.parameters["testVar"].toString();
Alert.show(testValue);
Now this shows fine except the + character gets replaced by blank. It doesnt happens with other characters like /,@$-_ but the + character.
View 1 Replies
Similar Posts:
Jan 21, 2011
I read almost everywhere that the wmode parameter had to be set to opaque (some said it could be either opaque or transparent). When setting this through the flashvars parameter (this is in Chrome btw) this did nothing. After a while of getting frustrated, I added it as a parameter itself through addParam, and hey presto now it works.Is this a simply a Chrome thing? FF it works seamlessly as it was. Even IE 7 and 8 are behaving slightly better. I wondered if this was a bug because supposedly adding a parameter to flashvars should do the trick.
View 1 Replies
Apr 22, 2011
I have an animation of a blue ball falling from the top of the screen, bouncing off the bottom and exiting through the top. This animation "Bounce" is an action all "Ball" objects can perform. How do I apply this animation to other "Ball" objects? I thought of making a second layer (the skin of the ball object) that follows the first layer animation.
I am asking because I have an animation of a blank character performing actions, i'd like to be able to design and decorate several characters for my animation that can perform the animations of the blank character (template). My game randomly designs different faces/clothing for these character objects, but i'm not sure how to animate them based on an already made animation.
View 1 Replies
Dec 30, 2010
I'm trying to create an application that receives variables passed through FlashVars and makes use of the new TLFTextField. I have run into an issue with accessing the FlashVars after declaring a TLFTextField variable.
The code I have is as follows:
ActionScript Code:
import fl.text.TLFTextField;
var tf:TextField = new TextField();
[code]....
The HTML file is passing a FlashVars value of "title=ThisIsTheTitle" If I run the code, the tf TextField is empty. If I comment out the last line that creates the TLFTextField, the FlashVars come through fine and the tf TextField displays the "title" variable that was passed through FlashVars.If I change the last line to read:
ActionScript Code:
var titleTLF:TextField = new TextField();
It works fine (the "title" variable from FlashVars is show in the tf TextField). I don't understand why delcaring a TLFTextField prevents the FlashVars from being accessed.
View 3 Replies
Feb 5, 2011
Im using a few modules repeatedly in a Flex app and varying the conditions by passing in params via the 'loaderInfo.url' var. This works fine for the first iteration of a given module but subsequent attempts will always see the same params as the first creation regardless of what is actually used.
[Code]...
When I view the param in the 'CreationComplete' handler (eg 'trace( this.loaderInfo.url );') its the same every time (for a given module) regardless of what is actually passed in via the ?param=string. What am I doing wrong?
View 2 Replies
Jun 11, 2010
I am making my exe fullscreen using stage.displayState = StageDisplayState.FULL_SCREEN but it shows blank screen. When I press Esc key and back to normal screen everything is fine.
View 1 Replies
Dec 28, 2011
I'm trying to intercept the value that is taken from a DataGrid's GridColumn's itemRenderer and applied to the itemEditor, and vice-versa. I need to be able to format this value. However, my project is complex, so I may be focusing on the wrong idea in what I'm trying to accomplish.
I have a Spark DataGrid component (with ID dg) that I am dynamically populating from XML. I create an ArrayCollection from some nodes, and a regular Array from sub-nodes that is added as a property of the ArrayCollection. That ArrayCollection is then used as the dataProvider for the DataGrid.
Here is an example segment of a typical XML node and it's sub-nodes:
<item name="physOrderTable" text="" type="notes">
<cols>
<col id="0" text="Day/Time" />
[Code].....
This is the only method I've been able to use to achieve the desired result. This all works fine, if all I want to do is merely display information. But I need to be able to edit the values in each cell, and apply this back to the dataProvider, as I need to rebuild XML with the updated values later.
I have tried everything I can possibly think of to be able to do this. I built my own itemRenderer, then my own itemEditor, then scrapped them because it felt like I was re-inventing the wheel. But was I? I tried reading through the code for the DataGrid, GridColumn, and related classes, but I couldn't find any reference to the itemEditor beyond it being an IFactory. I have no idea where or how it tells that IFactory to be a text input or whatever it is.
Here is my issue:
When I turn on the DataGrid's editing, and double-click a cell, it takes the entire array of the col dataField for that column's cell, converts that array to a string, and displays the entire string in the edit text box. If I cancel the editing, or save the editing, it sets the string to the .col property. Then the labelFunction tries reading that string as an array, and it crashes. I was able to get the typeof the col dataField and converting it to an array if it's a string, but I shouldn't have to.
I need to have it display just the value of the cell for that particular row and column when the instance of the itemEditor is created. When that value is changed, I need it to apply back to that column's index in the .col array of the dataProvider. So, similarly to how it displays information in the labelFunction, I need to edit the information and send it back.
I've seen lots of custom itemEditors and itemRenderers for GridColumns, but these are hard-coded in the MXML. My grid is almost entirely dynamically created, so that's unfortunately not an option for me, as I won't even know how many columns or rows there will be when the DataGrid is created. I tried using rendererIsEditor, but that only seems to be on the MXML instantiation of the GridColumn, as there's only rendererIsEditable in the ActionScript, and it doesn't seem to work (or I don't know how to use it as intended).
View 1 Replies
Jul 30, 2009
I'm trying to render a Flex datagrid using an external XML datasource. Is there a way I can specify in the XML that a cell element should appear as a hyperlink?
View 1 Replies
Oct 23, 2009
I'm trying to understand how the Flex framework draws objects (Button, Label, Image, etc.). The Button class seems to draw itself by addChild()ing its ProgrammaticSkin. However, where in the framework is the Graphics object being passed around in the hierarchy to achieve the drawing. I want to get to the level of 2D API.
View 1 Replies
Sep 27, 2011
I am receiving xml from a webservice call that contains a nil="true":[code]I used the Flex DataService (webservice) wizard to create the service objects for the cacheEntry component. This object will be serialized later on a different webservice call and stored in a database.I set a breakpoint on the set SystemFK method in the service object. It appears that the value passed in was an empty string!Allowing this value to be an empty string will cause problems in the webservice implementation in Java on the other side. Since the database value was null it is expecting a null in return, If I avoid setting this value, the serviceObject should send back a null which will make the database happy.How can I detect that a nil = true is present in the XML in order to avoid setting this value?
View 1 Replies
May 19, 2011
I have a flex component, a VBox, that has content inside it. Text components mainly.The VBox is holding a report that I want to be able to save to PDF. I am using AlivePdf to achieve this but the PDF produced is blank when viewed in Adobe reader (latest version).When I open the PDF in Notepad++ I can see that there is definitely content in there and the file appears to be structured correctly.This is the method I am using to generate the PDF:
private function doPrint(whatToPrint:UIComponent):void
{
var printPDF:PDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );[code].....
View 1 Replies
Jun 22, 2009
I have been working on a script for weeks now and had a problem saving the file so i tried saving it to another location when i re-opened the file my actionscript code which was in english has gone and been replaced by what looks like is chinese or korean ??? is there anyway that could have happened and can i reverse it back??
View 1 Replies
Mar 2, 2010
I published my swf work in progress, it can be seen at [URL]
[Code]...
is where I'm trying to show the motorcycles... click on the tile list, a bike shows up... click another one, the first one is to go away to be replaced by the next clicked one. But all the bikes stay there, no removeChildAt(0) is happening.
View 2 Replies
Apr 20, 2007
What I am trying to do is write a class that could function on the x axis, or y axis, so when an instance of the class is called, the axis is specified. For example:
Code:
Scroll:ScrollFunction = new ScrollFunction(_x, MC);
class ScrollFunction {
function ScrollFunction(axis, targetMC) {
[Code]....
That's a very simplified version, but you get the idea. This won't work though because although Flash recognizes 'axis' as being equal to '_x', it does not recognize 'axis' as a property.
All I want to know is if it is possible or not. I could, of course use an if statement, but that would mean I would have to have to write the function twice, once for each axis, which is what I want to avoid.
View 5 Replies
Feb 28, 2010
Imagine the UI passes back an XMl node as such:
[Code]....
And behind the scene what it is asking that you instantiate a class as such: new Source("blooper", new Exp(4), new Erlang(4,6); The problem lies in the fact that you don't know what class you will need to processing, and you will be sent a list of these class definitions with instructions on how they can be linked to each other. I've heard that using a BeanFactoryPostProcessor might be helpful, or a property editor/convertor. However I am at a loss as to how best to use them to solve my problem.
View 3 Replies
Feb 24, 2011
I am using a Repeater in an Accordian which does not appear to see a single element in userArray. If I add another entry to userArray then the Repeater works fine.
private function currUsersServiceHandler(event:ResultEvent):void{
if (event.result.currentUsers != null)
{
if (event.result.currentUsers.user is ArrayCollection) // if more than one elements are present
{
[code]....
Edit:There is another thing I have just noticed i.e. that the accordian does show a single tab (when Array has a single element) but it's not labeled with the first name which I am setting. If I enter another user, two tabs appear and both are labeled with names I am setting. The first tab appears labeled too then.
View 1 Replies
Jul 21, 2010
Using Flash CS4 actionscript 2 Used the following code bellow in one frame to replace the curser, works perfectly but when I go to the next frame I want the curser back to normal.
Actionscript Code:
onMouseMove = function(){Mouse.hide();Bumbles._x = _root._xmouse;Bumbles._y = _root._ymouse;updateAfterEvent();}
View 1 Replies
Nov 30, 2008
I'm trying to make it so you're shooting bullets, but with each bullet it lags worse. The duplicate movieclip it being removed, AND replaced. I don't know why it's lagging. All the bullet is is a line.It used to be only shooting one bullet at a time, and it didn't lag then Should I go back to the old way I had it?Does it always lag after a lot of duplicates?Does it not delete the actions that are in the duplicate movieclip?
View 1 Replies
Oct 29, 2009
I've been tyring to figure this out for a while, but how on earth do I set a movieclip to be replaced by another when the mouse hovers over it? I'm trying to create a Mac portal so this is more than necessary in the creation XD Nevermind, I'm such an idiot! Just change the Up, Over,
View 1 Replies
Dec 4, 2009
My question has to do with tweened buttons that call an element onto the stage from right , on centre stage this called element stops centered. This is as far as I get...What I would like to happen is ,on the press of another tweened button the element from first tweened button vacates left and is replaced with called element from this button, and so on for 5 separate buttons, of course these can be pressed in any order..
View 5 Replies
Jun 12, 2010
where i developed an app that uses the webcam, adds an image and then takes a picture, well, i implemented textbook style the printjob, and well everytime after printing my swf goes blank. http:[url]...........But now i have been continuing testing, and i found out, that if i print from another application and then comeback, my video stream from the webcam is blank, this has no sense at all, since i am printing from another app. http:[url]....What is going on here i mean, this must be a flash player issue right.
View 1 Replies
Apr 15, 2010
and is flash being replaced by another standard like html 5 completely?
View 5 Replies
Jul 19, 2010
In IE, with Flex application embedded, changing page location with JS like that: document.location.href = "#someFragmentIdentifier"; causes change of page title to "#someFragmentIdentifier". I've read that the cause of that was supposed to be integration of Flex application with browser navigation, so I disabled it at the Flex compiler properties screen, however it didn't fix anything.
View 2 Replies
Jan 20, 2011
How can I make datagrid height is equal to data content in Adobe Flex however suggested answers did not work for me.The blank row at the end of the DataGrid does not display at first, until I begin editing editing the last row, at which the entire grid is immediately pushed upwards, making the top row disappear and the blank bottom row reappear.
View 3 Replies
Jan 24, 2012
I developed a flash app and i need the functionality when I click on a sprite I want to open a web page in browser for example [URL]. I use flex sdk 4.5 and I changed the use-network tag from false to true in flex-config.xml. But when i compile my project and load the swf in browser I get everything blank. I tried also to use html page with swf embeded but same result
View 1 Replies
Oct 8, 2010
I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?
View 1 Replies
Mar 4, 2011
I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.
View 3 Replies
Aug 4, 2011
How I will be back in Login Page after click of logout which is in application's component.
Project.mxml
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
[Code]....
View 2 Replies
Dec 22, 2011
how can i delete storage directory instances or folder while uninstalling any air application. In my application when i first time run my application, application copy some data from application directory to application storage directory. now i want to delete all data and application directory folder also while uninstalling application.
I am doing that because when i launch any update then application is accessing old data which conflict with my application new features.
View 1 Replies
May 16, 2010
I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?
View 1 Replies