[Flashcoders] asking book opinion-OOP with AS2, Jeff Taper et al.

2006-03-18 Thread Martin Weiser

Hello ,

anyone have read this book, could recommen or not, i'm as 2 programmer for 
long time, alreade got moock's esential as2, but still want more oop 
approaches and techniques to learn.


thanks in advance

martin 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Alpha-blending two MC's with bitmaps?

2006-03-18 Thread Sascha Balkau
Weldon, here's the method I've wrote to handle the blending. It's very 
simple and I cannot detect any bug in there ...


public static function alphaBlend(fromImage:MovieClip, 
toImage:MovieClip):Void

{
 fromImage.swapDepths(100);
 fromImage._alpha = 100;
 fromImage._visible = true;

 toImage.swapDepths(101);
 toImage._alpha = 0;
 toImage._visible = true;

 toImage.onEnterFrame = function():Void
 {
  if (toImage._alpha < 100)
  {
   toImage._alpha += 5;
  }
  else
  {
   toImage._alpha = 100;
   delete toImage.onEnterFrame;
  }
 };
}


The blending works but strangely the fromImage is not shown, instead the 
toImage fades in from the white background of my Flash movie. As I mentioned 
before there are other image mc's in the holder movieclip but they are on 
depths 0 to 20 and are invisible so I doubt they have any influence on this.


Sascha



- Original Message - 
From: "Weldon MacDonald" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, March 19, 2006 4:55 AM
Subject: Re: [Flashcoders] Alpha-blending two MC's with bitmaps?


I've done what you seem to be discribing and it works. You probably
have a small bug in your code. Without seeing the code it's hard to
say what it is, but you could look for a depth duplication problem.
Have you made certain the lower one is loading at all or has been made
visible...etc... Your idea will work, you just need to do some
debugging

On 3/18/06, Sascha Balkau <[EMAIL PROTECTED]> wrote:

Hi Michael,

there are several mc's in one container mc but all are set to invisible
except for two at a time. And I want to fade between these two but I 
haven't
managed to do so. The top most mc always fades in from the white 
background

as if the bottom mc would be invisible. But it isn't. Flash 8 is no choice
as my client wants it in Flash 7.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-18 Thread Michael Hulse

On Mar 18, 2006, at 8:08 PM, Michael Bedar wrote:

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_13374
This technote is for Director, but applies to flash projectors as well.
Also, here is a good article about burning a hybrid CD, should you 
choose to go down that road.

http://director-online.com/buildArticle.php?id=831


Right on! thanks for linkages...   ;)

Cheers,
Micky

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-18 Thread Michael Bedar

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_13374

This technote is for Director, but applies to flash projectors as well.

Also, here is a good article about burning a hybrid CD, should you  
choose to go down that road.


http://director-online.com/buildArticle.php?id=831



On Mar 18, 2006, at 10:56 PM, Michael Hulse wrote:



On Mar 18, 2006, at 7:25 PM, Ramon Miguel M. Tayag wrote:

Director is really made for CD authoring, however, for what you want
to do, Flash is sufficient.


Sounds good, thanks.  :)

Got any links relating to Flash and CD authoring? Tuts? Examples?

Many thanks.
M

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-18 Thread Michael Hulse

On Mar 18, 2006, at 7:46 PM, Michael Bedar wrote:
Just for the record, there is no autoplay on OSX, if you are 
supporting mac.


Ah, good to know hmmm, I think most users will be PC, but Mac is 
not an impossibility.


Thanks for pointing that out/giving me the heads-up,
:)
M

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-18 Thread Michael Hulse


On Mar 18, 2006, at 7:25 PM, Ramon Miguel M. Tayag wrote:

Director is really made for CD authoring, however, for what you want
to do, Flash is sufficient.


Sounds good, thanks.  :)

Got any links relating to Flash and CD authoring? Tuts? Examples?

Many thanks.
M

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-18 Thread Michael Bedar
Just for the record, there is no autoplay on OSX, if you are  
supporting mac.



On Mar 18, 2006, at 10:25 PM, Ramon Miguel M. Tayag wrote:


Director is really made for CD authoring, however, for what you want
to do, Flash is sufficient.

On 3/19/06, Michael Hulse <[EMAIL PROTECTED]> wrote:

Hi,

The subject-line pretty much says it all...

I have an upcoming project that requires me to build an interface for
playing 4 videos... this will then be burned onto a CD - a major
requirement for this CD is that it goes full-screen as soon as the  
user

puts it in their machine.

My question is this:

Is Flash MX 2004 comparable to director when it comes to CD  
authoring?


If the above answer is no, then how-a-bout the latest version of  
Flash?


Which app would you use (Director/Flash)?

Many TIA!  :)

Cheers,
Micky





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] movieclip actions not working

2006-03-18 Thread Ben Deroo
that's not it, does not work.

on what timeline are you putting your actions? I've tried on the main
timeline and on the m1 timeline (which is what I think you mean) but
both don't work.

here's my description again:
create a new movie
create a blue square and make that a movieclip symbol , name it m1,
create a red square and make that a movieclip symbol , name it m2,

drag a copy of m1 to the stage and give it instance name m1
open m1 and add some frames to the timeline (50 or so, does not matter)
stop action on frame 1
stop action on frame 20
at frame 20 (of the m1 timeline), drag a copy of movieclip m2 on the
stage, name it m2,
place it just below the blue square
I want the following to happen:
when a user rolls over the movieclip in the main timeline (m1), I want
the m1 timeline to advance to frame 20. You should then see a blue
square and a red square.
When a user clicks on the RED square (m2), I want them to go to a
website (http://www.website.com)


anyone?
thx,
Ben




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: zondag 19 maart 2006 2:59
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] movieclip actions not working

> stop action on frame 1

stop();
m1.onRollOver = function() {
gotoAndStop(20);
//or play();
}


> stop action on frame 20

stop();
m2.onRelease = function() {
getURL("http://www.website.com";, "_blank");
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-18 Thread Ramon Miguel M. Tayag
Director is really made for CD authoring, however, for what you want
to do, Flash is sufficient.

On 3/19/06, Michael Hulse <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The subject-line pretty much says it all...
>
> I have an upcoming project that requires me to build an interface for
> playing 4 videos... this will then be burned onto a CD - a major
> requirement for this CD is that it goes full-screen as soon as the user
> puts it in their machine.
>
> My question is this:
>
> Is Flash MX 2004 comparable to director when it comes to CD authoring?
>
> If the above answer is no, then how-a-bout the latest version of Flash?
>
> Which app would you use (Director/Flash)?
>
> Many TIA!  :)
>
> Cheers,
> Micky
>
>
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] movieclip actions not working

2006-03-18 Thread Steven Sacks
> stop action on frame 1

stop();
m1.onRollOver = function() {
gotoAndStop(20);
//or play();
}


> stop action on frame 20

stop();
m2.onRelease = function() {
getURL("http://www.website.com";, "_blank");
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] movieclip actions not working

2006-03-18 Thread Ben Deroo
My mind is melting :-)



Flash:





create a new movie

create a blue square and make that a movieclip symbol , name it m1,

create a red square and make that a movieclip symbol , name it m2,



drag a copy of m1 to the stage and give it instance name m1

open m1 and add some frames to the timeline (50 or so, does not matter)

stop action on frame 1

stop action on frame 20



at frame 20, drag a copy of movieclip m2 on the stage, name it m2,
place it just below the blue square



I want the following to happen:



when a user rolls over the movieclip in the main timeline (m1), I want
the m1 timeline to advance to frame 20. You should then see a blue
square and a red square.

When a user clicks on the RED square (m2), I want them to go to a
website (http://www.website.com)



I keep getting these messages "the script contains no errors" when I
"validate " the actionscript, and still nothing works.



any  help would be welcome, i'm sure it's a rookie mistake

Ben
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: maps of hyperlinks that change in font size?

2006-03-18 Thread Rajat Paharia
Tagclouds   - rajat

On 3/17/06, thotskee <[EMAIL PROTECTED]> wrote:
>
> Flashcoders,
>
> What are those maps of hyperlinks that change in font size according to
> relevance called?
>
> Thanks...
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Rajat Paharia
[EMAIL PROTECTED]
http://www.bunchball.com
http://www.rootburn.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

RE: [Flashcoders] Trying to solve this math equation

2006-03-18 Thread Steven Sacks
Hey,

Thanks all for verifying that it was indeed correct.  The problem ended up
being my not plugging in the true values.  It didn't actually work 100%
correctly the first way (which I didn't notice at first so I thought the
alternate equation was to blame).  I solved that issue and now the equation
works correctly both ways.

Thanks again!





___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Trying to solve this math equation

2006-03-18 Thread Mark Winterhalder
> But that doesn't work...

if that is of any help, i came up with the same result after solving
it exactly like you did, without reading your result first. that
doesn't make it ricght, of course, but i've made another test and the
odds are one in a million that we're both wrong:

var y:Number = Math.random();
var s:Number = Math.random();
var w:Number = Math.random();
var b:Number = Math.random();
var i:Number = Math.random();
var c:Number = ((y - s) / (w - b - s)) * i;
trace( "test: " + ( Math.round( y * 100 ) == Math.round( ( ((c /
i) * (w - b - s)) + s ) * 100 ) ) );

// traces "test: true"

hth,
mark



On 3/19/06, Steven Sacks <[EMAIL PROTECTED]> wrote:
> Hey everyone,
>
> My algebra seems to be failing me.  I need some help here.
>
> Here's my equation:
> c = ((y - s) / (w - b - s)) * i;
>
> I need to solve for y when I have c.  I wrote it out on paper and I came up
> with:
> y = ((c / i) * (w - b - s)) + s;
>
> But that doesn't work...
>
> My logic:
>
> c = ((y - s) / (w - b - s)) * i;
>
> c / i = ((y - s) / (w - b - s));
>
> (c / i) * (w - b - s) = y - s;
>
> ((c / i) * (w - b - s)) + s = y;
>
> Am I missing something?
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Trying to solve this math equation

2006-03-18 Thread Jobe Makar

Hi Steven,

Your math *is* correct. Some people find it easy to verify their work by 
using subsitutions, and then replace at the end. As a validation of your 
work you can do the following:


Original:
c=((y-2)/(w-b-s))*i

Define:
A = y-s
B = w-b-s

Now equation is:
c=A/B*i

Solve:
A=c*B/i

Put A back in:
y-s = c*B/i   --->   y = c*B/i + s

Put B back in:
y = c*(w-b-s)/i + s

Generally substitutions like this are for longer expressions, but you get 
the picture. Hope you solve what ever issue you are having!


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message - 
From: "Steven Sacks" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Saturday, March 18, 2006 7:04 PM
Subject: [Flashcoders] Trying to solve this math equation



Hey everyone,

My algebra seems to be failing me.  I need some help here.

Here's my equation:
c = ((y - s) / (w - b - s)) * i;

I need to solve for y when I have c.  I wrote it out on paper and I came 
up

with:
y = ((c / i) * (w - b - s)) + s;

But that doesn't work...

My logic:

c = ((y - s) / (w - b - s)) * i;

c / i = ((y - s) / (w - b - s));

(c / i) * (w - b - s) = y - s;

((c / i) * (w - b - s)) + s = y;

Am I missing something?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Trying to solve this math equation

2006-03-18 Thread Steven Sacks
Hey everyone,

My algebra seems to be failing me.  I need some help here.

Here's my equation:
c = ((y - s) / (w - b - s)) * i;

I need to solve for y when I have c.  I wrote it out on paper and I came up
with:
y = ((c / i) * (w - b - s)) + s;

But that doesn't work...

My logic:

c = ((y - s) / (w - b - s)) * i;

c / i = ((y - s) / (w - b - s));

(c / i) * (w - b - s) = y - s;

((c / i) * (w - b - s)) + s = y;

Am I missing something?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash MX2004, Video CD with "auto-play" {Director v. Flash??}

2006-03-18 Thread Michael Hulse

Hi,

The subject-line pretty much says it all...

I have an upcoming project that requires me to build an interface for 
playing 4 videos... this will then be burned onto a CD - a major 
requirement for this CD is that it goes full-screen as soon as the user 
puts it in their machine.


My question is this:

Is Flash MX 2004 comparable to director when it comes to CD authoring?

If the above answer is no, then how-a-bout the latest version of Flash?

Which app would you use (Director/Flash)?

Many TIA!  :)

Cheers,
Micky


 
 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 8 broken

2006-03-18 Thread stefan burt
use this technote it should hopefully solve your troubles
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=614bb5a9

Stefan


On 3/18/06, Weyert de Boer <[EMAIL PROTECTED]> wrote:
>
> > It takes about five minutes to install so if it were me, I'd uninstall
> > and then reinstall the program. Or you could spend hours
> > troubleshooting it if you prefer.
>
> Good point, let's see if that works. The problem didn't work on a friends
> Flash 8 copy too.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Alpha-blending two MC's with bitmaps?

2006-03-18 Thread Weldon MacDonald
I've done what you seem to be discribing and it works. You probably
have a small bug in your code. Without seeing the code it's hard to
say what it is, but you could look for a depth duplication problem.
Have you made certain the lower one is loading at all or has been made
visible...etc... Your idea will work, you just need to do some
debugging

On 3/18/06, Sascha Balkau <[EMAIL PROTECTED]> wrote:
> Hi Michael,
>
> there are several mc's in one container mc but all are set to invisible
> except for two at a time. And I want to fade between these two but I haven't
> managed to do so. The top most mc always fades in from the white background
> as if the bottom mc would be invisible. But it isn't. Flash 8 is no choice
> as my client wants it in Flash 7.
>
> Thanks,
> Sascha
>
>
> - Original Message -
> From: "Michael Bedar" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Sunday, March 19, 2006 12:32 AM
> Subject: Re: [Flashcoders] Alpha-blending two MC's with bitmaps?
>
>
> > There is a limit to how many alpha'd movieclips you can have  overlapping
> > before Flash runs into display errors. If a movieclip is  supposed to be
> > completely invisible, set _visible=false instead of  _alpha=0, so that
> > Flash does not need to display it.
> >
> > If for some reason you really need to display many images overlapped  with
> >  >0 alpha, look into drawing them into the same bitmap in Flash 8.
> >
> >
> >
> > On Mar 18, 2006, at 7:05 AM, Sascha Balkau wrote:
> >
> >> Hi list,
> >>
> >> I got a number of movieclips created with createEmptyMovieClip,  into
> >> every MC I load a JPG image dynamically and then it's set it  invisible.
> >> Then I change the depth of two of these mc's, say one to depth  2000, the
> >> other to 2001, make them visible and then I try to blend  over these two
> >> images with an alpha transparency by setting the  _alpha of the upper
> >> image to 0 and increase it up to 100 in an  onEnterFrame.
> >> However it doesn't work, the upper image always fades in from 100%  white
> >> and not the underlying image.
> >> Did I missed something? Is that not possible with _alpha in Flash?
> >>
> >> Thanks for any hints!
> >> Sascha
> >>
> >> ___
> >> Flashcoders@chattyfig.figleaf.com
> >> To change your subscription options or search the archive:
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >> Brought to you by Fig Leaf Software
> >> Premier Authorized Adobe Consulting and Training
> >> http://www.figleaf.com
> >> http://training.figleaf.com
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
Weldon Mac Donald
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: swfdraw2jpg database table settings

2006-03-18 Thread Rafa
Hi Mack, Thx for your offer to help. I've solved the MySql code now and got
it to work.

To the list, I'm sorry I got angry earlier - I just HATE people whose
actions don't match their words.

rafa


On 3/18/06, Mack K <[EMAIL PROTECTED]> wrote:
>
> Hello rafa,
>
> I have used the swfdraw2jpg app before and it is very simple to setup -
> any dummy can do it ;)
> Let me know if you need a hand.
>
>
> Hi All, if you're familiar with the swfdraw2jpg application, hope you can
> advise on the following:
> - how do I set up the MySQL database table 'drawingstable'? What fields
> should be in this database?
> - I've tried creating a MySQL 'drawingstable' table with the following
> fields: id, user, comment, url
> - I've set the 'id' field to integer and as the primary key, with the
> other
> fields set as 'varchar'
> - But I keep getting the following error: Warning: mysql_fetch_array():
> supplied argument is not a valid MySQL result resource in (url)index.php
>
> I can't figure it out what am I doing wrong? Can someone pls advise.
>
> Thanks, rafa
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Cannot stop loaded movie

2006-03-18 Thread Marco Tabini
Thanks Ian--but no dice. At this point, I'm willing to write this off to 
a sandboxing problem, although it makes no sense that you shouldn't be 
able to stop a movie that you load, regardless of where it comes from. 
I'm sure the folks at Macromedia have thought it through--although, 
personally, I find it all pretty puzzling.


Thanks to everyone who tried to help. If anyone else has any 
ideas/thoughts/suggestions, I am all ears. For the moment, I'll revert 
back to 7.0 and live without the cool 8.0 stuff.


Cheers,


Marco

Ian Thomas wrote:

Is this a scoping issue? Are you sure that mcClip is defined and
pointing at the right thing inside your function()?

Try

import mx.utils.Delegate;

function onLoadedClip(clip:MovieClip)
{
   clip.stop(); // or clip.gotoAndStop(1);
}

var mcl:MovieClipLoader=new MovieClipLoader();
mcl.onLoadInit=Delegate.create(this,onLoadedClip);
mcl.load(url,myClip);

... from memory, that ought to work (as long as myClip is the clip
you're loading into)

(Delegate makes the calling of anonymous functions much clearer - see
http://www.osflash.org/flashcoders/as2#handling_scope_in_event_handlers
for more details on that one.
)

HTH,
  Ian

On 3/18/06, Marco Tabini <[EMAIL PROTECTED]> wrote:

Thanks Helen--

Still having the same problem though. Here's my code now:

ld = new MovieClipLoader();
url =

ld.onLoadInit = function()
{
mcClip.gotoAndStop (1);
}

ld.loadClip(url, mcClip);


This only works if I publish in Flash 7 compatibility mode with local
access only. If I set it to publish in Flash 8 mode, I have to switch to
network access only and, when I run the movie from the player the movie
loads but it doesn't stop.

Any more thoughts? Can anyone try and reproduce this to see if it also
happens to them? Any remote SWF move should do.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File Exists - a better way?

2006-03-18 Thread Isaac Rivera

Alright...

I have a minute now...

This may be an issue of semantics, but if what we want to know is  
whether the file exists or not on an HTTP connection, then the only  
way is to wait for the success boolean. HTTP servers do respond when  
a requested resource is not available. This is the classic 404 HTTP  
status. Unfortunately there is no way of knowing if the response  
coming back from the server is the requested resource or an Error  
type HTTP response until the response is downloaded and we can either  
see the HTTP response headers (flash 8) or test the success boolean.  
The only other possible condition is whether the resource requested,  
existing or not, is available. By this I mean whether the connection  
to the server was achieved and the request is processed in  
"reasonable" time. This is where a time out comes in. I think time  
out subjectivity can be minimized by testing for the first few bytes,  
not whether the full response happens or not. There is a huge  
difference if we give 10 seconds to get a full response to a 50K file  
or the same 10 seconds to just test the first few bytes of the same  
file.


In other words... if in 10 seconds you have not loaded a single byte,  
then forget it, the response is either not coming or too slow. On the  
other hand, if you did get a single byte on those 10 seconds, then  
you are going to have to wait for the full response to find out  
whether that response indicates that the resource exists or not.


Again, to that effect:

// code --
function fileExists() {}
function fileDoesNotExist() {}

var timeout:Number = 1; // 10 seconds...
var app:MovieClip = this;

var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
clearInterval(app.interval);
if (!success) {
app.fileDoesNotExist();
} else {
app.fileExists();
}
};

var startTime:Number = getTimer() + timeout;
lv.load(url);

var interval:Number = setInterval(function () {
var loaded:Number = app.lv.getBytesLoaded();
if (loaded == 0 && getTimer() >= app.startTime) {
app.lv.onLoad = null;
delete app.lv;
clearInterval(app.interval);
app.fileDoesNotExist();
} else if(loaded > 0) {
clearInterval(app.interval);
}
}, 25);
// code --

This essentially tests whether a there has been no response in the  
given timeout. If there hasnt it clears out. If on the other hand,  
there has, it waits for the load to determine whether the file exists  
or not.


I think only a simple server side proxy script, or perhaps even an  
AJAX script, could bypass the hassle of waiting for the full response.




On Mar 18, 2006, at 6:53 AM, Ian Thomas wrote:


Bart,
  Firstly, I'm not sure why that's a reply to my posting - and
secondly, why would you want to do that..?

  The original poster asked if there was a way of checking whether a
file exists sooner than waiting for the whole file to load. Your
solution loads the whole file via LoadVars - which would take the same
amount of time as loading it normally. My solution is a quick call to
a webserver and a few bytes worth of response - much quicker than
(say) loading a 250Kb file...

Ian

On 3/18/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote:

Ian: "There's no Flash native hack as far as I know."

You can check (and cache while you're at it) any file by using  
LoadVars:


var file:String = "anyFileType.exe";

var fileExists:LoadVars = new LoadVars();
fileExists.onLoad = mx.utils.Delegate.create(this, doCheck);
fileExists.load(file);

function doCheck(success:Boolean) {
if (success) trace("File "+file+" exists.");
else trace("File "+file+" does not exist.");
}



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 8 broken

2006-03-18 Thread Weyert de Boer

> It takes about five minutes to install so if it were me, I'd uninstall
> and then reinstall the program. Or you could spend hours
> troubleshooting it if you prefer.

Good point, let's see if that works. The problem didn't work on a friends
Flash 8 copy too.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 8 broken

2006-03-18 Thread Kevin Jackson
It takes about five minutes to install so if it were me, I'd uninstall
and then reinstall the program. Or you could spend hours
troubleshooting it if you prefer.

Kevin Jackson

On 3/18/06, Weyert de Boer <[EMAIL PROTECTED]> wrote:
>
> > Define reluctant.  Is it crashing Flash, or freezing? Have you tried
> > different FLA's?
>
> It's freezing halfway. At first I thought it was slow but after waiting 30
> minutes it was still not done. I think I f---ed something up. My brother
> told me that you can delete preferences files but I don't know where those
> are ? I am a Mac noob
> --
> Yours,
>
> Weyert de Boer ([EMAIL PROTECTED])
> innerfuse*
>
> http://www.innerfuse.biz/
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
Kevin Jackson
[EMAIL PROTECTED]

"What does it say for democracy that half of the American population
is unable to draw a rational conclusion from unambiguous facts?"
Paul Craig Roberts
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash8 and cgi

2006-03-18 Thread Miles Thompson

At 03:43 AM 3/18/2006, [EMAIL PROTECTED] wrote:


Hi,
anyone know how to connect a flash movie to a cgi script?
I tried to use sendAndLoad but when i check with the onLoad function it
gives me an unsuccess...

Thanks,Riccardo


Ricardo,

This will sound v. elementary, but have you checked the CGI script outside 
the movie, and does it return clean material?


Second, what does that fragment of your AS look like? I'be been bedevilled 
by this myself.


Miles





--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Alpha-blending two MC's with bitmaps?

2006-03-18 Thread Sascha Balkau

Hi Michael,

there are several mc's in one container mc but all are set to invisible 
except for two at a time. And I want to fade between these two but I haven't 
managed to do so. The top most mc always fades in from the white background 
as if the bottom mc would be invisible. But it isn't. Flash 8 is no choice 
as my client wants it in Flash 7.


Thanks,
Sascha


- Original Message - 
From: "Michael Bedar" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Sunday, March 19, 2006 12:32 AM
Subject: Re: [Flashcoders] Alpha-blending two MC's with bitmaps?


There is a limit to how many alpha'd movieclips you can have  overlapping 
before Flash runs into display errors. If a movieclip is  supposed to be 
completely invisible, set _visible=false instead of  _alpha=0, so that 
Flash does not need to display it.


If for some reason you really need to display many images overlapped  with 
 >0 alpha, look into drawing them into the same bitmap in Flash 8.




On Mar 18, 2006, at 7:05 AM, Sascha Balkau wrote:


Hi list,

I got a number of movieclips created with createEmptyMovieClip,  into 
every MC I load a JPG image dynamically and then it's set it  invisible.
Then I change the depth of two of these mc's, say one to depth  2000, the 
other to 2001, make them visible and then I try to blend  over these two 
images with an alpha transparency by setting the  _alpha of the upper 
image to 0 and increase it up to 100 in an  onEnterFrame.
However it doesn't work, the upper image always fades in from 100%  white 
and not the underlying image.

Did I missed something? Is that not possible with _alpha in Flash?

Thanks for any hints!
Sascha

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File Exists - a better way?

2006-03-18 Thread Bart Wttewaall
Ah, you're right Ian. My post wasn't really a reply to your sollution,
the topic "File Exists - a better way" just triggered a memory to the
code I posted. I just wanted to contribute a bit to the original topic
(it was a long, tiresome day).

But perhaps it might be useful in some other way? For example if you'd
like to preload/cache a few files when your application starts that
can be used later on...

Oh well, sorry for the noise.
Bart

2006/3/18, Ian Thomas <[EMAIL PROTECTED]>:
> Bart,
>   Firstly, I'm not sure why that's a reply to my posting - and
> secondly, why would you want to do that..?
>
>   The original poster asked if there was a way of checking whether a
> file exists sooner than waiting for the whole file to load. Your
> solution loads the whole file via LoadVars - which would take the same
> amount of time as loading it normally. My solution is a quick call to
> a webserver and a few bytes worth of response - much quicker than
> (say) loading a 250Kb file...
>
> Ian
>
> On 3/18/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote:
> > Ian: "There's no Flash native hack as far as I know."
> >
> > You can check (and cache while you're at it) any file by using LoadVars:
> >
> > var file:String = "anyFileType.exe";
> >
> > var fileExists:LoadVars = new LoadVars();
> > fileExists.onLoad = mx.utils.Delegate.create(this, doCheck);
> > fileExists.load(file);
> >
> > function doCheck(success:Boolean) {
> > if (success) trace("File "+file+" exists.");
> > else trace("File "+file+" does not exist.");
> > }
> >
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Avoid escaping spaces

2006-03-18 Thread André Goliath
Hi List,
 
I´m using escape() a lot in my project to create XML-save content I write to
disk.
Is there any possibility to override the escape() command that it does not
escape spaces to %20 ?
I know I could do that by calling escape like this
 
escape("my string").split("%20").join(" ");
 
but as I use escape() a lot in my project I´m afraid I might miss one
escape()-call,...
 
Thanks for any thoughts,
 
André
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Alpha-blending two MC's with bitmaps?

2006-03-18 Thread Michael Bedar
There is a limit to how many alpha'd movieclips you can have  
overlapping before Flash runs into display errors. If a movieclip is  
supposed to be completely invisible, set _visible=false instead of  
_alpha=0, so that Flash does not need to display it.


If for some reason you really need to display many images overlapped  
with >0 alpha, look into drawing them into the same bitmap in Flash 8.




On Mar 18, 2006, at 7:05 AM, Sascha Balkau wrote:


Hi list,

I got a number of movieclips created with createEmptyMovieClip,  
into every MC I load a JPG image dynamically and then it's set it  
invisible.
Then I change the depth of two of these mc's, say one to depth  
2000, the other to 2001, make them visible and then I try to blend  
over these two images with an alpha transparency by setting the  
_alpha of the upper image to 0 and increase it up to 100 in an  
onEnterFrame.
However it doesn't work, the upper image always fades in from 100%  
white and not the underlying image.

Did I missed something? Is that not possible with _alpha in Flash?

Thanks for any hints!
Sascha

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 8 broken

2006-03-18 Thread Weyert de Boer

> Define reluctant.  Is it crashing Flash, or freezing? Have you tried
> different FLA's?

It's freezing halfway. At first I thought it was slow but after waiting 30
minutes it was still not done. I think I f---ed something up. My brother
told me that you can delete preferences files but I don't know where those
are ? I am a Mac noob
-- 
Yours,

Weyert de Boer ([EMAIL PROTECTED])
innerfuse*

http://www.innerfuse.biz/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Cannot stop loaded movie

2006-03-18 Thread Ian Thomas
Is this a scoping issue? Are you sure that mcClip is defined and
pointing at the right thing inside your function()?

Try

import mx.utils.Delegate;

function onLoadedClip(clip:MovieClip)
{
   clip.stop(); // or clip.gotoAndStop(1);
}

var mcl:MovieClipLoader=new MovieClipLoader();
mcl.onLoadInit=Delegate.create(this,onLoadedClip);
mcl.load(url,myClip);

... from memory, that ought to work (as long as myClip is the clip
you're loading into)

(Delegate makes the calling of anonymous functions much clearer - see
http://www.osflash.org/flashcoders/as2#handling_scope_in_event_handlers
for more details on that one.
)

HTH,
  Ian

On 3/18/06, Marco Tabini <[EMAIL PROTECTED]> wrote:
> Thanks Helen--
>
> Still having the same problem though. Here's my code now:
>
> ld = new MovieClipLoader();
> url =
>
> ld.onLoadInit = function()
> {
> mcClip.gotoAndStop (1);
> }
>
> ld.loadClip(url, mcClip);
>
>
> This only works if I publish in Flash 7 compatibility mode with local
> access only. If I set it to publish in Flash 8 mode, I have to switch to
> network access only and, when I run the movie from the player the movie
> loads but it doesn't stop.
>
> Any more thoughts? Can anyone try and reproduce this to see if it also
> happens to them? Any remote SWF move should do.
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] control two text area with one scrollbar

2006-03-18 Thread riccardo.roasio
Hi,
is possible to control the scroll of two text area using only one scrollBar+
Thanks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Cannot stop loaded movie

2006-03-18 Thread Marco Tabini

Thanks Helen--

Still having the same problem though. Here's my code now:

ld = new MovieClipLoader();
url =

ld.onLoadInit = function()
{
mcClip.gotoAndStop (1);
}

ld.loadClip(url, mcClip);


This only works if I publish in Flash 7 compatibility mode with local 
access only. If I set it to publish in Flash 8 mode, I have to switch to 
network access only and, when I run the movie from the player the movie 
loads but it doesn't stop.


Any more thoughts? Can anyone try and reproduce this to see if it also 
happens to them? Any remote SWF move should do.


Thanks!


Marco

Helen Triolo wrote:
What Marc said, plus use onLoadInit instead of onLoadComplete.  From the 
help docs:


"It's important to understand the difference between 
MovieClipLoader.onLoadComplete and MovieClipLoader.onLoadInit. The 
onLoadComplete event is called after the SWF, JPEG, GIF, or PNG file 
loads, but before the application is initialized. At this point, it is 
impossible to access the loaded movie clip's methods and properties, and 
therefore you cannot call a function, move to a specific frame, and so 
on. In most situations, it's better to use the onLoadInit event instead, 
which is called after the content is loaded and fully initialized."


Helen


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] FlashPaper creates a Script Error when loading from a DataBase

2006-03-18 Thread daniele | mentegrafica.it

Hello all,

maybe some of you encotured the same problem.

I created a service to upload swf and jpg files to a mysql DataBase and 
then it's possible to load those files simply calling a PHP based service.


All works fine in the borswer ( I get the file from the DB with the 
right size and proper header ) and also in a flash movie loading jpg and 
standard swf.


When the my flashmovie tries to load the flashpaper it causes an 
enormous BUG...It start to create a "A SCRIPT IS RUNNING SLOW..." ALERT 
crashing the swf...


I don't what is the reason but I think should be something about domain 
restrictions ( I'm using DB, flashmovie and PHP service on the same 
domain and I'm also using crossdomain.xml properly configured ) or the 
flashpaper header...


But I think it's a bug.

I don't really understand

It should means that flashpaper could loaded only as a physical file on 
a web server.


Thanks,

--
dott. daniele galiffa
multimedia designer and developer
Macromedia FlashMX Developer Certified

mobile: +393355753078
email: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
Skype: danielegaliffa
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Alpha-blending two MC's with bitmaps?

2006-03-18 Thread Sascha Balkau

Hi list,

I got a number of movieclips created with createEmptyMovieClip, into every 
MC I load a JPG image dynamically and then it's set it invisible.
Then I change the depth of two of these mc's, say one to depth 2000, the 
other to 2001, make them visible and then I try to blend over these two 
images with an alpha transparency by setting the _alpha of the upper image 
to 0 and increase it up to 100 in an onEnterFrame.
However it doesn't work, the upper image always fades in from 100% white and 
not the underlying image.

Did I missed something? Is that not possible with _alpha in Flash?

Thanks for any hints!
Sascha

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File Exists - a better way?

2006-03-18 Thread Ian Thomas
Bart,
  Firstly, I'm not sure why that's a reply to my posting - and
secondly, why would you want to do that..?

  The original poster asked if there was a way of checking whether a
file exists sooner than waiting for the whole file to load. Your
solution loads the whole file via LoadVars - which would take the same
amount of time as loading it normally. My solution is a quick call to
a webserver and a few bytes worth of response - much quicker than
(say) loading a 250Kb file...

Ian

On 3/18/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote:
> Ian: "There's no Flash native hack as far as I know."
>
> You can check (and cache while you're at it) any file by using LoadVars:
>
> var file:String = "anyFileType.exe";
>
> var fileExists:LoadVars = new LoadVars();
> fileExists.onLoad = mx.utils.Delegate.create(this, doCheck);
> fileExists.load(file);
>
> function doCheck(success:Boolean) {
> if (success) trace("File "+file+" exists.");
> else trace("File "+file+" does not exist.");
> }
>
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] flash8 and cgi

2006-03-18 Thread Adrian Lynch
How are you trynig to use sendAndLoad? What does your CGI script do/look like?

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: 18 March 2006 07:43
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flash8 and cgi


Hi,
anyone know how to connect a flash movie to a cgi script?
I tried to use sendAndLoad but when i check with the onLoad function it 
gives me an unsuccess...

Thanks,Riccardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com