Adobe Dreamweaver Forums



Last 10 THreads :         Suddenly can't see files on remote server (Last Post : Alan - Replies : 4 - Views : 5 )           »          CS4 trials expired too early (Last Post : walla walla - Replies : 5 - Views : 6 )           »          Hacked Possible through local machine (Last Post : Coldstream - Replies : 19 - Views : 41 )           »          roboex32.dll and inetwh32.dll needed in Webhelp? (Last Post : MergeThis - Replies : 3 - Views : 4 )           »          Can Flash Mx buttons operate seporate Dreamweaver MXFrames ? (Last Post : tpwd9904 - Replies : 0 - Views : 1 )           »          Can Flash Mx buttons operate seporate Dreamweaver MXFrames ? (Last Post : tpwd9904 - Replies : 0 - Views : 1 )           »          dumb flex question about mxml arguements (Last Post : Amy Blankenship - Replies : 1 - Views : 2 )           »          extension invalid (Last Post : -=seth=- - Replies : 0 - Views : 1 )           »          DW CS3 won't work on Vista Business (Last Post : Mr Bump 73 - Replies : 0 - Views : 1 )           »          mpg video will play in FF but not in IE (Last Post : Ken Binney - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: ,



Reply
  #1 (permalink)  
Old 07-23-2008, 08:20 PM
zoom4267
 
Posts: n/a
Diggs:
Default parsing XML

i was checking out a gallery tutorial but i got an error with these lines


problem parsing external XML
the gallery.xml file is in the src folder.

any ideas, i have looked through the cookbook and here and didnt come up with
anything

thanks alot


<?xml version="1.0" encoding="utf-8"?>
<!--
http://blog.flexexamples.com/2008/03...llery-with-the
-flex-tilelist-control/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">

<mx:Style>
global {
modal-transparency: 0.9;
modal-transparency-color: white;
modal-transparency-blur: 9;
}
</mx:Style>

<mx:Script>
<![CDATA[
import mx.effects.Resize;
import mx.events.ResizeEvent;
import mx.events.ListEvent;
import mx.controls.Image;
import mx.events.ItemClickEvent;
import mx.managers.PopUpManager;

private var img:Image;

private function tileList_itemClick(evt:ListEvent):void {
img = new Image();
// img.width = 300;
// img.height = 300;
img.maintainAspectRatio = true;
img.addEventListener(Event.COMPLETE, image_complete);
img.addEventListener(ResizeEvent.RESIZE, image_resize);
img.addEventListener(MouseEvent.CLICK, image_click);
img.source = evt.itemRenderer.data.@fullImage;
img.setStyle("addedEffect", image_addedEffect);
img.setStyle("removedEffect", image_removedEffect);
PopUpManager.addPopUp(img, this, true);
}

private function image_click(evt:MouseEvent):void {
PopUpManager.removePopUp(evt.currentTarget as Image);
}

private function image_resize(evt:ResizeEvent):void {
PopUpManager.centerPopUp(evt.currentTarget as Image);
}

private function image_complete(evt:Event):void {
PopUpManager.centerPopUp(evt.currentTarget as Image);
}
]]>
</mx:Script>

<mx:WipeDown id="image_addedEffect" startDelay="100" />

<mx:Parallel id="image_removedEffect">
<mx:Zoom />
<mx:Fade />
</mx:Parallel>

<mx:XML id="xml" source="gallery.xml" />
<mx:XMLListCollection id="xmlListColl" source="{xml.image}" />

<mx:TileList id="tileList"
dataProvider="{xmlListColl}"
itemRenderer="CustomItemRenderer"
columnCount="4"
columnWidth="125"
rowCount="2"
rowHeight="100"
themeColor="haloSilver"
verticalScrollPolicy="on"
itemClick="tileList_itemClick(event);" />

</mx:Application>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2008, 01:55 PM
anirudhs
 
Posts: n/a
Diggs:
Default Re: parsing XML

Hi,

What is the exact error message you are getting? Are you getting a compiler error? Or a runtime one? Or are the images simply not showing up?
Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 02:23 PM
zoom4267
 
Posts: n/a
Diggs:
Default Re: parsing XML

Problem parsing external XML:c:\Flex..path to file.. gallery.xml the processing instrucion target matching"[xX][nM][IL]" is not allowed

thanks alot
Reply With Quote


  #4 (permalink)  
Old 07-24-2008, 02:23 PM
anirudhs
 
Posts: n/a
Diggs:
Default Re: parsing XML

Can you post the contents of gallery.xml? Or is it the same as the one at blog.flexexamples.com?
Reply With Quote
  #5 (permalink)  
Old 07-24-2008, 02:23 PM
zoom4267
 
Posts: n/a
Diggs:
Default Re: parsing XML

yes its the same one at flex examples,

i started it from scratch in flex and then put in the code.
Reply With Quote
  #6 (permalink)  
Old 07-24-2008, 09:18 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: parsing XML

Open the xml file with a browser to make sure it has not become corrupted.
Tracy
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk