Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








NOOB2AS3 Problem With Import Fl.controls


Hi again, so I can't seem to do:

import fl.controls.Button;

Even though I am working in flash, in an *.as file which is located in the same folder as the project... what gives?

I added my path to the AS3 settings in the preferences and entered the complete path, just to be sure:

Cortex:Applicationsesigner:Adobe Flash CS3:Configuration:Component Source:ActionScript 3.0:User Interface:fl

But it still says it doesn't know what I am trying to import...

Any ideas?




KirupaForum > Flash > ActionScript 3.0
Posted on: 06-27-2008, 07:26 PM


View Complete Forum Thread with Replies

Sponsored Links:

Can't Import Import Fl.controls.ComboBox
Hi all!

I am starting learning AS 3.0 (used to use AS 2, that was sweet times ) and actually can't understand simple thing - why I can't include that package from action script?

I actually start new Action Script 3 file, and put single line in first frame


Code:
import fl.controls.ComboBox
and got errors

Code:
1172: Definition fl.controls:ComboBox could not be found.
1172: Definition fl.controls:ComboBox could not be found.
Actually thats part from the code listed at the manual and I don't have any idea, why it doesn't work.

Also when I open components window and drag combobox to scene error is not showed any more.

Any ideas how can I solve this problem without adding combobox to the library?

View Replies !    View Related
Import Mx.controls
For some reason, I get a compile time error everytime I try to import mx.controls.* What could be the cause of this?


Code:
package src {

import mx.controls.MenuBar;

public class MainMenu {

public function MainMenu() {

}
}

}
gives me this error:
1172: Definition mx.controls:MenuBar could not be found.

View Replies !    View Related
Movie Controls... Import An AVI
Hi guys,
I am new to the world of flash. And i have a problem with something i need to do.. maybe you guys can help me out.

I imported a huge AVI movie and conpress it enough to be manageble.

So Flash creates 1 frame per each frame of the AVI. So i have this pretty long Flash movie. What i want to do is give it playback options. Like Play, Pause, Stop, Fast Foward and Rewind.

I know how to do the Play, Pause and Stop... and i am having problems with fast foward. What i want it to do is that the person press the button down and hold it.. and as long as the button is holded down the movie will Fastfoward 10+ plus.. until the person let's go of the button.. then it plays normal.

is it possible? what's the code i need to put on the fastforward button?

View Replies !    View Related
Import Mx.controls Question
i have a main movie which loads external swfs.. and many of the external swf files contain ComboBoxes and/or Listboxes. In order to make the Combo/List components function properly, i understand i need to use code:
import mx.controls.ComboBox;
import mx.controls.List;
my question is instead of having to do this individually in each external swf...wouldn't putting the import mx.controls for the comboBox and List in the main file make them accessible for all files loaded into the main movie?... Is there some way to do this?....i guess it would be making the controls global?

i have just found that importing the controls into individual files produces a longer preload time for the files....

any ideas?

TIA

View Replies !    View Related
Unable To Import Fl.controls.*
Hi,

I recently upgrated to Flash CS3 and have been porting my AS2.0 app to AS3.0 (phew!). I've been moving along - slowly but steadily till now. For some reason, I get error #1065 - variable button not defined even though I import the pertinent class.
so,

import fl.controls.Button;
..
..

-->some_button = new Button ();
addChild(...);

and I get the error on the indicated line.

Any ideas?

Thanks,
S

View Replies !    View Related
Error - Import Fl.controls.TextInput;
so i was working on this project making it in classes and i tried to do this:

import fl.controls.TextInput;


and i kept getting the error

1172: Definition fl.controls:TextInput could not be found.


once i placed a TextInput component on the stage through flash cs3 and then deleted it the project started to compile without errors.

View Replies !    View Related
Import Fl.controls.Button; Error
Can you explain this to me
I opend a new flash file and put in it one line

import fl.controls.Button;

And the compiler says:
Definition import fl.controls.Button could not be found

Wh dose that happen???

View Replies !    View Related
Import Mx.controls.Alert; Not Working In Cs3
1172: Definition mx.controls:Alert could not be found.

Hey there is there any particular reason why I can not access the mx classes from flash cs3.

or more so where can I get them to install into my class path directory???


many thanks

brndn

View Replies !    View Related
Easy Question About Import Fl.controls.Button
Hi, I'm new to flash/AS3 and I'm having trouble figuring out how to use the library. I understand that when I include the line

import fl.controls.Button

I need to have a button in the library (otherwise I get a compiler error) but how do I put a button there? I tried copying a button from Common Libraries into may library, but that didn't help. I also tried drawing a rectangle, dragging it to the library, and clicking on "Button" in the properties box, but that doesn't work either.

Also, do I have to set the linkage properties to export the button?

Thank you!

View Replies !    View Related
NOOB2AS3 Embeding Prob With Stylesheet
Hello yawl, well it seems that the confusion of embeding fonts in AS3 is still prevailent... I've managed to get embed fonts to work fine if I use TextFormat but if I use a StyleSheet it doesn't work... can anyone help me to get it to work with a StyleSheet? Once I can get this work in-line, I'll move the StyleSheet to an external file and load it in dynamically.

Here is the code I have that works:


Code:
var format:TextFormat = new TextFormat();
format.font = "Eurostile";
format.color = 0x000000;
format.size = 14;
format.letterSpacing = 4;

var label:TextField = new TextField();
label.embedFonts = true;
label.defaultTextFormat = format;
label.text = "Hello";
addChild(label);
This code however does not [and I copy-pasted the StyleSheet example from the help files]:


Code:
var style:StyleSheet = new StyleSheet();
var body:Object = new Object();
body.font = "Eurostile";
body.color = "#FF0000";
body.size = 14;
body.letterSpacing = 4;
style.setStyle("body", body);

var label:TextField = new TextField();
label.styleSheet = style;
label.embedFonts = true;
label.htmlText = "<body>Hello</body>";
//label.text = "Hello";
addChild(label);
With respectful gratitude,


Sebastian.

View Replies !    View Related
NOOB2AS3, How To Get A Rollover To Work On Clips Underneath Others
Hi very simple question but I cant figure it out...

if I am using:

Code:
//CONSTRUCTOR
rollArea.addEventListener(MouseEvent.MOUSE_OVER, bounceSelfStart);
//FUNCTIONS
private function bounceSelfStart (EVENT:MouseEvent) {
trace ("over");
bounceGo = true;
//bounceAction ();
}
It only works on the parts of the movie that are not covered by other movie clips, how can I make sure the roll over works no mater what other clips are on top of it?

Thanks!!!

Seb.

View Replies !    View Related
2 Player Game. Moving Cars Controls Help With Controls
hi i have the controls for car number 1 that would be the arrow keys if

(Key.isDown(Key.RIGHT)) {
this._rotation += manuverSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._rotation -= manuverSpeed;
}
if (Key.isDown(Key.UP)) {
if (speed<speedMax) {
speed += accel;
}
} else if (Key.isDown(Key.DOWN)) {
if (speed>-speedMax) {
speed -= accel;
but how can i make controls for car 2 ... i wann use wasd but i cant figure out how the key.a doesnt work.

View Replies !    View Related
Drag Controls Override All Other Controls On Movie?
I have a movie that loads into the main timeline and can be dragged around using:


on (press) {
startDrag("");
}
on (release) {
stopDrag();

}

That works great except that to close that movie again I've added a little button to say on press, unload movie.

Problem is none of the buttons or links on that page will work while it is being dragged around. How can I make the links and buttons work but still make the movie draggable?

View Replies !    View Related
Bulk Import Statments Vs. Specific Import Statements...any Performance Difference?
Lets say I have 20 classes located at nl/amsterdam/simulation/model/. Now I'm writing another class that is going to use some of those 20 classes. Is there any performance difference in the compiled swf if I import them all using a wildcard:

Code:
package nl.amsterdam.simulation.view
{
import nl.amsterdam.simulation.*
...
versus importing each specific one that I need?:


Code:
package nl.amsterdam.simulation.view
{
import nl.amsterdam.simulation.model.Tulip;
import nl.amsterdam.simulation.model.Canal;
import nl.amsterdam.simulation.model.Prostitute;
import nl.amsterdam.simulation.model.StonedTourist;
import nl.amsterdam.simulation.model.BuisnessMan;
import nl.amsterdam.simulation.model.Windmill;
import nl.amsterdam.simulation.model.CoffeeShop;
import nl.amsterdam.simulation.model.SkinnyBuilding;
...
Or is there only a difference in the time it takes to compile, not the time it takes to execute?

View Replies !    View Related
Player Controls For Swf Similar To The Flv Player Controls Component?
Is there a component that is similar to the flv component that will control playback of a swf? or can this component also be used for a swf? I tried to create a player that uses loadmovie to load a swf, which works, but when i tried to create play, pause, forward (next scene), rewind (previous scene) etc it doesnt work and the audio and playback of the animation doesnt follow the controls when i click on the buttons. t hanks

View Replies !    View Related
When Is Necessary To Use Import Statements To Import Classes?
Hi,

I'm sure that it must be necessary to use import statements in some situations, I'm finding that my code often works fine without them. For example, some instructions will say it is necessary to use import.flash.events.MouseEvent; before MouseEvent.CLICK will work, or that I must import the loader class before loading an SWF, but I'm finding that I can skip timporting and it works fine. Could anyone please explain why this it, and give me some idea of how to knew when to import and when I don't have to?

Thank you in advance!

View Replies !    View Related
[Flash 8] Import, Import, Import
Last edited by Nutrox : 2005-09-18 at 06:24.
























&nbsp;
Ahh!! I'm already getting a bit tired of having to continuously import classes into Flash for things like BitmapData, Rectangle, and Point etc. Is there a way I can set things up so that these classes don't need to be manually imported all of the time?

I've tried a few things including : (a) Creating extension classes, but Flash moans about class paths when I try to import something like flash.display.BitmapData into my own class. (b) Setting a class path so that it points at the class directory .. $(LocalData)/Classes/FP8/flash/display/ .. but that doesn't work either (I know why, but it was worth a shot). (c) Importing the entire class package .. import FP8.* .. but that causes errors with a tonne of other classes. import FP8.geom.* etc works though, but that doesn't really help.

Am I just missing something obvious here, or is there no way around this?


Si ++

View Replies !    View Related
Key Controls
i want to control a movie clip on the stage by keys on the keyboard...

arrow up = forward
arrow down = back
arrow left = spins left (anti clockwise)
arrow right = spins right (clockwise)

also if the object is facing in a diagnal direction then when pressing arrow up, it should head in that diagonal direction..

please help

basically my flash movie looks like a birds eye view of a character running about the stage but has objects in his way.
i also want to know how to make objects that the character cant get passed and that the character cant runn of the stage.

View Replies !    View Related
Key Controls
i want to control a movie clip on the stage by keys on the keyboard...

arrow up = forward
arrow down = back
arrow left = spins left (anti clockwise)
arrow right = spins right (clockwise)

also if the object is facing in a diagnal direction then when pressing arrow up, it should head in that diagonal direction..

heres and example of what i want :

http://www.flamjam.com/lab/ice_skater_popup.htm

please help

i also want to know how to make objects that the character cant get passed and also that the character cant run off the stage.

View Replies !    View Related
.exe Controls
does anyone know how to disable the Play, Rewind, Step Forward, and Step Back controls on an .exe file. Or even to disable the keyboard shortcuts for these controls?

thanks

View Replies !    View Related
Mov Controls?
Hello everybody.

I'm trying to find out how to put the control bar at the bottom of an MOV file in Flash MX. I work on Windows XP.

I've placed the MOV in it's own FLA file, and published it as an SWF.

A click of the button calls the SWF and it plays perfectly...but it has no controller (play, rewind, stop) at the bottom.

How can I make this appear so the user has control?

(I tried to do a search so I didnt have to bother anyone, but I couldn't find what I was looking for)

Thank you for your time.

pug

View Replies !    View Related
MC Controls MC - How
Hi All,

I have a question to which I am hopin g someone out there will be able to answer for me.

Here it is, I have a movie that contains two frames (first one being the preloader). On the second I have two movie clips - one called "playbox" and the other called "control".

Within the movie clip "control" timeline first frame I want to put another movie clip named "trigger" (like the horse!). What I want to happen is when the movie clip hits the first frame, it tells the movie clip "playbox" to go to and stop on a certain frame for example 6.

Is this possible and if so how can I do it?

It won't be controlled by a button just when that specific frame is entered.

Hope someone can help me out here.

D

View Replies !    View Related
How Do I Add The Controls
How do I add the controls such as play, pause,...? I would guess it's done in HTML, therefore I have added my coding below.


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflas

h.cab#version=7,0,0,0" width="208" height="190" id="fcd"

align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="fcd.swf" />
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="fcd.swf" loop="false"

quality="high" bgcolor="#ffffff" width="208" height="190"

name="Untitled-1" align="middle" allowScriptAccess="sameDomain"

type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

View Replies !    View Related
Swf Controls
Sorry in advance if this is very obvious.

Is it possible to add basic controls (play/stop/vol) to a .swf file similar to the skins that are used for flv? Or do you have to build them from scratch?

Cheers
Noel

View Replies !    View Related
Mc Controls
is there a way you can tell a mc to play once you enter certain 'frame name' ?

View Replies !    View Related
FLV Controls
PPl,

I've imported a .flv into my movie and masked the file which look and work really well. Now my client has asked about creating a sound on/off btn for the movies. Thing is when I use the StopAllSounds action, it freezes the movie at the sametime. I then thought about setting the root volume to 0 but this seem to do nothing. Is there an easy way to achieve this?

It seems that actionscript can talk to the .flv so I would have thought this would be possible!

Thanks in aticipation

View Replies !    View Related
Map Controls
Hello, I've been working on some map controls, zoom and pan, and I'm having trouble getting the map to stop on the edge when the user has zoomed in. If they never zoom then it's fine but it's almost like when they zoom it stretches the pixels of the movieclip and what was once 1 pixel now becomes a 20x20 pixel block, is this making sense?

I'm going to attach the file here so take a look and let me know what you all think. You'll notice that when you pan left it stops fine on the left edge but if you zoom in and then pan left, it jumps at the left edge. Thanks and please help!

View Replies !    View Related
Controls
hi i've been trying to look for simple control functions for play pause rewind stop and forward.
i put the play and stop ones...(btw i'm still new to actionscript)

Stop
on (press) {
gotoAndStop(1);
}

Play
on (press) {
gotoAndPlay("movie");
}


like i know its really crappy but i need simple ones like this, coz the other ones that i found on this forum or everywhere else were all, the ones like:

Playing=false
stopped=false
paused=true

These ones never work!... my buttons arn't working.

I'm just making a 30 second movie, as an assessment, and need to have these controls on there. please help. Thank you.

Paul

View Replies !    View Related
Flv Controls
Well here is what i came up with but ... when u click to fast it goes pass the Cue point ... If anyone knows how to reword this .... I would be grateful....

Code:
var cArray:Array = ["one","2","3","4","5","6","7","8","9","10","11","12","13","two","15","16","17","18","19","20","21","22","23","24","25","26","three","28","29","30","31","32","33","34","35","36","37","38","39","four","41","42","43","44","45","46","47","48","49","50","51","52","53","five","55","56","57","58"];
var cIndex:int = 0;
forward_mc.dir = 1;
backward_mc.dir = -1;
function chapterMove (e:MouseEvent):void {
cIndex += e.currentTarget.dir

chSeek(cArray[cIndex]);


}
function chSeek(id:String):void{
var pt:Object = vid.findCuePoint(id, CuePointType.ACTIONSCRIPT);;
vid.seek(pt.time);
vid.stop();
images_mc.gotoAndStop(pt.name);
}

View Replies !    View Related
Map Controls...
Hi all! I'm new here at Actionscript.org and I have a problem that has been giving me fits for a few days. I've searched the archives and I didn't find anything specific to my question.

Situation:
I am creating an interactive CD ROM which has a world map in it. This map needs to have the following, clickable zoom in and out buttons, clickable directional buttons and the ability to drag. I currently have all of the above requirements coded and working but I'm running into a few issues.

Here is a screenshot of the map page:
http://www.malocs.com/forums/map.gif


1. The onClipEvent code that is placed on the movieclip is capturing random mouseDown and mouseUp events and triggering the dragging function. This results in the map following the mouse when the user did not intend to click and drag the map. This happens on RANDOM mouse clicks and it is not easily recreated. It could happen after the user clicks the zoom out button ten times or it could happen when the user clicks the left directional button only once.

Here is the code that is placed on the movieclip:

ActionScript Code:
onClipEvent (mouseDown) {
  if (this.hitTest(_root._xmouse, _root._ymouse)) {
    this.startDrag();
  }
}

onClipEvent (mouseUp) {
  if (this.hitTest(_root._xmouse, _root._ymouse)) {
    this.stopDrag();
  }
}
2. I'm having problems with the movieclip RANDOMLY inverting when the user clicks the zoom out and zoom in buttons.

Here is the code for the zoom out button:

ActionScript Code:
on (press) {
    mapSlide._xscale -= 35;
    mapSlide._yscale -= 35;
}

Here is the code for the zoom in button:

ActionScript Code:
on (press) {
    mapSlide._xscale += 35;
    mapSlide._yscale += 35;
}

Here is the code for the left direction button:

ActionScript Code:
on (press) {
    mapSlide._x += 75;
}

Here is the code for the right direction button:

ActionScript Code:
on (press) {
    mapSlide._x -= 75;
}

Here is the code for the up direction button:

ActionScript Code:
on (press) {
    mapSlide._y += 75;
}

Here is the code for the down direction button:

ActionScript Code:
on (press) {
    mapSlide._y -= 75;
}

Here is the code for the recenter button:

ActionScript Code:
on (press) {
    mapSlide._x = -97;
    mapSlide._y = 5;
    mapSlide._xscale = 75;
    mapSlide._yscale = 75;
}

Please help as I am totally dumfounded as to why the onClipEvent function randomly executes when the user clicks on the map navigation buttons. I'm also dumfounded as to why the map will randomly invert and scale when the user clicks any of the zoom or nav buttons.

Like I stated earlier these problems are random which leads me to believe that I have a problem with my logic. Please advise.

View Replies !    View Related
Controls SWF HELP HELP HELP
hI
I want load many swf & control thise away from buttons.....
1- play swf
2- stop swf
3- pause
4- forward
5- rewind
6- load in specific space
7- next swf
8- previous swf
9- copy current swf & paste in specific place in PC
10- scroll bar control in swf.

HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP

View Replies !    View Related
FLV Controls
After getting the buffertime right, another problem occured:
my .swf for the controls doesn't appear on the video on the site.
The .swf that loads the .flv and the .swf for the controls are in the same folder, local and on the server that hosts my site. When I check the movie local, the controls are in place. But when I upload it, the controls aren't loaded.

Anyone have a clue??

Thanks in advance :-)

View Replies !    View Related
Key Controls
Hey all,

Appreciate any help anyone can give me.

I am trying to add keyboard controls to my movie. I currently have a pause and play button, along with next, previous, etc. All works fine. The problem I am having is two fold.

I have added this code to my pause button.

on (keyPress "<Space>") {stop();
}

But for some reason it isn't working. I have seen that I should probably use Key Listeners... but I am not exactly sure what I need to do with those.

The second issue, can the space bar have dual functionality? Say on release stop, and on release play? so that the user only has to hit the space bar to start and stop the movie?

Thanks for any/all help.

View Replies !    View Related
Controls
is it possible that by using one button to control two flash?

View Replies !    View Related
X And Y Controls With XML
I am using XML to build a picture gallery with thumbnails, and I am trying to arrange them. and I understand how to control the X and Y positioning using the "declare instances" part of scripting.

Can anyone help?

View Replies !    View Related
FLV Controls
I have several FLV's loading into a blank movie clip on a timeline. each FLV in encoded to have controls for volume and scrubbing through the video. I have a '_visable' code at the end of each individual FLV to 'hide' it which works fine until the scrollbar is moved on the FLV then it throws it completely out and it hides all wrong and even doesnt come back when the button is pressed agin to launch it. any ideas how i can get around this issue? I dont want the movies to unload, just hide when they are finished or indeed another one is loaded prior to the previous one ending.

thanks for any advise.

View Replies !    View Related
SWF Controls Another SWF
I need one flash file to control the timeline of another flash file in the same html page. Is this possible? Of so how do I go about it?

Please help. Thnx

View Replies !    View Related
Import Via "import To Stage"
I opened a new AS2 document in Flash CS3

I designed a clip which I saved as an fla and exported to an swf file.

Now I imported the swf onto the stage but all that has happened is that the seperate swf componens are on the stage and not the complete clip?

View Replies !    View Related
Anybody Know How To Use Volume Controls?
I wanted to know how to change the volume on my flash movie from within itself. It has the option but I can't figure out how to use it. It's under "Objects", then "Sound" then "SetVolume". Anybody know how to use this?

View Replies !    View Related
Disabling Controls ?
How can I disable the options such as zoom; play; forward, etc... when a user right clicks, for example, on a movie?

Ideally, I would like to disable all options except "about macromedia flash player x", as I've seen on some websites.

The flash menu on http://www.macromedia.com website would be an example.

Thanks for any help.
If this is a fully covered subject somewhere else, a link would be appreciated too.

View Replies !    View Related
Sound Controls
Im trying to make a good sound control and I have a a MC with different frames containing repeating sounds. TO change the tracks the user just presses a button that changes the frames which changes the sound. I've made a stop button but how do I make a play button that will play the track the user had selected?

View Replies !    View Related
2 Sound Controls?
I've linked 2 sounds to my movie and created a slider. Is it possible to create 2 sliders to control the volume of each sound seperately?

Everything I try drops the volume on both instead of just one.

View Replies !    View Related
Sound Controls
OK!
here is the thing,
I have animation with several sounds,.. when I start with one sound that comes latter I need to stop the one that started earlyer, but when I use

s = new Sound();
s.attachSound(_root.sound1);
s.stop()

it stops also the sound that it comes latter, (the sound that is playing, but it is not attached like one first).

also the same thing is, when I use the, setVolume, or setPan, the two of my sound are starting to behive the same,
(if i make the value of the setVolume lesser the two of my sounds will become quiet, also if I setVolume to louder the bouth will become loud, but attached only one..)



please I could realy use help on this one,
thanks!

View Replies !    View Related
Sound Controls
I want to know how can I create a sound control, just on/off will do,

This is a large project and I don't think I can use the setvolume() control because there is a number of sound files running throughout. I just want a simple swith the sound off and switch it back on again option...any ideas?

View Replies !    View Related
Still Goofy Controls
Unload helps some but actionscript MC on level1 ( called from a button within scene 2) sends the main movie to another (third) page even though nothing on the second page refers directly to that third page.

Once I go backand start all over from the main page and over to the second page, then the stop button works and actually stops and unloads the A.S. MC.

I am confused. Grrrrr.
I am probably doing this the "hard way".
Should I post the coding here ?

View Replies !    View Related
Please Help With Sound Controls
i followed the instructions that come with flash help to make sound controls (volume and balance) it works if i open it as a swf but as soon as i put it into html it does not the buttons jump to top right as you click on them

View Replies !    View Related
Gas Tube Controls......help Me Please
hi,
i want to do the following.

Interactive Flash animation of 4 gas flows passing through supply tubing and a flame ionization detector.Interactivity allows user to turn on/off any combination of the gas flows. Have cutaway pictures of the flow system and detector.how can i do that?

any helps will be appriciated.

thanking u.

sudheer.

View Replies !    View Related
Movie Controls
I1st question
need to know some action script code to put into my pause and play buttons that will pause the movie in the current frame, then resume when the play button is pressed. Can anybody help?

2nd question:
to make the situation more complex I need the buttons to control the movies that are a seperate instance! any idea of what variables I can set so I dont have to crate the buttons for all 21 movies??

View Replies !    View Related
Volume Controls
OK so Flash MX gives me a nice volume control but
I have read all the helps, manuals and tutorials but
cannot figure it out. All I want to do is have
a song playing and then be able to let the user control
the volume. Is that to much to ask.
If my song is named "song.mp3" then what do I do?

View Replies !    View Related
Window Controls: | _ | | X |
What is the code to make the window control buttons, like the ones at the top-right of the screen? (In Windows)

_ X

View Replies !    View Related
Volume Controls
I have a sound associatedd with my swf file, which works okay.
Using the "ActionScript Reference" under "Help" in Flash 5,
I found "creating volume controls" under "Sound".
I believe i followed the instructions but I get the
following warnings when I test the movie :


Symbol=volume, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances
on (press) {

Symbol=volume, Layer=Layer 1, Frame=1: Line 5: Mouse events are permitted only for button instances
on (release, releaseOutside) {


The help file says to convert the button to a movie clip.
Have i mis-interpreted the instuctions`?
Id appreciate any help in pointing out where I have gone wrong

thanks,C

View Replies !    View Related
Copyright 2005-08 www.BigResource.com, All rights reserved