[flexcoders] Re: AS2 to AS3 - looping over loaded SWF

2007-02-18 Thread thibs73
Hi,

Thanks, I did try Alex's Distortion Effects, quite impressive. 
However, I am not sure if it will do what I need. Unless I overlooked 
something?

What I am infact flipping are model home floor plans. It allows users 
to take a look at the reverse of the home.

A plan is a loaded swf file, users can add elements to the plan, 
which are other swf's loaded on top. The plans have text in them and 
when I just flip the Display Object Container (containing all the 
swf's) the text is unreadable. However, it is readable when I loop 
thru and flip all the mc's in the swf (not the whole thing). I have 
it working in flash 8 AS2 which I am better at but AS3 and Flex are 
giving me a hard time...

To simplify, I need to loop thru loaded swf files and flip all nested 
movie clipsno animation needed. 

My main loop in AS2 is:
for (var i in targetClip) {
  if (typeof targetClip[i] == movieclip){
targetClip[i].scaleX = targetClip[i].scaleX *-1   
}
  }

Could anyone help me with this please. Any help would be appriciated.

Thank-you


--- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote:

 have you tried alex's distortion effects? there are a
 lot of great flips you can implement from the samples
 alone. although im not sure if you will run into
 performance issues once you deal with several
 movieclips. Any insight on that guys?
 
 --- thibs73 [EMAIL PROTECTED] wrote:
 
  Hi there,
  I am trying to convert some AS2 code to AS3 with
  some difficulty... 
  What I am trying to do is flip all nested MovieClips
  in a loaded SWF….
  
  I loaded a swf with SwfLoader, casted it as a
  MovieClip. I am now 
  trying to loop thru the loaded SWF to flip all movie
  clips…
  
  I've done this before in AS2 like this:
  
  for (var i in targetClip) {
if (typeof targetClip[i] == movieclip){
targetClip[i].scaleX = targetClip[i].scaleX *
  -1   
}
  }
  
  What properties of the SWF or MovieClip Object
  should I target for my 
  loop. Or am I way off base?
  Any help, would be appreciated.
  Thanks in advance.
  
  
  
 
 
 
  
 
__
__
 Never miss an email again!
 Yahoo! Toolbar alerts you the instant new Mail arrives.
 http://tools.search.yahoo.com/toolbar/features/mail/





[flexcoders] Re: AS2 to AS3 - looping over loaded SWF

2007-02-17 Thread thibs73
Hi,
I have looked at Alex's distortion effects and it is quite impressive.
However, I am not sure it does what I need, perhaps I am overlooking 
a method?

What I am infact flipping are home floor plans... showing 
the reverse of the floor plan.(no animation ness.) This object is 
created dynamically, the user adds elements to it (other loaded swf's 
layered on top). So, a further explanation of what needs to be done 
is: to flip each mc of each loaded swf. I can just flip the whole 
Display Object Container however, there is text in these swf's. By 
flipping each mc of each swf the text reads properly. I have it 
working in Flash 8, which I am much better at, but in AS 3  in 
Flex.. another story..I just cannot figure out the new structure in 
AS3..
So, unless I missed something in Alex's distortion effects, I am back 
to looping thru my loaded swf's mc's...Could anyone point me in the 
right direction?

Much appreciated, thank-you



--- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote:

 have you tried alex's distortion effects? there are a
 lot of great flips you can implement from the samples
 alone. although im not sure if you will run into
 performance issues once you deal with several
 movieclips. Any insight on that guys?
 
 --- thibs73 [EMAIL PROTECTED] wrote:
 
  Hi there,
  I am trying to convert some AS2 code to AS3 with
  some difficulty... 
  What I am trying to do is flip all nested MovieClips
  in a loaded SWF….
  
  I loaded a swf with SwfLoader, casted it as a
  MovieClip. I am now 
  trying to loop thru the loaded SWF to flip all movie
  clips…
  
  I've done this before in AS2 like this:
  
  for (var i in targetClip) {
if (typeof targetClip[i] == movieclip){
targetClip[i].scaleX = targetClip[i].scaleX *
  -1   
}
  }
  
  What properties of the SWF or MovieClip Object
  should I target for my 
  loop. Or am I way off base?
  Any help, would be appreciated.
  Thanks in advance.
  
  
  
 
 
 
  
 
__
__
 Never miss an email again!
 Yahoo! Toolbar alerts you the instant new Mail arrives.
 http://tools.search.yahoo.com/toolbar/features/mail/