[flexcoders] Re: Warning: CheckVisibility is not a function ?

2009-01-16 Thread tom93438
Hi Erik, 

That is the problem. I don't define or call it anywhere in my code (to
the best of my knowledge). I have searched my entire codebase for
'CheckVisibilty' and it doesn't show up anywhere.

I know this makes it a hard problem to diagnose..

Any idea what might be wrong?

thanks

tom
 

--- In flexcoders@yahoogroups.com, Thomas, Erik erik_tho...@... wrote:

 Can you share some source code where you define/call CheckVisibilty?
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of tom93438
 Sent: Friday, January 16, 2009 10:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Warning: CheckVisibility is not a function ?
 
 
 
 A few more bits of information to add:
 
 This warning starts being generated immediately after the 'Adobe Flash
 Player Settings' box is closed (once the user selects 'Allow' OR
 'Deny') for microphone / camera access. 
 The warning is written continuously and indefinitely (or at least,
 until Flash Tracer reaches its warning limit). 
 
 Any ideas how to make this warning go away?
 
 thanks
 
 tom
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , tom s tcs2201@ wrote:
 
  Hi,
  I have an application running in Flash Debug Player 10.0 r12 for
 Firefox.
  It keeps writing 'Warning: CheckVisibility is not a function' to the
  flashlog.txt
  I am running FF 3.0.5 and Flash Switcher.
  
  Any ideas what might be causing this?
  
  thanks
  
  tom
 





Re: [flexcoders] Parallel from actionscript...

2009-01-16 Thread Sam Lai
How are you making them move? Should work if you are using an Effect.

2009/1/17 aceoohay pa...@compuace.com:
 I am beginning to play with moving things.

 When my app loads I read a DB table to get the names of some modules
 that I load;

 a.swf, b.swf, c.swf etc.

 I have another db table where I keep where each user left their
 modules. I loop through my list of modules instantiating them and
 then I see if I need to move them from their default location to
 wherever the user may have left them. I can get the modules to move
 fine, but when I load multiple modules simultaneously all but the
 last module displays immediately, and the last module moves across
 the screen properly.

 I assume that I need to something with Parallel but I can't find
 any documentation on how to use it in ActionScript.

 Any pointers and/or good ideas?

 Paul


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






[flexcoders] Re: tilelist itemrender problem

2009-01-16 Thread johndoematrix
my project is arranged in the following way. the project folder is
IESTATE_V1 and the project is named Portal_V1. inside the IESTATE_V1
is the main application named portal_V1.mxml, the assets folder which
has the homeprofile_ pics folder where the images are stored, the
components folder which has my tilelist and tilelist itemrenderer.
hope thats clear. so after knowing how things are arranged do you
still think {'../assets/ homeprofile_ pics/' + data.profilePic}  is
the problem?



[flexcoders] आचार्य अत्रे

2009-01-16 Thread p...@vin Uttarwar
एकदा अत्रे नदिवर नहात होते .
तेथे कपडे धुनार्या बाई ला त्यांची गम्मत करावी वाटली
तिने अत्रांच्या मोठ्या पोटा कडे पाहून विचारले
 हा माठ कसा दिला ?
त्या वर अत्रे म्हणाले .
माठ नुसता पाहिजे का नळ सकट पाहिजे ?



-



एकदा अत्रे रेलवे रूला शेजारून चालले असतात !त्यांच्या शेजारून कोलेज ची
मुले चालली असतात !
त्यातला एक मुलगा अत्रे याना सतवायाचे थरावातो ! तो अत्रे ना विचारतो हे
काय आहे? (रुळ दाखवून )
अत्रे : रुळ आहेत !
मुलगा : त्याच्या खाली काय आहे ?
अत्रे : लाकडी स्लिप्पर आहेत .
मुलगा : त्याच्या खाली काय आहे ?
अत्रे : खडी आहेत .
मुलगा : त्याच्या खाली काय आहे ?
अत्रे : माती आहे .
मुलगा : त्याच्या खाली काय आहे ?
अत्रे : मुरुम आहे .
मुलगा : त्याच्या खाली काय आहे ?
अत्रे : माझा बाप आहे .
मुलगा विचार करतो अत्रे आता चिडले आहेत .
मुलगा : त्याच्या खाली काय आहे ?
अत्रे : तुझी आई आहे .
मुलगा लगेच तिथून सतकतो .



एका सभेला अत्रे जातात ! स्टेज वर चढताना त्यांचे हात खिशात असतात !
लाक हसयाला लागतात , अत्रे तसेच माइक समोर जातात , हात खिशात !
लोक परत हसयाला लागतात ! लोकंवर नजर फिरवून अत्रे बोलायाला सुरवात करतात !
 जे तुमच्या मनात आहे , ते माझ्या हातात नाही 

-

अत्र्यांची परिस्थिती जरा खालावलेली होती. त्यात त्यांची कार बिघडली
म्हणून ते पायी पायी कामासाठी जात
होते.
तेवढ्यात त्यांना त्यांचा विरोधक भेटला त्याने खवचटपणें विचारले
 काय बाबूराव आज पायी पायी, काय कार विकली की काय?
अत्रे म्हणाले. अरे आज तुम्ही एकटेच? वहिनी दिसत नाही बरोबर ?
कुणाबरोबर पळून बिळून गेल्या की काय ?



आचार्य अत्रे विधानसभेत निवडून आले होते.
मात्र ते विरोधी पक्षात होते. सत्ताधारी कॉन्ग्रेसचे संख्याबळ जास्त होते.
अत्रे एकटे सरकारवर तुफान हल्ला चढवित असत.

अत्रे ग्रामीण भागाच्या दौर्‍यावर असतांना पत्रकारांनी त्यांना विचारले,
' अत्रेसाहेब तुम्ही विधानसभेत सरकारला बरोबर कोंडीत पकडता
पण त्यांच्या संख्याबळापुढे तुम्ही एकटे कसे पुरणार ? ''
बाजूच्या शेतातील बळवंतरावांना अत्र्यांनी विचारले ,
'' बळवंतराव कोंबड्या पाळता की नाही ? ''
'' तर . चांगल्या शंभर कोंबड्या हायेत की ! ''
'' आणि कोंबडे किती ?''
'' फक्त एक हाये ''
'' एकटा पुरतो ना ?''
उपस्थितांमध्ये प्रचंड हंशा उसळला
पत्रकारही त्या हंशात सामील झाले.



RE: [flexcoders] Re: Security sandbox violation on Bitmapdata.draw( rtmpVid ) despite crosspolicy

2009-01-16 Thread Alex Harui
Did you try AS3 with CS4?  There might be tighter security in AS3.  Also check 
the code that does the load.  You might need to set some security options in AS3

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jwebbsuccess
Sent: Friday, January 16, 2009 4:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Security sandbox violation on Bitmapdata.draw( 
rtmpVid ) despite crosspolicy


I tested the video player SWF online... Just as I thought; it didn't
make a difference.

I need to figure out how the Flash CS4/AS2 demo is able to
successfully get a snapshot and why the Flex/AS3 video player is not.

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
jwebbsuccess jw...@... wrote:

 I am testing the video player Flex app over 'file:///C:/file:///C:\' but the
 Flash CS4 demo is technically on 'file:///C:/file:///C:\' as well. Both are 
 in
 subdirectories of my desktop/document folder and both are trying to
 access the very same file over RTMP. Here's the official error from
 the video player:

 -
 Security sandbox violation: BitmapData.draw: 
 file:///C:/file:///C:\.../bin-
 debug/BaseFLVPlayer.swf cannot access rtmp://.../vod/. No policy
 files granted access. at flash.display::BitmapData/draw()
 -

 I think I'm going test the video player SWF online instead of on my
 desktop. I don't think it will help but I've got no other ideas at
 this point.


 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  Are you testing this over http:// or file://
 
  If file:// crossdomain.xml may not be in play.
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of jwebbsuccess
  Sent: Friday, January 16, 2009 11:50 AM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Security sandbox violation on
Bitmapdata.draw(
 rtmpVid ) despite crosspolicy.xml
 
 
  Take a look at this video player; notice there is an image on
screen
  before the video begins playback:
 
  http://www.huffingtonpost.com/2009/01/14/obama-on-inauguration-
  you_n_157881.html
 
  I'm trying to create similar 'preview frame' functionality in my
own
  custom-built Flex/AS3-based RTMP video player... I need my the
 player
  to seek ahead to a given point in video, grab a snapshot for
display
  as a preview frame, then seek back to the beginning before the
user
  initiates playback... Or something like that.
 
  I've already got demo code (AS2) for taking a snapshot of a video
  after it has started playing. The problem is when I try to write
 code
  to do the same thing in my AS3 player, I get sandbox violation
error
  as if I were running the demo SWF and my video player SWF on
 different
  servers. Both SWFs are in document folders on my computer... The
  RTMP host and I have confirmed that the permissions for using
  'BitmapData.draw( obj )' on a video stream are in place (the demo
  works) so I've got no idea why I'm getting the sandbox violation
  error.
 
  Can anyone help me to get a snapshot of a video stream and then
 return
  the stream to the beginning before the user initiates playback?
I've
  included the FLA for the demo in Flash CS4 and CS3 format:
 
  http://www.futurewebstudios.com/bitMapViewer2.zip
 
  The demo code is attached separately:
 
  ---
 
  import flash.display.BitmapData;
 
  var nc:NetConnection = new NetConnection();
  var ns:NetStream;
  var myBitmapData:BitmapData = new BitmapData( 160, 120, false,
  0x00CC );
  var mc_1:MovieClip = this.createEmptyMovieClip( mc,
  this.getNextHighestDepth() );
 
  btnCap.addEventListener( click, captureVid );
  nc.connect( rtmp://okojcizj1r.rtmphost.com/vod );
  //nc.connect( rtmp://localhost/vod );
 
  nc.onStatus = function( p_o )
  {
  var code = p_o.code;
  trace( code );
  if ( code == NetConnection.Connect.Success )
  {
  playLive();
  }
  };
 
  function playLive()
  {
  trace( playLive );
  mc_1._x = 195;
  mc_1._y = 15;
 
  ns = new NetStream( nc );
  myVideo.attachVideo( ns );
  myVideo.attachAudio( ns );
  ns.play( kaye_400 );
  ns.onStatus = function( p_o )
  {
  trace( p_o.code );
  };
  mc_1.attachBitmap( myBitmapData,this.getNextHighestDepth() );
  }
 
  function captureVid()
  {
  trace( captureVid );
  myBitmapData.draw( myVideo );
  }
 
  ---
 
  I've also attached a piece of the code in my video player app so
you
  can see what I'm trying to do; if you need to see more of the
code,
  let me know and I'll send it to you:
 
  ---
 
  public function getScreenCaptureData( seekTime:Number,
  vidWidth:Number, vidHeight:Number ):Bitmap
  {
  var startAt:Number = _netStream.time;
 
  trace( this +  getScreenCaptureData -- startAt:  + startAt
  + , seekTime:  + seekTime + , vidWidth:  + vidWidth + ,
  vidHeight:  + 

[flexcoders] custom image component that uses the url property to load images

2009-01-16 Thread stinasius
hi i downloaded a custom image component that has reflection
functionality and i am using to load dynamic images but i keep getting
this error Error #2044: Unhandled IOErrorEvent:. text=Error #2035:
URL Not Found. here is the component and my code

ReflectionObject.as

package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Loader;
import flash.events.Event;
import flash.geom.Matrix;
import flash.net.URLRequest;

import mx.core.UIComponent;

public class ReflectionObject extends UIComponent
{
private var _picture:Bitmap;
private var _loader :Loader;
private var _request:URLRequest;

private var _reflection :BitmapData;
private var _reflectionHolder   :Bitmap;

/**
 * Constructor
 */
public function ReflectionObject()
{
_loader  = new Loader();
}

public function set url(_url:String):void
{
_request = new URLRequest(_url);
loadImage();
}

public function loadImage():void
{

_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onLoadImageComplete);
_loader.load(_request);
}

private function onLoadImageComplete(evt:Event):void
{

_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
onLoadImageComplete);

_picture = _loader.content as Bitmap;
addChild(_picture);

createReflection();
invalidateDisplayList();
}

private function createReflection():void
{
var iteratorI   :Number = 0;
var iteratorJ   :Number = 0;
var flipMatrix  :Matrix = new Matrix();

flipMatrix.rotate(Math.PI);
flipMatrix.scale( -1, 1 );
flipMatrix.translate(0, _picture.height+1);

_reflection = new BitmapData(_picture.width, _picture.height, true,
0xff);
_reflection.draw(_picture, flipMatrix);

for (iteratorI = 0; iteratorI _picture.height; iteratorI++)
{
var rowFactor   :Number = Math.max(0, 0.6 - (iteratorI /
_picture.height));
for (iteratorJ = 0; iteratorJ  _picture.width; iteratorJ++)
{
var pixelValue  :uint = 
_reflection.getPixel32(iteratorJ, iteratorI);
var alphaValue  :uint = pixelValue  24  0xFF;
var rgbValue:uint = pixelValue  0xff;
var resultAlpha :uint = alphaValue * rowFactor;

_reflection.setPixel32(iteratorJ, iteratorI, 
resultAlpha  24 |
rgbValue);
}
}

_reflectionHolder = new Bitmap(_reflection);
_reflectionHolder.y = _picture.y + _picture.height;
_reflectionHolder.x = _picture.x;

addChild(_reflectionHolder);
}

override protected function 
updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight);

if(_picture)
{
height  = _picture.height;
width   = _picture.width;
}

}

override protected function measure():void
{
super.measure();

measuredWidth  = 80;
measuredHeight = 80;
}
}
}

image.mxml

reflection:ReflectionObject url={'images/pics/' + data.img}/

what could be wrong with my code?





<    1   2