[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff

private function effectEndHandler():void {
 callLater(showBox);
}



private function showBox():void{
 mainImgBox.visible = true;
}
-TH

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

 I have this box which I want to wipe left to hide and then wipe right
 to show.
 It hides all right and then it called the effectEndHandler, but
 mainImgBox.visible = true; does not do anything. There is no wipe
right
 and the box does not appear. what am I doing wrong ?



 mx:VBox id=mainImgBox hideEffect={wipeLeft}
showEffect={wipeRight}
 mx:Image id=mainImg
 source=@Embed(source='../media/jbh.jpg')
 /
 /mx:VBox

 mx:WipeLeft id=wipeLeft duration=1000
 effectEnd=effectEndHandler() /
 mx:WipeRight id=wipeRight duration=1000/

 private function effectEndHandler():void {

 mainImgBox.visible = true;
 }




Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
Nice pie on the face from Tim.

I tell you, this is what you get for programming at the framework level.

callLater() is evil...

;-)

Mike

On Fri, Sep 19, 2008 at 1:06 PM, Tim Hoff [EMAIL PROTECTED] wrote:

   *

 private
 * *function* effectEndHandler():*void* {
 callLater(showBox);
 }

 *private* *function* showBox():*void*{
 mainImgBox.visible = *true*;
 }
 -TH

 --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED] 
 wrote:
 
  I have this box which I want to wipe left to hide and then wipe right
  to show.
  It hides all right and then it called the effectEndHandler, but
  mainImgBox.visible = true; does not do anything. There is no wipe right
  and the box does not appear. what am I doing wrong ?
 
 
 
  mx:VBox id=mainImgBox hideEffect={wipeLeft}
 showEffect={wipeRight}
  mx:Image id=mainImg
  source=@Embed(source='../media/jbh.jpg')
  /
  /mx:VBox
 
  mx:WipeLeft id=wipeLeft duration=1000
  effectEnd=effectEndHandler() /
  mx:WipeRight id=wipeRight duration=1000/
 
  private function effectEndHandler():void {
 
  mainImgBox.visible = true;
  }
 
  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
For those reading, let me expand quickly,

When you listen to an effectEndHandler(), you expect the effect HAS ENDED IE
things are where they need to be like visible == false. A normal dev as in
the one using the public API expects this.

Having to use callLater() is a bug in the design.

Mike

On Fri, Sep 19, 2008 at 1:13 PM, Michael Schmalle
[EMAIL PROTECTED]wrote:

 Nice pie on the face from Tim.

 I tell you, this is what you get for programming at the framework level.

 callLater() is evil...

 ;-)

 Mike


 On Fri, Sep 19, 2008 at 1:06 PM, Tim Hoff [EMAIL PROTECTED] wrote:

   *

 private
 * *function* effectEndHandler():*void* {
 callLater(showBox);
 }

 *private* *function* showBox():*void*{
 mainImgBox.visible = *true*;
 }
 -TH

 --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED] 
 wrote:
 
  I have this box which I want to wipe left to hide and then wipe right
  to show.
  It hides all right and then it called the effectEndHandler, but
  mainImgBox.visible = true; does not do anything. There is no wipe right
  and the box does not appear. what am I doing wrong ?
 
 
 
  mx:VBox id=mainImgBox hideEffect={wipeLeft}
 showEffect={wipeRight}
  mx:Image id=mainImg
  source=@Embed(source='../media/jbh.jpg')
  /
  /mx:VBox
 
  mx:WipeLeft id=wipeLeft duration=1000
  effectEnd=effectEndHandler() /
  mx:WipeRight id=wipeRight duration=1000/
 
  private function effectEndHandler():void {
 
  mainImgBox.visible = true;
  }
 
  




 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the question'.




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff
Ha, totally agree.  But, it works for now. :-)

-TH

--- In flexcoders@yahoogroups.com, Michael Schmalle 
[EMAIL PROTECTED] wrote:

 For those reading, let me expand quickly,
 
 When you listen to an effectEndHandler(), you expect the effect HAS 
ENDED IE
 things are where they need to be like visible == false. A normal 
dev as in
 the one using the public API expects this.
 
 Having to use callLater() is a bug in the design.
 
 Mike
 
 On Fri, Sep 19, 2008 at 1:13 PM, Michael Schmalle
 [EMAIL PROTECTED]wrote:
 
  Nice pie on the face from Tim.
 
  I tell you, this is what you get for programming at the framework 
level.
 
  callLater() is evil...
 
  ;-)
 
  Mike
 
 
  On Fri, Sep 19, 2008 at 1:06 PM, Tim Hoff [EMAIL PROTECTED] wrote:
 
*
 
  private
  * *function* effectEndHandler():*void* {
  callLater(showBox);
  }
 
  *private* *function* showBox():*void*{
  mainImgBox.visible = *true*;
  }
  -TH
 
  --- In flexcoders@yahoogroups.com, info1@ info1@ wrote:
  
   I have this box which I want to wipe left to hide and then 
wipe right
   to show.
   It hides all right and then it called the effectEndHandler, but
   mainImgBox.visible = true; does not do anything. There is no 
wipe right
   and the box does not appear. what am I doing wrong ?
  
  
  
   mx:VBox id=mainImgBox hideEffect={wipeLeft}
  showEffect={wipeRight}
   mx:Image id=mainImg
   source=@Embed(source='../media/jbh.jpg')
   /
   /mx:VBox
  
   mx:WipeLeft id=wipeLeft duration=1000
   effectEnd=effectEndHandler() /
   mx:WipeRight id=wipeRight duration=1000/
  
   private function effectEndHandler():void {
  
   mainImgBox.visible = true;
   }
  
   
 
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com
 
  You can find more by solving the problem then by 'asking the 
question'.
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the 
question'.





Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
Right Tim,

mantra

Speak Idealism, Live Reality.

Mike

On Fri, Sep 19, 2008 at 1:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:

   Ha, totally agree. But, it works for now. :-)

 -
 .

 




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff

That's fact Mike.  At the end of the day, you have to work with what you
have.  btw, I didn't even see your first reply before I posted.  So, no
pie intended. :)

-TH

--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Right Tim,

 mantra

 Speak Idealism, Live Reality.

 Mike

 On Fri, Sep 19, 2008 at 1:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:

  Ha, totally agree. But, it works for now. :-)
 
  -
  .
 
 
 



 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the
question'.






Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread [EMAIL PROTECTED]

Hello,
Thanks, that was a big help. I did have a far more convoluted method and 
I was really dreading having to go back to it because this.

Now I have run into another problem with the wipe effect.
Here is the example: http://journeyblueheaven.com/index.php

You can click on Watch once, and it loads an XML file from a youtube 
rss, and diplays the results, including images from youtube. So far so 
good. But then,  but if you click on anything else, it attempts to wipe 
and triggers the sandbox violation below, which requires me to set a 
policy flag.

This line triggers the error: Main.mxml:173 
mainImgBox.visible = false;

The way I am loading the images is
newImage.source = xml.src;

How do I set the policy file flag in this situation, or do I need to 
load the images some other way ?



The code is here: http://journeyblueheaven.com/Main.mxml


SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: 
http://journeyblueheaven.com/fdjbh.swf cannot access 
http://2.gvt0.com/ThumbnailServer2?app=vsscontentid=0f9a9bc1bda569e6offsetms=60itag=w160hl=ensigh=EMg47-bM9077Aklrd1oumF_zqec.
 
A policy file is required, but the checkPolicyFile flag was not set when 
this media was loaded.
at flash.display::BitmapData/draw()
at 
mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:771]
at 
mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:650]
at 
mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:463]
at 
mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
at 
mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
at 
mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at 
mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
at mx.core::UIComponent/set 
visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]



Tim Hoff wrote:
 * *

 *private* *function* effectEndHandler():*void* {
 callLater(showBox);
 }

 *private* *function* showBox():*void*{
 mainImgBox.visible = *true*;
 }

 -TH

 --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED] 
 wrote:
 
  I have this box which I want to wipe left to hide and then wipe right
  to show.
  It hides all right and then it called the effectEndHandler, but
  mainImgBox.visible = true; does not do anything. There is no wipe right
  and the box does not appear. what am I doing wrong ?
 
 
 
  mx:VBox id=mainImgBox hideEffect={wipeLeft} 
 showEffect={wipeRight}
  mx:Image id=mainImg
  source=@Embed(source='../media/jbh.jpg')
  /
  /mx:VBox
 
  mx:WipeLeft id=wipeLeft duration=1000
  effectEnd=effectEndHandler() /
  mx:WipeRight id=wipeRight duration=1000/
 
  private function effectEndHandler():void {
 
  mainImgBox.visible = true;
  }
 
 
 



 Checked by AVG - http://www.avg.com 
 Version: 8.0.169 / Virus Database: 270.7.0/1680 - Release Date: 9/19/2008 
 8:25 AM

   



Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
Hi,

First, you should start a new thread with a different title. :)

I don't know this answer though.

Mike

On Fri, Sep 19, 2008 at 5:19 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hello,
 Thanks, that was a big help. I did have a far more convoluted method and
 I was really dreading having to go back to it because this.

 Now I have run into another problem with the wipe effect.
 Here is the example: http://journeyblueheaven.com/index.php

 You can click on Watch once, and it loads an XML file from a youtube
 rss, and diplays the results, including images from youtube. So far so
 good. But then, but if you click on anything else, it attempts to wipe
 and triggers the sandbox violation below, which requires me to set a
 policy flag.

 This line triggers the error: Main.mxml:173
 mainImgBox.visible = false;

 The way I am loading the images is
 newImage.source = xml.src;

 How do I set the policy file flag in this situation, or do I need to
 load the images some other way ?

 The code is here: http://journeyblueheaven.com/Main.mxml

 SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
 http://journeyblueheaven.com/fdjbh.swf cannot access

 http://2.gvt0.com/ThumbnailServer2?app=vsscontentid=0f9a9bc1bda569e6offsetms=60itag=w160hl=ensigh=EMg47-bM9077Aklrd1oumF_zqec.
 A policy file is required, but the checkPolicyFile flag was not set when
 this media was loaded.
 at flash.display::BitmapData/draw()
 at

 mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:771]
 at

 mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:650]
 at

 mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:463]
 at

 mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
 at

 mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
 at
 mx.effects::EffectManager$/
 http://www.adobe.com/2006/flex/mx/internal::eventHandler
 ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at

 mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
 at

 mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
 at mx.core::UIComponent/set

 visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
 at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
 at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]

 Tim Hoff wrote:
  * *
 
  *private* *function* effectEndHandler():*void* {

  callLater(showBox);
  }
 
  *private* *function* showBox():*void*{
  mainImgBox.visible = *true*;
  }
 
  -TH
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
   I have this box which I want to wipe left to hide and then wipe right
   to show.
   It hides all right and then it called the effectEndHandler, but
   mainImgBox.visible = true; does not do anything. There is no wipe right
   and the box does not appear. what am I doing wrong ?
  
  
  
   mx:VBox id=mainImgBox hideEffect={wipeLeft}
  showEffect={wipeRight}
   mx:Image id=mainImg
   source=@Embed(source='../media/jbh.jpg')
   /
   /mx:VBox
  
   mx:WipeLeft id=wipeLeft duration=1000
   effectEnd=effectEndHandler() /
   mx:WipeRight id=wipeRight duration=1000/
  
   private function effectEndHandler():void {
  
   mainImgBox.visible = true;
   }
  
 
  --
 
 
 
  Checked by AVG - http://www.avg.com
  Version: 8.0.169 / Virus Database: 270.7.0/1680 - Release Date: 9/19/2008
 8:25 AM
 
 

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff

Ouch, that's ugly.  But Journey is cute. :)  Could be the
crossdomain.xml issue, but not sure either.

-TH

--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Hi,

 First, you should start a new thread with a different title. :)

 I don't know this answer though.

 Mike

 On Fri, Sep 19, 2008 at 5:19 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 
  Hello,
  Thanks, that was a big help. I did have a far more convoluted method
and
  I was really dreading having to go back to it because this.
 
  Now I have run into another problem with the wipe effect.
  Here is the example: http://journeyblueheaven.com/index.php
 
  You can click on Watch once, and it loads an XML file from a
youtube
  rss, and diplays the results, including images from youtube. So far
so
  good. But then, but if you click on anything else, it attempts to
wipe
  and triggers the sandbox violation below, which requires me to set a
  policy flag.
 
  This line triggers the error: Main.mxml:173
  mainImgBox.visible = false;
 
  The way I am loading the images is
  newImage.source = xml.src;
 
  How do I set the policy file flag in this situation, or do I need to
  load the images some other way ?
 
  The code is here: http://journeyblueheaven.com/Main.mxml
 
  SecurityError: Error #2122: Security sandbox violation:
BitmapData.draw:
  http://journeyblueheaven.com/fdjbh.swf cannot access
 
 
http://2.gvt0.com/ThumbnailServer2?app=vsscontentid=0f9a9bc1bda569e6of\
fsetms=60itag=w160hl=ensigh=EMg47-bM9077Aklrd1oumF_zqec.
  A policy file is required, but the checkPolicyFile flag was not set
when
  this media was loaded.
  at flash.display::BitmapData/draw()
  at
 
 
mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3\
.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffe\
ctInstance.as:771]
  at
 
 
mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\fra\
meworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstan\
ce.as:650]
  at
 
 
mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\\
frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectIns\
tance.as:463]
  at
 
 
mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\
\mx\effects\Effect.as:930]
  at
 
 
mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\
\projects\framework\src\mx\effects\EffectManager.as:716]
  at
  mx.effects::EffectManager$/
  http://www.adobe.com/2006/flex/mx/internal::eventHandler
 
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManag\
er.as:575]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
 
 
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\fr\
amework\src\mx\core\UIComponent.as:9051]
  at
 
 
mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\frame\
work\src\mx\core\UIComponent.as:1903]
  at mx.core::UIComponent/set
 
 
visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UICompo\
nent.as:1870]
  at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
  at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]
 
  Tim Hoff wrote:
   * *
  
   *private* *function* effectEndHandler():*void* {
 
   callLater(showBox);
   }
  
   *private* *function* showBox():*void*{
   mainImgBox.visible = *true*;
   }
  
   -TH
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  info1@ info1@ wrote:
   
I have this box which I want to wipe left to hide and then wipe
right
to show.
It hides all right and then it called the effectEndHandler, but
mainImgBox.visible = true; does not do anything. There is no
wipe right
and the box does not appear. what am I doing wrong ?
   
   
   
mx:VBox id=mainImgBox hideEffect={wipeLeft}
   showEffect={wipeRight}
mx:Image id=mainImg
source=@Embed(source='../media/jbh.jpg')
/
/mx:VBox
   
mx:WipeLeft id=wipeLeft duration=1000
effectEnd=effectEndHandler() /
mx:WipeRight id=wipeRight duration=1000/
   
private function effectEndHandler():void {
   
mainImgBox.visible = true;
}
   
  
   --
  
  
  
   Checked by AVG - http://www.avg.com
   Version: 8.0.169 / Virus Database: 270.7.0/1680 - Release Date:
9/19/2008
  8:25 AM
  
  
 
 
 



 --
 Teoti Graphix, LLC
 http://www.teotigraphix.com

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

 You can find more by solving the problem then by 'asking the
question'.