Solved

Using 1 shared object to update seperate swfs dynamicaly

Posted on 2004-10-10
5
199 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Rotating Adobe pdf document 4 318
Is it possible to insert an Adobe Flash video in a .net  web page ? 2 105
Java and adobe flash updates 4 51
Adobe Indesign CS6 4 131
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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…
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…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

792 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