controlling multiple swf-files -- need help

  • morphnike
  • Novice
  • Novice
  • morphnike
  • Posts: 21

Post 3+ Months Ago

First of all, I appreciate that you're trying to help me.
I was wondering if it's possible to achieve the next:

I am planning to make a website (lets say with 2 frames). on frame 1, I have flash1.swf (which is the song-player) and on frame 2, I have flash2.swf (which is the song-controller).
F.e. if I press song1 in flash2.swf (which is in frame 2 on my website), flash1.swf (on frame 1) needs to play song1. If I press song 2 in flash2.swf, flash1.swf needs to play song 2, and so on.

Is this possible?
If yes, how?
I would appreciate any help
  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

This seems like alot of work for such a theoretically simple idea.

Why are you making life difficult for yourself ? Could you not just do it all from the same movie ?
  • morphnike
  • Novice
  • Novice
  • morphnike
  • Posts: 21

Post 3+ Months Ago

Sorry for making it difficult, but I have no choise.

The moviecontroller is on my "main-frame", so if I put them both on the same movieclip, each time the page reloads (f.e. due to a link), the song has to start over then. And that I don't want to happen (that's why I'm working with two frames).

Please help me with this, I need this.
  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

Are they seperate swf files or just seperate MovieClips within the same swf ?

Unfortunatly there isn't a way that I am aware of that lets you control 1 dynamically loaded swf via another dynamically loaded swf.

If they are just seperate movieClips, simple reference them via the _root.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

You can have 2 dynamically loaded .swfs communicate, as long as they are loaded to 2 seperate clips and are both fully loaded at the time of communication. Since you load to clips you just target the instance name of the clip you loaded to.

HOWEVER, you cannot communicate across frames. Unless you store the value in a variable, go to the frame, and have the actions on that frame read the variable.

Your setup does sound very confusing though.
  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

lostinbeta wrote:
You can have 2 dynamically loaded .swfs communicate, as long as they are loaded to 2 seperate clips and are both fully loaded at the time of communication. Since you load to clips you just target the instance name of the clip you loaded to.

HOWEVER, you cannot communicate across frames. Unless you store the value in a variable, go to the frame, and have the actions on that frame read the variable.

Your setup does sound very confusing though.


Sweet !!

Never knew that. Learn summit new every day :D

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.