Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Target not playing...

Posted on 2007-03-30
2
Medium Priority
?
150 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Expert Comment

by:FLAASHER
ID: 18825669
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 2000 total points
ID: 18833038
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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

618 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