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


Advertisements:










ActionScript 3.0 :: Assign A Sound Class, But Found It Was Greyed Out


I am trying to assign a sound class, but found it was greyed out.


View 2 Replies (Posted: Apr 18, 2011 10:27 AM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 3.0 :: Cannot Assign 'Class' To 'Sprite'. Found 'newparam1;' At Line 22?
I have some code from a library which actually compiles and runs fine, even though it seems like it shouldn't.

Code:
public class MyClass extends Object
{
public var clip:Sprite;[code].....

Code: You cannot assign 'Class' to 'Sprite'. Found 'newparam1;' at line 22 but the compiler lets it through just fine and it runs perfectly.

Posted: February 19th, 2010

View 2 Replies!   View Related
ActionScript 3.0 :: Assign A Sound To A Soundchannel Without Playing The Sound?
The thing I don't understand is how to assign a sound to a soundchannel without playing the sound. All the examples I've seen do this.

Code:
_SoundChannel = _sound.play();
_SoundChannel.stop();

And how can I set a SoundChannel volume to zero before allocating a sound to it?

Posted: 05-04-2011, 10:49 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Assign Sound To Keys?
Iv created a virtual keyboard in flash using arrays and buttons i now want to assign a sound to all keys so that whenever they are pressed the sound will play, I'm guessing ill need to use a for loop or something but i really don't know how i would go around doing so.

Posted: 02-16-2012, 09:39 AM

View 2 Replies!   View Related
Flex :: Error #1014: Class [some Class In MAIN] Could Not Be Found?
I am refactoring a hugh action script solution in Flash builder (beta 2) using the flex 4 sdk.The project does NOT use the mx framework.What i want to have is:

A big 'MAIN' project several small 'MODULE' projects. each 'MODULE' class refrences the 'MAIN' project as an External reference (doesnt compile into swf) - this is done by setting link type = external in the 'MODULE' project properties -> library path.'MAIN' loads a 'MODULE' project on runtime using the 'loader' class.

the problem:I recieve an error from the MODULE project: VerifyError: Error #1014: Class [some class in MAIN] could not be found.

Posted: Nov 19 09 at 11:48

View 2 Replies!   View Related
Flash :: Type Not Found Error For Sound?
I am a newbie for ActionScript. I would like to add Sound dynamically to my flv. I have this code. I am pretty sure it is working because I found it in Textbook. :(.

package{
import flash.display.Sprite;
import flash.media.Sound;[code].....

When I try to run the code I got these error messages. 1046: Type was not found or was not a compile-time constant: Sound.

1180: Call to a possibly undefined method Sound.

Posted: Jul 15 10 at 13:01

View 2 Replies!   View Related
ActionScript 2.0 :: Sound.onLoadError - Take Action If An Mp3 Isn't Found?
I'm loading external mp3 using the loadSound method of the sound object. But it seems there's no onLoadError method (like the MovieClipLoader class has), which would be useful. Is there any way to take action if an mp3 isn't found?

Posted: June 10th, 2006

View 3 Replies!   View Related
IDE :: Error - Trap If A Sound File Has Been Found Or Not
I need to be able to trap if a sound file has been found or not. At the moment Im using loadSound to load in the file, and onLoad to set the movie running when the sound has been loaded. I have 2 outcomes in the onLoad, one that saves a varaible saying the sound is there and one that says it isnt, if the file cant be found. The probelm is that onLoad doesnt wait to detect that a sound file is defintly there before firing off the failed to load command.

It does this several times while loading in a large mp3 as well. I need to check if the file is there or not as I have a onSoundComplete function that tells the movie to go to the next point when the sound completes. I still need the movie though to push on to the next point even if the file cant be found, which onSoundComplete wont. The outcome variables are my current way of telling the movie to move on if the file cant be found. But with onLoad so quick to jump the gun it reaches the code to move on to the next point before it starts to load the sound. Heres the code im currently using:

[Code]...

Posted: July 17th, 2009

View 5 Replies!   View Related
Edit In Place Greyed Out?
I was going through the chapter 9 topic of animating 3d elements in Todd Perkins Flash CS4 professional essential training on lynda by opening the file and following along by clicking into the movie clip, but doing so caused me to go into symbol editing mode. When he does it on the video he goes straight into the movie where you can see the other elements on the stage. I right clicked on the movie clip and noticed that edit in place is greyed out. Why can't i get into the movieclip so i can edit the animation while seeing the other elements on the stage? I've researched everywhere and i'm confused how i can be going into symbol editing mode directly from the stage. It is late on a sunday night and i am now questioning my sanity.

Posted: Jan 25, 2009 11:58 PM

View 2 Replies!   View Related
Professional :: .as Files Greyed Out In CS5?
I'm obviously doing something fundamentally wrong here, but in CS4, to make an .as file, I just chose to make one and started inserting code.

In CS5, when I chose to do so, or try to open a previous .as file, all my coding is greyed out.

How do I access my code, or add new code?

Posted: Nov 28, 2010 10:01 PM

View 3 Replies!   View Related
ActionScript 3.0 :: Loaded External SWF - Variables Greyed Out
I'm trying to debug my movie, but the variables in the debugger are greyed out and I can't expand them. It also doesn't show the progress through the code. I think it's related to having loaded an external swf.

Posted: 07-02-2010, 12:34 AM

View 1 Replies!   View Related
Shape Tween Bitmap Option Greyed Out?
I imported to library a jpg (of a book). I simply want it to "grow" abit. I converted it to symbol, placed it in a keyframe. Made a new key frame at the end. But when I try to insert a shape tween, that choice is greyed out.

Posted: Nov 11, 2009 2:01 PM

View 3 Replies!   View Related
Professional :: Disabled (greyed Out) Buttons / Symbols
I've downloaded the Flash CS5 trial and am trying to use the software, but a lot of buttons and symbols are greyed out for me and I don't know why. Here's a typical use case for me:

- Open Flash CS 5
- Create a new Flash AS3 Project
- Try to use the buttons on the right-hand toolbar, but they are greyed out

Also, I can import images to the stage or library, but I cannot click anything or edit their properties.See attached image for a screenshot of the buttons in their disabled, greyed-out state.I can even open an old project made in CS4, but again, I cannot edit any symbols that I've already made.Is there something I need to do to enable the buttons?

Posted: May 6, 2010 3:10 PM

View 7 Replies!   View Related
Professional :: Smoothing Button Is Greyed Out Is It Syatem?
Is the a problem with flash cs5's pencil tool because the smoothing button is greyed out is it my syatem ?

Posted: May 4, 2011 2:36 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Sound Class Type - Cannot Convert C$ To Flash.media.Sound
I have some sounds in my library. They are all exported and have been given class names like C, D, E etc. I have another class that represents a button. This class stores a reference to one of the Sound in my library. I set the type for this variable to Sound. When I try to set it I get the error: cannot convert C$ to flash.media.Sound I try as Sound, for example key.note = note_array[p] as Sound; The value ends up as null.

Posted: 10-25-2009, 10:43 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Assign A Class To An Object?
Is it possible to automatically assign an object to a class during testing project? I know you can do so by assigning in a movie clip's property the identifier but I need to know if I'm say creating a game, and it gives the user the ability to choose a player, I need that player/movie clip that the user chose to be assigned to a specific actionscript class.

Posted: Jan 2, 2010 8:35 PM

View 4 Replies!   View Related
ActionScript 2.0 :: Assign Class With CreateEmptyMovieClip?
I understand how to tell Flash that a preexisting symbol in the library should belong to a certain custom class, but how do you do this when creating movie clips w/ createEmptyMovieClip?

Posted: February 15th, 2006

View 1 Replies!   View Related
ActionScript 3.0 :: How To Assign A Class Dynamically
i am currently having a scenario where I have a Container class and wish to extend it's capabilities to TabContainer and SliderContainer. Both the component are using the same swf file.

Can I define a linkage for the movieclip in library using Container and change it to TabContainer dynamically through actionscript? How?

Posted: July 15th, 2010

View 1 Replies!   View Related
ActionScript 3.0 :: Advanced Sound - Missing Properties Not Available In The Sound Class
I use this class as a base for all my streaming sound. It gives you two missing properties not available in the Sound class: a reliable soundchannel always available for referencing and a latency value indicating how long it took for your last call to play() to actually play the sound. I'll probably post it on my blog when I get the time but here it is:

[Code]...

Posted: 04-23-2010, 05:29 PM

View 8 Replies!   View Related
Actionscript 3 :: Assign Class To Object On Stage?
How you can assign a class to an object on stage.[code]...

This would make a new object, but the current object already exists, it just needs to be notified that it's of the type "ClassName" so it can inherit it's properties.I've also tried assigning the "ClassName" in the linkage as either the base path or the class name. But in either situations I get an error saying that the class needs to be unique when I use the same class on multiple objects.

Posted: Oct 16 10 at 18:03

View 3 Replies!   View Related
ActionScript 3.0 :: Assign An A:hover To A Specific Class?
assign an a:hover to a specific class in AS3, such as:

.className.a:hover { }

Flash seems to ignore this.

Posted: 10-10-2009, 04:48 PM

View 5 Replies!   View Related
ActionScript 3.0 :: Assign Value To A Dynamic Textfield From Class?
I have two text fields on main stage, manualy created. So I`m trying to assign them to one class and then to manipulate with their content:

In my fla I have:

ActionScript Code:
var myWinnings:Number = 1111;
var myCoins:Number = 1111;

[Code].....

I just need to assign some value to my TextField. How do I do that?

The thing is, I didn`t create textfield on the run, and I don`t know how to instance it so I can access to it from my class.

Posted: 09-24-2010, 04:32 PM

View 9 Replies!   View Related
Actionscript 3.0 :: Assign A Class To Already Created Mc Dynamically?
Write well let me see if i can explain this:I have created a class that will create a movie class colour block:

Code: Select allimport com.si.mc. CreateBlockClip;
import com.si.mc.newClass;
var myBar:CreateBlockClip = new CreateBlockClip("bar",300,5);

[code]....

Posted: Sat Jan 16, 2010 5:22 pm

View 3 Replies!   View Related
ActionScript 3.0 :: Class To Assign Object Properties
I have created an object called myObj.

How do I create a class that I can call that will assign properties to myObj such that PHP Code:

myObj={foo:15,bar:"hello"}

...?

BTW, I do not want to just say

PHP Code:

varmyObj:Object={foo:15,bar:"hello"}

...because in fact I am going to be creating a bunch of objects all having the same properties, and there will be many more such objects.

Posted: July 27th, 2010

View 2 Replies!   View Related
Actionscript 3 :: Found A Bug In XML Class?
Let's state a few facts upfront: Livedocs tells us that dynamic classes enable us to add member variables and member functions. We are told that all classes ultimately derive from Object, which is dynamic, and that dynamic classes must be explicitly marked as such -- inheritance doesn't apply to dynamism.

Object is a dynamic class.Date is a final dynamic class.XML is a final dynamic class.You can create your own final dynamic class and it ought to behave (in terms of dynamic capability) exactly as do XML and Date, above. In fact, final shouldn't affect the issue at hand at all but I include it for exactness in my comparison against the "troubled" XML class.

[Code]...

I used Date as it is another core class that is final dynamic. Also note that member variables work just fine in all of the above classes. Only member functions have a problem, and only in class XML.

My conclusion is that not every class in AS3 is derived from Object, some are likely mocked up to look that way but are in fact derived in some other way in native C++, which I believe is what Adobe uses to write the AS languages.

QUESTION: Do you see any flaws in my logic? Or is this class actually bugged? P.S. For those interested as to why I wanted to add functions to XML, I wanted a way to encapsulate complex access to my XML data model.

Posted: Nov 11 10 at 0:33

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