[flexcoders] Re: What is wrong with my component
Did you set the value of URL? I see where you declared the variable, and made it Bindable, but I don't see where you set the value. In other words, I see this: [Bindable] public var URL:String; But I don't see anything like this: URL = http://www.myWebSite.com;; --- In flexcoders@yahoogroups.com, Faisal Abid [EMAIL PROTECTED] wrote: I am developing a download widget and I have created bindable propertys and etc and my URL var is linked to navigateToURL and when i fill the URL with a property eg ns1:downloadwidget URL=myurl/ it will nto go to myurl instead it will go to projectroot/myurl . here is the portion of the code. rember it is just a portion of the code , i dont want to reveal all the code. mx:Script ![CDATA[ import mx.events.*; import flash.net.*; [Bindable] public var URL:String; ]] /mx:Script mx:LinkButton x=310 y=82 label=Launch! click=navigateToURL(new URLRequest('{URL}'))/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: What is wrong with my component
I dont see why I would since it is a dynamic link. here is the full code to my component and the part where it is being called in my main.mxml file ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=420 height=144 title={TitlePanel} mx:Script ![CDATA[ import mx.events.*; import flash.net.*; [Bindable] public var URL:String; [Bindable] public var ImageURL:String; [Bindable] public var Description:String; [Bindable] public var TitlePanel:String; ]] /mx:Script mx:Canvas width=100% height=100% cornerRadius=20 borderColor=#00 mx:Image x=6 y=5 width=95 height=94 source={ImageURL}/ mx:LinkButton x=310 y=82 label=Launch! click=navigateToURL(new URLRequest('{URL}'))/ mx:Text x=109 y=10 width=291 height=64 text={Description}/ /mx:Canvas /mx:Panel and this is how i am calling it ns1:DownloadWidget TitlePanel=G-uniX Fifa Explorer Description=Made For The 2006 Fifa World Cup and For The Upcomming 2010 World Cup URL=http://www.g-unix.com/apps/fifa/index.html; width=100% /ns1:DownloadWidget -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/