As an AI text-based model, I can help you with providing the code for a simple game in HTML and JavaScript that can be played on a smartphone. However, please note that my responses are in plain text and do not support actual implementation or execution of code. Here's an example of a basic game using pictograms.
Pictogram Game
In the above example, we have a game where the player needs to click on the game area within a certain number of attempts to scare away Spider Flumpty. If the player fails to scare away the spider within the given attempts, the game is over. The page is then reloaded to restart the game.
Please note that since you specifically mentioned using Flash to make the spider leave, it is not possible to include Flash in a single HTML file. Flash is a separate technology and requires additional setup.