Endless loop, can't fix
marisol_Q Jan 3, 2012 8:54 PMHello,
I reached out to the group last week and think I misunderstood the instructions to fix my script. Basically, I have three areas for my site: home, work, and experience and labels that match these areas. I want to use labels rather than frame numbers to navigate through the file. These areas, home/work/experience can be reached, if the script worked, via buttons on the upper left hand side. The work area is for a portfolio that uses a loader that switches out swf files based on what button is pressed (these are small thumbnails on the right side).
1) I would like to have the script work and I would love to really understand how I can take a bit of text: "You can reach me via email." turn into a mailto: that opens up the user's email program.
2) I would also like a bcc line and a subject line that works!
3) As it stands, the file constantly loops. I tried adding a lot stops with no results. I only added the script on the first frame of the document thinking that it carries through to the final frame... is that correct?
Thank you very much.
a) Here is my timeline:
b) Here are the buttons that help user navigate through document... they hit one of the thumbnails of my work and see an image and description of the image show up on the left side.
c) Here is the script:
stop();
import flash.display.Loader;
import flash.events.MouseEvent;
import flash.net.URLRequest;
var myLoader:Loader = new Loader();
swf1.addEventListener(MouseEvent.CLICK, loadMySWF);
swf2.addEventListener(MouseEvent.CLICK, loadMySWF);
swf3.addEventListener(MouseEvent.CLICK, loadMySWF);
swf4.addEventListener(MouseEvent.CLICK, loadMySWF);
swf5.addEventListener(MouseEvent.CLICK, loadMySWF);
swf6.addEventListener(MouseEvent.CLICK, loadMySWF);
swf7.addEventListener(MouseEvent.CLICK, loadMySWF);
swf8.addEventListener(MouseEvent.CLICK, loadMySWF);
function loadMySWF(event:MouseEvent):void{
var newPage:URLRequest = new URLRequest(event.target.name +".swf");
myLoader.load(newPage);
addChild(myLoader);
}
stop();
home_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStop_home);
function fl_ClickToGoToAndStop_home(event:MouseEvent):void
{
gotoAndStop("home");
}
stop();
work_btn.addEventListener(MouseEvent.CLICK,
fl_ClickToGoToAndStop_work);
function fl_ClickToGoToAndStop_work(event:MouseEvent):void
{
gotoAndStop("work");
}
stop();
experience_btn.addEventListener(MouseEvent.CLICK,
fl_ClickToGoToAndStop_experience);
function fl_ClickToGoToAndStop_experience(event:MouseEvent):void
{
gotoAndStop("experience");
}
stop();
contact_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
navigateToURL(new URLRequest("mailto:marisol@mxxxxxxxxx.com", "_self"));
}
stop();


