  | |  | Re: Passing variable and opening new browser window | Re: Passing variable and opening new browser window
2004-02-25 - By Andrew Clark
Back Tatsuo,
Sorry to keep bothering you but I am getting nowhere fast with this
I now have in MySource.swf
myListener= new Object();
myListener.dataPointClick = function(eventObj){
var so = SharedObject.getLocal( "myDataStorage ", "/ ");
so.data.myData = "foo ";
so.flush();
this.getURL( "myTarget.html ");
}
myChart.addEventListener( "dataPointClick ",myListener);
on Clicking still nothing happens - not even a blank myTarget.html page
The code works fine outside of the function - but of course is not what I
require
Is there a problem with SharedObject within another object
I tried the LocalConnection alternative copy and pasting your code
into two files in same directory
The target page is produced but no string is passed to the my_txt dynamic
text field
Can you just check that it works your end
Thanks
Andrew
>Hi Andrew,
>Did you try so.flush() right before calling the getURL?
>I think that should solve it.
>Also I think the LocalConnection solution is prefered after all, because
>it won 't leave any footprint on user 's disk.
>Cheers,
--
>Tatsuo Kato
>http://tatsuokato.com
>-- -- Original Message -- --
>From: "Andrew Clark " <agcur@(protected) >
>To: <flashcoders@(protected) >
>Sent: Tuesday, February 24, 2004 9:24 PM
>Subject: Re: [Flashcoders] Passing variable and opening new browser window
>
> Thanks guys,
>
> This code works as standalone but when
> I put it within a function (I am using it as a drill down - the exact
> details are omitted below)
> nothing happens
>
> viz
> myListener= new Object();
> myListener.dataPointClick = function(eventObj){
> var so = SharedObject.getLocal( "myDataStorage ", "/ ");
> so.data.myData = "foo ";
> this.getURL( "myTarget.html ");
>
> }
> myChart.addEventListener( "dataPointClick ",myListener);
>
> Is this because it is a local variable?
> I removed the var prefix but it still failed to oblige
>
>
>
> Also on the flushing practice do I understand correctly that in the
> mySource.swf
> I should add
> so.flush()
>
> after the getURL line
>
> and in myTarget.swf add
> so.clear()
>
> after the my_txt one?
>
>
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105236
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |