# AS3. Can you explain this OOP conundrum?

**URL:** <https://forum.kirupa.com/t/as3-can-you-explain-this-oop-conundrum/289310>\
**Category:** flash\
**Created:** [May 28, 2009, 8:09pm UTC](https://forum.kirupa.com/t/as3-can-you-explain-this-oop-conundrum/289310 "2009-05-28T20:09:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Post date:** [May 28, 2009, 8:09pm UTC](https://forum.kirupa.com/t/as3-can-you-explain-this-oop-conundrum/289310/1 "2009-05-28T20:09:10Z")

</div>

Ok guys more theory id appriacate some help with 😃

I hit an example today which illustrates the issue.

Lets say i have Main.as and Title.as

Main is the root  
Title contains the graphics for the title

I want to tween this title into view.

This gives me 2 choices.

Do i do this from Main:

```auto
var title:Title = new Title();
addChild(title);

Tweener.addTween(title, {alpha:1, time:1});

```

or do i do this in Title:

```auto
public function fadeIn(): void
{
    Tweener.addTween(title, {alpha:1, time:1});
}

```

so main looks like this instead:

```auto
var title:Title = new Title();
addChild(title);
title.fadeIn();

```

This example in its context might not mean anything and you may just say it is one and the same. However i realise as my applications get bigger i lose confidence. The first way seems to offer more flexibility as i work with a simple object but also code seems to get messy. What way is best?
