# Problem withs imports doing a component! HELP

**URL:** <https://forum.kirupa.com/t/problem-withs-imports-doing-a-component-help/184411>\
**Category:** Uncategorized\
**Created:** [April 4, 2006, 11:39pm UTC](https://forum.kirupa.com/t/problem-withs-imports-doing-a-component-help/184411 "2006-04-04T23:39:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbraga](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@bbraga](https://forum.kirupa.com/u/bbraga)\
**Post date:** [April 4, 2006, 11:39pm UTC](https://forum.kirupa.com/t/problem-withs-imports-doing-a-component-help/184411/1 "2006-04-04T23:39:09Z")

</div>

Hello…  
Im build my component, and im importing 2 mx classes

#initclip  
function myComponent() {  
import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
this.init();  
}

…

on some method i have  
var tween\_handler:Object = new Tween(this.myObject, “\_alpha”, Regular.easeIn, this.myObject.\_alpha, 100, 0.18, true);  
trace("here: "+tween\_handler);

my problem is…  
if i test this component on the same FLA that im building it… everything goes ok… and the tween works, but if i make the SWC file and i try the componet in a new fla file, that tween handler is undefined…  
and i only can put i working if i put on the movie that im using the component this  
import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
tween\_handler:Object = new Tween()

Any Help!!!

Best regards
