Need help with a flex builder Application, Where should I go?

Discussion in 'Programming' started by unitedlocalbands, Feb 21, 2008.

  1. #1
    Maybe you know whats wrong, or you can just show me how to make this flex application use an image file as a link to change content in an Iframe.

    
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" alpha="1.0" themeColor="#ffffff" width="902" backgroundImage="Background2dark.jpg" borderThickness="0" borderStyle="none">
    <mx:Script>
     	<![CDATA[
     	
     	import flash.events.MouseEvent;
    
        public function createListener():void {
            buildpics.addEventListener(MouseEvent.CLICK, getURL);
        }
       
       getURL(buildPics, "content");
    
        ]]>
     </mx:Script>
    	<mx:Image x="267" y="126" width="197" height="148" source="/instruments_link.jpg"/>
    	<mx:Image x="415" y="49" source="/aboutus_link.jpg" width="300" height="92"/>
    	<mx:Image x="191" y="289" source="/links_link.jpg" width="86" height="158"/>
    	<mx:Image x="19" y="90" source="/neck_links.jpg" width="97" height="122"/>
    	<mx:Image x="124" y="10" source="/contactus_link.jpg" width="202" height="137"/>
    	<mx:Image x="150" y="166" source="/wood_links.jpg" width="68" height="197"/>
    	<mx:Image x="506" y="149" source="/repairs_links.jpg" width="224" height="298"/>
    	<mx:Image x="285" y="282" source="/buildpic_link.jpg" width="213" height="108"/>
    	
    /*This link button sits on top of the image at the same x y location, Giving the apearance that the image is clickable.
    <mx:LinkButton x="285" y="282" id="buildPic" label="LinkButton" width="213" height="108" overSkin="@Embed('images/indexlinks/buildpic_link.jpg')"/>
    	
    </mx:Application>
    
    Code (markup):

     
    unitedlocalbands, Feb 21, 2008 IP