• 7lorac
  • Novice
  • Novice
  • 7lorac
  • Posts: 15
  • Loc: New Jersey

Post 3+ Months Ago

Hi! I'm creating a whole flash website, and I'm having problems linking my swf files to the main. I'm following the tutorial:

When I got to the section of the tutorial that explains how get the first section to load automatically when entering the site:

"place this code at the frame of the main timeline at which you want the first section to show, and replace your_first_section_name by the name of the first section:
_root.currMovie = “your_first_section_name”;

I entered this code:
_root.currMovie = “main”;

I got an error message:
Operator '=' must be followed by an operand
_root.currMovie = “main”;
Total ActionScript Errors: 1 Reported Errors: 1

Is there anyone that can help???!!! I would be so ever thankful!!! I really need to do this!!! Thanks!!!

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13506
  • Loc: Florida

Post 3+ Months Ago

Flash doesn't recognise the quotes used in this line,
Code: [ Select ]
_root.currMovie = “main”;

Use theese instead,
Code: [ Select ]
_root.currMovie = "main";

Common when copy/pasting code, I have no idea where thoose funky quotes come from, but flash doesn't like them :wink:

It will also make things easier to eliminate the line break in this,
Code: [ Select ]
  1. container.loadMovie
  2. (_root.currMovie+"main.swf");

Code: [ Select ]


Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2015. Ozzu® is a registered trademark of Unmelted, LLC.