Solved

Using 1 shared object to update seperate swfs dynamicaly

Posted on 2004-10-10
5
201 Views
Last Modified: 2012-05-05
What I am trying to do is make a music player for a website that runs 'constantly' not pausing, stopping or getting reset when a user changes page in the site.

To achive this I have created two flash movies a control swf with play stop etc. and a player swf which receives instructions from the control and loads in the sound file and changes volume.

To avoid inturruption in the playing music when the user changes page I have put the control swf in a frameset with the rest of the page content and the player swf in a seperate frame.

The problem im having is that the two are not comunicating with eachother 'dynamically' i.e as soon as an instruction is sent. They only update when the page is refreshed. To test this i have used a slider in one movie and a dynamic txtbox in the other movie both set the same shared object. When the slider is moved in theory it should also change the txtbox in the other movie

I think the problem may be with the use of the flush fuction?

Can anyone shed any light on how to use this?
Thanks
0
Comment
Question by:kooben
[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
5 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 250 total points
ID: 12273175
I think that the sharedObject functionalities you are trying to use are those that come with the FlashComm server features. What you are looking for, maybe, is this: http://www.macromedia.com/support/flash/action_scripts/local_connection_objects/
0
 
LVL 9

Assisted Solution

by:krishnaprathab
krishnaprathab earned 250 total points
ID: 12273834
Hi Kooben,

 An easier way to do this is to use a setInterval function which will call a function at specified intervals to see if the shared object has changed and then do the loading and stuffs.

Example:

function checkSO()
{
    // Write the code to fetch the shared object details here
}

myInt = setInterval(checkSO, 300);

Here, 300 is the milliseconds count, the funciton will be called every 300 millseconds. You can increase or decrease this time.

Hope this helps !

Thanks,
KP
0
 

Author Comment

by:kooben
ID: 12275571
Thanx for the fast response, but I think I think I have solved the problem myself.

Not sure how the points are gonna work out now but I'd like to give both of you some at least.

Thanx
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

696 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