Re: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Martin Weiser

this is complete nonsesnse, take a look to the manual,

first, not sure if loadMovie to _root is proper solution,

create new movieClip, and load to it
and most important: you have to wait for the movie being loaded, which is 
the hardCore and basic knowledge for every flash programmer :-)

good luck


Martin


- Original Message - 
From: Dhiraj Girdhar [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 31, 2006 8:35 AM
Subject: [Flashcoders] LoadMovie Problem?



Hi All,



I am trying to load a new SWF file on root movie clip using following
action script code, but it is not working properly. It is loading its
first frame only. But the SWF file (to be loaded) is having more than
one pages.



loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);



Any solution?





Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Dhiraj Girdhar
Hi,

Please tell me, what is the main problem with loading the movie
on root?
I tried another solution i.e. loading in some other movie which is
working fine but I don't know the reason. :(
Please clear my doubts.

DJ
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Weiser
Sent: Tuesday, January 31, 2006 3:23 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] LoadMovie Problem?

this is complete nonsesnse, take a look to the manual,

first, not sure if loadMovie to _root is proper solution,

create new movieClip, and load to it
and most important: you have to wait for the movie being loaded, which
is 
the hardCore and basic knowledge for every flash programmer :-)
good luck


Martin


- Original Message - 
From: Dhiraj Girdhar [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, January 31, 2006 8:35 AM
Subject: [Flashcoders] LoadMovie Problem?


 Hi All,



 I am trying to load a new SWF file on root movie clip using following
 action script code, but it is not working properly. It is loading its
 first frame only. But the SWF file (to be loaded) is having more than
 one pages.



 loadMovie(C:\\ pages.swf, _root);

 _root.gotoAndStop(3);



 Any solution?





 Regards:

 Dhiraj

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Merrill, Jason
You also have a space in there:

C:\\ pages.swf

I would not recommend loading from c:  -you can't guarantee the file will 
always be there can you?  Loal from a relative url instead, and don't try and 
load into _root - create and empty movie clip instance, and load into that.

Jason Merrill  








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 2:35 AM
To: Flashcoders mailing list
Subject: [Flashcoders] LoadMovie Problem?


Hi All,

 

I am trying to load a new SWF file on root movie clip using following
action script code, but it is not working properly. It is loading its
first frame only. But the SWF file (to be loaded) is having more than
one pages.

 

loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);

 

Any solution?

 

 

Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Frank Pepermans
Use C: pages.swf since \ is used to escape characters

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: dinsdag 31 januari 2006 12:00
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

You also have a space in there:

C:\\ pages.swf

I would not recommend loading from c:  -you can't guarantee the file
will always be there can you?  Loal from a relative url instead, and
don't try and load into _root - create and empty movie clip instance,
and load into that.

Jason Merrill  








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 2:35 AM
To: Flashcoders mailing list
Subject: [Flashcoders] LoadMovie Problem?


Hi All,

 

I am trying to load a new SWF file on root movie clip using following
action script code, but it is not working properly. It is loading its
first frame only. But the SWF file (to be loaded) is having more than
one pages.

 

loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);

 

Any solution?

 

 

Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original. Any
other use of this e-mail by you is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Merrill, Jason
Use C: pages.swf 

...and remove the space in there as well...

Jason Merrill  









-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Frank
Pepermans
Sent: Tuesday, January 31, 2006 6:18 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?


Use C: pages.swf since \ is used to escape characters

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf 
Of Merrill,
Jason
Sent: dinsdag 31 januari 2006 12:00
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

You also have a space in there:

C:\\ pages.swf

I would not recommend loading from c:  -you can't guarantee the file
will always be there can you?  Loal from a relative url instead, and
don't try and load into _root - create and empty movie clip instance,
and load into that.

Jason Merrill  








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf 
Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 2:35 AM
To: Flashcoders mailing list
Subject: [Flashcoders] LoadMovie Problem?


Hi All,

 

I am trying to load a new SWF file on root movie clip using 
following
action script code, but it is not working properly. It is 
loading its
first frame only. But the SWF file (to be loaded) is having 
more than
one pages.

 

loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);

 

Any solution?

 

 

Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the 
original. Any
other use of this e-mail by you is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Dhiraj Girdhar
Hey Jason,
Thanks for your reply. Sorry, it was just a typo mistake (C:\\
pages.swf). I just want to know problems of loading the SWF file on
root movie. Creating a new movie clip and loading that SWF file in that
will solve the purpose but it is not clearing my doubt.

Let me explore this problem in more detail.
If I am loading the movie clip in some other movie clip (except root)
then the control will be still in previous movie. But I want the control
in new movie clip which I am going to load. Is it making any sense?
Please correct if I am wrong.

Dhiraj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, January 31, 2006 4:30 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

You also have a space in there:

C:\\ pages.swf

I would not recommend loading from c:  -you can't guarantee the file
will always be there can you?  Loal from a relative url instead, and
don't try and load into _root - create and empty movie clip instance,
and load into that.

Jason Merrill  








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 2:35 AM
To: Flashcoders mailing list
Subject: [Flashcoders] LoadMovie Problem?


Hi All,

 

I am trying to load a new SWF file on root movie clip using following
action script code, but it is not working properly. It is loading its
first frame only. But the SWF file (to be loaded) is having more than
one pages.

 

loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);

 

Any solution?

 

 

Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original. Any
other use of this e-mail by you is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Merrill, Jason
Well, a couple of reasons.  I mean you can, it's possible, but the reason for 
container clips is so you have the ability to load more than one clip. If you 
load into _root, everything in that movie clip will be replaced by the new clip 
you are loading in, and if you try and load a second clip into _root, only the 
second clip will appear, the first clip will be overwritten:

loadMovie(clip1.swf, _root);
loadMovie(clip2.swf, _root);
//only clip2.swf will appear

And loading from c:, I can't see how that would be wise in almost any 
circumstance, but maybe you have a reason to do so.  

As for _root itself, a lot of people will tell you its not wise to reference 
it, because as Flash applications gain hierarchies, _root changes often and is 
not a reliable reference to hard code into your application.

I don't mean to be harsh, only to answer your questions.  Hope that helps.

Jason Merrill  










-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 6:33 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?


Hey Jason,
  Thanks for your reply. Sorry, it was just a typo mistake (C:\\
pages.swf). I just want to know problems of loading the SWF file on
root movie. Creating a new movie clip and loading that SWF 
file in that
will solve the purpose but it is not clearing my doubt.

Let me explore this problem in more detail.
If I am loading the movie clip in some other movie clip (except root)
then the control will be still in previous movie. But I want 
the control
in new movie clip which I am going to load. Is it making any sense?
Please correct if I am wrong.

Dhiraj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf 
Of Merrill,
Jason
Sent: Tuesday, January 31, 2006 4:30 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

You also have a space in there:

C:\\ pages.swf

I would not recommend loading from c:  -you can't guarantee the file
will always be there can you?  Loal from a relative url instead, and
don't try and load into _root - create and empty movie clip instance,
and load into that.

Jason Merrill  








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf 
Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 2:35 AM
To: Flashcoders mailing list
Subject: [Flashcoders] LoadMovie Problem?


Hi All,

 

I am trying to load a new SWF file on root movie clip using 
following
action script code, but it is not working properly. It is 
loading its
first frame only. But the SWF file (to be loaded) is having 
more than
one pages.

 

loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);

 

Any solution?

 

 

Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the 
original. Any
other use of this e-mail by you is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Merrill, Jason
This line:

_root.Test.loadMovie(clip.swf, _root);

Should either be:

Test.loadMovie(clip.swf);

or

loadMovie(clip.swf, Test);

(and drop the use of _root gollygoshdarnnit!)

You have instead combined both methods.  By stating the movieClip name first 
and then LoadMovie, the second paramter is not needed.  If you don't state the 
movieClip being loaded into first and then LoadMovie, then you do need the 
second paramter to tell it where to load the movie clip in to.

Jason Merrill  










-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 7:06 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?


Hi Jason,

  Again thanks for your reply.
  But still my doubt is not clear. Please check the following
code...

// Code on first movie clip.  
_root.createEmptyMovieClip(Test, 1);
_root.Test.loadMovie(clip.swf, _root);

// Introducing a dummy time interval to wait until SWF file is not
loaded.
_root.$SI = setInterval(_root.func, 10);
function func () {
  if ((_root. Test.getBytesLoaded() == _root.
Test.getBytesTotal())
   _root. Test._height  0  _root. Test._width
 0) {
  // Going to second page in loaded movie.
  _root.Test.gotoAndStop(2);
  clearInterval(_root.$SI);
  _root.$SI = undefined;
  }
}

// code in second movie clip.
// Displaying the name of the movie clip creating in first 
clip to load
the clip.
trace(_root.Test._name);

Now it will work fine. But in case of loading the movie in root it is
not working. It will load its first page only. Please let me know if I
am not able to clear the problem.

Dhiraj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf 
Of Merrill,
Jason
Sent: Tuesday, January 31, 2006 5:14 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

Well, a couple of reasons.  I mean you can, it's possible, but the
reason for container clips is so you have the ability to load 
more than
one clip. If you load into _root, everything in that movie 
clip will be
replaced by the new clip you are loading in, and if you try and load a
second clip into _root, only the second clip will appear, the 
first clip
will be overwritten:

loadMovie(clip1.swf, _root);
loadMovie(clip2.swf, _root);
//only clip2.swf will appear

And loading from c:, I can't see how that would be wise in almost any
circumstance, but maybe you have a reason to do so.  

As for _root itself, a lot of people will tell you its not wise to
reference it, because as Flash applications gain hierarchies, _root
changes often and is not a reliable reference to hard code into your
application.

I don't mean to be harsh, only to answer your questions.  Hope that
helps.

Jason Merrill  










-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf 
Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 6:33 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?


Hey Jason,
Thanks for your reply. Sorry, it was just a typo mistake (C:\\
pages.swf). I just want to know problems of loading the SWF file on
root movie. Creating a new movie clip and loading that SWF 
file in that
will solve the purpose but it is not clearing my doubt.

Let me explore this problem in more detail.
If I am loading the movie clip in some other movie clip 
(except root)
then the control will be still in previous movie. But I want 
the control
in new movie clip which I am going to load. Is it making any sense?
Please correct if I am wrong.

Dhiraj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf 
Of Merrill,
Jason
Sent: Tuesday, January 31, 2006 4:30 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

You also have a space in there:

C:\\ pages.swf

I would not recommend loading from c:  -you can't guarantee the file
will always be there can you?  Loal from a relative url instead, and
don't try and load into _root - create and empty movie clip 
instance,
and load into that.

Jason Merrill  








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf 
Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 2:35 AM
To: Flashcoders mailing list
Subject: [Flashcoders] LoadMovie Problem?


Hi All,

 

I am trying to load a new SWF file on root movie clip using 
following
action script code, but it is not working properly. It is 
loading its
first frame only. But the SWF file (to be loaded) is having 
more than
one pages.

 

loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);

 

Any solution?

 

 

Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

NOTICE:
This message is for the designated recipient only and may contain
privileged

RE: [Flashcoders] LoadMovie Problem?

2006-01-31 Thread Dhiraj Girdhar
Hi Jason,

Again thanks for your reply.
But still my doubt is not clear. Please check the following
code...

// Code on first movie clip.
_root.createEmptyMovieClip(Test, 1);
_root.Test.loadMovie(clip.swf, _root);

// Introducing a dummy time interval to wait until SWF file is not
loaded.
_root.$SI = setInterval(_root.func, 10);
function func () {
if ((_root. Test.getBytesLoaded() == _root.
Test.getBytesTotal())
 _root. Test._height  0  _root. Test._width
 0) {
// Going to second page in loaded movie.
_root.Test.gotoAndStop(2);
clearInterval(_root.$SI);
_root.$SI = undefined;
}
}

// code in second movie clip.
// Displaying the name of the movie clip creating in first clip to load
the clip.
trace(_root.Test._name);

Now it will work fine. But in case of loading the movie in root it is
not working. It will load its first page only. Please let me know if I
am not able to clear the problem.

Dhiraj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Tuesday, January 31, 2006 5:14 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

Well, a couple of reasons.  I mean you can, it's possible, but the
reason for container clips is so you have the ability to load more than
one clip. If you load into _root, everything in that movie clip will be
replaced by the new clip you are loading in, and if you try and load a
second clip into _root, only the second clip will appear, the first clip
will be overwritten:

loadMovie(clip1.swf, _root);
loadMovie(clip2.swf, _root);
//only clip2.swf will appear

And loading from c:, I can't see how that would be wise in almost any
circumstance, but maybe you have a reason to do so.  

As for _root itself, a lot of people will tell you its not wise to
reference it, because as Flash applications gain hierarchies, _root
changes often and is not a reliable reference to hard code into your
application.

I don't mean to be harsh, only to answer your questions.  Hope that
helps.

Jason Merrill  










-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 6:33 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?


Hey Jason,
  Thanks for your reply. Sorry, it was just a typo mistake (C:\\
pages.swf). I just want to know problems of loading the SWF file on
root movie. Creating a new movie clip and loading that SWF 
file in that
will solve the purpose but it is not clearing my doubt.

Let me explore this problem in more detail.
If I am loading the movie clip in some other movie clip (except root)
then the control will be still in previous movie. But I want 
the control
in new movie clip which I am going to load. Is it making any sense?
Please correct if I am wrong.

Dhiraj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf 
Of Merrill,
Jason
Sent: Tuesday, January 31, 2006 4:30 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] LoadMovie Problem?

You also have a space in there:

C:\\ pages.swf

I would not recommend loading from c:  -you can't guarantee the file
will always be there can you?  Loal from a relative url instead, and
don't try and load into _root - create and empty movie clip instance,
and load into that.

Jason Merrill  








-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf 
Of Dhiraj
Girdhar
Sent: Tuesday, January 31, 2006 2:35 AM
To: Flashcoders mailing list
Subject: [Flashcoders] LoadMovie Problem?


Hi All,

 

I am trying to load a new SWF file on root movie clip using 
following
action script code, but it is not working properly. It is 
loading its
first frame only. But the SWF file (to be loaded) is having 
more than
one pages.

 

loadMovie(C:\\ pages.swf, _root);

_root.gotoAndStop(3);

 

Any solution?

 

 

Regards:

Dhiraj

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

NOTICE:
This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the 
original. Any
other use of this e-mail by you is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread Ramon Tayag
You'll need a holder of sorts:

ImageHolder movieclip that holds all the info including the ImageMC
which actually displays the picture

On 1/23/06, Robert Sandie [EMAIL PROTECTED] wrote:
 Having a problem loading in an image within an AS2 class and LoadMovie with
 jpegs. It loads the image perfectly but as soon as it does this it
 automatically deletes all existing variables that are running within the
 class. Instead of it losing all information  upon loadMovie would like to
 keep it.



 class ui.overlay extends EventClip {



 .



 public function showImage(url:String, text: String):Void{

 this.loadMovie(url);

 this.text=text;

 _delegate = EventDelegate.create(this, onHitDataGrid);

 datagrid.addEventListener(datagrid, _delegate);

 }



 private function onHitDataGrid(e:Object):Void{

 trace(text); //works when don't load the jpeg.. does not work
 when I do load the jpeg.

 ..

 }





 I have tried loading the movie into another movieclip inside of this class
 and still no success. This is a little unusual and really my first time
 loading in Images dynamically.



 Been struggling with this one for a while. Anyone know what might be going
 on?





 -Rob



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread stacey
Pressed SEND too soon and caught an oops!!

it should be :
//
  public function overlay(){
holder_mc=createEmptyMovieClip(holder_mc,1);

}
//

 Not sure the setup but the vars are getting wiped away for sure so its
 some kinda scoping issue.Loading the movieclip into this should wipe
 the variables out. Loading them into an emptymovieclip, shouldn't.





 class ui.overlay extends EventClip{
 // not sure what eventClip is but whatever..

   private var holder_mc:MovieClip;
   private var text:String;

   public function overlay(){
  holder_mc.createEmptyMovieClip(holder_mc,1);
   }

   public function showImage(url:String,text:String){

 holder_mc.loadMovie(url);
 this.text=text;
 trace(TEXT has been set+this.text);
 _delegate = EventDelegate.create(this, onHitDataGrid);
 datagrid.addEventListener(datagrid, _delegate);


   }
   public function onHitDataGrid(obj:Object){
 trace(TEXT has been set+this.text);
   }

 }


 Having a problem loading in an image within an AS2 class and LoadMovie
 with jpegs. It loads the image perfectly but as soon as it does this
 it automatically deletes all existing variables that are running
 within the class. Instead of it losing all information  upon loadMovie
 would like to keep it.



 class ui.overlay extends EventClip {



 .



 public function showImage(url:String, text: String):Void{

 this.loadMovie(url);

 this.text=text;

 _delegate = EventDelegate.create(this, onHitDataGrid);

 datagrid.addEventListener(datagrid, _delegate);

 }



 private function onHitDataGrid(e:Object):Void{

 trace(text); //works when don't load the jpeg.. does not
 work
 when I do load the jpeg.

 ..

 }





 I have tried loading the movie into another movieclip inside of this
 class and still no success. This is a little unusual and really my
 first time loading in Images dynamically.



 Been struggling with this one for a while. Anyone know what might be
 going on?





 -Rob



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadMovie Problem with JPEGs

2006-01-22 Thread Ramon Tayag
sorry! disregard my post..

On 1/23/06, Ramon Tayag [EMAIL PROTECTED] wrote:
 You'll need a holder of sorts:

 ImageHolder movieclip that holds all the info including the ImageMC
 which actually displays the picture

 On 1/23/06, Robert Sandie [EMAIL PROTECTED] wrote:
  Having a problem loading in an image within an AS2 class and LoadMovie with
  jpegs. It loads the image perfectly but as soon as it does this it
  automatically deletes all existing variables that are running within the
  class. Instead of it losing all information  upon loadMovie would like to
  keep it.
 
 
 
  class ui.overlay extends EventClip {
 
 
 
  .
 
 
 
  public function showImage(url:String, text: String):Void{
 
  this.loadMovie(url);
 
  this.text=text;
 
  _delegate = EventDelegate.create(this, onHitDataGrid);
 
  datagrid.addEventListener(datagrid, _delegate);
 
  }
 
 
 
  private function onHitDataGrid(e:Object):Void{
 
  trace(text); //works when don't load the jpeg.. does not work
  when I do load the jpeg.
 
  ..
 
  }
 
 
 
 
 
  I have tried loading the movie into another movieclip inside of this class
  and still no success. This is a little unusual and really my first time
  loading in Images dynamically.
 
 
 
  Been struggling with this one for a while. Anyone know what might be going
  on?
 
 
 
 
 
  -Rob
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 


 --
 Ramon Miguel M. Tayag



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders