Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 21-12-2003, 15:33   #1 (permalink)
Neuer User
 
Registriert seit: Jul 2001
Ort: Neustadt a. d. Weinstraße
Beiträge: 113
sound & loadmovie

hallo,

also, ich möchte per loadmovie eine swf in einen MC reinladen. funktioniert auch, bloß die sounds im externen swf gehen nicht mehr. pfadangaben hab ich schon x-mal überprüft, und mein textfeld "titel" wird auch angesprochen. liegt es an dem sound-objekt ??


hier noch mein AS,

im 1. film auf root:
ActionScript:
  1. loadMovie("musik.swf", "dummy");
im externen swf auf root:
ActionScript:
  1. _root.dummy.song = new Sound();
  2. _root.dummy.song.attachSound("song1");
  3.  
  4. //titel ist textfeld in MC musik
  5. _root.dummy.musik.playbutton.onRelease = function() {
  6.     _root.dummy.musik.titel = "start!";
  7.     _root.dummy.song.start();
  8. };
  9. _root.dummy.musik.stopbutton.onRelease = function() {
  10.     _root.dummy.musik.titel = "stop!";
  11.     _root.dummy.song.stop();
  12. };


MFG Bounty
Bounty ist offline   Mit Zitat antworten
Alt 21-12-2003, 15:35   #2 (permalink)
alien
 
Benutzerbild von Smirgel
 
Registriert seit: May 2002
Ort: Colonia
Beiträge: 7.597
versuch es mal mit "this" anstatt _root.dummy.
__________________
bei fragen, fragen.
Smirgel ist offline   Mit Zitat antworten
Alt 21-12-2003, 15:38   #3 (permalink)
mod_rewrite
 
Benutzerbild von sonar
 
Registriert seit: Feb 2003
Ort: München
Beiträge: 15.621
...und weise deinem Soundobjekt eine Ziel-Timeline zu:
ActionScript:
  1. dummy.song = new Sound(this);

Hi Smi
...eine eingeladene swf besitzt doch eine _root, nämlich die des einladenden Movies oder?
__________________
RTFM
Wie man Fragen richtig stellt.

Achim Bindannmalweg

Money makes the world go round, fear makes it turn much faster.
(New Model Army)
sonar ist offline   Mit Zitat antworten
Alt 21-12-2003, 15:59   #4 (permalink)
alien
 
Benutzerbild von Smirgel
 
Registriert seit: May 2002
Ort: Colonia
Beiträge: 7.597
hatte ja nochmal editiert weil ich wiedermal zu schnell gelesen hatte

aber _root bezieht sich immer auf den hauptfilm. lädst du eine swf ein in der steht "_root.gotoAndPlay(2)" dann läuft dein haupfilm (nicht die eingeladene swf) ab frame 2.
__________________
bei fragen, fragen.
Smirgel ist offline   Mit Zitat antworten
Alt 21-12-2003, 18:34   #5 (permalink)
Neuer User
 
Registriert seit: Jul 2001
Ort: Neustadt a. d. Weinstraße
Beiträge: 113
danke sonar ,

das wars "dummy.song = new Sound(this);"

MFG Bounty
Bounty ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 07:05 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele