Flex :: Fusioncharts - Passing XML String To A FusionWidget?
Oct 4, 2011
If I set my HLED Widget's FCDataURL to some a valid XML the LED shows up fine but now I want to change the HLED's value programatically. For this purpose, I have made a string named xmlData, containing data from an XML file as shown below:
String for XML:
private var xmlData:String="<?xml version='1.0' encoding='UTF-8'?>" +
"<chart chartBottomMargin='5' lowerLimit='0' upperLimit='100' lowerLimitDisplay='Low' " +
[Code].....
see the chart load up with value = 66 but all I get is "Error in loading data".
I'm having trouble passing my variable (dayValue ) into my string. The goal is to be able to count backward or forward x amount of days. I keep getting compiler errors. time.
ActionScript Code: var dayValue = "+7"; var myTime:Date = new Date(2008,9,19,12,0,0);
I'm working on an adventure game and I need to find a way to pass the next MovieClip name to the function that loads it in the main timeline.
ActionScript Code: Bowl_btn.addEventListener(MouseEvent.CLICK, BowlClick); function BowlClick(evt:MouseEvent){ var nextMovie:String = "nameOfNextMovie"; this.parent.parent newMovieLoader (nextMovie); }
This is all good but I can't find a way to use the nextMovie parameter in the function and load a movie from the library. I hope you can understand my explanation..
I am working on designing a "flyer" type of advertisement at the moment... and I have pretty much everything working... everything except for this, that is. I need to be able to pass a string into flash that would basically be XML into flash. I know how to pass strings in, but where this has many "'s and /'s. "FlashVars" looks like this as an example...
I also have this in my embed tag and for some reason, this is what I get on my page when I try to load it up...Big Empty White Space " /> " quality="high" bgcolor="#ffffff" width="550" height="400" name="temp" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[URL]" /> It's like the XML is terminating the string or something.
im making a function that limmits text to a specified number... only problem is i cant seem to pass in the text var that contains the text
Code: var textF1:String = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam neque purus, aliquam sed, sagittis tincidunt, adipiscing ac, urna. Ut libero urna, nonummy sodalesxxx";
I can then access it and get to to trace from anywhere like this:[code]However...I need to to go into something being converted to a string...like this...txt.load("xml/january/1.xml");Where the Janauary is replaced with the global variable. However, everything inside the quotations is being converted to strictly text, so that txt.load("xml/monthvariable/1.xml");Literally looks for the "monthvariable" folder instead of the January Folder. How can I put a variable into a string like this, so the variable is actually the variable and not the strict text?
I have 190 movieclips which display various types of information. When a user clicks on a movieclip, it has to tween larger but also send a string to a method. I'll probably e.currentTarget to use one function which contains a tween and I wondered if there was a quick way to pass string info in a similar way?
So, each movieclip has it's own value which can be passed to a method which will use that value. The only way I can think of so far is to have 190 functions which send the string data to the appropriate place. I'm trying to avoid that if I can.
I'm trying to design an interface that to simplify the construction of a string. Here's an example: My output (using the getURL command) needs to be in the form of: http:[url].....
I'm able to define variables for x, y, and z, however I am unable to figure out how to substitute the defined values for those variables into the string when it is time to send it.
i am trying to load different xml that get generated through .net when I am trying to pass varibels i am getting undefined. Can someone give me a heads up on what i might be doing wrong. from what I have read and learned I can pull via-
How you pass a query string using the AC_FL_RunContent? in the old days you would do something like move.swf?isOn=something;How is that done today using the AC_FL_RunContent.
I'm fed up of having to import the tweener class every time I create a tween, so I want to create a global function that I can call which will import them for me, as well as executing a tween.
The problem I'm having is that I can't pass the parameters as a string... Do I need to convert it into code first?
Edit: I know I could pass each parameter individually, but I want to avoid doing this, as the diversity of the tweens I need to do is great, and it would will mean passing about 100,000,000 variables to the tween... okay maybe not that many, but probably about 20 variables which would probably take longer than the inital hassle of importing the class.
I'm trying to design an interface that to simplify the construction of a string. Here's an example: My output (using the getURL command) needs to be in the form of: [URL] I'm able to define variables for x, y, and z, however I am unable to figure out how to substitute the defined values for those variables into the string when it is time to send it.
The app is basically a small product catalog, depending on the choices made within the app I need to feed that data as a string into a text field in a html form that the app will redirect to when a submit button is pressedMy knowledge of AS3 is pretty limited and I'm learning it on the fly and I've really no idea how to accomplish this.Somebody said I should use the ExternalInterface function but I've really no idea how to do it and on reading the flash help file it seems that ExternalInterface communicates with the html page in which the .swf is located, whereas I need it to pass data to another html page and then load that page.
For instance say I have a html page called forms.html and that page has a textfield with the ID: FlashOutput and Label: Your Order, I have a string of data and a submit button that redirects to the URL form.html how do I pass my data string to the textfield within that html page?
I have a dynamic text field in flash that is populated by an input box. The dynamic text field has a maxmium width it can be. So i have it as multiline WITH wodrwap on. My problem is that I have to send this data to server and for the php to be able to text the text and output the text as it is displayed in flash. There seems to be no way of finding the linebreaks and passing them in the string as far as I can see?
I thought this would be a simple one, but i am stumped. So I resulted to using this less than optimal solution, just to get it working...
if (lobby.gamemap.selectedItem.label == "Map1") map.AddMap(new Map1) else if (lobby.gamemap.selectedItem.label == "Map2") map.AddMap(new Map2) //Map1 and Map2 are movie clips in my fla library, with linkage Map1 and Map2
my Problem is that i want to load a external swf in the main swf main by passing Querystring from flash cs4(AS3) and get variables from html page...... but Not working Iam attaching the fla files folder
I'm trying to figure out how to set a MovieClip return value by passing a string argument and using that string to define the child of a given movieclip. I'm doing something wrong because I keep getting null traced instead of home_mc.[code]
I am trying to pass the variable myMOV to my flash using the following additions in my object tag:[code]I want flash to gotoandplay the label "music" but it seems I am not passing the variable correctly.
I hope someone can help me with my dilemma. I have built a video player in ActionScript 3.0 which consists of a FLA file which has the video player on it and a separate AS file that contains all my ActionScript 3.0 code for the video player. I have moves (FLV & MP4 files) stored on my Flash Media Server 3.0 server. If I hard code the name of the movie in the AS file and publish the FLA file, it creates an SWF file that will actually play the movie on the FMS3 server. That lets me know the video player works.
I want to pass a variable to my Flash .swf file through a query string.In my Flash movie I have an animation of 2 goats fighting, I want the query string to tell the movie to skip to the end of the movie if variable goats==attacked. I used the following ActionScript:[code]The problem is that no matter whether I attach the query string goats=attacked at the end of the html address or not the movie never skips to the end.
I am trying to essentially pass a string as a function name into an event listener, but I am not sure how to approach this. Is there a way to convert a string into a function?
Here is some code I have for me to show you what I am doing.
package{ //some import statements public class changes extends MovieClip{
I am trying to pass FlashVars into public class EventDispatcher to set the path to data.xml. I need it because the name and path of the xml file will be dynamically created. I need to use Flashvar in order to access the correct path.I was able to pass Flashvar from html page on timeline this way:
Actionscript Code: var Flashvars:String = LoaderInfo(stage.loaderInfo).parameters.xmlfile;
Then, I was able to use it with new UrlRequest;
Actionscript Code: var request:URLRequest = new URLRequest(Flashvars);
This method works really good, but this solution only works on timeline.I need to implement this technique in the class. Before I setup a static var for with the path to xml file. I'd like to be able to get FlashVar withing this class and assign this string to 'public static var DATA_XML_URL:String' I have there. This way I can pass Flashwar to the project I already have.