Issue Details (XML | Word | Printable)

Key: FDT-808
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: jc
Votes: 0
Watchers: 1
Operations

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

'with' statement loses scope

Created: 05/Feb/10 02:34 PM   Updated: 26/May/10 02:32 PM
Return to search
Issue 100 of 627 issue(s)
Component/s: Editor
Affects Version/s: 3.5
Fix Version/s: 3.5 SR1, 4.0 Milestone 2
Security Level: public

Time Tracking:
Not Specified

Environment: XP Pro, Eclipse Galileo with FDT 3.5 professional plugin


 Description  « Hide
issue:

the actionscript editor loses scope defined within a "with" statement:

public static function drawBox():Sprite
{
	var sprite:Sprite = new Sprite;
	with (sprite.graphics)
	{
		beginFill(0,1);
		drawRect(0, 0, 5, 5);
	}
	return sprite;
}

expected: the editor knows that beginFill() and drawRect() calls should be scoped to sprite.graphics

actual result: editor marks error: "could not resolve function beginFill..."



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Sebastian Bär added a comment - 26/May/10 02:31 PM
The issue is fixed for version 3.5 SR 1 and FDT 4.0 Milestone 2.

Sebastian Bär added a comment - 26/May/10 02:32 PM
This fix was published with FDT 3.5 SR 1 on 5/26/2010 and FDT 4.0 Milestone2 on 5/11/2010.