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
FDT Team added a comment - 04/Jul/12 08:14 PM
Hey Tom,

The include imperative is not supported by FDT's parser.

There are no plans to implement this because of the effort involved (which is basically rewriting most of the parser).

I suggest wrapping in :

/*FDT_IGNORE*/
	// ignore code goes here
/*FDT_IGNORE*/

To have FDT ignore referenced code.

You'll still be able to compile your applications even with the parser errors.