RE: [Flashcoders] How to simulate Osiloscope

2011-08-10 Thread Steve Abaffy
Well depends on how much of the oscilloscope's functionality you want to
reproduce. What signal are you going to simulate. I would imagine that all
you are going to do is show a Sine wave and switch time bases. In this case
all you have to do is graph a sine wave on your screen and change the
frequency of the graph each time you switch time bases.  Y = sin(F*Thea) if
you also want to change amplitude then y = A*Sin(F*Thea) that should get you
going in the right direction. The rest would simply be a good drawing of an
oscilloscope to make the thing look convincing.


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of nasim h
Sent: Wednesday, August 10, 2011 1:24 AM
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] How to simulate Osiloscope 

Hi My project is to simulate Osiloscope , by  flash
I dont know how to start I am familier with drawing api , Is there any site 
or book that learn how to simulate thing 
or How can I start simulation by flash
helllp plz
___
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] Strange Button Behavior

2011-06-13 Thread Steve Abaffy
It is not an exe. I am accessing the swf file via webpage. I tried adding
Security.LOCAL_TRUSTED; to the code but that didn't work either. Tried
making it a exe file but then it won't run from the CD because the link to
it is via a web page and the browser objects as the exe file does not have a
digital signature. 


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Monday, June 13, 2011 4:03 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Strange Button Behavior

Hmm, an exe should be exempt from the local vs network restrictions, 
but maybe something else is failing.

Have you tried tracing the error?

I vaguely rememeber having problems with _blank, etc. in the past.  
See if it works without those?

Here are some links I found that may help.
http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-pro
blem/
http://www.adobe.com/devnet/flash/articles/local_network_playback.html
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net
/package.html#navigateToURL%28%29

Glen


On 11/06/2011 19:35, Steve Abaffy wrote:
 Hello,



 After some more investigation I have found that the buttons not working
 problem I was having is not a browser malfunction. I have found that when
I
 put the site on a web server all works well regardless of the browser. But
 when I put the site on a CD a run it from there, all calls to outside
 sources do not work.

 All calls to local sources such as url:String = /Documents/some.pdf in
the
 below function works just fine.

 And insight to this problem would be appreciated.



 function GotoURLAustinMopac(e:MouseEvent):void{

  var url:String =

http://maps.google.com/maps?f=qhl=engeocode=q=6836+Austin+Center+Blvd.+A
 ustin+TX+78731;

  var request:URLRequest = new URLRequest(url);

  try {

  navigateToURL(request,'_blank');

  } catch (e:Error) {

   //Do Nothing

  }

 }

 ___
 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] Strange Button Behavior

2011-06-11 Thread Steve Abaffy
Hello,

 

After some more investigation I have found that the buttons not working
problem I was having is not a browser malfunction. I have found that when I
put the site on a web server all works well regardless of the browser. But
when I put the site on a CD a run it from there, all calls to outside
sources do not work.

All calls to local sources such as url:String = /Documents/some.pdf in the
below function works just fine.

And insight to this problem would be appreciated.

 

function GotoURLAustinMopac(e:MouseEvent):void{

var url:String =
http://maps.google.com/maps?f=qhl=engeocode=q=6836+Austin+Center+Blvd.+A
ustin+TX+78731;

var request:URLRequest = new URLRequest(url);

try {

navigateToURL(request,'_blank');

} catch (e:Error) {

 //Do Nothing

}

}

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


[Flashcoders] Strange button behavior

2011-06-09 Thread Steve Abaffy
Hello,

I have a flash button that when it is played on IE9 works. It calls an off
site website, but when I try it on IE8 the mouse over actions that the
button is supposed to have work, but when pressed nothing happens. The
entire application was written in AS3, is there something that I am missing
as to why this is not working. I have also test on Chrome 3 and Firefox 4
and they work fine. Any help would be appreciated.

 

Thank you.

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


RE: [Flashcoders] dynmically adding waves together problem

2011-06-06 Thread Steve Abaffy
It would seem to me that you are drawing the two waves with some kind of
sine function.

Y1 = Sin(x1+Phase1)
Y2 = Sin(x2+Phase2)

So all you have do to create the third is
Y3 = Sin(x1+Phase1) + Sin(x2+Phase2)

Remember of course that Y3 will have a max/min of +2/-2 assuming of course
that originals are +1/-1 range as they should be with no amplitude
adjustment.




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor
Sent: Monday, June 06, 2011 2:16 PM
To: Flash Coders List
Subject: [Flashcoders] dynmically adding waves together problem

Hi All,
 
I need to draw waves dynamically which can be influenced at runtime.
These waves then have to add together and show the result in a third wave.
 
Here you can see the problem graphically:
 
http://www.codobyte.com/waves/
 
Every help is welcome!
 
TIA,
Cor van Dooren
 
___
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] How make an SWF run on IPad?

2011-05-02 Thread Steve Abaffy
I guess I am just blind or something I have CS5 but don't see where or how
to package as an app I'm sure there is a RTFM answers coming but I have
done that, and either I don't understand what I am reading or I am missing
something.



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman
Sent: Monday, May 02, 2011 2:05 PM
To: Flash Coders List
Subject: Re: [Flashcoders] How make an SWF run on IPad?

If you need it for general distribution, you can package it as an app 
using Flash CS5 or AIR 2.6 (gets you a newer faster runtime), then point 
site visitors to the app location. All individual swfs will need to be 
merged into one giant swf.

If you need to demo something on the iPad, you can use iSwifter:
http://itunes.apple.com/us/app/iswifter/id388857173?mt=8

ATM, those are the only two options (well, you could rewrite the whole 
thing for haXe too) - eventually you may be able to use something like 
Jangaroo to compile an AS3 based app to HTML5/Canvas (canvas is too slow 
on iOS ATM), or if Adobe expands it out, use Wallaby 
(http://labs.adobe.com) to export to HTML5 from Flash (or maybe a combo 
of the two at some point).

For now, an app out of Flash CS5/AIR SDK, is the best option.

Kevin N.


On 4/28/11 4:21 PM, Steve Abaffy wrote:
 I have been searching  the web for about an hour now, and I can't find a
SWF
 to MP4 convert that will allow the actionscript (i.e. buttons etc..) to
 work. What I am trying to do is convert my flash presentation to something
 that will run on an IPad. I have entire site written in actionscript 3.0
so
 I have buttons and other interactive things on the screen. But flash will
 not run on an IPad so what can one do.



 Thanks

 ___
 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] How make an SWF run on IPad?

2011-04-28 Thread Steve Abaffy
I have been searching  the web for about an hour now, and I can't find a SWF
to MP4 convert that will allow the actionscript (i.e. buttons etc..) to
work. What I am trying to do is convert my flash presentation to something
that will run on an IPad. I have entire site written in actionscript 3.0 so
I have buttons and other interactive things on the screen. But flash will
not run on an IPad so what can one do.

 

Thanks

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


[Flashcoders] How to Make SWF work on IPad

2011-04-28 Thread Steve Abaffy
Something I forgot to mention SWF will be delivered over the web.

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


RE: [Flashcoders] How make an SWF run on IPad?

2011-04-28 Thread Steve Abaffy
Yes, I have come to realize the MP4 is not the way to go, but I do need a
SWF file to work both in a regular browser and on an IPad, as  it seems IPad
does not support flash.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: Thursday, April 28, 2011 3:28 PM
To: Flash Coders List
Subject: RE: [Flashcoders] How make an SWF run on IPad?

MP4 does not support Actionscript, so that won't work.  Any interactive
buttons you have seen on similar sites are built with something else other
than Flash.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve Abaffy
Sent: Thursday, April 28, 2011 4:21 PM
To: 'Flash Coders List'
Subject: [Flashcoders] How make an SWF run on IPad?

I have been searching  the web for about an hour now, and I can't find a SWF
to MP4 convert that will allow the actionscript (i.e. buttons etc..) to
work. What I am trying to do is convert my flash presentation to something
that will run on an IPad. I have entire site written in actionscript 3.0 so
I have buttons and other interactive things on the screen. But flash will
not run on an IPad so what can one do.

 

Thanks

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

--
This message w/attachments (message) is intended solely for the use of the
intended recipient(s) and may contain information that is privileged,
confidential or proprietary. If you are not an intended recipient, please
notify the sender, and then please delete and destroy all copies and
attachments, and be advised that any review or dissemination of, or the
taking of any action in reliance on, the information contained in or
attached to this message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a
solicitation of any investment products or other financial product or
service, an official confirmation of any transaction, or an official
statement of Sender. Subject to applicable law, Sender may intercept,
monitor, review and retain e-communications (EC) traveling through its
networks/systems and may produce any such EC to regulators, law enforcement,
in litigation and as required by law. 
The laws of the country of each sender/recipient may impact the handling of
EC, and EC may be archived, supervised and produced in countries other than
the country in which you are located. This message cannot be guaranteed to
be secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a
Condition to Any Banking Service or Activity * Are Not Insured by Any
Federal Government Agency. Attachments that are part of this EC may have
additional important disclosures and disclaimers, which you should read.
This message is subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you
consent to the foregoing.
___
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] Strange Behavior with an email link

2011-04-25 Thread Steve Abaffy
I have the following code, and in IE8, IE9, Chrome when the email link
button is pressed, it opens the client email as expected but it also opens a
new page that says Navigation Cancelled in Firefox it works without
opening the extra page.

 

How do I make it stop doing that.

function SendRepEmail(e:MouseEvent): void{

var url:String = mailto:; + e.target.RepEmailText.text;

  var request:URLRequest = new URLRequest(url);  // Also triedvar
request:URLRequest = new URLRequest(url,_blank' ); with the same result

  try {

navigateToURL(request);

  } catch (e:Error) {

//Do Nothing

  }

}

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


RE: [Flashcoders] Strange Behavior with an email link

2011-04-25 Thread Steve Abaffy
Thank you that did the trick.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of DONALD
TALCOTT
Sent: Monday, April 25, 2011 12:23 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Strange Behavior with an email link

had somewhat the same problem, used as below to fix.

//SET THE MAILTO ADDRESS
var emailLink1:String = mailto:...@i.com;;
 
//ADD EVENT LISTENER FOR EMAIL LINK
mailtoLink1.addEventListener(MouseEvent.MOUSE_DOWN,function():void {
 navigateToURL(new URLRequest(emailLink1), _self);}
);

On Apr 25, 2011, at 1:07 PM, Steve Abaffy wrote:

 I have the following code, and in IE8, IE9, Chrome when the email link
 button is pressed, it opens the client email as expected but it also opens
a
 new page that says Navigation Cancelled in Firefox it works without
 opening the extra page.
 
 
 
 How do I make it stop doing that.
 
 function SendRepEmail(e:MouseEvent): void{
 
 var url:String = mailto:; + e.target.RepEmailText.text;
 
  var request:URLRequest = new URLRequest(url);  // Also triedvar
 request:URLRequest = new URLRequest(url,_blank' ); with the same result
 
  try {
 
navigateToURL(request);
 
  } catch (e:Error) {
 
//Do Nothing
 
  }
 
 }
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

DON TALCOTT
316 Greenwood Avenue
Decatur, Georgia 30030

404.538.1642
dtalc...@mindspring.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


[Flashcoders] Something I don't understand about loader

2011-04-24 Thread Steve Abaffy
Hello,

This code Is not exact it is to show what is happening.

 

myLoader :Loader = new Loader();

 

myLoader.load(new URLRequest(filename)); // loads a imagefile

 

then in a function

 

var mc1:MovieClip = new MovieClip();

var mc2:MovieClip = new MovieClip();

mc1.addChild(myLoader);

mc2.addChild(myLoader);

 

At this point I figure I have two movieclips with the same image in them.

mc1.width = 100;

mc1.height = 100;

mc2.width = 200;

mc2.width =200;

mc1.x = 0;

mc1.y = 0;

mc2.x = 150;

mc2.y = 0;

 

addChild(mc1);

addChild(mc2);

 

at this point I should see two versions of the image side by
side on the screen one bigger than the other. However what is a happening is
that only the second on appears as the first looks like it somehow becomes
the second one.  If I only 

addChild(mc1) then it appears at 0,0 at the size 100,100;

if I only 

addChild(mc2) then it appears at 150,0 at the size of 200,200

but if add them both then only the second one appears. 

 

what is going on here???

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


RE: [Flashcoders] Something I don't understand about loader

2011-04-24 Thread Steve Abaffy
Great then how do I use the same image in two different spots??

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: Sunday, April 24, 2011 3:02 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Something I don't understand about loader

Steve Abaffy skriver:
 what is going on here???

Each DisplayObject can only be on one display list. Trying to add it to 
another one when already on a list will automatically remove it from the 
first one before it is added to the second one.
___
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] How to access MovieClip declared in one function in an event listener

2011-04-22 Thread Steve Abaffy
Well my basic understanding of programming goes something like this.
We call functions to do certain things when we need them to do it, so:
Basic flowchart of program.

LoadExternalData - This data will be loaded into movieclips to be place on
the stage at a later time.
DrawTheMainScreen - These are the items on the stage that stay all the time.
DrawNavigationButtons - These buttons will load the different things on the
screen that change. This is where the EventListeners for the buttons are
defined.
FirstButtonClickedListener - Calls ClearscreenFunction, which clears
the screen of all previous things on the stage that are not to stay all the
time
Then Draw the stage for this Menu Item.
SecondButtonClickedListenr - Cals ClearscreenFunction.
Then Draws the stage for this MenuItem. This screen is a
input form which has a button on it to do something with the information
entered. Declares Listener for this button.
ButtonListener is called and now we can't access any of the
information on the form.

So in my opinion it would be better if you could declare the Listener as
follows:

myButton.addListener(Event,ParamatersToPass,FunctionsToCall); With the
parameter list to be optional if not needed.

Then declare the Function accordingly.

The example of  trace((event.currentTarget).TextField.text);
Here event.currentTarget is the button itself which of course does not have
any textfields associated with it.

Another example was to write two function one that calls is the
eventListener and then have the eventListener call another eventListener
where you are passing What Text where are you getting the value of What
Text? If I could get the value of What Text in this function I wouldn't
need the other function so I am a bit confused as to how that will solve
anything. The only example that seems to work is to make the movieClip a
global variable, which seems to me to violate everything I have ever been
taught about programming. Which is to say that one should use global
variables as sparingly as possible. I have written thousands of lines of
code in my 30+ years as a programmer and probably only used global variables
once or twice before OOPs programming became the rage.


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gerry
Sent: Friday, April 22, 2011 6:15 AM
To: Flash Coders List
Subject: Re: [Flashcoders] How to access MovieClip declared in one function
in an event listener

There is more than one way to skin a cat - crazy expression but you can do
what you want a number of ways in AS3.
I guess knowing that you only want to add that movieClip from within the
function would change things in the sample I sent.


Here's another basic version (not knowing what you are doing with the code
or movieClips) ...

function DrawMyStuffOnScreen():void{

  var myMovieClip:MovieClip = new DefinedMovieClip();
 myMovieClip.TextField.text = SomeText;
  myMovieClip.addEventListener(What text, showWhatText);
  
 var myButton:SimpleButton = new DefinedButton();

  myButton.addEventListener(MouseEvent.CLICK,DoSomething);

  addChild(myMovieClip);
addChild(myButton);
}

function DoSomething(e:MouseEvent):void{
/* This is called from the button which will
dispatch a new event that your movie clip is listening for */

dispatchEvent(new Event(what text));
}

function showWhatText(e:Event):void{
   /* This event fires when the event What text happened */
trace(e.target.TextField.text);
}



1.) Why are you declaring your MovieClip within the function? 
2.) Does that movieClip and button have to be added to the stage at a
certain time?
3.) Is all of this code on the timeline?

-Gerry


On Apr 22, 2011, at 12:35 AM, Steve Abaffy wrote:

 So basically the only way to make this work is to declare the myMovieClip
as
 a global variable??
 
 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gerry
 Sent: Thursday, April 21, 2011 9:28 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] How to access MovieClip declared in one
function
 in an event listener
 
 Steve,
 
 You have some things confused. Like Ross said, read up on event.target.
 
 Your code should look something like this...
 
 Var myMovieClip:MovieClip;
 Var myButton:SimpleButton;
 
 DrawMyStuffOnScreen();
 
 
 Function DrawMyStuffOnScreen():void{
 
   myMovieClip = new DefinedMovieClip();
 
   myButton = new DefinedButton();
 
   myButton.addEventListener(MouseEvent.CLICK,DoSomething);
 
   //Defined Movie clip has several input fields in it
 
   myMovieClip.TextField.text = SomeText;
 
   addChild

[Flashcoders] Why doesn't this work addChild() removeChild()

2011-04-22 Thread Steve Abaffy
Hello,

 

Why doesn't this work??

 

In the same function

Var Mort:movieClip = new Mort();

addChild(Mort);

removeChild(Mort);

I get this error

The supplied DisplayObject must be a child of the caller.

 

 

 

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


[Flashcoders] Why doesn't this work addChild removechild

2011-04-22 Thread Steve Abaffy
Quick update

Function{

 

Var Mort: MovieClip = new Mort();

Try{

removeChild(Mort);

}catch(e:Error){

// Do nothing;

}

addChild(Mort);

}

 

This function is called multiple times and each time it adds the child Mort,
but I want to remove the one placed there previously, it works if I add the
two lines right after each other as in the previous email but I really need
it work more like this.

 

 

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


[Flashcoders] How to access MovieClip declared in one function in an event listener

2011-04-21 Thread Steve Abaffy
Hello,

 

I basically have the follow:

 

Function DrawMyStuffOnScreen():void{

Var myMovieClip:MovieClip = new DefinedMovieClip();

Var myButton:SimpleButton = new DefinedButton();

myButton.addEventListener(MouseEvent.CLICK,DoSomething);

//Defined Movie clip has several input fields in it

myMovieClip.TextField.text = SomeText;

addChild(myMovieClip);

}

Function DoSomething(MouseEvent.CLICK):void{

What goes in this function to be able to do something like

Trace(myMovieClip.TextField.text); // This show a complier
error of basically I don't know what myMovieClip is;

 

Then tried:

Var myMC = new DefinedMovieClip();

Trace(myMC.TextField.text) // this works but is always empty
since it initializes empty. 

So how do you access the textfield that is sitting on the
stage???

}

Thanks

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


RE: [Flashcoders] How to access MovieClip declared in one function in an event listener

2011-04-21 Thread Steve Abaffy
So basically the only way to make this work is to declare the myMovieClip as
a global variable??

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gerry
Sent: Thursday, April 21, 2011 9:28 PM
To: Flash Coders List
Subject: Re: [Flashcoders] How to access MovieClip declared in one function
in an event listener

Steve,

You have some things confused. Like Ross said, read up on event.target.

Your code should look something like this...

Var myMovieClip:MovieClip;
Var myButton:SimpleButton;

DrawMyStuffOnScreen();


Function DrawMyStuffOnScreen():void{

   myMovieClip = new DefinedMovieClip();

   myButton = new DefinedButton();

   myButton.addEventListener(MouseEvent.CLICK,DoSomething);

   //Defined Movie clip has several input fields in it

   myMovieClip.TextField.text = SomeText;

   addChild(myMovieClip);
addChild(myButton);
}

Function DoSomething(e:MouseEvent):void{

   //What goes in this function to be able to do something like

   Trace(myMovieClip.TextField.text); // This show a complier
error of basically I don't know what myMovieClip is;
}


On Apr 21, 2011, at 9:44 PM, Steve Abaffy wrote:

 Hello,
 
 
 
 I basically have the follow:
 
 
 
 Function DrawMyStuffOnScreen():void{
 
Var myMovieClip:MovieClip = new DefinedMovieClip();
 
Var myButton:SimpleButton = new DefinedButton();
 
myButton.addEventListener(MouseEvent.CLICK,DoSomething);
 
 //Defined Movie clip has several input fields in it
 
myMovieClip.TextField.text = SomeText;
 
addChild(myMovieClip);
 
 }
 
 Function DoSomething(MouseEvent.CLICK):void{
 
What goes in this function to be able to do something like
 
Trace(myMovieClip.TextField.text); // This show a complier
 error of basically I don't know what myMovieClip is;
 
 
 
Then tried:
 
Var myMC = new DefinedMovieClip();
 
Trace(myMC.TextField.text) // this works but is always
empty
 since it initializes empty. 
 
So how do you access the textfield that is sitting on the
 stage???
 
 }
 
 Thanks
 
 ___
 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] problem with adding two digits

2010-12-14 Thread Steve Abaffy
It has to do with the fact that computers have to convert all numbers to binary 
then perform math on those numbers and then convert back to decimal. In the 
process of this conversion you get results like these.

If you need the addition to be accurate and you know that the numbers will 
always be decimals you can multiply the numbers by 100 and then you will add 27 
+ 3 which  will return 30 and then divide it by 100 to get your .3 (or at least 
I think that will work as I have not tried it)

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Adrian Zajac
Sent: Tuesday, December 14, 2010 8:43 AM
To: Flash Coders List
Subject: [Flashcoders] problem with adding two digits

Hello,

First of all, I want to say Hi to everyone here. This is my first post.


Please, take a look at this part of code:

 trace (0.27 + 0.03);   // output -- 0.30004

Can anyone tell me why I get this weird result in output window?


Regards
Adrian
___
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] Math help

2010-09-10 Thread Steve Abaffy
What you need is something called Translation. I am leaving the office so I
can't work out the problem for you, but basically pick a point on the map
and call it 0,0 and then the lat and long of that same point will represent
0,0 and all you have to do is subtract or add the lat and long of the point
on the map from the coordinates of what you are calling 0,0. 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
Theodore
Sent: Friday, September 10, 2010 10:37 AM
To: Flash Coders List
Subject: RE: [Flashcoders] Math help

Hhmmm I do not think this is working - here is my issue - maybe someone has
an idea.


I have a mc that is basically a map of the US. I am getting the long and lat
of a location I want to be able to put a point on the map based on that
long and lat - my thought was that I could find an equivalent x,y coord
based on the long and lat but it does not seem to be translating well... any
thoughts?


From: flashcoders-boun...@chattyfig.figleaf.com
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
[jason.merr...@bankofamerica.com]
Sent: Friday, September 10, 2010 7:58 AM
To: Flash Coders List
Subject: RE: [Flashcoders] Math help

I assume you mean those numbers represent X values, and I assume by
equivalent you mean the same percentage along the line (since those
lines are of two different lengths).  Then all you have to do is some
simple proportional math.

Get the length of each line by subtracting the start point from the end
point (i.e. for line b, 124.4 - 66.92). Divide the point you have on B
(80.6) from the length of B to get the percentage that point is along
line B. Use that number as a proportion to figure the same point on line
A. To do that, multiply that proportion number you got from line B by
the length of line A.  That will give you equivalent proportion on line
A.  Add that proportion number to the start point of line A (in this
case, the start point of A is 0, so doesn't matter) to get the actual
point on line A.

Jason Merrill

Instructional Technology Architect
Bank of America   Global Learning

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(Note: these resources are only available for Bank of America
associates)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
Theodore
Sent: Friday, September 10, 2010 7:24 AM
To: Flash Coders List
Subject: [Flashcoders] Math help

So if I have to line segments:

A: 0-799
B: 66.92 - 124.40


Given a point on B (80.6 for example) how can I find the equivalent
point on A?

___
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] Calculator

2010-03-17 Thread Steve Abaffy
The question what is 15% of 3000 is different then 450 is what percentage of
3000.
The equation sum/total * 100 = percent is valid.

In the first question we have

Sum/3000 * 100 = 15 solves to sum = 450

In the second question
450/3000 * 100 = percent solves to 15



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis,
Erik (MIN - WSW)
Sent: Wednesday, March 17, 2010 9:58 AM
To: Flash Coders List
Subject: RE: [Flashcoders] Calculator

What's the difference between a sum and a total?

Knock knock.
Who's there?
Nose!
Nose who?
Who knows?

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: Wednesday, March 17, 2010 4:11 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Calculator

Karl DeSaulniers wrote:
 Hey Jonathan,
 Isn't it sum*total / 100 = percentage?

 Karl


No, it is not and has never been. *mumbeling about kids these days*

___
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


__ Information from ESET NOD32 Antivirus, version of virus signature
database 4952 (20100317) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4952 (20100317) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


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


RE: [Flashcoders] Placing sprites on the circumference of a circle

2009-11-09 Thread Steve Abaffy
Rotate the sprite the same as the angle your using. So if it is at the top
of the circle use 90 degrees, if it is half way between the equator and the
north pole then 45 degrees etc...

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of W.R. de Boer
Sent: Monday, November 09, 2009 10:41 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Placing sprites on the circumference of a circle

Hello,

I am currently working on a little flash project where I would like to  
place the sprites or elements on the line or circumference of a  
circle. Now I know how I can get x,y-position of each sprite using the  
cosinus and sinus functions together with the radius and angle. Only  
the problem I am currently experiencing is the putting the sprites  
nicely on the line of the circle. It's some rotation related thing but  
I don't get it.

The basic idea is to have an earth and then all kind of items such as  
buildings to be positioned on the line/circumference of the circle and  
then follow the form of the circle. I only don't get it.

I know I can get the x,y position for these (building) sprites the  
following way:

var radius: Number = 50;
var angle: Number = 60;

var x: Number = Math.sin(Math.PI/180 * angle) * radius;
var y: Number = Math.cos(Math.PI/180 * angle) * radius;

Now I only have the problem to nicely rotate the sprite in such manner  
is basically following the form of the circle. I have made a  
drawing of how the sprites and/or buildings (every rectangle is a  
sprite) should be placed on the circle [1] but I don't know how i get  
that nice rotation calculated.

Anyone having any idea how to do this? Too bad, they didn't discuss  
this during math class :(

[1] http://i35.tinypic.com/2a7daop.jpg

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


__ Information from ESET NOD32 Antivirus, version of virus signature
database 4588 (20091109) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4588 (20091109) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

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


RE: [Flashcoders] why is called Vector in AS3? why not TypedArray?

2009-04-27 Thread Steve Abaffy
Well with regards to the monitor position, I have always thought that the
bottom left corner should be 0,0 just as in the Cartesian coordinate system
so that increasing numbers go to the right and up on the screen. It makes
graphic mathematical equations so much easier.  

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Monday, April 27, 2009 11:06 AM
To: Flash Coders List
Subject: Re: [Flashcoders] why is called Vector in AS3? why not
TypedArray?

It's probably a Java thing - Java has really annoying typed arrays 
called Vector too - seems that there should be a big argument whether 
the mathematical definition of vector should overrule the computer 
science definition based on age, but then we would all have to reset our 
screens because 0, 0 would become bottom left, instead of top-right :)

Anthony Pace wrote:
 I think it is really stupid, and bothersome as hell with regard to 
 code completion when working with the vector3d class.

 Just had to vent.  Can anyone tell my why?  vector is usually a point, 
 combination, or an attack method in my books.
 ___
 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] Intersection on circle based on angle

2009-03-17 Thread Steve Abaffy
The x and y coordinates are

X = r * Cos(angle)
Y = r * Sin(angle)

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
Sent: Tuesday, March 17, 2009 9:15 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Intersection on circle based on angle

Jason,
Could you elaborate please?

Point.polar( length, angle );


I have the angle (say 0 degrees). The length would then be pixels from the
center (ie. radius)?




On Tue, Mar 17, 2009 at 9:53 AM, Merrill, Jason 
jason.merr...@bankofamerica.com wrote:

 In AS3, Point.polar()


 Jason Merrill

 Bank of  America   |  Learning Performance Solutions Instructional
 Technology  Media

 Monthly meetings on the Adobe Flash platform for rich media experiences -
 join the Bank of America Flash Platform Community




 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
 Sent: Tuesday, March 17, 2009 9:17 AM
 To: Flash Coders List
 Subject: [Flashcoders] Intersection on circle based on angle

 I've done this before but can't find my file(s). I am currently googling
 but
 haven't found the answer yet (I'm sure it's out there, just need to
 rediscover it).
 I have a circle, registration at 0, 0.
 If I have an angle from it's center, I'd like to get x,y where the angle
 would intersect with the edge of the circle. I am basically drawing dots
 around the outside of a circle (think mixing console knobs with a variable
 number of detents).

 anyone have something handy?

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




-- 
http://ericd.net
Interactive design and development
___
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] What is the ActionScript equiv. to HTML param name=LOOP value=false /?

2008-11-01 Thread Steve Abaffy
In the last frame of the movie clip add a stop(); action.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of William
Adams
Sent: Saturday, November 01, 2008 2:06 PM
To: Flash Coders List
Subject: [Flashcoders] What is the ActionScript equiv. to HTML param
name=LOOP value=false /?

I'm loading a Flash file in a MovieClip and I want it to play once and  
then stop, but it keeps looping. Endlessly. How can it be set to play  
once and then stop / not loop?

Thanks!

William

-- 
William Adams
senior graphic designer
Fry Communications


___
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] sizing an arbitrary loaded swf

2008-10-02 Thread Steve Abaffy
Just brainstorming here, not sure if this will work. Can you not put a box
or something on the stage that is the same size as the stage. If you can
access individual components on the stage then get the size of this box and
you will know the size of the stage. Just my $0.02 worth

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Mathews
Sent: Thursday, October 02, 2008 10:39 AM
To: Flash Coders List
Subject: Re: [Flashcoders] sizing an arbitrary loaded swf

No, this is not easy. Unfortunately the data that defines the stage size is
not directly available in AS code. I believe it is only in the swf
file's header, so you would actually have to do a lot of work to figure out
what size the swf should be masked at.
Steve

On Thu, Oct 2, 2008 at 7:36 AM, Andrew Sinning
[EMAIL PROTECTED]wrote:

 I'm using AS3.  After loading in an arbitrary swf using the Loader class,
 getRect and getBounds don't necessarily reveal the internally defined
 boundaries of the loaded swf, rather they seem to return the boundaries of
 the stuff inside the loaded swf which can be either smaller or larger than
 the internally defined boundaries.  Am I missing something?

 I want to load in a swf, create a mask around it so that only the stuff
 that is supposed to show is shown, and then scale it to fit a target area.
  This should be easy, right?

 Thanks!
 ___
 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] What kind of Movies will play directly in a Flash Page

2008-09-11 Thread Steve Abaffy
What should the mime type be??

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl
Sent: Thursday, September 11, 2008 2:19 PM
To: Flash Coders List
Subject: Re: [Flashcoders] What kind of Movies will play directly in a Flash
Page

Could be a mime setting on the file type .flv on server. This will cause
an appearance of 404 when it is actually there.

B.

On Wed, Sep 10, 2008 at 10:17 AM, Steve Abaffy [EMAIL PROTECTED]wrote:

 Yes I did this. However I also found the if I go to the webserver and try
 to
 play the flv movie directly using the flash8 player nothing happens, the
 player opens up and remains blank. It appears as if the file is empty,
 however the file is 46KB in size. Not sure what is going on here. Like I
 said it plays fine from the Flash CS interface but not from the server
 through the browser.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Nate Beck
 Sent: Wednesday, September 10, 2008 12:08 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] What kind of Movies will play directly in a
 Flash
 Page

 Make sure your source is relative to your website and not a path like:
 DO:
 movie.flv

 DON'T:
 C:\foo\bar\movie.flv

 On Wed, Sep 10, 2008 at 9:57 AM, Steve Abaffy [EMAIL PROTECTED]
 wrote:

  I have found that using a FLVPlayback component will play the movie. I
 have
  converted the moive and it will play just fine when during development,
  however when I publish the swf to the webserver the movie does not play.
 It
  acts like it can't find the flv file. The file is in the same directory
 as
  the swf which shows up the skin shows up but not the movie. I have
 already
  adjust the source using the component inspector to point the the flv
 file.
  Not sure what else has to be done. Any help would be great.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
 sebastian
  Sent: Wednesday, September 10, 2008 11:25 AM
  To: Flash Coders List
  Subject: Re: [Flashcoders] What kind of Movies will play directly in a
  Flash
  Page
 
  Batch converting to FLV's is how I've done it. You get a tool that does
  just that in the flash install-application folder.
  :)
 
  Seb.
 
  Steve Abaffy wrote:
   Hello,
  
  
  
   I have a client that has a .wmv movie and wants to
know
  how
   you can get it to play directly in the browser window without opening
a
   helper app such as Windows Media Player. Does the movie have to be
  converted
   to a different format or how is this done. Basically he wants to
 emulate
   youtube where you click on a movie and it plays on the page.
  
  
  
   Thanks
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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

___
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] What kind of Movies will play directly in a Flash Page

2008-09-11 Thread Steve Abaffy
Thanks, that fixed it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric e. dolecki
Sent: Thursday, September 11, 2008 3:27 PM
To: Flash Coders List
Subject: Re: [Flashcoders] What kind of Movies will play directly in a Flash 
Page

Simply add the following line to the htaccess file:
AddType video/x-flv .flv

On Thu, Sep 11, 2008 at 4:03 PM, Steve Abaffy [EMAIL PROTECTED] wrote:

 What should the mime type be??

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl
 Sent: Thursday, September 11, 2008 2:19 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] What kind of Movies will play directly in a
 Flash
 Page

 Could be a mime setting on the file type .flv on server. This will cause
 an appearance of 404 when it is actually there.

 B.

 On Wed, Sep 10, 2008 at 10:17 AM, Steve Abaffy [EMAIL PROTECTED]
 wrote:

  Yes I did this. However I also found the if I go to the webserver and try
  to
  play the flv movie directly using the flash8 player nothing happens, the
  player opens up and remains blank. It appears as if the file is empty,
  however the file is 46KB in size. Not sure what is going on here. Like I
  said it plays fine from the Flash CS interface but not from the server
  through the browser.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Nate
 Beck
  Sent: Wednesday, September 10, 2008 12:08 PM
  To: Flash Coders List
  Subject: Re: [Flashcoders] What kind of Movies will play directly in a
  Flash
  Page
 
  Make sure your source is relative to your website and not a path like:
  DO:
  movie.flv
 
  DON'T:
  C:\foo\bar\movie.flv
 
  On Wed, Sep 10, 2008 at 9:57 AM, Steve Abaffy [EMAIL PROTECTED]
  wrote:
 
   I have found that using a FLVPlayback component will play the movie. I
  have
   converted the moive and it will play just fine when during development,
   however when I publish the swf to the webserver the movie does not
 play.
  It
   acts like it can't find the flv file. The file is in the same directory
  as
   the swf which shows up the skin shows up but not the movie. I have
  already
   adjust the source using the component inspector to point the the flv
  file.
   Not sure what else has to be done. Any help would be great.
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
  sebastian
   Sent: Wednesday, September 10, 2008 11:25 AM
   To: Flash Coders List
   Subject: Re: [Flashcoders] What kind of Movies will play directly in a
   Flash
   Page
  
   Batch converting to FLV's is how I've done it. You get a tool that does
   just that in the flash install-application folder.
   :)
  
   Seb.
  
   Steve Abaffy wrote:
Hello,
   
   
   
I have a client that has a .wmv movie and wants to
 know
   how
you can get it to play directly in the browser window without opening
 a
helper app such as Windows Media Player. Does the movie have to be
   converted
to a different format or how is this done. Basically he wants to
  emulate
youtube where you click on a movie and it plays on the page.
   
   
   
Thanks
   
   
   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 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] What kind of Movies will play directly in a Flash Page

2008-09-10 Thread Steve Abaffy
Hello,

 

I have a client that has a .wmv movie and wants to know how
you can get it to play directly in the browser window without opening a
helper app such as Windows Media Player. Does the movie have to be converted
to a different format or how is this done. Basically he wants to emulate
youtube where you click on a movie and it plays on the page.

 

Thanks

 

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


RE: [Flashcoders] What kind of Movies will play directly in a Flash Page

2008-09-10 Thread Steve Abaffy
I have found that using a FLVPlayback component will play the movie. I have
converted the moive and it will play just fine when during development,
however when I publish the swf to the webserver the movie does not play. It
acts like it can't find the flv file. The file is in the same directory as
the swf which shows up the skin shows up but not the movie. I have already
adjust the source using the component inspector to point the the flv file.
Not sure what else has to be done. Any help would be great.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of sebastian
Sent: Wednesday, September 10, 2008 11:25 AM
To: Flash Coders List
Subject: Re: [Flashcoders] What kind of Movies will play directly in a Flash
Page

Batch converting to FLV's is how I've done it. You get a tool that does 
just that in the flash install-application folder.
:)

Seb.

Steve Abaffy wrote:
 Hello,
 
  
 
 I have a client that has a .wmv movie and wants to know
how
 you can get it to play directly in the browser window without opening a
 helper app such as Windows Media Player. Does the movie have to be
converted
 to a different format or how is this done. Basically he wants to emulate
 youtube where you click on a movie and it plays on the page.
 
  
 
 Thanks
 
  
 
 ___
 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] What kind of Movies will play directly in a Flash Page

2008-09-10 Thread Steve Abaffy
Yes I did this. However I also found the if I go to the webserver and try to
play the flv movie directly using the flash8 player nothing happens, the
player opens up and remains blank. It appears as if the file is empty,
however the file is 46KB in size. Not sure what is going on here. Like I
said it plays fine from the Flash CS interface but not from the server
through the browser.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nate Beck
Sent: Wednesday, September 10, 2008 12:08 PM
To: Flash Coders List
Subject: Re: [Flashcoders] What kind of Movies will play directly in a Flash
Page

Make sure your source is relative to your website and not a path like:
DO:
movie.flv

DON'T:
C:\foo\bar\movie.flv

On Wed, Sep 10, 2008 at 9:57 AM, Steve Abaffy [EMAIL PROTECTED] wrote:

 I have found that using a FLVPlayback component will play the movie. I
have
 converted the moive and it will play just fine when during development,
 however when I publish the swf to the webserver the movie does not play.
It
 acts like it can't find the flv file. The file is in the same directory as
 the swf which shows up the skin shows up but not the movie. I have already
 adjust the source using the component inspector to point the the flv file.
 Not sure what else has to be done. Any help would be great.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of sebastian
 Sent: Wednesday, September 10, 2008 11:25 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] What kind of Movies will play directly in a
 Flash
 Page

 Batch converting to FLV's is how I've done it. You get a tool that does
 just that in the flash install-application folder.
 :)

 Seb.

 Steve Abaffy wrote:
  Hello,
 
 
 
  I have a client that has a .wmv movie and wants to know
 how
  you can get it to play directly in the browser window without opening a
  helper app such as Windows Media Player. Does the movie have to be
 converted
  to a different format or how is this done. Basically he wants to emulate
  youtube where you click on a movie and it plays on the page.
 
 
 
  Thanks
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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

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



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


RE: [Flashcoders] pythagoras question

2008-08-27 Thread Steve Abaffy
It sounds to me like your trying to find the x,y coordinates along a line.
If this is the case then:

M = (starty-endy)/(startx-endx)
and
B = -startx + starty

Then
Y = m*x + b where x is the current x location of the train and y will be the
y-coordinate of the train.

I hope this helps.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of allandt
bik-elliott (thefieldcomic.com)
Sent: Wednesday, August 27, 2008 12:00 PM
To: Flash Coders List
Subject: [Flashcoders] pythagoras question

hi guys

I'm doing something wrong in my pythagoras theorum but i'm not seeing what
it is right now

i'm trying to find out the coordinates for a point on a line. I know the
start x, end x, start y, end y, c length for the line and i know how far
along c the point should be (call it vector length) but i'm a little stumped
as to where to go from there

the psuedo code for what i've been trying is

vector x = start x / end x
vector y = start y / end y
train x = (vector x * vector length) + start x
train y = (vector x * vector length) + start y

I think i have my maths very wrong here - hope you guys can help

a
___
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] Random numbers list

2008-07-28 Thread Steve Abaffy
Every time you generate a new random number go through the array and see if
any match the new number if so generate a new one and check again, if not
add it to the array.
With only 10 numbers in the array it would check very fast so you wouldn't
be taking a performance hit. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eduardo
Barbosa
Sent: Monday, July 28, 2008 4:43 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Random numbers list

Hi all!

What I am trying to figure out is this:

How to generate a sequence of random numbers where the newest is always
different from all the previous?

I need to continuosly rewrite an array of 10 random numbers in such a way
that at any given time they are all different.

Let's say that my range is 0 to 100

it starts with random numbers, all different:

{3, 34, 12, 69, 6, 44, 31, 90, 88, 23}

at a set interval some values are replaced by new ones so there are never
two equal numbers, so, after 2 seconds it may look like this:

{3, 66, 12, 79, 6, 44, 10, 81, 88, 23}


Any ideas?

Thanks :)
Eduardo
___
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] barcode

2008-07-24 Thread Steve Abaffy
It all depends on what is the code for the barcode, There are many types.
You can check out IDAutomation not sure of the website but they sell a bunch
of different barcode type fonts.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Thursday, July 24, 2008 11:37 AM
To: Flash Coders List
Subject: RE: [Flashcoders] barcode

If I want to make a mc that is a bar code - is it a simple 
matter of getting a bar code font? 

Yep - should be.  Or you could draw your own vertical boxes using the
patterns outlined here
(http://en.wikipedia.org/wiki/Universal_Product_Code) to create the bit
pattern, if it's a UPC bar code.  

Looks like there is a free one here:

http://www.barcodesinc.com/free-barcode-font/


By the way, does anyone know of a PDA device that can also scan a 1D or
2D barcode?  Not a bar code scanner device, I mean a PDA device that can
also scan a bar code.   I'd be interested. Thanks.


Jason Merrill 
Bank of America 
Enterprise Technology  Global Risk LLD 
Instructional Technology  Media

Join the Bank of America Flash Platform Developer Community 

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

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



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


[Flashcoders] OT: Need help finding a List or good book on how to code for InDesign CS3

2008-05-05 Thread Steve Abaffy
Hello,

I apologies for the off topic post, however I have spent the last 5
hours looking all over for a good book or list for writing vbscript for
InDesgin CS3 with absolutely no luck. So if anyone is also an InDesign user
that can give me a hint or a resource I would really appreciate it.

Thanks.


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


RE: [Flashcoders] urgent angle problem

2008-02-05 Thread Steve Abaffy
Just add 360 that should do it. But I wander if in your code you have if
(angle  0) shouldn't that be if (angle  0)???

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allandt
Bik-Elliott (Receptacle)
Sent: Tuesday, February 05, 2008 11:11 AM
To: flashcoders
Subject: [Flashcoders] urgent angle problem

hi guys

i have a problem that i need to sort out - i have a script that  
checks to see where the mouse pointer is in relation to a point of  
origin and then selects which frame from a group of 9 to show

the problem i'm having is that if the angle is above 180 degrees, it  
swaps to negative numbers back down to 0 (go to http://www. 
19.5degs.com/element/215.php to see an example - in particular watch  
the text frame as you move) and i need to figure out how to make it a  
full 360

i've tried

if (angle0) {
angle = (-1*angle)+180;
}

but that's not right

here is my code

//image frame selector
function changeFrame(clip:MovieClip, angle:Number):Void {

// frame is receiving a wrong number above 180 degrees here
// there are 9 frames so i want each frame to have 40 degrees (hence

angle/40)
var frame:Number = Math.round(angle/40);

// visibleClip is a variable set on all clips (set in the mousemove

below) to tell my script which clip is visible to make it invisible  
without having to loop through the other clips when there's a change
clip[clip.visibleClip]._visible = false;
clip[p+frame]._visible = true;
clip.visibleClip = [p+frame];

}

//mouse follower
var mouseListener:Object = new Object();
mouseListener.lookAt = function(clip:MovieClip, originX:Number,  
originY:Number, watchX:Number, watchY:Number):Void {

var adjside:Number = watchX - originX;
var oppside:Number = -1*(watchY - originY);
var angle:Number = Math.atan2(oppside, adjside); // in radians
var angle:Number = Math.round(angle/Math.PI*180); // convert to
degrees
var angle:Number = -1*(angle); // invert
changeFrame(clip, angle);

}
mouseListener.onMouseMove = function () {

var watchX:Number = _xmouse;
var watchY:Number = _ymouse;

// there are 8 images that are trying to do this
for (var i:Number=1; i9; i++) {
var thisPerson:MovieClip = content_mc[person+i];
this.lookAt(thisPerson, thisPerson._x, thisPerson._y,  
_root._xmouse, _root._ymouse);
}
};
Mouse.addListener(mouseListener);


hope you can help
alz


Allandt Bik-Elliott
Receptacle
t  01920 413 947  |  m  07970 718 545
e [EMAIL PROTECTED]

This e-mail is confidential and may be privileged. It is for the use  
of the named recipient(s) only. If you have received it in error,  
please notify us immediately. Please do not copy or disclose its  
contents to anyone, and delete it from your computer systems. Please  
note that information sent by e-mail can be corrupted. This e-mail  
has been prepared using information believed by the author to be  
reliable and accurate, but the Company makes no warranty as to its  
contents. Any opinions expressed are those of the author and do not  
necessarily reflect the opinions of the Company.


___
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] least to greatest

2007-07-06 Thread Steve Abaffy
I am not sure if there is a sort method for arrays such as
Array.Sort(direction) if such a function does not exists then you can always
write a quick bubble sort function.

function bubblesort(ArrayName){
changesmade = true;
for(y = 0; y  ArrayName.Length; y++{
if(changesmade){
changesmade = false;
for(x = 0; x  ArrayName.Length-1; x++){
if(ArrayName[x]  ArrayName[x+1]){
temp = ArrayName[x];
ArrayName[x] = ArrayName[x+1];
ArrayName[x+1] = temp;
Changesmade = true;
}
}
}
}
Return ArrayName;
}
If you want to sort in accending order or descending order as well the if
statement just needs to have the less than sign changed to a greater than
sign. There are ways of speeding this function up you can put in a variable
that checks to see if you made any changes to the array with each pass
If no changes were made then array is sorted. But I might not bother with
this step for only 10 variables. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corban
Baxter
Sent: Friday, July 06, 2007 8:50 AM
To: Flashcoders mailing list
Subject: [Flashcoders] least to greatest

Hey all I have a list of 10 numbers that I need to push into and array from
least to greatest fairly often. What would be the fastest way to get this
accomplished? Or maybe just anyway to get this done would be a great help
thanks.

-- 
Corban Baxter
http://www.projectx4.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


[Flashcoders] Adding Buttons Dynamically

2007-05-31 Thread Steve Abaffy
I would like to be able to add 1 to 18 buttons to the stage dynamically.
Then buttons need to have dynamic text. So the idea would be that there
would be one generic blank button with dynamic text.

So basically,

If(Room[x] != undefined){
Createnewbutton; //not sure of exact code required here
AddDynamicTextToButton;
PositionNewButton;
AddEvenHandlertoNewButton;
}
How does one go about this??




___
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] Animated Button Problem

2007-05-30 Thread Steve Abaffy
Hello,

I am trying to make an animated button. This is what I have so far.
I have a blank button graphic, a blank movie clip for the animation, and a
downstate blank button.

I make a new symbol (button) 
In the Up frame I have the blank button graphic and then I put a text box on
it and put in the text of the button,

In the Over Frame, I remove the blank button graphic and put in the movie
clip making sure the text is on top

In the Down Frame, I remove the movie clip and put in the downstate blank
button making sure the text is on top

In the Hit frame I draw a large rectangle that covers the whole button.

Then when I try the button the mouse has to be on the part of the button
which does not contain the text box to work. Obviously I want the button to
work no matter where on the button the mouse is hovering. 

What am I doing wrong




___
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] format alert text

2007-04-25 Thread Steve Abaffy
Can you not use \t in the text for tabbing, not sure about making it bold
tho.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maziak,
Peter
Sent: Wednesday, April 25, 2007 3:48 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] format alert text

Is there a way to bold or indent specific text within an alert?
 
ie:
The following fields will be deleted:
b
Name
Number
/b
Are you sure you want to continue?
 
 
Thanks,
-Pete
 
 
Peter Maziak
Web Design
Global Repertoire Management
Universal Music Group
voice: 818.286.5122
fax: 818.286.7539
email: [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



___
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] Scaling Up an Image in Proportion to width or height

2007-03-29 Thread Steve Abaffy
Yes but you could do it like this

You resize the _width:
_width = Math.max(newWidth, 500);
You set _height to the _width * ratio:
_height = _width * (1/ratio); 
Which is the same thing as
_height = _width / ratio;



This would be (_width/_height * _height) this cancels the _height leaving
you with just _width.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hershell
Bryant
Sent: Thursday, March 29, 2007 1:58 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Scaling Up an Image in Proportion to width or
height

That'd do it...except that you need to define var ratio:Number =
_height/_width.

If var ratio:Number = _width/_height, then _width * ratio = (_width *
_width)/_heightThat ain't right.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: Thursday, March 29, 2007 9:42 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Scaling Up an Image in Proportion to width or
height

Simple.

You solve for the ratio:

var ratio:Number = _width / _height;


You resize the _width:

_width = Math.max(newWidth, 500);


You set _height to the _width * ratio:

_height = _width * ratio;


fin.
___
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


[Flashcoders] How to run an external exe file

2007-03-21 Thread Steve Abaffy
Hello,

I am creating a Flash exe to run off of a CD. I have a second exe
that I want to run from the first. The second exe runs fine by itself, but
when I start it from the first all the resources of the second exe file do
not load, it looks as if they cannot be found. Both exe files are in the
same directory.  I am using the getURL(Second.exe,_blank,get); on a
button on(release).

Any help would be appreciated.

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


[Flashcoders] FW: How to run an external exe file

2007-03-21 Thread Steve Abaffy
Hello,

Sorry if this is a repost as I didn't see it the first time I sent
it.

I am creating a Flash exe to run off of a CD. I have a second exe
that I want to run from the first. The second exe runs fine by itself, but
when I start it from the first all the resources of the second exe file do
not load, it looks as if they cannot be found. Both exe files are in the
same directory.  I am using the getURL(Second.exe,_blank,get); on a
button on(release).

Any help would be appreciated.

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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Steve Abaffy
You could try.
Var col = 0xff;
Var redmask = 0xff;
Var greenmask = 0x00ff00;
Var bluemask = 0xff

R = col  redmask;
G = col  greenmask;
B = col  bluemask;
R = R  16;
G = G  8;
//Blue does not need shifting.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of AliasT
Sent: Wednesday, March 21, 2007 1:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Annoying, (should be simple) bitwise problem

Hi guys,

This is annoying me - I'm just trying to get the seperate RGB
component values out of a hex number, then manipulate and reconstruct
them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
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] How to run an external exe file

2007-03-21 Thread Steve Abaffy
No it does not need to be an exe file. I tried loading the swf file as well
and loads ok, except that the second swf file needs to look at a folder and
load a bunch of jpg, and other data. I have looked at the data being loaded
and it is all there, however the pictures do not load that data does not put
into the dynamic text fields. But when I run the second swf file as a stand
alone file it works perfect. So I thought that maybe I could force it to run
the exe file instead. But couldn't figure it out.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Berkey
Sent: Wednesday, March 21, 2007 2:36 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] How to run an external exe file

On 3/21/2007 at 11:39 AM Steve Abaffy wrote:

Hello,

   I am creating a Flash exe to run off of a CD. I have a second exe
that I want to run from the first. The second exe runs fine by itself, but
when I start it from the first all the resources of the second exe file do
not load, it looks as if they cannot be found. Both exe files are in the
same directory.  I am using the getURL(Second.exe,_blank,get); on a
button on(release).

When I've done CD's I created the opening file as an exe,so you have the
built-in player,  auto opened it with an autorun.inf file, then loaded and
unloaded swf's and jpg's and such into it, without any problems. Does the
second file need to be an exe?
jimbo

___
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] trig? calculus? put me out my misery

2007-03-12 Thread Steve Abaffy
If I understand this correctly the movie clip will point in some direction
and when it is clicked the clip moves off in that direction. If this is
correct there are several ways to handle this. First I will assume you want
the clip to move off in a straight line, curves can be done as well but
require a bit more calculations. The easiest way is to pick several off
screen points that the clip will move to. Say the clip can point in 8
different directions then select the end points of each of those directions
and use the following formula to calculate intermediate points

_y - yendpoint = (_ystartpoint - _yendpoint)/(_xstartpoint - _xendpoint)(_x
- _xendpoint)
Where you simply loop through a for loop that starts at _xstartpoint and
ends at _xendpoint.

If I knew what you were using to rotate the clip I could suggest alternate
methods that would use the current position of the clip to calculate the
motion in question.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kurt
Dommermuth
Sent: Monday, March 12, 2007 1:30 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] trig? calculus? put me out my misery

Hi all,

I have what I initially thought was simple problem, but I've been racking 
my brains, searching the web and I just don't get it.

I have a movieclip that the user can rotate .

When they click the movieclip shoots off in the direction it's pointing.

It's goes off the stage and simply stops.

the speed is fixed.  there is no gravity.

How do I determine the _x and _y value somewhere off stage?

I'd appreciate any help.  even if someone could let me know what to search
for.

thank you!

Kurt

___
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] Adding Dynamic Text to Scroll Pane

2007-03-01 Thread Steve Abaffy
Hello, 

Thank you for the warm welcome, I am glad to be here.

The problem unfortunately still exists. Here is the code I now have.

Data = new LoadVars();
Data.load(/listing.txt);
Data.onLoad = function (success)
{
if (success)
{
ListingTextMC.Listing_Text = Data.Listings;
MyListingScroll.contentPath = ListingTextMC;
MyListingScroll.Refresh();
}
}
ListingTextMC is a movie clip and all that is in it is a dynamic textbox
with the name Listing_Text

And there is no content in the scroll pane. I added a dynamic text box to
the same frame as the scrollpane and I can put the value of Data.Listing
into it so I know that I am reading the file correctly.
What I am I doing wrong here??

__
Hello Steve and welcome to flashcoders,


the proper way to set content for a ScrollPane is as follow :

MyScrollPane.contentPath = myContent;

where myContent is a MC in your library with a linkage ID myContent

So what you should do is create a MovieClip with your dynamic text in it and
export it for ActionScript with linkage ID myContent

Look up the ScrollPane methods in Flash help as well for other tips.

Hope this helps

Alain

   
___
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] Adding Dynamic Text to Scroll Pane

2007-02-28 Thread Steve Abaffy
Hello,
 I am new to the group and have already looked at the archives, and
on line for the answer to this and can't find it anywhere. Here is what I
have. I have a MC which has a ScrollPane. I have the ScrollContent set to
nothing (Also tried setting it to a dynamic text box) and when I get all the
text correctly formatted (which is read from a file) I try this in the first
frame of the MC.

MyScrollPane.setScrollContent(MyText); // Doesn't work
MyScrollPane.ScrollContent(MyText); //Doesn't work
MyScrollPane.ScrollContent = MyText; // Doesn't work 

I'm running out of ideas.
Any help would be appreciated.



___
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