[Flashcoders] Flash Player 10.2 RC

2011-01-12 Thread kennethkawam...@gmail.com
http://labs.adobe.com/technologies/flashplayer10/

"Native custom mouse cursors" - does this mean Flash finally caught up
with Director 4 c.1994?

;)

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Actionscript 4?

2010-11-10 Thread kennethkawam...@gmail.com
No no, I was just pretending to be humble - it's not me who is naïve here :P
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 10 November 2010 09:24, Leandro Ferreira  wrote:
> You can't say someone is better or worse than you based on his job title,
> that's pretty naive
> 
>
>
>    Leandro Ferreira
>
>
> On Tue, Nov 9, 2010 at 18:56, Kenneth Kawamoto 
> wrote:
>>
>> What?!
>>
>> I don't know which Kenneth Kawamoto you're referring to, Kerry, but I do
>> not work for Adobe and I'm definitely not an ECMA Script Committee member
>> either!
>>
>> May be you got mixed up with someone else from my Director-list days?
>> Anyway it's good to be confused with someone better than I, rather than
>> someone worse than I... ;)
>

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


Re: [Flashcoders] sorting xml

2010-08-31 Thread kennethkawam...@gmail.com
You can do something like:

var xml:XML = 
   
   
   
   
   
   
   
;
var a:Array = new Array();
for each(var item:XML in xml.node){
   a.push(item);
}
a.sortOn(["@ccc"]);
var newxmllist:XMLList = new XMLList();
for(var i:uint = 0, len:uint = a.length; i < len; i++){
   newxmllist += a[i];
}
trace(newxmllist);

There may be a better way though ;)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 31 August 2010 15:28, Lehr, Theodore  wrote:
> Any easy way to sort xml based on an attribute:
>
> 
>   
>   
> 
>
> so if I wanted to sort based on aas or ccc

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


Re: [Flashcoders] Animation showing through Text

2010-06-23 Thread kennethkawam...@gmail.com
Set blendMode of the TextField to BlendMode.ALPHA before setting the
TextField as mask. This is pure AS and you can even change the text
dynamically while being used as mask :)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 22 June 2010 21:40, Bill S.  wrote:
> Thank you Keith.
>
> (And, yes, that looks like a good approach).
>
> I am all .AS3-based though, literally nothing in the .FLA, or library, other 
> than a FLA document class of "Main" pointing out to a Main.as.
>
> However, I may need to come back to your way.
>
> Thanks again,
> ~Bill
>
>
>  - Original Message -
>  From: Keith Reinfeld
>  To: 'Bill S.' ; 'Flash Coders List'
>  Sent: Tuesday, June 22, 2010 3:37 PM
>  Subject: RE: [Flashcoders] Animation showing through Text
>
>
>  You will need to 'break apart' the text in order to use it as a mask this
>  way.
>  Select the textfield and use Ctrl+B twice. (Modify > Break Apart)
>
>
>  Regards,
>
>  Keith Reinfeld

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


Re: [Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-18 Thread kennethkawam...@gmail.com
I wasn't reading your post properly :) Have you tried (?P=name) ? (or
you may want try \n)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 18 June 2010 15:39, Anthony Pace  wrote:
> I know you can have named groups, but are there named group back references
> in AS3?  if so, do you have any examples of it working? it isn't working for
> me if I try \k, \
>
> The funny thing about this situation is that I know that you can access them
> after exec of a regex, and I wonder why they would allow one way of using
> them and not the other?

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


Re: [Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-18 Thread kennethkawam...@gmail.com
Can you access using

result.name

?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 18 June 2010 15:39, Anthony Pace  wrote:
> I know you can have named groups, but are there named group back references
> in AS3?  if so, do you have any examples of it working? it isn't working for
> me if I try \k, \
>
> The funny thing about this situation is that I know that you can access them
> after exec of a regex, and I wonder why they would allow one way of using
> them and not the other?

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


Re: [Flashcoders] captured or non-captured named group back references in AS3 regex

2010-06-18 Thread kennethkawam...@gmail.com
(?Pgroup)

Is this what you are looking for?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 18 June 2010 15:39, Anthony Pace  wrote:
> I know you can have named groups, but are there named group back references
> in AS3?  if so, do you have any examples of it working? it isn't working for
> me if I try \k, \
>
> The funny thing about this situation is that I know that you can access them
> after exec of a regex, and I wonder why they would allow one way of using
> them and not the other?

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


Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can count them in the receiving function, e.g. arguments.length in
JavaScript. (Then may be I misunderstood again ;)

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 May 2010 09:39, Glen Pike  wrote:
> On 26/05/2010 09:33, kennethkawam...@gmail.com wrote:
>>
>> You can pass any number of parameters with ExternalInterface.call()
>> method - or are you talking about something else...?
>>
>
> I think he means a variable number of parameters.
>
> Can you pass an object like an array?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface with looped parameters

2010-05-26 Thread kennethkawam...@gmail.com
You can pass any number of parameters with ExternalInterface.call()
method - or are you talking about something else...?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 May 2010 08:07, Ashim D'Silva  wrote:
> This seems fairly impossible but if there's an awesome way to do it
> I'll be heaps grateful.
>
> I receive a function name and a set of parameters via XML
>
> 
>        
>                webtrends
>                
>                        98780
>                        Joseph
>                        Iceland
>                
>        
> 
>
> I'm hoping there's a way for me to fire an ExternalInterface.call()
> function with any amount of parameters provided to me.
> I'm one step away from telling the other side I'll send them an array,
> but hoping for the long shot.
>
> Cheers,
>
> Ashim
>
> The Random Lines
> www.therandomlines.com

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


Re: [Flashcoders] Upgrade from MX2004 to CS4 - issues?

2010-05-20 Thread kennethkawam...@gmail.com
I have this vague memory that texts all went weird if you export to
SWF from MX2004 FLA in Flash 8 - but not 100% certain as this is a
long time ago now... :)

There's only one way to find out?

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 20 May 2010 16:40, Paul Jinks  wrote:
> Thanks Eric
>
> I'm guessing that this won't be a problem, since once we've made the
> move we won't need to save files for MX2004.
>
> Will transitioning to CS4 disrupt the files in anyway e.g. render the
> code differently - the adobe documentation suggests that AS1 is
> supported in CS4 - can anyone confirm this?
>
> Sorry for being so vague.  I'm trying to guess what the problems
> anticipated might have been.
>
> Cheers
>
> Paul
>
> On 20 May 2010 16:01, Mattheis, Erik (MIN - WSW)
>  wrote:
>> You won't be able to save as a MX2004 file from CS4.
>>
>> _ _ _
>> Erik Mattheis
>> Senior Web Developer
>> Minneapolis
>> T  952 346 6610
>> C 612 377 2272
>>
>> Weber Shandwick
>> Advocacy starts here.
>>
>> PRWeek Global Agency Report Card 2009 - Gold Medal Winner
>> The Holmes Report Global Agency of the Year
>> PR News Agency of the Year
>>
>> -Original Message-
>> From: flashcoders-boun...@chattyfig.figleaf.com 
>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Jinks
>> Sent: Thursday, May 20, 2010 9:27 AM
>> To: Flash Coders List
>> Subject: [Flashcoders] Upgrade from MX2004 to CS4 - issues?
>>
>> I'm covering for a colleague and am working on their Flash projects
>> using MX2004, which . However, I just discovered that we have a
>> license for CS4 but that she's stuck with the older version because of
>> 'compatibility' problems.
>>
>> Any idea what these are? She isn't around to ask.
>>
>> Part of the picture is that we have a couple of templates in AS1 -
>> will CS4 meddle with these in anyway?
>>
>> TIA
>>
>> 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
>>
>
>
>
> --
> Paul Jinks
> Assistant Development Librarian
> University of Sheffield Library
> Tel: [0114 22] 27235

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


Re: [Flashcoders] Modifying a already defined tween

2010-05-13 Thread kennethkawam...@gmail.com
I recommend TweenMax, which you can just call updateTo() to change the
end value of the tween on the fly.

If you need to use your Tween, then I'd imagine you would call
continueTo(), but then you have to determine how much time left to
complete the tween to new goal. Messy.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 13 May 2010 09:50, Fahim Akhter  wrote:
> Hi,
>
> I have a tween like this :
>
>    new Tween(myObject, "x",null,nowPosition,finalPosition,time,true);
>    sometween.start();
>
> Now when the tween has not finished and is somewhere in the middle and the
> final position changes. I want this tween to be modified so instead of
> moving to its already defined postion the object goes to the final position.
> Any ideas?
>
> Fahim Akhter
> Game Developer | White Rabbit Studios |
> http://apps.facebook.com/feline-frenzy/

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


Re: [Flashcoders] Random Sort of Array

2010-05-11 Thread kennethkawam...@gmail.com
Have two arrays - first one with 2 products and second one with 7
products. Randomise the 2nd array  (with Fisher-Yates shuffle ;) and
concat() the two arrays to produce the array with 9 products.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 11 May 2010 01:44, Donald Talcott  wrote:
> Last year I created a small timeline based intro of products for a client
> that used Math.random to produce a random start of the animation sequence.
> This year they would like two specific product animations to always start in
> the #1 and #2 position and the remaining 7 products to play in a random
> order. I have given this some thought and am not sure how to go about it.
> Any ideas out there? If I contain the two specific products to the # 1 and #
> 2 positions, and procede randomly to the rest, how might I get all 7
> remaining products to play before replaying #1 and #2?
>
> Last years code below:
>
> stop();
> var minList:Array = ["mmPretzel", "3Musketeers_truffle", "MilkyWay_Caramel",
> "mmCO", "mmCherry", "Twix_java", "VOTE", "mmPB", "NASCAR"];
> var minStart:Number = Math.floor(Math.random()*9);
> trace(minStart);
> trace(minList[minStart]);
>
> function goOn(){
> gotoAndPlay(minList[minStart]);
> };
> setTimeout(goOn,+8);
>
>
>
>
>
> Don Talcott
> 316 Greenwood Ave
> Decatur, GA 30030
> 404 538-1642
> dtalc...@mindspring.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML Question

2010-05-06 Thread kennethkawam...@gmail.com
Wrap your text with XML character data, i.e.



-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 6 May 2010 13:56, John Singleton  wrote:
> Whoops. Now I have this in my XML:
>
>    Senior Citizen Discount
> Delta Electric and Construction Co., Inc. finds its pricing to be fair 
> and reasonable. Their prices are competitive and based on the local market 
> rates. Delta Electric offers a 10% discount to Senior Citizens living in the 
> Virgin Islands. The discount is equal to what we are offering to the Federal 
> government. Senior Citizens are offered this discount because they are no 
> longer working and have a lower income. The discount is only given on 
> residential work performed in the homes of Senior Citizens and they only send 
> a laborer out in that case. Delta Electric takes pride in offering services 
> at affordable prices and feels it is important to give back to the community 
> and respect their elders.
> 
>
> This statement:
>
>            pageDetails = xmlData.PAGE.(@pg_name == "index").DETAILS.text();
>
> prints out everything except that which is marked up (h3, b). What do?
> TIA,
> John

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


Re: [Flashcoders] Producing a random list with no repeats

2010-05-06 Thread kennethkawam...@gmail.com
I always use Fisher-Yates shuffle method to randomise an Array, which
yields more unbiased result.
http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle

My AS3 interpretation of Fisher-Yates is as follows; I can just call
this from anywhere in my scripts ;)

package utils {
public function fisherYates(arr:Array):void {
var i:uint = arr.length;
while(--i){
var j:uint = Math.floor(Math.random()*(i + 1));
var tmpI:Object = arr[i];
var tmpJ:Object = arr[j];
arr[i] = tmpJ;
arr[j] = tmpI;
}
}
}

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 6 May 2010 02:27, Juan Pablo Califano
 wrote:
> A simple way:
>
> Put all the candidate numbers in a list (in this case, 1 to 40). Then pick
> randomly from that array, one at the time, and make sure you remove that
> number from the candidates list, so you can't have duplicates.
>
> In code (untested):
>
> function getRandomList():Array {
>    var min:Number = 1;
>    var max:Number = 40;
>    var numItems:Number = 10;
>    var candidates:Array = [];
>    // fill up the candidates list with the "eligible" numbers
>    for(var i:Number = min; i <= max; i++) {
>        candidates.push(i);
>    }
>
>    var list:Array = [];
>    var idx:Number = 0;
>    var selectedNumber:Number = 0;
>    for(i = 0; i < numItems; i++) {
>        // get a number from the candidates list, randomly. Add it to the
> result and remove it from the candidates list (using splice)
>        idx =  Math.floor(Math.random() * candidates.length);
>        selectedNumber = candidates.splice(idx,1)[0];
>        list.push(selectedNumber);
>    }
>    return list;
> }
>
>
> Cheers
> Juan Pablo Califano
>
> 2010/5/5 Alan Neilsen 
>
>> I am working in ActionScript 2. I want to create a quiz in which 10
>> questions are randomly selected from a block of 40 questions. I found the
>> following code, but I can't work out how to stop it doubling up the
>> questions.
>>
>> function randRange(min:Number, max:Number):Number {
>>    var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) +
>> min;
>>    return randomNum;
>> }
>> for (var i = 0; i < 10; i++) {
>>    var n:Number = randRange(1, 40)
>>    trace(n);
>> }
>>
>> When I run this it outputs a list of numbers like 40  13  17  12  27  12  3
>>  17  9  15 which means some questions (in this case 17 and 12) will appear
>> twice in my quiz.
>> Bearing in mind that I am a bit of an ActionScript dummy, can anybody
>> suggest a way to modify the above script to prevent the same number being
>> generated more than once.

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


Re: [Flashcoders] XML Question

2010-05-05 Thread kennethkawam...@gmail.com
> I think you just need a root node.

No way. Your first example traces true just because there is only one
pg_name attribute.

Consider this:

var xmlData:XML = 
 page
 page
   ;
trace(xmldata.pa...@pg_name.tostring() == "index"); // false because
it evaluates as indexcontract
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/


On 5 May 2010 17:49, Mattheis, Erik (MIN - WSW)
 wrote:
> I think you just need a root node.
>
> var xmlData:XML = new XML ( pg_name='index'>page );
> trace(xmldata.pa...@pg_name.tostring() == "index"); // true
>
> var xmlData:XML = new XML (page 
> );
> trace(xmldata.pa...@pg_name.tostring() == "index"); // false
>
> _ _ _
> Erik Mattheis
> Senior Web Developer
> Minneapolis
> T  952 346 6610
> C 612 377 2272
>
> Weber Shandwick
> Advocacy starts here.
>
> PRWeek Global Agency Report Card 2009 - Gold Medal Winner
> The Holmes Report Global Agency of the Year
> PR News Agency of the Year
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Singleton
> Sent: Wednesday, May 05, 2010 11:03 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] XML Question
>
> - Original Message 
>
>> From: jonathan howe 
>> To: Flash Coders List 
>> Sent: Wed, May 5, 2010 11:23:25 AM
>> Subject: Re: [Flashcoders] XML Question
>>
>> You forgot your break; statements, sir.
>
> You're right, however it makes no difference in the outcome. It still 
> defaults to the default:
>
>        function completeXMLListener(e:Event):void
>        {
>            var xmlData:XML = XML (e.target.data);
>            trace(xmldata.pa...@pg_name.tostring())
>            switch (xmldata.pa...@pg_name.tostring())
>            {
>                case "index":
>                    pageDetails = xmlData.PAGE.DETAILS.toString();
>                    break;
>                case "contact":
>                    pageDetails = xmlData.PAGE.DETAILS.toString();
>                    break;
>                default:
>                    pageDetails = xmlData.PAGE.DETAILS.toString();
>                    trace(pageDetails);
>                    break;
>            }
>            MyTextBlock();
>        }
>
> and that is not what I want. I just put a couple of traces in the other cases 
> and they didn't fire. Please explain.
> TIA.
> John
>
> On Wed, May 5, 2010 at 11:12 AM,
>> John Singleton
> <
>> href="mailto:johnsingleton...@yahoo.com";>johnsingleton...@yahoo.com>wrote:
>
>>
>> - Original Message 
>>
>> > From: allandt bik-elliott (
>> target="_blank" href="http://thefieldcomic.com";>thefieldcomic.com) <
>> ymailto="mailto:alla...@gmail.com";
>> href="mailto:alla...@gmail.com";>alla...@gmail.com>
>> >
>>
>> > i'd also recommend having a root node and an xml type declaration
>> at
>> > the start
>>
>> Right. Ok, here's my revised
>> code:
>>
>> 
>>
>> 
>>  
>>
>> This is some more of the home page.
>>
>> 
>>  
>>
>> This is some more of the contact
>> page.
>>  
>>
>> 
>>
>>        function
>> completeXMLListener(e:Event):void
>>
>> {
>>            var xmlData:XML = XML
>> (e.target.data);
>>            trace(
>> ymailto="mailto:xmldata.pa...@pg_name.tostring";
>> href="mailto:xmldata.pa...@pg_name.tostring";>xmldata.pa...@pg_name.tostring())
>>
>>           switch (
>> ymailto="mailto:xmldata.pa...@pg_name.tostring";
>> href="mailto:xmldata.pa...@pg_name.tostring";>xmldata.pa...@pg_name.tostring())
>>
>>           {
>>
>>       case "index":
>>
>>           pageDetails =
>> xmlData.PAGE.DETAILS.toString();
>>
>>       case "contact":
>>
>>           pageDetails =
>> xmlData.PAGE.DETAILS.toString();
>>
>>       default:
>>
>>         pageDetails =
>> xmlData.PAGE.DETAILS.toString();
>>
>>           trace(pageDetails);
>>
>>         }
>>
>> MyTextBlock();
>>        }
>>
>> The first
>> trace nicely prints out what I would expect (I think, should have
>> been
>> on two lines):
>>
>> indexcontact
>>
>> The second trace
>> also prints:
>>
>> This is some more of the home
>> page.
>> This is some more of the contact
>> page.
>>
>> indicating, of course, that the default is
>> firing. Why?
>> TIA,
>> John

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


Re: [Flashcoders] XML Question

2010-05-05 Thread kennethkawam...@gmail.com
Say for example you are in the home section and obtaining the data for
it, you'd do:

var pageData:XML = xmlData.PAGE.(@pg_name == "index")[0];

Then build the page based on pageData XML.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 5 May 2010 17:30, John Singleton  wrote:
>
>
> - Original Message 
>
>> From: "kennethkawam...@gmail.com" 
>> To: Flash Coders List 
>> Sent: Wed, May 5, 2010 11:53:53 AM
>> Subject: Re: [Flashcoders] XML Question
>>
>> It's not just about missing "break", your switch statement
> fundamentally does
>> not make sense (sorry ;)
> switch (
>> ymailto="mailto:xmldata.pa...@pg_name.tostring";
>> href="mailto:xmldata.pa...@pg_name.tostring";>xmldata.pa...@pg_name.tostring())
> ...
>> this evaluates to "indexcontact" as your trace shows, therefore
> none of your
>> cases will pass the test.
>
>> In order to make this work you have to iterate
>> nodes with for/for
>> each, but no need to even do that - instead use E4X to
>> access nodes
>> you want.
>
> Right. That's what I said at the outset, that I knew I was doing something 
> fundamentally wrong, but don't know how to do it correctly. Here I am with 
> Moock trying to figure it out but I'm missing it. Could you give an example?
> TIA,
> John
>
> --
> Kenneth
>> Kawamoto
> http://www.materiaprima.co.uk/
>
> On 5 May 2010 16:23, jonathan
>> howe <
>> href="mailto:jonathangh...@gmail.com";>jonathangh...@gmail.com>
>> wrote:
>> You forgot your break; statements, sir.
>>
>> On Wed,
>> May 5, 2010 at 11:12 AM, John Singleton
>> <
>> ymailto="mailto:johnsingleton...@yahoo.com";
>> href="mailto:johnsingleton...@yahoo.com";>johnsingleton...@yahoo.com>wrote:
>>
>>>
>> - Original Message 
>>>
>>> > From: allandt
>> bik-elliott (
>> href="http://thefieldcomic.com";>thefieldcomic.com) <
>> ymailto="mailto:alla...@gmail.com";
>> href="mailto:alla...@gmail.com";>alla...@gmail.com>
>>>
>> >
>>> > i'd also recommend having a root node and an xml type
>> declaration at
>>> > the start
>>>
>>> Right. Ok,
>> here's my revised code:
>>>
>>> > version="1.0"?>
>>> 
>>>  > pg_name='index'>
>>>    This is some more of the home
>> page.
>>>  
>>>  > pg_name='contact'>
>>>    This is some more of the
>> contact page.
>>>  
>>>
>> 
>>>
>>>        function
>> completeXMLListener(e:Event):void
>>>        {
>>>
>>  var xmlData:XML = XML (e.target.data);
>>>            trace(
>> ymailto="mailto:xmldata.pa...@pg_name.tostring";
>> href="mailto:xmldata.pa...@pg_name.tostring";>xmldata.pa...@pg_name.tostring())
>>>
>>            switch (
>> href="mailto:xmldata.pa...@pg_name.tostring";>xmldata.pa...@pg_name.tostring())
>>>
>>            {
>>>                case "index":
>>>
>>      pageDetails = xmlData.PAGE.DETAILS.toString();
>>>
>>  case "contact":
>>>                    pageDetails =
>> xmlData.PAGE.DETAILS.toString();
>>>                default:
>>>
>>                    pageDetails = xmlData.PAGE.DETAILS.toString();
>>>
>>                  trace(pageDetails);
>>>            }
>>>
>>      MyTextBlock();
>>>        }
>>>
>>> The first trace
>> nicely prints out what I would expect (I think, should have
>>> been on
>> two lines):
>>>
>>> indexcontact
>>>
>>> The
>> second trace also prints:
>>>
>>> This is some
>> more of the home page.
>>> This is some
>> more of the contact page.
>>>
>>> indicating, of
>> course, that the default is firing. Why?
>>> TIA,
>>>
>> John

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


Re: [Flashcoders] XML Question

2010-05-05 Thread kennethkawam...@gmail.com
It's not just about missing "break", your switch statement
fundamentally does not make sense (sorry ;)

switch (xmldata.pa...@pg_name.tostring())
... this evaluates to "indexcontact" as your trace shows, therefore
none of your cases will pass the test.

In order to make this work you have to iterate nodes with for/for
each, but no need to even do that - instead use E4X to access nodes
you want.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 5 May 2010 16:23, jonathan howe  wrote:
> You forgot your break; statements, sir.
>
> On Wed, May 5, 2010 at 11:12 AM, John Singleton
> wrote:
>
>> - Original Message 
>>
>> > From: allandt bik-elliott (thefieldcomic.com) 
>> >
>> > i'd also recommend having a root node and an xml type declaration at
>> > the start
>>
>> Right. Ok, here's my revised code:
>>
>> 
>> 
>>  
>>    This is some more of the home page.
>>  
>>  
>>    This is some more of the contact page.
>>  
>> 
>>
>>        function completeXMLListener(e:Event):void
>>        {
>>            var xmlData:XML = XML (e.target.data);
>>            trace(xmldata.pa...@pg_name.tostring())
>>            switch (xmldata.pa...@pg_name.tostring())
>>            {
>>                case "index":
>>                    pageDetails = xmlData.PAGE.DETAILS.toString();
>>                case "contact":
>>                    pageDetails = xmlData.PAGE.DETAILS.toString();
>>                default:
>>                    pageDetails = xmlData.PAGE.DETAILS.toString();
>>                    trace(pageDetails);
>>            }
>>            MyTextBlock();
>>        }
>>
>> The first trace nicely prints out what I would expect (I think, should have
>> been on two lines):
>>
>> indexcontact
>>
>> The second trace also prints:
>>
>> This is some more of the home page.
>> This is some more of the contact page.
>>
>> indicating, of course, that the default is firing. Why?
>> TIA,
>> John

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


Re: [Flashcoders] libraries of wav files?

2010-04-29 Thread kennethkawam...@gmail.com
If you are talking about sound imported into the Library in IDE, you
can assign a Class name to it and instantiate it as normal:

var snd:Sound = new LibaraySound();
snd.play();
...etc.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 29 April 2010 10:35, Jim Andrews  wrote:
> i know you can load external mp3 files in flash, but is it possible to load
> a library (if that is the right term) of wav files in flash?
>
> the app i want to make involves loops, and mp3 files are not real good for
> loops.
>
> ja
> http://vispo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-16 Thread kennethkawam...@gmail.com
I have now working solutions, and here are few things may be
beneficial for someone in the future doing Red5 streaming:

- onMetaData does not get called, but to obtain the length of the
stream you can use NetConnection.call("getStreamLength", Responder,
stream)
- onXMPdata does get called but not all stream (non Adobe encoder
generated) has XMP data embedded
- resume() does not work on its own but it does if you
seek(pausedTime) immediately after
- seek() does not work but it does if you call it twice in succession
- I use 200ms in between

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-15 Thread kennethkawam...@gmail.com
> those two functions have to be added as callbacks on a client object which
> is passed into netstream.client - have you done this?

...so does onPlayStatus and bunch of other callbacks. Yes of course I have ;)

Actually I get onXMPData from certain streams. Probably ones I don't
get XMP is the file exported to FLV directly from FinalCut.

Still I should get meta data. Do you have any experiences with Red5?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 15 April 2010 17:39, allandt bik-elliott (thefieldcomic.com)
 wrote:
> those two functions have to be added as callbacks on a client object which
> is passed into netstream.client - have you done this?
>
> On 15 April 2010 12:19, kennethkawam...@gmail.com > wrote:
>
>> I am monitoring onXMPData as well but that does not get called either.
>>
>> I am using FLV.
>>
>> All I wanted from the meta data was the duration of the stream. I can
>> get that info by calling NetConnection getStreamLength, so that part
>> is now sorted without receiving the meta data.
>>
>> However there are numerous other issues with Red5. resume() does not
>> work after pause(). seek() does not work. I have been spending hours
>> coming up with "workarounds"...
>>
>> There are posts about these issues on the net and Red5 tickets have
>> been raised for few months too. I wonder if FMS works better - but
>> anyway it's too late now to switch  :(
>> --
>> Kenneth Kawamoto
>> http://www.materiaprima.co.uk/
>>
>> On 15 April 2010 10:40, allandt bik-elliott (thefieldcomic.com)
>>  wrote:
>> > is it using an f4v? because they have an onXMPData which they use which
>> > fulfills a similar role (although i thought they had metadata as well)
>> >
>> > a
>> >
>> > On 13 April 2010 17:34, kennethkawam...@gmail.com <
>> kennethkawam...@gmail.com
>> >> wrote:
>> >
>> >> Hi Flash Coders,
>> >>
>> >> I have this issue: NetStream onMetaData does not get triggered. Using
>> >> Red5. onPlayStatus does get called correctly without fail though.
>> >>
>> >> Basically I need to know the duration of the video.
>> >>
>> >> Has anyone ever experienced the same or have any ideas what is going
>> on...?
>> >> --
>> >> Kenneth Kawamoto
>> >> http://www.materiaprima.co.uk/

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


Re: [Flashcoders] NetStream onMetaData does not get called

2010-04-15 Thread kennethkawam...@gmail.com
I am monitoring onXMPData as well but that does not get called either.

I am using FLV.

All I wanted from the meta data was the duration of the stream. I can
get that info by calling NetConnection getStreamLength, so that part
is now sorted without receiving the meta data.

However there are numerous other issues with Red5. resume() does not
work after pause(). seek() does not work. I have been spending hours
coming up with "workarounds"...

There are posts about these issues on the net and Red5 tickets have
been raised for few months too. I wonder if FMS works better - but
anyway it's too late now to switch  :(
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 15 April 2010 10:40, allandt bik-elliott (thefieldcomic.com)
 wrote:
> is it using an f4v? because they have an onXMPData which they use which
> fulfills a similar role (although i thought they had metadata as well)
>
> a
>
> On 13 April 2010 17:34, kennethkawam...@gmail.com > wrote:
>
>> Hi Flash Coders,
>>
>> I have this issue: NetStream onMetaData does not get triggered. Using
>> Red5. onPlayStatus does get called correctly without fail though.
>>
>> Basically I need to know the duration of the video.
>>
>> Has anyone ever experienced the same or have any ideas what is going on...?
>> --
>> Kenneth Kawamoto
>> http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] List component transparentBackground?

2010-04-13 Thread kennethkawam...@gmail.com
If you are using Flash IDE, at least you can do this manually. To see
the effect go to Library > Component Assets > ListSkins > List_Skin
and CellRendererSkins > CellRenderer upSkin then change the background
fill alpha to 0.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 13 April 2010 16:21, Carl Welch  wrote:
> Is it possible to make the List Component's background color transparent.
>
> I googled and found this but it doesn't appear to work:
>
> list.setStyle("backgroundDisabledColor", "false");
> list.setStyle("borderStyle" , "none");
>
> is there something else I need to do? or is it even possible.
>
> thx.
> --
> Carl Welch
> http://www.carlwelch.com
> 805.403.4819
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] NetStream onMetaData does not get called

2010-04-13 Thread kennethkawam...@gmail.com
Hi Flash Coders,

I have this issue: NetStream onMetaData does not get triggered. Using
Red5. onPlayStatus does get called correctly without fail though.

Basically I need to know the duration of the video.

Has anyone ever experienced the same or have any ideas what is going on...?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Process issue

2010-03-29 Thread kennethkawam...@gmail.com
Create a Class which processes your XML and dispatches an Event when
it's done. Upon receiving the Event, you can proceed to the next
function.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 29 March 2010 13:56, Lehr, Theodore  wrote:
> The problem is that the function is taking too long to do that... like I have:
>
> function buildXML(_xml:*):void
> {
>    .
>    .
>    buildXML(ixml);
> trace("");
> }
> trace("here");
>
> and it traces to:
>
> here
> ---
> ---
> ---
> ---
> ---
> ---
> ---
> ---
>
> I need someway to fnish buildXML before calling another function..
>
>
> 
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of p...@ipauland.com 
> [p...@ipauland.com]
> Sent: Monday, March 29, 2010 8:44 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Process issue
>
> Generally..
>
>
> var myXML:XML = XML(something);
>
> buildXML(myXML);
> // now all XML is processed
> callotherfunction();
>
>
>
> function buildXML(xml:XML) {
> ..
> if (something){
>      buidlXML(someXML);
> }
>
>
>
>
>
> On 29 March 2010 at 14:13 "Lehr, Theodore"  wrote:
>
>> I have a function that is building some xml through a recursive function...
>> and then call another function once the xml is done
>>
>> how can I tell when it is done being built:
>>
>> I can not do:
>>
>> function buildXML() {
>>
>>
>>      buidlXML();
>>      callotherfunction();
>> }
>>
>> because that would called to much hmm can not figure this out... the
>> buildXML function is taking other XML and canging it to a structure I can
>> use

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


Re: [Flashcoders] xml: counting parents

2010-03-23 Thread kennethkawam...@gmail.com
I am not a database person but I think in this case you would have 2
tables in the database: one for roles/report lines and one for
employees - they are two completely different data sets. (And the 3rd
table for the relationships between the two.)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Counting xml attributes

2010-03-23 Thread kennethkawam...@gmail.com
xml..*.(@attribute == "value").length()
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 23 March 2010 13:20, Lehr, Theodore  wrote:
> Is there a way to loop through xml and count how many times an attribute has 
> a given value?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Recursive:Part II

2010-03-23 Thread kennethkawam...@gmail.com
I won't - the beauty of E4X is to me is that you no longer need to
translate XML into Array or Object like in AS2 days!
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 23 March 2010 11:13, Lehr, Theodore  wrote:
> So does it make sense to think that it would be easier to create an org 
> chart/flow chart like look if I first put the xml into a multi-dimensional 
> array? Or would I be dealing with the same issues?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] xml: counting parents

2010-03-22 Thread kennethkawam...@gmail.com
I don't think you need to know the depth of the node in order to
create a chart because you can traverse the XML and generate the chart
as you go along.

But if you need to know the deapth:

function transformXMLWithParentCount(original:XML, xml:XML, n:uint):void {
for(var i:uint = 0, len:uint = xml.children().length(); i < 
len; i++){
original..*.(@name == xml.children()[...@name && @title 
==
xml.children()[...@title)@parent = n;
transformXMLWithParentCount(original, 
xml.children()[i], n + 1);
}
}

var testXML:XML = 








;

transformXMLWithParentCount(testXML, testXML, 1);
trace(testXML);

Trace:

  

  
  



  


But this fails when you have two or more people with identical name
and title: you should create unique ID for each person :)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 22 March 2010 17:33, Lehr, Theodore  wrote:
> Perhaps I do have a bigger issue (actually, I have LOTS of issues ;-), but 
> the reason I need to know the depth is my thought was to use that as a means 
> of assisting in layout for example, say you have the follwing xml:
>
> 
>     
>           
>                  
>                  
>           
>           
>           
>    
> 
>
> And you used this to create an organizational flow chart... my thought was to 
> use the depth to figure out where the names should go... I have thought about 
> how to do this 12,002 ways so my head is getting muddled
>
> 
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks 
> [flash...@stevensacks.net]
> Sent: Monday, March 22, 2010 1:15 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] xml: counting parents
>
> I think you mean ancestors. A node can only have one parent. Parents can have
> many children.
>
> I think you have a bigger issue, though. Why do you need to know the depth of 
> an
> xml node? I can't think of a single example that I would need that 
> information.
>
>
> On 3/22/2010 9:27 AM, Lehr, Theodore wrote:
>> I am still trying to find a way to see where a child is within the xml - on 
>> what level... is it possible to count a nodes parents?
>>
>> So if I had:
>>
>> 
>>        
>>             
>>             
>>        
>> 
>>
>> 1 would return that it has 0 parents, 2 would say it has 1 parent, 3&  4 
>> would say they have 2 parents
>>
>> hope that makes sense
>>
>> Ted

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


Re: [Flashcoders] xml: counting parents

2010-03-22 Thread kennethkawam...@gmail.com
It's very hackish, but here we go :)

Say you have this recursive function:

private function transformXMLWithParentCount(original:XML, xml:XML,
n:uint):void {
   for(var i:uint = 0, len:uint = xml.children().length(); i < len; i++){
  original..*.(@att == xml.children()[...@att)@parent = n;
  transformXMLWithParentCount(original, xml.children()[i], n + 1);
   }
}

You have this XML:

var testXML:XML = 
 
 


 
 
 
 


 
 
   ;

Then:

transformXMLWithParentCount(testXML, testXML, 0);
trace(testXML);

You should get:


  

  
  

  
  

  
  

  


-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 22 March 2010 16:27, Lehr, Theodore  wrote:
> I am still trying to find a way to see where a child is within the xml - on 
> what level... is it possible to count a nodes parents?
>
> So if I had:
>
> 
>      
>           
>           
>      
> 
>
> 1 would return that it has 0 parents, 2 would say it has 1 parent, 3 & 4 
> would say they have 2 parents
>
> hope that makes sense
>
> Ted

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


Re: [Flashcoders] Fwd: Dynamically superimposing image onto video

2010-03-12 Thread kennethkawam...@gmail.com
Steady camera motion when shooting initial video would create script
friendly sequence and should save a lot of time later - notes to
myself :)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/


On 12 March 2010 15:22, Merrill, Jason  wrote:
> I would agree and guess that's how it's done - overlay a movie clip you
> tween and distort and add objects over the top of - to match the video.
>
>
>
> Jason Merrill
>
> Bank of  America  Global Learning
> Learning & Performance Solutions
>
> Join the Bank of America Flash Platform Community  and visit our
> Instructional Technology Design Blog
> (note: these are for Bank of America employees only)
>
>
>
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan
> Mynarcik
> Sent: Friday, March 12, 2010 8:55 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Fwd: Dynamically superimposing image onto
> video
>
> Why not just overlay a mc that contains your image on top of the video?
>
>
> --Original Message--
> From: kennethkawam...@gmail.com
> Sender: flashcoders-boun...@chattyfig.figleaf.com
> To: Flash Coders List
> ReplyTo: Flash Coders List
> Subject: [Flashcoders] Fwd: Dynamically superimposing image onto video
> Sent: Mar 12, 2010 3:47 AM
>
> Anyone???
>
>>>
>
> Just contemplating the strategy for dynamically superimposing an image
> onto a video. A good recent example is: http://en.tackfilm.se/
>
> Any ideas to achieve this? (Just the final video rendering bit, you
> can leave the file upload etc. ;)
>
> TIA,
>
> Kenneth

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


Re: [Flashcoders] Fwd: Dynamically superimposing image onto video

2010-03-12 Thread kennethkawam...@gmail.com
Yes, basically that. If it's still image it's very easy, but it's a
video - so that the perspective changes and the mask (e.g. to handle
something over-wrapping in front of the image) changes due course.

I probably need to draw the mask by hand frame by frame and control
the perspective of the image by AS. This is not going to be an easy
one... ;)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 12 March 2010 13:55, Nathan Mynarcik  wrote:
> Why not just overlay a mc that contains your image on top of the video?
>
>
> --Original Message--
> From: kennethkawam...@gmail.com
> Sender: flashcoders-boun...@chattyfig.figleaf.com
> To: Flash Coders List
> ReplyTo: Flash Coders List
> Subject: [Flashcoders] Fwd: Dynamically superimposing image onto video
> Sent: Mar 12, 2010 3:47 AM
>
> Anyone???
>
>>>
>
> Just contemplating the strategy for dynamically superimposing an image
> onto a video. A good recent example is: http://en.tackfilm.se/
>
> Any ideas to achieve this? (Just the final video rendering bit, you
> can leave the file upload etc. ;)
>
> TIA,
>
> Kenneth
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Fwd: Dynamically superimposing image onto video

2010-03-12 Thread kennethkawam...@gmail.com
Anyone???

>>

Just contemplating the strategy for dynamically superimposing an image
onto a video. A good recent example is: http://en.tackfilm.se/

Any ideas to achieve this? (Just the final video rendering bit, you
can leave the file upload etc. ;)

TIA,

Kenneth
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread kennethkawam...@gmail.com
A bare-bones example of a navigation button you are after:

// NavigationButton class
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;

public class NavigationButton extends Sprite {
public var href:String;
public var label:String;

public function NavigationButton(h:String, l:String):void {
href = h;
label = l;
init();
}

private function init():void {
mouseChildren = false;
var tf:TextField = new TextField();
with(tf){
autoSize = TextFieldAutoSize.LEFT;
text = label;
}
addChild(tf);
}
}
}
//

...then you create a NavigationButton instance from your document class:

//
 private function init():void {
   var navBtn:NavigationButton = new NavigationButton("index.html", "Home");
   navBtn.addEventListener(MouseEvent.CLICK, navBtnClick);
   addChild(navBtn);
}

private function navBtnClick(e:MouseEvent):void {
   navigateToURL(new URLRequest(e.target.href));
}
//
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 11 March 2010 11:46, Susan Day  wrote:
> On Wed, Mar 10, 2010 at 7:07 PM, Kenneth Kawamoto
>  wrote:
>>
>> If I understand you correctly you want to trace "index.html"?
>>
>> One funky way is...
>>
>> trace(new XML("Home")@href);
>> // traces "index.html"
>>
>> ...therefore if your e.currentTarget.getChildAt(0).htmlText is giving you
>> "Home" you can do:
>>
>> trace(new XML(e.currentTarget.getChildAt(0).htmlText)@href);
>
> I don't know where the heck that took me, something about "go to this
> address here" or some such in the address bar of the browser lol. Yeah,
> pretty out there and crazy. Definitely not elegant, but you knew that, too.
> Karl DeSaulniers asks if I can give the Sprite/MC a name and call that. I've
> tried that and I don't get the results I want; namely, an URL.
> Paul Andrews asks me to state more clearly that for which I am looking.
> Probably a good idea to re-clarify things.
> 1) I have a TextField (TF) to which I assign attributes.
> 2) TF is the child of an MC
> 3) The MC has listeners which call functions
> 4) One of the functions (onClick) requires that a new Web page be opened;
> therefore, either:
>      a) I attach and call the URL to/from the TF, or;
>      b) I do so from the MC.
> TIA,
> Susan

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


Re: [Flashcoders] Passing Call To Child

2010-03-10 Thread kennethkawam...@gmail.com
If you trace e.currentTarget what do you get?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 10 March 2010 14:58, Susan Day  wrote:
> On Wed, Mar 10, 2010 at 10:38 AM, Geografiek wrote:
>
>> Hi Susan,
>> The error means that 'e.currentTarget.getChildByName(aChild).text' dies not
>> exist.
>>
>
> But it does too exist! Not fair! :(
>
>
>> I think the syntax should read
>> e.currentTarget.getChildByName("aChild").text (quotes around aChild as the
>> name of an object is a string)
>>
>
> That made sense, but it still threw the same error. So I tried this:
>
> trace(e.currentTarget.numChildren);
>
> and that, too, threw the same error, collaborating with your evaluation.
> However, I have these lines in the code that calls the function wherein the
> trace is defined:
>
> mySprite.addChild(aChild);
> addChild(mySprite);
>
> so clearly, mySprite, which is the currentTarget:
>
> mySprite.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverHandler);
>
> does indeed have a child. (This is beginning to remind me of certain
> deadbeat fathers who divorce their wives and don't pay alimony lol.) What
> do?
> Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-10 Thread kennethkawam...@gmail.com
If "aChild" is a public property of your currentTarget, your code would work.

If not you can use getChildByName()/getChildAt()
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 10 March 2010 12:05, Susan Day  wrote:
> Hi;
> I have this line of code that I need to fix:
>
> myFunction(e.currentTarget[aChild].text);
>
> That is, I need to target not e.currentTarget but the child of the same
> ("aChild"). How do I do that?
> TIA.
> Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Manipulating and Removing loaded swf

2010-03-09 Thread kennethkawam...@gmail.com
Create a var outside of your functions to reference your loaded SWF:

var mc:MovieClip;

So that you can assign it to your SWF when loaded:

mc = loadEvent.target.content as MovieClip;

Then you can interact with it:

with(mc){
   x = 100;
   y = 200;
}

removeChild(mc);

etc.

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 9 March 2010 14:18, Lehr, Theodore  wrote:
> Given the code below that I found on the web - I have 2 questions:
>
> 1) How would I manipulate the swf (i.e. change it's placement on the stage)
>
> 2) How would I remove it?
>
>
> TIA
>
> Ted
>
> import flash.net.URLRequest;
> import flash.display.Loader;
> import flash.events.Event;
> import flash.events.ProgressEvent;
>
> function startLoad()
> {
> var mLoader:Loader = new Loader();
> var mRequest:URLRequest = new URLRequest(“MouseActions.swf”);
> mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
> mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, 
> onProgressHandler);
> mLoader.load(mRequest);
> }
>
> function onCompleteHandler(loadEvent:Event)
> {
>        addChild(loadEvent.currentTarget.content);
> }
> function onProgressHandler(mProgress:ProgressEvent)
> {
> var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
> trace(percent);
> }
> startLoad();

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


Re: [Flashcoders] Re: Pop up window locally

2010-03-03 Thread kennethkawam...@gmail.com
Can you test it from HTML? i.e. http://www.materiaprima.co.uk/

On 3 March 2010 17:58, natalia Vikhtinskaya  wrote:
> But if locally I test script like
> getURL 
> ("javascript:NewWindow=window.open('http://www.somename.com/key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0);");
> this script  works in IE and opens pop up window
>
>
> 2010/3/3 natalia Vikhtinskaya :
>> Hi
>> I cannot find solution for this small problem
>> Simple code
>> getURL 
>> ("javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0);");
>>
>>
>> That opens pop up window when I test it  from the server and does not
>> open pop up window when I test it locally on computer.
>> Thanks for any help.

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


[Flashcoders] Dynamically superimposing image onto video

2010-03-03 Thread kennethkawam...@gmail.com
Just contemplating the strategy for dynamically superimposing an image
onto a video. A good recent example is: http://en.tackfilm.se/

Any ideas to achieve this? (Just the final video rendering bit, you
can leave the file upload etc. ;)

TIA,

Kenneth
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Pop up window locally

2010-03-03 Thread kennethkawam...@gmail.com
Browsers such as IE blocks local JavaScript execution from SWF.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 3 March 2010 16:18, natalia Vikhtinskaya  wrote:
> Hi
> I cannot find solution for this small problem
> Simple code
> getURL 
> ("javascript:NewWindow=window.open('key16.html','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');void(0);");
>
>
> That opens pop up window when I test it  from the server and does not
> open pop up window when I test it locally on computer.
> Thanks for any help.

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


Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
Downloaded external assets would be cached therefore the browser
should take no time to access it next time around.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 February 2010 19:13, Victor Subervi  wrote:
> On Fri, Feb 26, 2010 at 3:07 PM, kennethkawam...@gmail.com <
> kennethkawam...@gmail.com> wrote:
>
>> Then when the splash finishes playing just go to another HTML with
>> your contents.
>>
>
> Just to be dead clear...
> 1) The fake preloader is not the splash. It will load the heavy image that
> is used in both the splash and the main html page with the embedded object.
> 2) The fake preloader will redirect to the main html page that is "covered"
> by the splash page which alphas out.
>
> That will work? The assets loaded in the fake preloader will carry over?
> TIA,
> V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
Then when the splash finishes playing just go to another HTML with
your contents.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 February 2010 19:01, Victor Subervi  wrote:
> On Fri, Feb 26, 2010 at 2:56 PM, kennethkawam...@gmail.com <
> kennethkawam...@gmail.com> wrote:
>
>> Does your "preloader" load your splash movie? Or is it just an intro movie?
>>
>
> It loads the splash currently.
> V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
Does your "preloader" load your splash movie? Or is it just an intro movie?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 February 2010 18:04, Victor Subervi  wrote:
> On Fri, Feb 26, 2010 at 1:52 PM, kennethkawam...@gmail.com <
> kennethkawam...@gmail.com> wrote:
>
>> No - I just didn't understand what you wanted :)
>>
>> Are you trying to manipulate HTML from SWF? If so you can call
>> Javascript function using ExternalInterface.call().
>>
>
> I don't think that's what I want. What I want...
> 1) preloader shows up
> 2) splash page shows up
> 3) regular html page with flash object shows up
>
> That's it!!
>
> Now, I have the splash page and regular html page playing nicely together.
>
> How do I get the cotton-pickin preloader to cooperate?!
> TIA,
> V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
No - I just didn't understand what you wanted :)

Are you trying to manipulate HTML from SWF? If so you can call
Javascript function using ExternalInterface.call().
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 February 2010 17:21, Victor Subervi  wrote:
> On Fri, Feb 26, 2010 at 11:47 AM, kennethkawam...@gmail.com <
> kennethkawam...@gmail.com> wrote:
>
>> There are many ways to achieve what (I think) you want to achieve but
>> may be the most simple way is to place your intro SWF in one HTML and
>> when it finishes playing go to another HTML page contains your main
>> stuff.
>>
>
> What, with a timer? The problem is the way it is now, I dissolve the alpha
> of the splash and reveal the regular page beneath it.
> TIA.
> V
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Can u combine....

2010-02-26 Thread kennethkawam...@gmail.com
Can you set a private var other functions can use?
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 26 February 2010 14:24, Lehr, Theodore  wrote:
> ..how to combine:
>
> function loadXML(dfile:String):void
> {
>   urlLoader.load(new URLRequest(dfile));
>   urlLoader.addEventListener(Event.COMPLETE, parseXML);
> }
>
> function parseXML(e:Event):void
> {
>   xmlFile:new XML(e.target.data);
>   totalBars = xmlFile.children().length();
> }
>
>
> My goal is to send the first function additional parameters that would be 
> used in additonal function calls right now I do not see how to send those 
> on to parseXML my thought was if there was a way to combine these two 
> functions - it would be easier

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


Re: [Flashcoders] Preloader, Pt. 2

2010-02-26 Thread kennethkawam...@gmail.com
There are many ways to achieve what (I think) you want to achieve but
may be the most simple way is to place your intro SWF in one HTML and
when it finishes playing go to another HTML page contains your main
stuff.

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/


On 26 February 2010 14:17, Victor Subervi  wrote:
> Hi;
> Now that I've got the preloader working, not sure how to attach it. That is,
> I have an intro/splash page that "covers" an HTML page and then is removed
> with css:
>
> 
>  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";
> WIDTH="1008.0" HEIGHT="785.0" id="myMovieName">
>
> 
> 
> 
>  quality=high bgcolor=#FF WIDTH="1008.0" HEIGHT="785.0"
> NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
> PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer";>
> 
> 
> 
>  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0";
> WIDTH="1008" HEIGHT="200" id="globaloilcounter_external1">
> 
> 
> 
>  WIDTH="1008" HEIGHT="200" NAME="GlobalSolutions" ALIGN=""
> TYPE="application/x-shockwave-flash"
> PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer";>
> 
> 
>
> and then lots of html here.
>
> How do I make the preloader work? Do I simply create another div and call it
> before the splash?
> TIA,
> Victor
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Matrix Transformation Problem

2010-02-17 Thread kennethkawam...@gmail.com
I used "Arial" for the embedded font so you need to change that to
your font name. Otherwise my example is very simple and should work :)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 17 February 2010 16:23, Susan Day  wrote:
> On Wed, Feb 17, 2010 at 11:47 AM, kennethkawam...@gmail.com <
> kennethkawam...@gmail.com> wrote:
>
>> Your transformation code may be a little too funky :)
>>
>> I (drastically) simplified your code and it works fine:
>>
>> private function companyName():void {
>>    var coName:TextField = new TextField();
>>    with(coName){
>>      x = 100;
>>      y = 100;
>>      autoSize = TextFieldAutoSize.LEFT;
>>      embedFonts = true;
>>      defaultTextFormat = new TextFormat("Arial", 40, 0);
>>      text = "Company Name";
>>      filters = [new DropShadowFilter(10, 0, 0, 0.5, 10, 10)];
>>   }
>>   addChild(coName);
>>
>>   //transform
>>    var degX:Number = 15;
>>   var degY:Number = 15;
>>    var m:Matrix = new Matrix();
>>    m.b = Math.tan(degY*Math.PI/180);
>>    m.c = Math.tan(degX*Math.PI/180);
>>   coName.transform.matrix = m;
>> }
>>
>
> Kenneth, this didn't work for me. However, Cor's recommendation he just
> emailed me did. Nonetheless, I'm curious about your simplification because
> I'd like to get that simplified code working. Here's what I built that
> didn't work. I think you can safely disregard all the extra import
> statements. I've stripped down my code considerably to the necessary only:
>
> package
> {
> import flash.geom.Transform;
> import flash.filters.DropShadowFilter;
> import flash.text.TextField;
> import flash.text.TextFormat;
> import flash.text.TextFormatAlign;
> import flash.text.TextFieldAutoSize;
> import flash.geom.Matrix;
> import flash.events.IOErrorEvent;
> import flash.filters.GlowFilter;
> import flash.display.Sprite;
> import flash.events.Event;
> import flash.events.ProgressEvent;
> import flash.events.Event;
> import flash.events.MouseEvent;
> import flash.display.MovieClip;
> import flash.display.Loader;
> import flash.display.LoaderInfo;
> import flash.display.DisplayObject;
> import flash.net.URLRequest;
> import flash.display.Shape;
> import flash.geom.*;
> import flash.display.Bitmap;
> import flash.display.BitmapData;
> import flash.filters.GlowFilter;
> import flash.filters.BitmapFilterQuality;
> import flash.geom.Rectangle;
> import com.greensock.*;
> import com.greensock.easing.*;
> import flash.text.Font;
>  public class DesertSands extends MovieClip
> {
>  public function DesertSands():void
> {
> var coName:TextField = new TextField();
> with(coName){
> x = 100;
> y = 100;
> autoSize = TextFieldAutoSize.LEFT;
> embedFonts = true;
> defaultTextFormat = new TextFormat("Arial", 40, 0);
> text = "Company Name";
> filters = [new DropShadowFilter(10, 0, 0, 0.5, 10, 10)];
> }
> addChild(coName);
>
> /*
> var degX:Number = 15;
> var degY:Number = 15;
> var m:Matrix = new Matrix();
> m.b = Math.tan(degY*Math.PI/180);
> m.c = Math.tan(degX*Math.PI/180);
> coName.transform.matrix = m;
> */
> }
> }
> }
>
> TIA,
> Susan

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


Re: [Flashcoders] Matrix Transformation Problem

2010-02-17 Thread kennethkawam...@gmail.com
Your transformation code may be a little too funky :)

I (drastically) simplified your code and it works fine:

private function companyName():void {
   var coName:TextField = new TextField();
   with(coName){
  x = 100;
  y = 100;
  autoSize = TextFieldAutoSize.LEFT;
  embedFonts = true;
  defaultTextFormat = new TextFormat("Arial", 40, 0);
  text = "Company Name";
  filters = [new DropShadowFilter(10, 0, 0, 0.5, 10, 10)];
   }
   addChild(coName);

   //transform
   var degX:Number = 15;
   var degY:Number = 15;
   var m:Matrix = new Matrix();
   m.b = Math.tan(degY*Math.PI/180);
   m.c = Math.tan(degX*Math.PI/180);
   coName.transform.matrix = m;
}

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 15 February 2010 16:44, Susan Day  wrote:
> Hello;
> I'm trying to get a matrix transformation to work. The thing about my code
> is that it prints to screen just fine without any exceptions...but it
> doesn't skew the text as I'd like it to. Here's my function. All variables
> defined earlier in code (again, everything works except the transform):
>
> function companyName():void
> {
> var coName:TextField = new TextField();
> coName.text = 'Company Name';
> coName.textColor = 0xFF;
> coName.autoSize = TextFieldAutoSize.LEFT;
> coName.x = 550;
> coName.y = 55;
> var format:TextFormat = new TextFormat();
> format.font = myFont.fontName;
> format.size = 40;
> coName.setTextFormat(format);
> var dropShadow:DropShadowFilter = new DropShadowFilter();
> dropShadow.color = 0x00;
> dropShadow.blurX = 10;
> dropShadow.blurY = 10;
> dropShadow.angle = 0;
> dropShadow.alpha = 0.5;
> dropShadow.distance = 10;
> var filtersArray:Array = new Array(dropShadow);
> coName.filters = filtersArray;
> target.addChild(fontContainer);
> fontContainer.addChild(coName);
> addChild(fontContainer);
> var degX:Number = 15;
> var degY:Number = 15;
> var m:Matrix = transform.matrix;
> m.b = Math.tan(degY *(Math.PI/180));
> m.c = Math.tan(degX *(Math.PI/180));
> var t:Transform = new Transform(target);
> t.matrix = m;
> target.transform = t;
> }
>
> TIA,
> Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread kennethkawam...@gmail.com
In this case you may use String as parameter for the constructor.

var xmlList:XMLList = new XMLList('');

You can also use Boolean and Number as parameter :)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 10 February 2010 14:37, Alexander Farber  wrote:
> Sorry for one more probably basic XML question,
> but how do you create an XMLList object? I've tried:
>
> var list:XMLList =
>  whist2="100" />
>  whist1="10.20.100.300" whist2="100" />
> ;
>
> var list:XMLList = XMLList(
>  whist2="100" />
>  whist1="10.20.100.300" whist2="100" />
> );
>
> var list:XMLList = XMLList('
>  whist2="100" />
>  whist1="10.20.100.300" whist2="100" />
> ');
>
> These all return errors, like for the 2nd one:
>
> 1084: Syntax error: expecting rightparen before pos.
>
> Regards
> Alex
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] E4X question

2010-02-03 Thread kennethkawam...@gmail.com
You can condense it a little:

var xmllist:XMLList = xml.p.(child("s") == animal);

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 3 February 2010 15:21, Jer Brand  wrote:
> Give this a try -- worked for me : )
>
>
> var x:XML = new XML("dog id='2'>catbird id='4'>dog") ;
> var animal:String = "dog" ;
> var list:XMLList = x.p.(child('s').text()[0] == animal) ;
> trace(list.toXMLString())
>
> // traces...
>
> 
>  dog
> 
> 
>  dog
> 
>
> Jer

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


Re: [Flashcoders] WIRED hates Flash

2010-01-29 Thread kennethkawam...@gmail.com
There's Flash Player written in Javascript (Gordon) - it's not
deployable yet but there's a hope ;)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/


On 29 January 2010 14:53, Merrill, Jason
 wrote:
> I'm waiting for Apple to be sued by the Lego company for the use of the
> little blue missing component icon.
>
> Seriously though, the argument tires on me when people cite video
> capabilities in HTML 5 will mean the demise of Flash, but those people
> never mention the fact that flash is so much more than just a great
> video experience.  Sometimes it seems like people think video is the
> only thing Flash is used for.
>
> On a separate note, I'm really not hopeful we'll ever see Flash (or
> Silverlight) on the iPhone/iTouch or iPad and that's unfortunate.
>
> Jason Merrill
>
> Bank of  America  Global Learning
> Learning & Performance Soluions
>
> Join the Bank of America Flash Platform Community  and visit our
> Instructional Technology Design Blog
> (note: these are for Bank of America employees only)

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


Re: [Flashcoders] Flash and MySQL

2010-01-29 Thread kennethkawam...@gmail.com
> AS3 language,there is no support for MySQL (or presumably for any database 
> engine)

I am just looking at AS3 documentation right now; there are 19 classes
begin with the word "SQL". I wonder if they are something to do with
database... (OK, they are AIR only but they are still AS3 :)

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 29 January 2010 13:37, beno -  wrote:
> Hi;
> It dawned on me that in my study thus far of this very sophisticated AS3
> language, there is no support for MySQL (or presumably for any database
> engine). A quick preliminary search confirms that. Why? Will there be?
> beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Why is my HTML file so huge

2009-12-17 Thread kennethkawam...@gmail.com
Which version of Flash and what publish settings are you using? But in
any case I would not use Flash IDE for generating HTML. Do it manually
using SWFObject (which will be used if you publish from Flash CS5 :)

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/


2009/12/17 Alan Neilsen :
> Hi List
>
> I don't recall changing any publish settings for my HTML file, but when I 
> publish my SWF its HTML file ends up 2,582 KB instead of the expected 10 or 
> 12 KB. When I open the HTML file I find it is the same as earlier back-up 
> versions that were 10 KB, but for some reason when these later versions get 
> to,  they now list all the text in the SWF many, 
> many, many times with lines like:
>
>  letterSpacing="0.00" kerning="1">General data about timber framing 
> products to go here.
>
> The HTML code then goes on like that for more than 14,000 lines with, as I 
> said, many repetitions of all the text used in the SWF.
>
> I have seen this sort of thing before, but have no idea what is causing it. 
> Can anybody shed light on this for me?
>
> Alan Neilsen

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


Re: [Flashcoders] simple E4X question, getting two types of nodes

2009-12-01 Thread kennethkawam...@gmail.com
This may work for you?

xml.child("*").(new RegExp("dog|bird").test(name()))

-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

2009/12/1 Mendelsohn, Michael :
> Thanks for replying Jason.  I'd do that, but I'm also trying to preserve the 
> order in which things occur, like given this xml...
> 
>        
>        
>        
>        
>        
>        
>        
>        
> 
>
> ...then, I'd traverse the resulting XMLList, and using a switch statement, 
> render things a certain way on the stage, but keeping the order.
> So, in other words, only the dog and bird tags should render, and in order 
> that they occur.
>
> - Michael M.

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


Re: [Flashcoders] re: alpha for dynamic text without embedding font

2009-10-29 Thread kennethkawam...@gmail.com
I did say this before, but you can do this in Flash 10 - you do not
need to embed fonts to apply alpha values to TextFields.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

2009/10/29 Kevin McFarland :
> As I described in my eMail I'm using author-time created assets. Follow the
> steps I described, you should see the same thing.
>
> Note: just verified that setting the alpha programmatically via AS
> (following setting the text of the dynamic field) instead of manually on the
> timeline, makes no difference.
>
> Note: this is not a solution I'm looking for. I was just trying to correct
> what I saw as some inaccurate answers to another poster's question.
>
>>Try it the other way.
>>*create mc
>>*create textfield
>>*load text
>>*change alpha of mc
>>
>>Karl
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] alpha on text without embedding font

2009-10-26 Thread kennethkawam...@gmail.com
Yes - just export to Flash 10 ;)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

2009/10/25 Pedro Kostelec :
> Hi,
>
> is there a way to set alpha transparency to dynamically imported text with
> as3 without having to embed the font?
>
> Thanks,
> Pedro Kostelec
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Converting .swf playback to .mov

2009-10-21 Thread kennethkawam...@gmail.com
CS4 feature list says:

QuickTime export

Render content published in a SWF file as a QuickTime video using the
advanced QuickTime exporter. Export content that includes nested
MovieClips, content generated with ActionScript language, and runtime
effects such as drop shadow and blur.

...however personally I have never used QT export feature in CS4, and
also I have read someone saying there are issues with rendering
filters.
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

2009/10/21 Joel Stransky :
> Ok, I'm well aware of the limitation in exporting an .fla to quicktime. You
> only get the main timeline, no sub clips or scripted animation. What I'm
> asking is if there's some new product on the market that has tackled this
> issue successfully. So far is looks like a screen reader is the way to go,
> I'd just like to get some alpha (key) control over the output that doesn't
> require me recording it over a green background.
>
> Thanks for any direction.
>
> --
> --Joel Stransky
> stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders