• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Screen Video Recorder Project in ActionScript 2.0

New Here ,
Apr 21, 2023 Apr 21, 2023

Copy link to clipboard

Copied

Hi, the ActionScript codes for the video screen recorder for my Talking Ben (Wii) project were made by the ChatGPT and this is only being worked and developed on the ActionScript 2.0 language, because this is supposed to be my unofficial remake of Talking Ben for the Nintendo Wii that is supposed to be loaded in Adobe Flash. The Wii only supports ActionScript 1.0 and 2.0 from Flash Player 1 to 9. And I'm having trouble for this one ActionScript code that is supposed to screen record all of the frame labels that have the Talking Ben video clips.  By the way all of these Ben clips such as Ben eating, drinking, burping, and what you do to ben such as touching him are only videos that are in all FLV movie clips and all of the video screen size are in 222 x 480. Here's the full list of frame labels that loads in Ben clips: "Newspaper", "Burp", "Drink", "Eat", "Main", "Opening_Newspaper", "Fliping_Page", "Fliping_Page_2", "Closing_Newspaper", "Moving_While_Reading_Newspaper", "Fliping_Page_3", "Wiggling_Left_Feet_While_Reading_Newspaper", "Wiggling_Right_Feet_While_Reading_Newspaper", "Wiggling_Left_Feet", "Wiggling_Right_Feet", "Wiggling_Left_Hand", "Wiggling_Right_Hand", and "Slapped_In_The_Face", these are the labels that all should be recording and done or you decided to stop recording, after the recording is done, it's supposed to take you to a frame label named "Export" on where it only has the play button that plays your recorded and converted video, here's the ActionScript code taken from the "Export" frame label:

stop();
import mx.video.FLVPlayback;

// Create an instance of the FLVPlayback component
var player:FLVPlayback = new FLVPlayback();

// Add an event listener to the "PlayButton" MovieClip symbol
PlayButton.onRelease = function() {

// Set the size and position of the FLVPlayback component
player.setSize(222, 480);
player._x = 0;
player._y = 0;

// Load and play the recorded video
player.load("myrecording.flv");
player.play();

// Go to the "Player" frame label
gotoAndStop("Player");
};

 

An ActionScript code in the "Player" label:

stop();
// Add an event listener to the "ExitButton" MovieClip symbol
ExitButton.onRelease = function() {

// Stop the video playback
player.stop();

// Go back to the "Export" frame label
gotoAndStop("Export");
};

 

Here's this one whole ActionScript code for the video screen recording , again that is supposed to record all of these Talking Ben video clip frame labels, by the way this ActionScript code was written by the ChatGPT:

import com.obs.OBSAPI;

// Create an instance of the OBSAPI class
var obs:OBSAPI = new OBSAPI();

// Add an event listener to the "RecordButton" MovieClip symbol
RecordButton.onRelease = function() {

// Start the screen recording
obs.startRecording("myrecording.flv", 60); // Filename and duration

// Go to the "Export" frame label
gotoAndStop("Export");
};

 

Also as you can see this import code, "import com.obs.OBSAPI;", this was supposed to load in the OBSAPI.as (ActionScript file), but ChatGPT does not know what the actual ActionScript code of the ActionScript file really is. ChatGPT tells me to try to use the OBS Studio's websocket and even look for the OBSAPI from it's old OBS source code for that ActionScript 2.0 code .as file, but what I found is just the C++ stuff.

Now ChatGPT says that the import for the OBSAPI is ActionScript 3.

Is there another way that I could try to do for this video recording ActionScript 2.0 development for my Talking Ben (Wii) project that's also in ActionScript 2.0 and in Adobe Flash Player 9?

 

By the way, here's the link to my Talking Ben FLA source code archive, please note that you will need to have Adobe Flash Professional CS6 in order to open this FLA document on your Adobe Flash professional:

https://www.mediafire.com/file/c46abve8e28zhcq/ben_wii.rar/file

 

Views

322

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

are you trying to create an as2 project that records something?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

Yes.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2023 Apr 23, 2023

Copy link to clipboard

Copied

are you looking to hire someone to do this or are you asking something else?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2023 Apr 23, 2023

Copy link to clipboard

Copied

LATEST

Yeah, I could say looking to hire someone to do this project development.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines