Re: [Flashcoders] IPAD App code optimization

2013-01-11 Thread Deepanjan Das
Have a look at all possible ways of optimization:

https://deepanjandas.wordpress.com/category/code-optimization/

Best
Deepanjan Das


On Fri, Jan 11, 2013 at 4:27 PM, Sumeet Kumar sume...@sebiz.net wrote:

 Hi All,



 I am creating a very basic IPAD app. Adobe says we need to build the app
 with code optimization. I have completed development of the app.



 For code optimization,  I am removing listeners, using sprites instead of
 movieclip, clearing Timers etc...what else I can do to optimize my code..or
 What do adobe really mean by code optimization.



 Can anyone please guide me in this regard.



 Regards

 Sumeet Kumar





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




-- 
Greetings!
Hope this message of mine finds you in best of health and spirits.

..
Warm Regards
Deepanjan Das
+91.9836582808
Techie-Experts India
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Actionscript lives on.

2012-09-18 Thread Deepanjan Das
Ah this gives me more confident to stay where I am and continue upgrading 
myself in action script sphere. I have been into action scripting for now 
nearly a decade and recently was getting a bit confused of where will it 
actually lead to. Though my knowledge of action scripting helped me a lot to 
pick up android native development in java, still I have started to miss the 
charm of as3. But with this discussion my hopes seem to have brighten up.

Thanks guys for bringing up this topic.

Warm Regards
Deepanjan Das

Sent from my iPad

On 18-Sep-2012, at 11:40 PM, Ima Newsletta bignewsletter...@gmail.com wrote:

 Adobe Flash CS5.5 updated to AIR3.2, I'm really satisfied with it.
 I've made this application (100,000+ downloads, more than 1,000 feebacks for 
 an avarage rate of 4.6)
 https://play.google.com/store/apps/details?id=air.com.int33h.kfm
 It took me about a year to design, program and testing and I'm still 
 releasing updates with new features every 1-2 months.
 It's completly free, no in app purchase to advance in the game (I hate that 
 model of business).
 It uses heavy mysql and heavy computing and it runs fine on my Galaxy S.
 On devices such as = Galaxy S2 the app doesn't seem to be build on Flash, it 
 seems made natively.
 The same app is available for iOS but under a small fee.
 Hope this helps
 
 
 
 Il 18/09/2012 19:49, Gustavo Duenas ha scritto:
 what program did you use for creating apps for android and ios?
 
 Gus
 On Sep 18, 2012, at 11:02 AM, Ima Newsletta wrote:
 
 Actionscript can manipulate DOM... because as1 is quite the same as js.
 My personal experience: I'm a flash developer since 2002, I've begun with 
 Flash 6 (before I was a classic programmer, c, clipper and so on).
 I appreciated very much when As3 came out because I was freed by that 
 nightmare of implementing class with prototype, by passing always the 
 context and so on...
 Now, because I have family, I was forced to learn html+js (and obviously 
 jQuery) and I'm back into prototypes and context nightmare.
 Ok let's say that I feel pretty strong and confortable with them, but it's 
 a jump of at least 6 years in the past.
 However, the REAL NIGHTMARE that I had forgottend since 2002 is that 
 OBVIOUSLY html+js (also by using jQuery) differs from browser to browser.
 jQuery helps a lot, however you have to test your webapp  on many browser 
 and a lot of times what works on one, doesn't on another.
 The real bad thing is that also on the language javascript there are 
 important differences among the browser and you'll learn these only when 
 they are in front of you.
 For example, setTimeout(myFunction, 1000, myParam) won't work on explorer 
 and you have to write it in this way:
 setTimeout(function(){myFunction(myParam)} , 1000);
 And this is just an example...
 
 Btw I didn't left Flash, I use it for making Android and iOS apps and it 
 works very well.
 I made 4 apps, free on Android (with advertising banners by using an ANE) 
 and with fee on Apple Store.
 
 P.S. Sorry for my English, it's not my native tongue.
 
 
 Il 18/09/2012 15:22, Merrill, Jason ha scritto:
 Make it an EMCA viable script language. Like Actionscript becoming 
 Javascripts competitor. Make it so Actionscript can control and 
 manipulate DOM.
 Just sayin..
 
 THAT would be AWESOME and make me VERY HAPPY.
 
 Jason Merrill
 Instructional Technology Architect II
 Bank of America  Global Learning
 
 
 --
 This message w/attachments (message) is intended solely for the use of the 
 intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or 
 attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law 
 enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling 
 of EC, and EC may be archived, supervised and produced in countries other 
 than the country in which you are located. This message cannot be 
 guaranteed to be secure or free of errors or viruses.
 
 References to Sender are references to any subsidiary of Bank of America 
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * 
 Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are 
 Not a Condition to Any Banking

Re: [Flashcoders] ExternalInterface arguments?

2011-11-01 Thread Deepanjan Das
What kind of parameters are you passing and how are you passing?

Try to pass strings and it should work.

Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__

*

On Wed, Nov 2, 2011 at 1:35 AM, Nathan Mynarcik nat...@mynarcik.com wrote:

 Do you have a reference of how you are using it?
 ___
 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] Convert flash animation with sound to Ipad

2011-09-21 Thread Deepanjan Das
Hi Natavi,
You need to use Adobe Flash CS5 to export flash for iPad.
Remember to use touch events and no mouse over and mouse outs in Ipad.

Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*

On Wed, Sep 21, 2011 at 4:29 PM, natalia Vikhtinskaya natavi.m...@gmail.com
 wrote:

 Hi
 I want to convert Flash application to iPad. Flash is frame based
 animation with streaming sound, masks and buttons Back/Next/Stop/Play.
  I googled this subject and did not find any useful information with
 examples. Please give me advice where to learn more.

 Thank you in advance.
 ___
 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] webcam wackiness...

2011-09-19 Thread Deepanjan Das
Hi Tom,
I used the code for web camera below and the latest version of flash player
- 10.3.183.7:

private function showCameraLists():void
{
var cam:Camera = Camera.getCamera();
if(cam == null){
ExternalInterface.call('alert', No Web Camera found!);
return;
}
var camNames:Array = Camera.names;
var index:Number = 0;
for ( var i : int = 0 ; i  camNames.length ; i++ ) {
if (camNames[i] == USB Video Class Video ) {
index = i;
}
}
if(index  0){
createCamera(index.toString());
}else{
createCamera();
}
}

private function createCamera( cameraIndex:String=null ):void
{
webcam = Camera.getCamera( cameraIndex );
webcam.setMode( cameraWidth, cameraHeight, cameraFrameRate, true
);
webcam.setMotionLevel(70, 2000);

webcam.addEventListener( ActivityEvent.ACTIVITY,
onCameraActivity, false, 0, true );
webcam.addEventListener( StatusEvent.STATUS, onCameraStatus );

videoMatrix = new Matrix();
videoMatrix.a = -1; // scale(-1, 0); // flip horizontal assuming
that scaleX is currently 1
videoMatrix.tx = this.cameraWidth;

video = new Video( webcam.width, webcam.height );
video.attachCamera( webcam );
}


Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*



On Mon, Sep 19, 2011 at 12:16 PM, Dave Watts dwa...@figleaf.com wrote:

  I recently developing an AR apps and my clients also face the same
 problem.
  I asked them to update their flash player to 10.3.183.7
 
  Check MAC flash player version by visiting the page -
  http://www.adobe.com/software/flash/about/

 I'm using the latest FP version, and Tom's link didn't work for me.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.
 ___
 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] webcam wackiness...

2011-09-18 Thread Deepanjan Das
Dear Tom,
I recently developing an AR apps and my clients also face the same problem.
I asked them to update their flash player to 10.3.183.7


Check MAC flash player version by visiting the page -
http://www.adobe.com/software/flash/about/

That solved the problem.

The probable cause for the same may be due to latest OS upgrade and flash
player upgrade.


Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*


On Mon, Sep 19, 2011 at 4:34 AM, tom rhodes tom.rho...@gmail.com wrote:

 hey all,

 i want to confirm that this...

 http://46.4.226.29/camtest/

 does not work on a mac, and in chrome 14 beta on the pc? massively simple
 webcam example, source below...

 code
 package
 {
 import flash.display.Sprite;
 import flash.events.Event;
  import flash.events.StatusEvent;
 import flash.media.Camera;
 import flash.media.Video;

 public class Main extends Sprite
 {
 private var cam:Camera;
  private var video:Video;
  public function Main():void
  {
 if (stage) init();
 else addEventListener(Event.ADDED_TO_STAGE, init);
  }
  private function init(e:Event = null):void
  {
 removeEventListener(Event.ADDED_TO_STAGE, init);
 // entry point
  cam = Camera.getCamera();
if (cam != null) {
 //cam.setMode(320, 240, 30, false);
  cam.setMode(400, 300, 30, false);
 video = new Video(cam.width, cam.height);
  video.attachCamera(cam);
 cam.addEventListener(StatusEvent.STATUS, startcam);
  addChild(video);
 }
 }
  private function startcam(event:StatusEvent):void {
 // stuff
  }
  }
  }
 /code

 i've NEVER experienced probs with webcam before, what is going on here?

 tom.
 ___
 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] Flash Opportunity

2011-05-06 Thread Deepanjan Das
Hi,
Is remote development allowed for this requirement.


Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*


On Fri, May 6, 2011 at 7:58 PM, Amanda Prostack
aprost...@missionstaff.comwrote:

 I wanted to reach out and see if anyone could refer someone for the role
 below at our client in Newtown Square/Media. Its a long term contract, at
 least 40 hours a week. Please feel free to have anyone reach out to me who
 may be interested.






 Thanks!





 Amanda Prostack
 MissionStaff



 215-545-1600 Ext. 16

 www.MissionStaff.com








 Title: Flash Developer/Analyst

 Description of Duties:

 The core technology skill sets are:


 · Adobe Illustrator

 · Adobe Flash

 · HTML—general web page design skills

 · Action script writing

 · Adobe Photoshop


 The core business skills are:


 · Ability to take inventory of a large body of work and organize it into a
 working docket

 · Adhere to an asset creation and publishing process

 · Able to follow a multi-step process and improve upon it and document it.

 · Manage expectations of Marketing Department group responsible for the
 Marketing Portal content

 · Take responsibility for the asset Quality Assurance process and work in
 tandem with a Marketing Department Subject Matter Expert to obtain approval
 for them to be published to the portal


 The specific project/day-to-day responsibilities are:


 · Editing customizable marketing assets/materials in Photoshop and Flash,
 including cropping, text additions/updates, resolution settings, etc.

 · Editing action scripts

 · Creating (compiling) .swf files

 · Uploading assets to Production environment










 ___
 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] Why doesn't this work addChild() removeChild()

2011-04-22 Thread Deepanjan Das
Hi Steve,
This is because of timing.

You are trying to remove an object which has not completed its addChild
actions.

Hence its not getting the instance when removing.


Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*


On Fri, Apr 22, 2011 at 10:47 PM, Steve Abaffy st...@msmarketing.bizwrote:

 Hello,



 Why doesn't this work??



 In the same function

 Var Mort:movieClip = new Mort();

 addChild(Mort);

 removeChild(Mort);

 I get this error

 The supplied DisplayObject must be a child of the caller.







 ___
 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] in AS2, what is the correct way to update a DataGrid's dataProvider

2011-04-21 Thread Deepanjan Das
Hi Andrew,
Try this logic.
So have an object which holds the sorting details, and another object/array
which holds the unique ID/s of the selected rows.

Now just implement the dataProvider of the new set on each data load. Then
set the sorting and select the ID with try catch as the ID which you already
selected might not be in the list.

I guess, this will be faster and optimized based on sorting procedures as
well.


Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*


On Fri, Apr 22, 2011 at 1:52 AM, Andrew Sinning and...@learningware.comwrote:

 I have a screen with a DataGrid that displays live data, that is,
 data which is constantly changing.  It's not a very large amount of
 data, so I just make a query to the server every 2 seconds to get the
 new data.

 When the new data comes in, the easiest thing to do would be to simply
 set the dataProvider of the DataGrid to the new data, but this is
 really crude.  For starters, if over-writes imports properties such as
 how the array is sorted and which items are selected.

 So, to correct for these problems, what I do is iterate through each
 item in the dataProvider of the DataGrid, find the corresponding item
 in the new data and copy its properties to the item in dataProvider,
 remove any items from the dataProvider that are not in the new data,
 and then add any items from the new data that aren't in the
 dataProvider.

 Needless to say, this is terribly inefficient.

 So, what should I be doing?  This has to be done in AS2 because it is
 being incorporated in a legacy application.

 Thanks!
 ___
 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] How to access MovieClip declared in one function in an event listener

2011-04-21 Thread Deepanjan Das
Steve,
You can also track by using event.currentTarget, like this:

function DoSomething(e:MouseEvent):void{

 trace((event.currentTarget).TextField.text);
}

-- 
Greetings!
Hope this message of mine finds you in best of health and spirits.

On Fri, Apr 22, 2011 at 10:05 AM, Steve Abaffy st...@msmarketing.bizwrote:

 So basically the only way to make this work is to declare the myMovieClip
 as
 a global variable??

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gerry
 Sent: Thursday, April 21, 2011 9:28 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] How to access MovieClip declared in one function
 in an event listener

 Steve,

 You have some things confused. Like Ross said, read up on event.target.

 Your code should look something like this...

 Var myMovieClip:MovieClip;
 Var myButton:SimpleButton;

 DrawMyStuffOnScreen();


 Function DrawMyStuffOnScreen():void{

   myMovieClip = new DefinedMovieClip();

   myButton = new DefinedButton();

   myButton.addEventListener(MouseEvent.CLICK,DoSomething);

   //Defined Movie clip has several input fields in it

   myMovieClip.TextField.text = SomeText;

   addChild(myMovieClip);
addChild(myButton);
 }

 Function DoSomething(e:MouseEvent):void{

   //What goes in this function to be able to do something like

   Trace(myMovieClip.TextField.text); // This show a complier
 error of basically I don't know what myMovieClip is;
 }


 On Apr 21, 2011, at 9:44 PM, Steve Abaffy wrote:

  Hello,
 
 
 
  I basically have the follow:
 
 
 
  Function DrawMyStuffOnScreen():void{
 
 Var myMovieClip:MovieClip = new DefinedMovieClip();
 
 Var myButton:SimpleButton = new DefinedButton();
 
 myButton.addEventListener(MouseEvent.CLICK,DoSomething);
 
  //Defined Movie clip has several input fields in it
 
 myMovieClip.TextField.text = SomeText;
 
 addChild(myMovieClip);
 
  }
 
  Function DoSomething(MouseEvent.CLICK):void{
 
 What goes in this function to be able to do something like
 
 Trace(myMovieClip.TextField.text); // This show a complier
  error of basically I don't know what myMovieClip is;
 
 
 
 Then tried:
 
 Var myMC = new DefinedMovieClip();
 
 Trace(myMC.TextField.text) // this works but is always
 empty
  since it initializes empty.
 
 So how do you access the textfield that is sitting on the
  stage???
 
  }
 
  Thanks
 
  ___
  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

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


Re: [Flashcoders] from AS2 to AS3

2011-01-13 Thread Deepanjan Das
You may try using getChildByName(instance name); also.

var mc:MovieClip=_items.getChildByName(item2);


-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email

*


On Thu, Jan 13, 2011 at 9:00 PM, natalia Vikhtinskaya natavi.m...@gmail.com
 wrote:

 I need to convert game from AS2 to AS3. This game has movie clip
 “_items” on the stage with frames. Each frame has different mc.
 frame 1- has mc “item1”
 frame 2- has mc |”item2” …

 _items.gotoAndStop(2)
 trace(_items.item2) // for AS2 it gives mc
 In AS3 it gives none
 (it works correctly only _items.gotoAndStop(1); trace(_items.item1))


 I need to have variable with reference
 var mc:MovieClip=_items.item2

 How to solve this situation in AS3?

 Thank you in advance.

 ___
 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] from AS2 to AS3

2011-01-13 Thread Deepanjan Das
Hi,
Is the item2 placed on first frame in item1?

Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com

On Thu, Jan 13, 2011 at 9:15 PM, natalia Vikhtinskaya natavi.m...@gmail.com
 wrote:

 It is still null

 2011/1/13 Deepanjan Das deepanjan@gmail.com:
  You may try using getChildByName(instance name); also.
 
  var mc:MovieClip=_items.getChildByName(item2);
 
 
  --
  Warm Regards
  Deepanjan Das
  W: http://deepanjandas.wordpress.com
  || Om Manasamarthadata Shri Aniruddhaya Namah ||
  Think of the environment before printing this email
 
 
 
  On Thu, Jan 13, 2011 at 9:00 PM, natalia Vikhtinskaya
  natavi.m...@gmail.com wrote:
 
  I need to convert game from AS2 to AS3. This game has movie clip
  “_items” on the stage with frames. Each frame has different mc.
  frame 1- has mc “item1”
  frame 2- has mc |”item2” …
 
  _items.gotoAndStop(2)
  trace(_items.item2) // for AS2 it gives mc
  In AS3 it gives none
  (it works correctly only _items.gotoAndStop(1); trace(_items.item1))
 
 
  I need to have variable with reference
  var mc:MovieClip=_items.item2
 
  How to solve this situation in AS3?
 
  Thank you in advance.
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 




-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] from AS2 to AS3

2011-01-13 Thread Deepanjan Das
I mean item2 placed in first frame of _item?
DD

On Thu, Jan 13, 2011 at 9:18 PM, Deepanjan Das deepanjan@gmail.comwrote:

 Hi,
 Is the item2 placed on first frame in item1?


 Warm Regards
 Deepanjan Das
 W: http://deepanjandas.wordpress.com

 On Thu, Jan 13, 2011 at 9:15 PM, natalia Vikhtinskaya 
 natavi.m...@gmail.com wrote:

 It is still null

 2011/1/13 Deepanjan Das deepanjan@gmail.com:
  You may try using getChildByName(instance name); also.
 
  var mc:MovieClip=_items.getChildByName(item2);
 
 
  --
  Warm Regards
  Deepanjan Das
  W: http://deepanjandas.wordpress.com
  || Om Manasamarthadata Shri Aniruddhaya Namah ||
  Think of the environment before printing this email
 
 
 
  On Thu, Jan 13, 2011 at 9:00 PM, natalia Vikhtinskaya
  natavi.m...@gmail.com wrote:
 
  I need to convert game from AS2 to AS3. This game has movie clip
  “_items” on the stage with frames. Each frame has different mc.
  frame 1- has mc “item1”
  frame 2- has mc |”item2” …
 
  _items.gotoAndStop(2)
  trace(_items.item2) // for AS2 it gives mc
  In AS3 it gives none
  (it works correctly only _items.gotoAndStop(1); trace(_items.item1))
 
 
  I need to have variable with reference
  var mc:MovieClip=_items.item2
 
  How to solve this situation in AS3?
 
  Thank you in advance.
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 




 --
 Warm Regards
 Deepanjan Das
 W: http://deepanjandas.wordpress.com
 || Om Manasamarthadata Shri Aniruddhaya Namah ||

 *Think of the environment before printing this email*




-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] from AS2 to AS3

2011-01-13 Thread Deepanjan Das
Thats why you are getting a null value as the time when the script is
executing, the frame 2 of _item is not available.

For this you need to execute the script once you are sure the fame 2 of
_item has loaded.

Warm Regards
Deepanjan Das

On Thu, Jan 13, 2011 at 9:24 PM, natalia Vikhtinskaya natavi.m...@gmail.com
 wrote:

 it placed in frame # 2.

 2011/1/13 Deepanjan Das deepanjan@gmail.com:
  I mean item2 placed in first frame of _item?
  DD
 
  On Thu, Jan 13, 2011 at 9:18 PM, Deepanjan Das deepanjan@gmail.com
  wrote:
 
  Hi,
  Is the item2 placed on first frame in item1?
 
  Warm Regards
  Deepanjan Das
  W: http://deepanjandas.wordpress.com
 
  On Thu, Jan 13, 2011 at 9:15 PM, natalia Vikhtinskaya
  natavi.m...@gmail.com wrote:
 
  It is still null
 
  2011/1/13 Deepanjan Das deepanjan@gmail.com:
   You may try using getChildByName(instance name); also.
  
   var mc:MovieClip=_items.getChildByName(item2);
  
  
   --
   Warm Regards
   Deepanjan Das
   W: http://deepanjandas.wordpress.com
   || Om Manasamarthadata Shri Aniruddhaya Namah ||
   Think of the environment before printing this email
  
  
  
   On Thu, Jan 13, 2011 at 9:00 PM, natalia Vikhtinskaya
   natavi.m...@gmail.com wrote:
  
   I need to convert game from AS2 to AS3. This game has movie clip
   “_items” on the stage with frames. Each frame has different mc.
   frame 1- has mc “item1”
   frame 2- has mc |”item2” …
  
   _items.gotoAndStop(2)
   trace(_items.item2) // for AS2 it gives mc
   In AS3 it gives none
   (it works correctly only _items.gotoAndStop(1); trace(_items.item1))
  
  
   I need to have variable with reference
   var mc:MovieClip=_items.item2
  
   How to solve this situation in AS3?
  
   Thank you in advance.
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
  
  
 
 
 
  --
  Warm Regards
  Deepanjan Das
  W: http://deepanjandas.wordpress.com
  || Om Manasamarthadata Shri Aniruddhaya Namah ||
  Think of the environment before printing this email
 
 
 
  --
  Warm Regards
  Deepanjan Das
  W: http://deepanjandas.wordpress.com
  || Om Manasamarthadata Shri Aniruddhaya Namah ||
  Think of the environment before printing this email
 




-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] from AS2 to AS3

2011-01-13 Thread Deepanjan Das
So you check for null before executing the script:

addEventListener( Event.ENTER_FRAME, onEnterFrameHandler, false, 0, true );
var mc:MovieClip;
function onEnterFrameHandler( event:Event ):void{
 mc=_items.getChildByName(item2);
 if( mc ){
 removeEventListener( Event.ENTER_FRAME, onEnterFrameHandler );
 //do your code here
 }
}


-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*




On Thu, Jan 13, 2011 at 10:05 PM, natalia Vikhtinskaya 
natavi.m...@gmail.com wrote:

 Yes I understand. What possible to do?

 2011/1/13 Deepanjan Das deepanjan@gmail.com:
  Thats why you are getting a null value as the time when the script is
  executing, the frame 2 of _item is not available.
 
  For this you need to execute the script once you are sure the fame 2 of
  _item has loaded.
 
  Warm Regards
  Deepanjan Das
 
  On Thu, Jan 13, 2011 at 9:24 PM, natalia Vikhtinskaya
  natavi.m...@gmail.com wrote:
 
  it placed in frame # 2.
 
  2011/1/13 Deepanjan Das deepanjan@gmail.com:
   I mean item2 placed in first frame of _item?
   DD
  
   On Thu, Jan 13, 2011 at 9:18 PM, Deepanjan Das 
 deepanjan@gmail.com
   wrote:
  
   Hi,
   Is the item2 placed on first frame in item1?
  
   Warm Regards
   Deepanjan Das
   W: http://deepanjandas.wordpress.com
  
   On Thu, Jan 13, 2011 at 9:15 PM, natalia Vikhtinskaya
   natavi.m...@gmail.com wrote:
  
   It is still null
  
   2011/1/13 Deepanjan Das deepanjan@gmail.com:
You may try using getChildByName(instance name); also.
   
var mc:MovieClip=_items.getChildByName(item2);
   
   
--
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||
Think of the environment before printing this email
   
   
   
On Thu, Jan 13, 2011 at 9:00 PM, natalia Vikhtinskaya
natavi.m...@gmail.com wrote:
   
I need to convert game from AS2 to AS3. This game has movie clip
“_items” on the stage with frames. Each frame has different mc.
frame 1- has mc “item1”
frame 2- has mc |”item2” …
   
_items.gotoAndStop(2)
trace(_items.item2) // for AS2 it gives mc
In AS3 it gives none
(it works correctly only _items.gotoAndStop(1);
trace(_items.item1))
   
   
I need to have variable with reference
var mc:MovieClip=_items.item2
   
How to solve this situation in AS3?
   
Thank you in advance.
   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
   
   
   
   
  
  
  
   --
   Warm Regards
   Deepanjan Das
   W: http://deepanjandas.wordpress.com
   || Om Manasamarthadata Shri Aniruddhaya Namah ||
   Think of the environment before printing this email
  
  
  
   --
   Warm Regards
   Deepanjan Das
   W: http://deepanjandas.wordpress.com
   || Om Manasamarthadata Shri Aniruddhaya Namah ||
   Think of the environment before printing this email
  
 
 
 
  --
  Warm Regards
  Deepanjan Das
  W: http://deepanjandas.wordpress.com
  || Om Manasamarthadata Shri Aniruddhaya Namah ||
  Think of the environment before printing this email
 

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


Re: [Flashcoders] E4X filtered statement returns null

2010-11-17 Thread Deepanjan Das
Did you try this:
var topic:XML = topicData[0]; //  gets the below xml, came from an xmllist
var wording:String = Presentation;
var assets:XMLList = topicData[0]..asset;
trace(assets.(@title == wording));

-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*


On Thu, Nov 18, 2010 at 12:19 AM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi list...

 I have an E4X statement that breaks when I add a filter to it to get a
 specific node.  I keep getting null when I include hasOwnProperty() to the
 statement.

 // I want to get giraffe.ppt or asset title=Presentation
 fileName=giraffe.ppt/
 var topic:XML = topicData[0]; //  gets the below xml, came from an xmllist
 var wording:String = Presentation;
 // I get an xmllist for this:
 var assets:XMLList = topicData[0]..asset;
 // but I keep getting null returned for these:
 var assets:XMLList = topicData[0]..asset.(hasOwnProperty(@title));
 var assets:XMLList = topic..asset.(hasOwnProperty(@title) 
 attribute(title) == wording)@filename;

 Why does the statement break with the E4X filter?

 Thanks...any help is appreciated,
 - Michael M.

 topic title=abc
keywordsdog,cat,bird/keywords
descriptionblah blah/description
asset title=Presentation fileName=giraffe.ppt/
asset title=Document 1 fileName=a.mpg/
asset title=Document 2 fileName=b.mpg/
 /topic

 ___
 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] Calling a Static Function

2010-11-09 Thread Deepanjan Das
Hi Kerry,
The problem is in these lines:
var AssetLibrary:Class;

AssetLibrary=pEvent.target.applicationDomain.getDefinition(AssetLibrary)
as Class;
You are calling a stattic function; so this is correct
AssetLibrary.initAssets();
But why are you defining the same class variable ahead, thats wrong.
Static methods mean you can directly call those APIs without creating an
instance.

So just call AssetLibrary.initAssets() provided you have a AssetLibrary.as
imported.


-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*


On Wed, Nov 10, 2010 at 6:47 AM, Kerry Thompson al...@cyberiantiger.bizwrote:

 AS3, Flex 4.

 I have an asset swf I'm downloading. It has a public static function I want
 to call to initialize some stuff. FlashBuilder 4 is giving me an error,
 though, and an odd one--Incorrect number of arguments. Expecting one.

 The function I'm trying to call is declared with no arguments:

public static function initAssets(): void

 and I'm calling it when the load is complete:

 private function handleLoadComplete(pEvent:Event):void
 {
 var AssetLibrary:Class;

 AssetLibrary=
 pEvent.target.applicationDomain.getDefinition(AssetLibrary) as Class;
 try
 {
 AssetLibrary.initAssets(); //--the error is here
 }
 catch (e:ArgumentError)
 {
 trace (e);
 }
 }

 They are separate projects in Flex. What am I missing? Do they both need to
 be in the same package? At the moment I don't have a package named. Or do
 they need to be part of the same working set, perhaps?

 Cordially,

 Kerry Thompson
 ___
 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] FLV audio doesn't stop

2010-09-30 Thread Deepanjan Das
Hello Jason,
I am using this to clear the FLVPlayback:
I have added the FLVPlayback component through code doing an addChild.

Then I have passed the custom NCManagerLimelight Class which overrites the
inbuilt NCManager class.
The NCManagerLimelight is an opensource code you will get from net.

this.video = new FLVPlayback();
VideoPlayer.iNCManagerClass = NCManagerLimelight;

if (this.video.ncMgr.netConnection != null) {
if (this.video.ncMgr.netConnection.connected) {
 if(this.video.getVideoPlayer(0).netStream != null){
  this.video.getVideoPlayer(0).close();
  //TraceDebug.print(NET_STREAM ON RESET :  +
this.video.getVideoPlayer(0).netStream);
 }
}
   }

Hope this helps.


-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*


On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

  I am also using the FLVPlayback Component, but accessed the NetStream
 from the component to close it:
 this.video.getVideoPlayer(0).close();
 this.video.getVideoPlayer(0).netStream.close();

 I get a null error when I run that:

 if (_flvPlayback != null)
 {
_flvPlayback.getVideoPlayer(0).close();
_flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error
 here
 ...

 The null error is on the second statement
 (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first
 (_flvPlayback.getVideoPlayer(0).close();).

 ??


  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning


 ___
 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] FLV audio doesn't stop

2010-09-30 Thread Deepanjan Das
Hi Jason,
Try to close the stream after stopping the playpack.

Cheers
Deepanjan Das

On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote:

 Hello Jason,
 I am using this to clear the FLVPlayback:
 I have added the FLVPlayback component through code doing an addChild.

 Then I have passed the custom NCManagerLimelight Class which overrites the
 inbuilt NCManager class.
 The NCManagerLimelight is an opensource code you will get from net.

 this.video = new FLVPlayback();
 VideoPlayer.iNCManagerClass = NCManagerLimelight;

 if (this.video.ncMgr.netConnection != null) {
 if (this.video.ncMgr.netConnection.connected) {
  if(this.video.getVideoPlayer(0).netStream != null){

   this.video.getVideoPlayer(0).close();
   //TraceDebug.print(NET_STREAM ON RESET :  +
 this.video.getVideoPlayer(0).netStream);
  }
 }
}

 Hope this helps.


 --
 Warm Regards
 Deepanjan Das
 W: http://deepanjandas.wordpress.com
 || Om Manasamarthadata Shri Aniruddhaya Namah ||

 *Think of the environment before printing this email*


   On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason 
 jason.merr...@bankofamerica.com wrote:

  I am also using the FLVPlayback Component, but accessed the NetStream
 from the component to close it:
 this.video.getVideoPlayer(0).close();
 this.video.getVideoPlayer(0).netStream.close();

 I get a null error when I run that:

 if (_flvPlayback != null)
 {
_flvPlayback.getVideoPlayer(0).close();
_flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error
 here
 ...

 The null error is on the second statement
 (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first
 (_flvPlayback.getVideoPlayer(0).close();).

 ??


  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning


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






-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FLV audio doesn't stop

2010-09-30 Thread Deepanjan Das
Json,
Your logic seems to be absolutely fine, which suggests that the stream is
not getting closed even after deletion.
This happens sometimes when the player might be bufferring. So at this time
you might have stopped the video, but the steam is open, so when the
buffering in the background (rmember you has stopped the player) completed
it passes the steam, now by this time your sprite has been removed, so you
cannot see the video but just listen to the audio as the stream is still
open.

I has a similar experience and that got solved only by being able to close
the stream directly.
Also try setting the playback component to null on deletion.


-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*


On Fri, Oct 1, 2010 at 8:33 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

  Could you set the code that starts the new video to check for a boolean
 before playing a new video?

 Well, thanks, but that isn't my setup.  If I did that, then the new video
 would have to wait for the old video (now not on the screen, the user told
 it to disappear, but you still hear the audio for some reason) to finish
 playing - not a good user experience.  They are two different instances - a
 player in one container sprite and after that sprite is removed, a player in
 a new sprite container. My code does the following when a video is supposed
 to be removed before a new one is created and played:

 1. The Flvplayback component instance is told to stop.
 2. Any listeners are removed from Flvplayback component instance
 3. The Flvplayback component instance is removed from container sprite's
 display list
 4. The Flvplayback component instance set to null
 5. The Sprite that the FLVplayback component was in is removed from the
 display list.
 6. Any listeners attached to the container Sprite instance are removed
 7. The container Sprite instance is set to null.
 8. Then the new sprite is created, and the new FLV component created which
 plays the video.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning



 -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers
 Sent: Thursday, September 30, 2010 10:56 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] FLV audio doesn't stop

 Hi Jason,
 Could you set the code that starts the new video to check for a boolean
 before playing a new video?
 I am thinking you may already have this.

 var isPlaying:Boolean = true;

 and set this when a video actually starts playing?

 Best,
 Karl

 On Sep 30, 2010, at 9:51 PM, Merrill, Jason wrote:

  Thanks, tried that too.  Seems the problem occurs if the user goes to
  look at a new video before the previous video in the previous sprite
  starts playing.
 
   Jason Merrill
   Instructional Technology Architect
   Bank of America  Global Learning
 
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
  boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das
  Sent: Thursday, September 30, 2010 10:46 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] FLV audio doesn't stop
 
  Hi Jason,
  Try to close the stream after stopping the playpack.
 
  Cheers
  Deepanjan Das
 
  On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das
  deepanjan@gmail.comwrote:
 
  Hello Jason,
  I am using this to clear the FLVPlayback:
  I have added the FLVPlayback component through code doing an
  addChild.
 
  Then I have passed the custom NCManagerLimelight Class which
  overrites the inbuilt NCManager class.
  The NCManagerLimelight is an opensource code you will get from net.
 
  this.video = new FLVPlayback();
  VideoPlayer.iNCManagerClass = NCManagerLimelight;
 
  if (this.video.ncMgr.netConnection != null) {
  if (this.video.ncMgr.netConnection.connected) {
   if(this.video.getVideoPlayer(0).netStream != null){
 
this.video.getVideoPlayer(0).close();
//TraceDebug.print(NET_STREAM ON RESET :  +
  this.video.getVideoPlayer(0).netStream);
   }
  }
 }
 
  Hope this helps.
 
 
  --
  Warm Regards
  Deepanjan Das
  W: http://deepanjandas.wordpress.com
  || Om Manasamarthadata Shri Aniruddhaya Namah ||
 
  *Think of the environment before printing this email*
 
 
On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason 
  jason.merr...@bankofamerica.com wrote:
 
  I am also using the FLVPlayback Component, but accessed the
  NetStream
  from the component to close it:
  this.video.getVideoPlayer(0).close();
  this.video.getVideoPlayer(0).netStream.close();
 
  I get a null error when I run that:
 
  if (_flvPlayback != null)
  {
 _flvPlayback.getVideoPlayer(0).close();
 _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null
  error here ...
 
  The null error is on the second statement

Re: [Flashcoders] FLV audio doesn't stop

2010-09-29 Thread Deepanjan Das
Hi Jason,
How are you removing the video?
Are you closing the NetStream and setting it to null for performance, please
check.

In my case that solved this problem as far as I remember.
-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*


On Thu, Sep 30, 2010 at 7:32 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Weird issue, I seem to remember a bug similar to this in Flash player 9
 where audio does not get released from memory, but I thought I read it had
 been fixed in Flash player 10.  Yet, we are seeing this problem in flash
 player 10,1,xx

 I am playing a series of flv videos.  Each video is placed inside a class
 that extends sprite.  When the user clicks a button, there is code to remove
 the sprite that contains the video and any listeners associated with it,
 create a new sprite with a new movie.  I'm doing all the right things to
 wait for the video to load before playing, etc. This works great locally -
 video gets removed, new one plays.  However, when viewing my app online,
 sometimes (not always) when the user clicks the button, the new video plays
 as it should, but the audio from the previous video that was removed
 continues to play.  I can't seem to track down why this is happening or how
 to fix.

 Anyone encounter this before and have any good fixes or workaround?
  Thanks.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning




 ___
 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] FLV audio doesn't stop

2010-09-29 Thread Deepanjan Das
Hi,
I am also using the FLVPlayback Component, but accessed the NetStream from
the component to close it:

this.video.getVideoPlayer(0).close();
this.video.getVideoPlayer(0).netStream.close();

-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*Think of the environment before printing this email*


On Thu, Sep 30, 2010 at 8:11 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 Hmm, thanks.  I'm not using Netstream, I'm using an Actionscript-created
 instance of the flvplaybackcomponent.

  Jason Merrill
  Instructional Technology Architect
  Bank of America  Global Learning


  -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das
 Sent: Wednesday, September 29, 2010 10:36 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] FLV audio doesn't stop

 Hi Jason,
 How are you removing the video?
 Are you closing the NetStream and setting it to null for performance,
 please check.

 In my case that solved this problem as far as I remember.
 --
 Warm Regards
 Deepanjan Das
 W: http://deepanjandas.wordpress.com
 || Om Manasamarthadata Shri Aniruddhaya Namah ||

 *Think of the environment before printing this email*


 On Thu, Sep 30, 2010 at 7:32 AM, Merrill, Jason 
 jason.merr...@bankofamerica.com wrote:

  Weird issue, I seem to remember a bug similar to this in Flash player 9
  where audio does not get released from memory, but I thought I read it
 had
  been fixed in Flash player 10.  Yet, we are seeing this problem in flash
  player 10,1,xx
 
  I am playing a series of flv videos.  Each video is placed inside a class
  that extends sprite.  When the user clicks a button, there is code to
 remove
  the sprite that contains the video and any listeners associated with it,
  create a new sprite with a new movie.  I'm doing all the right things to
  wait for the video to load before playing, etc. This works great locally
 -
  video gets removed, new one plays.  However, when viewing my app online,
  sometimes (not always) when the user clicks the button, the new video
 plays
  as it should, but the audio from the previous video that was removed
  continues to play.  I can't seem to track down why this is happening or
 how
  to fix.
 
  Anyone encounter this before and have any good fixes or workaround?
   Thanks.
 
   Jason Merrill
   Instructional Technology Architect
   Bank of America  Global Learning
 
 
 
 
  ___
  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

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


Re: [Flashcoders] Create your own t-shirt

2010-08-04 Thread Deepanjan Das
Hi,
Learn more on Adobe Scene 7. This might help you.

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com/

On Wed, Aug 4, 2010 at 7:56 PM, Karl DeSaulniers k...@designdrumm.comwrote:

 Well, I did say I'd purchase it.
 But I hear your point. I know how to do all those things, but needed this
 in somewhat of a hurry and was seeing if I could find a fish instead of
 congering one out of mid air. So to speak. But thank you for your response.
 No harm no foul.

 Best,
 Karl

 Sent from losPhone


 On Aug 4, 2010, at 8:55 AM, Merrill, Jason 
 jason.merr...@bankofamerica.com wrote:

  Does anyone know where I might find an AS2 (preferably) or AS3

 create your own t-shirt tutorial or any advice on one that is made and
 for sale?

 Does your t-shirt maker also have to have sharks and lasers?

  I had no luck on google, but I may not be searching for the right key

 phrase.

 Try this search:  Flash Tutorial T-Shirt Maker Sharks Lasers

 Seriously though, you're thinking about this the wrong way - looking for
 an EXTREMELY specific example.  You need to not think about the specific
 result you want (because it's extremely unlikely you'll find a tutorial
 on it), and instead ask questions and find tutorials on knowledge gaps
 in Actionscript and Flash related to the problem you are trying to
 solve.  For example:

 How do I detect when two graphics are overlapping?
 How would I go about allowing the user to draw on the screen?
 How can I send graphics to a printer?
 Is there a tutorial out there on loading XML?
 etc.

 By asking for a tutorial very specific to your project, it seems like
 you just want something to show you everything you should do for your
 project, instead of learning the Flash/Actionscript things you need to
 learn to tackle any project.  So I would advise you to learn to fish
 instead of ask for a fish.  Sorry if that sounds harsh, I don't mean it
 to be - it's just the best advice I can give you.


 Jason Merrill

 Instructional Technology Architect
 Bank of America   Global Learning

 Join the Bank of America Flash Platform Community  and visit our
 Instructional Technology Design Blog
 (Note: these resources are only available for Bank of America
 associates)


 ___
 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




-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Create your own t-shirt

2010-08-04 Thread Deepanjan Das
But Guys,
I appreciate all of your suggestions, but I guess none of them will allows
blennding of text or image on your wrinkled t-shirt.
Thats what is there in the demo shown.

Cheers
Deepanjan Das
http://deepanjandas.wordpress.com/

On Thu, Aug 5, 2010 at 5:50 AM, Mike Duguid mike.dug...@gmail.com wrote:

  And you need to find out how to send a ByteArray back to a backend
 service
  to save said t-shirt as an image file.
 
  With that and Jack's TransformManager, those are the two main building
  blocks.
 
 
 Having created quite a few online designers / product customisation tools,
 I'd add that for print resolution imagery involving bitmaps you certainly
 -don't- want to be transferring large amounts of pixel data back to the
 server, compression or not (unless you don't mind long waits or low
 resolution output affecting your customer abandonment rates). Better to
 keep
 all high resolution processing (and files) on the server and to essentially
 only transfer user interaction data back to the server to render out the
 print ready, high resolution final format there, while keeping the whole
 process snappy.
  ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flex not playing in browser

2010-07-29 Thread Deepanjan Das
Do you have the appropriate flash player installed for your browser?

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com/

On Thu, Jul 29, 2010 at 6:38 PM, Lehr, Theodore
ted_l...@federal.dell.comwrote:

 I am working on my first flex file - just a simple thing displaying a few
 components... nothing interacting with data or anything yet... I can open it
 directly by double clicking on the .swf file and it opens in the player
 fine... I try to load the .swf file in the browser and it does not display -
 no errors or anything - just shows nothing...

 any reason why?

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




-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flex not playing in browser

2010-07-29 Thread Deepanjan Das
So, can you share the embed code

Cheers
Deepanjan Das

On Thu, Jul 29, 2010 at 8:18 PM, Lehr, Theodore
ted_l...@federal.dell.comwrote:

 yeah - it is the same version as when I load the swf straight into the
 player


 
 From: Deepanjan Das [deepanjan@gmail.com]
 Sent: Thursday, July 29, 2010 9:15 AM
 To: Flash Coders List
 Cc: Lehr, Theodore
 Subject: Re: [Flashcoders] Flex not playing in browser

 Do you have the appropriate flash player installed for your browser?

 Warm Regards
 Deepanjan Das
 http://deepanjandas.wordpress.com/

 On Thu, Jul 29, 2010 at 6:38 PM, Lehr, Theodore ted_l...@federal.dell.com
 mailto:ted_l...@federal.dell.com wrote:
 I am working on my first flex file - just a simple thing displaying a few
 components... nothing interacting with data or anything yet... I can open it
 directly by double clicking on the .swf file and it opens in the player
 fine... I try to load the .swf file in the browser and it does not display -
 no errors or anything - just shows nothing...

 any reason why?

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



 --
 Warm Regards
 Deepanjan Das
 W: http://deepanjandas.wordpress.com

 Think of the environment before printing this email

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




-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AIR flv encoder

2010-07-20 Thread Deepanjan Das
Hi,
You may find it in this blog - http://www.joristimmerman.be/

-- 
Warm Regards
Deepanjan Das
M: +91 9836582808
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email

On Tue, Jul 20, 2010 at 8:52 PM, David Hunter davehunte...@hotmail.comwrote:


 Hi List,
 I've been on google all day and still not found what I'm looking for. I
 need to record video and audio from a webcam and save it to disk. This is a
 kiosk project rather being on the web, so I am looking to do this in AIR.
 They could be stored as FLV or some other video format, but I really need it
 to be one file rather than separate files for video and audio. I have found
 a couple libraries for writing FLVs but nothing that also writes the audio
 part. Microphone data has recently been exposed so maybe someone has
 incorporated it into an FLV writer. The video format isn't important as they
 can be converted at a later date, but a single file combining audio and
 video is important.  I have also looked at red5 and FFmpeg as solutions, but
 FMS is too expensive. Any shared knowledge on flv encoders or other
 techniques you've come across to record both video and audio from a webcam
 are greatly received!  Thanks, David
 _
 http://clk.atdmt.com/UKM/go/195013117/direct/01/
 ___
 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] Help with addChild

2010-07-15 Thread Deepanjan Das
Hi,
I think the stage has not yet been initiated, hence the addChild is not
working.
Try to get hold of the stage first and then so an addChild.

if(stage){

}else{
 addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}

private function onAddedToStage(e:Event):void
  {
   removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addChild(...);
 }
Hope this helps.

Warm Regards
Deepanjan Das
M: +91 9836582808
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email


On Fri, Jul 16, 2010 at 8:26 AM, J.C. Berry jcharlesbe...@gmail.com wrote:

 Dear Group,
 I wondered if I could bother you a minute with a simple question. I have a
 document class that extends MovieClip, but my problem arises when I  use
 addChild to add some popups (movieclips) to the stage. They are only
 visible
 when I attach my popups to an on-stage button:
 mystagebtn.addChild(mypopup) but I get nothing when attaching using
 addChild() or this.addChild or this.parent.addChild   What reasons can
 there
 be for my clips not being visible?  As I said, my document class does
 extend
 MovieClip and I have searched for a few days now and reading on the doc
 class has not given me an answer. I wouldn't even mind a reference to a
 tutorial that could help me. Thanks.
 -JC

 On Wed, Jul 7, 2010 at 6:55 AM, allandt bik-elliott (thefieldcomic.com) 
 alla...@gmail.com wrote:

  does this line work?
 
 
 
 DynaBtn.addEventListener(MouseEvent.MOUSE_OVER,DynaBtnRollOverHandler(CityNum));
 
  i wouldn't have thought it would (by using the brackets you are calling
  that
  function straight away)
 
  it should be
 
 
  DynaBtn.addEventListener(MouseEvent.MOUSE_OVER,DynaBtnRollOverHandler);
  }
 
  private function DynaBtnRollOverHandler(e:Event):void
  {
 // handle event
  }
 
  and cityNum should be a property on DynaBtn so that you can use
  (e.target as DynaBtn).cityNum
  to recall the correct number
 
  best
  a
 
  On 7 July 2010 14:40, Kerry Thompson al...@cyberiantiger.biz wrote:
 
   J.C. Berry wrote:
  
I wondered if I could bother you to review the code below and make
   comments
and suggestions.
  
   It's not bad at all, especially for your first class. I didn't go
   through all your code, but one thing jumped out at me. These lines
   might give you problems:
  
   for(var i=0;iNumOfCities;i++){
CityNum = i;
var DynaBtn = root['city'+CityNum+'_mc'];
DynaBtn.gotoAndStop(1);
  
  
 
  
 DynaBtn.addEventListener(MouseEvent.MOUSE_OVER,DynaBtnRollOverHandler(CityNum));
DynaBtn.addEventListener(MouseEvent.MOUSE_OUT,DynaBtnRollOutHandler);
  
   First, you are going to have only one DynaBtn variable--the last one
   declared in the for loop. Each time you create an instance, it
   overwrites the last one. Fortunately for you, it works, but it won't
   always.
  
   The second issue is adding an event listener from outside the object.
   DynaBtn.addEventListener() will add the listener to the button, but
   you won't be able to remove the listener from outside the button.
  
   Instead, you should have a DynaBtn class, and add the listener in the
   constructor. Then you can remove the event listeners when you clean
   up.
  
   This applies, of course, to all the buttons you created.
  
   Nice job overall, though.
  
   Cordially,
  
   Kerry Thompson
   ___
   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
 



 --
 J.C. Berry, M.A.
 UI Developer
 619.306.1712(m)
 jcharlesbe...@gmail.com
 portfolio: http://Client:maz...@www.mindarc.com

 

 This E-mail is covered by the Electronic Communications Privacy Act, 18
 U.S.C. ?? 2510-2521 and is legally privileged. This information is
 confidential information and is intended only for the use of the individual
 or entity named above. If the reader of this message is not the intended
 recipient, you are hereby notified that any dissemination, distribution or
 copying of this communication is strictly 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] Error in displaying Hindi Text

2010-06-17 Thread Deepanjan Das
Have you tried embedding the texts.

Regards
D

On Thu, Jun 17, 2010 at 2:19 PM, Pankaj Singh 
singh.pankaj.iitkg...@gmail.com wrote:

 Hi,
 I am writing a slide show application in flash action script 3.0 . i am
 importing text from a external text file ..
 I am having no problem in windows 7 but it is showing boxes instead of
 texts
 in XP and Linux..
 How to get out of this.

 --
 --
 --
 Thanking You,

 Pankaj Kumar Singh,
 2nd Year Undergraduate Student,
 Department of Agricultural and Food Engineering,
 Indian Institute of Technology,
 Kharagpur

 Mobile - (+91) 8001231685
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Warm Regards
Deepanjan Das
M: +91 9836582808
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] contextMenu getting overridden

2010-06-17 Thread Deepanjan Das
Hi Michael,
This may be a problem of symbol hierarchy in Adobe CS 3 onwards,

Warm Regards
Deepanjan Das

On Fri, Jun 18, 2010 at 1:13 AM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi list...

 I have a parent sprite with a custom contextMenu defined for it, and within
 that, there is a child sprite with a custom contextMenu defined for that.
  The issue is that the child sprite doesn't show its contextMenu.  It only
 shows the parent contextMenu.  Anyone know what I'm missing?  It's only
 recently started with this problem.

 thanks!
 - Michael M.

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




-- 
Warm Regards
Deepanjan Das
M: +91 9836582808
W: http://deepanjandas.wordpress.com

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Funny, Code Worked Before...

2010-05-27 Thread Deepanjan Das
Hi John,
No in this case no need to pass the Event.

Try classifying the SWF file as local-with-networking or trusted.

Check for allowScriptAccess=always in the containing document.

You will not be able to navigate the windows _self, _top, or _parent
if the SWF file is contained by an HTML page that has set the
allowScriptAccess to none, or to sameDomain when the domains of the HTML
file and the SWF file do not match.

Check all of these

Cheers
Deepanjan Das

On Thu, May 27, 2010 at 8:38 PM, John Singleton
johnsingleton...@yahoo.comwrote:

 From: Deepanjan Das deepanjan@gmail.com
 
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Cc: johnsingleton...@yahoo.com
 Sent: Thu, May 27, 2010 10:57:38 AM
 Subject: Re: [Flashcoders] Funny, Code Worked Before...
 
 Just a guess as I am not aware of the whole picture:
 try this -
 
  function completePreloader(e:Event)
 

 Well, I tried that, but what argument am I supposed to pass? Again, this
 doesn't seem to be on track, because this same code works fine with another
 *.as file. All I've done is changed this:

private function imageLoaded9(event:Event):void
{
imgFlag9 = true;
if (imgFlag1 == true  imgFlag2 == true  imgFlag3 == true 
 imgFlag4 == true  imgFlag5 == true  imgFlag6 == true  imgFlag7 == true
  imgFlag8 == true  imgFlag9 == true)
{
completePreloader();
}
trace('9');
}

 which is called after each image is loaded (in this case the 9th). When all
 the images load, then completePreloader() is called, and it gets called
 because the trace in the same prints. But for some reason this:

navigateToURL(new URLRequest('index.py'));

 never gets called. Why??
 TIA,
 John

 
 as you call this on an event.
 
 Let me know. Also check if your debugger is on.
 
 
 On Thu, May 27, 2010 at 8:13 PM, John Singleton 
 johnsingleton...@yahoo.com wrote:
 
 Hi;
 I have this code:
 
 function completePreloader()
 {
 navigateToURL(new URLRequest('index.py'));
 trace('yep');
 }
 
 that is triggered after all the assets have loaded in the preloader. It
 prints the trace. But it doesn't surf to the URL. It just sits there. Also,
 when I run the other code that works, which is basically identical, it
 prints this error:
 
 Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
 
 because it can't surf to that relative URL. But my new *.as file
 doesn't print that error. Why?
 TIA,
 John
 
 
 
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 --
 Warm Regards
 Deepanjan Das
 M: +91 9836582808
 
 Think of the environment before printing this email
 







-- 
Warm Regards
Deepanjan Das
M: +91 9836582808

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error 1009

2010-02-24 Thread Deepanjan Das
Hi Victor,
Did u trace within Preloader Class?

DD

On Wed, Feb 24, 2010 at 7:48 PM, Victor Subervi victorsube...@gmail.comwrote:

 On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Das 
 deepanjan@gmail.comwrote:

 Hey,
 I have not seen your debugger error.


 So how do I debug? I downloaded what I thought was the debugger and it was
 just another copy of Flash!


 but I feel its the stage that is getting null value.

 Please trace stage to find out.


 I traced stage from the preloader where I call the main script and it
 traced out Object stage.
 TIA,
 Victor




-- 
Warm Regards
Deepanjan Das
M: +91 9836582808

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error 1009

2010-02-24 Thread Deepanjan Das
Are you getting this error:

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at Preloader/init()
at Preloader()
at test_fla::MainTimeline/frame1()

DD

On Wed, Feb 24, 2010 at 7:59 PM, Victor Subervi victorsube...@gmail.comwrote:

 On Wed, Feb 24, 2010 at 10:22 AM, Deepanjan Das 
 deepanjan@gmail.comwrote:

 Hi Victor,
 Did u trace within Preloader Class?


 yes.
 V




-- 
Warm Regards
Deepanjan Das
M: +91 9836582808

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error 1009

2010-02-23 Thread Deepanjan Das
Hey,
I have not seen your debugger error. but I feel its the stage that is
getting null value.

Please trace stage to find out.

Let me know.

Cheers
Deepanjan Das

On Tue, Feb 23, 2010 at 11:45 PM, Victor Subervi victorsube...@gmail.comwrote:

 On Tue, Feb 23, 2010 at 12:04 PM, Glen Pike g...@engineeredarts.co.uk
 wrote:

  Are you listening for Event.INIT or Event.COMPLETE for your preloader?
   You should possibly use the former to make sure all your child clips are
  instanciated before you run AS3 code that accesses these child clips.
 

 Yes. I changed COMPLETE to INIT and got the same error:

 package
 {
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.easing.*;
 import flash.display.Loader;
 import flash.events.ProgressEvent;
 import flash.text.TextField;
 import flash.text.TextFormat;
 import flash.text.TextFieldAutoSize;
 import flash.net.URLRequest;
  public class Preloader extends MovieClip
 {
 private var l:Loader = new Loader();
 private var myTextField:TextField = new TextField();
  function Preloader()
 {
 init();
 }
  function init()
 {
 l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
 l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
 l.load(new URLRequest(Splash.swf));
 addChild(myTextField);
 myTextField.width = 250;
 myTextField.x = stage.stageWidth/2 - 50;
 myTextField.y = stage.stageHeight/2;
 myTextField.selectable = false;
 myTextField.border = false;
 myTextField.borderColor = 0xAA;
 myTextField.autoSize = TextFieldAutoSize.LEFT;
 var myFormat:TextFormat = new TextFormat();
 myFormat.color = 0xAA;
 myFormat.size = 24;
 myFormat.italic = true;
 //myTextField.setTextFormat(myFormat);
 myTextField.defaultTextFormat = myFormat;
 }

 function loop(e:ProgressEvent):void
 {
 var perc:Number = e.bytesLoaded/e.bytesTotal;
 myTextField.text = Math.ceil(perc*100).toString() + %;
 }

 function done(e:Event):void
 {
 removeChildAt(0);
 myTextField = null;
 addChild(l);
 }
 }
 }

 For Hendrik, I am currently downloading the debugger. It's big!
 TIA,
 Victor
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Warm Regards
Deepanjan Das
M: +91 9836582808

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Strange problem with a Flash animation.

2010-01-17 Thread Deepanjan Das
Hi,
This seems to be a javascript issue and nothing to do with flash. I think
the flash is getting reloaded again and again and causing it to flicker.

Cheers
Deepanjan Das

On Mon, Jan 18, 2010 at 12:42 AM, Juan Alberto V. acctoujo...@gmail.comwrote:

 Hi to all!,
 I have a strange problem with a flash embedded in a frame container.
 In Firefox, the URL::
 http://www.paginasamarillas.com.ar/externalUrl.jsp?url=HTTP://WWW.LEOCARONLINE.COM/id=706289110178771
 is working very well, but when I open the same URL in IExplorer, the flash
 is blinking all the time.
 And HTTP://WWW.LEOCARONLINE.COM is working good in IExplorer and Firefox.

 does anyone know why i have this behavior?

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




-- 
Warm Regards
Deepanjan Das
M: +91 9836582808

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Holiday cards

2009-07-15 Thread Deepanjan Das
Hi,
Check this out http://purplecookies.com/cc_holidays.aspx
This is a kids version.
Cheers
Deepanjan Das

On Wed, Jul 15, 2009 at 7:08 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi list...

 Anyone know of any really superb examples of corporate holiday greeting
 cards?  Just trying to brainstorm.

 Thanks!
 - Michael M.

 ___
 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] Job offer in Berlin (ActionScript)

2008-06-12 Thread Deepanjan Das
Hi Abe,
I am a flash and Flex developer. I would like to know more about this
opportunity. Can you please mail me the details at [EMAIL PROTECTED]
Thank you for your time.

Regards
Deepanjan Das

On Thu, Jun 12, 2008 at 12:21 PM, Jiri Heitlager 
[EMAIL PROTECTED] wrote:

 He Abe,

 I am a Dutch Flash developer and I am living in Berlin since 1 year now.
 Your email sounds quit interesting and I would like to get to know a bit
 more. Could you send me some more details.

 Thank you,

 Jiri Heitlager

 Abe Pazos wrote:

 The company where I work is growing and needs more
 AS3 developers. The project is called Panfu, one
 of the biggest virtual worlds for children, developed
 in AS3 and PureMVC.

 It's a large and young international team with programmers,
 designers, illustrators, translators, moderators and many
 others. Work conditions are quite good I think.

 Berlin is a great city to live in, specially in summer. It's full
 of cultural events, parks where you can relax, lakes, and
 people coming from all countries. You can go around with
 bicycle or using a very efficient public transportation. Flats
 and food are quite inexpensive compared to other large cities.

 For more details or for sending a CV please use my e-mail
 address.

 Hopefully one of you is working here with us soon! :)

 Abe

 ps. I'm sending this job offer to the list as it was said a
 couple of weeks ago it is ok to do so. Hopefully it
 does not upset anyone.
 ___
 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] Flash 8, AS 2.0. I want to use symbols from child movie in parent movie. Possible?

2008-01-29 Thread Deepanjan Das
Hi,
You can use runtime shared libraries for this case I guess.
You have the symbols in smiles.swf. go to the library and for each symbol
define the linkage and set it to Export for runtime sharing.

Then open the main movie and do ImportOpen External Library and drag the
icon on stage and delete it
Now you can use those symbols in main movie.

Hope this helps

Deepanjan Das

On Jan 29, 2008 10:03 PM, Donald Trump [EMAIL PROTECTED] wrote:

 Hey!

 Suppose I load an SWF that contains symbols inside the main movie. Let it
 be smiles for
 chat application - smiles.swf.
 Then I want to instantiate some of these symbols putting them on the main
 movie _root.
 That is essential, I want to add the instances to the main movie _root or
 _root's
 descendants.
 Is it possible with Flash 8?

 I have made some experiments and have come to conlusion that Flash allows
 to create
 symbol instances only inside the movie that the symbol is coming from.
 Am I right?

 Well, I know one workaround - to paint a symbol to a bitmap and add this
 bitmap to the
 main movie. However in my application I deal with interactive symbols not
 the smile
 bitmaps, so this approach doesn't work for me.


 ___
 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] Zoom size restriction in flash

2008-01-28 Thread Deepanjan Das
Hi everyone,
Can anyone tell me the image zoom max limit in flash, after which there is a
memory overflow and the image cannot be seen.

Thank you

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