A little Backstory: I took on an AS3 project at university, no one of the original team is left/reachable. I was originally told I only nead FlashDevelop. I don't have to alter the code yet, just compile it. I'm pretty good at java programming with eclipse, but AS3 and Flashdevelop are new for me. (Of course I read into it before starting!)
I am using FlashDevelop 4.0.1 and Flex SDK 4.6.0.
When I first tried to compile it, I got the folling error:
svn\trunk\src\com\hybrid\ui\ToolTip.as(381): col: 38 Error: Type was not found or was not a compile-time constant: TweenEvent.
So I researched on the Internet and came to the conclusion that TweenEvent isn't even part of Flex SDK 4.6.0, but that I needed Adobe CS Flash for that. That was supported by the fact how the Config.xml looked. This two lines where added to the project path.
<path-element>C:\Program Files (x86)\Adobe\Adobe Flash CS3\de\Configuration\Component Source\ActionScript 3.0\User Interface</path-element>
<path-element>C:\Program Files (x86)\Adobe\Adobe Flash CS4\Common\Configuration\ActionScript 3.0\projects\Flash\src</path-element>
So I ordered Flash and got Adobe Flash CS6. And now thing start to not make sense anymore. I added the line below, which I thought would be the appropriate aquivalent to one of the lines above. (censored the name)
path-element>C:\Dokumente und Einstellungen\***\Adobe\Adobe Flash CS6\Common\Configuration\ActionScript 3.0</path-element>
And the error changed to:
C:\Dokumente und Einstellungen\***\Desktop\HiWi\iml-as3-svn-110718-11-04\svn\trunk\src\IML.mxml(106): Error: Could not resolve <ns1:ULog> to a component implementation.
Then I tried adding the second line which I couldn't find an exact match for, so I tried adding
<path-element>C:\Dokumente und Einstellungen\***\Adobe\Adobe Flash CS6\de_DE\Configuration\ActionScript 3.0</path-element>
And with doing that I got the exact first error.
svn\trunk\src\com\hybrid\ui\ToolTip.as(381): col: 38 Error: Type was not found or was not a compile-time constant: TweenEvent.
So now I am at a complete loss, I don't know where I went wrong, so some help would really be appriciated. Please tell me if you need to see code or if I went completely wrong somewhere. I know it's a very specific problem, but I hope someone with more expertise sees things I don't. I'll be here almost all day today and tomorrow, so if I get some answers I will try it immediatly. Thank you in advance!
Edit: It seems that only one class uses this (unless I overlooked something). The import statement is:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
So, does that mean I need those files? But shouldn't have the path added above fixed that?
I don't want to post the whole class because it's rather long, so here everything, that uses Tweens. Looking at it now this doesn't seem to be that much.
private var _tween:Tween;
/* Fade In / Out */
private function animate( show:Boolean ):void {
var end:int = show == true ? 1 : 0;
// added : DR : 04.29.2010
if( _tween != null && _tween.isPlaying ) {
_tween.stop();
}
// end add
_tween = new Tween( this, "alpha", Strong.easeOut, this.alpha, end, .5, true );
if( ! show ){
_tween.addEventListener( TweenEvent.MOTION_FINISH, onComplete );
_timer.reset();
}
}
private function onComplete( event:TweenEvent ):void {
event.currentTarget.removeEventListener(event.type, arguments.callee);
this.cleanUp();
}
/* End Fade */