# AS2 -\> AS3 Issues

**URL:** https://forum.kirupa.com/t/as2-as3-issues/296145
**Category:** Uncategorized
**Created:** [September 10, 2009, 4:25am UTC](https://forum.kirupa.com/t/as2-as3-issues/296145 "2009-09-10T04:25:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GGMcGee](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@GGMcGee](https://forum.kirupa.com/u/GGMcGee)
#### Post date: [September 10, 2009, 4:25am UTC](https://forum.kirupa.com/t/as2-as3-issues/296145/1 "2009-09-10T04:25:18Z")

</div>

I know barely anything about Actionscript. I can work with it when certain variables are staring me in the face, but that’s about it.

I need to insert have a video on a webpage. I have some AS2 that detects a cuepoint at the end of the flv and sends the .swf back to frame 1. I have some AS3 that makes the video full screen when a button is clicked.

They don’t like eachother.

Can someone please ‘convert’ my cuepoint AS2 code to AS3 code? I need it to work with my fullscreen AS3 code…

Also, this seems so simple and silly, but I no longer know how to create a button that’ll advance to a frame when clicked. I knew how to do it in AS2, but AS3 is weird and scary to me. Can someone tell me how to do it?

Cuepoint AS2 code…:

```auto

stop();

var listenerObject:Object = new Object();

listenerObject.cuePoint = function(eventObject:Object):Void {
    
if(eventObject.info.name=="cue1"){
gotoAndStop(1);
}
}
vid.addEventListener("cuePoint", listenerObject);

```

Thanks in advance for your help.
