[Flashcoders] FlashCommand fails to fail

2005-11-23 Thread Chris Velevitch
I'm using Mike Chambers FlashCommand to compile multiple files in one
go with ant from within Eclipse.

However, if one of my .fla files generates an error, compiling
continues on to the next file. I'm using the failonerror attribute in
the execute tag , but the FlashCommand fails to fail. Also, the
error output is not appearing in the console view.

Does any one have any ideas?



Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] HTML r not working

2005-11-23 Thread old9
I guess that an HTML enabled text field means that there would probably be
multi-fonts used.
so flash doesn't know which font to embed.

can anyone make a solution?


2005/11/24, Pandian <[EMAIL PROTECTED]>:
>
> HTML tags are not supported when the font of Text field is embedded.
> Wat may be the prob..
> -Pandian
>
> ___
> 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] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-23 Thread Boon Chew
Thanks Janis.  The problem with doing it  below is that you cannot change _x, 
_y directly on the mc like you can  with a regular movieclip.
  
  var b = new myButton();
  b._x = 200; <-- won't work
  

Janis Radins <[EMAIL PROTECTED]> wrote:  I'm doing this all the time I've made 
tonns of different inputs fro
diferent projects and finally I am planing to code some fullscale AS2
only UI collection.

Thats done like this:
class myButton {
private var mc:MovieClip;
function myButton(host:MovieClip, level:Number){
mc= host.createEmptyMovieClip("myButton"+level, level);
}
}
In this case all drawing is done by variable mc.

2005/11/23, Ian Thomas :
> Oops, last line should be:
>
> var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> "somRandomButton",
> myTimeline.getNextHighestDepth()));
>
> Assuming myTimeline is whatever you're trying to attach the button to...
>
> Ian
>
> On 11/23/05, Ian Thomas  wrote:
> >
> > Hi Boon,
> >   Can't remember where I got this solution - definitely not mine - but
> > here's how to create a MovieClip-derived class that doesn't need an
> > associated library symbol:
> > --
> > class net.something.MyButton extends MovieClip
> > {
> > static var symbolName:String = "__Packages.net.something.MyButton ";
> > static var symbolOwner:Function = MyButton;
> >
> > public function MyButton()
> > {
> > }
> >
> > static var symbolLinked=Object.registerClass(symbolName, symbolOwner);
> >
> > }
> > --
> > To create it, use attachMovie:
> >
> > import net.something.MyButton;
> >
> > var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> >
> > "somRandomButton",getNextHighestDepth()));
> >
> > HTH,
> >   Ian
> ___
> 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




-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] HTML r not working

2005-11-23 Thread Pandian

HTML tags are not supported when the font of Text field is embedded.
Wat may be the prob..
-Pandian

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


[Flashcoders] Printing of HTML page and movie scaling

2005-11-23 Thread Michael Klishin

Hi,

I try to print HTML page with movie sized like 550 x 300 on it but get 
movie resized (grew).


What's wrong and how to fix this?

Thanks in advance.

Best wishes!
--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Post awaiting for approval[OT]

2005-11-23 Thread Liam Morley
when you right-click>zoom in and then (once you a find a place where a Flash
right-click menu will pop up, which is hard) right-click>show all, it
doesn't show the entire view.

On 11/22/05, David Peek <[EMAIL PROTECTED]> wrote:
>
> http://david.peek.ws/spark/
> just need an opinion.
>
> >No.
> >
> >HTH,
> >Alias
> >
> >On 11/22/05, Tiago Vale <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi list, I've sent a post to osflash and flashcoders(hope its not
> spamming)
> >>list but it seems its too big, can I send the example sources as
> >>attachement?
> >>
> >>--
> >>Cheers Tiago Janz
> >>___
> >>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] Spinning wheel

2005-11-23 Thread Eric E. Dolecki

Don't think I need Flade to pull this off. Although its nice.

What I whipped up so far:

import Timer;

function randomize( min:Number, max:Number ):Number {
var generator = Math.random()*(max-min);
generator = Math.round(min+generator);
return generator;
}

function spin():Void {
// Spinning time between 10 and 20 seconds
var nTime = randomize( 1, 2 );
var newTimer = new Timer();
var friction = nTime/200;
wheel.onEnterFrame = function(){
this._rotation += friction;
friction -= friction/30;
if (!newTimer.end){
newTimer.wait( nTime );
} else {
//trace( nTime/1000 + " secs passed!");
trace(this._rotation);
delete this.onEnterFrame;
}
}
}

spin();

Now, the divisions are merely magic numbers - they seem to work  
fairly well... but I don't think this is the right way to do it.


Also, if I pick random points on the circle surface, how do I know  
which is closest to the top (say the little pointer as centered top  
above the wheel)?


edolecki



On Nov 23, 2005, at 8:01 PM, Alias wrote:


Check out Flade:
http://www.cove.org/flade/default.aspx

HTH
Alias


On 11/23/05, Eric E. Dolecki <[EMAIL PROTECTED]> wrote:

before i code one up myself - does anyone have the basic math for a
wheel of fortune type of spinning wheel? if it had a "flapper" that
would be a bonus. otherwise i can just randomize the total time of
spin, and let er rip, slowing the rotation down over time. random
number of possible "hits" on the wheel.

edolecki
___
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] Spinning wheel

2005-11-23 Thread Alias
Check out Flade:
http://www.cove.org/flade/default.aspx

HTH
Alias


On 11/23/05, Eric E. Dolecki <[EMAIL PROTECTED]> wrote:
> before i code one up myself - does anyone have the basic math for a
> wheel of fortune type of spinning wheel? if it had a "flapper" that
> would be a bonus. otherwise i can just randomize the total time of
> spin, and let er rip, slowing the rotation down over time. random
> number of possible "hits" on the wheel.
>
> edolecki
> ___
> 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] detecting when mouse goes outside of the flash

2005-11-23 Thread Kalle Thyselius, inlovewith
i did something in javascript that sent the data into flash
onMouseMove, which worked very well. especially if the flash movie is
on a fixed position.

i can't seem to find the code now though.

kalle


On 11/23/05, Marc Hoffman <[EMAIL PROTECTED]> wrote:
> A 1-pixel wide area is not likely to capture a rollOver.
>
> Here's a .swf to test how wide a button needs to be to capture a rollOver:
> http://www.dartfrogmedia.com/buttonTest
>
> - Marc
>
>
> At 10:42 AM 11/23/2005, you wrote:
>
> >I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even
> >better - 2 such frames,- say, 1 and 2 px from the edge of the stage.
> >Then it can work as follows:
> >
> >1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if
> >it'll cross other right after this. Then:
> >2) If inner-then-outer => likely it goes outside;
> >if outer-then-inner => likely it came back.
> >3) You can use vars (boolean) like hasCrossedInner etc.
> >
> >Hope this can help.
> >
> >--
> >Best regards,
> >  Gregory_GOusable
> >
> >http://GOusable.com
> >Flash components development.
> >Usability services.
> >
> >At 10:10 AM 11/23/2005, Martin Klasson wrote:
> >
> > >Hi coders.
> > >
> > >This has been up before, and I have done some own tests and searched the
> > >archives as well.
> > >
> > >But I can't find the solution, if there is any.
> > >
> > >I want a certain thing to happen in my flash when the mouse moves
> > >outside flash. Since the _xmouse/_ymouse stops updating when dragged
> > >outside you cant rely on them (they do work WHEN mouse is pressed and
> > >dragged out from the swf, but that is of course not a solution)
> > >
> > >I have also tried to add a big 'button' which has onRollOut/onDragOut
> > >attached to it, but the problem is that button-events above it will
> > >disable the underlying one.
> > >
> > >So what I know of there is no solution to this problem, but probably
> > >some decent hacks?
> > >
> > >I am not interested in a solution which requires code in the html-page
> > >or so, but if you have such one I would like to know about it as well.
> > >
> > >But mainly I wish to know a solution in which flash internally can say
> > >if the mouse-cursor is outside the flash in the html-page.
> > >
> > >Thanks Coders
> > >
> > >/ martin
> >
> >
> >___
> >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
>


--
inlovewith.com
inlovewith ltd.
kalle thyselius
linnégatan 76, stockholm, sweden
+ 46 707 602 600
inlovewith you
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Component order: Adding event handlers ?

2005-11-23 Thread Scott Hyndman
By multiple I mean duplicated.

The list is speedy today!

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent:   Wed 11/23/2005 6:47 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Component order: Adding event handlers ?
You're adding event handlers on child components?

If so, it would make sense to do it in createChildren.

None of the other choices are appropriate, since init, the constructor and 
onLoad are called before createChildren, and draw is called more than once (you 
don't want multiple event handlers).

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Wade Arnold
Sent:   Wed 11/23/2005 5:52 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Component order: Adding event handlers ?
Where is the proper place in a component to add event handlers?

class constructor
init
createChildren
draw
onLoad

___
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] Component order: Adding event handlers ?

2005-11-23 Thread Scott Hyndman
You're adding event handlers on child components?

If so, it would make sense to do it in createChildren.

None of the other choices are appropriate, since init, the constructor and 
onLoad are called before createChildren, and draw is called more than once (you 
don't want multiple event handlers).

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Wade Arnold
Sent:   Wed 11/23/2005 5:52 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Component order: Adding event handlers ?
Where is the proper place in a component to add event handlers?

class constructor
init
createChildren
draw
onLoad

___
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] Spinning wheel

2005-11-23 Thread Eric E. Dolecki
before i code one up myself - does anyone have the basic math for a  
wheel of fortune type of spinning wheel? if it had a "flapper" that  
would be a bonus. otherwise i can just randomize the total time of  
spin, and let er rip, slowing the rotation down over time. random  
number of possible "hits" on the wheel.


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


[Flashcoders] Component order: Adding event handlers ?

2005-11-23 Thread Wade Arnold

Where is the proper place in a component to add event handlers?

class constructor
init
createChildren
draw
onLoad

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


[Flashcoders] Attaching combobox inside of class

2005-11-23 Thread Dan Wade
I get a combobox that looks like a blank textfield using function below:
   private function buildCombo() {
//create page combobox used to toggle between pages
var pageToggler_cb = target.createClassObject(mx.controls.ComboBox,
"pageSelector", target.getNextHighestDepth());
pageToggler_cb.dataProvider = ["hello", "there", "sailor"];
}
}

It seems like the component is currupted but if I do a simple test in
another .fla:
var combo_cb = this.createClassObject(mx.controls.ComboBox, "combo", 1);
combo_cb.dataProvider = ["hello", "there"];

It works?

Any ideas?

Tia

-dan 



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


Re: [Flashcoders] Detecting when a swf loses focus

2005-11-23 Thread Tyler Wright
"Basically, the event is onBlur"

Yes, if you've followed the discussion you'd know that onBlur is has been
the attempted solution.  It just doesn't work when Flash has focus ... the
browser seems to miss the onblur if you click on Flash (giving it focus) and
then click outside the window (when the onblur should trigger)

has no one had experience overcoming this?

Tyler

On 11/11/05, Steven Sacks <[EMAIL PROTECTED]> wrote:
>
> There is code out there used to fake modal dialogs in a browser that
> checks
> if a browser window loses focus and forces the window to take focus again.
>
> Really, a google search will help you on your way.  Writing JS isn't too
> difficult if you know AS1.
>
> http://www.eggheadcafe.com/articles/javascript_modal_dialog.asp
>
> Basically, the event is onBlur.
>
> 
>
> function myLoadFocusFunction() {
> -- tell flash something if you want
> -- or handle it directly in the browser
> -- like alert("You have attempted # times to exit the test");
> -- and on the threshold, you can load another page that doesn't
> have
> -- the flash anymore
> }
>
> I'm sure there's an easy solution to what you're trying to do.
>
> -Steven
>
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of Tyler Wright
> > Sent: Friday, November 11, 2005 2:47 PM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] Detecting when a swf loses focus
> >
> > We are looking for a solution to this issue as well. It would
> > be a great
> > help in DRM (Digital Rights Management) to keep not just test
> > takers honest.
> >
> > Anyone yet have a strong enough knowledge of the browser and
> > JavaScript to
> > crack this one?
> >
> > Tyler
> >
> > On 11/8/05, Muzak <[EMAIL PROTECTED]> wrote:
> > >
> > > Mmmm, mind explaining the buggy, unstable and CPU hogging?
> > >
> > > If you have any problems with screenweaver you can always
> > join the mailing
> > > list or visit the forum:
> > > http://osflash.org/mailman/listinfo/screenweaver_osflash.org
> > > http://www.screenweaver.org/forums/index.php
> > >
> > > regards,
> > > Muzak
> > >
> > > - Original Message -
> > > From: "Steven Sacks" <[EMAIL PROTECTED]>
> > > To: "'Flashcoders mailing list'" 
> > > Sent: Tuesday, November 08, 2005 11:00 PM
> > > Subject: RE: [Flashcoders] Detecting when a swf loses focus
> > >
> > >
> > > > Use a 3rd party wrapper like mProjector.
> > > >
> > > > http://www.binarynoise.com/
> > > >
> > > > Way better than the buggy, unstable and CPU hogging Screenweaver.
> > > >
> > > > -Steven
> > >
> > >
> > > ___
> > > 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] AFLAX...

2005-11-23 Thread Paul Colton
Hi,

 

I'm new to this mailing list, so first, hello. Second, I wanted to tell you
about my open source project, AFLAX.

 

Simply put, AFLAX is a JavaScript library that lets you fully utilize Flash.
That is, you write EVERYTHING in JavaScript, both Flash and non-Flash code,
which makes it super-easy to interoperate with the HTML page, other
JavaScript functions, etc.

 

I've put a bunch of demos online, including sockets, video, audio, drawing,
and other goodies. 

 

Check it out at http://www.aflax.org  

 

Thanks,

Paul Colton

 

 

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


Re: [Flashcoders] detecting when mouse goes outside of the flash

2005-11-23 Thread Marc Hoffman

A 1-pixel wide area is not likely to capture a rollOver.

Here's a .swf to test how wide a button needs to be to capture a rollOver:
http://www.dartfrogmedia.com/buttonTest

- Marc


At 10:42 AM 11/23/2005, you wrote:


I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even
better - 2 such frames,- say, 1 and 2 px from the edge of the stage.
Then it can work as follows:

1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if
it'll cross other right after this. Then:
2) If inner-then-outer => likely it goes outside;
   if outer-then-inner => likely it came back.
3) You can use vars (boolean) like hasCrossedInner etc.

Hope this can help.

--
Best regards,
 Gregory_GOusable

http://GOusable.com
Flash components development.
Usability services.

At 10:10 AM 11/23/2005, Martin Klasson wrote:

>Hi coders.
>
>This has been up before, and I have done some own tests and searched the
>archives as well.
>
>But I can't find the solution, if there is any.
>
>I want a certain thing to happen in my flash when the mouse moves
>outside flash. Since the _xmouse/_ymouse stops updating when dragged
>outside you cant rely on them (they do work WHEN mouse is pressed and
>dragged out from the swf, but that is of course not a solution)
>
>I have also tried to add a big 'button' which has onRollOut/onDragOut
>attached to it, but the problem is that button-events above it will
>disable the underlying one.
>
>So what I know of there is no solution to this problem, but probably
>some decent hacks?
>
>I am not interested in a solution which requires code in the html-page
>or so, but if you have such one I would like to know about it as well.
>
>But mainly I wish to know a solution in which flash internally can say
>if the mouse-cursor is outside the flash in the html-page.
>
>Thanks Coders
>
>/ martin


___
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] Blitting, Double-Buffering, and Other Bitmap Methodologies

2005-11-23 Thread Daniel Cascais
Hi Jesse,

I've seen some pretty good samples in André Michelle's blog
(http://blog.andre-michelle.com/), and I even think some of his bitmap
rendering source can be found here:
http://session.andre-michelle.com/fl8.session.2005.zip

I know I'm not really answering your question, but it might be good
for some inspiration.

Note: I think the samples are done for FP8.

Daniel Cascais
Tel: +56 (0)2  4589495
Cel: +56 (0)9  9417355
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Blitting, Double-Buffering, and Other Bitmap Methodologies

2005-11-23 Thread JesterXL
I wish someone on the forum had said "read this article on this very site" 
when I posted there, hahah!

Thanks a bunch for the link!

- Original Message - 
From: "Martin Wood" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, November 23, 2005 2:35 PM
Subject: Re: [Flashcoders] Blitting, Double-Buffering,and Other Bitmap 
Methodologies


There's a good series of articles on gamedev.net :)

http://www.gamedev.net/reference/list.asp?categoryid=45#200

The Game Programming Genesis series.

In a lot of cases the 'magical render' is performed by a render manager,
the entities themselves dont do rendering, they are maintained in a list
(perhaps in a World class) and the render manager just redraws whatever
is on the list.
Or you could set it up so the renderer orchestrates the rendering of the
entities, i.e. it scans the active display list and calls draw() on an
entity that survives the clipping tests.

martin

JesterXL wrote:
> ...here's where things break down for me.  I'm not used to coding like 
> this,
> so don't really know the best pratice ways to go about it.  For example:
> - how do I handle depth?  "last draw wins", so do I manage depth myself?
> - how do I handle move, and x and y change operations?  They don't affect
> the bitmap the sprite is blitting to, but they do affect the one they are
> on... events the parent listens to maybe?
___
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] Blitting, Double-Buffering, and Other Bitmap Methodologies

2005-11-23 Thread Martin Wood

There's a good series of articles on gamedev.net :)

http://www.gamedev.net/reference/list.asp?categoryid=45#200

The Game Programming Genesis series.

In a lot of cases the 'magical render' is performed by a render manager, 
the entities themselves dont do rendering, they are maintained in a list 
(perhaps in a World class) and the render manager just redraws whatever 
is on the list.
Or you could set it up so the renderer orchestrates the rendering of the 
entities, i.e. it scans the active display list and calls draw() on an 
entity that survives the clipping tests.


martin

JesterXL wrote:
...here's where things break down for me.  I'm not used to coding like this, 
so don't really know the best pratice ways to go about it.  For example:

- how do I handle depth?  "last draw wins", so do I manage depth myself?
- how do I handle move, and x and y change operations?  They don't affect 
the bitmap the sprite is blitting to, but they do affect the one they are 
on... events the parent listens to maybe?

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


Re: [Flashcoders] detecting when mouse goes outside of the flash

2005-11-23 Thread David Rorex
The problem with all these "look for mouse within 1 to 2 pixels of the
border" solutions, is that moving the mouse, even at a moderate speed,
makes it move by 10 or more pixels at a time.

-David R

On 11/23/05, Gregory_GOusable <[EMAIL PROTECTED]> wrote:
>
> I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even
> better - 2 such frames,- say, 1 and 2 px from the edge of the stage.
> Then it can work as follows:
>
> 1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if
> it'll cross other right after this. Then:
> 2) If inner-then-outer => likely it goes outside;
>if outer-then-inner => likely it came back.
> 3) You can use vars (boolean) like hasCrossedInner etc.
>
> Hope this can help.
>
> --
> Best regards,
>  Gregory_GOusable
> 
> http://GOusable.com
> Flash components development.
> Usability services.
>
> At 10:10 AM 11/23/2005, Martin Klasson wrote:
>
> >Hi coders.
> >
> >This has been up before, and I have done some own tests and searched the
> >archives as well.
> >
> >But I can't find the solution, if there is any.
> >
> >I want a certain thing to happen in my flash when the mouse moves
> >outside flash. Since the _xmouse/_ymouse stops updating when dragged
> >outside you cant rely on them (they do work WHEN mouse is pressed and
> >dragged out from the swf, but that is of course not a solution)
> >
> >I have also tried to add a big 'button' which has onRollOut/onDragOut
> >attached to it, but the problem is that button-events above it will
> >disable the underlying one.
> >
> >So what I know of there is no solution to this problem, but probably
> >some decent hacks?
> >
> >I am not interested in a solution which requires code in the html-page
> >or so, but if you have such one I would like to know about it as well.
> >
> >But mainly I wish to know a solution in which flash internally can say
> >if the mouse-cursor is outside the flash in the html-page.
> >
> >Thanks Coders
> >
> >/ martin
>
>
> ___
> 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] detecting when mouse goes outside of the flash

2005-11-23 Thread Gregory_GOusable

I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even
better - 2 such frames,- say, 1 and 2 px from the edge of the stage.
Then it can work as follows:

1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if
it'll cross other right after this. Then:
2) If inner-then-outer => likely it goes outside;
   if outer-then-inner => likely it came back.
3) You can use vars (boolean) like hasCrossedInner etc.

Hope this can help.

-- 
Best regards,
 Gregory_GOusable

http://GOusable.com
Flash components development.
Usability services.

At 10:10 AM 11/23/2005, Martin Klasson wrote:

>Hi coders.
>
>This has been up before, and I have done some own tests and searched the
>archives as well.
>
>But I can't find the solution, if there is any.
>
>I want a certain thing to happen in my flash when the mouse moves
>outside flash. Since the _xmouse/_ymouse stops updating when dragged
>outside you cant rely on them (they do work WHEN mouse is pressed and
>dragged out from the swf, but that is of course not a solution)
>
>I have also tried to add a big 'button' which has onRollOut/onDragOut
>attached to it, but the problem is that button-events above it will
>disable the underlying one.
>
>So what I know of there is no solution to this problem, but probably
>some decent hacks?
>
>I am not interested in a solution which requires code in the html-page
>or so, but if you have such one I would like to know about it as well.
>
>But mainly I wish to know a solution in which flash internally can say
>if the mouse-cursor is outside the flash in the html-page.
>
>Thanks Coders
>
>/ martin


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


Re: [Flashcoders] Way to get URL of host page?

2005-11-23 Thread Gerry Creighton

I agree...
I wanted a way to display certain content in Flash dependent on what  
html page
was delivered to the viewer without adding FlashVars code to the html  
page.
So what use is "this.url" if it only shows me the path to the swf?  
None really.

I could be wrong though...in which case I would like to be enlightened.

Gerry

 
...

http://www.thespikeranch.com
Certified Macromedia Flash MX Designer
 
...


On Nov 23, 2005, at 1:23 PM, Jayson K Hanes wrote:

That's utterly useless in attempts to foil an swf that is used by  
way of

someone else's html on another server... it is good information but
can't be used the way that it would be most desirable.

Flash needs to have this ability natively through the ocx.. without  
the

dependence of html javascript, and until this is put in by MM, will
continue to be a problem for all of us.

-Jayson


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Gerry Creighton
Sent: Wednesday, November 23, 2005 1:19 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Way to get URL of host page?

I needed to find this info as well and tried this.url but that only
returns the location
of the swf not the html page the swf is in.
I made a sample to mess around with this issue...
I had to use javascript to get the href and pass it to Flash. I do
this onLoad but incase
the user has popups blocked there is an html link on the page to send
the var to flash.
http://www.thespikeranch.com/test/about.html

Gerry

On Nov 23, 2005, at 12:54 PM, Keith DiMatteo wrote:




___
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] Way to get URL of host page?

2005-11-23 Thread Jayson K Hanes
That's utterly useless in attempts to foil an swf that is used by way of
someone else's html on another server... it is good information but
can't be used the way that it would be most desirable.

Flash needs to have this ability natively through the ocx.. without the
dependence of html javascript, and until this is put in by MM, will
continue to be a problem for all of us.

-Jayson

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Gerry Creighton
> Sent: Wednesday, November 23, 2005 1:19 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Way to get URL of host page?
> 
> I needed to find this info as well and tried this.url but that only
> returns the location
> of the swf not the html page the swf is in.
> I made a sample to mess around with this issue...
> I had to use javascript to get the href and pass it to Flash. I do
> this onLoad but incase
> the user has popups blocked there is an html link on the page to send
> the var to flash.
> http://www.thespikeranch.com/test/about.html
> 
> Gerry
> 
> On Nov 23, 2005, at 12:54 PM, Keith DiMatteo wrote:
> 
> >
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Way to get URL of host page?

2005-11-23 Thread Gerry Creighton
I needed to find this info as well and tried this.url but that only  
returns the location

of the swf not the html page the swf is in.
I made a sample to mess around with this issue...
I had to use javascript to get the href and pass it to Flash. I do  
this onLoad but incase
the user has popups blocked there is an html link on the page to send  
the var to flash.

http://www.thespikeranch.com/test/about.html

Gerry

On Nov 23, 2005, at 12:54 PM, Keith DiMatteo wrote:



this.url



The end computer?
The client computer of the person with the browser?



Try looking up server variables.
(here is a list of most of them:
http://www.lib.washington.edu/asp/browser/servar.asp)
(REMOTE_ADDR and REMOTE_HOST)



I don't think there is any way of retrieving them unless you use a

flashVars variable and some inline

scripting..


On 11/22/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:

As far as I can tell, mochibot will tell you the URL of the host of
your Flash movie, but not where it's being viewed.

And unfortunately javascript isn't an option. It needs to be
completely Flash. Sounds like I'm out of luck... - rajat


On 11/21/05, Robert Chyko <[EMAIL PROTECTED]> wrote:

Haven't actually used this.. But it seemed pretty cool when I
initially checked it out

www.mochibot.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Karthik
Sent: Saturday, November 19, 2005 4:16 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Way to get URL of host page?


I see. In that case, you should be able to get this done with a JS
call that returns location.href etc. etc.

hth
-K

On 19/11/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:

Thanks Karthik - I'm not trying to prevent it, I just want to log
it for analysis purposes later.

best, - rajat

___

___
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] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-23 Thread Janis Radins
I'm doing this all the time I've made tonns of different inputs fro
diferent projects and finally I am planing to code some fullscale AS2
only UI collection.

Thats done like this:
class myButton {
private var mc:MovieClip;
function myButton(host:MovieClip, level:Number){
mc= host.createEmptyMovieClip("myButton"+level, level);
}
}
In this case all drawing is done by variable mc.

2005/11/23, Ian Thomas <[EMAIL PROTECTED]>:
> Oops, last line should be:
>
> var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> "somRandomButton",
> myTimeline.getNextHighestDepth()));
>
> Assuming myTimeline is whatever you're trying to attach the button to...
>
> Ian
>
> On 11/23/05, Ian Thomas <[EMAIL PROTECTED]> wrote:
> >
> > Hi Boon,
> >   Can't remember where I got this solution - definitely not mine - but
> > here's how to create a MovieClip-derived class that doesn't need an
> > associated library symbol:
> > --
> > class net.something.MyButton extends MovieClip
> > {
> > static var symbolName:String = "__Packages.net.something.MyButton ";
> > static var symbolOwner:Function = MyButton;
> >
> > public function MyButton()
> > {
> > }
> >
> > static var symbolLinked=Object.registerClass(symbolName, symbolOwner);
> >
> > }
> > --
> > To create it, use attachMovie:
> >
> > import net.something.MyButton;
> >
> > var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> >
> > "somRandomButton",getNextHighestDepth()));
> >
> > HTH,
> >   Ian
> ___
> 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] Way to get URL of host page?

2005-11-23 Thread Keith DiMatteo

this.url


> The end computer?
> The client computer of the person with the browser?

> Try looking up server variables.
> (here is a list of most of them:
> http://www.lib.washington.edu/asp/browser/servar.asp)
> (REMOTE_ADDR and REMOTE_HOST)

> I don't think there is any way of retrieving them unless you use a
flashVars variable and some inline 
> scripting..

On 11/22/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> As far as I can tell, mochibot will tell you the URL of the host of 
> your Flash movie, but not where it's being viewed.
>
> And unfortunately javascript isn't an option. It needs to be 
> completely Flash. Sounds like I'm out of luck... - rajat
>
>
> On 11/21/05, Robert Chyko <[EMAIL PROTECTED]> wrote:
> > Haven't actually used this.. But it seemed pretty cool when I 
> > initially checked it out
> >
> > www.mochibot.com
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Karthik
> > Sent: Saturday, November 19, 2005 4:16 AM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] Way to get URL of host page?
> >
> >
> > I see. In that case, you should be able to get this done with a JS 
> > call that returns location.href etc. etc.
> >
> > hth
> > -K
> >
> > On 19/11/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > > Thanks Karthik - I'm not trying to prevent it, I just want to log 
> > > it for analysis purposes later.
> > >
> > > best, - rajat
> > ___
> ___
> 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] Blitting, Double-Buffering, and Other Bitmap Methodologies

2005-11-23 Thread JesterXL
Most Amercians have a 4 day weekend this week.  As such, I plan on updating 
some of my older tile-based games over the weekend in AS3.  Both Flash 8, 
and Flash 8.5 have the really cool new objects, Bitmap & BitmapData.  This 
allows you to utilize 1 bitmap to display a bunch of moving sprites instead 
of hundreds of sprites/movieclips.  The advantage of this is lower CPU 
usage.

The tilebased engines I've made in the past always had the CPU bottleneck, 
no matter what approach I took.  Whether it was a bunch of tiles in 1 
movieclip masked, or a small set that has their new tiles on the side that 
is revealed created, whilst the others that leave the viewing area destroyed 
on the fly... they all suffered from 60-90% CPU usage.

However, using blitting, where I draw a bunch of tiles & detail to 1 bitmap, 
and double-buffering, where I blit to 1 bitmap offstage, and then just use 
copyPixels to show a smaller bitmap onstage using scrollRect & 
cacheAsBitmap... it uses 0-2% CPU!

Now, while this is great for tiles, you quickly get back into high CPU usage 
by adding sprites (flash.display.Sprite vs. flash.display.MovieClip) on top 
of that.  So, I figured I could use the old composition model that a lot of 
people favor with MovieClips.  Instead of binding to a class by extending 
MovieClip:

class MyClass extends MovieClip

I could instead pass in a reference to the class' constructor, keeping the 
class, and the view it draws to, seperate.  In this case, I'd actually pass 
in a Bitmap object.  That way, the class can draw to the bitmap, and this 
bitmap can be shared amongst many movieclips.  Methods like move, setSize, 
etc. will use invalidate to ensure they only redraw their changes once to 
the actual bitmap itself.

function move(p_x, p_y)
{
x = p_x;
y = p_y;
invalidate(); // runs next frame, only once
}

...here's where things break down for me.  I'm not used to coding like this, 
so don't really know the best pratice ways to go about it.  For example:
- how do I handle depth?  "last draw wins", so do I manage depth myself?
- how do I handle move, and x and y change operations?  They don't affect 
the bitmap the sprite is blitting to, but they do affect the one they are 
on... events the parent listens to maybe?
- going off of the above, who is the parent?  Suddenly, there is some 
magical render somewhere that handles the invalidation & redrawing once per 
frame... what's the best way to do this?
- How do you sub-class sprites?  Like, do they just call their super 
methods, and pray that invalidation handles all the intricacies of multiple 
drawing renderings?

It may seem like a lot of work, but the performance increases I'm seeing in 
Flash 8 and Flash 8.5 are unbelievable using this methodology to redraw the 
stage with many objects, and fits perfectly in with tile-based games.

I asked this on gamedev.net, but got no response.  If anyone has any advice, 
articles, or books, I'd be most interested to hear about them!

Thanks if you can help.

--JesterXL 

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


Re: [Flashcoders] detecting when mouse goes outside of the flash

2005-11-23 Thread Marc Hoffman
I never found a good solution, either, without using code in the HTML 
page. I even tried setting a clip to look for the mouse and execute a 
function if the mouse wasn't found, but that failed (for reasons you explain).


If you can keep your buttons away from the edges of the movie, you 
can use an underlying button or an onMouseMove action to detect when 
the mouse is in that marginal area. You need a fast enough frame rate 
so the mouse position is captured during the time it passes over the 
marginal area. Someone with very fast mouse movement will probably be 
able to defeat this.


Marc

At 01:10 AM 11/23/2005, you wrote:


Hi coders.

This has been up before, and I have done some own tests and searched the
archives as well.

But I can't find the solution, if there is any.

I want a certain thing to happen in my flash when the mouse moves
outside flash. Since the _xmouse/_ymouse stops updating when dragged
outside you cant rely on them (they do work WHEN mouse is pressed and
dragged out from the swf, but that is of course not a solution)

I have also tried to add a big 'button' which has onRollOut/onDragOut
attached to it, but the problem is that button-events above it will
disable the underlying one.

So what I know of there is no solution to this problem, but probably
some decent hacks?

I am not interested in a solution which requires code in the html-page
or so, but if you have such one I would like to know about it as well.

But mainly I wish to know a solution in which flash internally can say
if the mouse-cursor is outside the flash in the html-page.

Thanks Coders

/ martin



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


Re: [Flashcoders] need 3D concept beginner guide

2005-11-23 Thread quinrou .
have a look here too :
http://www.kirupa.com/developer/actionscript/3dindex.htm

On 11/23/05, Danny Kodicek <[EMAIL PROTECTED]> wrote:
>
> You might also find my book, Mathematics and Physics for Programmers,
> helpful if you're short on the maths side. It includes a good few chapters
> on 3d.
> http://www.amazon.com/gp/product/1584503300/104-6635299-8705521
>
> Best
> Danny
>
> - Original Message -
> From: "Johan Lopes" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Wednesday, November 23, 2005 4:55 PM
> Subject: Re: [Flashcoders] need 3D concept beginner guide
>
>
> http://www.bit-101.com/tutorials/
>
> http://www.bit-101.com/tutorials/3D-rotation.html
>
> or better yet buy Keith Peter's latest book here:
>
>
> http://www.amazon.co.uk/exec/obidos/ASIN/1590595181/qid=1132764539/sr=1-7/ref=sr_1_11_7/203-7263632-3094341
>
> Also, check out http://www.actionscript.org for some great 3D tuts.
>
> I'm sure there's some more great 3d tutorials out there - just google it.
>
> HTH,
>
> /Johan
>
> On 11/23/05, Pandian <[EMAIL PROTECTED]> wrote:
> >
> > hi i want to create basic 3D objects ...
> > Pls give some article upon it
> > -Thanx
> > Pandian
> >
> >
> >
> >
> > ___
> > 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] need 3D concept beginner guide

2005-11-23 Thread Danny Kodicek
You might also find my book, Mathematics and Physics for Programmers, 
helpful if you're short on the maths side. It includes a good few chapters 
on 3d.

http://www.amazon.com/gp/product/1584503300/104-6635299-8705521

Best
Danny

- Original Message - 
From: "Johan Lopes" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, November 23, 2005 4:55 PM
Subject: Re: [Flashcoders] need 3D concept beginner guide


http://www.bit-101.com/tutorials/

http://www.bit-101.com/tutorials/3D-rotation.html

or better yet buy Keith Peter's latest book here:

http://www.amazon.co.uk/exec/obidos/ASIN/1590595181/qid=1132764539/sr=1-7/ref=sr_1_11_7/203-7263632-3094341

Also, check out http://www.actionscript.org for some great 3D tuts.

I'm sure there's some more great 3d tutorials out there - just google it.

HTH,

/Johan

On 11/23/05, Pandian <[EMAIL PROTECTED]> wrote:


hi i want to create basic 3D objects ...
Pls give some article upon it
-Thanx
Pandian




___
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] need 3D concept beginner guide

2005-11-23 Thread Johan Lopes
http://www.bit-101.com/tutorials/

http://www.bit-101.com/tutorials/3D-rotation.html

or better yet buy Keith Peter's latest book here:

http://www.amazon.co.uk/exec/obidos/ASIN/1590595181/qid=1132764539/sr=1-7/ref=sr_1_11_7/203-7263632-3094341

Also, check out http://www.actionscript.org for some great 3D tuts.

I'm sure there's some more great 3d tutorials out there - just google it.

HTH,

/Johan

On 11/23/05, Pandian <[EMAIL PROTECTED]> wrote:
>
> hi i want to create basic 3D objects ...
> Pls give some article upon it
> -Thanx
> Pandian
>
>
>
>
> ___
> 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] Distort bitmap in flash 8?

2005-11-23 Thread Mark Burvill
I know I've just been looking at that, but still don't really have 
any idea how to go about it. :o(


I haven't really looked much into the Flash 8 bitmap manipulation yet, 
and I can't quite work out how complicated it would be to do what need. 
I don't need to do any animation, just have a simple static view of an 
image.

I'm guessing I need to use DisplacementMapFilter...


Shaw, Matt wrote:


The answer is still no... Frustrating eh?

But this guy has some tricks up his sleeve...
http://lab.andre-michelle.com/f7:%203d/3dimage.swf




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Burvill
Sent: Wednesday, November 23, 2005 11:10 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Distort bitmap in flash 8?

Quick question about Flash 8 (I'm still using Flash 7 and my trial has
expired for 8)...

Is it possible to actually distort a bitmap image now in the same way
that you can distort a shape (modify -> transform -> distort)?

I want to create a perspective look as though you are looking at a
photograph that was placed on a table, with your eyes just above the
edge of the table.

Cheers.


___
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


 



--
*Mark Burvill*
Interactive designer
www.eyegas.com 

*Work:* 0117 953 0100
*Mobile*: 07780 608498

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


Re: [Flashcoders] AS3 - parse file

2005-11-23 Thread JesterXL
http://blog.andre-michelle.com/2005/as3-perspective-texturemapping/

- Original Message - 
From: "franto" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, November 23, 2005 9:58 AM
Subject: [Flashcoders] AS3 - parse file


Hi,

i'm trying new AS3 features, and want to try parse file... e.g 3ds (3dmax) 
file
but have no clue, how to do it

im try URLLoader, URLStream, but do not know, what on which event I
should listen.
Can someone help me?

Thanks
-
Franto

http://blog.franto.com
http://www.flashcoders.sk
___
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] Distort bitmap in flash 8?

2005-11-23 Thread Shaw, Matt
The answer is still no... Frustrating eh?

But this guy has some tricks up his sleeve...
http://lab.andre-michelle.com/f7:%203d/3dimage.swf


 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Burvill
Sent: Wednesday, November 23, 2005 11:10 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Distort bitmap in flash 8?

Quick question about Flash 8 (I'm still using Flash 7 and my trial has
expired for 8)...

Is it possible to actually distort a bitmap image now in the same way
that you can distort a shape (modify -> transform -> distort)?

I want to create a perspective look as though you are looking at a
photograph that was placed on a table, with your eyes just above the
edge of the table.

Cheers.


___
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] need 3D concept beginner guide

2005-11-23 Thread Pandian


hi i want to create basic 3D objects ...
Pls give some article upon it
-Thanx
Pandian




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


[Flashcoders] Distort bitmap in flash 8?

2005-11-23 Thread Mark Burvill
Quick question about Flash 8 (I'm still using Flash 7 and my trial has 
expired for 8)...


Is it possible to actually distort a bitmap image now in the same way 
that you can distort a shape (modify -> transform -> distort)?


I want to create a perspective look as though you are looking at a 
photograph that was placed on a table, with your eyes just above the 
edge of the table.


Cheers.


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


Re: [Flashcoders] Way to get URL of host page?

2005-11-23 Thread Johan Lopes
Hi,

If you want to know the URL of the server currently serving your swf
(the host page) from Flash you could use LocalConnection.domain()

/*

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=1426.html

*/

var my_lc:LocalConnection = new LocalConnection();

var foo:String= my_lc.domain();

trace(foo);

With this piece of string you could create logic to check if the
domain is not equal to your server etc...


HTH,

/Johan

On 11/23/05, NEILHIGHLEY.COM <[EMAIL PROTECTED]> wrote:
> The end computer?
> The client computer of the person with the browser?
>
> Try looking up server variables.
> (here is a list of most of them:
> http://www.lib.washington.edu/asp/browser/servar.asp)
> (REMOTE_ADDR and REMOTE_HOST)
>
> I don't think there is any way of retrieving them unless you use a
> flashVars variable and some inline scripting..
>
> [ASP]
>  VALUE="REMOTE_HOST=<%=Request.ServerVariables("REMOTE_ADDR")%>">
>
> [ASP.NET - c#]
>  VALUE="REMOTE_HOST=<%=Request.ServerVariables["ALL_HTTP"]%>">
>
> [PHP]
> 
>
>
> On 11/22/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > As far as I can tell, mochibot will tell you the URL of the host of
> > your Flash movie, but not where it's being viewed.
> >
> > And unfortunately javascript isn't an option. It needs to be
> > completely Flash. Sounds like I'm out of luck... - rajat
> >
> >
> > On 11/21/05, Robert Chyko <[EMAIL PROTECTED]> wrote:
> > > Haven't actually used this.. But it seemed pretty cool when I initially
> > > checked it out
> > >
> > > www.mochibot.com
> > >
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Karthik
> > > Sent: Saturday, November 19, 2005 4:16 AM
> > > To: Flashcoders mailing list
> > > Subject: Re: [Flashcoders] Way to get URL of host page?
> > >
> > >
> > > I see. In that case, you should be able to get this done with a JS
> > > call that returns location.href etc. etc.
> > >
> > > hth
> > > -K
> > >
> > > On 19/11/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > > > Thanks Karthik - I'm not trying to prevent it, I just want to log it
> > > > for analysis purposes later.
> > > >
> > > > best, - rajat
> > > ___
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> www.neilhighley.com
> ___
> 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] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-23 Thread Ian Thomas
Oops, last line should be:

var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
"somRandomButton",
myTimeline.getNextHighestDepth()));

Assuming myTimeline is whatever you're trying to attach the button to...

Ian

On 11/23/05, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> Hi Boon,
>   Can't remember where I got this solution - definitely not mine - but
> here's how to create a MovieClip-derived class that doesn't need an
> associated library symbol:
> --
> class net.something.MyButton extends MovieClip
> {
> static var symbolName:String = "__Packages.net.something.MyButton ";
> static var symbolOwner:Function = MyButton;
>
> public function MyButton()
> {
> }
>
> static var symbolLinked=Object.registerClass(symbolName, symbolOwner);
>
> }
> --
> To create it, use attachMovie:
>
> import net.something.MyButton;
>
> var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
>
> "somRandomButton",getNextHighestDepth()));
>
> HTH,
>   Ian
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-23 Thread Ian Thomas
Hi Boon,
  Can't remember where I got this solution - definitely not mine - but
here's how to create a MovieClip-derived class that doesn't need an
associated library symbol:
--
class net.something.MyButton extends MovieClip
{
static var symbolName:String = "__Packages.net.something.MyButton ";
static var symbolOwner:Function = MyButton;

public function MyButton()
{
}

static var symbolLinked=Object.registerClass(symbolName, symbolOwner);
}
--
To create it, use attachMovie:

import net.something.MyButton;

var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,

"somRandomButton",getNextHighestDepth()));

HTH,
  Ian



On 11/23/05, Boon Chew <[EMAIL PROTECTED]> wrote:
>
>
> Hi all, is there a way to create a Button class that
> is entirely done in an AS2.0 class, with no
> association to any symbol in the library.
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Porting SHA-1 implementation from Java to AS3

2005-11-23 Thread Chris Wilson
I'm not a Flex programmer, but looking at the output, it would appear Flex
is using integers that are something bigger than 32 bits (or more
specifically, signed integers that are something bigger than 31 bits).  Java
is using 32-bit signed integers, hence the overflow to a large negative
number (since the signed integer has a max value of 2^31).

The tip-off on Flex's use of >32-bit integers is the first argument - blk -
is signed negative, but the result is signed positive, and is bigger than
2^31. 

To fix, you need to ensure Flex is storing the results of that calculation
in only 32 bits.  Then it would get the same results as the Java version.
Since I'm not a Flex programmer, I honestly don't know for sure what you
would need to change, though.

HTH,

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tiago Vale
Sent: Wednesday, November 23, 2005 10:28 AM
To: Flashcoders mailing list; Open Source Flash Mailing List
Subject: [Flashcoders] Porting SHA-1 implementation from Java to AS3

Hi list,

Im porting a SHA-1 implementation from java to AS3 and theres a strange
behaviour that I cant deal with, I really dont know if this is a Java or a
Flash question, but here it goes.


JAVA

tracing "int " + blk + " + " +  0x5A827999 + " + " + ro + " + " + prev+   "
= " + data[z]

output  int -67371266 + 1518500249 + 585074272 + 271733878 = -1987030163


FLEX
tracing "int " + blk + " + " +  0x5A827999 + " + " + ro + " + " + prev+   "
= " + data[z]

output  int -67371266 + 1518500249 + 585074272 + 271733878 = 2307937133

I know some arithematics enough to know that a first glance Flex is dealing
right, but since this implementation works with Java I reall whant to know
whats wrongh here.

this is happening in the R0 function.


Thankz in advance



Heres the Java source

http://www.icksys.com/rqb/fdbc/SHA1.java


Heres the AS3 source
http://www.icksys.com/rqb/fdbc/SHA1.as

--
Cheers Tiago Janz
___
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] Xml editor

2005-11-23 Thread Mike Mountain
 http://www.wmhelp.com/xmlpad22.htm

I use xmlpad - it's free and feature packed.

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


[Flashcoders] RE: detecting when mouse goes outside of the flash

2005-11-23 Thread dave matthews

hi Martin,

 If the panorama tool is a 'drag to pan' system and you need to detect the 
mouse release outside of the Flash area, try this:


 Place an invisible button over the entire dragged button, which might be 
the whole stage.  Set this invisible button to goto a blank frame and stop 
on rollover, leaving the original panorama drag button to pick up it's 
rollover or onDown(and drag) signal from the cursor.


 For some reason this allows Flash to detect when the mouse is released 
outside of the player (out in the html page) and triggering the on release 
function of the dragged button - sending the dragged button back to it's 
starting (stopped) position, where it should also have a command to make 
sure the panning is halted.


 Have no idea why it works, but figured it out when trying to stop 
scrolling when cursor is released outside the player at: 
http://www.2GoTo.com... works great.


 If you can't get this to work, i can build an exact working example for 
you.


Dave_Matthews



--original messages--

Message: 12
Date: Wed, 23 Nov 2005 10:10:32 +0100
From: "Martin Klasson" <[EMAIL PROTECTED]>
Subject: [Flashcoders] detecting when mouse goes outside of the flash

Hi coders.

This has been up before, and I have done some own tests and searched the
archives as well.

But I can't find the solution, if there is any.

I want a certain thing to happen in my flash when the mouse moves
outside flash. Since the _xmouse/_ymouse stops updating when dragged
outside you cant rely on them (they do work WHEN mouse is pressed and
dragged out from the swf, but that is of course not a solution)

I have also tried to add a big 'button' which has onRollOut/onDragOut
attached to it, but the problem is that button-events above it will
disable the underlying one.

So what I know of there is no solution to this problem, but probably
some decent hacks?

I am not interested in a solution which requires code in the html-page
or so, but if you have such one I would like to know about it as well.

But mainly I wish to know a solution in which flash internally can say
if the mouse-cursor is outside the flash in the html-page.

Thanks Coders

/ martin
---
Message: 15
Date: Wed, 23 Nov 2005 23:02:20 +1300
From: "Campbell Anderson" <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] detecting when mouse goes outside of the
flash

If you ever do a cursor replace in a flash movie you will see that when
the cursor leaves the stage the cursor you create stays at the
edge.. so Im pretty sure that you if you listen to the mouse
position and it goest to within on pixel from the stage width its a safe
bet it has gone out.

a mouse listener:

var xpos:Number;
var ypos:Number;

// Create a mouse listener object
var mouseListener:Object = new Object();

// Every time the mouse cursor moves within the SWF file
mouseListener.onMouseMove = function() {
   xpos = _xmouse;
   ypos = _ymouse;
CheckPosition(xpos, ypos);
};

function CheckPosition(_xpos:Number, _ypos:Number){
var _StageWidth:Number = Stage.width;
var _StageHeight:Number = Stage.height;
//have a buffer zone around the edge to give time to catch event
var Buffer:Number = 10; //10 pixels

if(xpos>=(_StageWidth-Buffer) || ypos>=(_StageHeight-Buffer) ||
xpos<=Buffer || ypos<=Buffer){
result_txt.text = "out";
}
else{
result_txt.text = "in";
}
}

Mouse.addListener(mouseListener);
stop();


you could use an on enterframe and a decent frame rate and it may get a
better acuracy.

The biggest problem is this isnt 100% but at least it gives you a
starting point.

--

Message: 14
Date: Wed, 23 Nov 2005 10:43:19 +0100
From: Hans Wichman <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] detecting when mouse goes outside of the
flash

Hi,
i had the same problem and approached it a little differently, which might
be or not be of use to you.
I simply check whether the mouse has moved or not.

Your situation might be very different, but in mine I had to update the
rotation in a panorama based on the mouse position within that panorama.
If you'd mouse the out real quick, the panorama went spinning ;) and never
stopped.

So now return an dx/dy based on mouse position and altered by the amount of
time the mouse hasnt moved. In effect if you move your mouse to the left in
the panorama for example it will move quickly at first and slowly grind to
a halt. Same thing happens when you move the mouse outside.

Other that than no clue...

greetz
Hans

--

Message: 16
Date: Wed, 23 Nov 2005 23:14:04 +1300
From: "Campbell Anderson" <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] detecting when mouse goes outside of the
flash

P.S. to make it more reliable (but I realise you not happy with using
browser code..

RE: [Flashcoders] Xml editor

2005-11-23 Thread Mark Lapasa
I'm surprised no one has mentioned UTF-8 friendly Bonfire Studio
(http://www.download.com/Bonfire-Studio/3000-7241_4-10342825.html).

It's not so great when dealing with 1MB xml files however my personal opinon
is that it has a small memory footprint and best of all is the XML tree
visualization tab which when pressed, automatically checks if your xml is
valid. If it's not, it try to indicate what row and column is causing the
error.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ron
Wheeler
Sent: Wednesday, November 23, 2005 1:58 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Xml editor


You might want to get the XMLSpy Home edition which is free

Ron

Robin Burrer wrote:

>I use Notepad in combination with Internet explorer :-).
>I used to use XMLSpy but after the trial expired I switched to Notepad
>again.
>
>Robin
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
>Matte
>Sent: Wednesday, 23 November 2005 7:46 AM
>To: Flashcoders mailing list
>Subject: [Flashcoders] Xml editor
>
>What software do you people use for editing xml for your flash projects ?
>
>
>___
>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] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-23 Thread Boon Chew

Hi all, is there a way to create a Button class that
is entirely done in an AS2.0 class, with no
association to any symbol in the library.

For example, I have a class (shown below) but right
now it's associated with an empty movieclip in the
library -- this is the only I can get this to work.  I
am trying to find a way to remove the need for that
association, and have everything in the code instead
(including the createEmptyMovieClip).  Is that
possible? I tried it but couldn't find a way that
works.

class NavButton extends MovieClip
{
private function NavButton()
{
init();
}

private function init()
{
this.lineStyle(1, 0x00, 100);
this.beginFill(0x00, 100);
this.moveTo(0, 0);
this.lineTo(100, 0);
this.lineTo(100, 100);
this.lineTo(0, 100);
this.lineTo(0, 0);
this.endFill();
}

static function create(timeline:MovieClip,
initParams:Object):NavButton
{
var depth =
timeline.getNextHighestDepth();
return NavButton(timeline.attachMovie("button",
"button" + depth, depth, initParams));
}
}




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Porting SHA-1 implementation from Java to AS3

2005-11-23 Thread Tiago Vale
Hi list,

Im porting a SHA-1 implementation from java to AS3 and theres a strange
behaviour that I cant deal with, I really dont know if this is a Java or a
Flash question, but here it goes.


JAVA

tracing "int " + blk + " + " +  0x5A827999 + " + " + ro + " + " + prev+   "
= " + data[z]

output  int -67371266 + 1518500249 + 585074272 + 271733878 = -1987030163


FLEX
tracing "int " + blk + " + " +  0x5A827999 + " + " + ro + " + " + prev+   "
= " + data[z]

output  int -67371266 + 1518500249 + 585074272 + 271733878 = 2307937133

I know some arithematics enough to know that a first glance Flex is dealing
right, but since this implementation works with Java I reall whant to know
whats wrongh here.

this is happening in the R0 function.


Thankz in advance



Heres the Java source

http://www.icksys.com/rqb/fdbc/SHA1.java


Heres the AS3 source
http://www.icksys.com/rqb/fdbc/SHA1.as

--
Cheers Tiago Janz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [Web usability - Fullscreen - CSS?] I know ...butcustomer wants it Mac/PC

2005-11-23 Thread NEILHIGHLEY.COM
A director stub runs the SWF, not an executable. The differing formats
of Mac and PC CDs determine which stub to run as this method can only
work on offline CDs.
With executables you cant have them running automatically from a web
page without a dialog popping up.
With popups disabled you cant have spawning windows. No real way
around that one.


On 11/21/05, af a <[EMAIL PROTECTED]> wrote:
> >Use a director stub, or a flash application envirnment like
> >screenweaver or swfStudio?
>
>
> Even in a web browser (and not projector)  configuration  ?
>
> If it is an exe, how to do cross-browser and Mac/PC trick  ?
> Is it done automatically by these programs ?
>
>
> Thank you
> Tony
>
>
>
>
>
>
> - Original Message -
> From: "NEILHIGHLEY.COM" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Sunday, November 20, 2005 9:23 PM
> Subject: Re: [Flashcoders] [Web usability - Fullscreen - CSS?] I know
> ...butcustomer wants it Mac/PC
>
>
> Use a director stub, or a flash application envirnment like
> screenweaver or swfStudio?
>
> On 11/20/05, Nick Weekes <[EMAIL PROTECTED]> wrote:
> > "Popup blockers can be tricked, btw"
> >
> > How come Janis?  If I have popups disabled (in Win XP), doesn't that
> prevent
> > all other windows from spawning?
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Janis
> Radins
> > Sent: 20 November 2005 12:54
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] [Web usability - Fullscreen - CSS?] I know ...
> > butcustomer wants it Mac/PC
> >
> > CSS works only inside browser window, you cannt have to fullscreen without
> > resizing window to that size.
> > So only option is to use JS window.open(... fullscreen=1 ...) Popup
> blockers
> > can be tricked, btw
> >
> > 2005/11/20, af a <[EMAIL PROTECTED]>:
> > >Hello,
> > >
> > >
> > > First of all, thanks to Matthew, Mike, Chad, ErixTekila,
> > > Pixelassembly, MetaArt for their previous answers. (I hope not
> > > forgetting anyone ;-)
> > >
> > >
> > > I have to do a cross-browser Mac/PC full-screen (chromeless exactly)
> > > project (YES, i told the client the drawbacks  with proofs and
> > > statistic-based arguments) in Flash MX 2004 :
> > >
> > > * javascript popup   ->  NO,  for they are blocked OR because
> > javascript is disabled (too reliant on browser)
> > > * chromeless  ->  works only for IE 5 on PC
> > >
> > >how to do something which works on MAC/PC (above all Mac) Safari,
> > Opera, IE and Netscape, Mozilla ?
> > >
> > >
> > > Use something which is not DOM compliant, but W3C compliant like html
> > > and CSS (or CSS-P ?) Use dreamweaver MX 2004 to do this fullscreen thing
> > ... Argh 
> > >
> > > Any good tutorials, links ?
> > >
> > >
> > > Thanks again
> > > Tony
> > >
> > > ___
> > > 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
> >
>
>
> --
> www.neilhighley.com
> ___
> 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
>


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


Re: [Flashcoders] Way to get URL of host page?

2005-11-23 Thread NEILHIGHLEY.COM
The end computer?
The client computer of the person with the browser?

Try looking up server variables.
(here is a list of most of them:
http://www.lib.washington.edu/asp/browser/servar.asp)
(REMOTE_ADDR and REMOTE_HOST)

I don't think there is any way of retrieving them unless you use a
flashVars variable and some inline scripting..

[ASP]
">

[ASP.NET - c#]
">

[PHP]



On 11/22/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> As far as I can tell, mochibot will tell you the URL of the host of
> your Flash movie, but not where it's being viewed.
>
> And unfortunately javascript isn't an option. It needs to be
> completely Flash. Sounds like I'm out of luck... - rajat
>
>
> On 11/21/05, Robert Chyko <[EMAIL PROTECTED]> wrote:
> > Haven't actually used this.. But it seemed pretty cool when I initially
> > checked it out
> >
> > www.mochibot.com
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Karthik
> > Sent: Saturday, November 19, 2005 4:16 AM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] Way to get URL of host page?
> >
> >
> > I see. In that case, you should be able to get this done with a JS
> > call that returns location.href etc. etc.
> >
> > hth
> > -K
> >
> > On 19/11/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > > Thanks Karthik - I'm not trying to prevent it, I just want to log it
> > > for analysis purposes later.
> > >
> > > best, - rajat
> > ___
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


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


[Flashcoders] RE: Big wide flash surface -how big can my be?

2005-11-23 Thread dave matthews


correct Mani.

 second post because subject was wrong a minute ago... :)

 At 2GoTo.com, we use an empty movie clip for the main infinitely large
plane, then load movies onto it using x/y coordinates to position them.

 We have loaded movies at x/y points in the 500,000+ pixel range with no 
problems from any of the players.


Dave_Matthews

--original message
Message: 10
Date: Mon, 21 Nov 2005 20:11:46 -0500
From: Manuel Saint-Victor <[EMAIL PROTECTED]>
Subject: Re: [Flashnewbie] RE: Big wide flash surface -how big can my
be?

Thanks,

That's exactly what I was wondering about. Mine won't be more than like 5
windows. So I'm guessing by you calling them internal windows that they are
nested within one "main movie clip" that plays the role of the main
navigator of sorts. That's the way I'm trying to do it right now.

Thanks again,
Mani

On 11/18/05, dave matthews <[EMAIL PROTECTED]> wrote:


hi Manuel,

Flash can handle an infinitely large plane... :)

The problem gets to be how does one navigate the thing.

There is a working example of a Flash interface at our test bed:

http://www.2GoTo.com

This is just a test site, so you'll have to poke around the internal
windows to find the duplicate window feature - it'll carry hundreds of
internal windows, if you've got the ram.

later,
Dave_Matthews



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


[Flashcoders] AS3 - parse file

2005-11-23 Thread franto
Hi,

i'm trying new AS3 features, and want to try parse file... e.g 3ds (3dmax) file
but have no clue, how to do it

im try URLLoader, URLStream, but do not know, what on which event I
should listen.
Can someone help me?

Thanks
-
Franto

http://blog.franto.com
http://www.flashcoders.sk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Calc max radius of a circle

2005-11-23 Thread Merrill, Jason
>>'rotating around the x-axis' is a perfectly reasonable statement for a
3D
>>object: rotate something in the x-y plane by 90 degrees about the
x-axis and
>>it will end up in the x-z plane. Rotating around the z-axis would keep
it in
>>the same plane. You can't rotate a 2-d object about an axis at all,
only a
>>point.

Well, I guess we're just arguing semantics then.  You're still taking
about moving part of the object out of x-y space and into the "z" space,
or as you put it in your words, the "x-z" plane.   

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Danny Kodicek
>>Sent: Wednesday, November 23, 2005 4:33 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Calc max radius of a circle
>>
>>
The difficult part of the question is that the circle is really a 3D
>>object
ie it can be rotate about the x or y axis.
>>
>>> Do you mean rotate into the "z" axis?  X and Y are still just 2-D
>>spaces.
>>
>>'rotating around the x-axis' is a perfectly reasonable statement for a
3D
>>object: rotate something in the x-y plane by 90 degrees about the
x-axis and
>>it will end up in the x-z plane. Rotating around the z-axis would keep
it in
>>the same plane. You can't rotate a 2-d object about an axis at all,
only a
>>point.
>>
>>Danny
>>
>>___
>>Flashcoders mailing list
>>Flashcoders@chattyfig.figleaf.com
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] device fonts change renderin behaviour

2005-11-23 Thread Timo Langpeter
when using device fonts f.ex. _sans i can see the alpha areas of png  
files.


the funny thing is that the alpha areas are allready cut out because  
we have to develop for a 16bit color screen.


Now with embeded fonts the alpha areas aren't as visible as when  
using device fonts.


Does anyone know about this problem? or even better has a solution?

problem is that we have to use device fonts due to performance reasons.

Thanx for any help ;-)

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


Re: [Flashcoders] Calc max radius of a circle

2005-11-23 Thread Jim McIntyre



The difficult part of the question is that the circle is really a 3D

object

ie it can be rotate about the x or y axis.



Do you mean rotate into the "z" axis?  X and Y are still just 2-D

spaces.

'rotating around the x-axis' is a perfectly reasonable statement for 
a 3D object: rotate something in the x-y plane by 90 degrees about 
the x-axis and it will end up in the x-z plane. Rotating around the 
z-axis would keep it in the same plane. You can't rotate a 2-d 
object about an axis at all, only a point.




Well, then, if you rotate a circle around the global x or y axis by 
90 degrees (picture a coin standing on edge), the radius of the 
largest circle that would fit in a rectangular bounding box would be 
1/2 the diagonal of that rectangle, or ((x^2 + y^2)^0.5)/2.


...because you can then rotate the circle around the global z axis 
until its local x-y plane is parallel to the diagonal of the 
rectangle.


OP, is that what you were looking for?

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


[Flashcoders] OT:add your self to the video archive

2005-11-23 Thread dan
Add yourself to the video archive
http://www.sandbox.co.il/xvid/
10x


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


Re: [Flashcoders] TLS negotiation with AS 3.0, is it possible?

2005-11-23 Thread Campbell Anderson
Check with some of the guys making Jabber clientsas I think thats
how Jabber authen. dont see why it wouldnt.just watch how your
writing the stream from memory there are two asci write methods and one
appends the stream length as the first two bytes.

Cam.

> Hi,
> i'm working on a project that has a socket connections.. but i can't
make a
> TLS negotiation with the server.. anyone has an idea about that?
> 
> o.e.y.
> ___
> 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] TLS negotiation with AS 3.0, is it possible?

2005-11-23 Thread Campbell Anderson
Check with some of the guys making Jabber clientsas I think thats
how Jabber authen. dont see why it wouldnt.just watch how your
writing the stream from memory there are two asci write methods and one
appends the stream length as the first two bytes.

Cam.

> Hi,
> i'm working on a project that has a socket connections.. but i can't
make a
> TLS negotiation with the server.. anyone has an idea about that?
> 
> o.e.y.
> ___
> 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] detecting when mouse goes outside of the flash

2005-11-23 Thread Campbell Anderson
Yep was wondering if you had tried.sorry its the only answer I know of. 

c.

> 
> Thanks Campbell.
> 
> That code is though what I try to avoid, since it isn't 100% accurate.
> A quick move with the mouse and the code won't really detect that the
> cursor has left the flash area.
> 
> The javascript-suggestion is nice of course, I have thought about that,
> but since it is a CMS and so on, it might not be an easy way to deal
> with that kind of implementation.
> 
> Thanks anyway. To bad that their isn't a Stage.isMouseOver/out property.
> I thought macromedia would have made a solution to this somehow, since
> this has been a 'problem' since flash5. 
> 
> / martin
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Campbell
> Anderson
> Sent: den 23 november 2005 11:14
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] detecting when mouse goes outside of the
> flash
> 
> P.S. to make it more reliable (but I realise you not happy with using
> browser code...would be to surrond the flash movie with a div and have a
> javascript listen for a on mouseover and call an fscommand or
> externalinterface call (depending on the version of flash).
> 
> c.
> 
> > 
> > Hi coders.
> > 
> > This has been up before, and I have done some own tests and searched
> the
> > archives as well.
> > 
> > But I can't find the solution, if there is any.
> > 
> > I want a certain thing to happen in my flash when the mouse moves
> > outside flash. Since the _xmouse/_ymouse stops updating when dragged
> > outside you cant rely on them (they do work WHEN mouse is pressed and
> > dragged out from the swf, but that is of course not a solution)
> > 
> > I have also tried to add a big 'button' which has onRollOut/onDragOut
> > attached to it, but the problem is that button-events above it will
> > disable the underlying one.
> > 
> > So what I know of there is no solution to this problem, but probably
> > some decent hacks?
> > 
> > I am not interested in a solution which requires code in the html-page
> > or so, but if you have such one I would like to know about it as well.
> > 
> > But mainly I wish to know a solution in which flash internally can say
> > if the mouse-cursor is outside the flash in the html-page.
> > 
> > Thanks Coders
> > 
> > / martin
> > ___
> > 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] detecting when mouse goes outside of the flash

2005-11-23 Thread Martin Klasson

Thanks Campbell.

That code is though what I try to avoid, since it isn't 100% accurate.
A quick move with the mouse and the code won't really detect that the
cursor has left the flash area.

The javascript-suggestion is nice of course, I have thought about that,
but since it is a CMS and so on, it might not be an easy way to deal
with that kind of implementation.

Thanks anyway. To bad that their isn't a Stage.isMouseOver/out property.
I thought macromedia would have made a solution to this somehow, since
this has been a 'problem' since flash5. 

/ martin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Campbell
Anderson
Sent: den 23 november 2005 11:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] detecting when mouse goes outside of the
flash

P.S. to make it more reliable (but I realise you not happy with using
browser code...would be to surrond the flash movie with a div and have a
javascript listen for a on mouseover and call an fscommand or
externalinterface call (depending on the version of flash).

c.

> 
> Hi coders.
> 
> This has been up before, and I have done some own tests and searched
the
> archives as well.
> 
> But I can't find the solution, if there is any.
> 
> I want a certain thing to happen in my flash when the mouse moves
> outside flash. Since the _xmouse/_ymouse stops updating when dragged
> outside you cant rely on them (they do work WHEN mouse is pressed and
> dragged out from the swf, but that is of course not a solution)
> 
> I have also tried to add a big 'button' which has onRollOut/onDragOut
> attached to it, but the problem is that button-events above it will
> disable the underlying one.
> 
> So what I know of there is no solution to this problem, but probably
> some decent hacks?
> 
> I am not interested in a solution which requires code in the html-page
> or so, but if you have such one I would like to know about it as well.
> 
> But mainly I wish to know a solution in which flash internally can say
> if the mouse-cursor is outside the flash in the html-page.
> 
> Thanks Coders
> 
> / martin
> ___
> 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] TLS negotiation with AS 3.0, is it possible?

2005-11-23 Thread o.e.y
Hi,
i'm working on a project that has a socket connections.. but i can't make a
TLS negotiation with the server.. anyone has an idea about that?

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


[Flashcoders] RE: Flashcoders Digest, Vol 10, Issue 84

2005-11-23 Thread dave matthews

correct Mani.

 At 2GoTo.com, we use an empty movie clip for the main infinitely large 
plane, then load movies onto it using x/y coordinates to position them - we 
have even been able to load x/y points in the 500,000 pixel range with no 
objections/problems from the players.


Dave_Matthews



--

Message: 10
Date: Mon, 21 Nov 2005 20:11:46 -0500
From: Manuel Saint-Victor <[EMAIL PROTECTED]>
Subject: Re: [Flashnewbie] RE: Big wide flash surface -how big can my
be?

Thanks,

That's exactly what I was wondering about. Mine won't be more than like 5
windows. So I'm guessing by you calling them internal windows that they are
nested within one "main movie clip" that plays the role of the main
navigator of sorts. That's the way I'm trying to do it right now.

Thanks again,

Mani


On 11/18/05, dave matthews <[EMAIL PROTECTED]> wrote:


hi Manuel,

Flash can handle an infinitely large plane... :)

The problem gets to be how does one navigate the thing.

There is a working example of a Flash interface at our test bed:

http://www.2GoTo.com

This is just a test site, so you'll have to poke around the internal
windows to find the duplicate window feature - it'll carry hundreds of
internal windows, if you've got the ram.

later,
Dave_Matthews




-- original message
--

Message: 2
Date: Thu, 17 Nov 2005 17:31:54 -0500
From: Manuel Saint-Victor <[EMAIL PROTECTED]>
Subject: Re: [Flashnewbie] Big wide flash surface -how big can my
Flash file

I was wondering as far as say a background rectangle that is
predominately
offstage - sorry I didn't think of that phrasing when I asked. I'm
thinking
like you would have in a racing game with a lot of the track not visible
or
a huge chalkboard that eases relative to mouse position

M

On 11/17/05, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
>As far as how big your Flash file can be, if you look in the HTML source
>of the site you posted, they just publish width="100%" height="100%"...
>
>Jason Merrill | E-Learning Solutions |
>icfconsulting.com 
>



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


[Flashcoders] setVariable through javaScript and cross domain block

2005-11-23 Thread Adrian Raper, Clarity

Hi

I am using javaScript and setVariable to try and communicate between a html 
page with javascript on one domain (actually running a SCORM based LMS) and 
the Flash swfs and content on another. The Flash swfs load fine, they can 
call javascript functions, but the setVariable simply does not work to send 
data back.


The whole system works if I am within one domain.

But surely the html and javascript is actually running in my browser, so 
shouldn't the original domain that the html comes from be irrelevant?


In detail:
I am running http://www.host-for-noodles.com/moodle - which ends up loading 
an html page that loads a Flash object at http://www.clarityenglish.com. 
The Flash swf loads up and loads a variety of other swfs and xmls from this 
same domain. All this is good. The Flash swf then does a getURL to run a 
javascript from the original html page. This works OK. But when the 
javascript comes to run movie.setVariable simply nothing comes back to 
Flash. In Firefox I see a javascript NPObject error - in IE, simply nothing 
happens. (I googled for the Firefox error and see some evidence that this 
is a Firefox bug - so left if alone to see how IE did).


I know that I ought to rewrite using at least the Flash/Javascript 
Integration kit, or better with ExternalInterface - but until that happens, 
does anyone have a definitive answer that what I am trying to do can't work 
- or clues as to how it should work?


Many thanks
Adrian

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


Re: [Flashcoders] detecting when mouse goes outside of the flash

2005-11-23 Thread Campbell Anderson
P.S. to make it more reliable (but I realise you not happy with using
browser code...would be to surrond the flash movie with a div and have a
javascript listen for a on mouseover and call an fscommand or
externalinterface call (depending on the version of flash).

c.

> 
> Hi coders.
> 
> This has been up before, and I have done some own tests and searched the
> archives as well.
> 
> But I can't find the solution, if there is any.
> 
> I want a certain thing to happen in my flash when the mouse moves
> outside flash. Since the _xmouse/_ymouse stops updating when dragged
> outside you cant rely on them (they do work WHEN mouse is pressed and
> dragged out from the swf, but that is of course not a solution)
> 
> I have also tried to add a big 'button' which has onRollOut/onDragOut
> attached to it, but the problem is that button-events above it will
> disable the underlying one.
> 
> So what I know of there is no solution to this problem, but probably
> some decent hacks?
> 
> I am not interested in a solution which requires code in the html-page
> or so, but if you have such one I would like to know about it as well.
> 
> But mainly I wish to know a solution in which flash internally can say
> if the mouse-cursor is outside the flash in the html-page.
> 
> Thanks Coders
> 
> / martin
> ___
> 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] detecting when mouse goes outside of the flash

2005-11-23 Thread Campbell Anderson
If you ever do a cursor replace in a flash movie you will see that when
the cursor leaves the stage the cursor you create stays at the
edge.. so Im pretty sure that you if you listen to the mouse
position and it goest to within on pixel from the stage width its a safe
bet it has gone out.  

a mouse listener:

var xpos:Number;
var ypos:Number;

// Create a mouse listener object
var mouseListener:Object = new Object();

// Every time the mouse cursor moves within the SWF file 
mouseListener.onMouseMove = function() {
xpos = _xmouse;
ypos = _ymouse;
CheckPosition(xpos, ypos);
};

function CheckPosition(_xpos:Number, _ypos:Number){
var _StageWidth:Number = Stage.width;
var _StageHeight:Number = Stage.height;
//have a buffer zone around the edge to give time to catch event
var Buffer:Number = 10; //10 pixels

if(xpos>=(_StageWidth-Buffer) || ypos>=(_StageHeight-Buffer) ||
xpos<=Buffer || ypos<=Buffer){
result_txt.text = "out";
}
else{
result_txt.text = "in";
}
}

Mouse.addListener(mouseListener);
stop();


you could use an on enterframe and a decent frame rate and it may get a
better acuracy. 

The biggest problem is this isnt 100% but at least it gives you a
starting point. 


> 
> Hi coders.
> 
> This has been up before, and I have done some own tests and searched the
> archives as well.
> 
> But I can't find the solution, if there is any.
> 
> I want a certain thing to happen in my flash when the mouse moves
> outside flash. Since the _xmouse/_ymouse stops updating when dragged
> outside you cant rely on them (they do work WHEN mouse is pressed and
> dragged out from the swf, but that is of course not a solution)
> 
> I have also tried to add a big 'button' which has onRollOut/onDragOut
> attached to it, but the problem is that button-events above it will
> disable the underlying one.
> 
> So what I know of there is no solution to this problem, but probably
> some decent hacks?
> 
> I am not interested in a solution which requires code in the html-page
> or so, but if you have such one I would like to know about it as well.
> 
> But mainly I wish to know a solution in which flash internally can say
> if the mouse-cursor is outside the flash in the html-page.
> 
> Thanks Coders
> 
> / martin
> ___
> 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] detecting when mouse goes outside of the flash

2005-11-23 Thread Hans Wichman

Hi,
i had the same problem and approached it a little differently, which might 
be or not be of use to you.

I simply check whether the mouse has moved or not.

Your situation might be very different, but in mine I had to update the 
rotation in a panorama based on the mouse position within that panorama.
If you'd mouse the out real quick, the panorama went spinning ;) and never 
stopped.


So now return an dx/dy based on mouse position and altered by the amount of 
time the mouse hasnt moved. In effect if you move your mouse to the left in 
the panorama for example it will move quickly at first and slowly grind to 
a halt. Same thing happens when you move the mouse outside.


Other that than no clue...

greetz
Hans


At 10:10 AM 11/23/2005, Martin Klasson wrote:


Hi coders.

This has been up before, and I have done some own tests and searched the
archives as well.

But I can't find the solution, if there is any.

I want a certain thing to happen in my flash when the mouse moves
outside flash. Since the _xmouse/_ymouse stops updating when dragged
outside you cant rely on them (they do work WHEN mouse is pressed and
dragged out from the swf, but that is of course not a solution)

I have also tried to add a big 'button' which has onRollOut/onDragOut
attached to it, but the problem is that button-events above it will
disable the underlying one.

So what I know of there is no solution to this problem, but probably
some decent hacks?

I am not interested in a solution which requires code in the html-page
or so, but if you have such one I would like to know about it as well.

But mainly I wish to know a solution in which flash internally can say
if the mouse-cursor is outside the flash in the html-page.

Thanks Coders

/ martin
___
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] Calc max radius of a circle

2005-11-23 Thread Danny Kodicek



The difficult part of the question is that the circle is really a 3D

object

ie it can be rotate about the x or y axis.



Do you mean rotate into the "z" axis?  X and Y are still just 2-D

spaces.

'rotating around the x-axis' is a perfectly reasonable statement for a 3D 
object: rotate something in the x-y plane by 90 degrees about the x-axis and 
it will end up in the x-z plane. Rotating around the z-axis would keep it in 
the same plane. You can't rotate a 2-d object about an axis at all, only a 
point.


Danny 


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


[Flashcoders] detecting when mouse goes outside of the flash

2005-11-23 Thread Martin Klasson

Hi coders.

This has been up before, and I have done some own tests and searched the
archives as well.

But I can't find the solution, if there is any.

I want a certain thing to happen in my flash when the mouse moves
outside flash. Since the _xmouse/_ymouse stops updating when dragged
outside you cant rely on them (they do work WHEN mouse is pressed and
dragged out from the swf, but that is of course not a solution)

I have also tried to add a big 'button' which has onRollOut/onDragOut
attached to it, but the problem is that button-events above it will
disable the underlying one.

So what I know of there is no solution to this problem, but probably
some decent hacks?

I am not interested in a solution which requires code in the html-page
or so, but if you have such one I would like to know about it as well.

But mainly I wish to know a solution in which flash internally can say
if the mouse-cursor is outside the flash in the html-page.

Thanks Coders

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


RE:[Flashcoders] Q:Animating a gradient

2005-11-23 Thread Andreas Weber
Maybe describe the effect a bit?

http://motiondraw.com/md/as_samples/t/gradientEye/

Probably not what you want, it's not even Flash 8...

HTH
--
Andreas Weber
motiondraw.com


Hi
Has anyone seen examples of animating a gradient in flash8? Recall seeing
something as part of the original maelstrom demo, but having some difficulty
reproducing the effect.

Thanks in advance
Jim Bachalo

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'




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