This discussion is very interesting, so I would like to offer my
approach of attaching/construction of visual classes. I am open for
optimization hints.
I am using something like this:
1) THE CLASS EXTENDING MOVIECLIP
class com.path.MyVisual extends MovieClip
{
public static
we took our source and just compiled the swc in the flash ide. so now we
have a swc for flex and one for flash :(
On 5/1/07, Mike Mountain [EMAIL PROTECTED] wrote:
How do I go about using a flex 2 SWC library in Flash CS3? I tried
dropping
it into the components directory but no joy
To be honest, I've always found that alot of hassle just to attach a movieclip.
I've never bought into the createClassObject/createObject-way used by the v2
component framework either.
If all you're after is the correct type when using attachMovie, do the
following.
private var
Hello,
Hi,
In my app I need to show a modal dialogue and blur/unblur all on-stage
clips while the
dialogue is active.
So, whats the cleanest AS2 way to do this - I'm in Flash 8 but don't want
any prototypes.
I need to extend all movieclips so does this mean I will need to register
every
Hello,
Hi,
In my app I need to show a modal dialogue and blur/unblur all
on-stage clips while the dialogue is active.
So, whats the cleanest AS2 way to do this - I'm in Flash 8
but don't want any prototypes.
I need to extend all movieclips so does this mean I will need
to
Danny Kodicek schrieb:
Hello,
Hi,
In my app I need to show a modal dialogue and blur/unblur all
on-stage clips while the dialogue is active.
So, whats the cleanest AS2 way to do this - I'm in Flash 8
but don't want any prototypes.
I need to extend all movieclips so does this mean I
Hi,
I'm trying to create some HTML anchor links within a text field that
will open in the current browser page (using target='_self').
The link works, but only in the following circumstances:
a) When you click the link on the published version within flash
b) When you drag the swf file into
Hi,
Do anybody know how to generate blue effect on mouse roll over on movie clip
have bitmap image in it via action scripting. I don't want to use one more
blue prototype to show this.
Waiting for ur reply.
Cheers,
Xian
___
On 5/3/07, Michael Stuhr [EMAIL PROTECTED] wrote:
How about creating a new BitmapData object from _root?
i'm nott 100% sure if that even works, but that would include the modal
too, as long as you don't load it externally into another level.
Not if you create the BitmapData _before_ you show
Ian Thomas schrieb:
On 5/3/07, Michael Stuhr [EMAIL PROTECTED] wrote:
How about creating a new BitmapData object from _root?
i'm nott 100% sure if that even works, but that would include the modal
too, as long as you don't load it externally into another level.
Not if you create the
Yup.
Since I'm working in the Flash IDE, I don't see why I shouldn't.
- Original Message -
From: Joe Wheeler [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com; 'Muzak' [EMAIL PROTECTED]
Sent: Thursday, May 03, 2007 11:28 AM
Subject: Re: Re: [Flashcoders] AS2: generating new
Hi Gustavo,
You will need to either create a button at run time, or attach one from the
library.
Since each image will need to be with an assosiated button, you might as
well load them both into a container MovieClip and then assign that
container a variable with the link address to it so that
Can you give more specific information on what you're trying to do?
What do you mean by blue effect?
-Andy
On 5/3/07, Prince Zain [EMAIL PROTECTED] wrote:
Hi,
Do anybody know how to generate blue effect on mouse roll over on movie clip
have bitmap image in it via action scripting. I don't
Hi folks, sorry to bother you with this, but I'm stumped.
I have a class file that needs to generate video on the fly.
I can get video to play fine when I pop the code onto the main timeline, but
when I put it into a seperate class file, nothing happens.
onStatus simply says NetStream.Play.Start
On May 3, 2007, at 12:50 AM, Marc furman wrote:
Hi
can anyone tell me if there is a way to use jpeg 2000 compression in
flash mx 2004 or flash 8 also if it is used in a movie can jpeg
2000 compression be viewed in flash player 7
Thank you
marc
The IDE does support JPG2k though I do not
Hi,
I've found out that my problem has been caused by the
fact that a snapshot of target_mc's propertis is being
taken when the TransitionManager constructor is being
called, or when TransitionManager.start() is being called
for the 1st time. And not when I call startTransition() or
when I call
Hi, what I need is basically a class that puts all the data in an
associative array, or numeric, depending on if I'm storing values for
individual nodes, or a mothernode.
Now I find there is a lot of looping going on every time I have to parse
a XML, and XPath seems more like the thing you
I associate my AS2 classes to my library symbols through
Object.registerClass(LibraryID, ClassName).
Where:
LibraryID is an identifier in the FLA of a movie clip.
ClassName is a class that eventually extends a Movieclip.
I have a RegisterClasses singleton that is the first thing that is
called
Xian,
I'm assuming you want to tint a movie clip to blue or cause a blue glow?
You could try my EasyTween class which supports filters and color
tinting.
http://blog.dcholth.com/?p=23
Or
Jack Doyle has also posted his TweenFilterLite class to the list as
well.
Hi there, I want to call a function but want to able to call it
dynamically so a string that is passed will determine which function
is called.
My reason for this is I have an interface with a number of buttons
that have different labels but that look the same and need to call
different
Here's what I use:
-Original Message-
From: Johan Nyberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 03, 2007 10:15 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Any good XML api out there?
Hi, what I need is basically a class that puts all the data in an
xpath statement to get all the artist names ./root/track/artist/text()
On 5/3/07, Johan Nyberg [EMAIL PROTECTED] wrote:
Hi, what I need is basically a class that puts all the data in an
associative array, or numeric, depending on if I'm storing values for
individual nodes, or a mothernode.
Create a Track object which has name and artist properties. Write 1
line simple setters and getters and a constructor that takes an XML
subtree and extracts the Track detail (This way you can add more to the
track without having to touch anyone else.)
Create a root object that has a list of
Here's an AS2 class that'll load and parse your XML file into almost exactly
what you're asking for:
http://www.greensock.com/ActionScript/XMLParser
Instead of root[track[n][artist]] from your example, it would be simply
track[n].artist
Jack Doyle
-Original Message-
Date: Thu, 03 May
OOoops!!! I am sorry. It is not blue but blur.
I have three good quality image in my application. Initially I want all
three look blur but when user roll over to it then it will gradually become
clear image when roll out it would be again blur.
I can use two images (like one blur one
E4X is great if you can use AS3, that is if you can deploy to Flash Player9
---
Hi, what I need is basically a class that puts all the data in an
associative array, or numeric, depending on if I'm storing values for
individual
Here's what I use:
My example creates an array containing 3 items. Each item is an object that has
3 properties (vidpath, otherAttribute, description). It creates properties from
the xml attributes and the value of the child nodes.
Given an xml file such as:
media
video vidpath
You could do something like this:
class Something
{
method1();
method2(a_number:Number);
}
Somewhere else:
var method_str:String = method1;
var sm:Something = new Something();
sm[method_str](); // Will call method1 class method
sm[method2](0x09F911029D74E35BD84156C5635688C0); // Also
Hi, sorry I'm coming in the middle of the thread, but there's a little bit on
the JPEG 2000 format in the docs, in a video connection, but I don't see other
references there:
http://www.google.com/search?q=site%3Awww.adobe.com+inurl%3Aflash+%22jpeg+2000%22
For the JPEG 2000 method itself, the
Ever tried XML2Object?
Check it out:
http://www.sephiroth.it/file_detail.php?id=129
The only draw back is if there is only one element it won't put it into
an array but an object. To resolve
this I throw it into an array to unify use:
if(!object.xml_element.length)
{
object.xml_element =
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Alistair Colling
Sent: 03 May 2007 15:27
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Syntax for dynamically calling a function
Hi there, I want to call a function but want to
AC Hi there, I want to call a function but want to able to call it
AC dynamically so a string that is passed will determine which function
AC is called.
AC My reason for this is I have an interface with a number of buttons
AC that have different labels but that look the same and need to call
PZ OOoops!!! I am sorry. It is not blue but blur.
Use the flash.filters.BlurFilter class of Flash 8 or apply blur
manually on the Filters tab of the Properties panel. If you are
intending to publish for earlier versions, then you cannot avoid using
multiple images to reach acceptable result.
Sebastian,
You didn't include the timeline code, but I made some assumptions. I think
the most relevant issue is that your NetConnection and NetStream variables
are local and expire after the function is called. This works:
//in class PostView.as, in com/blabla/
class com.blabla.PostView extends
Anyone know if the 'Express Install' is available for a Flash Player 9
upgrade yet?
thanks,
- MaTT
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Xian,
Both of these classes support blurring.
My EasyTween class:
http://blog.dcholth.com/?p=23
Or
Jack Doyle's TweenFilterLite:
http://www.greensock.com/ActionScript/TweenFilterLite
Hope that helps!
~DC
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Thanks Robert, I didn't know you could do that. It's a shame you
can't use the same square bracket syntax in the FLA without creating
a custom class, still this is a neat solution :)
Cheers!
Ali
On 3 May 2007, at 16:04, Robert Brisita wrote:
You could do something like this:
class
Couldn't you just use call() or apply()?
http://livedocs.adobe.com/flash/8/main/2234.html
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Brisita
Sent: Thursday, May 03, 2007 11:05 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re:
OOoops!!! I am sorry. It is not blue but blur.
I have three good quality image in my application. Initially I want all
three look blur but when user roll over to it then it will gradually
become
clear image when roll out it would be again blur.
There are a lot of different tweening packages
The short answer is, you can invoke the function directly by writing:
this.onPress = function () {
_parent[this._name]();
}
or, if this looks clearer, you can use the call() method
this.onPress = function () {
_parent[this._name].call();
}
However, there are a few issues with this
Hi guys,
I am working on a project where I am loading some xml. one of the nodes is
giving me CDATA that is base-64 encoded. Is there any actionscript out there
that can decode and assemble a tiny icon?
here's what it looks like:
thumbnail
XML2AS is the best one I've found. It's also the fastest. I didn't
write it, but I have included it in my package of data tools.
It creates String objects out of nodes and applies attributes and the
names of the child nodes as array properties.
I have written about it on many occasions on
i've had a quick squizz through the archives but not luck
i'm looking to produce an xml driven site but one of the things that
would make it a WHOLE lot easier is putting graphics inline with the
text (to show links within the document) - is there any way of doing
this or should i attach
Hello folks,
My next question is conceptual...
I've made good progress on many of the classes in my application, but
I'm now caught in a dilemma regarding approach.
As mentioned in a previous mail, I'm building a system that can be
divided into two: 1 part does general world 3D animation
(static functions recurse faster).
Really??
Peter
___
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 all,
I'm having some problems with local connection.
I have a stand alone EXE file created in Flash that runs in the client machine.
This exe requires a password. The user has to access a site and get his
password in a swf form that is online. I want that this online swf send the
password
Nevermind. I found this: http://blog.jasonnussbaum.com/?p=108
On 5/3/07, Carl Welch [EMAIL PROTECTED] wrote:
Hi guys,
I am working on a project where I am loading some xml. one of the nodes is
giving me CDATA that is base-64 encoded. Is there any actionscript out there
that can decode and
Hi!
Why not you just use base64_decode function with php script?
As for the script - this can only be done using AS3 since we dealing with
binary data here.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carl Welch
Sent: Thursday, May 03, 2007 8:53 PM
If you want to establish comunication between movies in different
domains then add an underscore prefix to the connection's name.
And see details in the docs of course:
http://livedocs.adobe.com/flash/8/main/2342.html
Attila
___
It's unclear what is different between execute the exe and just
click twice in the swf form versus execute the exe and access the
online swf form. Perhaps if you break down precisely what files are
involved, including html wrappers and locations, and precise
execution order, it would help.
The class worked well. Is there a way I can use BitMapData code to turn the
output into an image?
this is what is decoded - makes no sense to me:
%00JFIF%00%00%00d%00d%00%00%00Ducky%00%00%00%00%00K%00%00%00Adobe%00d%00%00%00%00%00
Hi, Stephen,
right now I'm trying to simulate the problem and find out if Attila's tip
(the underscore) works.
execute the exe and just click twice in the swf form
this will execute the exe in the client machine and if you click twice in
the swf form (as i have flash installed) it will open
I'm having a tough time getting a simple LocalConnection connection
working.
Scenario: Flash 8, AS 2, two separate Flash projectors.
Procedure:
1) Projector A starts LocalConnection.connect.
2) Projector A opens Projector B via fscommand.
3) Project B initializes, then starts
try naming your connection string by leading it with an underscore:
_lc_reportSending
On 5/3/07, Stephen Downs [EMAIL PROTECTED] wrote:
I'm having a tough time getting a simple LocalConnection connection
working.
Scenario: Flash 8, AS 2, two separate Flash projectors.
Procedure:
1)
Hi All,
we're at a point in a project where we need good communication between Flash
and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
like to go a bit further to be able to send complex objects via
ExternalInterface. I know there is Javaflash (HYPERLINK
I have a Flash frontend for a client's website. Is it possible using PHP to
retrieve data from and save data on a database that is on a remote server?
Thanks for any insights...
-Boyd
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
Hi Stephen, attila,
finnaly got it working. the underscore did the job. here is the working
code:
EXE:
this.createTextField(aa, 1, 10, 10, 100, 22);
aa.border = true;
var receiving_lc:LocalConnection = new LocalConnection();
receiving_lc.methodToExecute = function(param1:String) {
aa.text =
That does not fix it :(
I've tried querying the domain property of the connection from both
ends, and it is indeed returned as localhost so I know the movies
are playing in the same sandbox.
On 2007-05-03, at 1:50 PM, John Grden wrote:
try naming your connection string by leading it
On 5/3/07, Alain Rousseau [EMAIL PROTECTED] wrote:
Hi All,
we're at a point in a project where we need good communication between Flash
and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
like to go a bit further to be able to send complex objects via
ExternalInterface. I
I'm not sure if this will help you but on my current project I have a
Oracle / Java back end and I created some servlets to process and return
XML to the Flash client for processing. Although for this project I am
using AS3,
what I use is equivalent to LoadVars. Servlets execute within the
Can anyone suggest the best way to approach a function to select a random
hex color that returns only valid hex values?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
That doesn't really pertain to this list, that's a PHP/database question,
but the short answer is yes you can. But the remote database permissions
have to allow remote connections, and the database has to be supported by
PHP in some way (which I think most if not all are).
Good luck.
On
It is very possible, but the methods are myriad. It depends upon what
kind of server or webservice you need to connect to, and the version
of Flash you are using.
If your needs are simple and you're using Flash v6 - 8, you can use
the LoadVars class to get and send string data.
If your
From: Stephen Downs [EMAIL PROTECTED]
Date: 2007/05/03 Thu PM 02:48:51 CDT
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] local connection,
online swf - local stand alone projector.
snip
The documentation for LocalConnection.send states the syntax for the
I'm extending a class and for some odd reason it gets instantiated
twice. I'm linking the class directly to a movieclip, so here it is my
setup.
Movieclip AS 2.0 Class = myExtendedClass
Classes:
myClass extends MovieClip;
myExtendedClass extends MyClass
Figured out..
I needed to do the following:
MasterClass (init)
myClass extends MasterClass ( super.init() );
myExtendedClass extends MasterClass ( super.init() );
It works, but I wonder why the class gets instantiated twice in my original
example :(
On 5/3/07, Helmut Granda [EMAIL PROTECTED]
That¹s good to know. Thanks, Steven.
IIRC, instanceof is faster than typeof.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you
Java 6 has a new Scripting engine /Script manager so you could use External
interface and write some sort of javascript gateway to bridge Flash and Java --
maybe. Just a thought...
http://java.sun.com/javase/6/docs/api/javax/script/package-summary.html
T. Michael Keesey [EMAIL
If you're looking for best/fastest communication between Flash and Java to
send complex data, I would suggest using an AMF protocol such as OpenAMF.
The other two options are XML or WebServices. AMF is faster because it's all
binary and you use Java VO's (converted to Flash Objects with the same
Why don't you check out Geoff Stearn's SWFObject site? SWFObject
supports express install for any version of the Flash Player.
asai
Matt Muller wrote:
Anyone know if the 'Express Install' is available for a Flash Player 9
upgrade yet?
thanks,
- MaTT
What do you mean by 'returns only valid hex values'? Do you need a string of
the number for display, or do you just need the value? For example, if you
don't need the w/alpha format, you can use:
Math.random()*0xFF
Or you can use bitwise shifts and do like:
Math.random()*25516 |
Currently we're using Flash 8, but switching to Flex is also an option.
The thing is that we are building a Java Desktop Application, forgot to
mention that, it's not a web application.
FYI, ExternalInterface can be used with any other platform if the proper
hooks are in place. It can be
Is there any specific reason why you're integrating Flash in a Java app?
Meaning, are you just using the Java app as a wrapper for the Flash app?
If all you want to do is communicate with a Java backend, Flash by itself will
do just fine.
If you need stuff like file I/O, there's Flash tools for
Thanks Muzak,
We'll look into that. As for your other post, we'll be looking into
Apollo in the near future but right now we are stuck with Java as our
App is pretty much completed.
Thanks all for your answers, it will give us some food for thought.
Alain
Muzak wrote:
In that case, look
If it's a desktop app, then I would probably suggest using Apollo.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Thursday, May 03, 2007 7:19 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash / Java Communication with
Is there any way to determine which web page is displaying my SWF? This
could be the referrer field of the HTTP request for the .SWF... Or any
other data that might indicate what the containing web page is. I am
using this to determine how to match the theme of the source page, not
for security.
i've been testing your code and in my ie and firefox browsers, and working
correctly...
try test in some ftp address
[]'s
Leandro Amano
On 5/3/07, Hobson, James, VF UK [EMAIL PROTECTED] wrote:
Hi,
I'm trying to create some HTML anchor links within a text field that
will open in the current
public _url : String [read-only]
Retrieves the URL of the SWF file that created the button.
*Availability: *ActionScript 1.0; Flash Player 6
Example
Create two button instances on the Stage called one_btn and two_btn. Enter
the following ActionScript in Frame 1 of the Timeline:
var
Hello,
I recently purchased Flash CS3 as part of CS3.
To start, I wanted to use the following packages:
fl.video.FLVPlayback
fl.controls.Button
When I tried to import these, I was surprised to get an error that
these classes could not be found.
I looked in the directories to see why (Mac
So I'm working on a project that uses the Flash 8 combobox. Everything
is dandy until an item is selected from the combobox - at that point
_searchKey is added as a variable to all the movieclips on the stage
and is interfering with extremely basic functionality. I found
_searchKey in
The referrer is not the page displaying your SWF. The referrer is the page
you linked FROM to get to the page displayign your SWF. If I come from a
link in my blog to your site, my blog is the referrer.
You can't get the referrer from Flash, so you must use ExternalInterface and
use JavaScript to
If you'd rather have something more secure, then I'd suggest calling a
backend to pass it to you. This gets a lot more complicated as you'd now
have to tack on session management. The other option is to use
JavaScript/AJAX to pull data from a request or response. Are you putting
your SWF on an
So according to your thumb? Decoded image loos like (see attachment =
question-mark)
thumbnail
![CDATA[/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAESwAA/+4ADkFkb2JlAGT
AAf/bAIQAAwICAgICAwICAwUDAwMFBQQDAwQFBgUFBQUFBggGBwcHBwYICAkKCgoJCAwMDAw
you don't even need a tween package for this (altho they sure are useful
things). read about BitmapData, BlurFilter, and Repeating actions using
loops in the Flash Help.
gg
OOoops!!! I am sorry. It is not blue but blur.
I have three good quality image in my application. Initially I want all
Loops would be instantaneous. You would need to control the duration of the
effect via some sort of timer or interval. Tweens essentially package up
this timer functionality with a set of equations to handle property changes.
It's all just math, really, but I don't think using loops would be as
I think its supposed to look like a happy face or something (icons for a
rating system). Not sure what attachment you are reffering to. If you are
talking about the xml code I pasted in earlier, that is what I recieve. I
learned that it is a Base64 binary encoded image. I figured out how to
you don't even need a tween package for this (altho they sure are
useful things). read about BitmapData, BlurFilter, and Repeating
actions using loops in the Flash Help.
The advantage of using any tweening extension is exactly to avoid the
excessive hassle one has to go through when creating
Thanks David.
I'm aware of this package. The FLVPlayback class, located in fl.video
package is supposed to wrap the Video object that you're referring to
and it also gives you playback controls automatically. So it's a
handy add-on rather than building your own controls.
Even simpler
88 matches
Mail list logo