Issue Details (XML | Word | Printable)

Key: FDT-1277
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: FDT Team
Reporter: Scott Enders
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Script tag improperly created on auto completion

Created: 15/Sep/10 10:41 PM   Updated: 22/Jun/12 07:01 PM
Component/s: Core (Deprecated)
Affects Version/s: FDT 4 RC 1
Fix Version/s: FDT 4.0
Security Level: public

Time Tracking:
Not Specified

Environment: Windows 7

 Description  « Hide
I created an mx Application and created a Button. When I specify a click event on the the button and use auto complete to create the function for me, it creates the Script tags and the new click listener function for me. But the Script tags don't have mx: in front of Script. Below is the result of the scenario:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="">

			private function onClick(event : MouseEvent) : void {
	<mx:Button click="onClick(event)"/>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Michael Plank added a comment - 16/Sep/10 02:17 PM
Hmm... I can not reproduce it.

I have:

  • Created a new Project using Flex 3.5 SDK
  • added a new mx:Application class
  • added button with a click event
  • hit CMD+1 for Quickfix to generate the event handler
  • the script get's inserted correctly

Please let me know how to reproduce the problem.

Scott Enders added a comment - 16/Sep/10 02:26 PM
I created project as a Flex 4 project. I am using the Flex 4.1 SDK. Create new application that looks like this:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="">
<mx:Button click="onClick(event)"/>

Then to quick fix to create the onClick method.

Michael Plank added a comment - 17/Sep/10 04:22 PM
Ah thx!
I could reproduce it now.