Solved

Target not playing...

Posted on 2007-03-30
2
131 Views
Last Modified: 2010-04-03
I've got some code written below that goes along with a movie functioning as a button. I want the "sound" movie to play which is "parent_EjectButton." It plays as long as I'm not going to an actual URL. If that's blank, I get my sound. If that field is blank, the link works fine, but there's no sound and I don't know why.

Here's the code:

on(rollOver){
      
      this.gotoAndPlay(2);
      
}

            
on(rollOut){
            this.gotoAndPlay(11);
}
on(release){
      tellTarget ("_parent.EjectButton") {
            play();
      }

      getURL("../Retail/index.asp");
}

What am I missing?
0
Comment
Question by:brucegust
2 Comments
 
LVL 13

Expert Comment

by:FLAASHER
Comment Utility
on(rollOver){
     
      this.gotoAndPlay(2);
     
}

           
on(rollOut){
            this.gotoAndPlay(11);
}
on(release){
    this._parent.EjectButton.play();
      getURL("../Retail/index.asp");
}



make sure u have a MC iwth "EjectButton" name .... if this not work send me ur FLA

FLAASHER
0
 
LVL 4

Accepted Solution

by:
D3SIGN3R earned 500 total points
Comment Utility
Your flash movie will lose focus, sometime too quickly for your mc to play or recieve instruction to play.

Have another mc as a run-off, with only actionscript in it, and lets say 20 frames. Call it ac_mc (the instance), and make sure its on the timeline.
Go into it, and in frame 1 put a stop() action.

 in frmae 20 put an action:
getURL(_root.destination);

on your button/mc in the root, put:

on(rollOver){
      this.gotoAndPlay(2);
}    
on(rollOut){
            this.gotoAndPlay(11);
}
on(release){
    this._parent.EjectButton.play();
      _root.destination="../Retail/index.asp";
_root.ac_mc.play();
}

// this will tell the noise to play, and tell the mc to play as well, giving you a 20 frame leeway (or less if you wish) before it launches the asp file.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now