[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] strange behaviour with SWFC
From: |
Benedikt Quirmbach |
Subject: |
Re: [Swftools-common] strange behaviour with SWFC |
Date: |
Tue, 4 Nov 2008 09:17:41 +0100 |
Hi Matthias,
thank you for the answer.
Since I'm a simple web designer with some programming skills I don't
really understand what you suggested.
I understand that mutex is used to separate different threads on one
machine.
But I don't know how to do that.
And I'm not really shure that this is the solution.
When the PHP script on the server creates the new SWFs it creates 3
SWFs in one running.
If these 3 threads would overwrite each other there would not be a new
SWF (or at least only one, the last).
In the case of my script there are 3 SWFs that can be loaded and that
run without problems (Animation..).
But the variable texts can not be seen, because the variables are not
inside.
When I download the same SWFs a little time later (without creating
new ones), the SWFs are OK with the variable texts.
To give the script more time to ceate the SWFs I set a timer in my
Flex application. This timer starts after calling the php script to
create the SWFs.
After 5 seconds it tries to load the new SWFs.
And there are SWFs... but without the variable data...
Could you please explane how to set mutexes?
I would give it a try, but don't know how to do that.
Benedikt
Am 03.11.2008 um 19:15 schrieb Matthias Kramm:
On Mon, Nov 03, 2008 at 10:55:00AM +0100, Benedikt Quirmbach <address@hidden
> wrote:
This is what I do:
1. I got s Flex app where I can edit some data.
2. After editing the data I send them to a PHP script.
3. the PHP script takes SWFC to combine a library-swf and the new
data.
4. I load the new swf into my Flex app.
5. Eventually do the same with new data.
Than I edit the data and call the same PHPscript with the new data.
In my Flex app shows up a new swf with some data missing.
Sounds to me like some process/thread is still busy writing the SWF,
while
another process/tread is already reading it.
Have you considered introducing locks/mutexes?
Greetings
Matthias