Set a breakpoint in CancelLinkUiEvent class an check if you are able to get that point. And then try to find out where the flaw is.
On Mar 21, 11:26 am, Rosegarden <[email protected]> wrote: > There is a " cancel link" which is not working . This is a "link" , > and it's function is that when users upload a picture or video if they > change their mind, and want to cancel uploading they should be able > to cancel it. But right now they cannot cancel. Below one is the code > for it.Can someone please help me. What is wrong. > > <?xml version="1.0" encoding="utf-8"?> > <mx:Form > verticalScrollPolicy="off" > xmlns:mx="http://www.adobe.com/2006/mxml" > xmlns:components="com.twl.components.*"> > > <mx:Metadata> > [Event ( name = "cancelLink", > type = "com.zolio.control.worksamples.media.CancelLinkUiEvent" )] > [Event ( name = "link", > type = "com.zolio.control.worksamples.media.LinkMediaUiEvent" )] > </mx:Metadata> > > <mx:Script> > <![CDATA[ > import com.zolio.control.worksamples.media.CancelLinkUiEvent; > import com.zolio.control.worksamples.media.CreateMediaLinkEvent; > import com.zolio.control.worksamples.media.LinkMediaUiEvent; > import com.zolio.model.ResumeBuilderModelLocator; > > private function link () : void > { > new CreateMediaLinkEvent ( title.text, url.text ).dispatch (); > dispatchEvent ( new LinkMediaUiEvent () ); > > } > > private function cancel (): void > { > dispatchEvent ( new CancelLinkUiEvent () );} > > ]]> > </mx:Script> > > <mx:Binding source="url.text != null && url.text.length > 0" > destination="linkButton.enabled" /> > > <mx:FormItem label="{ResumeBuilderModelLocator.getString > ( 'worksamples.media.link.url.label' )}" > width="100%" > direction="horizontal"> > > <components:AdvancedTextInput id="url" > width="100%" /> > > </mx:FormItem> > > <mx:FormItem label="{ResumeBuilderModelLocator.getString > ( 'worksamples.media.link.title.label' )}" > width="100%"> > > <components:AdvancedTextInput id="title" > width="100%" /> > > </mx:FormItem> > > <mx:FormItem > width="100%" > label="{ResumeBuilderModelLocator.getString > ( 'worksamples.media.upload.description.label' )}"> > > <components:AdvancedSpellCheckingTextArea id="description" > width="100%" height="50" > dictionary="{ResumeBuilderModelLocator.getString > ( 'application.dictionary.url' )}" > wordWrap="true" > maxChars="200" /> > > </mx:FormItem> > > <mx:FormItem > width="100%" > direction="horizontal"> > > <mx:LinkButton id="linkButton" > styleName="small" > label="{ResumeBuilderModelLocator.getString > ( 'worksamples.media.link.linkbutton.label' )}" > click="link ();" /> > > <mx:LinkButton > styleName="small" > label="{ResumeBuilderModelLocator.getString > ( 'worksamples.media.cancelbutton.label' )}" > click="cancel ();" /> > > </mx:FormItem> > > </mx:Form> > > Thanks, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

