[Flashcoders] reading a very simple XML file

2011-06-08 Thread ACE Flash
Hi guys, I am pulling out my hair :(, my code can retrieve the xml file without any problem. But I was not able to retrieve each node in the follow case. Would you please help me to take a look my code? am I mising somehing? Cheers = XML FILE ?xml version=1.0 encoding=UTF-8? root asset

Re: [Flashcoders] reading a very simple XML file

2011-06-08 Thread ACE Flash
Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ACE Flash Sent: woensdag 8 juni 2011 17:10 To: Flash Coders List Subject: [Flashcoders] reading a very simple XML file Hi guys, I am pulling out my hair :(, my code

Re: [Flashcoders] reading a very simple XML file

2011-06-08 Thread ACE Flash
-- There are only 10 types of people in the world: Those who understand binary and those who don't. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of ACE Flash Sent: woensdag 8

Re: [Flashcoders] reading a very simple XML file

2011-06-08 Thread ACE Flash
sure you use toXMLString for tracing XML elements - otherwise you end up with blanks sometimes. Glen On 08/06/2011 16:28, ACE Flash wrote: thanks Cor, I have already tried this and it returned nothing as well. It's very weird!. I was able to retrieve the length by this, it returned 3

[Flashcoders] Getting bitmap data after successfully loading a swf file

2010-11-30 Thread ACE Flash
hi there, I am pulling my hair off :), i was able to use any PNG or JPG file in my code, the SWF file just didn't work. Would you please take a look for me? Is there anything I am missing?? I am using flash 9 and all files are on the same domain. Thanks

[Flashcoders] Get video played time

2009-12-04 Thread ACE Flash
I am loading an FLV dynamically using the NetConnection and NetStream classes and display the video in a Video object, my question is shall I use the Enter_Frame event to get the video played time? If so, I need to remove the event after the video completed by checking NetStream.Play.Complete?

[Flashcoders] How many weeks remaining from a given fixed date?

2009-10-30 Thread ACE Flash
Hi there, I was trying to deal with the script in my application, it should display how many weeks left... Say: for instance, I set 1st May 2010 in my application and it should compare the local time. The following code seems doesn't work correctly, am I missing something? would you mind to

[Flashcoders] Compare two date ( how many days left )

2009-10-13 Thread ACE Flash
Hi there, I am using the date class in flash as3, I was wondering how to compare two date and return how may days left. for instance: my target date is 10/18/2009(mm/dd/), I would like to compare with the current date 10/13/2009, the script returns 5. something like var localDate:Date

Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-17 Thread ACE Flash
) { if ( target != null ) { target.addChild( this ) ; } } PS : your code isn't valid in the constructor of a DisplayObject the stage and parent properties are null ! Only in the main class of your application this two attributes are not null. EKA+ :) 2009/8/17 ACE Flash

[Flashcoders] Adding metadata by using as3 in Flash CS4?

2009-07-11 Thread ACE Flash
Hi There, I am curious that if there is a way to add the metadata by using as3? You are able to see the metadata window by click File = File info. Is that possible? Thank you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] dispatch a custom Event in a simple class file

2009-07-09 Thread ACE Flash
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

[Flashcoders] How to dynamically create Object ’s trough for loop and target them someway?

2009-05-14 Thread ACE Flash
hi there, I am trying to dynamically create objects and target them later Thanks var myObject:Object; for(var i:Number = 0; i10; i++) { myObject = new Object(); myObject.id = myObject+i trace(myObject.id) } // how do I target them here? // myObject[0]?

[Flashcoders] How to embed assets in pure as3?

2009-05-13 Thread ACE Flash
hi there, I'd like to use pure actionscript 3 to embed my assets in flash. and use addChild() to add them on the stage. The code seem doesn't work for me, any suggestions? thanks [Embed(source=/assets/img1.gif , mimeType=image/gif)] public var newImage:Class;

Re: [Flashcoders] Try... catch......

2009-05-09 Thread ACE Flash
, 2009 at 3:22 AM, ACE Flash acefl...@gmail.com wrote: Hi there, I am trying to add try block in my code, how can I deal it with return function? If the code without any problems, I'd like to return ball , otherwise I'd like to EXIT or return null. Thanks

[Flashcoders] Try... catch......

2009-05-08 Thread ACE Flash
Hi there, I am trying to add try block in my code, how can I deal it with return function? If the code without any problems, I'd like to return ball , otherwise I'd like to EXIT or return null. Thanks - public function myBall( value:int ):Ball {

[Flashcoders] Removing a key and value in an object

2009-03-24 Thread ACE Flash
Hey there, I was trying to remove the first key and value ( a:foo ) from the oject. var obj:Object = {a:foo, b:bar} Is there a way to remove it? Thank you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Re: Removing a key and value in an object

2009-03-24 Thread ACE Flash
I am able to use this.delete obj[k]; thanks all On Tue, Mar 24, 2009 at 12:35 PM, ACE Flash acefl...@gmail.com wrote: Hey there, I was trying to remove the first key and value ( a:foo ) from the oject. var obj:Object = {a:foo, b:bar} Is there a way to remove it? Thank you

[Flashcoders] A very simply question of XML toString()

2009-03-19 Thread ACE Flash
Hey there, I was trying to parse the XML to get all value of title and store them into array at once. Do I have to use loop to push them into an Array or there is a shortcut for doing this? I'd like to get something like this... var arr:Array = new Array(); // to trace arr arr[0] = Dictionary

[Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread ACE Flash
at 1:11 PM, ACE Flash acefl...@gmail.com wrote: Hey there, I was trying to parse the XML to get all value of title and store them into array at once. Do I have to use loop to push them into an Array or there is a shortcut for doing this? I'd like to get something like this... var arr:Array

Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread ACE Flash
coool, thanks all! On Thu, Mar 19, 2009 at 1:42 PM, Kenneth Kawamoto kennethkawam...@gmail.com wrote: Shorter: for each(var item:XML in myXML.book.title){ arr.push(item.toString()); } Kenneth Kawamoto http://www.materiaprima.co.uk/ ACE Flash wrote: I was using this script

[Flashcoders] Flash Lite

2009-02-09 Thread ACE Flash
Hey There, Does anybody use the Flash Lite? I'd like to know what's difference for Flash Lite 1 , 2, 3 ? or run data-driven application with Flash Lite 3? Is there any articles I can find about Flash Lite? Thank you ___ Flashcoders mailing list

Re: [Flashcoders] How to turn off the DEBUG mode with Google Analytics

2009-02-05 Thread ACE Flash
the default AS3 mode : var tracker:AnalyticsTracker = new GATracker( this, UA-111-222 ) ; EKA + :) 2009/2/4 ACE Flash acefl...@gmail.com Hey there, How can I turn off the debug mode by as3? so I am able to run it on the production server. thanks === import

[Flashcoders] How to turn off the DEBUG mode with Google Analytics

2009-02-04 Thread ACE Flash
Hey there, How can I turn off the debug mode by as3? so I am able to run it on the production server. thanks === import com.google.analytics.AnalyticsTracker; import com.google.analytics.GATracker; import com.google.analytics.debug.*; var tracker:AnalyticsTracker = new

[Flashcoders] apply gradient map effec

2008-11-10 Thread ACE Flash
Hey there, I am going to apply the gradient map effect on a image ( the name called in photoshop = image = ajustments = gradient map ) . do you know how to deal with it in action script 3? *http://yarra.ath.cx/zmzm/upload/Picture_1.png*http://yarra.ath.cx/upload/Picture_1.png Thank you

[Flashcoders] Re: apply gradient map effec

2008-11-10 Thread ACE Flash
any suggestions? please... On Mon, Nov 10, 2008 at 11:36 AM, ACE Flash [EMAIL PROTECTED] wrote: Hey there, I am going to apply the gradient map effect on a image ( the name called in photoshop = image = ajustments = gradient map ) . do you know how to deal with it in action script 3? *http

[Flashcoders] Retrieving URL params from embedded code.

2008-07-11 Thread ACE Flash
hey there, I was try to retrieve the URL params by using _level0.url in flash I knew the flashvars, but I was curious about to retrieve the params from embedded url directly. is that possible? sample embedded code= embed src=myflash.swf?url=http://www.msn.com;

[Flashcoders] Converting simple XML data into Array

2008-06-19 Thread ACE Flash
hey there, I was using loop to push them into Array Is there a way to convert this XML file into Array more easily? like = xml as Array? files filefile name1/file filefile name2/file filefile name3/file . /files var ___ Flashcoders mailing

[Flashcoders] Is it possible to display in the xml file

2008-06-12 Thread ACE Flash
hey there, Is it possible to display in the xml file? I tried to convert it to %26, but it won't display in the flash for example: depFin IT /dep thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Re: Is it possible to display in the xml file

2008-06-12 Thread ACE Flash
i got it, uses... = amp; On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash [EMAIL PROTECTED] wrote: hey there, Is it possible to display in the xml file? I tried to convert it to %26, but it won't display in the flash for example: depFin IT /dep thanks

Re: [Flashcoders] Is it possible to display in the xml file

2008-06-12 Thread ACE Flash
thanks for all of your input...it's awesome! On Thu, Jun 12, 2008 at 1:38 PM, Steven Sacks [EMAIL PROTECTED] wrote: If you put ampersands in attributes, the XML will not parse correctly in any browser. Ampersands (and other special characters) should go inside CDATA tags to maintain valid

Re: [Flashcoders] Close current browser from flash without alert message.

2008-06-11 Thread ACE Flash
seems only work on IE and NS?? not sure, you may take a look by urself http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=2844lngWId=2 On Mon, Jun 9, 2008 at 8:42 AM, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi I want to close my current(main) browser from flash when a

Re: [Flashcoders] Retrieving URL params gets truncate in ActionScript2

2008-05-21 Thread ACE Flash
to the swf. Try url encoding the link with the escape function in JS. Something like: 'flashvars':escape('link= http://www.google.com?test=1test2=2test3=3test4=4') Cheers Juan Pablo Califano 2008/5/20, ACE Flash [EMAIL PROTECTED]: Hey there, I was trying to figure out how to handle

[Flashcoders] does most browsers support e4x?

2008-05-21 Thread ACE Flash
hey there, I heard about some browsers doesn't support e4x? is that true? if so, is there any info to show me the list? I would like to get the confirmation before coding them in e4x. :) thank you ___ Flashcoders mailing list

[Flashcoders] Retrieving URL params gets truncate in ActionScript2

2008-05-20 Thread ACE Flash
Hey there, I was trying to figure out how to handle this in Action Script 2, the url link string gets truncate and stops at test=1. It's weird, is there any limitation for handle this in AS2? Thanks === action script in test.swf == // reads url links from FlashVars in

[Flashcoders] Re: Retrieving URL params gets truncate in ActionScript2

2008-05-20 Thread ACE Flash
? Cheers On Tue, May 20, 2008 at 3:28 PM, ACE Flash [EMAIL PROTECTED] wrote: Hey there, I was trying to figure out how to handle this in Action Script 2, the url link string gets truncate and stops at test=1. It's weird, is there any limitation for handle this in AS2? Thanks

[Flashcoders] Is there anyway can share user login status between .aspx and flash?

2008-05-16 Thread ACE Flash
Hi guys, I was trying to figure out how to get this done in flash. for example; I had 2 pages on .net platform, the first page was regular aspx login page that allows user to enter user name and password, they could click Login button to login the system. After login, use could see page 2 which

[Flashcoders] Retrieve The Web Link

2008-05-08 Thread ACE Flash
Hi there, I embedded my SWF into HTML page, when I have launched the page on web, I would like to retrieve the URL. Any suggestion? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Re: Retrieve The Web Link

2008-05-08 Thread ACE Flash
I am using AS2, thanks On Thu, May 8, 2008 at 9:47 AM, ACE Flash [EMAIL PROTECTED] wrote: Hi there, I embedded my SWF into HTML page, when I have launched the page on web, I would like to retrieve the URL. Any suggestion? ___ Flashcoders mailing

Re: [Flashcoders] Re: Retrieve The Web Link

2008-05-08 Thread ACE Flash
I got it, we could use this._url to retrieve the path. thanks On Thu, May 8, 2008 at 10:36 AM, Dennis - I Sioux [EMAIL PROTECTED] wrote: Emm.. _url? - Original Message - From: ACE Flash [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, May 08, 2008 3:48 PM

[Flashcoders] Using Function to Create Objects

2008-05-05 Thread ACE Flash
Hi there, I am reading ActionScript 3 Essential, there is an example code shows on page 290. When I tried to run the code, I got an error msg = 1048: Method cannot be used as a constructor. http://www.privatepaste.com/dagJFB6kD5 Any Suggestions? Thanks

Re: [Flashcoders] Using Function to Create Objects

2008-05-05 Thread ACE Flash
and not AS 3.0. You can test the code by changing the Actionscript version to 2.0 or 1.0 in the Publish Settings dialog. Regards, Meinaart - Original Message - From: ACE Flash [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, May 05, 2008 4:22 PM

Re: [Flashcoders] A simple question for getting Object info.

2008-05-04 Thread ACE Flash
: 0072231726 Title: This is Book2 Title */ Hth, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ACE Flash Sent: Friday, May 02, 2008 2:12 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] A simple question for getting Object

[Flashcoders] How to create Radio Buttons with Grouping

2008-04-30 Thread ACE Flash
I dragged 2 radio buttons on the Stage ( from Components panel ). I would like to group them so when I click one of them, I could get radio 1 or 2 selected. Does anyone know how to do this? Thanks ___ Flashcoders mailing list

[Flashcoders] How to compare 2 dynamic Arrays

2008-04-27 Thread ACE Flash
Hi there, I have 2 dynamic Arrays, t1Array and t2Array, both of them need compare with sArray(standard array). I have to call Line 26 for each t2Array[n] = onCompare(sArray, t2Array[0]); is there any simply way to achieve this? so it could be looping for comparing all dynamic arrays?

[Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread ACE Flash
Hi there, Is there a way to check if my recursive function is finished and exited? so I could call another function once it finished. As an example below, it could be any number instead of 5 in my program, I am wondering there is a listener can be use for monitoring a Recursive Function. Is that

Re: [Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread ACE Flash
great! tones of solutions. Thanks dudes! On Fri, Apr 25, 2008 at 2:10 PM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Jason Lutes [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, April 25, 2008 6:09 PM Subject: Re:

[Flashcoders] Removing a displayObject by using removeChild()

2008-04-24 Thread ACE Flash
Hi there, I would like to define a variable, so I could pass any name to createNavigatorButton and using removeNavigatorButton to remove it. I wrote a simple code here http://www.privatepaste.com/e8tI4OgtHg, but I got an error msg = TypeError: Error #1034: Type Coercion failed: cannot convert

Re: [Flashcoders] Removing a displayObject by using removeChild()

2008-04-24 Thread ACE Flash
){ ... _pValue.name = pValue; ... } function removeNavigatorButton( pValue:String ) { ... _pValue = DisplayObject(this.getChildByName(_ + pValue)); this.removeChild(_pValue); ... } On Apr 24, 2008, at 8:30 AM, ACE Flash wrote: Hi there, I would

[Flashcoders] How to retrieve all itmes in RSS

2008-03-19 Thread ACE Flash
Hi there, I am going to build an RSS reader by using Flash action scrip, I was wondering how to retrieve all items in Media Advertising RSS. ( all items means, I wanna get all data feed, you could see only couple of pages in Media Advertising RSS link below at the moment) Possibly, I could