I am fairly new to AS2.0 and OOP in general and I was wondering if anyone
has a template file for AS2.0 classes that they wouldn't mind sharing.
I am looking for a blank AS2.0 template that contains dummy content and
layout that can be used (and should be used) every time I want to start
Hello,
I have a flash based app. that works fine when run in the IDE or locally on
my machine, however, when I upload the app. to my server, it doesn't work.
The app. just freezes my machine and I get the damned A script in this
movie is causing Macromedia Flash Player 8 to run slowly. If it
If this is an example of the listener object approach:
myObj = new Object();
myObj.onMouseDown = myFunction;
function myFunction() {
trace(tracing something);
}
Mouse.addListener(myObj);
will take a look see if it does the same for me.
Jim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen
Ford
Sent: 14 January 2006 01:23
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Error only when live - pulling my hair out !!!
Hello
True or false (not a trick question, just a straight answer needed):
The addEventListener method can only ever be called on a component ? e.g:
myButton.addEventListener(click, myFunction);
... and if click is one thing you can 'listen' for, what is the complete
list ?? (this might help me
Does anyone have an opinion, or a preferred method, in regards to
naming conventions for AS2.0 objects ?
For example, Macromedia recommends:
clip_mc (movie clip)
comm_lc (local connection)
names_array (array)
beep_sound (sound)
field_txt (text field)
etc, etc, etc
but what if I wanted to
Hi All,
I have a flash application that is causing an error only when it’s viewed
within the browser.
I can replicate the error whenever I like, as it always occurs the same way.
If I could replicate the error within the Flash IDE, I could use the debugger
to find what is causing the
Does anyone have any good links or advice for optimising Flash for search
engines.
Please let me know if anyone can advise on this or if some research has been
done in this area.
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your
I have a setInterval call that is only firing once.
Here is the part of my class where it's occuring:
---
public function repositionClip():Void{ nWidth = Math.round(Stage.width);
nHeight =
Thanks Stacey,
Yes it seems you need to pass in the parameter of 'this' before the function
name and time, although I couldn't find reference to this in any of the manuals
I looked in. Maybe they all just speak of AS1 and not class use of setInterval.
_nInt = setInterval(this, myFunction,
I have a little flash app. that pulls in various dates that are formatted in
numerous ways.
Before I look at creating a class that will return me a standard way to display
the date, has anyone done anything like this before or know where I can
download something similar to use or build on ?.
Can anyone tell my why the following icon/image appears momentarily
in the top left of my browser screen when visiting my website:
(click link to see image)
http://i56.photobucket.com/albums/g194/CarlosBrems/image.gif
Is this something to do with the OBJECT tag or EMBED tag that I
have
Can anyone tell my why the following icon/image appears momentarilyin the top
left of my browser screen when visiting my website: (click link to see
image)http://i56.photobucket.com/albums/g194/CarlosBrems/image.gif Is this
something to do with the OBJECT tag or EMBED tag that Ihave
It's a flash movie that replaces the broken icon, not an image.
There's nothing else on the HTML page other than one flash movie.
Thanks if anyone can help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
Can anyone answer this:
What happens if a user doesn't have javascript enabled in their browser for the
recommended Macromedia solution (see link:
http://www.macromedia.com/devnet/activecontent/articles/devletter.html) to this
whole Active X debacle ?
???
Please answer this if you can. It
Thanks to Steven Sacks and Paul BH. After reading your thoughts (about
javascript being enabled by default and stats of 3 out of 75000 users have it
switched off) I am now going to go forward and use the FlashObject solution
from here on in for everything I build.
Anyone who thinks I am
I agree 100% on this issue.
I have lost count as to how many times the missing font issue has come up in
projects.
It always stalls a project, sometimes for days (especially when one group of
developers are in a different time zone on the other side of the world).
Adobe/Macromedia need to
Thanks all.
I found this function online and it works perfectly:
-
Array.prototype.sortOn = function(p){Array.$sortprop = p;var sortfunc =
function (a, b){var p = Array.$sortprop;return b[p] a[p];
Well said Lee.
Microsoft has taken their own initiative to include Active X, Object, Embed
activation in their latest IE patch.
Has nothing to do with a court ruling.
Can only be an attempt to make life more difficult for
Adobe.___
Please advise,
What is this piece of code doing:
for (posArray = [], i = 0; i this.length; posArray[i] = i++) {}
I though it might have been another way of coding:
for (i=0; ithis.length; i++) {posArray[i] = i;}
But what would be the point of that anyway ?
I have never seen a FOR loop
A couple of times I have tried to cast a string to a number like so (this is
just an example):
var string:String = 9;trace(string);var number:Number =
Number(string);trace(number);trace(typeof(number));
It seems to work, but is this the correct way to cast.
Thanks,
Thanks all,
Much appreciated. I now understand Inspectables and how they relate to
classes/components/the flash IDE property panel.
However, I shouldn't have compressed two questions into one.
So the first part of my question remains. What does code appearing inside
brackets mean, for
Can anyone recommend a good application or website for UML modelling of an
AS2.0 application.
I have taken a look at gmodeler and downloaded an application called Enterprise
Architect, but can anyone recommend anything else I should look at.
Thanks,
Hello all,
I have searched the flashcoders archive for around 20 mins and couldn't find
exactly what I need,
so here is my question.
Can anyone recommend, or does anyone know of, a tool for creating UML diagrams
that will
export a set of AS2.0 classes from said UML diagram.
From what I
Hello All,
Can anyone confirm that the Delegate class is only helpful when using
components ?
Or should it also be used for events outside the component framework ?
No doubt it depends on what your trying to achieve, but just generally
speaking, what do you think.
Thanks,
Stephen.
I thought all objects were associative arrays ?
Is this incorrect ?
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by
Are Abstract Classes and Interfaces the same thing ?
Stephen.___
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
Hi,
My singleton is throwing +256 levels of error.
Below I will show the code from my class and code from the .fla:
DateShaper.as
/class Sampler{// :: Private Properties ::private
static var dsInstance:Sampler; // The master
Hi,
My singleton is throwing +256 levels of error.
Below I will show the code from my .as file and from the .fla file:
DateShaper.as
/class Sampler{// :: Private Properties ::private
static var dsInstance:Sampler; // The master
Hi,
My singleton is throwing +256 levels of error.
Below I will show the code from my .as file and from the .fla file:
- DateShaper.as -class Sampler{private static var dsInstance:Sampler;
// The master instance of this class public function Sampler(){getInstance();}
public
Hello,
I received this error while remotely debugging a swf:
(15917) Connections: true | true*** Security Sandbox Violation ***Connection to
http://my.abcnews.go.com/rsspublic/fp_rss20.xml halted - not permitted from
http://localhost/test.swf
I have added the file in question
How often do you use 'watch' in your applications?.
It seems pretty powerful to me, and I've only just discovered it.
Any thoughts on this.
Cheers,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
I have a preloader class for my app that doesn't appear until more than half
way through the loading of my entire application.
This is because I have a flash v2 combo box further along in my application.
I should know this, but how do I get my preloader (which is a class of it's
own) up and
I have a number of movieclips in my flash application. Within these movieclips
is one textfield. The movieclips all have an AS2.0 class definition.
The problem I am having is tabbing between the textfields within these
movieclips and I don't know what the problem is.
If I copy a few of the
I have a created a little form in flash. I need to get the values into a
backend. What I have is a variable called sQuery, like so:
sQuery =
questionnaire.asp?firstname=James%20J.lastname=Delaneyjobtitle=Web%20Dev[EMAIL
PROTECTED]company=The%20Factoryphone=34563456customer=trueq1=7q2=39
Hi,
I have a flash application that has a couple of combo box components and a
couple of text fields.
Trying to tab between my text fields doesn't work, even though they are all tab
enabled and have tab indexes.
The reason for this, I have recently found out, is due to the combo box
Hi,
Has anyone successfully incorporated Google Adsense ads into their flash site ??
Is this currently possible ??
Thanks.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I have recently purchased a webcam for my pc.
Does anyone know of any sites (flash or other) that currently incorpotate
webcams into their site.
Community sites / online chat / etc, I want to see how webcams are currently
being used on the net.
I saw one site a while back that used flash
Can someone explain (or point to a URL) the difference between Flash Player
Installer Active X and Flash Player Installer Plugin ???
Thanks.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I have an interactive demo that consists of one main SWF file that loads in
other SWF files depending on what the user clicks on in the main SWFs
navigation.
Within this main SWF and within all the seperate SWFs are numerous movies each
with their own timeline doing it's own thing.
In
I'm using AS2 classes in my flash movie.
I have created a class called Preloader.
How can I load this class without loading all other classes.
The problem is that when testing my movie, nothing appears onscreen until about
30% of the total movie has loaded (because by default flash loads
Thanks Alain,
I have used that technique before, but surely there must be another way without
using multiple SWFs ?
I am trying to keep everything together in one FLA file.
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription
I am trying to use 01 as a label for one of the items in my combobox, however
flash won't display 01 - it cuts off the zero and just displays 1.
Anyone know a way around this.
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your
Thanks [EMAIL PROTECTED], but I should have added that I am entering the labels
and data in the Parameters panel inside the Flash IDE.
If anyone knows a way around this it would be great, but I might have to
populate the Comboboxes dynamically with code.
Is it possible to use actionscript classes that exist only online ?
i.e: instead of:
import com.website.utils.*;
something like:
import http://www.website.com/packages/com.website.utils*;
___
Flashcoders@chattyfig.figleaf.com
To change
Does anyone know if Flash's built in Print command has anyway of providing a
callback once a print job has been executed ??
I need to set a clips visibility to false while the printing takes place, then
set it back to visible once the print executes ??
Is this possible ??
Thanks,
Stephen.
Hello,
I'm working on a small interactive with a text manipulation/effect.
There is a clip on stage that the user drags from right to left, and as they
drag, a text field appears on screen (by scaling from a width of 0 to 100% -
effectively stretching out to full width) following the
Hello,
Lets say you have 10 different setIntervals running within your class. Do you
also declare 10 different variables for these intervals ? like so:
private var nInt:Number;
private var nInt2:Number;
private var nInt3:Number;
etc
etc
Or can you just declare one variable and use it
Has anyone ever experienced any problems with using setIntervals in IE, both
with window mode of transparent and without any window mode (normal) ?
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
Using setInterval in a flashmovie that is loaded into an eyeblaster content
management system.
The movie is an over the page advertisement and apparently causes issues with
IE (if using setInterval) because eyeblaster puts the ad onto the web page with
a transparent window mode.
Thanks Mick G.___
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
Which of the following two techniques do you use when coding a similar (and
common) process in actionscript:var mcTemp:MovieClip =
this.attachMovie(mcCircle, mcCircle+nCounter, nCounter, oMain);mcTemp._x =
Math.random()*600;mcTemp._y = Math.random()*400;nCounter++;or
Why does the following work when published as Flash 6 Actionscript 2, but not
Flash 7 actionscript 2 (or Flash 8 Actionscript 2).var nInt:Number;var
oMain:Object = {};var nCounter:Number;var sClipName:String;var
nClipDepth:Number;function spawnClip():Void{var mcTemp:MovieClip =
Anyone tried any of the Expression apps yet, specifically Blend and Web ?Any
thoughts ? I guess the Expression suite will be competing with the Apollo
platform once it's released.Yes /
No.___
Flashcoders@chattyfig.figleaf.com
To change your
I am populating a text field in my flash movie with the content of an external
XML file.What is the best way to force a line break in my text field ?For
example, if the following was the XML node:contentText text text text. /n
Text text text/contentUnfortunately, the '/n' line break doesn't
Yes the solution was to use nodeValue instead of accessing just the node
itself.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by
Is it true that ASBroadcaster is deprecated in AS3 ?I ask because I have been
meaning to study a little more on EventBroadcaster and ASBroadcaster, but there
is no point looking into ASBroadcaster if its deprecated in
AS3.Thanks.___
I have a bunch of tooltips in my flash movie.One of the hit areas of a movie
clip that triggers a tooltip sits flush with the edge of the flash movie.When
testing in the browser, if I mouse over this clip and continue outside the
flash movie onto the HTML page, I can no longer poll the position
Yes I'm already using setInterval to poll for a hitTest, but if the mouse has
left the stage, flash doesn't seem to return a false for the hitTest
?___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
As I understand it, the best way (or one of) to have a preloader start at 0%
when using classes is to uncheck 'export in first frame' for all clips
associated with a class in your movie, and set the export classes frame (in
publish settings) to a frame other than frame 1. Then dump all clips
Which do you prefer:oThis:Object = this;mcClear.onRelease = function():Void{
oThis.clearForm();}ormcClear.onRelease = Delegate.create(this, clearForm);Also,
anyone please let me know if my code formatting doesn't work (i.e: shouldn't be
using hotmail to
Go to www.thefwa.com and look around. You'll find
plenty.___
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
Flashcoders is BROKEN? ...___
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
Anyone have a list of what is deprecated from AS2 when migrating to AS3 (or
even whats deprecated from AS1 to AS2).I'm currently skimming every single
class available in Flash AS2 and want to know what I can skip (i.e: what is no
longer relevant).There must be a list of something like this
Is Object.registerClass no longer relevant when using AS2 and OOP structure.I
understand AS2 class structure, inheritance, etc but am trying to understand
how it was done in AS1 and if I need to know any of the techniques used before
AS2.Thanks.___
Excellent, thanks all. Makes perfect sense now.It's the dynamic version of
symbol linkage in the IDE (main advantage, for my style of build, is to assign
more than one symbol to a class).___
Flashcoders@chattyfig.figleaf.com
To change your subscription
var nInt:Number = setInterval(this, myFunction, 2);
function myFunction():Void
{
clearInterval(nInt);
etc .
etc .
}___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Anyone have a small script they use when they want to trace out both the name
and values of all properties in an object. I'm sure I've done this before, but
can't recall at the moment (I'm half asleep this morning). Something building
on:var oObject:Object = {};for (var props in oObject) {
Is there any point using a third-party application to optimize video for
Flash.Or is it best just to use the video import feature of the Flash IDE.The
delivery technique I'm using is external progressive download.Do I need (do you
recommend) any apps other than Flash itself to prepare/optimise
Hi,How do I preload video when the target player is 7?.The delivery technique
I'm using is progressive download.Should I be using a proxy SWF to load an
external FLV (because the Video class in Flash doesn't have anyway of polling
the size of an external FLV, or how much of that FLV is loaded -
Can anyone see why the callback events on the oLoadListener object in the
following class aren't firing:import mx.data.binding.ObjectDumper;import
mx.events.EventDispatcher;import mx.utils.Delegate;class TowerVideoPlayer
extends MovieClip {//
Thanks Muzak,How to best initialize EventDispatcher outside the constructor via
a static property ?How would you do
this?___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I can't define web services in the flash IDE.For any URL (and I've tried 5
different ones) I get the following message:WSDL download failed for the
following URLs:Anyone know a fix for this or why this might be happening?.One
possibly fix I stumbled upon was to delete everything in the 'Local
I am playing around with xmlSocket.Does anyone have a host and port I can
connect to just for test purposes?.I use WAMP server locally, is it possible to
configure WAMP as a host for xmlSocket.Any pointers also
welcome.Thanks.___
Thanks Mark. I'll take a look at the moock
server.___
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
Thanks Muzak. I found the problem. Changed a setting in IE7 and now it works
(prompted when viewing in the browser).I'll look into
ARP.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Does anyone know how I can set up a local xml socket server on my pc to test
with the xmlSocket object in
flash.Thanks.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Thanks Muzak,I found that link, it doesn't say how to implement or create the
socket server from that java code though (I'm a server novice - it's probably
quite simple).But I found this one:
http://multiuser.web-cd.net/en/default.aspxI got it working enough to
understand how xmlSocket works.
Yes thanks all - the question has been answered. Both gave some great insight.
Cheers.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to
What do you make of Microsoft's
Silverlight:http://www.microsoft.com/silverlight/default_01.aspxTheir site
sucks for starters, but anyone have any thoughts on what impact this will have
on Flash ?___
Flashcoders@chattyfig.figleaf.com
To change your
Just got my hands on an Xbox 360.Can anyone tell if there is any type of
development sites resources for the 360.Does it have even have the Flash
Player, can you view flash files via the Xbox 360
OS.___
Flashcoders@chattyfig.figleaf.com
To change your
As I see it you have two options:
(1) Create a wrapper SWF or
(2) Export all classes after the first frame and create an AS1 preloader in the
first frame of the main timeline.
Cheers.___
Flashcoders@chattyfig.figleaf.com
To change your subscription
Is it me or doesn't the transform gradient tool in Flash 9 not work
???___
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
Did anyone else receive a german email after posting to flashcoders today?
Here is my question again anyway:
Is it me or doesn't the transform gradient tool in Flash 9 work
??___
Flashcoders@chattyfig.figleaf.com
To change your subscription options
AS3 Question:
Is there a way to give all classes in every package a couple of new methods?
I want to create a couple of new custom trace methods and have them available
for every class within the type heirachy.
Currently, I've extended the Sprite type to include these trace methods and
most
Example: I've drawn a 50x50 red square in the Flash IDE, and converted it to a
new MovieClip, giving it a name of Box. I've then selected Export for
Actionscript, at which point said clip is given the default Base Class of:
flash.display.MovieClip
So I then create a Class file, Box.as. Within
Is there anyway for a static function within a class to fire off an event?
assuming the static function exists within a class that has no constructor (ie:
is never instantiated).
As I understand it, for another object to be listening for the event, said
object must have a local refence to the
87 matches
Mail list logo