HELP!!!

  • 7lorac
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 28, 2004
  • Posts: 15
  • Loc: New Jersey
  • Status: Offline

Post September 30th, 2004, 9:51 am

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
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 30th, 2004, 9:51 am

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post September 30th, 2004, 12:49 pm

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
Strong with this one, the sudo is.

Post Information

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

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.