HELP!!!

  • 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:

http://www.kirupa.com/developer/mx2004/transitions.htm


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”;
container.loadMovie(_root.currMovie+".swf");





I entered this code:
_root.currMovie = “main”;
container.loadMovie
(_root.currMovie+"main.swf");


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!!!

Carol
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • 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 ]
container.loadMovie
(_root.currMovie+"main.swf");
  1. container.loadMovie
  2. (_root.currMovie+"main.swf");

To,
Code: [ Select ]
container.loadMovie(_root.currMovie+"main.swf");

:D

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 9 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
 
cron
 

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