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
Operations

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

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="http://www.adobe.com/2006/mxml">
	<Script>
		<![CDATA[

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


 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.
Thx!


Michael Plank made changes - 16/Sep/10 02:17 PM
Field Original Value New Value
Status Open [ 1 ] Waiting for User Feedback [ 10002 ]
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="http://www.adobe.com/2006/mxml">
<mx:Button click="onClick(event)"/>
</mx:Application>

Then to quick fix to create the onClick method.


Michael Plank made changes - 17/Sep/10 04:22 PM
Status Waiting for User Feedback [ 10002 ] Confirmed [ 10000 ]
Michael Plank added a comment - 17/Sep/10 04:22 PM
Ah thx!
I could reproduce it now.

Michael Plank made changes - 17/Sep/10 04:22 PM
Fix Version/s FDT 4 Final [ 10013 ]
Meinhard Gredig made changes - 17/Sep/10 05:31 PM
Status Confirmed [ 10000 ] Resolved [ 5 ]
Philipp Arnolds made changes - 21/Sep/10 03:18 PM
Description 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:

{quote}
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<Script>
<![CDATA[

private function onClick(event : MouseEvent) : void {
}
]]>
</Script>
<mx:Button click="onClick(event)"/>
</mx:Application>
{quote}
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:

{code:xml}
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<Script>
<![CDATA[

private function onClick(event : MouseEvent) : void {
}
]]>
</Script>
<mx:Button click="onClick(event)"/>
</mx:Application>
{code}
Philipp Arnolds made changes - 21/Sep/10 03:30 PM
Status Resolved [ 5 ] Closed [ 6 ]
Sebastian Bär made changes - 06/May/11 06:45 AM
Workflow FDT Workflow2 [ 18651 ] FDT Workflow3 [ 20502 ]
Sebastian Bär made changes - 12/May/11 12:01 AM
Workflow FDT Workflow3 [ 20502 ] FDT Bugs - productive [ 22596 ]
Philipp Arnolds made changes - 07/Dec/11 12:02 PM
Status Closed [ 6 ] Resolved [ 5 ]
Philipp Arnolds made changes - 07/Dec/11 12:03 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Closed [ 6 ]
FDT Team made changes - 22/Jun/12 06:32 PM
Assignee Philipp Arnolds [ phiarn ] FDT Team [ fdt team ]
Status Closed [ 6 ] Resolved [ 5 ]
FDT Team made changes - 22/Jun/12 07:01 PM
Status Resolved [ 5 ] Closed [ 6 ]