Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardboard Box Assembler: Play button doesn't appear #11921

Closed
n0samu opened this issue Jul 6, 2023 · 0 comments · Fixed by #11936
Closed

Cardboard Box Assembler: Play button doesn't appear #11921

n0samu opened this issue Jul 6, 2023 · 0 comments · Fixed by #11936
Labels
A-avm2 Area: AVM2 (ActionScript 3) A-video bug Something isn't working unimplemented Issues for functionality that hasn't been implemented yet

Comments

@n0samu
Copy link
Member

n0samu commented Jul 6, 2023

Describe the bug

Download: CardboardBoxAssembler_LocalFLV.zip

Note: This is also affected by #11911, so you will need to delete the game's save data each time you test it, otherwise Ruffle will panic. And be sure to test this with #11815 merged in. Also, in Flash Player this will only work via a local web server because the SWF's security sandbox doesn't allow accessing local files.

In Cardboard Box Assembler, the Play button doesn't appear after the intro video plays. The relevant code is in the com.adultswim.Preroll class:

    public function onCuePoint(param1:Object) : void
    {
        trace("cuepoint: time=" + param1.time + " name=" + param1.name + " type=" + param1.type);
        switch(param1.name)
        {
            case "enterPlay":
                GlobalVarContainer.vars.bReady = true;
                this.nav = new Navigation();
        }
    }

onCuePoint does not trigger in Ruffle. We need an implementation like #11858 for AVM2.

Expected behavior

The Play button should appear after the intro video finishes playing.

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) A-video bug Something isn't working unimplemented Issues for functionality that hasn't been implemented yet
Projects
None yet
2 participants