[Flashcoders] Flash fullscreen in a JavaScript app?

2011-01-29 Thread Jim Andrews

Hi,

I've developed a JavaScript slideshow at http://vispo.com/nio/pens/slideshow

I want a fullscreen button in it. No browser chrome whatsoever. None.

As you probably know, this is fully supported in Flash but not in 
JavaScript. Which is a real annoyance. There's the fullscreen='yes' thing as 
a parameter in window.open, but this still results in some browser chrome.


Is it possible to insert a little Flash app in the HTML which, when clicked, 
causes the slideshow to go fullscreen while also permitting the user to use 
the JavaScript controls? Normally what would happen, I realize, is it goes 
fullscreen and you have a fullscreen that has nothing on it but the 
fullscreen button. Which of course is not what I'm after.


ja
http://vispo.com 


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


Re: [Flashcoders] Flash fullscreen in a JavaScript app?

2011-01-29 Thread Jim Andrews
What I'm after--but I don't think it's possible--is a way to build a 
JavaScript-powered button which, when clicked, makes the browser go 
fullscreen-no-browser-chrome. While the main interactive content remained a 
DHTML app. I thought it might be possible to use Flash's fullscreen 
capabilities, but I realize now it isn't, for the reason you give. It's a 
pity it isn't possible to go fullscreen-no-browser-chrome even if the user 
wants to by clicking such a button (which doesn't exist).


Thanks, Michael, for your help and your comment on Slidvid. Here's an 
article I wrote about Slidvid: http://netartery.vispo.com/?p=789


ja
- Original Message - 
From: Mendelsohn, Michael michael.mendels...@fmglobal.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Saturday, January 29, 2011 2:24 PM
Subject: RE: [Flashcoders] Flash fullscreen in a JavaScript app?



Hi Jim...

That's really impressive. Very nice work.  If I'm understanding your 
question correctly, you're asking if you can silently trigger Flash to go 
full screen.  The problem is that when you go full screen with Flash, the 
only thing full screen is the Flash stage, not the browser.  For the 
browser to go full screen that's F11 on the keyboard.   Hope I'm answering 
that correctly for you.


- Michael M.

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim 
Andrews

Sent: Saturday, January 29, 2011 2:58 PM
To: Flash Coders List
Subject: [Flashcoders] Flash fullscreen in a JavaScript app?

Hi,

I've developed a JavaScript slideshow at 
http://vispo.com/nio/pens/slideshow


I want a fullscreen button in it. No browser chrome whatsoever. None.

As you probably know, this is fully supported in Flash but not in
JavaScript. Which is a real annoyance. There's the fullscreen='yes' thing 
as

a parameter in window.open, but this still results in some browser chrome.

Is it possible to insert a little Flash app in the HTML which, when 
clicked,
causes the slideshow to go fullscreen while also permitting the user to 
use

the JavaScript controls? Normally what would happen, I realize, is it goes
fullscreen and you have a fullscreen that has nothing on it but the
fullscreen button. Which of course is not what I'm after.

ja
http://vispo.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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] custom flv controls

2010-06-24 Thread Jim Andrews
i've created a couple of nice flv files in premier. i tried all sorts of 
options, mp4, avi, and so on. flv seems to be the best option for the web.


ok i've got the flv files.

but the controls you can choose in flash pro are ugly. and there's no 
fullscreen option. yeesh.


i've seen some pretty flv controls out there with a prominent fullscreen 
option.


how do i display flv with pretty controls and a fullscreen option?

ja? 


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


[Flashcoders] On Pulsate by Andre Michelle

2010-06-18 Thread Jim Andrews
Here is something I wrote about an online interactive piece by Andre 
Michelle called Pulsate: http://netartery.vispo.com/?p=192


ja
http://vispo.com 


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


Re: [Flashcoders] Flex generative art???

2010-06-10 Thread Jim Andrews
I'm a bit confused as to how to proceed with Flash. I've been using Director 
for the last 11 years.


You can see the sort of (Director Shockwave) apps I like to create at 
http://vispo.com/dbcinema/sw/sw.htm and http://vispo.com/jig/arteroids/exe . 
These apps contain menus, spin controls, drop-down menus, and similar types 
of controls, and generally lots of them. But they also contain, in the case 
of http://vispo.com/dbcinema/sw/sw.htm , high-performance generative art. 
They're both very 'interactive interface' oriented and also very 
high-performance-art-oriented. Windowing, menuing, dialog boxes, and 
interactive controls are important to them. But so is lots of room for the 
art.


I don't really care about filesize being bulked up by Flex. High speed 
access is common, these days. But if Flex is slow in performance, that's the 
more important thing, to me. Is it? How is it in terms of speed?


How would you approach making the above sorts of apps in Flash? Would you 
create them as ActionScript projects or would you use Flex?


ja
http://vispo.com

- Original Message - 
From: Jer Brand thejhe...@gmail.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, June 10, 2010 12:03 PM
Subject: Re: [Flashcoders] Flex generative art???


Flex is for RIA's and helps you with layouts and common controls and 
doesn't

really provide anything useful for generating art with either vectors or
drawing to a sprite. With the framework itself bulking up the size of your
swf and consuming additional resources, it's not really a good thing.

The generative art I typically use straight ActionScript with a library of
choice -- Hype (http://www.hypeframework.org/) being particularly awesome
for that kinda thing.

There's nothing stopping you from using Flex / Flash Builder as your 
editor

though. Just create an ActionScript or Flash Professional project.

If you're just looking for ActionScript generative art, I'm fairly partial
to http://levitated.net/


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


[Flashcoders] on the iPad

2010-06-09 Thread Jim Andrews
As it is built now, the iPad is the ultimate consumer device, meant 
primarily to consume media, not to produce it. That's why, in its first 
iteration, it has no native printing application, no camera, no USB ports 
for peripherals. But the impulse to make it into something else, a 
lightweight computer that can stand in for a PC in the classroom, at a 
meeting, on the road, wherever, is strong. This is why iPad users have been 
buying keyboards to bypass the touchscreen, and finding apps that allow for 
rudimentary multitasking, printing, and remote access to one's home computer 
in order to use non-iPad-enabled software like Microsoft Word. The paradox 
of having designed the ultimate consumer device is that ultimately the 
consumers will make of it what they want-if Google, with its rumored Chrome 
Tablet, doesn't get there first.
from http://www.nybooks.com/blogs/nyrblog/2010/jun/08/what-ipad-cant-do/ 


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


[Flashcoders] Flex generative art???

2010-06-09 Thread Jim Andrews
Can anyone point out to me any interesting art projects that are Flex 
projects? Particularly what I'm looking for are simple projects that combine 
some of the benefits of Flex with the benefits of Flash concerning 
generative visual art.


It's looking too much like a no fun zone at the mo. Any spice out there? Any 
fun? Is it all corporate solutions?


ja?
http://vispo.com


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


Re: [Flashcoders] problem with strongly typed actionscript

2010-06-08 Thread Jim Andrews
Here's my code which uses the SharedObject to implement a User Data Manager. 
This is my first ActionScript of any usefulness.


ja
http://vispo.com

package
{
// This is for managing the user's state from session to session.
// This saves their preferences and current state.

import flash.net.SharedObject;
import flash.net.URLRequest;
import flash.net.navigateToURL;


public class UserDataMgr
{
 protected var _version:String= 1.5;
 // The version of this program. The string is included in 
_userDataFilename.

 protected var _userDataFileName:String = Main_ + _version;
 // Customize this to set the name of the file stored on disk.
 protected var _sharedObj:SharedObject;

 public function UserDataMgr()
 {
  //The constructor of the UserDataMgr class.
  readPrefs();
 }

 protected function readPrefs():void
 {
  // Called only by the constructor.
  // At the end of this method, _sharedObj is valid or we've exited
  // the program. It's either the previously stored info or, if
  // none was found on disk, then it's default user data.
  try {
   _sharedObj = SharedObject.getLocal(_userDataFileName);
   if (_sharedObj.size == 0)
   {
// Then fill it with default data.
// This happens when the app is first run.
setDefaultUserData();
   }
  }
  catch(e:Error) {
   // Shared Object could not be created.
   javaScriptPopUp(This program cannot run properly if you do not allow it 
to save data to your hard disk. The program will now close.);

   closeApp();
  }
 }


 protected function closeApp():void
 {
  // Called by readPrefs.
  // This is supposed to close the app.
  // This probably doesn't work for AIR apps and who knows what other types 
of Flash apps.
  // This code should check to see if we're in an AIR app (etc), and act 
accordingly.

  // For more info, search CHC for 'close program'
  var urlString:String = javascript:window.opener = self; self.close();;
  var request:URLRequest = new URLRequest(urlString);
  navigateToURL(request, _self);
 }

 protected function javaScriptPopUp(s:String):void
 {
  // Called by readPrefs.
  // This opens a JavaScript pop up alert that displays s.
  var arg:String=javascript:alert(\' + s + \')
  var alert:URLRequest = new URLRequest(arg);
  navigateToURL(alert, _self);
 }

 protected function setDefaultUserData():void
 {
  // Sets the default User Data in the SharedObject type.
  setProperty(userId, testId);
  setProperty(userNumbers, {one:Math.random(), two:Math.random()});
  setProperty(bobo, 3.0);
 }

 public function setProperty(name:String, value:*):void
 {
  // Call this from outside the object to set a property.
  _sharedObj.data[name]=value;
 }

 public function getProperty(name:String)
 {
  // Call this from outside the object to get a property.
  return _sharedObj.data[name];
 }

} 


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


[Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Jim Andrews
i want to write a method x which takes an argument y. i cannot anticipate 
what type the argument is going to be until run-time. it might be a number 
or a string or an array or who knows what?


but i am not sure how to do this in actionscript because it is strongly 
typed. normally what is done is


public function x(y:String):void
{

}

but this won't do because y is limited to being of type String, whereas in 
the method i want to write, the type of y is not known until run-time.


how do i do this in actionscript?

ja?
http://vispo.com 


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


Re: [Flashcoders] problem with strongly typed actionscript

2010-06-07 Thread Jim Andrews


Architecturally speaking, that's a bad idea. There's probably a strongly 
typed
solution to what you're doing.  Can you provide detail about what you need 
to accomplish so we can help you figure out a better solution?


i expect

public function x(y:*):void
{
}

will do the job.

the public method is for an object that uses the sharedObject to implement 
'flash cookies'. the method is to set an arbitrary property of the 
sharedObject. so x would take two parameters. a property s and its value y. 
and it sets s to y.


ja 


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


Re: [Flashcoders] end of program event?

2010-06-01 Thread Jim Andrews
Saving state info to disk at the end of a program's run (so state can be 
resumed on later play) is about as standard an operation in programming as 
reading a value in to a variable. It's just so very commonly done.


Therefore, there must be a very standard class for this sort of 
UserDataManager. The UserDataManager, on program start, checks for a prefs 
(short for 'preferences') or .sol (or whatever) file on the system (fills 
the RAM var with default values if no such file exists). On program 
termination, the UserDataManager writes the RAM prefs or .sol (or whatever) 
file to disk. And during the running of the program, other modules 
occassionally save prefs values in the RAM UserDataManager--in the 
SharedObject.


Surely there is a free UserDataManager (or some such name) class that is 
commonly used as a template for reading and writing such info to disk in 
Flash projects?


ja
http://vispo.com

- Original Message - 
From: Hans Wichman j.c.wich...@objectpainters.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, June 01, 2010 1:41 AM
Subject: Re: [Flashcoders] end of program event?



Hi,

if you use a localsharedobject it will flush automatically as the player
quits. Intercepting the finalize/destroy etc is not possible I think.

hth
hans




On Tue, Jun 1, 2010 at 2:04 AM, Glen Pike postmas...@glenpike.co.uk 
wrote:



Hi,

  Not sure it this is any good, but try listening for the
REMOVED_FROM_STAGE event in your document class?

  Failing that, you could setup some JavaScript to talk to Flash on the
Window.unload event, but by then Flash could have gone...

  Hope this is some help..

  Glen


Jim Andrews wrote:


I want to write text info to disk when the user quits the flash piece
playing in the browser.

Is there an event I listen to for the end of the program? What event?

ja


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


[Flashcoders] prob with import mx.controls.Alert

2010-06-01 Thread Jim Andrews
I get an error, in Flash Builder 4, with the following line, which is part 
of an ActionScript project.


import mx.controls.Alert;

The error is 1172: Definition mx.controls:Alert could not be found.

How do I fix this?

ja?
http://vispo.com



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


[Flashcoders] problem with import mx.controls.Alert

2010-06-01 Thread Jim Andrews

Am I on the right list for a question like this?

I get an error, in Flash Builder 4, with the following line, which is part 
of an ActionScript project.


import mx.controls.Alert;

The error is 1172: Definition mx.controls:Alert could not be found.

How do I fix this?

ja?
http://vispo.com


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


Re: [Flashcoders] problem with import mx.controls.Alert

2010-06-01 Thread Jim Andrews
Thanks, Eric. So I guess none of the mx.controls are for Flash but, rather, 
are all for Flex?


ja




Make a Flex app - Alert is for Flex. Or make your own Alert class. I'm
not sure if linking the Flex SWCs would work for an Alert or not.



I get an error, in Flash Builder 4, with the following line, which is 
part

of an ActionScript project.

import mx.controls.Alert;

The error is 1172: Definition mx.controls:Alert could not be found.

How do I fix this?

ja?
http://vispo.com


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


[Flashcoders] end of program event?

2010-05-31 Thread Jim Andrews
I want to write text info to disk when the user quits the flash piece 
playing in the browser.


Is there an event I listen to for the end of the program? What event?

ja 


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


Re: [Flashcoders] Sound

2010-05-10 Thread Jim Andrews

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html

The above URL is the main page to acquaint yourself with concerning the 
Sound class in ActionScript 3.0, apparently.


If you scroll through it, you'll see some example code.

You'll also see the 'play' method under 'Public Methods' and, in the 
documentation of the 'play' method, you see that it takes a 'startTime' 
parameter. This one is what you use to start the sound not at the beginning 
of the Sound.


The 'play' method, in Director, also can take an 'endTime' parameter, and 
there is a 'stop' method. Not in Flash, though. Also, in Director, there is 
an 'elapsedTime' property for the sound. Not in Flash, though.


So if you want to end the sound before it ends, erm, I guess you have to use 
a timer to monitor where we are in the playing of the sound and then end the 
sound how? erm by using the 'close' method? Which also cancels any 
downloading.


ja
http://vispo.com



Say I have a sound that lasts 1.7 seconds. Is there a way to control what 
plays - for example. if I want to start it .4 seconds in and stop it .2 
seconds before the end


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


Re: [Flashcoders] debugging Flash apps

2010-05-08 Thread Jim Andrews



I tend to use MonsterDebugger a lot. It is easy to debug stuff in almost 
any

setting outside of mobile devices. I use that and a combo of trace
statements and the IDE Debugger.

http://www.demonsterdebugger.com/

Ktu


I installed DeMonster debugger a while ago, and it seems great for run-time 
debugging.


But I'm such a noobie at ActionScript that what I currently need are good 
compilation error texts--which the Flash IDE does offer, sometimes.


I'm not quite at the stage where run-time debugging is an issue, so mired am 
I in the writing mechanics of compilable code in ActionScript.


But the Flash IDE is just too slow to be anything but deadly dull concerning 
coding and debugging.


So I think I will give FDT a try. And use DeMonster for run-time debugging, 
possibly, depending on how it stacks up against FDT run-time debugging.


Many thanks for the suggestions.

ja
http://vispo.com

ps: here is some generative art i did in director (shockwave):
http://vispo.com/dbcinema/londonhypotrochoid
http://vispo.com/dbcinema/newyork
http://vispo.com/dbcinema/vancouver 


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


[Flashcoders] fl.controls.NumericStepper

2010-05-07 Thread Jim Andrews
why does one need to put fl.controls.NumericStepper in the Library, rather 
than just have


import fl.controls.NumericStepper;

in the class code?

ja
http://vispo.com 


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


[Flashcoders] debugging Flash apps

2010-05-07 Thread Jim Andrews
I'm finding the debugger in the Flash IDE almost unusably slow. How do 
people debug their apps?


And I've taken to using FlashDevelop for editing code because the editor in 
the Flash IDE is equally slow.


ja 


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


Re: [Flashcoders] debugging Flash apps

2010-05-07 Thread Jim Andrews

Thanks, Steven. Does this require Eclipse? What flavour of Eclipse, if so?

ja



FDT. End of story.


On 5/7/2010 2:46 PM, Jim Andrews wrote:

I'm finding the debugger in the Flash IDE almost unusably slow. How do
people debug their apps?

And I've taken to using FlashDevelop for editing code because the editor
in the Flash IDE is equally slow.


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


[Flashcoders] Of Meercats and Music: The Daxophonic Hans Reichel of Daxo.de

2010-05-04 Thread Jim Andrews

Here is a review I wrote (
http://netpoetic.com/2010/05/the-daxophonic-hans-reichel-of-daxo-de ) of a
suite of 12 interactive audio Flash works at daxo.de by Hans Reichel.

Hans Reichel (1949) is a German improvisational guitarist, experimental
luthier, inventor, and type designer. So saith Wikipedia so you know the
statement has passed many semi-clueless scrutinies to emerge supported,
probably not without revision. But, yes, he is all that and more. The 'more'
part includes creator-of-the-Flash-interactive-audio-visual-daxo.de, which
we shall look at.

Daxo.de is one of the best hypermedia works of its kind that I've
experienced.

ja

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


Re: [Flashcoders] Of Meercats and Music: The Daxophonic Hans Reichelof Daxo.de

2010-05-04 Thread Jim Andrews




Jim Andrews wrote:

Here is a review I wrote (
http://netpoetic.com/2010/05/the-daxophonic-hans-reichel-of-daxo-de ) of 
a

suite of 12 interactive audio Flash works at daxo.de by Hans Reichel.


Henrik Anderson wrote:
It's been a while since I have experienced such an unorganized mess of 
ideas and a lack of a clear point. I love it.


Glad you liked it, but look out, Henrik. The more times you see it, the more 
sense it makes. The daxophone is famous for the voice-like sounds it makes. 
I gather that almost all of the audio was done with the various tongues of 
the daxophone. He has created an amazing chorus of stringed musical 
instruments that, together, 'speak' a very rich musical language that does 
indeed merit its own font.



From Wikipedia ( http://en.wikipedia.org/wiki/Daxophone ):


The daxophone, invented by Hans Reichel, is a experimental musical 
instrument  of the friction idiophones category. It consists of a thin 
wooden blade fixed in a wooden block (often attached to a tripod), which 
holds one or more contact microphones. Normally, it is played by bowing the 
free end, but it can also be struck or plucked, which propagates sound in 
the same way a ruler halfway off a table does.[1]  These vibrations then 
continue to the wooden-block base, which in turn is amplified by the contact 
microphone(s) therein. A wide range of voice-like timbres  can be produced, 
depending on the shape of the instrument, the type of wood, where it is 
bowed, and where along its length it is stopped with a separate block of 
wood (fretted on one side) called the dax.


One of the reasons, I think, that daxo.de is so good is because Reichel is 
deeply familiar with the construction of interfaces with character, via his 
daxophones and their tongues.


In part, daxo.de is a reflection on what's to keep and what to throw away in 
our notions of lively, engaging interfaces.


ja 


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


[Flashcoders] editing and debugging tools for ActionScript 3.0 projects?

2010-05-02 Thread Jim Andrews
I'm not sure if this is typical, but the ActionScript editor and also the 
debugger in Flash CS4 Professional, on my machine, are almost unusably slow. 
Do other people find this to be the case?


On my machine, it might take ten seconds to step from one line to the next, 
even when there isn't much going on in the program, and editing the code 
takes five seconds for the cursor to appear in the code, and waiting to 
backspace takes several seconds, and the menus are very slow, and so on.


So I would actually like to code and debug in some other  environment than 
Flash CS4 Professional.


What are my options? What editors and debuggers do you use?

I'm using FlashDevelop for coding, and that seems good. Much much faster. 
But it's not integrated with a compiler/debugger. I see there is an Alpha 
version of flexdbg, which purports to be a debugger for FlashDevelop. 
Alpha?? How come all these Flash dev tools are all in Alpha??


ja?
http://vispo.com 


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


Re: [Flashcoders] editing and debugging tools for ActionScript3.0 projects?

2010-05-02 Thread Jim Andrews
I had installed and uninstalled the DeMonster bugger already. The Demonster 
debugger is good if you already have an SWF. But it doesn't work for simply 
compiling the SWF. Is there an alternative debugger for both compilation and 
run-time debugging? Or do we do the compilation debugging in the IDE and the 
run-time debugging in Demonster?


Are other people experiencing the same incredible slowness of the Flash Pro 
CS4 IDE concerning script editing, script debugging, and even access to the 
menus in the IDE?


What are the key things I can do to speed the Flash Pro CS$ IDE up a bit??

ja??
http://vispo.com

- Original Message - 
From: Cor c...@chello.nl

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 02, 2010 1:34 AM
Subject: RE: [Flashcoders] editing and debugging tools for ActionScript3.0 
projects?




Try http://www.demonsterdebugger.com/features/howitworks

HTH
Cor


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim 
Andrews

Sent: zondag 2 mei 2010 10:10
To: Flash Coders List
Subject: [Flashcoders] editing and debugging tools for ActionScript 3.0
projects?

I'm not sure if this is typical, but the ActionScript editor and also the
debugger in Flash CS4 Professional, on my machine, are almost unusably 
slow.


Do other people find this to be the case?

On my machine, it might take ten seconds to step from one line to the 
next,

even when there isn't much going on in the program, and editing the code
takes five seconds for the cursor to appear in the code, and waiting to
backspace takes several seconds, and the menus are very slow, and so on.

So I would actually like to code and debug in some other  environment than
Flash CS4 Professional.

What are my options? What editors and debuggers do you use?

I'm using FlashDevelop for coding, and that seems good. Much much faster.
But it's not integrated with a compiler/debugger. I see there is an Alpha
version of flexdbg, which purports to be a debugger for FlashDevelop.
Alpha?? How come all these Flash dev tools are all in Alpha??


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


Re: [Flashcoders] letter from Steve Jobs on Flash

2010-04-30 Thread Jim Andrews

html 5 has an audio api.

you can play sounds.

you can show controls like in a video. or not.

now there's an honest audio api.

no irrelevant things like being able to tell how far into the sound we are. 
or responsiveness to cue points. or being able to tell when a sound ends. no 
byteArray operations. or ability to get input from microphones. no notion of 
channels or mixing, panning, and so on. none of that fancy stuff.


just a very simple, rudimentary, 1990ish audio api.

now there's the future.

perhaps html 7 will be really good. when will that be?

ja
http://vispo.com 


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


Re: [Flashcoders] letter from Steve Jobs on Flash

2010-04-30 Thread Jim Andrews

i see the html quake is not actually available to play in the browser.

and game sound is fairly simple programming. at least in this game.

html 5 has a very very basic audio api. it is not adequate for my purposes.

in an ideal situation we would use open tools built to open standards. what 
developer wouldn't prefer that?


but this time-based game of life is apparently much more complex than that. 
the existence of flash and other plugins is justified precisely because they 
offer many features that simply are not supported by html and won't be for 
many years to come.


it is sometimes said that 'internet years' are like 'dog years'. but 
development of browser features doesn't seem like 'dog years' to me.


give html 20 years and it'll be where flash is now.

but where will flash be in 20 years? eclipsed by a newer tool with a code 
foundation better suited to the internet of the day? and the dev of flash 
itself moved to afghanistan, set up to fail?


ja
http://vispo.com 


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


[Flashcoders] libraries of wav files?

2010-04-29 Thread Jim Andrews
i know you can load external mp3 files in flash, but is it possible to load 
a library (if that is the right term) of wav files in flash?


the app i want to make involves loops, and mp3 files are not real good for 
loops.


ja
http://vispo.com 


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


Re: [Flashcoders] libraries of wav files?

2010-04-29 Thread Jim Andrews
Sorry. I should have been more specific. What I'd like to do is create an 
external file that contains a bunch of wav files. Perhaps a bunch of such 
such groups of wav files. And then, at run-time, the user may select one of 
those groups of wav files. And then the program should download that 
particular file.


Is that sort of thing supported in Flash?

In Director, such groups of wav files (and/or other media) can be stored in 
.cst files and downloaded at run-time.


ja
http://vispo.com

- Original Message - 
From: kennethkawam...@gmail.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 29, 2010 3:47 AM
Subject: Re: [Flashcoders] libraries of wav files?



If you are talking about sound imported into the Library in IDE, you
can assign a Class name to it and instantiate it as normal:

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

On 29 April 2010 10:35, Jim Andrews j...@vispo.com wrote:
i know you can load external mp3 files in flash, but is it possible to 
load

a library (if that is the right term) of wav files in flash?

the app i want to make involves loops, and mp3 files are not real good 
for

loops.

ja
http://vispo.com 


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


Re: [Flashcoders] libraries of wav files?

2010-04-29 Thread Jim Andrews

Aha. That'd be the ticket. Thanks very much, Glen.

ja
http://vispo.com 

- Original Message - 
From: Glen Pike g...@engineeredarts.co.uk

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 29, 2010 4:35 AM
Subject: Re: [Flashcoders] libraries of wav files?



Hi,

You could compile the wav files into SWF's that you load as runtime 
libraries - then you could still instanciate your sounds the same way as 
Kenneth said.


You have to use a Loader class load the external SWF in and wait 
for the Loader's INIT event before accessing library items.  You may 
also have to set the Loader's application domain to the same as your 
application in order to instanciate the sounds:


Search for runtime library in flash.

Glen

On 29/04/2010 12:25, Jim Andrews wrote:
Sorry. I should have been more specific. What I'd like to do is create 
an external file that contains a bunch of wav files. Perhaps a bunch 
of such such groups of wav files. And then, at run-time, the user may 
select one of those groups of wav files. And then the program should 
download that particular file.


Is that sort of thing supported in Flash?

In Director, such groups of wav files (and/or other media) can be 
stored in .cst files and downloaded at run-time.


ja
http://vispo.com


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


Re: [Flashcoders] libraries of wav files?

2010-04-29 Thread Jim Andrews
If you create an mp3 in SoundBooth or Sound Forge and loop it, even in those 
environments, you see that simply creating an mp3 introduces some silence at 
the beginning and end of the file. Even if the mp3 was made from a perfectly 
gapless looping wav file, the mp3 will have a gap in it.


Consequently, if one wants to use external mp3's in Flash (or any other 
program) things get a bit tricky.


I've read a couple of good docs on this at
http://blog.andre-michelle.com/2010/playback-mp3-loop-gapless/#more-590
http://www.compuphase.com/mp3/mp3loops.htm

The first URL contains some excellent ActionScript code for gaplessly 
looping an mp3--as long as you know the total number of samples in the wav 
file from which the mp3 was made. This code was written by Andre Michelle, 
probably one of the main people who made http://audiotool.com , which is a 
very impressive Flash audio app.


The second URL is very good also, but after investigating it quite a bit, my 
conclusion is Andre Michelle's code is the way to go if you want to 
gaplessly loop external mp3 sounds. But, again, this presupposes that you 
know the total number of samples in the wav from which the mp3 was made.


A good alternative, which I haven't tried yet, is to create external SWF 
files that contain groups of wav files, let the user select which group they 
want to use, download the SWF, and use it as per Glen and Kenneth's 
suggestions in this thread.


ja
http://vispo.com

ps: Here are some interesting online interactive audio apps: 
http://vispo.com/misc/ia.htm


- Original Message - 
From: Karl DeSaulniers k...@designdrumm.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 29, 2010 5:03 AM
Subject: Re: [Flashcoders] libraries of wav files?



I would set it up using XML.

I think the trick to loading MP3s and having them loop is to preload 
them.
Then figure out how long till the sound plays and how long is left  after 
the sound ends to the end of the track.
Time your next song in line to start playing before the other ends at  the 
right point to where the current ends

the next in line has had time to get to the point where its sound  starts.
Then do a little DJing utilizing some kind of fade of the volumes. :)
You could even have them overlap some to have that cross-fade effect.
If anyone has a better suggestion, I am all ears as well.

Best,

Karl


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


Re: [Flashcoders] gapless looping of external mp3's

2010-04-29 Thread Jim Andrews
That's basically what Andre Michelle is doing with his code at 
http://blog.andre-michelle.com/2010/playback-mp3-loop-gapless/#more-590 , 
Andrew.


ja
http://vispo.com

- Original Message - 
From: Andrew Murphy amur...@delvinia.com

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Thursday, April 29, 2010 6:28 AM
Subject: RE: [Flashcoders] gapless looping of external mp3's



This might work to achieve gapless looping:

Once you've loaded the audio assets (an mp3 file, swf file library assets,
etc.), copy the raw sound data into a ByteArray.  Then to play it back you
create a duplicate of that ByteArray and feed it to a new Sound object 
when

it throws it's SampleDataEvent event.  Once you've used up the ByteArray,
duplicate it again and keep feeding it to the Sound object.

I've been messing around with this, off and on, for a while to try and 
loop

a simple sine wave audio data that I've generated.  It works pretty well,
except that I always get a little 'pop' whenever the next loop starts..
possibly because the phase of the end of the previous loop doesn't match 
the

start of the next one.


--
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830
W www.delvinia.com



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


Re: [Flashcoders] libraries of wav files?

2010-04-29 Thread Jim Andrews

Coming a bit late to the conversation, but I did exactly that for some
music education games. We had to have seamless playback of multiple
audio files, and mp3 just doesn't cut it.

I put my .aiff files into one Flash file, set the linkage, and
downloaded the swf at run time. When the swf download was finished, I
instantiated instances of the .aiff files. I can send you some code if
you like (it's a little to long to post in a message).

Cordially,

Kerry Thompson


Hi Kerry. Nice to see you in this forum!

Sure, I'd appreciate the code. Thanks very much.

Also, can you tell me why you're working with .aiff files rather than, say, 
.wav files? I have never worked with .aiff files. I don't know anything 
about them. How do they compare with .wav files?


ja
http://vispo.com 


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


Re: [Flashcoders] letter from Steve Jobs on Flash

2010-04-29 Thread Jim Andrews

Does HTML 5 do anything about the basically non-existant audio API in HTML?

I gather that the canvas tag was Apple's proposal. How does it compare 
with the graphical abilities of Flash or Director?


Microsoft has not implemented the canvas tag. Is the canvas tag in the 
W3C HTML 5 spec?


And how does the canvas tag compare with the ideas around SVG, which seems 
like a competing graphical API?


In an ideal world, we could use 'open' tools with 'open' standards to create 
our apps.


But what we have, instead, are corporations struggling with one another for 
business turf/markets.


I've been a Director programmer for over ten years. Seeing what Adobe is 
doing with Director, I have no allegiance to Adobe. Eventually it will be 
Flash's turn to suffer the same fate.


As go these big corporations and their products, so goes my work and your 
work? Then it's only a matter of time before it all becomes data trash.


By no means an ideal situation any way you look at it.

I was attracted to Director cuz I could do things with it that I couldn't do 
with any other tools. Flash is now the more popular and contemporary tool 
for doing these sorts of things. And it has equalled Director in various 
(though not all) ways. So I'm learning Flash.


But I wonder if it'll all be data trash in twenty years.

ja
http://vispo.com 


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


[Flashcoders] gapless looping of external mp3's

2010-04-28 Thread Jim Andrews

I'm new to the list.

Does anyone have experience with gapless looping of external mp3's in Flash? 
I'm having probs with it.


I read http://www.compuphase.com/mp3/mp3loops.htm . There's even a section 
in there about gapless looping in Flash.


But I'm not sure how old that page is and if there are better methods now 
than what's described there.


I have done some previous work with gapless looping, but it was all in 
Director, such as at http://vispo.com/nio and http://vispo.com/jig/arteroids 
. I'm just learning ActionScript now.


ja 


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