# AS3 / Captivate 5 skin

**URL:** https://forum.kirupa.com/t/as3-captivate-5-skin/315711
**Category:** flash
**Created:** [November 2, 2010, 5:20pm UTC](https://forum.kirupa.com/t/as3-captivate-5-skin/315711 "2010-11-02T17:20:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![red2034](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@red2034](https://forum.kirupa.com/u/red2034)
#### Post date: [November 2, 2010, 5:20pm UTC](https://forum.kirupa.com/t/as3-captivate-5-skin/315711/1 "2010-11-02T17:20:02Z")

</div>

I am trying to re-purpose the CC btn in a Captivate 5 skin:

SO I have updated the btn image and added the btn code

Actionscript Code:  
[LEFT]pbcCC\_mc.[COLOR=#006600]addEventListener[/COLOR][COLOR=#66cc66]([/COLOR]MouseEvent.[COLOR=#006600]CLICK[/COLOR], callLink[COLOR=#66cc66])[/COLOR];  
[COLOR=#000000] **function** [/COLOR] callLinkCOLOR=#66cc66[/COLOR]:[COLOR=#0066cc]void[/COLOR] [COLOR=#66cc66]{[/COLOR]

[COLOR=#000000] **var** [/COLOR] [COLOR=#0066cc]url[/COLOR]:[COLOR=#0066cc]String[/COLOR] = [COLOR=#ff0000]“[http://www.google.com](http://www.google.com)”[/COLOR];  
[COLOR=#000000] **var** [/COLOR] request:URLRequest = [COLOR=#000000] **new** [/COLOR] URLRequestCOLOR=#66cc66[/COLOR];  
[COLOR=#0066cc]try[/COLOR] [COLOR=#66cc66]{[/COLOR]  
navigateToURL[COLOR=#66cc66]([/COLOR]request, [COLOR=#ff0000]’\_blank’[/COLOR][COLOR=#66cc66])[/COLOR];  
[COLOR=#66cc66]}[/COLOR] [COLOR=#0066cc]catch[/COLOR] COLOR=#66cc66[/COLOR] [COLOR=#66cc66]{[/COLOR]  
[COLOR=#0066cc]trace[/COLOR][COLOR=#66cc66]([/COLOR][COLOR=#ff0000]“Error occurred!”[/COLOR][COLOR=#66cc66])[/COLOR];  
[COLOR=#66cc66]}[/COLOR]  
[COLOR=#66cc66]}[/COLOR]  
[/LEFT]

when I export the skin from [[COLOR=blue][COLOR=blue !important][FONT=verdana][COLOR=blue !important][FONT=verdana]flash[/FONT][/COLOR][/FONT][/COLOR][/COLOR]](http://www.kirupa.com/forum/#) it works and launches the link, but when I save the swf to the cap folder and publish the captivate movie the btn does not work?!?!?!?

ANybody tried this?

Red
