Hi Scholars...
I know nothing about flash, I have a small presentation to do in it...
My presentation is:
A car should automatically turn on its head lights when entered into a dark place and turn off when it is back again into sunlight. I want this to be done in Macromedia flash 8. Can any of u please help me in doing this??? Eagerly waiting for your reply.

Thanking you scholars
Yours friendly

Dani AI

Generated

Short answer and a straight path to a working Flash 8 demo (no real ambient‑light sensing — this is a simulation inside Flash).

A reliable approach: make the car and its headlights separate movie clips, make an invisible or visible "dark area" movie clip that marks the tunnel/shaded zone, then use ActionScript 2 (Flash 8 uses AS2) to test collision and switch the headlight clip between "off" and "on" frames. This follows the gist of and — tutorials are good, but converters (PowerPoint→Flash) usually cannot add custom collision logic.

Minimal FLA structure

  • Layer: background
  • MovieClip instance darkArea_mc (shape marks dark zone)
  • MovieClip instance car_mc (contains headlight_mc inside it)
  • headlight_mc has two labeled frames: off (no beam) and on (beam art + glow)

Place this AS2 on the main timeline (frame 1):

car_mc.onPress = function() {
  this.startDrag();
};
car_mc.onRelease = car_mc.onReleaseOutside = function() {
  this.stopDrag();
};

this.onEnterFrame = function() {
  if (_root.car_mc.hitTest(_root.darkArea_mc)) {
    _root.car_mc.headlight_mc.gotoAndStop("on");
  } else {
    _root.car_mc.headlight_mc.gotoAndStop("off");
  }
};

Notes and quick troubleshooting

  • Exact instance names matter; spelling must match.
  • hitTest(movieClip) does bounding-box collision; for tighter detection use pixel-level test patterns (see hitTest(x,y,true)).
  • Use a Glow filter or a beam graphic on headlight_mc for a realistic effect; you can tween _alpha for smooth fades.
  • If the car is animated on a path, the same onEnterFrame logic applies; if you place code inside a nested clip, avoid relying on _root unless you understand scope.

This gives a compact, testable Flash 8 solution without external tools.

Hello ever students,

I think you'd better learn flash first. There are many video tutorials introduct the operations step-by-step. You can learn it first. Because it's very hard to talk all of the steps here.

Another way, I think you can make the flash on powerpoint, and then use some third-party tool to convert the ppt file to flash file. I remember I have read an amazing article about how to make flash on PowerPoint step-by-step, you can go to http://www.articulate.com/rapid-elearning/how-walt-disney-would-use-powerpoint-to-create-e-learning-courses/ and have a look.

Hope it helps!

Sincerely,
Sabrina

You should see some video tutorials on internet and may be from that you get some help...

Thank you Scholar, for your valuable answer.

You should see some video tutorials on internet and may be from that you get some help...

Thank you Scholar, for your valuable answer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.