Issue Details (XML | Word | Printable)

Key: FDT-1038
Type: Bug Bug
Status: Closed Closed
Priority: Major Major
Assignee: FDT Team
Reporter: tom chiverton
Votes: 1
Watchers: 2
Operations

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

FDT thows 'unexpected Token' errors when an ActionScript file is included in an MXML file

Created: 12/Jul/10 02:19 PM   Updated: 06/Jul/12 02:26 PM
Component/s: MXML
Affects Version/s: 4.0 Milestone 3
Fix Version/s: None
Security Level: public

Time Tracking:
Not Specified

Environment: Eclipser Helios on Linux
Issue Links:
Duplicate
 


 Description  « Hide
HorizontalSliderAxis.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox paddingLeft="35" xmlns:mx="http://www.adobe.com/2006/mxml">
	<mx:Script  >
		include "HorizontalSliderAxisSupport.as";		
	]]>
	</mx:Script>
</mx:HBox>

HorizontalSliderAxisSupport.as:
import mx.effects.Tween;

private var thumbWidth:Number=2;

An error marker is given on the 'import' line of the .as file. The Flex SDK is fine with this programming pattern.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Philipp Arnolds made changes - 12/Jul/10 04:43 PM
Field Original Value New Value
Description HorizontalSliderAxis.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox paddingLeft="35" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script >
include "HorizontalSliderAxisSupport.as";
]]>
</mx:Script>
</mx:HBox>

HorizontalSliderAxisSupport.as:
import mx.effects.Tween;

private var thumbWidth:Number=2;


An error marker is given on the 'import' line of the .as file. The Flex SDK is fine with this programming pattern.
HorizontalSliderAxis.mxml:
{code:xml}
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox paddingLeft="35" xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script >
include "HorizontalSliderAxisSupport.as";
]]>
</mx:Script>
</mx:HBox>
{code}
HorizontalSliderAxisSupport.as:
import mx.effects.Tween;

private var thumbWidth:Number=2;


An error marker is given on the 'import' line of the .as file. The Flex SDK is fine with this programming pattern.
Philipp Arnolds made changes - 12/Jul/10 05:03 PM
Affects Version/s 4.0 Milestone 2 [ 10333 ]
Affects Version/s 4.0 Milestone 3 [ 10334 ]
Meinhard Gredig made changes - 16/Jul/10 02:00 PM
Link This issue duplicates FDT-1045 [ FDT-1045 ]
Stefan Kreus made changes - 12/Aug/10 11:17 AM
Workflow Public Product Workflow [ 16137 ] FDT Workflow [ 16544 ]
Stefan Kreus made changes - 12/Aug/10 11:34 AM
Workflow FDT Workflow [ 16544 ] FDT Workflow2 [ 17810 ]
Michael Plank made changes - 27/Oct/10 11:20 AM
Status Open [ 1 ] Confirmed [ 10000 ]
Sebastian Bär made changes - 06/May/11 06:46 AM
Workflow FDT Workflow2 [ 17810 ] FDT Workflow3 [ 20860 ]
Sebastian Bär made changes - 12/May/11 12:04 AM
Workflow FDT Workflow3 [ 20860 ] FDT Bugs - productive [ 22702 ]
FDT Team made changes - 21/Jun/12 06:41 PM
Assignee Philipp Arnolds [ phiarn ] FDT Team [ fdt team ]
FDT Team made changes - 04/Jul/12 08:14 PM
Status Confirmed [ 10000 ] Closed [ 6 ]
FDT Team made changes - 06/Jul/12 02:26 PM
Link This issue duplicates FDT-155 [ FDT-155 ]