Solved

Target not playing...

Posted on 2007-03-30
2
146 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 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SWF won't scale? 4 533
Does Flash have a Firefox problem? 5 329
Flash content not working in IE 11 on Windows 8.1 3 191
You Tube Videos not playing 9 143
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

737 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