Solved

Flex 3.0 / XML / HTTPService bug?

Posted on 2009-06-28
1
465 Views
Last Modified: 2012-05-07
Is there a bug that causes issues when copy/pasting text from Adobe Illustrator to an XML document in Flex Builder? I finished the work so far, closed Flex. Then I re-opened and only the following tag correctly displays: <mx:Label id="boldGreenQuestionID" text="{siteData.lastResult.page.boldGreenQuestion}". Do I have a syntax issue? I get no errors, and like I said, it was fine.

The following code is my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<content>
            <page>
            
                  <headline>Browse this month's creative line.</headline>
                  
                  <headlinePar>
In this economy you are probably balancing dozens of strategies with detailed timelines and limited resources.
Consumers need to be convinced more than ever that your product is a great value.
Thats why its never been more important to discover the perfect creative solution  its time to find an agency that brings those solutions to you!

The MDI Creative Outlet is a new online tool that makes the creative process simple for your marketing team.
Just log on at any time to view various creative options that have been designed specifically for your company.
Browse by month and by product and request estimates based on your desired quantity. </headlinePar>

                  <boldGreenQuestion>Why keep using hand-me-down creative?</boldGreenQuestion>
                  
                  <lastSentence>Get brand new pieces for the same cost at the MDI Creative Outlet.</lastSentence>
                  
            </page>
            

            <page>
                  <customTextLine1>Create your postcard below anyway you choose.</customTextLine1>
                  
                  <customTextLine2>Use this creative within more tactics. Click here.</customTextLine2>
            </page>
</content>
<?xml version="1.0" encoding="utf-8"?>
<!-- MSS 6/19/09: Will need an onComplete (for loading images and xml) -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="siteData.send()"
    height="612" width="792" backgroundColor="#FFFFFF">
    
    <mx:HTTPService id="siteData" resultFormat="e4x" url="supportFiles/mainXML.xml" />
     
	<mx:states>
		<mx:State name="state1">
			<mx:RemoveChild target="{usernameID}"/>
			<mx:RemoveChild target="{passwordID}"/>
			<mx:RemoveChild target="{loginButtonID}"/>
			<mx:RemoveChild target="{homepageHangerID}"/>
			<mx:RemoveChild target="{homeHeadlineID}"/>
			<mx:RemoveChild target="{homeHeadlineParID}"/>
			<mx:RemoveChild target="{boldGreenQuestionID}"/>
			<mx:RemoveChild target="{lastSentenceID}"/>
			<mx:RemoveChild target="{loginLabelID}"/>
		
			<!-- Cart -->
			<mx:AddChild position="lastChild">
				<mx:Button x="641" y="67.7" styleName="cartButton" id="cartButtonID" width="65.8" height="55.3"/>
			</mx:AddChild>
			
			
			<!-- Monthly Buttons -->
			<mx:AddChild position="lastChild">
				<mx:Button styleName="monthButton" id="monthButton1ID"  buttonMode="true" click="currentState=''" 
					 x="0" y="132" cornerRadius="0"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="0" y="135" text="JULY" color="#FFFFFF" fontFamily="Helvetica Neue" fontSize="14" mouseEnabled="false" mouseChildren="false"
					id="monthButtonText1ID" fontWeight="bold" width="131.9" textAlign="center" />
			</mx:AddChild>
			
			<mx:AddChild position="lastChild">
				<mx:Button styleName="monthButton" id="monthButton2ID"  buttonMode="true" click="currentState=''" 
					 x="131.9" y="132" cornerRadius="0"/>			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="131.9" y="135" text="AUGUST" color="#FFFFFF" fontFamily="Helvetica Neue" fontSize="14" mouseEnabled="false" mouseChildren="false"
					id="monthButtonText2ID" fontWeight="bold" width="131.9" textAlign="center" />
			</mx:AddChild>
			
			<mx:AddChild position="lastChild">
				<mx:Button styleName="monthButton" id="monthButton3ID"  buttonMode="true" click="currentState=''" 
					 x="263.8" y="132" cornerRadius="0"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="263.8" y="135" text="SEPTEMBER" color="#FFFFFF" fontFamily="Helvetica Neue" fontSize="14" mouseEnabled="false" mouseChildren="false"
					id="monthButtonText3ID" fontWeight="bold" width="131.9" textAlign="center" />
			</mx:AddChild>
			
			<mx:AddChild position="lastChild">
				<mx:Button styleName="monthButton" id="monthButton4ID"  buttonMode="true" click="currentState=''" 
					 x="395.7" y="132" cornerRadius="0"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="395.7" y="135" text="OCTOBER" color="#FFFFFF" fontFamily="Helvetica Neue" fontSize="14" mouseEnabled="false" mouseChildren="false"
					id="monthButtonText4ID" fontWeight="bold" width="131.9" textAlign="center" />
			</mx:AddChild>
			
			<mx:AddChild position="lastChild">
				<mx:Button styleName="monthButton" id="monthButton5ID"  buttonMode="true" click="currentState=''" 
					 x="527.6" y="132" cornerRadius="0"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="527.6" y="135" text="NOVEMBER" color="#FFFFFF" fontFamily="Helvetica Neue" fontSize="14" mouseEnabled="false" mouseChildren="false"
					id="monthButtonText5ID" fontWeight="bold" width="131.9" textAlign="center" />
			</mx:AddChild>
			
			<mx:AddChild position="lastChild">
				<mx:Button styleName="monthButton" id="monthButton6ID"  buttonMode="true" click="currentState=''" 
					 x="659.5" y="132" cornerRadius="0"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="659.5" y="135" text="DECEMBER" color="#FFFFFF" fontFamily="Helvetica Neue" fontSize="14" mouseEnabled="false" mouseChildren="false"
					id="monthButtonText6ID" fontWeight="bold" width="131.9" textAlign="center" />
			</mx:AddChild>
			
			<!-- ******************* -->
			<!--      Categories     -->
			<!-- ******************* -->
			
			<!-- high speed -->
			<mx:AddChild position="lastChild">
				<mx:Button styleName="categoryButton" id="highSpeedButtonID"  buttonMode="true" click="currentState=''" 
					 x="215.4" y="227" cornerRadius="0" height="87.717" width="169.163"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="215.4" y="228" text="high speed internet" color="#768e20" fontFamily="Helvetica Neue" fontSize="10.25" mouseEnabled="false" mouseChildren="false"
					id="highSpeedButtonTextID" fontWeight="bold" width="131.9" textAlign="left"  paddingLeft="10"/>
			</mx:AddChild>
			
			<!-- winback -->
			<mx:AddChild position="lastChild">
				<mx:Button styleName="categoryButton" id="winbackButtonID"  buttonMode="true" click="currentState=''" 
					 x="408.7" y="227" cornerRadius="0" height="87.717" width="169.163"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="408.7" y="228" text="winback" color="#768e20" fontFamily="Helvetica Neue" fontSize="10.25" mouseEnabled="false" mouseChildren="false"
					id="winbackButtonTextID" fontWeight="bold" width="88.85" textAlign="left"  paddingLeft="10"/>
			</mx:AddChild>
			
			<!-- digital voice -->
			<mx:AddChild position="lastChild">
				<mx:Button styleName="categoryButton" id="digitalVoiceButtonID"  buttonMode="true" click="currentState=''" 
					 x="86.4" y="288.7" cornerRadius="0" height="107.556" width="222.043"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="86.4" y="289.7" text="digital voice" color="#768e20" fontFamily="Helvetica Neue" fontSize="13.45" mouseEnabled="false" mouseChildren="false"
					id="digitalVoiceButtonTextID" fontWeight="bold" width="131.9" textAlign="left"  paddingLeft="12"/>
			</mx:AddChild>
			
			<!-- bundle -->
			<mx:AddChild position="lastChild">
				<mx:Button styleName="categoryButton" id="bundleButtonID"  buttonMode="true" click="currentState=''" 
					 x="470" y="288.7" cornerRadius="0" height="107.556" width="222.043"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="470" y="289.7" text="bundle" color="#768e20" fontFamily="Helvetica Neue" fontSize="13.45" mouseEnabled="false" mouseChildren="false"
					id="bundleButtonTextID" fontWeight="bold" width="75" textAlign="left"  paddingLeft="12"/>
			</mx:AddChild>
			
			<!-- digital cable -->
			<mx:AddChild position="lastChild">
				<mx:Button styleName="categoryButton" id="digitalCableButtonID"  buttonMode="true" click="currentState='state2'" 
					 x="215.4" y="313.7" cornerRadius="0" height="221.422" width="395.673"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label
				x="216" y="319.7" text="digital cable" color="#768e20" fontFamily="Helvetica Neue" fontSize="23.97" mouseEnabled="false" mouseChildren="false"
					id="digitalCableButtonTextID" fontWeight="bold" width="246" textAlign="left"  paddingLeft="15"/>
			</mx:AddChild>
			<mx:RemoveChild target="{mdiLogoButtonID}"/>
			<mx:AddChild position="lastChild">
				<mx:Button styleName="mdiCreativeButton" id="mdiCreativeLogoButtonID" click="currentState=''" 
					buttonMode="true" x="28" y="71" cornerRadius="0" height="42.559" width="318.338"/>
			</mx:AddChild>
 
 
		</mx:State>
		
		<!-- ************************** -->
		<!-- CUSTOMIZATION LANDING PAGE -->
		<!-- ************************** -->
		<mx:State name="state2" basedOn="state1">
			<!--<mx:AddChild position="lastChild">
				<mx:Image x="0" y="0" height="612" width="792" source="images/customFPO.png"/>
			</mx:AddChild>-->
			<mx:RemoveChild target="{digitalVoiceButtonID}"/>
			<mx:RemoveChild target="{digitalVoiceButtonTextID}"/>
			<mx:RemoveChild target="{highSpeedButtonTextID}"/>
			<mx:RemoveChild target="{highSpeedButtonID}"/>
			<mx:RemoveChild target="{winbackButtonTextID}"/>
			<mx:RemoveChild target="{winbackButtonID}"/>
			<mx:RemoveChild target="{bundleButtonTextID}"/>
			<mx:RemoveChild target="{bundleButtonID}"/>
 
			<mx:AddChild position="lastChild">
				<mx:Label id="customTextLine1" text="{siteData.lastResult.page.customTextLine1}"
		        x="28" y="214" color="#585956" fontSize="14.81" fontFamily="Helvetica Neue" width="640" height="22" letterSpacing=".85"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label id="customTextLine2" text="{siteData.lastResult.page.customTextLine2}"
		        x="28" y="244" color="#585956" fontSize="14.81" fontFamily="Helvetica Neue" width="640" height="22" letterSpacing=".85"/>
			</mx:AddChild>
		</mx:State>
		
	</mx:states>
 
	
	<mx:Style source="supportFiles/Button.css" />
  
  	<mx:Style>
		@font-face {
    	src:url("supportFiles/fonts.swf");
    	fontFamily: "Helvetica Neue";
  		}
    	@font-face {
    	src:url("supportFiles/fonts.swf");
    	fontFamily: "75 Helvetica Bold";
    	}
	</mx:Style>
	
	<mx:Button x="150" y="155" styleName="mdiCreativeButton" id="mdiLogoButtonID" click="currentState=''" />
	<mx:Image x="0" y="245" source="images/homepageHanger.swf" id="homepageHangerID"/>
	<mx:TextInput x="517" y="21.9" height="21" width="121" id="usernameID" text="username" fontSize="10"/>
	<mx:TextInput x="517" y="44" height="21" width="121" id="passwordID" text="password" fontSize="10"/>
	
	<mx:Label id="homeHeadlineID" text="{siteData.lastResult.page.headline}" 
		x="34" y="391" color="#585956" fontSize="25.84" fontFamily="Helvetica Neue" width="613" letterSpacing="-.25"/>
		
	<mx:Text id="homeHeadlineParID" text="{siteData.lastResult.page.headlinePar}"
		x="34" y="431" color="#768E20" fontSize="12" leading="0" fontFamily="Helvetica Neue" width="640" height="106" letterSpacing="-.05" condenseWhite="true"/>
	
	<mx:Label id="boldGreenQuestionID" text="{siteData.lastResult.page.boldGreenQuestion}" 
		x="34" y="544" color="#768E20" fontSize="12" fontFamily="Helvetica Neue" width="640" height="22" fontWeight="bold" letterSpacing=".5"/>
	
	<mx:Text id="lastSentenceID" text="{siteData.lastResult.page.lastSentence}"
		x="34" y="558" color="#585956" fontSize="14.81" fontFamily="Helvetica Neue" width="640" height="22" letterSpacing=".85"/>
	
	<mx:Button id="loginButtonID" click="currentState='state1'"
		x="645" y="21.3" styleName="loginButton" buttonMode="true" cornerRadius="0" />
		
	<mx:Label  id="loginLabelID"
		x="681" y="32" text="Login" color="#FFFFFF" fontFamily="Helvetica Neue" fontSize="14" mouseEnabled="false" mouseChildren="false"/>
		
		
</mx:Application>

Open in new window

0
Comment
Question by:msukow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
msukow earned 0 total points
ID: 24755456
Figured it out - the font I thought was TrueType was actually postscript.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question