Re: [Flashcoders] Stage video

2011-06-16 Thread Gregory Boland
you can take Flash CS5 and point it to the latest Flex SDK build.  And then
you should be able to compile against that version of Flash.

If you open Flash and then open the the Flash Program preferences --
Actionscript 3.0 settings -- Flex SDK path will be an option

I would start here to find the latest Flex SDK

http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK

good luck

greg

On Thu, Jun 16, 2011 at 10:17 AM, Glen Pike g...@engineeredarts.co.ukwrote:

 You will need the Flex SDK for that file.


 On 16/06/2011 15:07, John R. Sweeney Jr wrote:

 I have the 10.3 plugin and Flash CS5. I haven't installed CS5.5 yet, but a
 friend has it and he doesn't have the playerglobals.swc file either.

 Any other way to get access to StageVideo?

 Thanks in advance,
 John



 on 6/16/11 6:35 AM, Henrik Andersson at he...@henke37.cjb.net wrote:

  It is in playerglobals.swc, it is not a separate as file.

 You need an updated version of flash in order to use StageVideo.


 John R. Sweeney Jr.
 Interactive Multimedia Developer


 OnDemand Interactive Inc
 945 Washington Blvd.
 Hoffman Estates, IL 60169
 Office/Fax: 847.310.5959
 Cellular: 847.651.4469
 www.ondemandinteractive.com


 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] is there a dsp lib with analysis using zero crossing in as3

2011-05-12 Thread Gregory Boland
there's probably something like that in Andre Michelle's tonfall library

http://code.google.com/p/tonfall/

there are some classes in there that make it easier to process audio
signals, but I don't know if there is something doing exactly what you want.
 If you only want something to evaluate when the signal is above or below 0
then you can probably do that easy enough yourself from the values coming
out of a bytearray.

there is nothing in there that performs an FFT on the signal though, its all
strictly from a time-domain aspect.



On Thu, May 12, 2011 at 8:52 AM, Glen Pike g...@engineeredarts.co.ukwrote:

 Hi,

Andre Michelle did some nice talks about simple audio stuff - his
 sources may have some useful helpers

http://blog.andre-michelle.com/2008/fotb08-sildes-and-sources/

Also checkout his lab page: http://lab.andre-michelle.com/  There is an
 EQ filter on there, which might be useful.

HTH

Glen




 On 11/05/2011 21:12, Anthony Pace wrote:

 Hello list,

 I have been doing some experiments, but although my stuff is working, it
 isn't optimized at all, and I would to try a reliable lib that uses zero
 crossings for analysis, if one exists.

 Any suggestions?

 I am really just interested in pitch analysis with very small sample
 chunks.  Timber is not really necessary, so I, with my limited DSP
 knowledge, think the FFT is overkill; however, I absolutely admit I could be
 wrong and not seeing something important.

 Another thing is that I was thinking a good/cheap way to get rid of some
 low level background noise would be to normalize all values within the time
 domain with a very high gain factor, and just give max and min values for
 the zero crossings( e.g +3, -3 respectively... I know the numbers would
 obviously not be these ones).   I know know frequency analysis would have to
 be preformed in order to remove a voice, but I am thinking that this could
 allow me to zero out/ignore, really low level/really high level background
 noise.  Should I try something different?

 Again, I have just started reading through a copy of 'DSP: a computer
 science perspective', that someone gave me, and it seems like what I am
 talking about would work; yet, if not, and you have experience with signals
 analysis, I would appreciate the heads up.

 Thank you,
 Anthony
 ___
 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] What is up with adobes documentation?

2011-04-21 Thread Gregory Boland
went to google put this into the search field

FLVPlayback adobe livedocs

First link at the top:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html

perhaps your not putting in the correct words into google?

On Thu, Apr 21, 2011 at 2:30 PM, Bob Wohl bob.w...@gmail.com wrote:

 What does documentation that you, as the developer, use have to do with
 HTML5?

 It's a search issue that has absolutely nothing to do with Adobe's PR.


 On Thu, Apr 21, 2011 at 10:54 AM, allandt bik-elliott (thefieldcomic.com)
 
 alla...@gmail.com wrote:

  Hey folks
 
  Every time I do a big search I seem to get a LOT of as2 links and when I
  add
  as3 into the search terms I keep getting links to either a page offering
 up
  a bunch of generic documentation pages (ie not direct links to the class
  I'm
  looking for) or I get class documentation pages that are only half full.
  Seriously do a search on the livedocs site for the  flvplayback class,
 its
  shocking especially in light of the fact that there is no longer any
 local
  docs installed with the software any more
 
  What is going on with this? With people (rightly or wrongly) bashing
 flash
  in favour of the yet untried html5 spec, adobe can ill afford this kind
 of
  crap support for the flash platform.
 
  Come on
  A
  ___
  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] CS5 - Android debugging

2011-01-12 Thread Gregory Boland
ADB is the android debugging device that you need to install separately from
the CS5 android extension.  I would check out the android development help
pages.  The instructions are pretty good

http://developer.android.com/sdk/index.html

greg

On Wed, Jan 12, 2011 at 7:16 AM, Glen Pike g...@engineeredarts.co.ukwrote:

 Hi Guys,

I installed the CS5 Android extension and I am trying to setup CS5 for
 debugging on the device, but on my Win machine, there is no Path to Adb
 field in the AIR Android Settings-Deployment dialog.

Is this something I only get with a Mac? :0

Glen
 ___
 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 a PDF?) Getting bitmap data successfully

2010-12-02 Thread Gregory Boland
best way to do it is to convert the PDF to a SWF and then work with it as a
SWF.

Something like this will do it

http://www.swftools.org/

You can load the swf and each page of the pdf will be a frame of the swf



On Thu, Dec 2, 2010 at 11:59 AM, lists...@fo.com wrote:

 I need to pull in a PDF and be able to show thumbnails of the larger
 graphics to the user.
 They check off a couple and those are then saved as PNG or JPG files.

 I am ok on saving graphics as PNG/JPG (given a bitmap) and doing the UI
 piece, but can’t seem to find anything on how to manipulate the PDF to pull
 the bitmaps.

 Is there anything available short of Acrobat-SDK, and that is AS3-based?


 There are a few utilities to do this*, but nothing code-based to glean
 from.

 *Existing tools:
  a-pdf.com
  verypdf.com
  sobolsoft.com
  somepdf.com
  dawningsoft.com

 I have contacted them; but they only offer command-line, no-source,
 alternatives.

 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] locating point on object

2010-09-14 Thread Gregory Boland
I believe this will help you

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html



On Tue, Sep 14, 2010 at 11:19 AM, Lehr, Theodore
ted_l...@federal.dell.comwrote:

 Is there a way to tell where you click on an object - for example if you
 have a square that is 100x100 and you clicked in the middle you could get
 x:50, y:50
 ___
 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] double barrelled TweenMax instances

2010-04-05 Thread Gregory Boland
if you make a new instance of TweenMax you have to calls its .play method to
trigger it

On Mon, Apr 5, 2010 at 1:40 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi list...

 I'm trying to call a function twice in a row, and have some TweenMax
 instances fire up.  They aren't firing. I thought it would have to do with
 the way I'm instancing the TweenMax objects, instead of calling the static
 to method, but that doesn't seem to be it.  I still suspect that instances
 are somehow cancelling each other out.  Example 2 works, and they're
 instance with the static to method.  But, the issue is, I'd like to reduce
 the amount of code I have down to one private function.

 Any advice is appreciated,
 - Michael M.

 // not working, TweenMax doesn't get fired at all...
 ///

 enable(buttonBack, .2, .9, 2, false);
 enable(buttonNext, 1, 1, 0, true);

 private function enable(t:Sprite, a:Number, s:Number, b:Number,
 e:Boolean):void{
var tween1 = new TweenMax(t.getChildAt(0), .5, {alpha:a, scaleX:s,
 scaleY:s, blurFilter:{blurX:b,blurY:b,quality:2}, ease:Sine.easeOut});
var tween2 = new TweenMax(t.getChildAt(1), .5, {alpha:a, scaleX:s,
 scaleY:s, blurFilter:{blurX:b,blurY:b,quality:2}, ease:Sine.easeOut});
t.buttonMode = e;
var addOrRemove:String =
 (e==true)?addEventListener:removeEventListener;
t[addOrRemove](MouseEvent.CLICK, dispatchProceedEvent);
var v:Boolean =
 (t==buttonBackEnabled)?buttonBackEnabled:buttonNextEnabled;
v = e;
 }

 // this works all instances of TweenMax fire properly...
 ///

 TweenMax.to(buttonBack.getChildAt(0), .5, {alpha:.2, scaleX:.9, scaleY:.9,
 blurFilter:{blurX:2,blurY:2,quality:2}, ease:Sine.easeOut});
 TweenMax.to(buttonBack.getChildAt(1), .5, {alpha:.2, scaleX:.9, scaleY:.9,
 blurFilter:{blurX:2,blurY:2,quality:2}, ease:Sine.easeOut});
 buttonBack.buttonMode = false;
 buttonBack.removeEventListener(MouseEvent.CLICK, dispatchProceedEvent);
 buttonBackEnabled = false;
 TweenMax.to(buttonNext.getChildAt(0), .5, {alpha:1, scaleX:1, scaleY:1,
 blurFilter:{blurX:0,blurY:0,quality:2}, ease:Sine.easeOut});
 TweenMax.to(buttonNext.getChildAt(1), .5, {alpha:1, scaleX:1, scaleY:1,
 blurFilter:{blurX:0,blurY:0,quality:2}, ease:Sine.easeOut});
 buttonNext.buttonMode = true;
 buttonNext.addEventListener(MouseEvent.CLICK, dispatchProceedEvent);
 buttonNextEnabled = true;

 ___
 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] Prevent children from listening to parent mouse events

2010-03-28 Thread Gregory Boland
there are several ways to combat this but i think what you want to use is
ROLL_OVER and ROLL_OUT on the parent instead of the MOUSE_OVER and
MOUSE_OUT.  rollover and rollout are different as rollover ignores the
children, check out this post

http://www.kirupa.com/forum/showthread.php?p=1948052

http://www.kirupa.com/forum/showthread.php?p=1948052other than that you
can try mouseChildren = false on the parent sprite if you don't care about
the stuff inside having mouseevent properties

greg

On Sun, Mar 28, 2010 at 8:45 PM, confustic...@gmail.com 
confustic...@gmail.com wrote:

 Hey list,

 I'm surprised I didn't notice this behaviour sooner, and I wonder how to
 get
 around it.

 Suppose you have a parent sprite and a child sprite. The child is small
 enough to fit within the parent. The parent has a mouseOut event listener.
 It seems that the child sprite's mouseOuts are also listened for, although
 the mouse is still within the parent.

 Is it possible to listen ONLY for the parent's mouse events, not the
 child's?

 Example code:

 var parentSprite:Sprite = new Sprite();
 addChild(parentSprite);
 parentSprite.graphics.beginFill(0xFF);
 parentSprite.graphics.drawRect(0, 0, 100, 100);
 parentSprite.name = parental

 var childSprite:Sprite = new Sprite();
 parentSprite.addChild(childSprite);
 childSprite.graphics.beginFill(0xFF);
 childSprite.graphics.drawRect(0, 0, 20, 20);
 childSprite.x = childSprite.y = 30;
 childSprite.name = kiddie;

 parentSprite.addEventListener(MouseEvent.MOUSE_OUT, mouseHandler)

 function mouseHandler (e:MouseEvent):void {
trace(e.target.name:  + e.target.name)
trace(e.currentTarget.name:  + e.currentTarget.name)
trace()
 }
 ___
 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] Event.COMPLETE Question

2010-02-22 Thread Gregory Boland
e.target isn't your loader info, its most likely the Loader itself.

the target is where the event bubbles from, and the currentTarget is what
was applied the listener

so what you are looking for is e.target.content and that is whatever you
loaded in

On Mon, Feb 22, 2010 at 4:57 AM, Susan Day suzieprogram...@gmail.comwrote:

 On Mon, Feb 22, 2010 at 8:31 AM, Steven Sacks flash...@stevensacks.net
 wrote:

  Update this line:
 
  var displayObject:DisplayObject = loaderInfo.loader.content;


 Updated:

 function loaded(e:Event):void
 {
 var loaderInfo:LoaderInfo = e.target as LoaderInfo;
 var displayObject:DisplayObject = loaderInfo.loader.content;
 displayObject.width = 257;
 displayObject.height = 257;
 displayObject.x = myX + 31;
 displayObject.y = myY + 31;
 var myBevel:BevelFilter = new BevelFilter();
 myBevel.type = BitmapFilterType.FULL;
 myBevel.distance = 10;
 myBevel.highlightColor = 0xFF;
 myBevel.shadowColor = 0x00;
 myBevel.blurX = 20;
 myBevel.blurY = 20;
 displayObject.filters = [myBevel];
 addChild(displayObject);
 e.target.removeEventListener(Event.COMPLETE, loaded);
 }

 Did the same thing (no correction). Please advise.
 TIA,
 Susan
 ___
 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] Has everyone seen this yet?

2010-02-16 Thread Gregory Boland
guys,

according to Lee Brimelow who was tweeting from the MWC in Barcelona its a
tablet running the Android tablet OS

http://mobile.venturebeat.com/2010/02/15/android-tablet-adobe-nvidia/

looks pretty cool

greg

On Tue, Feb 16, 2010 at 7:45 PM, Jon Bradley shiftedpix...@gmail.comwrote:

 I think the statement was justified... this is Flashcoders. I just wanted
 to state that developing UIs like that isn't limited to Flash, that's all.
 :)

 After doing more research, it's entirely possible that this is running on
 an iPad. We just can't tell from the video if that really is, in fact, the
 case. Whether or not it's an iPad though doesn't mean much in the context of
 the coolness of the application itself.

 I think any technology could be used to develop an application like this -
 from WPF/SL, Flash to more complex environments using Cocoa, openFrameworks
 and .

 That last comment though – whether or not it makes sense – is probably the
 largest unknown. I can see many reasons why choosing Cocoa would be better
 than choosing Flash, in the case of iPhone development. Or, in the case of a
 windows platform target, I can see reasons why WPF/SL or Surface would be
 chosen.

 I think we're all past the question of 'what framework/kit/language can we
 do that in?' If given the time, we can do pretty much anything in any
 language.

 I like to think that these days, it's the hardware that limits us.

 - j




 On Feb 16, 2010, at 9:47 PM, Ktu wrote:

  My mistake for saying such a strong statement. Of course there are other
 frameworks available to do the same thing. Glad its not actually an iPad.

 I think I'm just glad to see Flash being used for more than just flashy
 websites and games. Flash can do a lot more than I see it get credit for
 on
 a day to day basis. (And I know flash is used for more than just websites.
 I've developed quite a few things outside the website realm)

 I would like to see it in my hands to evaluate the usability. In theory it
 could be brilliant but yes, people will have to warm up to it, and it will
 have to be standardized.

 Strictly out of curiosity Jon, would anyone actually choose a different
 framework to develop this type of application? Does it make sense
 considering development life cycle and platform availability?

 Ktu


 ___
 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] and now..CLIENT now hates Flash

2010-02-03 Thread Gregory Boland
with any luck they will succeed in getting flash player 10.1 on all future
cellphones using the ARM chip and will bring the ability to have apps on
many cellphones not called iphone

On Wed, Feb 3, 2010 at 12:58 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

  adobe i hope your going to pack some punches.

 They better, and I'm fairly confident they will react appropriately.  Apple
 doesn't have a monopoly on anything.

 - MM


 ___
 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] Clearing Cache

2010-01-14 Thread Gregory Boland
how dynamic are we talking here?  a little more details please

On Thu, Jan 14, 2010 at 12:20 PM, Lehr, Theodore
ted_l...@federal.dell.comwrote:

 Is there a way to clear the browsers cache via Flash? I have a movie that
 is very dynamic in the data it shows - I want to make sure the users are not
 getting an old view

 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] Clearing Cache

2010-01-14 Thread Gregory Boland
yea i'm with Glen, do what he said

On Thu, Jan 14, 2010 at 12:34 PM, Glen Pike g...@engineeredarts.co.ukwrote:

 Use the cache killer method when loading in dynamic data - if you are
 using a URL to load the data, append a ?tm= + new Date().getTime() to it
 or similar.



 Lehr, Theodore wrote:

 Is there a way to clear the browsers cache via Flash? I have a movie that
 is very dynamic in the data it shows - I want to make sure the users are not
 getting an old view

 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


Re: [Flashcoders] OOP and XML

2009-11-19 Thread Gregory Boland
either way works... its a 6 of one half a dozen of another type situation

so you could say

dispatchEvent(Event.COMPLETE) from your XMLLoader class and put the data
into a public var that your class listening can access.

Or you could make a custom event like this

dispatchEvent(new XMLEvent(XMLEvent.DATA_LOADED, loader.data));

where you send in the data into a custom event u make

hope this makes sense

greg

On Thu, Nov 19, 2009 at 10:38 AM, David Hunter davehunte...@hotmail.comwrote:


 thanks Henrik,
 are you saying that i need to create a custom event class and dispatch an
 event from that class? otherwise how else could i attach the data to a
 dispatched event?
 or do you mean to dispatch an existing event type so when fired the
 DocumentClass will go into the XMLLoaderClass and grab a public var
 containing the data?
 i have never dispatched events before, so i guess i'll have to look into
 it.
 i have posted my two classes on pastebin to look at:
 http://pastebin.com/m4ba8e745
 cheers
  Date: Thu, 19 Nov 2009 13:58:45 +0100
  From: he...@henke37.cjb.net
  To: flashcoders@chattyfig.figleaf.com
  Subject: Re: [Flashcoders] OOP and XML
 
  Dispatch an event when the data is ready and have the main code listen
  for the event.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 _
 Got more than one Hotmail account? Save time by linking them together

 http://clk.atdmt.com/UKM/go/186394591/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] OOP and XML

2009-11-19 Thread Gregory Boland
while your on the subject of bad habits, here's a list of coding conventions
and best practices to use as a reference.

http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions

I still haven't looked at the whole list yet and I'm not sure how relevant
it all is, but its a handy link to check out.

greg

On Thu, Nov 19, 2009 at 11:50 AM, David Hunter davehunte...@hotmail.comwrote:


 thanks greg, and nice to know that either way is ok. don't want to start
 down bad habits already!
 i've got it working now with a custom event and a little extra help from
 this as well:
 http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/
 cheers.


  Date: Thu, 19 Nov 2009 10:53:18 -0500
  Subject: Re: [Flashcoders] OOP and XML
  From: breakfastcof...@gmail.com
  To: flashcoders@chattyfig.figleaf.com
 
  either way works... its a 6 of one half a dozen of another type situation
 
  so you could say
 
  dispatchEvent(Event.COMPLETE) from your XMLLoader class and put the
 data
  into a public var that your class listening can access.
 
  Or you could make a custom event like this
 
  dispatchEvent(new XMLEvent(XMLEvent.DATA_LOADED, loader.data));
 
  where you send in the data into a custom event u make
 
  hope this makes sense
 
  greg
 
  On Thu, Nov 19, 2009 at 10:38 AM, David Hunter davehunte...@hotmail.com
 wrote:
 
  
   thanks Henrik,
   are you saying that i need to create a custom event class and dispatch
 an
   event from that class? otherwise how else could i attach the data to a
   dispatched event?
   or do you mean to dispatch an existing event type so when fired the
   DocumentClass will go into the XMLLoaderClass and grab a public var
   containing the data?
   i have never dispatched events before, so i guess i'll have to look
 into
   it.
   i have posted my two classes on pastebin to look at:
   http://pastebin.com/m4ba8e745
   cheers
Date: Thu, 19 Nov 2009 13:58:45 +0100
From: he...@henke37.cjb.net
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] OOP and XML
   
Dispatch an event when the data is ready and have the main code
 listen
for the event.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
   _
   Got more than one Hotmail account? Save time by linking them together
  
  
 http://clk.atdmt.com/UKM/go/186394591/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

 _
 Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy

 http://clk.atdmt.com/UKM/go/186394592/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] Testing before removing a child

2009-11-18 Thread Gregory Boland
try .numChildren property

On Wed, Nov 18, 2009 at 4:48 PM, Alan Neilsen aneil...@gotafe.vic.edu.auwrote:

 I am using loader_clip.removeChild(ldr); to remove child objects from my
 loader clip, and I want to test if a child object is there before removing
 it. I thought it would be something like
 if (loader_clip.child !=0) {   // or !=, or !=null, or ==true, or
 something like that
loader_clip.removeChild(ldr);
 }

 But when I trace (loader_clip.child) it comes back undefined whether the
 child is still there or not.

 What can I use to test this so loader_clip.removeChild(ldr); doesn't
 produce an error if the child has already been removed?
 Alan Neilsen


 This message is for the named person’s use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or; lost by any mistransmission. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and notify
 the sender. You must not directly or indirectly, use, disclose,
 distribute, print or copy any part of this message if you are not the
 intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
 any of its subsidiaries each reserve the right to monitor all e-mail
 communications through its networks. Any views expressed in this
 message are those of the individual sender, except where the
 message states otherwise and the sender is authorised to state them
 to be the views of any such entity.


 #
 This e-mail message has been scanned for Viruses and Content and cleared
 by MailMarshal

 #
 ___
 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] [MEMORY LEAK]

2009-10-01 Thread Gregory Boland
TS,

what is the content that you are loading from this external swf every 30,000
milliseconds?  It is feasible that what you are loading is causing the
memory of the Flash player to increase?

I never saw where you ready the swf itself for garbage collection.  I see
that you are setting the loader to null but you still have the content on
the stage.  Although it looks like you are trying to remove something from
the display list at position 0.

Are you sure that you are removing what you are intending to remove?  Maybe
a more thorough emptying of the display list is in order such as a for loop
through the list, removing whatever might be on it.

And keep in mind that the garbage collection doesn't necc happen as soon as
you make something = null.  It happens on a garbage cycle when Flash feels
like it, not when u want it to.


In Flash Player 9, the garbage collector's operations are deferred. This is
a very important thing to understand. Your objects will not be removed
immediately when all active references are deleted. Rather, they will be
removed at some indeterminate time in the future (from a developer
standpoint). The garbage collector uses a set of heuristics that look at the
RAM allocation and the size of the memory stack, among other things, to
determine when to run.
 -

http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html

greg


On Thu, Oct 1, 2009 at 5:00 PM, TS sunnrun...@gmail.com wrote:

 Yes I understand garbage collection(GC) and how it's SUPPOSE to work :)
 However, there still remains the fact that my browser is at say 146,000K
 private working set memory. Let my swf file sit there for a half hour or
 more and now the working set is up to 300,000K. Refresh the page that the
 swf is on and memory drops back to 146,000K. Now, turn off the mechanism
 that kills the content swf and re-adds it to the main swf and viola, the
 memory stays consistent at 146,000K.

 So, is this code not removing the content.swf appropriately on my Timer?
 Shouldn't GC be working appropriately and FF not adding additional memory?

 function timerHandler(event:TimerEvent):void {
trace(this.removeChildAt(0)); // remove from display list
 mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
 onCompleteHandler); // clear from memory

 mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,
 onProgressHandler); // clear from memory
mLoader.unloadAndStop();// clear from memory
mLoader = null; // clear from memory
 mLoader =  new Loader(); // clear from memory
startLoad();
trace(timerHandler:  + event);
 }

 Thanks, T

 PS I've been in IT since I was a kid and yes they still do mark the sectors
 with a special character. The only secure erase from a drive is to do full
 format and go a step further by writing back on the drive with garbage data
 many times over until your paranoid self can feel good about it. However,
 ultimately physically destroying the drive is the best way =)



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
 Thompson
 Sent: Thursday, October 01, 2009 2:06 PM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] [MEMORY LEAK]

 Juan Pablo Califano wrote:

  The mere fact that the
  memory footprint grows doesn't mean there's a leak.

 Juan Pablo is correct, and it's important to understand why. (If you
 already
 understand garbage collection, you need read no further, unless you want to
 check the accuracy of my description :-)

 As you create objects, or even variables, the Flash player allocates
 memory--this is common to most runtime engines/virtual machines, including
 Shockwave, C#, Java, Visual Basic (I think), and all the way back to UCSD
 Pascal.

 When you delete an object, or a variable goes out of scope, that memory is
 no longer needed, and the Flash player notes that it is available for
 re-use. It does not, however, immediately re-use the memory--in fact, it
 probably doesn't even zero it out right away. The data are still there, but
 the memory is marked as available.

 These memory blocks are often not contiguous--your memory looks something
 like a fragmented hard disk. You have a few bytes here, a couple K bytes
 there. When the Flash player's memory gets too fragmented, it does a
 garbage collection. That is, it moves currently-valid objects and
 variables around to make everything contiguous (un-fragmented) again. It's
 much like defragmenting your hard drive, except it is done in RAM (or
 virtual RAM).

 The browser is probably doing the same thing. If the user has navigated
 away
 from your Flash page, it doesn't necessarily free that memory immediately.
 In fact, it probably won't, so you can still navigate forwards and
 backwards.

 It's sort of like deleting a file on your disk used to be. I think it's
 handled differently now, but in the bad old days, the OS would simply 

Re: [Flashcoders] [MEMORY LEAK]

2009-10-01 Thread Gregory Boland
All I can say is that you aren't releasing all of the references to this
material that you are trying to release from memory.

So after you make this call

addChild(loadEvent.currentTarget.content);

make that = to null as well as any other time that you are referring to this
content you are trying to rid.

I know if you run your program in Flex Builder and choose the profiler, you
can actually purge the garbage manually and see if the object you want to be
deleted gets purged.  If it hasn't then there is still something that is
referencing it.  However, after looking at your code it seems that you are
writing it on the timeline and i'm not sure how you would go about putting
that into Flex Builder.

best of luck

greg

On Thu, Oct 1, 2009 at 3:37 PM, TS sunnrun...@gmail.com wrote:

 Been letting it run for a few hrs now and firefox is now using almost a gig
 of memory.

 Thanks, T

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gregory
 Boland
 Sent: Thursday, October 01, 2009 3:39 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] [MEMORY LEAK]

 TS,

 what is the content that you are loading from this external swf every
 30,000
 milliseconds?  It is feasible that what you are loading is causing the
 memory of the Flash player to increase?

 I never saw where you ready the swf itself for garbage collection.  I see
 that you are setting the loader to null but you still have the content on
 the stage.  Although it looks like you are trying to remove something from
 the display list at position 0.

 Are you sure that you are removing what you are intending to remove?  Maybe
 a more thorough emptying of the display list is in order such as a for loop
 through the list, removing whatever might be on it.

 And keep in mind that the garbage collection doesn't necc happen as soon as
 you make something = null.  It happens on a garbage cycle when Flash feels
 like it, not when u want it to.


 In Flash Player 9, the garbage collector's operations are deferred. This
 is
 a very important thing to understand. Your objects will not be removed
 immediately when all active references are deleted. Rather, they will be
 removed at some indeterminate time in the future (from a developer
 standpoint). The garbage collector uses a set of heuristics that look at
 the
 RAM allocation and the size of the memory stack, among other things, to
 determine when to run.
  -

 http://www.adobe.com/devnet/flashplayer/articles/garbage_collection.html

 greg


 On Thu, Oct 1, 2009 at 5:00 PM, TS sunnrun...@gmail.com wrote:

  Yes I understand garbage collection(GC) and how it's SUPPOSE to work :)
  However, there still remains the fact that my browser is at say 146,000K
  private working set memory. Let my swf file sit there for a half hour or
  more and now the working set is up to 300,000K. Refresh the page that the
  swf is on and memory drops back to 146,000K. Now, turn off the mechanism
  that kills the content swf and re-adds it to the main swf and viola, the
  memory stays consistent at 146,000K.
 
  So, is this code not removing the content.swf appropriately on my Timer?
  Shouldn't GC be working appropriately and FF not adding additional
 memory?
 
  function timerHandler(event:TimerEvent):void {
 trace(this.removeChildAt(0)); // remove from display list
  mLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
  onCompleteHandler); // clear from memory
 
  mLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,
  onProgressHandler); // clear from memory
 mLoader.unloadAndStop();// clear from memory
 mLoader = null; // clear from memory
  mLoader =  new Loader(); // clear from memory
 startLoad();
 trace(timerHandler:  + event);
  }
 
  Thanks, T
 
  PS I've been in IT since I was a kid and yes they still do mark the
 sectors
  with a special character. The only secure erase from a drive is to do
 full
  format and go a step further by writing back on the drive with garbage
 data
  many times over until your paranoid self can feel good about it. However,
  ultimately physically destroying the drive is the best way =)
 
 
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com
  [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
  Thompson
  Sent: Thursday, October 01, 2009 2:06 PM
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] [MEMORY LEAK]
 
  Juan Pablo Califano wrote:
 
   The mere fact that the
   memory footprint grows doesn't mean there's a leak.
 
  Juan Pablo is correct, and it's important to understand why. (If you
  already
  understand garbage collection, you need read no further, unless you want
 to
  check the accuracy of my description :-)
 
  As you create objects, or even variables, the Flash player allocates
  memory--this is common to most runtime engines/virtual machines

Re: [Flashcoders] best way to use external interface

2009-09-28 Thread Gregory Boland
thats essentially it.

Syntax is slightly different

if (ExternalInterface.available){
ExternalInterface.call(openMyWindow);}
}

make sure to import flash.external.ExternalInterface;

and when u tell it what the name of the method in the javascript is leave
off the ()



On Mon, Sep 28, 2009 at 12:18 PM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 Hi I have a function in javascript on the html

 like:

 script type=javascript

 function openMyWindow(){
 document.getElementByID(myWindow).setStyle(etc)
 }

 and I would like to use it from falsh something like this:

 mybutton.addEventlistener(MouseEvent.CLICK, contactJavascript);

 function contactJavascript(e:MouseEvent):void{

 if (externalInterface.available){
 externalInterface.call(openMyWindow());
 }

 let me know if this could work at all.
 I'm trying to find a google about it, but all seems so obscure
 any help appreciated

 ___
 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] best way to use external interface

2009-09-28 Thread Gregory Boland
yup just like that

On Mon, Sep 28, 2009 at 2:17 PM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 Ok, thanks, so it should work this way right?

 Gustavi

 On Sep 28, 2009, at 12:53 PM, Gregory Boland wrote:

  thats essentially it.

 Syntax is slightly different

 if (ExternalInterface.available){
 ExternalInterface.call(openMyWindow);}
 }

 make sure to import flash.external.ExternalInterface;

 and when u tell it what the name of the method in the javascript is leave
 off the ()



 On Mon, Sep 28, 2009 at 12:18 PM, Gustavo Duenas 
 gdue...@leftandrightsolutions.com wrote:

  Hi I have a function in javascript on the html

 like:

 script type=javascript

 function openMyWindow(){
 document.getElementByID(myWindow).setStyle(etc)
 }

 and I would like to use it from falsh something like this:

 mybutton.addEventlistener(MouseEvent.CLICK, contactJavascript);

 function contactJavascript(e:MouseEvent):void{

 if (externalInterface.available){
 externalInterface.call(openMyWindow());
 }

 let me know if this could work at all.
 I'm trying to find a google about it, but all seems so obscure
 any help appreciated

 ___
 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] Invitation to connect on LinkedIn

2009-09-24 Thread Gregory Boland
Pedro,

The flashcoders list is not someone's email from some guy named Marc.  It is
a list of people who all subscribe and can send emails to help get questions
answered or help answer questions.

the list is not a real person so I'm not sure how much luck your gonna have
inviting it to be friends with you.



2009/9/24 Pedro Kostelec pedrok...@gmail.com

 LinkedIn
 

 Pedro Kostelec souhaite se connecter à vous sur LinkedIn :
 --

 Marc,

 I'd like to add you to my professional network on LinkedIn.

 - Pedro

 Accepter l'invitation de Pedro Kostelec

 http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYScz8UcjsUdjgNiiZLq34MpRtJp2YOdPsUczkVdjsLrCBxbOYWrSlI/EML_comm_afe/

 Voir l'invitation de Pedro Kostelec

 http://www.linkedin.com/e/XEzBlT6odM8buZtuxRkFg2aRojmbrRCwd4dkwunRTj8bdkAw2T/blk/I1458718226_2/39vdz8Oe34Te3kQckALqnpPbOYWrSlI/svi/

 --

 Quel est l' intérêt de faire partie du réseau de Pedro Kostelec ?

 Vous avez une question ? Le réseau de Pedro Kostelec a probablement une
 réponse :
 La rubrique Réponses de LinkedIn vous permet de vous informer auprès de
 Pedro Kostelec et de votre réseau. Obtenez l'information que vous recherchez
 auprès de professionnels expérimentés.

 http://www.linkedin.com/e/ash/inv19_ayn/


 --
 (c) 2009, LinkedIn Corporation

 ___
 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] Loading local files with query strings

2009-09-14 Thread Gregory Boland
how about just escaping the ? symbol # 063;


On Mon, Sep 14, 2009 at 11:49 AM, Álvaro Saraiva alv...@glups.pt wrote:

 Hi Ian,
 The reason i'm using query strings it's because the same swf must to
 respond in different manners according the parameters passed.
 I'm catching the paramenters in loaded swf (its in AS2 :() via _root.
 But the same approach in flex works, but with flash IDE dont.

 Is tehre any way to pass the variables to AS2 swf in the call, besides
 localConnection for example?

 Thanxs,
 Álvaro

 Ian Thomas escreveu:

 Don't use query strings?


 Seriously - local file names on files systems don't take query
 strings. You don't have any files called C:\windows\test.exe?id=33, do
 you?

 To make a query string work, you need to route the call through an HTTP
 server.

 Sounds like you're trying to avoid caching? But I'm not clear why
 you'd want to avoid caching a local, non-dynamic file...

 Ian

 On Mon, Sep 14, 2009 at 7:16 PM, Álvaro Saraiva alv...@glups.pt wrote:


 Hi everyone,
 I have a strange problem loading external assets from local files with
 Loader() Class in AS3.
 If i use query string in the file name, the asset don't loads.

 This code doesnt load the swf file inside a class
 this.mySWFLoader = new Loader();
 this.mySWFLoader.contentLoaderInfo.addEventListener(Event.INIT,
 displaySwfContainer );
 this.mySWFLoader.load(new URLRequest(my_swf.swf?id=33));

 if i dont use the '?id=33' it works.

 Any suggestions?
 Thanxs in advance,
 Álvaro




 ___
 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] 1120: Access of undefined property

2009-09-03 Thread Gregory Boland
static function, they have a limited scope, can't see class variables unless
their static

On Thu, Sep 3, 2009 at 3:23 PM, Isaac Alves isaacal...@gmail.com wrote:

 could someone please tell me why in the following script , the flash
 runtime doesn´t recognize the var counter?
 1120: Access of undefined property counter.

 package
 {
  public class StringUtils
  {
public var counter:int = 0;

public static function generateRandomString(newLength:uint = 1,
 userAlphabet:String =
 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789):String
{
trace (counter);

 ___
 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 #2044

2009-08-31 Thread Gregory Boland
one addition to this is if you are loading something using a cross domain
policy you might need to tell your loader to check for a cross domain policy
using LoaderContext class..

it would look like this..

_loader = new Loader();
var context:LoaderContext = new LoaderContext();
 // set the check policy flag in the loader context
 context.checkPolicyFile=true;
_loader.load(new URLRequest(image path goes here), context);


On Mon, Aug 31, 2009 at 12:18 PM, Pedro Kostelec pedrok...@gmail.comwrote:

 Thanks a lot. Unfortunaltely i can't use relative urls. I am going to try
 the cross domain policy thing.

 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] controlling an movie clipo from an external swf

2009-08-25 Thread Gregory Boland
you can't access another swf's timeline till its loaded.  Look at what your
writing, you have to account for the time it will take for the movieclip to
load in

greg

On Tue, Aug 25, 2009 at 4:24 PM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

  Hi coders I have this function and I'm trying to control an instance
 inside an external swf called botonX

 so far this is what I've been doing.

 really need help, I'd appreciate



 this is my code


 function contactUs():void{

 var contactMe:MovieClip = new MovieClip();
 var contactLoader:Loader = new Loader();
 contactLoader.load(new URLRequest(contactUs.swf));
 contactMe.addChild(contactLoader);
 addChild(contactMe);
 var myWindow:MovieClip = contactMe.contactLoader.botonX as MovieClip;
 myWindow.addEventListener(MouseEvent.CLICK, closeClick);

 trace(contact);
 }//contact Us Function



 this is the error message

 TypeError: Error #1010: A term is undefined and has no properties.
at main1_fla::MainTimeline/contactUs()
at main1_fla::MainTimeline/onClick()




 Regards,

 Gustavo
 ___
 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] controlling an movie clipo from an external swf (SOLVED)

2009-08-25 Thread Gregory Boland
there u go, good work

On Tue, Aug 25, 2009 at 5:15 PM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:

 You were right I google my way in and I put an eventlistener (complete) to
 see when it is loaded and now it is working.
  here is the solution for those interested.

 var contactLoader:Loader = new Loader();

 contactLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 onCompleto);
 function onCompleto(e:Event):void{
 var utop:MovieClip = contactLoader.content as MovieClip;
 utop.buttonX.buttonMode=true;
 utop.buttonX.addEventListener(MouseEvent.CLICK, closeMe);
 function closeMe(e:MouseEvent):void{
removeChild(contactLoader);
 }
 trace(completo);
 }
 contactLoader.load(new URLRequest(contactUs.swf));
 addChild(contactLoader);
 trace(contact);
 }//contact Us Function



 Regards,

 Gus
 On Aug 25, 2009, at 4:47 PM, Gregory Boland wrote:

  you can't access another swf's timeline till its loaded.  Look at what
 your
 writing, you have to account for the time it will take for the movieclip
 to
 load in

 greg

 On Tue, Aug 25, 2009 at 4:24 PM, Gustavo Duenas 
 gdue...@leftandrightsolutions.com wrote:

   Hi coders I have this function and I'm trying to control an instance
 inside an external swf called botonX

 so far this is what I've been doing.

 really need help, I'd appreciate



 this is my code


 function contactUs():void{

 var contactMe:MovieClip = new MovieClip();
 var contactLoader:Loader = new Loader();
 contactLoader.load(new URLRequest(contactUs.swf));
 contactMe.addChild(contactLoader);
 addChild(contactMe);
 var myWindow:MovieClip = contactMe.contactLoader.botonX as MovieClip;
 myWindow.addEventListener(MouseEvent.CLICK, closeClick);

 trace(contact);
 }//contact Us Function



 this is the error message

 TypeError: Error #1010: A term is undefined and has no properties.
   at main1_fla::MainTimeline/contactUs()
   at main1_fla::MainTimeline/onClick()




 Regards,

 Gustavo
 ___
 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] Flash security issue

2009-08-21 Thread Gregory Boland
create an .exe file so that when you run it from a CD you can run it
standalone.  Not sure about what your using, if it allows you to do that but
maybe if you create a wrapper swf and load the other swf into your wrapper
swf you can create an .exe file

greg



On Fri, Aug 21, 2009 at 9:52 AM, Bill Jones bjo...@backemarketing.comwrote:

 I am creating a Demo file using EyeWonder's AdWonder. It generates an html
 with accompanying swf and support files. I can copy the html and file
 folder
 to a disk so the client can view the finished piece locally on a stand
 alone
 laptop.

 Unfortunately, to view it from a CD, you have to adjust flash security
 setting through the Flash Player Security Manager (something the client has
 no idea how to do).

 Is there a way to bypass the security settings, or can I add some
 javascript
 (link a js file) to the html mage that will make the change transparent to
 the end user?

 _
 Bill Jones
 Interface Developer
 Backe Digital Brand Marketing
 35 Cricket Terrace Center
 Ardmore, PA 19003
 Voice: 610-896-9260 x280
 Fax: 610-896-9242
 bjo...@backemarketing.com

 If you want to go forward, click Backe.

 ___
 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 security issue

2009-08-21 Thread Gregory Boland
thats why i'm saying create a wrapper file for that swf.  take the swf that
is given to you from ad wonder and import it into a .fla file.  then make an
.exe file out of that.

On Fri, Aug 21, 2009 at 10:13 AM, Bill Jones bjo...@backemarketing.comwrote:

 Unfortunately, AdWonder controls the entire process. It builds the files
 and
 I simply download a stuffit file that contains the html, swf and support
 files.


 On 8/21/09 10:08 AM, Gregory Boland breakfastcof...@gmail.com wrote:

  create an .exe file so that when you run it from a CD you can run it
  standalone.  Not sure about what your using, if it allows you to do that
 but
  maybe if you create a wrapper swf and load the other swf into your
 wrapper
  swf you can create an .exe file
 
  greg
 
 
 
  On Fri, Aug 21, 2009 at 9:52 AM, Bill Jones bjo...@backemarketing.com
 wrote:
 
  I am creating a Demo file using EyeWonder's AdWonder. It generates an
 html
  with accompanying swf and support files. I can copy the html and file
  folder
  to a disk so the client can view the finished piece locally on a stand
  alone
  laptop.
 
  Unfortunately, to view it from a CD, you have to adjust flash security
  setting through the Flash Player Security Manager (something the client
 has
  no idea how to do).
 
  Is there a way to bypass the security settings, or can I add some
  javascript
  (link a js file) to the html mage that will make the change transparent
 to
  the end user?
 
  _
  Bill Jones
  Interface Developer
  Backe Digital Brand Marketing
  35 Cricket Terrace Center
  Ardmore, PA 19003
  Voice: 610-896-9260 x280
  Fax: 610-896-9242
  bjo...@backemarketing.com
 
  If you want to go forward, click Backe.
 
  ___
  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


 _
 Bill Jones
 Interface Developer
 Backe Digital Brand Marketing
 35 Cricket Terrace Center
 Ardmore, PA 19003
 Voice: 610-896-9260 x280
 Fax: 610-896-9242
 bjo...@backemarketing.com

 If you want to go forward, click Backe.

 ___
 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 add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread Gregory Boland
if someone handed me some code and the worst thing that they had done is
wrote expressions long-handed, I would consider myself extremely lucky.

lets get over ourselves...

greg

On Mon, Aug 17, 2009 at 5:44 PM, Dave Watts dwa...@figleaf.com wrote:

  Code bloat is one of the seven deadly sins (gluttony).

 This is why we all name our variables things like x, y, etc instead of
 giving them recognizable names, right?

 And gluttony, really? I'm not going to EAT my code. Luxuria is a
 better fit, even though we actually call it lust nowadays.

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

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 ___
 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] dispatch a custom Event in a simple class file

2009-07-09 Thread Gregory Boland
you call the event on the constructor...

you add the listener to the event after you make a new instance of that
class, so your adding the listener AFTER dispatching the event

On Thu, Jul 9, 2009 at 1:55 PM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 You have testInitialize as both a constant value and the name of an
 event.

 I would follow this format instead:

 =
 Write the custom event:

 package
 {
import flash.events.Event;

public class MyEvent extends Event
{
public static var SOME_EVENT:String = some_event;

public function MyEvent(type:String,
 bubbles:Boolean=false, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);

}

public override function clone():Event
{
return new MyEvent(type, bubbles, cancelable);
}

}

 }

 =
 Dispatch the event:

 package
 {
import flash.events.EventDispatcher;
import MyEvent;

public class MyClass extends EventDispatcher
 {

public function MyClass()
{

}

public function initialize():void
{
dispatchEvent(new MyEvent(MyEvent.SOME_EVENT));
}

}

 }

 =
 Listen for the event:

 var myClass:MyClass = new MyClass();
 myClass.initialize();
 myClass.addEventListener(MyEvent.SOME_EVENT, onSomeEvent);

 =
 Respond to the event:

 private function onSomeEvent(event:MyEvent):void
 {
trace(event happened.)
 }



 Jason Merrill

 Bank of  America   Global Learning
 Shared Services Solutions Development

 Monthly meetings on the Adobe Flash platform for rich media experiences
 - join the Bank of America Flash Platform Community




 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ACE
 Flash
 Sent: Thursday, July 09, 2009 1:44 PM
 To: Flash Coders List
 Subject: [Flashcoders] dispatch a custom Event in a simple class file

 Hi there,

 I was working on my class file, but the event didn't get called
 successfully. Anyting I am missing something?

 Thank you


 

 var mc:MyClass = new MyClass();
 mc.addEventListener ( testInitialize , onINIT );


 function onINIT ( e:Event )
 {
   trace(INIT was called);
 }





   1. package
   2. {
   3.   import flash.events.Event;
   4.   import flash.events.EventDispatcher;
   5.
   6.   [Event(name=testInitialize, type=flash.events.Event)]
   7.   public class MyClass extends EventDispatcher
   8.   {
   9.
   10.  private const TEST_INITIALIZE   :String =
 testInitialize;
   11.
   12.  public function MyClass ()
   13.  {
   14.  initialize();
   15.  }
   16.
   17.  private function initialize():void
   18.  {
   19.  ..
   20.  dispatchEvent ( new Event( TEST_INITIALIZE ) );
   21.  }
   22.  }
   23. }
 ___
 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] flv video width/height

2009-06-30 Thread Gregory Boland
the default size of a new VideoObject is 320 X 240, i imagine that your
constructor is empty upon instantiation.

greg

On Tue, Jun 30, 2009 at 1:04 PM, Davide Di Blasi davide.dibl...@kettydo.com
 wrote:

 Hi Andrew ,
 normally you can check the flv dimension by onMetaData handlers of
 NetStream in As2,
 I think there should by  the same  way in AS3.

 Hope this help,
 Davide.

 Andrew Sinning ha scritto:

  A colleague converted a 640x480 .mov into a .flv and he says he left the
 dimensions the same.  When I stream it into a swf shell using the NetSteam
 and Video object, the video.width and video.height dimensions are 320x240
 and that's how it shows up when I add it to the stage.

 Is there a way to independently verify the dimensions?

 What might we be overlooking?

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



 --


 ..

 *Davide Di Blasi - **flash developer*
 mailto: davide.dibl...@kettydo.com mailto:davide.dibl...@kettydo.com

 ..

 *K E T T Y D O s.r.l.
 *


 **

 Via Mosč Bianchi, 103

 20149 Milano (Italy)

 Tel. 02.87393636 - Fax 02.87394018

 ..

 *KD News*

 Vi ricordate Quando i Mulini erano bianchi?

 Sapete che il mitico Coccio compie 30 anni?

 Avete gią assaggiato i nuovi Girotondi?

 Kettydo firma il restyle del sito

 istituzionale di MULINO BIANCO.


 http://www.mulinobianco.it http://www.mulinobianco.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] Sound.extract

2009-06-25 Thread Gregory Boland
Ben,

Your going to want to perform an FFT (Fast Fourier Transform) and move from
the time domain to the frequency domain.

And to be more specific I believe you are gonna want to perform a Discrete
Fourier Transform.

I know a lot of work has been done on this in C and perhaps you could find
something and port it over to Actionscript.

There could be a problem computing all of that in real time though.

best of luck

greg

On Wed, Jun 24, 2009 at 9:19 PM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 Hi

 1) From the docs:


 http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Sound.html#extract()http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Sound.html#extract%28%29
  The audio data is always exposed as 44100 Hz Stereo. The sample type is a
 32-bit floating-point value, which can be converted to a Number using
 ByteArray.readFloat().
 So, each sample is 32 bits, that is 4 bytes. If you read less than four
 bytes, you're discarding part of the data; if you read more, you're mixing
 samples. This could also happen if your reads are not 4 bytes aligned.

 2) Not sure if I misunderstood what you meant, but the number of samples
 extracted is calculated here:

 var extract:Number = Math.floor ((sound.length/1000)*44100);

 And is not a power of 2. It seems like the total samples, rounded down.
 (seconds of audio data * samples per second).

 3) I'm by no means an audio programming expert, but I think that should be
 possible. Don't how performant it would be doing it in AS, in real time,
 though. Neither I know algorithms for it, but look up audio frequency
 analisys, you might find some pointers. By the way, I don't your imaging is
 wrong. Digital audio data is a finite/discrete representation of a sound
 wave.


 Cheers
 Juan Pablo Califano


 2009/6/24 ben gomez farrell b...@yellow5labs.com

  Hey guys,
  I'm just digging into the Sound.extract feature in FP10.  I've been using
  code found at http://www.bytearray.org/?p=329 to learn from, but have a
  few questions.  I'm able to create a waveform and draw to the stage, but
  want to take it beyond that.
 
  Basically the code I have is this:
 
var samples:ByteArray = new ByteArray();
var extract:Number = Math.floor
 ((_sound.length/1000)*44100);
  _sound.extract(samples, extract);
  var step:int = samples.length/4096;
do step-- while ( step % 4 );
 
samples.position = 0;
  for (var c:int = 0; c  4096; c++) {
left = samples.readFloat();
right = samples.readFloat();
samples.position = c*step;
}
 
  My questions are:
 
1.  I understand incrementing the byteArray read position by a step
  amount.  What I don't understand is why the step amount needs to be a
  multiple of four?  I get some very wacky results from my readFloat() if I
  don't do this.
 
2.  Anybody know why the number of samples we're taking is a power of
  two?  Is this important, maybe just for graphic performance?
 
3.  Here's the big one - is it possible to isolate amplitude at certain
  frequencies - to get something like you'd get from computeSpectrum?  I
 guess
  I'm overly confused by the data I'm getting back from the byte array and
 how
  to dig deep with it.  The way I imagine this byteArray in my head is that
  each position in the byteArray, one by one, would be a composite
 amplitude
  of all frequencies at a small point in time.  I think I must be imagining
  this data wrong - and you'll probably cringe at my composite amplitude
  remark cause it'll probably make no sense.
 
  Thanks - and again, I really think I have some huge knowledge gap in how
  sound data is used and read.  Can anyone help?
  ben
  ___
  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] understand getChildByName

2009-06-17 Thread Gregory Boland
you might be experiencing a related issue regarding accessing properties of
an AS2 swf inside an AS3 swf.  I know that you have limited interaction with
an as2 movie loaded into as3.  Try loading an AS3 swf into there and see if
you have the same issue

greg

On Wed, Jun 17, 2009 at 6:13 AM, Kurt Dommermuth k...@kurtdommermuth.comwrote:

 Hi Cor,

 Thank you for reading this Cor.  It is a package and it looks like below.
 It is one of my first attempts so if you see any other room for improvement
 it would be welcome.

 

 The call to the loader looks like this:

 var mc:MovieClip = new MovieClip();
 var m = main.addChild(mc);
 mc.name = btn_nav
 var callback:Object = new Object();
 callback.fn = initGameNav;
 callback.mc = m;
 var l:Assetloader = new Assetloader(mc, game_buttons_as3.swf, callback);

 

 package com.dom.Loaders
 {
import flash.display.Stage;
import flash.display.MovieClip;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.events.*;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.text.TextField;
import com.dom.Utilities.FeedbackMessage;
import flash.utils.getDefinitionByName;

public class Assetloader extends MovieClip
{
private var _path:MovieClip;
private var _url:String;
private var _callback:Object;
private var _p:preloaderMC;
private var _loader:Loader;
private var _error:FeedbackMessage;

public function Assetloader(path:MovieClip, url:String,
 callback:Object=null):void
{
_path = path;
_url = url;
_callback = callback;
initLoader();
}

private function initLoader():void
{
var request:URLRequest = new URLRequest(_url);
_loader = new Loader();

 _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
 handleError);

 _loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
 loadProgress);

 _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
_loader.load(request); //initiate loading of
 main.swf
trace(_callback.mc =  + _callback.mc)
_path.addChild(_loader);
trace(_callback.mc2 =  + _callback.mc)
}

// Update the percentage display
private function loadProgress(event:ProgressEvent):void
{
var percentLoaded:Number = event.bytesLoaded /
 event.bytesTotal;
percentLoaded = Math.round(percentLoaded * 100);

}

//remove the loader and free up resources
private function cleanUp():void
{
_loader.removeEventListener(IOErrorEvent.IO_ERROR,
 handleError);
_loader.removeEventListener(ProgressEvent.PROGRESS,
 loadProgress);
_loader.removeEventListener(Event.COMPLETE,
 loadComplete);
if(_p!=null)
{
_p.parent.removeChild(_p);
}
_p = null;
}


// Load complete, hide the animating graphic and text
private function loadComplete(event:Event):void
{
_callback.load_info = new Object()
_callback.load_info = event.target;
_callback.mc = event.target.content;
_callback.fn(_callback);
cleanUp();
}

private function handleError(e:IOErrorEvent):void
{
trace(Error loading File);
var msg:String = The file ' + _url + ' could not
 be loaded.
_error = new FeedbackMessage(msg,_callback.path);
cleanUp()
}
}
 }

 _

 The Return or on complete function essentially looks like this:


 function initGameNav(o:Object):void
 {
 var game_button_ar:Array = o.mc.games;
 var game_ar_len:Number = game_button_ar.length;

 for(var i:Number=1;i=game_ar_len;i++)
 {
var newY:Number;
var asset_name:String = game_button_ar[(i-1)][0];
var asset_game_to_load:String = game_button_ar[(i-1)][1];
var asset_class =
 o.load_info.applicationDomain.getDefinition(asset_name) as Class;
var asset_mc:MovieClip = new asset_class() as MovieClip;
o.mc.addChild(asset_mc);
//trace(game to load =  + 

Re: [Flashcoders] SWF address

2009-06-10 Thread Gregory Boland
http://www.gotoandlearn.com/play?id=107

On Wed, Jun 10, 2009 at 2:11 PM, Gustavo Duenas 
gdue...@leftandrightsolutions.com wrote:


 Does anyone know how could I use the swf adreess? I have it downloaded but
 it seems that there is no
 a how to guide in the Asual Site, would anyone point me to a tutorial?

 Regards,

 Gustavo


 ___
 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] JSON Experiences

2009-05-20 Thread Gregory Boland
Dear list,

I am looking into using JSON to bring data into Flash as opposed to XML and
I wondering what other people's experiences have been with it.  People tell
me that its much easier to use than xml and easier to implement.

Does anyone know of a good place to see some AS3 code that uses JSON so i
can see how it works?

thanks

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


Re: [Flashcoders] Creating for loops for event listeners

2009-05-01 Thread Gregory Boland
Store your buttons in an array

then for loop through the array

If you have instances of them on stage already and are not creating them
dynamically then its a little more work but u could still pass a reference
of each button into the array

greg

On Fri, May 1, 2009 at 12:10 PM, zu...@zadesigns.com wrote:



 Is there a better way to write Event Listeners for a large number of
 buttons that increment the names by 1? example:
 solution_button1.addEventListener(MouseEvent.MOUSE_DOWN, s_btn1_down);
 solution_button2.addEventListener(MouseEvent.MOUSE_DOWN, s_btn2_down);
 solution_button3.addEventListener(MouseEvent.MOUSE_DOWN, s_btn3_down);
 solution_button4.addEventListener(MouseEvent.MOUSE_DOWN, s_btn4_down);
 solution_button5.addEventListener(MouseEvent.MOUSE_DOWN, s_btn5_down);
 solution_button6.addEventListener(MouseEvent.MOUSE_DOWN, s_btn6_down);
 solution_button7.addEventListener(MouseEvent.MOUSE_DOWN, s_btn7_down);
 solution_button8.addEventListener(MouseEvent.MOUSE_DOWN, s_btn8_down);
 solution_button9.addEventListener(MouseEvent.MOUSE_DOWN, s_btn9_down);

  can the above be accomplished with a for loop? what about more than one
 event over, out, down, click. can those also be automated or would I need 4
 loops for that.
 ___
 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] E4X question

2009-04-30 Thread Gregory Boland
Mike,

take the XMLList that you have and run a for each loop on it looking for a
match at the name attribute

for each (var element:XML in FloorPlanData.floor){
   if(eleme...@name == thisLabel){
   return element

   }

}

or something along those lines

Hope this is what you were asking

greg


On Thu, Apr 30, 2009 at 3:23 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Thanks for replying, Cor.  Yes, when the xml is loaded, the Event.COMPLETE
 function gets fired.  That part isn't the problem because I'm already doing
 other things with the XML.  It's just this bit that I can't get an XMLList
 for.

 What really happens is Sprites within a ScrollPane component get a
 MouseEvent.MOUSE_UP event, and these sprites contain a TextField that has a
 string.
 Here's the real function below.  The string gets passed no problem.  I just
 can't get an XMLList built.

 Thanks!
 - Michael M.

 private function onClick(m:MouseEvent):void{
// no problem here
var thisLabel:String = TextField(m.target[getChildAt](1)).text;
// should I build an XMLList containing everything first?
// no problem here either
trace(FloorplanData..floor);
// traces nothing
trace(FloorplanData..*.((hasOwnProperty(name)) 
 (attribute(name)==thisLabel)));
 }

 ___
 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] AS3 Loader() stupidity

2009-04-20 Thread Gregory Boland
Paul,

try to localize your error.  Pull this code out and put it in a separate swf
and see if that is still happening.  I'm assuming that your assetLoader is a
class variable.

Doesn't look like anything from here is an issue.  You don't have a custom
Loader class that is interfering with the Loader keyword do you?

On Mon, Apr 20, 2009 at 9:58 AM, Paul Andrews p...@ipauland.com wrote:

 I have:

 assetLoader =new Loader();
 var urlreq:URLRequest = new URLRequest(assets[i].assetPath);
 assetLoader.load(urlreq);


 I get:

 TypeError: Error #1006: load is not a function.

 at runtime.

 I've seen some stuff about this to do with nested swfs, but can't quite
 figure out the circumstances that may cause this error.

 Any ideas?

 Paul
 ___
 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] Add Child Failing in wrapped .NET code in IE7 only

2009-04-15 Thread Gregory Boland
Dear List,

 I have a strange one here...

I am loading in external swfs and Bitmaps, and I am using them as a logo on
a button.  I put them inside a MovieClip from the library and linked to a
class that gives it button functionality.  Everything works fine before I
integrate it into another developer's .NET code.  As soon as I do, it works
everywhere else but IE7 on Windows.

I put debug text into the swf itself so i could see how the swf is reacting
in IE7.  I can tell you that the logos load and sort of appear.  They are
put behind other images on stage that load fine and there is no button swf
that they are supposed to be wrapped in.

Again this is only in IE7 AND only when placed in .NET code.

Here is an example of it working on my site..

http://www.gregoryboland.com/dev/topbutton/todaysale/index_3up.html

And here is the same code working in .NET environment

http://www.thetopsecret.com/TS/Protected/Sale/SaleHome.aspx?Type=FlashCorp=NEWDESIGN

urnme:gu...@topbutton.com urnme%3agu...@topbutton.com
pwd:guest

Has anyone ever experienced such a specific problem?  Does anyone think that
there is something wrong with the .NET code?

thanks for your help

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


Re: [Flashcoders] display trace() in text field

2008-12-04 Thread Gregory Boland

I'm not quite sure what your asking.

The trace output is nothing more than strings of text.  Its completely
possible to make a class that does the same thing for you but displays it in
the Flash.



On 12/4/08 9:44 AM, Michael Stocke [EMAIL PROTECTED] wrote:

 Good morning everyone.
 
  
 
 Is it possible to display trace actions in a text field?

 
Gregory Boland | IconNicholson
Flash Engineer, Technology
[EMAIL PROTECTED]
tel +1 212.981.0563
mobile +1 201.600.6269
295 Lafayette Street, New York, NY 10012
 
www.iconnicholson.com
--
This communication may contain information that is confidential or exempt
from disclosure.  If you are not the intended recipient, please note that
any dissemination, distribution, or copying of this communication is
strictly prohibited. Anyone who receives this message in error should notify
the sender immediately by telephone or by return email and delete it from
his or her computer.


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


Re: [Flashcoders] text line overflow

2008-11-17 Thread Gregory Boland
Just find out how many characters fit into your allocated textfield space
then count the characters coming in


You could put the string of text that you want in the textfield into an
array that is broken by each word like this..

//str being the string that u want to work with
  _str_arr = str.split( );


Then character count each word till you reach the maximum your textfield
holds  
//keeps track of how many characters
var char_cnt:int = 0;

//limit is how many characters your textfield can hold
var limit:int = 50;

//new string array
newString_arr = new Array();

for(var z:int = 0; z  _str_arr.length; z++){
//want to keep count of each word and break when the char_cnt
//hits the limit
char_cnt += _str_arr[z].length;
//if the character count is equal or greater than the limit *
the num of lines, store that info
//and  break out of the for loop
if(char_cnt = limit){
newString_arr = _str_arr[z]);
break;
}
} 

Now u have a new array of words that fit into your textfield.  Concat them
together into a new string and put it into the textfeld.

In your new array if the last word in the element doesn't include a period
then you need to add the ...

Hope this helps

greg   

On 11/17/08 4:26 AM, Latcho [EMAIL PROTECTED] wrote:

 How to break a line of text on the optimal charachter and adding ...
 if it doesn't fit a single lined textfield
 | I would like to break | this line of text.
 | I would like to br... |
 
 Any suggestions (AS3)
 
 Latcho
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 
Gregory Boland | IconNicholson
Flash Engineer, Technology
[EMAIL PROTECTED]
tel +1 212.981.0563
mobile +1 201.600.6269
295 Lafayette Street, New York, NY 10012
 
www.iconnicholson.com
--
This communication may contain information that is confidential or exempt
from disclosure.  If you are not the intended recipient, please note that
any dissemination, distribution, or copying of this communication is
strictly prohibited. Anyone who receives this message in error should notify
the sender immediately by telephone or by return email and delete it from
his or her computer.


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


Re: [Flashcoders] XML optimization

2008-10-30 Thread Gregory Boland
Are you allowed to put html tags in an attribute? Like a br tag?  I would
think that  in the attribute would screw it up.

Why not just taking some of those longer string attributes and make them
nodes and wrap them in CDATA?

Just a thought

greg


On 10/30/08 11:42 AM, Matt S. [EMAIL PROTECTED] wrote:

 No, its definitely in the loading, i've got it tracing out in the
 flash and all the delay is happening during the initial load of the
 XML, not during the parsing. But the actual live load is from php, eg
 ../tommunro_v2_xml.php so it may be when the php is parsing the XML
 and generating it.
 
 .m
 
 On Thu, Oct 30, 2008 at 11:28 AM, Hans Wichman
 [EMAIL PROTECTED] wrote:
 Hi,
 
 its only 60kb?
 That shouldn't take too long.
 
 Can you see what is taking up the time? Might be parsing instead of loading.
 
 regards,
 JC
 
 On Thu, Oct 30, 2008 at 4:00 PM, Matt S. [EMAIL PROTECTED] wrote:
 So I know this is kind of a mammoth XML file to load all at once, but
 it doesnt seem THAT big, but its taking longer than expected. Can
 anyone look at this XML and suggest any ways to optimize it, that dont
 involve breaking it up into multiple files?
 
 http://knowawall.com/dev/tommunro/tommunro_xml2.xml
 ___
 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

 
Gregory Boland | IconNicholson
Flash Engineer, Technology
[EMAIL PROTECTED]
tel +1 212.981.0563
mobile +1 201.600.6269
295 Lafayette Street, New York, NY 10012
 
www.iconnicholson.com
--
This communication may contain information that is confidential or exempt
from disclosure.  If you are not the intended recipient, please note that
any dissemination, distribution, or copying of this communication is
strictly prohibited. Anyone who receives this message in error should notify
the sender immediately by telephone or by return email and delete it from
his or her computer.


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


Re: [Flashcoders] FW: External flv security issue...

2008-09-23 Thread Gregory Boland
I don't know if you have checked into this or not, but I have had a similar
issue in as2 where I couldn't load anything off of an external server.  I
had the cross-domain in place and as it turns out it was re-directing to
another site when Flash tried to hit the cross-domain file.

Good luck

greg


On 9/23/08 4:47 AM, Sander Schuurman [EMAIL PROTECTED]
wrote:

 Does anyone have some knowledge to share? Concerning this issue?
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Sander
 Schuurman
 Sent: Thursday, 18 September 2008 11:04
 To: Flash Coders List
 Subject: [Flashcoders] External flv security issue...
 
 hi cool list,
 
 I'm trying to load external swf into my flashapp.
 crossdomain.xml is in the correct place... the root of the server wich hosts
 the flv's...
 checkPolicyFile is giving positive results...
 inside the the swf is a flash video... don't know if this is external or
 internal...
 
 I keep getting this error:
 SecurityError: Error #2121: Security sandbox violation: Loader.content:
 http://sitem/adtest.swf cannot access
 http://www.bladiebla.tv/flashcommercials/banner_320x240.swf?pid=test. This may
 be worked around by calling Security.allowDomain.
 
 Inside the policylog all policy stuff is accepted. AllowDomain doesn't do the
 trick also...
 
 On the papervision mailing list I came accross a 'new' security thingie from
 Flashplayer 9.0.115 I believe... and someone said something about a
 (policy)flag that needs to be in the video? I read it really quick so I'm not
 sure what I read ;) But google isn't telling much on the subject...
 
 Does anyone know something about this issue?
 ___
 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

 
Gregory Boland | IconNicholson
Flash Engineer, Technology
[EMAIL PROTECTED]
tel +1 212.981.0563
mobile +1 201.600.6269
295 Lafayette Street, New York, NY 10012
 
www.iconnicholson.com
--
This communication may contain information that is confidential or exempt
from disclosure.  If you are not the intended recipient, please note that
any dissemination, distribution, or copying of this communication is
strictly prohibited. Anyone who receives this message in error should notify
the sender immediately by telephone or by return email and delete it from
his or her computer.


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