Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Flash Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2007, 05:38 AM
WebProWorld New Member
 

Join Date: Jun 2007
Location: lynchburg, va, suffolk, va
Posts: 5
kmsmith2 RepRank 0
Default Actionscript Error!

hey everyone, i'm attempting to build a site in flash cs3, but i'm having a few problems.

i have my index .fla file with a container built into it. i'm trying to link an swf file into the container using the instance name "container", but i can't seem to get the script right. i want it to load on release of a button.

this is what i think it shoule be, but it's wrong

on (release) {
loadMovie("contact.swf")
}
the swf is contact.swf. trying to put it into an empty movie clip with an instance name of container. hopefully i explained it well enough for someone to help me!

thanks for your time
Reply With Quote
  #2 (permalink)  
Old 06-26-2007, 11:45 AM
WebProWorld Member
 

Join Date: Oct 2003
Location: St. Louis
Posts: 30
lutenegger RepRank 0
Default Re: Actionscript Error!

You don't have anything telling it to load into container. Assuming this actionscript is associated with a button in a navigation or something like that, which then loads the content into a movie clip, this has worked for as long as I can remember.

on(release){
container.loadMovie("contact.swf");
}

I'm not using CS3 yet so I can't test this, it does work in Flash 8 (Published for Player 8, ActionScript 2).

Erik Lutenegger : Web Developer : St. Louis, MO

Last edited by lutenegger : 06-26-2007 at 11:51 AM.
Reply With Quote
  #3 (permalink)  
Old 06-26-2007, 12:01 PM
WebProWorld New Member
 

Join Date: Jun 2007
Location: lynchburg, va, suffolk, va
Posts: 5
kmsmith2 RepRank 0
Default Re: Actionscript Error!

thanks alot man! i appreciate it...for the life of me i couldn't figure it out! it works...thanks again!

kmsmith2
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime Error - Line 1 - Error Syntex Error charms987 Graphics & Design Discussion Forum 6 07-29-2005 12:56 PM
What is ActionScript? WPW_Feedbot Graphics & Design Discussion Forum 0 03-01-2005 10:31 AM
Website actionscript help please!! NorthernMonkey Flash Discussion Forum 1 09-22-2004 11:51 AM
Stop an actionscript dmbsarah Flash Discussion Forum 1 09-17-2004 10:13 AM
Help with ActionScript leandroaliaj Flash Discussion Forum 5 09-01-2004 08:19 AM


Search Engine Optimization by vBSEO 3.2.0