Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Re: Passing variable and opening new browser window

Re: Passing variable and opening new browser window

2004-02-25       - By Andrew Clark

 Back
Reply:     1     2  

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)