ActionScript 3.0 :: Adding Subscript To XML Pulling Data Via E4X?
Mar 5, 2010and E4X to pull in an XML file. I am wishing to display some text as subscipt. E.G with
G2, the 2 would be subscripted.if this can be done and if so how?
and E4X to pull in an XML file. I am wishing to display some text as subscipt. E.G with
G2, the 2 would be subscripted.if this can be done and if so how?
I'm wondering if anyone has figured out how to pull data from a column in a SharePoint 2007 list to be able to dyamically generate a reaction in a flash object.Our designer created a dashboard of thermometers for our projects that use two variables, % complete and status (green, yellow, red, blue).
As the end user, I want to be able to update my project in my SharePoint list and have it so that my updates automatically populate that flash based dashboard.Right now, he's using an XML document that is stored in a folder on our SharePoint site and then simply updating the XML file when there are changes.It would be ideal to pull this data from the list rather than having to update and then upload the xml document to the SharePoint site.
I created a file that pulls data from the worldofwarcraft.com serverstatus xml page.The data populates a dropdown list and you can choose the server and it tells you if its up or down. The mini app works great on my desktop, when I upload it to my server it no longer retrieves the data.
Is Bliz blocking my server address from recieving the data? Anyone know how to navigate around this. [URL]..If you want to test it grab the swf out of your cache and load it from your desktop, it will work.
I have been failing to do a thing with Flash actionscript2.0; Here is the problem-
My xml file name is: sea.xml On my fla file, there is a button named: do; and a movieClip named: loader;
What I am trying to do is- load xml only when the button is pressed. So I tried this-
myXML:XML = new XML;
do.onRelease = function(){
myXML.load("sea.xml");
}
[Code].....
I was running a test today and couldn't get flash to properly load data from php.Here's my textInput.php file:
Code:
<?php
$testVar = 'This is a sentence.';[code]....
why it's grabbing the entire php code, rather than just the echo?
I am trying to pull a text from within xml tags and place them in a text box when certain mc's are clicked. I am using the e.target to find the name of the mc clicked and grab info from tags with the same name as the target mc. The XML link is good as i can get data when doing tests with out using mentioned technique.
ActionScript Code:
package {
import flash.display.MovieClip;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.Event;
[Code] .....
And the xml file
Code:
<statsIcons>
<pollutionIcon_mc> some text </pollutionIcon_mc>
</statsIcons>
I am building a userinterface for some industrial instruments which output some data to a XML spreadsheet. This is the only way I can retreave these data's from the instruments.
Now, I need to make a flash that can pull out these data's from ex. "A1" and "A2" in this spreadsheet...
Here's a screenshot of the XML as it appears in EXCEL:
...and the XML as it appear if opened in Dreamweaver:
Code: Select all<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
[Code].....
pulling specific data from XML? This is what I mean...Supposed I have an XML file like this:
HTML Code:
<data>
<article>
<ID>1a</ID>
<related items>
[code]....
Now, in Flash I want to load all items that have "5f" listed as one of their related item. So only display articles where item = 5f
Basically, I am having trouble pulling in more than one line of XML data. Here is the line of code I am trying to manipulate to give me more than one line. I have tried duplicating it and changing the values... but it just updates which line it is displaying instead of the first and second one...
_root.setlist = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
Inside of my XML document it is layed out like this....
<shows>
<show>
<setlist>
<song>Song 1</song>
</song>Song 2</song>
[Code]...
I loop through two arrays and im checking their data, i have collison working for them but I want to add more A.I. by making them stop when they are a certain distance from each other. so i need a way to pull EACH object that is in the arrays x,y, pos and use that data. my distance var keep bouncing all over the place...
THIS is my code:
//check events between 2 objects
function CheckEventsEnemyFighterFighter():void
{
[Code]....
P.S. i need some tips for my coding... like should have i used a break in these for loops?
I am trying to create this slide show application that will show product information (Tennis Rackets) based on diffrent categories. A great programmer advised me that OOP would be a way to go, however i am having a difficulty with it.
I created: A document class called CustomClass --> this class downloads all XML data from the server and pushing the content of it into Arrays based on a category.These arrays are public, there is also a funciton iterateArray which places the children information somewhere.
[Code]...
I am a pretty big newb- my challenge is get a flash page to look to a database and check for updates constantly (in the realm of 1update/second) then pull new data as it is added.
View 1 RepliesNewbie to XML here and I have what I *hope* is an easy problem, but I just don't know the answer. And as I have to try and show this by Monday, I'm sort of stuck. I am trying to pull in information about houses via an xml file. Each house has 1 address, 1 owner, 1 description, and about 6 photos. I have no problem accessing the address, owner, etc, and I can always access the first photo, but whenever I cycle through the photos, I seem to cycle through the first photo for every house, not every photo for each house.
Basically, I need the children <images> to go up by one, without the the parent going up by 1. I am hoping I am describing this well. My code looks like this:
[Code]...
I am trying to pull in information about houses via an xmlfile. Each house has 1 address, 1 owner, 1 description, and about 6photos. I have no problem accessing the address, owner, etc, and Ican always access the first photo, but whenever I cycle through thephotos, I seem to cycle through the first photo for every house,not every photo for each house.Basically, I need the children <images> to go up byone, without the the parent going up by 1. I am hoping I amdescribing this well.My code looks like this:
total = xmlNode.childNodes.length;
totalb =
xmlNode.childNodes[0].childNodes[5].childNodes.length;
[code].....
How to use superscript and subscript of the variable in AS2?
View 3 RepliesAs shown in the demo I am trying to create a sample to make a character superscript/scbscript but don't know what is required to create this functionality.
[URL]
I am currently developing a chemical formula application that receives input from a user directly from a text area.My problem is displaying this input with subscript (eg: H20 with the 2 displayed below the baseline). Subscript can be entered when developing the application, but can it be displayed when the application is running? Is there any way I can apply subscript to numbers that are entered automatically?
I would like a student to enter some text, highlight the characters they want in subscript, and then click a subscript button that calls some actionscript.
working on TLF with subscript/superscript and with special characters (,<,> ,¥, ¤ ..and so on). Can anyone point me to a tutorials or training?
View 0 RepliesIs there any function / textFormat property/ textField property for subscript and superscript text.I have to write @, ®, ABCTM ,1025 type of value which are actually coming from xml file.
View 4 RepliesFriends, I am using Actionscript 2.0 and want to scroll simple text. I did it with the default scrollbar component and it works fine.
But the issue is that I have some subscript and superscript in my text and this option is disabled in the dynamic text field.
My text is like:- CO2 + H2O
How to display the superscript or subscript in dynamic text field?
View 2 RepliesI am using Actionscript 2.0 and want to scroll simple text. I did it with the default scrollbar component and it works fine.But the issue is that I have some subscript and superscript in my text and this option is disabled in the dynamic text field.
My text is like:-
CO2 + H2O
How would I go about Embedding SubScript/SuperScript fonts in a Flex UITextField ? I have already downloaded the required fonts. I need to make them work in a UITextField in Flex. I have tried using CSS/Stylemanager etc. , and tried using createInFontContext also... Still it does not work. The fonts only work if they are installed on the user PC. i.e. they do not get embedded in to the application.
View 2 RepliesI have a flash banner rotator that runs using PHP at the backend. The way in which the flash banner is called into the script is by using the following PHP:
<? php include("
http://www.mysite.com/banners");
?>
I have also used this in other ways such as:
[Code]...
how to add completely new data to XML data I'm holding in a var.
I'm importing XML data into an editor I'm creating. The XML looks like this:
<itemList_120>
<mediaFile order="1" playTime='2' transIn='1' transOut='9'>gif.gif</mediaFile> <mediaFile order="2" playTime='1' transIn='6' transOut='8'>jpg.jpg</mediaFile>
[Code]....
Rather than change existing XML data, how do I add completely new data? ie, if the above var held two "mediaFile" lines of XML, how do I add or insert a third?
I'm making a login script and adding the data to my local mysql database using php.it works as long as I browse in my browser to localhost/ flash/ movie.swf but if I just open the folder and run the .swf file it doesnt work
View 2 RepliesI am working on an online poker game for a client. I am in charge of the design phase and somebody else is involved with the back end. He sent me an group of API formated to fit in to Action Script. I am not sure how to proceed. What would you need from me on this post to see what is going on?
View 1 RepliesI have this actionscript so far:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
[Code]...
This loads the xml, assigns it to bookInput and traces it, but when I try and trace bookInput.project, or bookInput.button, or anything besides bookInput, no data is returned,
XML;
<button label="test1">
<project path="http://www.google.com">
</project>
[Code]....
I have an XML file, I read the data and want to add it to a List and then use the List to be displayed.
Something like this is what I want to do:
List data = new ArrayList();
data.add(item1);
data.add(item2);
How can I do this, also how will I display the List in a table!!
I'm trying to redo my App and have everything added dynamicly, so updating will be a lot easier. I have 3 movieClips in my library. 1 is the holder of the other two. This is done because the holder has a class attached to it, and the 2 other movieClips are where the content is being added.
So basicly what I have now is via XMLList and a for loop the content is placed and displayed on the stage. They are added like this:
PHP Code:
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load(new URLRequest("Avalist.xml"));
myXMLLoader.addEventListener(Event.COMPLETE, processXML);
[Code]....
Now what I'm trying to do is add the same amount of content, but different images to the flipHolders that already exist right now but then the sideB in stead of sideA.