# If \[Embed\] doesn't find the asset, how can we skip?

**URL:** <https://forum.kirupa.com/t/if-embed-doesnt-find-the-asset-how-can-we-skip/303061>\
**Category:** flash\
**Created:** [January 13, 2010, 9:29am UTC](https://forum.kirupa.com/t/if-embed-doesnt-find-the-asset-how-can-we-skip/303061 "2010-01-13T09:29:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [January 13, 2010, 9:29am UTC](https://forum.kirupa.com/t/if-embed-doesnt-find-the-asset-how-can-we-skip/303061/1 "2010-01-13T09:29:59Z")

</div>

Hello guys

I’m embedding a font at runtime with flex, using the following syntax:

```auto
 
[Embed(source='./Regular.ttf', fontFamily="Arial", fontName="Arial", fontWeight="normal", mimeType='application/x-font')] 
  public var Regular:Class;

```

I want this to be optional such that if this TTF file unexists at the specified location, then it can just be skipped and Regular takes a value of null.

How can I achieve this?
