IDE :: Replacing "Undefined" Text When There Is No XML Data

Feb 16, 2010

A client has asked me to update the create for a flash widget, they have a problem with the widget displaying "Undefined" where there is no data being pulled in from the XML. What they have asked me to do is write a bit of actionscript to display "Sorry, there is no offers at the moment" instead of it dipslaying "Undefined".

[Code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Clearing And Replacing XML Data?

Jul 24, 2009

I'm creating a gallery of thumbnails and main images from a loaded XML file.The initial load is fine and all is working, Thumbnails are produced in a masked movieclip and the first image is defaulted to display at start perfectly well. The gallery also has several categories in it which a user can view by clicking a button for each. eg Sites, Designs, Cards etc. Each of these categories information are held within different separate XML files. eg sites.xml, designs.xml and cards.xml etc.

Now here lies the problem. When a user clicks a new button the new XML loads the new information and the files display, but on top of the thumbnails/main images that were already present because the file that was initially open has not cleared. So what I want to do is simply remove the data that is currently being displayed, so in essence removes the images etc. Then replace those with the images from the new XML file.Is this at all possible because from searching the last week I haven't been able to find it. I guess I can't see the wood for the trees at the moment.

View 7 Replies

ActionScript 3.0 :: Replacing An Array's Data Within The Main Timeline

Apr 7, 2011

Let's say I have a file that loads an AS. Within that AS is an array that loads to a list menu in the main file or .fla. The list menu is used as navigation, so when the user clicks on one of the items, in the list, it goes to, let's say, frame 2. Now, on frame 2 I would like to change the information in the array in the AS so that the list menu now contains a new list of links.

View 1 Replies

ActionScript 3.0 :: Replacing/finding Text In Dynamic Text Box?

Jan 2, 2010

i have made a dynamic text box which pulls a twitter status using the API. what i want to do is find and replace ': )' (without the space)with a small graphic called 'smile.gif'

View 7 Replies

ActionScript 3.0 :: Replacing Text With The New Text Engine?

Feb 11, 2010

How is it possible to replace text with the new (flashplayer 10) text engine? I've come this far:

ActionScript Code:
var font:FontDescription = new FontDescription("Arial");
var elementFormat:ElementFormat = new ElementFormat();

[Code].....

View 2 Replies

ActionScript 3.0 :: Replacing Texfield Text With XML Text?

Jun 3, 2011

Is it possible to have a textfield with a Dummy text (for animation purpose) and then replace that one text from XML? When i try to do it i only get the letters from the Dummy text to te there if the dummy text has the same or some letters that the XML text have.

If my dummy text is hello and my xml text it sweden i only see " e e " when i run the flash file.

View 2 Replies

ActionScript 2.0 :: If Undefined Dont Show Text That Says Undefined?

Jul 12, 2007

i am using flash, .Net, and MySQL and have elements (text fields) posting in flash.Question is, if the table in the data base is not holding the var char how can I set the text field in flash to not show undefined and just be blank?

View 6 Replies

ActionScript 2.0 :: Replacing Letters With Other Text

Nov 19, 2006

I am trying to make a simple encryption tool and I was wondering how I could use code to replace text, with something totally different!

View 2 Replies

ActionScript 3.0 :: Replacing XML Node And Element Text In XML?

Oct 3, 2009

I am stuck on how to make these changes to an xml using AS3. My xml structure is as follows

Code:
<boys>
<boy>

[code]....

View 8 Replies

ActionScript 3.0 :: Searching Through All Descendants Of XML And Replacing Instances Of Text?

Aug 29, 2011

cleaner way of searching through all of the descendants of an XML object and replacing all % values with actual values. I specify x, y, height and width positions in terms of percentages, and so must convert these to actual positions - it seems madness to first search and replace x values, then y values,

[code]...

View 2 Replies

ActionScript 3.0 :: Saving Data To Text File - Appending Data In Text File - Importing Data From Text File

Aug 23, 2011

How can I save data to a text file and also append a record to data in an existing text file? I've used Authowrware previously and it was quite easy to create a large string of data (a comma separated list) and export that to a text file (and create the text file if it didn't already exist). I could then easily append additional rows of data (records) to the text file. We want to build a questionnaire that will store the data locally on the computer in a text file. Each record may have a few hundred data points in a comma separated list.

View 8 Replies

ActionScript 2.0 :: Clearing And Reloading XML - New Data Comes Up Undefined

Jan 29, 2009

I can load the xml in the first time just fine but when i try to reload the xml to get the new data it comes up undefined. What do I need to do? Do i need to clear the xml object and then reload the data? Am i reloading it wrong? I call the code again using this function and the data comes up undefined

[Code]....

View 1 Replies

Data Integration :: XML LoadMovie - Getting Undefined Error Message?

Jun 1, 2007

I am in the middle of making an xml driven menu. Each button has an image which loads from an external folder and 3 dynamic text fields. The content for the text fields is taken from an external XML file and I would also like the image to be defined in the XML file. The problem I am having is when I use the code attached below .I get the following error message; :

'Error opening URL
'file:///C|/Documents%20and%20Settings/barry.gee/Desktop/undefined'

However when I manually enter the image url as commented out in the attached code the image loads fine.

View 1 Replies

ActionScript 3.0 :: Undefined Resutl Tryng To Get Data To Flash With Php?

Mar 8, 2012

I cross with a problem that I do not understand why is happening. I a AS3 and php getting the results from the database. The php is working fine since I test it. but the request from the flash give me a result of "undefined" .I have a text area on the flash file in which is supposed to show the results from the php. This code so far:

AS3:
import flash.display.*;
import flash.events.*;
import flash.net.URLLoader;[code]....

This is most the code and I get a undefined result in the textarea in flash.

View 43 Replies

ActionScript 2.0 :: Loading Data From Txt File Shows Undefined?

Feb 2, 2009

I have this little code, just loading text from a file, but as the title says, the variable s seams to remain unchanged :S

Code:
var s:String;
var loadText:LoadVars = new LoadVars();

[code]......

View 9 Replies

ActionScript 2.0 :: Lading Data From Txt File Shows Undefined?

Feb 2, 2009

I have this little code, just loading text from a file, but as the title says, the variable s seams to remain unchanged :S

[Code]...

View 1 Replies

ActionScript 3.0 :: Undefined Property Flash.data:SQLStatement

Apr 20, 2011

Does anyone know why I'm getting this error on the code below?Scene 1, Layer 'Layer 1', Frame 1, Line 441119: Access of possibly undefined property result through a reference with static type flash.data:SQLStatement.[code]

View 1 Replies

ActionScript 3.0 :: 1061: Call To A Possibly Undefined Method AddItem Through A Reference With A Static Text Type Flash.text.Textfield

Nov 8, 2009

I'm trying to build an RSS feed reader to display inside a swf on a webpage. I need to figure out how to create the RSS feed reader as it's the last bit I need to create for this website.

Here's the code I'm using:

var rssLoader:URLLoader = new URLLoader();
var rssURL:URLRequest = new URLRequest("http://teachercenter.scps.k12.fl.us/education/rss.php?sectiondetailid=69411");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);

[code]....

I keep getting an error message that reads:

1061: call to a possibly undefined method addItem through a reference with a static text type flash.text.Textfield.

View 6 Replies

Data Integration :: Undefined - If XML Attribute Contains German Special Chars

Nov 8, 2007

I found out that if XML file's attribute contains German special chars (chars with umlaut, like:..) then I get "undefined" answer when I try to read an attributes value. I tryed to change XML file encoding to: "UTF-8" and "iso-8859-1" but still no luck. "system.useCodepage = true;

View 2 Replies

ActionScript 2.0 :: Display The XML Data Once I Click The Button - Getting Undefined Error?

Dec 7, 2009

What I want to achieve is to display the XML data once I click the button. But I kept getting undefined error.Here's what I have:

t1.onRelease = function (){
xmlDoc = loadXMLDoc("bestofposts.xml");
x=xmlDoc.getElementsByTagName("message")[0].childNodes[0];[code].....

View 6 Replies

Professional :: Local Shared Object (undefined) - Retrieve Data From A SOL File

Mar 14, 2011

I am trying to write a piece of code to retreive data from a SOL file : this is my code :[CODE]//get External interfaceimport flash.external.*;

[Code]...

How can that be ? what can I do ? What am I doing wrong ?(bear with me, as I said, I'm kind AS newbie).

View 4 Replies

Data Integration :: MySQL Data Into Dynamic Text Field Without Escape Sequence

May 23, 2007

I got a music portfolio web site running PHP, MySQL and Flash. There's a page showing all the artists my client worked for and when you click on a song title, this title is passed as a variable to a PHP page then to a Flash page. The Flash page contains an actionscript music player which then looks for the right audio file in the database and plays the song. Everything works great except for the dynamic text field which displays the song title. If the song title contains an apostrophe or a single quote, the Flash dynamic text field then shows the apostrophe.[code]

View 1 Replies

Data Integration :: Store The Data Text In Access Databases Using Flash Form?

May 4, 2007

How to store the data text in Access databases using flash form and to search into the database. It is possible to work without server because I don't want to put this flash file on the net. how to make databases and to connect with flash and to have possibility to search the database, but to work database in the local computer.

View 1 Replies

Data Integration :: Sending Data In Flash To External Text File

Apr 9, 2007

I will be creating a program to use for data entry. I'll be studying zebras in kenya and I won't have the internet there as I'm recording the data. I'd like to be able to send the data I generate in flash to an external text file. I understand I need some sort of script to do that, but is this something I can run just on my machine? (I'll probably make the data into xml format).

View 1 Replies

ActionScript 2.0 :: Scrolling Text Undefined?

Oct 28, 2009

I have a text box that is part of an array and loads text fine at the moment.Here's me script:


ActionScript Code:
//var textRequest = "sampler.txt";
function loadText(p){
var textLoader = new LoadVars();
textLoader.onLoad = function(success) {

[Code]...

View 3 Replies

ActionScript 2.0 :: TextArea.text = Undefined?

Jun 26, 2007

I have a movieclip with a TextArea inside it with the instance name writeUps_txt.The movieclip is added to the stage with actionscript and I want to set the text inside writeUps_txt after the movieclip is added to the stage.Why won't the following work?

infoPages[i].writeUps_txt.text = blurbs[i];

I've checked everything and all of my arrays contain the right objects so everything is kosher there. To add to the problem, this line:

infoPages[i].title_txt.text = locations[i];

does work and the only difference is that title_txt is dynamic text.Is there a difference between how dynamic text and textAreas behave in this regard?

View 1 Replies

IDE :: Beginner Input Text Undefined

Mar 1, 2010

I have a contact us form (I got with a pre built template)However when posting form data to PHP all the fields in the form show as undefined.When I run the file with trace mode on [code]I have ensured my input text has an instance name (ss)I have tried setting a var for ss This allows me to set the data ok but it is still undefined when I try to load it.I have added a keyframe to this frame as this is on frame 4 of a 4 page/frame timeline.

View 1 Replies

ActionScript 2.0 :: LoadVars Text Is Undefined In Web

Feb 2, 2011

I have a flash with some text linked with loadVars, all works perfectly in my computer but shows as "undefined" when i publish the web...both text are actived by buttons so load time is not the matter, and both .txt files are in same directory as the .swf and the .html, and codded as UTF-8[code]...

View 6 Replies

Flash :: Data Integration - Data Text - Format Loss With IE

Apr 11, 2007

I have a website that is all flash. I have a main file that loads in the nav and then the nav loads in the designated .swf file for each section. So there are several sections(.swf's) with lots of text taken from a database and inserted into the swf file from
an XML file. If I click in between sections, and go back to the original section of text the formatting is lost. This is only in Internet Explorer 7- this does not happen in Firefox or on the Mac.

View 4 Replies

Data Integration :: How To Parse Data And Assign Variable To Text

Jan 30, 2007

I have three dynamic text boxes. variables respectively
(caption0,caption1,caption2).
My xml file is structured as:
<?xml version="1.0" encoding="iso-8859-1"?>
<captions>
<caption>Roll over this</caption>
<caption>This is the first Caption.</caption>
<caption>This is the second Caption.</caption>
</captions>

I am trying to create a rollover where when you rollover caption0; caption1 and caption2 are displayed in sequence. Everything works except though only the first caption is ever displayed. For the other two I get "level0.caption1" and "level0.caption2" instead of the text in the xml file above. How do I parse the data so that each of the variables are assigned the text in the xml file?

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved