[Flashcoders] Re: OTish MP3 files for a piano scale

2011-02-08 Thread Alan Neilsen
I have also made a piano keyboard years ago and had the same problem. In the 
end I found a series of C notes from a grand piano and used SoundForge to 
change the pitch on the notes, thus extrapolating all the notes of the keyboard 
from those Cs.

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Fwd: Looking for Flash/Web Designer! Great

2010-09-07 Thread Alan Neilsen
This is meant to be a Flash coders list. When did it become a job-seeker site 
which apparently specializes in underpaid web developer jobs? Most developers I 
know are very busy people who do not need their time wasted by spurious, 
inappropriate posts to the list.



This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Re: Producing a random list with no repeats

2010-05-09 Thread Alan Neilsen
Thanks to all the suggestions re my random list problem. Particular thanks to 
Gerry Beauregard for this suggestion:

It's probably best just to create an Array or Vector containing numbers 1 to 
40.  (Vectors are only available in AS3, not sure about Array).  Shuffle the 
array, then choose the first 10 elements..

The following method of shuffling an array works fine in AS2:

var numArray:Array = new Array();
numArray = 
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40];
shuffle(numArray);

function shuffle(arr:Array) {
 var i:Number;
 for (i in arr) {
   var tmp = arr[i];
   var rNr:Number = Math.floor(Math.random()*arr.length);
   arr[i] = arr[rNr];
   arr[rNr] = tmp;
 }
}


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Producing a random list with no repeats

2010-05-05 Thread Alan Neilsen
I am working in ActionScript 2. I want to create a quiz in which 10 questions 
are randomly selected from a block of 40 questions. I found the following code, 
but I can't work out how to stop it doubling up the questions.

function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}
for (var i = 0; i  10; i++) {
var n:Number = randRange(1, 40)
trace(n);
}

When I run this it outputs a list of numbers like 40  13  17  12  27  12  3  17 
 9  15 which means some questions (in this case 17 and 12) will appear twice in 
my quiz.
Bearing in mind that I am a bit of an ActionScript dummy, can anybody suggest a 
way to modify the above script to prevent the same number being generated more 
than once.

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Filter rendering error warning

2010-03-24 Thread Alan Neilsen
I have a Print button in my SWF that prints a defined area off to the right of 
the stage. There are a few small objects on the stage with drop shadows at that 
point, but no filters on the objects in the print area which is just a 
background and some static and dynamic text fields. When I test my SWF and 
click the Print button the output window tells me Warning: Filter will not 
render.  The DisplayObject's filtered dimensions (6928, 4637) are too large to 
be drawn.

The stage itself is 820 x 545, and the entire area I am using (from the top 
left of the stage to the bottom right of the print area) is 1516 x 660, so I 
don't get where 6928 x 4637 is coming from. Is this maybe a glitch in Flash? 
Everything still seems to work okay for me, but I am worried that this error 
may cause the SWF to not work properly on some slower computers, or have some 
other unwanted effect for my clients.

Has anybody seen this sort of thing before, and maybe has a solution to stop 
this filter rendering error from occurring?

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: AS2: blank input text field when clicked

2010-02-15 Thread Alan Neilsen
Thanks to Glen Pike. The solution ended up being very simple. I blanked the 
text in the input field using enterPage.onSetFocus as below, then added 
Selection.setFocus(null); to all other controls on that screen so the text 
field always gets its focus set when clicked.

enterPage.onSetFocus = function() {
enterPage.text = ;
go_btn._visible=true;
};

go_btn.onRelease = function() {
Selection.setFocus(null);
if (enterPage.text != ) {
if (enterPage.text=19) {
whichPage = int(enterPage.text);

holder_uh.myPageFlipperuh.gotoPage(whichPage);
go_btn._visible=false;

}
}
};

Alan Neilsen



This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2: blank input text field when clicked

2010-02-10 Thread Alan Neilsen
I am working in AS2. I have an input text field I am using with an AS2 flipbook 
component so users can type a page number then go to that page in the flipbook. 
I want to make it so when the text field is clicked, any existing text is 
removed and focus set so the user is then ready to type a page number (then 
click a 'GO' button to go to that page). Flash won't let me apply code to the 
text field, so I thought I could code it so if that area of the stage is 
clicked it will do what I want. This is really basic coding with no classes, 
external scripts, etc.; so if anybody has a really basic solution I would be 
extremely grateful. This should be the sort of thing people use all the time 
(an input text field that is cleared when clicked), so I assume I am not the 
first to try and do this.
I thought the following might work, but Flash tells me, The class or interface 
'MouseEvent' could not be loaded. So maybe I have left something out, or I am 
mixing up my AS2 with AS3, or I am just approaching this all wrong.

stage.addEventListener(MouseEvent.MOUSE_DOWN, blankText);
function blankText(event:MouseEvent):void {
if (mouseX = 370) {
if (mouseX = 430) {
If (mouseY = 50) {
if (mouseY = 72) {
enterPage.text = ;
}
}
}
}
}
Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2 SWFs with pageFlipper component

2010-02-04 Thread Alan Neilsen
I have 12 x AS2 SWFs (build in CS4 Pro) that each use a purchased flipbook 
component called pageFlipper. These SWFs are AS2 because this component doesn't 
work in AS3. The 12 SWF using this component are loaded at various places into 
a main interface that is AS3, also built in CS4 Pro. When I run the interface 
and go to a screen where one of the AS2 SWFs is loaded it works fine, but when 
I go to any of the other screens where another of the AS2 SWFs is loaded, the 
flipbook does not appear. It does not matter which order I try this; whichever 
of the 12 AS2 SWFs that loads first is the only one that works.

In each case the loaded AS2 SWF is removed from the main program with 
loader_clip.removeChild(ldr) when I navigate away from the screen where it was 
loadd. It seems to me that I also need to do something to remove the component 
as well so it will work again when a subsequent SWF using it is loaded.

Can anyone shed any light on why it only works on the first SWF loaded, and 
what I might do to make it work when subsequent SWFs are loaded?

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Why is my HTML file so huge

2009-12-16 Thread Alan Neilsen
Hi List

I don't recall changing any publish settings for my HTML file, but when I 
publish my SWF its HTML file ends up 2,582 KB instead of the expected 10 or 12 
KB. When I open the HTML file I find it is the same as earlier back-up versions 
that were 10 KB, but for some reason when these later versions get to, !--text 
used in the movie-- they now list all the text in the SWF many, many, many 
times with lines like:

p align=leftfont face=Futura LtCn BT size=16 color=#ff 
letterSpacing=0.00 kerning=1General data about timber framing products 
to go here./font/p

The HTML code then goes on like that for more than 14,000 lines with, as I 
said, many repetitions of all the text used in the SWF.

I have seen this sort of thing before, but have no idea what is causing it. Can 
anybody shed light on this for me?

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Enter key to activate focused button

2009-12-13 Thread Alan Neilsen
I have set up a custom Tab order, so the Tab key moves through the interactive 
elements (buttons) of my SWF in the order I want. I then want the Enter key to 
execute the code for whichever button has focus (as if that button was 
clicked). I can't work out how to add a listener that listens for the Enter key 
to be pressed and then execute the code the button (as suggested by Karl: 
thanks). Can anybody provide a code snippet for this?

I have tried to find a solution in the online help system for Flash, but that 
system is sadly lacking. For instance, if I select This Help system only and 
do a search for addEventListener I get no results - which seems ludicrous to 
me. How is it possible that the term addEventListener does not exist anywhere 
in the Flash Help system?

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Why doesn't Enter key work on focused button?

2009-12-10 Thread Alan Neilsen
I found the following code (in a forum) which makes my Tab order work the way I 
want, but I thought when a button had focus (yellow box around it and showing 
rollover state), the Enter key would then execute the code on that button (as 
if it were clicked), but this does not happen. The Enter key just makes the 
button flicker. Do I need to add more code here (or change something) to make 
the Enter key work like I want?

first_btn.tabIndex=1;
second_btn.tabIndex=2;
third_btn.tabIndex=3;
first _btn.tabEnabled=true;
second _btn.tabEnabled=true;
third _btn.tabEnabled=true;
function fnClick(pME:MouseEvent):void {
first _btn.tabIndex=1;
second _btn.tabIndex=2;
third _btn.tabIndex=3;
}
button3_btn.addEventListener(MouseEvent.CLICK, fnClick);

Alan Neilsen



This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] getting text from textfile.txt into a dynamic text field

2009-11-23 Thread Alan Neilsen
In CS4 (AS3) I have a simple text file for my client to easily update their 
text content. I found the method var loader:URLLoader = new URLLoader(new 
URLRequest(textfile1.txt)); that is supposed to load data from the external 
text file, but I can't work out what I need to do to then get that text into a 
dynamic text field. Can anyone please give me a simple example of how to do 
this.
Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Testing before removing a child

2009-11-18 Thread Alan Neilsen
I am using loader_clip.removeChild(ldr); to remove child objects from my loader 
clip, and I want to test if a child object is there before removing it. I 
thought it would be something like
if (loader_clip.child !=0) {   // or !=, or !=null, or ==true, or 
something like that
loader_clip.removeChild(ldr);
}

But when I trace (loader_clip.child) it comes back undefined whether the 
child is still there or not.

What can I use to test this so loader_clip.removeChild(ldr); doesn't produce an 
error if the child has already been removed?
Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] loading a SWF to a specified layer

2009-11-12 Thread Alan Neilsen
How can load a SWF into my movie so it does not end up on the very top layer? I 
am using the following to load the SWF which works, but always puts the loaded 
SWF on a layer above everything else:

// Load SWF for sawn timber intro
var urlSawn:String=swfs/sawn_intro.swf;
var urlReqSawn:URLRequest=new URLRequest(urlSawn);
ldr.load(urlReqSawn);
addChild(ldr);

Can somebody please give me a simple example (not external code in a package or 
anything complicated) that will allow me to put the loaded SWF into a specified 
empty movie clip (or something) so it does not end up on the very top layer.


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Getting hypertext to work

2009-07-13 Thread Alan Neilsen
When I use 'Options' in 'Properties' to apply a link to text in my Flash movie 
(CS4), it works okay when I test the movie, but when I create the SWF and try 
the same thing, it tells me, Adobe Flash player has stopped a potentially 
unsafe operation. This seems strange, because hypertext created in Dreamweaver 
does not generate a potentially unsafe warning, so why should it happen in 
Flash? There is no point me changing my Flash Player settings (as advised by 
the warning) because it still won't work for my client's end users (who are 
generally computer-illiterate, and cannot be expected to understand about 
changing Flash Player settings). Is it possible to create a hypertext link in 
Flash CS4 that will just work without the need to change Flash Player settings?

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Flash CS4 very slow

2009-06-11 Thread Alan Neilsen
Thanks Patrick Matte

Installing the Flash CS4 update from 
http://www.adobe.com/support/flash/downloads.html has fixed the problem I had 
with Flash CS4 running slowly (and a few other thing). I recommend all Flash 
CS4 users do themselves a big favour and install this update.

Alan Neilsen

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash CS4 very slow

2009-06-09 Thread Alan Neilsen
Does Flash CS4 run very slowly for everyone, or might there be something wrong 
with my installation? Just about anything I do takes ages to happen. For 
instance, if I open Properties to type in an Instance Name, when I click 
somewhere else after that it takes 4 or 5 seconds before I can do anything - it 
just locks up for those seconds. 4 or 5 seconds does not sound much, but when 
it happens again and again and again day after day it really slows my work down.

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] DisplayObject's filtered dimensions too large to be drawn

2009-05-25 Thread Alan Neilsen
Can anybody tell me what might cause this, Warning: Filter will not render.  
The DisplayObject's filtered dimensions (4365, 240) are too large to be drawn. 
There is nothing in my project with dimensions anywhere near that, so I am at a 
loss as to what it means.
Alan Neilsen

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Re: Passing text between SWFs

2008-10-27 Thread Alan Neilsen
Thanks for all your help dr.ache. I think I am very close now. I still get a 
number of errors, but I think the underlying problem is this one:
5000: The class 'RTE2124BuserName' must subclass 'flash.display.MovieClip' 
since it is linked to a library symbol of that type.

What is that trying to tell me, and how do I fix it? I tried a number of things 
(even deleting all the Movie Clips from the library), but I still get the same 
errors. It certainly won't let me put one class in another (as one might 
interpret the term subclass). When I tried that it told me that classes can't 
be nested.

package {
// Import stuff
import flash.events.EventDispatcher;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.*;
import flash.net.URLRequest;
import flash.display.Graphics;
public class RTE2124BuserName {
var rect1:Shape = new Shape();
rect1.graphics.beginFill(0xFF);
rect1.graphics.drawRect(0, 0, 1966, 660);
rect1.endFill();
addChild(rect1);
var ldr1:Loader = new Loader();
ldr1.mask = rect1;
var url1:String = topics/rte2124b_topic1.swf;
var urlReq1:URLRequest = new URLRequest(url1);
ldr1.load(urlReq1);

ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler1);
}
public function completeHandler1(event:Event):void {
MovieClip(event.currentTarget)._parent = this;
trace(_parent.ldr1);
}
}

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Re: Passing text between SWFs

2008-10-23 Thread Alan Neilsen
Thanks dr.ache



I still can't get this to work. Whatever is wrong, it doesn't like the line 
public function completeHandler(event:Event) {.



I get Type was not found or was not a compile-time constant: Event



I tried adding import flash.events.Event, but then I get several various 
errors.



Currently my faulty code to load child objects and use contentLoaderInfo 
looks like:



package {

  // Import stuff

  import flash.events.addEventListener;

  import flash.events.Event

  import flash.events.MouseEvent;

  import flash.display.*;

  import flash.net.URLRequest;

  import flash.display.Graphics;



  public class rte2124buserName {

var rect1:Shape = new Shape();

rect1.graphics.beginFill(0xFF);

rect1.graphics.drawRect(0, 0, 1966, 660);

addChild(rect1);

var ldr1:Loader = new Loader();

ldr1.mask = rect;

var url1:String = topics/rte2124b_topic1.swf;

var urlReq1:URLRequest = new URLRequest(url1);

ldr1.load(urlReq1);


ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler1);



var rect2:Shape = new Shape();

rect2.graphics.beginFill(0xFF);

rect2.graphics.drawRect(0, 0, 1966, 660);

addChild(rect2);

var ldr2:Loader = new Loader();

ldr2.mask = rect2;

var url2:String = topics/rte2124b_topic2.swf;

var urlReq2:URLRequest = new URLRequest(url2);

ldr2.load(urlReq2);


ldr2.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler2);



// Call up topics from topics folder.

public function completeHandler1(event:Event) {

  MovieClip(event.currentTarget)._parent = this;

  trace(_parent.ldr1);

}

public function completeHandler2(event:Event) {

  MovieClip(event.currentTarget)._parent = this;

  trace(_parent.ldr2);

}

  }

}



All I want to do is to pass user input (user name) from a parent SWF to a child 
SWF. Could somebody please tell me all the code I need and where the code goes 
to do this. I am sorry that I can't work this out, and to be honest, Flash help 
is less than useless unless you have been doing OO programming for years. It 
does not contain decent examples of everything one needs to do to get stuff to 
work.



Cheers

Alan





Hi Alan.



In the same class / at the same position where you load your child

movieclip.

One line below your loadClip method call.

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Passing text between SWFs

2008-10-22 Thread Alan Neilsen
Can somebody please help a dummy. I am trying to pass user input text (user's 
name) from a parent SWF to a child SWF. Poste9 has told me I can use:



ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);



public function completeHandler(event:Event) {

MovieClip(event.currentTarget)._parent = this;

}



Thanks Poste9, but I don't know where/how to use that. I assume I need to put 
this code in a package (that's what the Flash help tells me), but I am not sure 
how to do that and how to refer to the package. Can somebody please explain the 
steps I need to follow to pass user input text from one SWF to another.

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Accessing text between SWFs

2008-10-15 Thread Alan Neilsen
I have a SWF (rte2124b_birthing-duties.swf) in which the user enters their name 
in an input text field. This SWF then calls in another SWF as follows:
import flash.display.*;
import flash.net.URLRequest;
var rect1:Shape = new Shape();
rect1.graphics.beginFill(0xFF);
rect1.graphics.drawRect(0, 0, 1966, 660); //this covers the print-out area as 
well
addChild(rect1);
var ldr1:Loader = new Loader();
ldr1.mask = rect1;
var url1:String = topics/rte2124b_topic1.swf;
var urlReq1:URLRequest = new URLRequest(url1);
ldr1.load(urlReq1);
addChild(ldr1);

Is there a way I can get the text entered in the first SWF (e.g. Fred Smith) to 
be accessible by the second SWF (rte2124b_topic1.swf)? I want the print-outs 
from the second SWF to start with This activity was completed by User Name 
(e.g. Fred Smith).

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Making dynamic text look the same as static text

2008-09-18 Thread Alan Neilsen
I have found that when I call text into a dynamic text field from a variable, 
it does not look the same as the text in a static text field set with the same 
font, size, etc. The text in the dynamic text field appears with no anti-alias, 
emboldening or italics, even though I have set those properties for that 
dynamic text field. Can anyone advise how I make those properties work for a 
dynamic text field?

Alan Neilsen
E-delivery Resources Developer
Goulburn Ovens Institute of TAFE
Wallis Street
Seymour, Vic. 3660
Phone: 0357352466
Mobile: 0437355688

* Please consider the environment when deciding whether or not to print this 
email.


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Re: huge html file (Glen Pike)

2008-07-31 Thread Alan Neilsen
Thanks for that, Glen. I still can't work out what is going on. I looked up 
HTML templates but it does not explain how to fix the problem. I have tried 
publishing on another computer, and it worked fine. However, when I publish on 
my computer I still get an enormous HTML file full of 120 entries for every bit 
of text in the movie. I compared both, and even though the publish setting and 
HTML template files are exactly the same on both computers, the HTML file that 
writes properly contains the lines:



!--text used in the movie--

!-- saved from url=(0013)about:internet --



While the other huge HTML file ends up with hundreds of lines of p/p code 
between these two line.



Can anybody tell me how to stop this from happening?



Publish Settings-HTML tag: Something in your chosen HTML Template will

add the Movie Text - look in the Help file Publishing Flash content

WSd60f23110762d6b883b18f10cb1fe1af6-7bd7.html / HTML publishing

templates WSd60f23110762d6b883b18f10cb1fe1af6-7bb4.html  (the

template has a tag $MT which will be replaced by all the text in the Movie)


Alan Neilsen
E-delivery Resources Developer
Goulburn Ovens Institute of TAFE
Wallis Street
Seymour, Vic. 3660
Phone: 0357352466
Mobile: 0437355688

* Please consider the environment when deciding whether or not to print this 
email.


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] huge html file

2008-07-30 Thread Alan Neilsen
I am revisiting a fla I worked on a couple of years ago (Flash 8) and have 
upgraded it and saved and published it in Flash CS3. For some reason I end up 
with a html file that is 2MB which is full of paragraph text from the swf, with 
each paragraph repeated in the html file 120 times. What am I doing wrong to 
cause that to happen?

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Adding n days to dateField.selectedDate

2008-04-14 Thread Alan Neilsen
Thanks Gabino, Matthew  Michael
 
Can anyone tell me why the following isn't working. I get an error that there 
is no property with the name 'time' referring to 'd.time+=(8640*283).
 
var d:Date=new Date(2008,3,14);
d.time+=(8640*283); // 283 days, in milliseconds
trace(d.getFullYear()+/+(d.getMonth()+1)+/+d.getDate());
// 2009/1/21



This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal and Goulburn Ovens Institute of TAFE
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Adding n days to dateField.selectedDate

2008-04-13 Thread Alan Neilsen
I am building a cattle birthing calculator. Can anyone help me with the code to 
add a certain number of days (usually around 283) to the output of a 
dateField.selectedDate (breeding date) so the result can be put into a string 
and output to a text field such as, The estimated birthing date is 7/7/2008. 
Currently my output can show spurious dates like the 13/33/2008, and I assume 
there is an easy way of adding days and ending up with a real date. 

This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal and Goulburn Ovens Institute of TAFE
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders