macromedia.flash.actionscript3
  Home FAQ Contact Sign in
macromedia.flash.actionscript3 only
 
Advanced search
December 2008
mo tu we th fr sa su w
1234567 49
891011121314 50
15161718192021 51
22232425262728 52
293031     1
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008      
total
macromedia.flash.actionscript3 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  javafx         


Author: sharpasDOH
Date: Dec 26, 2008 23:41

Has anyone looked at the new javafx, it looks a lot like action script but with
subtle differences, what I was wodering is could this code be transfered to as3
with a few changes or are they tottaly incompatible :-)

/*
* simplecalc2.fx
*
* Created on 25-Dec-2008, 02:04:17
*/

package javafxpert;

import javafx.ext.swing.*;
import javafx.stage.Stage;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.input.*;
import javafx.scene.layout.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.scene.text.*;
import javafx.scene.transform.*;
Show full article (5.05Kb)
no comments
  Toggling a layer's visibility         


Author: klarson2727
Date: Dec 26, 2008 23:06

I've got several layers in the timeline and I'd like to know the most effecient
method to toggle the visibility of any one of the layers when a user clicks a
button I have on the form.

The layers are all simply graphics that have been imported and the only
functino they have on the time line is that they each come in at different
times during the playback of the movie. I'd like to have the ability to toggle
the individual layer when a user clicks the button.

Feedback is greatly appreciated.
no comments
  Using variables in a button function         


Author: swolock
Date: Dec 26, 2008 19:59

I am new to AS3 and building a simple flash banner. There will be four movie
clips consisting of just one word each (in the sample below I'm just using
rectangle for now). When moused over each word will show a rectangle with a
message in it, like a large tool tip. I have a rudimentary version working
fine, see code below.

Question 1: Is there a way to just write on function which will work with all
four buttons changing the message, say using variables like AS2?

Question 2: Does the code below look relatively efficient? I'm sure there are
better ways to write it.

Here's a link to the rudimentary version,
http://www.rivergraphics.net/tests/button3.html, that should give you an idea
of what I'm trying to do.

Thanks.

this.cloud1.visible=false;
this.message1.visible=false;
this.message2.visible=false;
this.message3.visible=false;
this.message4.visible=false;
Show full article (2.53Kb)
1 Comment
  keep on top         


Author: newwaveboats
Date: Dec 26, 2008 18:16

is there a way were I can keep object1 visually ontop of object2 and object3 ,if object 2 and 3 are constantly by removed and added to the stage?
1 Comment
  Turning off the background music.         


Author: Paul Ko.
Date: Dec 26, 2008 16:02

I'm a newbie in Flash and in this forum so hi everyone,
I have a few frames presentation in flash and a music in background playing. I
have a button and this code attached to it:

stop_btn.addEventListener(MouseEvent.CLICK,stopMusic);

function stopMusic(e:Event){

SoundMixer.stopAll();
}
7 Comments
  Adding action script to instances...         


Author: Bloom
Date: Dec 26, 2008 00:32

I'm pretty frustrated and am done searching the site. Awful...just awful.
Anyway...

Using Flash CS3 for the first time since upgrading. I'm not able to add
action script to instances. Certainly this isn't a change. I've created a
button symbol. I've named the instance upon dragging it on the stage. Now it
tells me I can't apply actions to it.

I hope I'm just missing a step.
29 Comments
  Loading a compiled Flex swf with the loader class         


Author: c0redump
Date: Dec 25, 2008 23:50

I'm not sure whether to post this in a flex forum or here, but since the error
is generated from AS3 code, I'll try it here.

When I try to load a compiled flex swf with the loader class I get the
following error:
-- Error: Error #2136: The SWF file file:///D|/Documents/.../Test.swf contains
invalid data.

As a test I tried 2 very basic programs:
-- See the actionscript code in the attached code...
As you can see I just load the swf without doing anything with it.

Here's the code for the loaded Flex swf:
-- see the flex code in the attached code

I've found very few threads about this error, and even less solutions...Does
anyone know if it's even possible to load a Flex swf?

ACTIONSCRIPT CODE:
package
{
import flash.display.Loader;
import flash.display.MovieClip;
import flash.net.URLRequest;
Show full article (1.16Kb)
1 Comment
  How to avoid reloading large header Flash Movie for Each Web Page in Dreamweaver         


Author: 1TheMacBob1
Date: Dec 25, 2008 23:12

Thanks for reading this. I have a 2.3mb flash movie that appears in the header
for every page in my web site. It's a design that I've already compressed by
20%% and I am sort of stuck at this size. How can I tell flash to look to see
if it's already loaded and just begin to play/loop it at the end. I am a
relative newb and think that "gotoandplay' or 'gotoandstop" could work but I'm
lost on coding in Flash or Dreamweaver itself?

The final frame of my file is 185.

My Dreamweaver code is attached.

Thank you in advance for your help!!

Show full article (1.93Kb)
1 Comment
  Re: New fancy cursor can't click         


Author: abeall
Date: Dec 25, 2008 22:20

Change the button to a MovieClip. Then try this:

kursor.stop();
kursor.addEventListener('mouseDown',kursorMouseDown);
function kursorMouseDown(event){
kursor.gotoAndStop(2);
}
kursor.addEventListener('mouseUp',kursorMouseUp);
function kursorMouseUp(event){
kursor.gotoAndStop(1);
}

Put your down graphic on frame 2 of the MovieClip.
no comments
  Re: New fancy cursor can't click         


Author: kglad
Date: Dec 25, 2008 21:33

you'll need to make it a movieclip and code for it to respond to clicking an interactiveobject.
no comments
1 2 3 4 5 6 7 8 9