Flash not loading one XML attribute
I have a Flash MP3 player that loads the song list from an
XML file. I'm trying to set it up to take the customer to the
online store to purchase the currently playing song. The player
successfully loads the track name, artist name, and url to the
song, but for some reason does not appear to the load the new
attribute of buylink that I have just added. Given the code below,
my buylink value is returned as undefined. Can anyone tell me where
my error is here? If more info is needed please let me know!
Aha.
XML Parsing Error: not well-formed.
It appears to have issues with the = signs in the link. This
is a problem for my site, as I need those in there in order to link
to the page. I'll have to come up with something other than xml for
the 'add to cart' functionality within this flash file.
Oddly enough, it does pick up all of the rest of the
information.
Thanks.
Similar Messages
-
Tried to open an app and my iPad gen one froze. It only shows the apple on black screen and will show the operating wheel sometimes and while plugged in it will beep every few minutes. Will not load one show anything on screen but the small white apple.
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
Flash/AS3/XML - not loading after XML edits
HI all,
I apologize in advance for not being able to give a lot of information. I'm working with a proprietary template for e-learning and trying to get it to work. But, regardless, here's the situation.
Building e-learning using a Flash and AS3 template that has several parts and relies on one XML file for all content. There is an index (Flash) page that serves as the shell for the entire module. That index page 'hosts' a language selection menu, main menu, and the stage for .swf files that are 'pages' of each chapter. Each 'page' has several 'clips' inside of it (images, text, audio, etc.).
The XML is structured as such (N = number of items total, X = specific number of that item):
<xml>
<course (with title and several other attributes)>
<chapter type="chapter" title="Title of Chapter">
<page>
<file><![CDATA[pagedirectory/pageX...N.swf]]></file>
<clipX1...N audio='audiodirectory/audio_X...N'> <![CDATA[If there is any on-screen text, this is where it goes.]]></clipX...N>
<ccX...N><![CDATA[This is for the closed captioning; all script/audio text is here.]]></ccX...N>
</page>
</chapter>
etc. for as many chapters as there are.
The XML file structure is a little odd, but it works...usually. For some reason though, I broke it.
I put in "chapter 0" which is the introduction. Everything runs smoothly, but then when I add another chapter, the main menu won't load. I assumed this to be something in my XML syntax; however, I've checked over it, including the new stuff I added. BTW: The main menu is populated by the "Chapter" attributes in the XML.
So, I guess my question is two-fold, and I understand that I may only get very general answers (or questions that relate to specifics):
Are there things in XML files that when used by AS/Flash simply don't work? I've already checked for "&" and other characters... but are there some other ones?
Any other guesses as to why the main menu loads when only one chapter is in the XML, but not when there are two? Again, I've check for tag accuracy, etc. What could I be missing though?
Thanks!
AndyUpdate. Flash preview gives me this error:
"TypeError: Error #1085: The element type "cc5" must be terminated by the matching end-tag "</cc5>"."
I have checked all "cc5" tags in the XML and all are closed by </cc5> ... ?
AS -
Firefox flash plugin not loading external xml file?
I have a Flash based website that uses an external xml file
to load the interface and navigation. When I view the site in
Firefox it never seems to load the xml file therefore the interface
doesn't load.
Any ideas?Hi,
I have followed your instructions and could able to get it working for firefox. The sameway i tried with mozilla, but not working. This time, I didnt see any errors but it is not working as expected (no animations / images displayed)
So could you please help me.
My system config. is X86 Solaris 5.10.
bash-3.00# pwd
/usr/sfw/lib/mozilla/plugins
bash-3.00# elfdump -e libflashplayer.so
ELF Header
ei_magic: { 0x7f, E, L, F }
ei_class: ELFCLASS32 ei_data: ELFDATA2LSB
e_machine: EM_386 e_version: EV_CURRENT
e_type: ET_DYN
e_flags: 0
e_entry: 0x94 e_ehsize: 52 e_shstrndx: 37
e_shoff: 0x7fb4ac e_shentsize: 40 e_shnum: 39
e_phoff: 0x34 e_phentsize: 32 e_phnum: 3Thanks
Ram. -
Cross domain sux policy - flash is not loading any xml (?)
uh whole day, im messing up with my .swf file.. i have some
content and script on server server.com/project/api/getSound which
returns .mp3.. now im on the same web or on other site and i want
to load that .mp3.. i put crossdomain.xml to server.com/project anc
checking flash player, if is loading that file - strange is, that
fp does not load any crossdomain.xml at all!..
im trying
System.security["loadPolicyFile"].call("
http://server.com/foo/crossdomain.xml");
also System.security.loadPolicyFile() which does not work
because "method not found"..
im getting mad, why it does not work at all
please helpUpdate. Flash preview gives me this error:
"TypeError: Error #1085: The element type "cc5" must be terminated by the matching end-tag "</cc5>"."
I have checked all "cc5" tags in the XML and all are closed by </cc5> ... ?
AS -
Sending variable value from php to flash to load an xml file
I would like to load an XML file from the location locally or on the server being unaware of the name of the file. I am using PHP for sending the filename to Flash.
The below is the PHP code:
<?php
filesInDir('C:\Documents and Settings\457305\My Documents\shrikant\Flash Tutorials\webassist');
function filesInDir($tdir)
$dirs = scandir($tdir);
foreach($dirs as $file)
if (($file == '.')||($file == '..'))
elseif (is_dir($tdir.'/'.$file))
filesInDir($tdir.'/'.$file);
else
echo "fileName=$file";
?>
And below is the loading Actionscript code:
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.net.URLVariables;
stop();
// Define the PHP file to be loaded
var phpFile:String = "http://localhost/webassist/test.php";
var cons_xml:XML;
var xmlLoader:URLLoader = new URLLoader();
// Specify dataFormat property of the URLLoader to be "VARIABLES"
// This ensures variables loaded into Flash with same variable names
xmlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
xmlLoader.load(new URLRequest(phpFile));
xmlLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(evt:Event):void
trace(evt.target.data.fileName);
//cons_xml = new XML(evt.target.data.fileName);
//gotoAndPlay(2);
When I trace the evt.target.data it displays "fileName=mainOpenEndedXML%2Exml" and when I trace evt.target.data.fileName the fileName is properly displayed as "mainOpenEndedXML.xml".
But in the next two lines where the loading occurs it does not load the file i.e the swf file from xml doesn't play.
I have been searching the Internet for answers but not able to find any solutions.
The loading works properly if i directly insert the xml file in the code and the swf's in the XML file play propertly. The below is the code for the same:
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.net.URLVariables;
stop();
var cons_xml:XML;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("mainOpenEndedXML.xml"));
xmlLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(evt:Event):void
cons_xml = new XML(evt.target.data);
gotoAndPlay(2);
Any help on this would be greatly appreciatedYes. you already said that, but I guess you don't understand what I said. You are loading the PHP fle to get the filename, but nowhere are you taking that filename and loading the file that was named.
You need to do two loading operations. The first one to get the filename, and the second to load the file with that name. Maybe if you name the PHP file loader phpLoader instead of xmlLoader it will start to make more sense to you. Something like the following...
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.net.URLVariables;
stop();
// Define the PHP file to be loaded
var phpFile:String = "http://localhost/webassist/test.php";
var phpLoader:URLLoader = new URLLoader();
// Specify dataFormat property of the URLLoader to be "VARIABLES"
// This ensures variables loaded into Flash with same variable names
phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
phpLoader.load(new URLRequest(phpFile));
phpLoader.addEventListener(Event.COMPLETE, processPHP);
function processPHP(evt:Event):void
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest(String(evt.target.data.fileName)));
xmlLoader.addEventListener(Event.COMPLETE, processXML);
var cons_xml:XML;
function processXML(evt:Event):void
cons_xml = new XML(evt.target.data);
gotoAndPlay(2); -
Hi,
I have a webpage created in flash which uses xml to load specific gallerys into movie clips. Everything works fine in preview, but when uploaded it doesn't work. When you click on film or any of the other galleries, the galley does not load. I don't know whether this has something to do with the hosting or not. I'm only begining to use xml so my knowledge is quite limited. Any help would be much appreciated. The website adress is below. I've also attached my action script. Cheers
http://www.honeytree.com.au/luke/walshwebsite/
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
firstImage();
} else {
content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("film.xml");
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
next_btn.onRelease = function() {
nextImage();
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 20;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
} else {
delete tscroller.onEnterFrame;
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
target_mc.onRollOut = function() {
this._alpha = 100;
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);Your xml file appears to be specifying local drive paths rather than web paths...
\film\DSC_0040web.jpg
should be
film/DSC_0040web.jpg -
Flash piece will load on various computers and fill in
information from database. However, one user gets the flash piece
loaded, but no information. What could be causing the information
not to load?syllywabbit wrote:
> The flash script has been running without issue for a
long time. Now it doesn't
> load in IE. It still loads in Firefox.
>
> View this URL: www.brannlaw.com (Issue: Homepage,
left-green sidebar, under
> 'some of our clients' graphic, the flash movie not
loading.
>
Object tag does not use DATA tag, that's only for EMBED tag
for none IE browser.
You need to actually specify param name="movie" follow by
value="moviename.swf"
Suggest you use flash PUBLISH option to generate proper html
file with full object
embed tag, than copy paste the complete set into you existing
document.
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Flash not loading images in FireFox
I have a website that loads a small flash object that gets
it's images from an txt file. It all works fine in IE but not in
FireFox. I have the newest version of FireFox and Flash player 9
plugin. It loads the flash object and background but will not load
the images. It is supposed to fade several images in and out.
The website is
schakolad.com
If you view it in IE you can see how it is supposed to look.
Then view it in FireFox and you will see that it does not load the
fading images. I have done several tests including having the txt
file and the images in the same directory as the swf and the ASP
page. I have checked file and directory security. Still does not
work. I have saved the txt file in several formats including UTF-8,
Still does not work.
Any suggestions would be appreciated. Thanks!In looking at your code, it looks like your problem is coming
from a malformed embed tag. You need to add the FlashVars parameter
to your embed if you want it to work in any browser other than IE.
IE doesn't need the embed tag to display flash content, and every
other browser REQUIRES it. Every <param> tag you use must
have a pair in the <embed>.
Here is your object with this added:
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="280" height="288">
<param name="movie" value="products.swf">
<param name="quality" value="high">
<PARAM NAME=FlashVars
VALUE="dfname=Images/Flash/data.txt">
<embed src="products.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="280" height="288"
flashvars="dfname=Images/Flash/data.txt"></embed></object> -
Ever since I downloaded Adobe ExportPDF, Chrome does not work correctly. It keeps telling me that it :could not load Shockwave Flash". Why??? And, how do I fix this??
This is confusing, because ExportPDF isn't something that even can be downloaded.
-
When I try loading the application using https it loads fine
in firefox but the .swf doesn't load up if I'm using IE.
I've found some documentation on this
http://kb.adobe.com/selfservice/viewContent.do?externalId=fdc7b5c&sliceId=2
I'm unable to change these settings so is there any other
ways around this?
Thanks
Joshsyllywabbit wrote:
> The flash script has been running without issue for a
long time. Now it doesn't
> load in IE. It still loads in Firefox.
>
> View this URL: www.brannlaw.com (Issue: Homepage,
left-green sidebar, under
> 'some of our clients' graphic, the flash movie not
loading.
>
Object tag does not use DATA tag, that's only for EMBED tag
for none IE browser.
You need to actually specify param name="movie" follow by
value="moviename.swf"
Suggest you use flash PUBLISH option to generate proper html
file with full object
embed tag, than copy paste the complete set into you existing
document.
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
The flash script has been running without issue for a long
time. Now it doesn't load in IE. It still loads in Firefox.
View this URL: www.brannlaw.com (Issue: Homepage, left-green
sidebar, under 'some of our clients' graphic, the flash movie not
loading.
Any help is appreciated.
Thankssyllywabbit wrote:
> The flash script has been running without issue for a
long time. Now it doesn't
> load in IE. It still loads in Firefox.
>
> View this URL: www.brannlaw.com (Issue: Homepage,
left-green sidebar, under
> 'some of our clients' graphic, the flash movie not
loading.
>
Object tag does not use DATA tag, that's only for EMBED tag
for none IE browser.
You need to actually specify param name="movie" follow by
value="moviename.swf"
Suggest you use flash PUBLISH option to generate proper html
file with full object
embed tag, than copy paste the complete set into you existing
document.
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Java through javawebstart not loading the xml file.-- need help
Dear All,
I am using jdk1.2.06, tomcat 5.25
In tomcat- inside webapps--mydirectory-- load.xml, applet1.java is present
in the browser applet1.java is called through javawebstart,
load.xml is loaded in applet1.java,where parsing is done in applet1.java,
but my problem is load.xml is not loaded in applet1.java through java webstart
Whether i want to do any pplicy file setting.. please clearly mention it..
thanks in advancethis is not the 'right' way to do it... but I think it should
work. I didn;t change the function name although I think its
supposed to be
getdetailsfrmXML instead of getetailsfrmXML
public function getEmpDetailsFrmXML() {
var xmlFileName:String = "emp.xml";
var employee_xml:XML = new XML();
employee_xml['externalScope']=this;
employee_xml.ignoreWhite = true;
employee_xml.load(xmlFileName);
employee_xml.onLoad = function(success) {
if (success) {
var xmlData = this;
this.externalScope.getetailsfrmXML.call(this.externalScope,xmlData);
} else {
trace("file not found");
public function getetailsfrmXML(details) {
trace(employee_xml.toString()+" mkmop"); -
Mail 4.6 not loading one of 3 accounts
Suddenly yesterday, one of my 3 email accounts that I keep on Mail 4.6 is not loading. It is my most heavily used account - so sometimes it takes longer to load - but it tried all day and never completed. It links to a yahoo account - which I can get to via a browser. So the problem is in the mail utility.
I tried paring down the amount of mail existing in the mailboxes - both online and on my mac - but it doesn't seem to be helping.
I also noticed that my disk space was mysteriously disappearing. I started with 6Gb free - and suddenly I was getting messages indicating that I was dangerously low on disk space. When I shut down mail - and left it off for several minutes - the missing disk space reappeared.6GB is not really enough - you should be aiming for 20. What disk capacity have you? Do you know what is using it?
-
Flash not loading after install...
Snow Leopard was working perfectly until the most recent update. When I initially upgraded, I updated flash, as we know snow leopard shipped with the previous version of flash. However, after Apple released an update to address flash and other security updates, flash only loads occasionally. I notice more when trying to view youtube videos. The videos don't fully load and I have to constantly try and refresh the page until it eventually loads. Anybody else experiencing this issues or have come up with a solution??
Thanks.Hi,
*"as we know snow leopard shipped with the previous version of flash"*
You didn't need to update your flash plugin afer installing SL.
Go here and follow the instructions to UNinstall Flash Player
http://kb2.adobe.com/cps/141/tn_14157.html
Then reinstall Flash player.
Carolyn
Maybe you are looking for
-
Balance not matching as per FBL5n and FS10N
When we run the customer balance report FBL5n as on 09/29/2007 on week end it shown a balance ( open item for all customer and recon account 123456 ) of say 10 M. The same amount we got thru FS10N we ran on with GL 123456 i.e. 10M. But when we
-
H, Since upgrading Windows server 2008 R2 to Server 2012 Standard edition, we get this repetitious critical error in the event log: Event 1001 Op Code NLS initialization The NLS operation failed because the registry key Control Panel\International\Us
-
How do I limit what movies are displayed at the top on the main screen
Is there any way to limit what movies are displayed at the top on the main screen when menu Computers are selected? Currently it shows ALL of the content in the Movies folder in iTunes, but I would like to not show my 1 million 5-second videoclips an
-
when installing acrobat XI pro the 'select a product' drop down menu does not include my product?
-
MacOS X 10.4.8 & Dual G5 2.0 GHz freezes lately
Hello, Due to no apparent reason my Dual G5 2GHz running MacOS X 10.4.8 freezes every day! The only way out is to pull the power plug! Troubles maybe startet when installing 10.4.7 or 10.4.8, but I can't track this down. I've got 1GB RAM, several vol