# Extending the Flex Alert Class

**URL:** <https://forum.kirupa.com/t/extending-the-flex-alert-class/231315>\
**Category:** flash\
**Created:** [July 3, 2007, 5:08pm UTC](https://forum.kirupa.com/t/extending-the-flex-alert-class/231315 "2007-07-03T17:08:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Incinnerator](https://avatars.discourse-cdn.com/v4/letter/i/3be4f8/32.png) [@Incinnerator](https://forum.kirupa.com/u/Incinnerator)\
**Post date:** [July 3, 2007, 5:08pm UTC](https://forum.kirupa.com/t/extending-the-flex-alert-class/231315/1 "2007-07-03T17:08:20Z")

</div>

Hi

I’m working with flex but my question is OO related.  
There is a class Alert and it shows a kind of messagebox on screen.

it has a static function show(parameters)  
and some static variables: yesLabel,noLabel etc

I want to create an Alert class with the labels in Dutch.  
I created the class AlertDutch which extends Alert but it seems I can’t access the public static funtion show.

the question:  
Do I have to encapsulate the whole thing?  
Do I have to write the function show with its paramters in my custom class and then just call the Alert.show(paramters) function?

thx  
Incinnerator
