Re: [Flashcoders] Reading SWF headers with ASP

2008-04-28 Thread bkettles
Are you trying to get width & height in a live situation, or would an offline 
solution do?

-Buzz

 -- Original message --
From: "Helmut Granda" <[EMAIL PROTECTED]>
> Hi All,
> 
> I have done some extensive research in the subject and the only
> solution I found is a ASP class some one wrote in 2001 and it is outdated.
> Does anyone knows how to read the SWF headers with ASP? I know how to do it
> with PHP but I havent found a solution with ASP.
> 
> Mainly I am trying to get width and height.
> 
> TIA
> ___
> 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] Reading SWF headers with ASP

2008-04-28 Thread Juan Pablo Califano
In native classic ASP (without any extra components installed in the
server), I'd say it's almost impossible. Maybe if the swf is uncompressed,
you can give it a shot, reading the file with a FileSystemObject -which is
meant to read text files- and using some single-byte string encoding and
reading the chars values with de asc() function. Ugly, but it should be
possible (it's not a peace of cake, though, considering the fact that VBS
doesn't even have a syntax for bit shifting, so you'd have to craft
some functions for that).

But the biggest problem is, most swf's are compressed since version 6, and
except the first 8 bytes (signature + version + file_size), the rest of the
header itself is deflated (as well as the rest of the file). As far as I
know, classic ASP doesn't support deflating natively, so that would be a
major problem -- and I'm not sure if there's some work around to that
limitations.


Cheers
Juan Palblo Califano


2008/4/28, Helmut Granda <[EMAIL PROTECTED]>:
>
> Hi All,
>
>I have done some extensive research in the subject and the only
> solution I found is a ASP class some one wrote in 2001 and it is outdated.
> Does anyone knows how to read the SWF headers with ASP? I know how to do
> it
> with PHP but I havent found a solution with ASP.
>
> Mainly I am trying to get width and height.
>
>TIA
> ___
> 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] Loosing full-screen when loosing focus

2008-04-28 Thread Rich Shupe
I don't think it's possible to prevent this in the browser. It's probably
possible when using a third-party projector enhancer like mProjector, but
you'd have to test.

Rich
http://www.LearningActionScript3.com


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


Re: [Flashcoders] addCuePoint - AS2

2008-04-28 Thread Jason Van Cleave
I don't think cuepoints are anything inherit to Flash video/NetStream class
but just information that is injected in the flv metadata during encoding.

If you create an array to hold cuepoints as objects and track them with an
interval watching NetStream.time you should be able to create the same
effect.

You could also dig into the mx.video.FLVPlayback and
mx.video.CuePointManager classes to see how Macromedia did it.


On Mon, Apr 28, 2008 at 3:11 PM, chas warn <[EMAIL PROTECTED]> wrote:

> You can  do it is through the Flash8 flv video encoder.  Then use
> onCuePoint
>
> On Mon, Apr 28, 2008 at 8:53 AM, Pavel Krusek <[EMAIL PROTECTED]>
> wrote:
>
> > Hello everyone,
> >
> > please is possible adding cue points throught actionscript directly on
> > NetStream object (without FLVPlayback component)?
> >
> > In AS documentation i see only onCuePoint handler, no method like
> > addCuePoint
> >
> > thanks,
> >
> > Pavel
> > ___
> > 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] Reading SWF headers with ASP

2008-04-28 Thread Helmut Granda
Hi All,

I have done some extensive research in the subject and the only
solution I found is a ASP class some one wrote in 2001 and it is outdated.
Does anyone knows how to read the SWF headers with ASP? I know how to do it
with PHP but I havent found a solution with ASP.

Mainly I am trying to get width and height.

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


[Flashcoders] Loosing full-screen when loosing focus

2008-04-28 Thread Bart Goormans

Dear Listers,
( I just joined the mailinglist so if I'm way out off topic with my 
question here, pls let me know.)


I wondered if one could tell a full-screen swf (CTRL+F in flashplayer) 
to stay full-screen after loosing focus?

I found little or no documentation about this toppic.

At  
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode_print.html 


Tracy Stampfli says:
   "...The full-screen mode in Flash Player is initiated through
   ActionScript and *can be* terminated through ActionScript,
   keyboard shortcuts, or by the user switching focus to
   another window."

Not "...*will be* terminated..."  which is practically the case. Are 
there some settings to prevent leaving full-screen mode? This would be 
especially nice when having a dual screen setup with one screen 
playing(projecting) an SWF presentation and the other having ready to do 
some administrating or whatever. Any thoughts?


Thank you guys!
Bart

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


Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-28 Thread Paolo Nicoletti

Hello Erik,
I always try to clean every addEventListener I put in my code, but, as 
you said, Timer, Stage and EnterFrame events are in fact the ones that 
cause the problems.
In fact this little application is useful only for tracking event 
listeners that the programmer has forgotten to remove.

This can happen sometimes, at least to me ;-)
On the other hands, the application is useful also to get a sense of the 
code written by third parties in the case you have to load their assets 
in your main container.


Paolo


EECOLOR ha scritto:

If I recall correctly, the problem only exists with event listeners for
Timer, stage and EnterFrame event listeners.

Stage listeners are easy to clean up. If you ever attach a listener to the
stage, add it within the ADDED_TO_STAGE handler, make sure you remove it
within the REMOTED_FROM_STAGE handler. I am not sure, but I think using a
weak listener here would do the trick as well and would prevent you from
needing to remove it.

As for Timer and EnterFrame events, make sure you never run them forever. In
all cases I can think of, there is no need to let them run forever. Running
them forever is just lazy programming. If you have a usecase where one of
these would run forever I am interested in it :)

As for normal events, this has (as far as I can tell) nothing to do
with problem mentioned by grant.


Greetz Erik


On 4/28/08, Paolo Nicoletti <[EMAIL PROTECTED]> wrote:
  

Ok let's retry... plain text this time.

Hello there,
After having read that post you signaled (and the ones related to GC
issues), I wrote a really simple Air application that scans one or more
directories for actionscript files and checks their content to see whether
or not every addEventListener has a corresponding removeEventListener set.
You can find it here:
http://www.genereavventura.com/app/addeventseeker/index.html
Sometimes it can be useful.
Paolo

P.S. I apologizes for having sent this message twice...



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

  


--
Change Signature

Murphy's First Law: Nothing is as easy as it looks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Sr. Flash Developer Position

2008-04-28 Thread Bright, Michael
Sorry for the e-mails...I'm not trying to Spam, just looking to fill a
position.  This will be my last e-mail to the group. 


Regards, Michael Bright
Recruiter, MTV Networks
(310) 752-8641
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: Monday, April 28, 2008 11:45 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Sr. Flash Developer Position

This is the first (and, unfortunately, I doubt the last) installment of
my "Recruiters Who Spam" series.

Michael Bright is a spammer.  If he has spammed you, as well, won't you
share your experience?  Here's mine.

Michael Bright emailed me twice, and then posted about his position
twice in two days in the comments of one of my old blog posts from last
October.  He has done this to other people I know, as well.

Michael is the second recruiter to do this specific thing - spam
multiple emails and then spam their job posting on a blog post of mine
they believe might show up in certain search queries.

Recruiters:  Post your jobs on osflash.org, post once on Flashcoders and
Flash_tiger, post on Krop.com.  Don't spam!

___
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] Converting a ByteArray to string and back again...

2008-04-28 Thread EECOLOR
To me that seems to work perfectly:

var a:Array = new Array();
a.push("hello");
a.push("this");
a.push("is");
a.push("a");
a.push("test");

var ba:ByteArray = new ByteArray();
ba.writeObject(a);
ba.position = 0;

var ba2:ByteArray = new ByteArray();
ba2.writeUTFBytes(ba.toString());
ba2.position = 0;

trace(ba2.readObject() is Array);
ba2.position = 0;
trace(ba2.readObject());

Instead of ba.toString you could also use ba.readUTFBytes.


Greetz Erik


On 4/26/08, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> Hi John,
>I'm surprised writeUTFBytes doesn't work - in what way doesn't it work?
>
>
> Ian
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to compare 2 dynamic Arrays

2008-04-28 Thread EECOLOR
I think you could use a ByteArray to do it. It would be (from the top of my
head) something like this:

sBA = new ByteArray();
sBA.writeObject(sArray);

var t1BA:ByteArray = new ByteArray();
t1BA.writeObject(t1Array);

trace(sBa.toString() == t1BA.toString());


Greetz Erik


On 4/28/08, ACE Flash <[EMAIL PROTECTED]> wrote:
>
> 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?
>
>
> http://www.privatepaste.com/901OpAMhtn
>
> Thank You
> ___
> 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] Is Adobe fixing this big FP9 problem?

2008-04-28 Thread EECOLOR
If I recall correctly, the problem only exists with event listeners for
Timer, stage and EnterFrame event listeners.

Stage listeners are easy to clean up. If you ever attach a listener to the
stage, add it within the ADDED_TO_STAGE handler, make sure you remove it
within the REMOTED_FROM_STAGE handler. I am not sure, but I think using a
weak listener here would do the trick as well and would prevent you from
needing to remove it.

As for Timer and EnterFrame events, make sure you never run them forever. In
all cases I can think of, there is no need to let them run forever. Running
them forever is just lazy programming. If you have a usecase where one of
these would run forever I am interested in it :)

As for normal events, this has (as far as I can tell) nothing to do
with problem mentioned by grant.


Greetz Erik


On 4/28/08, Paolo Nicoletti <[EMAIL PROTECTED]> wrote:
>
> Ok let's retry... plain text this time.
>
> Hello there,
> After having read that post you signaled (and the ones related to GC
> issues), I wrote a really simple Air application that scans one or more
> directories for actionscript files and checks their content to see whether
> or not every addEventListener has a corresponding removeEventListener set.
> You can find it here:
> http://www.genereavventura.com/app/addeventseeker/index.html
> Sometimes it can be useful.
> Paolo
>
> P.S. I apologizes for having sent this message twice...
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] addCuePoint - AS2

2008-04-28 Thread chas warn
You can  do it is through the Flash8 flv video encoder.  Then use
onCuePoint

On Mon, Apr 28, 2008 at 8:53 AM, Pavel Krusek <[EMAIL PROTECTED]>
wrote:

> Hello everyone,
>
> please is possible adding cue points throught actionscript directly on
> NetStream object (without FLVPlayback component)?
>
> In AS documentation i see only onCuePoint handler, no method like
> addCuePoint
>
> thanks,
>
> Pavel
> ___
> 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] URLLoader Class and some thinking

2008-04-28 Thread Jesse Graupmann
An alternate version...

QueueLoader
http://code.google.com/p/queueloader-as3/
http://blog.hydrotik.com/category/queueloader/ 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
Jakub Jankun
Sent: Monday, April 28, 2008 1:10 AM
To: Flash Coders List
Subject: Re: [Flashcoders] URLLoader Class and some thinking

Thanks Andrei!

Seems to be execlty what I was looking for :)


On 4/28/08 12:08 AM, "Andrei Thomaz" <[EMAIL PROTECTED]> wrote:

> maybe this helps you:
> http://code.google.com/p/bulk-loader/ 
> 
> []'s
> andrei
> 


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


Re: [Flashcoders] Sr. Flash Developer Position

2008-04-28 Thread Steven Sacks
This is the first (and, unfortunately, I doubt the last) installment of 
my "Recruiters Who Spam" series.


Michael Bright is a spammer.  If he has spammed you, as well, won't you 
share your experience?  Here's mine.


Michael Bright emailed me twice, and then posted about his position 
twice in two days in the comments of one of my old blog posts from last 
October.  He has done this to other people I know, as well.


Michael is the second recruiter to do this specific thing - spam 
multiple emails and then spam their job posting on a blog post of mine 
they believe might show up in certain search queries.


Recruiters:  Post your jobs on osflash.org, post once on Flashcoders and 
Flash_tiger, post on Krop.com.  Don't spam!


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


RE: [Flashcoders] Sr. Flash Developer Position

2008-04-28 Thread Bright, Michael
Steve:  Give me a call. 


Regards, Michael Bright
Recruiter, MTV Networks
(310) 752-8641
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Mathews
Sent: Friday, April 25, 2008 5:16 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Sr. Flash Developer Position

That describes me to a tee! I'll take the job. How much are you going to
pay me?

On 4/25/08, Bright, Michael <[EMAIL PROTECTED]> wrote:
> Bob:  I had difficulty posting to this site.  Basically we're looking 
> for a Sr. Flash Developer with ActionScript v3 experience.
>
>
>
> Regards, Michael Bright
> Recruiter, MTV Networks
> (310) 752-8641
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Bob 
> Wohl
> Sent: Friday, April 25, 2008 4:24 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Sr. Flash Developer Position
>
> I have read over your entire document and I have to tell ya, those 
> requirements are pie!
>
> ;)
>
> B.
> p.s. may wanna copy paste the info, hth!
>
> On Fri, Apr 25, 2008 at 10:58 AM, Bright, Michael < 
> [EMAIL PROTECTED]> wrote:
>
> > Flashcoders:  I'm a recruiter at MTV Networks and support all our 
> > digital properties.  We have an opening (Full Time) for a Sr. Flash 
> > Developer at our Spike.com property. It's a really great group of 
> > people, and a dynamic product.  I have attached a job description 
> > for your review. Please e-mail me if interested.  Regards, Michael
Bright:
> > [EMAIL PROTECTED]
> >
> >
> > Regards, Michael Bright
> > Recruiter, MTV Networks
> > (310) 752-8641
> > [EMAIL PROTECTED]
> >
> >
> >  <>
> >
> > ___
> > 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

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


Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-28 Thread Paolo Nicoletti

Ok let's retry... plain text this time.

Hello there,
After having read that post you signaled (and the ones related to GC 
issues), I wrote a really simple Air application that scans one or more 
directories for actionscript files and checks their content to see 
whether or not every addEventListener has a corresponding 
removeEventListener set.

You can find it here:
http://www.genereavventura.com/app/addeventseeker/index.html
Sometimes it can be useful.
Paolo

P.S. I apologizes for having sent this message twice...

Merrill, Jason ha scritto:

Does anyone know if Adobe is fixing this huge FP9 problem?

http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html


Jason Merrill
Bank of America  
GT&O and Risk L&LD Solutions Design & Development 
eTools & Multimedia 


Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GT&O Innovative Learning Blog & subscribe.




___
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] Is Adobe fixing this big FP9 problem?

2008-04-28 Thread Paolo Nicoletti

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


[Flashcoders] MouseUp and MouseDown Events in TileList Componenet in AS 3.0

2008-04-28 Thread anuj sharma
Hi Guys
I am trying to implement drag and drop from the tile list component  to the
main stage. I would be successful in loading dynamic videos in the tileList
component and double clicking on any video in the tile list, will open the
main video on the main stage( Code is attached). The main video is loaded in
the UILoader. How ever I have to implement the same functionality with the
drag and drop of the video thumbnails. The user should be able to drag any
thumbnail and drop on the main stage which will do the same thing when he
double clicks on the thumbnail( the difference is in drag-drop case
Video(UILoader) will be placed wherever user left his mouse). I am not sure
in AS 3.0 how will i implement drag and drop using MOUSE UP and MOUSE DOWN
in the tilelist component . Anyone has any idea, please help me out
Thanks
Anuj

/CODE FOR DOUBLE CLICK
myTileList.addEventListener(MouseEvent.DOUBLE_CLICK,OpenVideoOnDoubleClicking);

//Double Clicking  of thumbnail
function OpenVideoOnDoubleClicking(event:MouseEvent):void
{
TileTrack=event.currentTarget;
TileIndex=TileTrack.selectedIndex;
CreateUILoaderObject(TileIndex); //This function will creae UILoader to
the main stage by tracking the index of TileList
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 class definition problem, Gaia framework

2008-04-28 Thread Juan Pablo Califano
Hi,

You should place the var declaration in the body of the class, but the call
to createEmptyMovieClip and loadMovie should be within some method.

// var declaration
private var posterMc:MovieClip;

// var use
private function someMethod():Void {
 posterMc = this.createEmptyMovieClip('posterMc',100);
 this.posterMc.loadMovie('adv_saleposter.swf');
}


Cheers
Juan Pablo Califano


2008/4/28, Jim McIntyre <[EMAIL PROTECTED]>:
>
> I'm working in a framework for the first time (Gaia). I'll be including
> games on some of the site's "pages," and most of the games will need to load
> a few external SWFs.
>
> In the (AS2) class file for the page I'm trying to modify, I'm trying to
> add this code inside the class constructor function (which is provided in
> the Gaia AS template), so that the SWF is loaded when the page is
> initialized:
>
> --code begins--
>  private var posterMc:MovieClip =
> this.createEmptyMovieClip('posterMc',100);
>  this.posterMc.loadMovie('adv_saleposter.swf');
> --code ends--
>
> The second line of the above code is producing a compile error that says
> "This statement is not permitted in a class definition." (The script is
> actually full of lines that produce the same error, which indicates I'm way
> off base.)
>
> Can someone help me pull my head out of my AS2 and tell me what's wrong
> with my approach? I'm sure this points to a bigger design problem than I
> realize...
>
> TIA,
> Jim
> ___
> 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] Using FlexBuilder3 profiler with FlashCS3

2008-04-28 Thread Sunil Jolly
If you enable debugging in your SWF and use a debug version of the flash
player, then you can use the "Profile external application" option.
After selecting that, select "Launch the application manually outside
Flex Builder" and hit "Launch".

If you have trouble, try using a different browser and/or changing the
port number under preferences->Flex->Profiler->Connections.

Hope that helps!

Sunil

-Original Message-
From: Jon Bradley [mailto:[EMAIL PROTECTED] 
Sent: 25 April 2008 18:07
To: Flash Coders List
Subject: Re: [Flashcoders] Using FlexBuilder3 profiler with FlashCS3

Good question. I haven't tried that yet.

What you could try to do, off the top of my head, is use the  
SWFLoader and load up the SWF file into a simple Flex application. I  
believe the profiler will also profile the content loaded through  
SWFLoader, but I'm not certain of it.

good luck!

jon

On Apr 25, 2008, at 12:59 PM, Martin Tremblay wrote:

>
> Hello,
>
> Is there a way to use the Flexbuilder3 profiler with a FlashCS3  
> file? I
> just want to take a swf and run it through the profiler. Is it  
> possible?
>
> Martin t.
> LVL



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


[Flashcoders] AS2 class definition problem, Gaia framework

2008-04-28 Thread Jim McIntyre
I'm working in a framework for the first time (Gaia). I'll be 
including games on some of the site's "pages," and most of the games 
will need to load a few external SWFs.


In the (AS2) class file for the page I'm trying to modify, I'm trying 
to add this code inside the class constructor function (which is 
provided in the Gaia AS template), so that the SWF is loaded when the 
page is initialized:


--code begins--
  private var posterMc:MovieClip = this.createEmptyMovieClip('posterMc',100);
  this.posterMc.loadMovie('adv_saleposter.swf');
--code ends--

The second line of the above code is producing a compile error that 
says "This statement is not permitted in a class definition." (The 
script is actually full of lines that produce the same error, which 
indicates I'm way off base.)


Can someone help me pull my head out of my AS2 and tell me what's 
wrong with my approach? I'm sure this points to a bigger design 
problem than I realize...


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


[Flashcoders] addCuePoint - AS2

2008-04-28 Thread Pavel Krusek
Hello everyone,

please is possible adding cue points throught actionscript directly on
NetStream object (without FLVPlayback component)?

In AS documentation i see only onCuePoint handler, no method like addCuePoint

thanks,

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


Re: [Flashcoders] { AS3 } Reading position info X, Y, H & W

2008-04-28 Thread Glen Pike

Hi,

   Sorry I see you are using Flash not Flex, I gotta stop doing that.

   If you are using Flash, just changing the rotation should work 
straight away - you will see it on screen - don't worry about validateNow()


   (If you are using Flex and change properties of a UIComponent, you 
may need to call validateNow on that component before it updates the 
display, hence other properties.)


   To be honest, Pythagoras is easier and more robust than this and if 
you are programming graphics, it should be in your arsenal - see the 
other guys' reply for a solution, but have a go at working it out first 
if you can.


   Glen

SJM - Flash wrote:

Yeah i know what the rotastion is, but am not sure what to do with regards to 
pythagoras and working out the hypotenuse.

Can you point me to any examples of how to use validateNow() as ive looked 
through Flash Help/Livedocs and cant seam to figure out how its used!

SM


  - Original Message - 
  From: Glen Pike 
  To: Flash Coders List 
  Sent: Monday, April 28, 2008 2:55 PM

  Subject: Re: [Flashcoders] { AS3 } Reading position info X, Y, H & W


  Do you know the rotation?

  2 ways to do this:

  Either rotate the image back to 0 if it can be done - if you do this you 
  will need to call validateNow() on the instance after changing values, 
  read the new w2, etc.  then rotate it back...


  Or do some pythagoras

  w2 is the hypotenuse of one triangle.
  h2 is the hyp of another...

  You can work the rest out :)

  Glen

  [EMAIL PROTECTED] wrote:
  > Hi i need some help reading position info X, Y, H & W of a desired object. 
Now i know some of you are going to jump streight in with answeres like... 
instanceName.y, instanceName.x etc... but i would like you to take a look at the 
following link first, you will see a number of lines drawn to explanin the valuse i am 
after!
  >
  > http://79.170.40.163/flashdev.com/
  >
  >
  > I already have X, Y & bounding box H/W values. I need to read W2, H2 & X2 
if possible?
  >
  > Regards
  > SM
  > ___
  > Flashcoders mailing list
  > Flashcoders@chattyfig.figleaf.com
  > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  >
  >
  >   

  -- 


  Glen Pike
  01326 218440
  www.glenpike.co.uk 

  ___
  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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk 

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


Re: [Flashcoders] { AS3 } Reading position info X, Y, H & W

2008-04-28 Thread SJM - Flash
Yeah i know what the rotastion is, but am not sure what to do with regards to 
pythagoras and working out the hypotenuse.

Can you point me to any examples of how to use validateNow() as ive looked 
through Flash Help/Livedocs and cant seam to figure out how its used!

SM


  - Original Message - 
  From: Glen Pike 
  To: Flash Coders List 
  Sent: Monday, April 28, 2008 2:55 PM
  Subject: Re: [Flashcoders] { AS3 } Reading position info X, Y, H & W


  Do you know the rotation?

  2 ways to do this:

  Either rotate the image back to 0 if it can be done - if you do this you 
  will need to call validateNow() on the instance after changing values, 
  read the new w2, etc.  then rotate it back...

  Or do some pythagoras

  w2 is the hypotenuse of one triangle.
  h2 is the hyp of another...

  You can work the rest out :)

  Glen

  [EMAIL PROTECTED] wrote:
  > Hi i need some help reading position info X, Y, H & W of a desired object. 
Now i know some of you are going to jump streight in with answeres like... 
instanceName.y, instanceName.x etc... but i would like you to take a look at 
the following link first, you will see a number of lines drawn to explanin the 
valuse i am after!
  >
  > http://79.170.40.163/flashdev.com/
  >
  >
  > I already have X, Y & bounding box H/W values. I need to read W2, H2 & X2 
if possible?
  >
  > Regards
  > SM
  > ___
  > Flashcoders mailing list
  > Flashcoders@chattyfig.figleaf.com
  > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  >
  >
  >   

  -- 

  Glen Pike
  01326 218440
  www.glenpike.co.uk 

  ___
  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 } Reading position info X, Y, H & W

2008-04-28 Thread Pete Hotchkiss
Surely - by Pythagoras

w2 = square root of (width - x)^2 + (x2 - x)^2

Also might help to know the _rotation angle of the containing element


 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 28 April 2008 14:43
To: Flash Coders List
Subject: [Flashcoders] { AS3 } Reading position info X, Y, H & W

Hi i need some help reading position info X, Y, H & W of a desired
object. Now i know some of you are going to jump streight in with
answeres like... instanceName.y, instanceName.x etc... but i would like
you to take a look at the following link first, you will see a number of
lines drawn to explanin the valuse i am after!

http://79.170.40.163/flashdev.com/


I already have X, Y & bounding box H/W values. I need to read W2, H2 &
X2 if possible?

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

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

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


Re: [Flashcoders] { AS3 } Reading position info X, Y, H & W

2008-04-28 Thread Glen Pike

Do you know the rotation?

2 ways to do this:

Either rotate the image back to 0 if it can be done - if you do this you 
will need to call validateNow() on the instance after changing values, 
read the new w2, etc.  then rotate it back...


Or do some pythagoras

w2 is the hypotenuse of one triangle.
h2 is the hyp of another...

You can work the rest out :)

Glen

[EMAIL PROTECTED] wrote:

Hi i need some help reading position info X, Y, H & W of a desired object. Now 
i know some of you are going to jump streight in with answeres like... 
instanceName.y, instanceName.x etc... but i would like you to take a look at the 
following link first, you will see a number of lines drawn to explanin the valuse i 
am after!

http://79.170.40.163/flashdev.com/


I already have X, Y & bounding box H/W values. I need to read W2, H2 & X2 if 
possible?

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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk 

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


[Flashcoders] { AS3 } Reading position info X, Y, H & W

2008-04-28 Thread flash
Hi i need some help reading position info X, Y, H & W of a desired object. Now 
i know some of you are going to jump streight in with answeres like... 
instanceName.y, instanceName.x etc... but i would like you to take a look at 
the following link first, you will see a number of lines drawn to explanin the 
valuse i am after!

http://79.170.40.163/flashdev.com/


I already have X, Y & bounding box H/W values. I need to read W2, H2 & X2 if 
possible?

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


Re: [Flashcoders] URLLoader Class and some thinking

2008-04-28 Thread Patrick Jakub Jankun
Thanks Andrei!

Seems to be execlty what I was looking for :)


On 4/28/08 12:08 AM, "Andrei Thomaz" <[EMAIL PROTECTED]> wrote:

> maybe this helps you:
> http://code.google.com/p/bulk-loader/
> 
> []'s
> andrei
> 
> 
> On Sun, Apr 27, 2008 at 4:00 PM, Patrick Jakub Jankun <[EMAIL PROTECTED]> 
> wrote:
> 
>> Hello Everyone,
>> 
>> I got another newb Question, I got an class (written with help of a
>> friend)
>> That Loads an .swf by simply calling a new instance of that class and
>> giving
>> The filename (URL), from there it goes all alone, with progress tracing
>> and
>> so on.
>> 
>> Now I runned into a problem, as the Loader class can load only data of 3
>> types, TEXT / VARIABLES / BINARY, how in the world, am I suppose to load
>> an
>> mp3 or an font with it?
>> 
>> My Brain tells me this:
>> 
>>  var myLoader:URLLoader = new URLLoader;
>>  myLoader.DataFormat = URLLoaderDataFormat.BINARY
>>  myLoader.load(new URLRequest("foo.mp3"));
>>  myLoader.addEventListener(Event.COMPLETE, onCompleteLoader);
>> 
>>  private function onCompleteLoader(event:Event):void {
>>trace("Data loaded");
>>var myMP3 = myLoader.data;
>>  }
>> So Every data other then Text or Variables should be threated as Binary,
>> and
>> Then assigned to a corresponding var of given datatype. Is this thinking
>> right or am I missunderstanding the concept of URLLoader?
>> 
>> The second thing is, how can I get a list of things loaded from an .swf by
>> names? Like to have an nice Trace of Objects contained in that Library!
>> 
>> Thank's
>> Patrick
>> 
>> -
>> 
>> jankun.org ­ fancy skills to pay the bills
>> 
>> web:jankun.org | under development
>> skype:  Synaps1s
>> mail:   p[at]jankun.org
>> 
>> 
>> 
>> ___
>> 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

-
 
jankun.org - Design and Technology One Man Army
 
Speckbachergasse 8/8
1160 Vienna - Ottakring
Austria
 
Phone:  +43 660 96 969 - 01
web:jankun.org
mail:   p[at]jankun.org



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