Super Newb Question
trace() is only for debugging?
When I publish my flash the messages don't show up in the browser. Is this type of thing browser specific or is trace() just for debugging in flash?
This is only my second day of flash haha. Thanks.
FlashKit > Flash Help > Flash Newbies
Posted on: 02-10-2006, 02:40 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Super Newb With A Super Newb Question.
Ok. So i just joined today. Ok so if i download a sound loop and i want to use it in my flash animation, do i have to get permission from the creator? Im talking about Freeware loops.
Super Newb Here
Bassically I want to learn how to make animated flash cartoons. Here is a list of questions:
-Is there a program i need to get in order to make flash cartoons?
-How do I make Characters/models and scenery/backgrounds?
-How can I create walking/running movement for characters?
-How do I add sounds and/or music to a flash cartoon?
-Is a preloader necessary, and if it is, how do I make/get one?
-how do I had links or replay buttons to a Flash toon?
More questions will come...
Super Newb
Seriously: SUPER Newb.
Trying to do something that seemed fairly simple at the time, but, alas, it has all gone to shreds.
Wanted to draw a simple circle -- relatively wide green fill with a green stroke. Then, fade out the fill, while fading up the stroke.
So, drew my circle, converted the fill to a symbol, and the stroke to a symbol. Thought I'd just flip-flop the alpha settings on each end, insert a motion tween and voila...but No.
So, what obvious can't-believe-you-even-asked-this-question piece of information have I chucked out the window in trying to do this?? Again, I'm super-new, and I don't quite think the way Flash does yet...I find I'm taking the LONG way to get things done, but thanks to all the great resources here at Flashkit, I'm starting to get the hang of it. Or...uh...it seemed like I was till I tried this.
Thanks so much for not laughing...or at least not posting your guffaws.
Cheers!
Super Newb Needs Direction
Ok.... I will start by telling you my goal. I want to make an animated cartoon, much like what you would see on Killfrog.com, or Joecartoon.com. If anyone could point me in the direction, of a tutorial for someone who has absolutely no experience with flash, except playing around with the included tutorials with Flash MX. Thanks for any replys.
SUPER ADVANCED SUPER HARD
Ok.. it's not relaly that hard... but I am lost.
Is it possible for flash to get a url and pass it some of it's vairables without the varibales being visible to the user?
Another catch is that the new page being loaded is not another swf file... it is a html file. So, is it possible to get flash to load the html file in a new window, pass it some varibales (most like to javascript) and then the javascript open the swf file passing in the varibales required? (the whole time without the varibales being visible to the user?)
I am a strong believer that there is nothing flash cannot do... but this seems a bit hard
Thanx for any help you can toss my way
-Ryan
AS3: Using Super.super.someMethod();
I am trying to extend the new AutoComplete component from Adobe. In two different places I need to bypass the AutoComplete methods and get right at the ComboBox methods.
I was told that super.super.someMethod() works just like it does in Java. But I keep getting Compiler errors:1084: Syntax error: expecting identifier before super.
Any suggestions other than just cutting and pasting the code and extending the AutoComplete superClass?
Super Tip
here is somehting no one ever tells ya ... if you are importing variables in through a text file .. be sure there isnt any spaces or a returns after the data ..
i w tried for 2 days to turn my variables into numbers only to find i had 2 spaces after the number that was preventing it from doing so ..
i hope this helps some other poor soul from certain fustration ..
Super() Or Not To Super()
hi all,
I'm a little confused on something.
I've noticed with components that the UIUObject does not call super() to call the MovieClip constructor.
Is this not needed since the MovieClip object's constrctor does nothing? or for another reason?
Even when extending the UIObject (like UIComponent), this also does not call super() to start the UIObject. I thought you needed to call super() when extending?
Could someone shed some light? thanks.
Super() In As2
I have created two custom classes lets say ClassHuman and ClassBoy.
ClassBoy extends ClassHuman (for example ClassBoy has a winkie function)
I want to create a new boy so...
var dude:ClassBoy=new ClassBoy(code);
[class boys constructor can get the value code easily but it is something I want ClassHuman to have]
but I want the ClassHuman to get the value of "code" passed in so when I create this new instance it automaticly runs the constructor of ClassHuman and therefore how do I pass this value "code" up the chain.
thanks
mojito
Super()
My question is concerning Super.
If someone is farmiliar with Super . Is it possible to get someone to look at the first and of code only and get me started on how I would approach the concept of using Super. Because the second two blocks of code are almost identical. and I plan on creating two more blocks of code to create almost the same senerio.
(a combobox calling a child.)
Thanks
Code:
package chromatic.load_files{
import fl.controls.ComboBox;
import flash.display.MovieClip;
import flash.events.Event;
import fl.data.DataProvider;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequest;
import fl.containers.UILoader;
public class CBMajorComponent extends MovieClip {
public var cbMajor:ComboBox=new ComboBox();
private var uiImageComponent:UIImageComponent;
private var listURL:URLRequest=new URLRequest();
private var dataLoader:URLLoader=new URLLoader();
private var theXML:XML=new XML();
private var arrayFile:Array=new Array("load_assets/keylist.xml");
private var majorArray:Array=new Array
("CMajor","GMajor","DMajor","AMajor","EMajor",
"BMajor","FSharpMajor","CSharpMajor","FMajor",
"BFlatMajor","EFlatMajor","AFlatMajor",
"DFlatMajor","GFlatMajor","CFlatMajor");
public var key:String;
public var fileName:String;
private var evtIndex:Number;
private var evtItem:String;
private var sel:Number=-1;
public function CBMajorComponent():void {
init();
}
private function init():void {
fileName=arrayFile[0];
setFileName(fileName);
setupComponent(fileName);
}
private function setupComponent(fileName):void {
this.fileName=fileName;
cbMajor=new ComboBox();
cbMajor.setSize(200, 22);
cbMajor.prompt = "Select a Major Key";
cbMajor.editable=false;
cbMajor.rowCount=15;
cbMajor.width=110;
cbMajor.move(0,0);
cbMajor.x=-235;
cbMajor.y=-150;
listURL=new URLRequest(fileName);
dataLoader.addEventListener(Event.COMPLETE,dataLoaded);
dataLoader.load(listURL);
theXML=new XML(listURL);
theXML.ignoreWhitespace=true;
cbMajor.addEventListener(Event.CHANGE, selectedName);
cbMajor.addEventListener(Event.CHANGE,changeEvent);
}
private function dataLoaded(evt:Event):void {
theXML=XML(dataLoader.data);
for (var i:int=0; i<majorArray.length; i++) {
key=majorArray[i];
cbMajor.addItem({label:(theXML.key[key].keyName)});
}
}
private function selectedName(evt:Event):void {
evtIndex=evt.target.selectedIndex;
key=majorArray[evtIndex];
setKey(key);
uiImageComponent=new UIImageComponent(fileName,key);
addChild(uiImageComponent.uiImage);
}
public function changeEvent(evt:Event):void {
trace(" You selected a key");
}
public function setFileName(fileName):void {
this.fileName=fileName;
}
public function getFileName():String {
return fileName;
}
public function setKey(key):void {
this.key=key;
}
public function getKey():String {
return key;
}
}
}
Hello,
I wanted to post my initial thoughts while I explored some link provided.
A.So if I wanted I could leave this class as is ?
B.make another class that extends it.Then devise it to send it the fileName and key and
1.overide the setupComponents and
a.
Code:
cbMajor.addEventListener(Event.COMPLETE,super.dataLoaded);
2.override the selectedname
A.
Code:
cbMajor.addEventListener(Event.COMPLETE,super.SELECTEDNAME);
In general is this even close?
Thanks for your time.
ceyesuma
Super.super()?
Hello,
It doesn't seem possible to call a parent of a parent class method like this:
override internal function myMethod():String { return super.super.myMethod(); }
I get "1084: Syntax error: expecting identifier before super."
Is there another way? Thanks in advance,
T.
Super()
My question is concerning Super.
If someone is farmiliar with Super . Is it possible to get someone to look at the first and of code only and get me started on how I would approach the concept of using Super. Because the second two blocks of code are almost identical. and I plan on creating two more blocks of code to create almost the same senerio.
(a combobox calling a child.)
Thanks
Hello,
I wanted to post my initial thoughts while I explored some link provided.
A.So if I wanted I could leave this class as is ?
B.make another class that extends it.Then devise it to send it the fileName and key and
1.overide the setupComponents and
a.[code]cbMajor.addEventListener(Event.COMPLETE,super.dataLoaded);[/code] 2.override the selectedname
A.[code]cbMajor.addEventListener(Event.COMPLETE,super.SELECTEDNAME);[/code]In general is this even close?
Thanks for your time.
ceyesuma
Attach Code
[code]
package chromatic.load_files{
import fl.controls.ComboBox;
import flash.display.MovieClip;
import flash.events.Event;
import fl.data.DataProvider;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequest;
import fl.containers.UILoader;
public class CBMajorComponent extends MovieClip {
public var cbMajor:ComboBox=new ComboBox();
private var uiImageComponent:UIImageComponent;
private var listURL:URLRequest=new URLRequest();
private var dataLoader:URLLoader=new URLLoader();
private var theXML:XML=new XML();
private var arrayFile:Array=new Array("load_assets/keylist.xml");
private var majorArray:Array=new Array
("CMajor","GMajor","DMajor","AMajor","EMajor",
"BMajor","FSharpMajor","CSharpMajor","FMajor",
"BFlatMajor","EFlatMajor","AFlatMajor",
"DFlatMajor","GFlatMajor","CFlatMajor");
public var key:String;
public var fileName:String;
private var evtIndex:Number;
private var evtItem:String;
private var sel:Number=-1;
public function CBMajorComponent():void {
init();
}
private function init():void {
fileName=arrayFile[0];
setFileName(fileName);
setupComponent(fileName);
}
private function setupComponent(fileName):void {
this.fileName=fileName;
cbMajor=new ComboBox();
cbMajor.setSize(200, 22);
cbMajor.prompt = "Select a Major Key";
cbMajor.editable=false;
cbMajor.rowCount=15;
cbMajor.width=110;
cbMajor.move(0,0);
cbMajor.x=-235;
cbMajor.y=-150;
listURL=new URLRequest(fileName);
dataLoader.addEventListener(Event.COMPLETE,dataLoaded);
dataLoader.load(listURL);
theXML=new XML(listURL);
theXML.ignoreWhitespace=true;
cbMajor.addEventListener(Event.CHANGE, selectedName);
cbMajor.addEventListener(Event.CHANGE,changeEvent);
}
private function dataLoaded(evt:Event):void {
theXML=XML(dataLoader.data);
for (var i:int=0; i<majorArray.length; i++) {
key=majorArray[i];
cbMajor.addItem({label:(theXML.key[key].keyName)});
}
}
private function selectedName(evt:Event):void {
evtIndex=evt.target.selectedIndex;
key=majorArray[evtIndex];
setKey(key);
uiImageComponent=new UIImageComponent(fileName,key);
addChild(uiImageComponent.uiImage);
}
public function changeEvent(evt:Event):void {
trace(" You selected a key");
}
public function setFileName(fileName):void {
this.fileName=fileName;
}
public function getFileName():String {
return fileName;
}
public function setKey(key):void {
this.key=key;
}
public function getKey():String {
return key;
}
}
}
[/code]
Super
My question is concerning Super.
If someone is farmiliar with Super . Is it possible to get someone to look at the first and of code only and get me started on how I would approach the concept of using Super. Because the second two blocks of code are almost identical. and I plan on creating two more blocks of code to create almost the same senerio.
(a combobox calling a child.)
Thanks
Code:
package chromatic.load_files{
import fl.controls.ComboBox;
import flash.display.MovieClip;
import flash.events.Event;
import fl.data.DataProvider;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequest;
import fl.containers.UILoader;
public class CBMajorComponent extends MovieClip {
public var cbMajor:ComboBox=new ComboBox();
private var uiImageComponent:UIImageComponent;
private var listURL:URLRequest=new URLRequest();
private var dataLoader:URLLoader=new URLLoader();
private var theXML:XML=new XML();
private var arrayFile:Array=new Array("load_assets/keylist.xml");
private var majorArray:Array=new Array
("CMajor","GMajor","DMajor","AMajor","EMajor",
"BMajor","FSharpMajor","CSharpMajor","FMajor",
"BFlatMajor","EFlatMajor","AFlatMajor",
"DFlatMajor","GFlatMajor","CFlatMajor");
public var key:String;
public var fileName:String;
private var evtIndex:Number;
private var evtItem:String;
private var sel:Number=-1;
public function CBMajorComponent():void {
init();
}
private function init():void {
fileName=arrayFile[0];
setFileName(fileName);
setupComponent(fileName);
}
private function setupComponent(fileName):void {
this.fileName=fileName;
cbMajor=new ComboBox();
cbMajor.setSize(200, 22);
cbMajor.prompt = "Select a Major Key";
cbMajor.editable=false;
cbMajor.rowCount=15;
cbMajor.width=110;
cbMajor.move(0,0);
cbMajor.x=-235;
cbMajor.y=-150;
listURL=new URLRequest(fileName);
dataLoader.addEventListener(Event.COMPLETE,dataLoaded);
dataLoader.load(listURL);
theXML=new XML(listURL);
theXML.ignoreWhitespace=true;
cbMajor.addEventListener(Event.CHANGE, selectedName);
cbMajor.addEventListener(Event.CHANGE,changeEvent);
}
private function dataLoaded(evt:Event):void {
theXML=XML(dataLoader.data);
for (var i:int=0; i<majorArray.length; i++) {
key=majorArray[i];
cbMajor.addItem({label:(theXML.key[key].keyName)});
}
}
private function selectedName(evt:Event):void {
evtIndex=evt.target.selectedIndex;
key=majorArray[evtIndex];
setKey(key);
uiImageComponent=new UIImageComponent(fileName,key);
addChild(uiImageComponent.uiImage);
}
public function changeEvent(evt:Event):void {
trace(" You selected a key");
}
public function setFileName(fileName):void {
this.fileName=fileName;
}
public function getFileName():String {
return fileName;
}
public function setKey(key):void {
this.key=key;
}
public function getKey():String {
return key;
}
}
}
Super() ?
Hi guys!!
i want some explication about super() or codes thankyou
excuse my english
::SUPER MENU::
Please help me to make the same of this menu, what i need is the menu top (menu sentences)
http://www.risd.edu
please help
Or if eny body know about a program wich can check the script which was used in the .swf !!!! is there a program like this?
thanx
Super Newbie
Hello EveryBody. I am New to this Forum, from the Loox of it So Far it LooX Great! I just Wanted to Say Hi to EveryBody.
I'm Learning Flash, I know a Little bit but not much. I joined here to learn from EveryBody and Hopefully Contribute.
So Before long, I'm Sure I'll have an Eazy Question for EveryBody lol...
I'll See EveryBody Around!
Cheers
Super Newbie Needs Help
Ok I know how to do the basic animations and make basic changes to text and graphics/symbols. but other than that i know nothing. I'm wondering what i should look into next. I'm trying to learn enough to make a website similiar to theused.net and eyecandystudios.net please anyone tell me what i should learn to do next. I'm thinking i need to know alot about the actions part of the program but i really have no idea. I have a couple of basic animations on my website at www.halo-elite.com thanks for the help.
Please Help With Super Mp3 Player
Ok, maybe its not super, but it is crazy. I have been working a while on this MP3 player, for my website and I have everything all good except for two problems I can't fix.
First of all here is the player
http://www.planetcontra.com/planetco...ox/jukebox.swf
Its a dynamic loading MP3 player, made by action scripting sound objects similar to this code
"myMusic = new Sound();
myMusic.loadSound(_root.title);
_root.myMusic.start(0, x);"
There is alot of variables because I wanted to make it easily updatable.
The FLA can be found here:
http://www.planetcontra.com/planetco...ox/jukebox.fla
But I warn you, the FLA is intricate and crazy, and I don't expect the kind helpers to venture it.
*****Here's the problems.*****
For some reason the MP3s are playing alot faster than they should be, like 25% faster. As you can see, the first song is 2:33 in actual length, but it plays in 1:51. I know it is not a problem with the songs, that play normal speed in any other player. Has anybody every heard of such a problem, or can help me in anyway????
The second problem is more trivial. I want to have the dancer stop when you press stop and pause. To do this, i have made a boolean variable and updated it accordingley, so it is true when she should be, and false when she shouldn't. The problem is when I attempt to to stop and start her, I have no way of constantly updating her status(dancing or not dancing). I tried a movie clip and on clip event enter frame, but when I have the code stop() in the movie clip, the symbol does not stop and the stop has no effect. If I try to just update every frame, it will stop, but it has no way of starting again as there is no way to update the status. Does anybody know any other way to constantly update the status, or maybe know a way to start and stop a particle instance or symbol from the main or not within the symbol?? Please help me.
For those of you that help me, i praise you with all my heart, and you can leave with the satisfaction that you are my hero.
Thanx
Super Component
is there anything like a supercomonent like there is a super class
Super() In Functions?
hi guys!
i have the following problem:
if i create a new class with a fuction:
Code:
function superClass (){}
superClass.prototype.someFunct = function() {
trace( "sumpin'" );
}
then i create a subclass for superClass
in which "someFunct" has to be extended, with for example a new trace() Action.
Is there a possibility to call the superFunction from a subFunction with the same name.( like the super() in the constructor);
Code:
function subClass (){}
subClass.prototype = new superClass();
subClass.prototype.someFunct = function(){
super(); //is this possible???
trace("something other");
}
thx
-i
Super Newbie Needs Help
Hi
Does anyone have a good tutorial how im gone do to get the frame to tween like this page
http://www.twinphotographie.com/
//Moahawk
Super Help Needed
I have a client, and he is in a band. He needs to be able to update his calendar on his own. Is there any way that I can set it up so that he can update content on his site without giving him access to my server. He doesn't know anything about FTP or design for that matter. I need an effective way of being able to have him be able to update a small amount of text on the site, or have some sort of small calendar program with a backend that he could use. ANY IDEAS??????? Thanks Guys, Steve
Super Class
I am trying to call a method from my super class within a function in my subclass. However the method in the super class never fires.
Below you can see the super.scoreQuestion(); However the super classes methods are not available to me unless I try inside of my subclass constructor. This seems strange.
Code:
/*
@class: FillInTheBlank
@author: Kevin Hill
@description: The backbone to a fill in the blank question
*/
import mx.controls.*;
import Quiz;
class FillInTheBlank extends Question
{
var userInput:TextInput;
static var userListener:Object = new Object();
public function FillInTheBlank(uText:TextInput)
{
super();
userInput = uText;
userListener.enter = handleEnter;
userInput.addEventListener("enter",userListener);
super.scoreQuestion(); //This works
super.myTrace("Hello out there"); // This works
}
public function handleEnter():Void
{
super.scoreQuestion(); // This fails
trace("handle enter");
}
}
Super Simple
so i have a little video that i want to play ( for some viewers ) before i go to my main site. i have a 'stop' command and then just a 'get URL' set to 'self' but when i play it ( locally and on the web ) the video loops ( passing the stop command ) and the get URL does nothing. any thoughts?
Super Counter ...
How can I alter the following code so that the same number will never repeat and by the time the count has reached 50, every number from 1 to 50 (inclusive) will have been called once and only once. Cut and paste all the following code into a new flash movie to see what I am talking about:
Code:
//set some initial vars
var amount:Number = 50;
var counter:Number = 1;
//create text field that will display the numbers as they're produced
_root.createTextField("output_txt", 10, 50, 50, 400, 200);
_root.output_txt.wordWrap = true;
_root.output_txt.border = true;
//create main function
function addNumber() {
var newNumber:Number = Math.ceil(Math.random() * amount);
output_txt.text += newNumber;
if (counter++ < amount) {
output_txt.text += ", ";
} else {
output_txt.text += ".";
clearInterval(timer)
}
}
timer = setInterval(addNumber, 1000) //1 second, or 1000 milliseconds
Thanks,
Stephen.
Super Script
dose any body know of a way of having super script text in dynmic text fieilds in flash?
like this:
this how you do it on html
1<SUP>st</SUP>
but this dose not work in html text fields
Super Difficult ? - I Think So
I reckon this is a bit of a difficult thing to do – so I am after any help going!
What I want to create: is an online night club looping animation (about five mins) to show off my skills as a DJ and animator - this is not the problem – these are:
1.I want the feel of an on going nightclub, so if you go click the link at say the start of the loop then close the movie and then click the link, say about 3 mins later then the animation has progressed by 3 minutes!
2.Now here is the SUPER difficult thing (I think) ideally I want to keep bandwidth to a minimum. Therefore does anyone know if I can do something like this: start an online radio station with some website that will allow me to play my mix continuously looping, then tell the flash movie to play the url where the mix is looping ?
Any ideas ?
Dom
[F8] Does Anyone Have A Super Good...
Action SCRIPT TUTORIAL?
Like the ones they have at freeflashtutorials.com
I need the action script badly. Cause now i suck at action script AND drawing.
Super Stuck Grr
Hey,
I want to be able to replicate this effect but for some reason, when I do it it doesn't work. I even copied all the contents of the file into a new document and it didn't work. But if you open the download and play the movie it works fine. If anyone could tell me why i cant do this, or if any one knows how to do this effect I would appreciate the help.
Thanks,
Paul
[F8] Super Zoom
Hi, I tried to build the zoom transition effects similar to this site
http://www.scifi.com/tinman/oz/
this transition would go into fullscreen site.
so, I'm using bitmapData instead of just increasing xscale and yscale.
here is my code
Code:
import flash.display.BitmapData
import flash.events.*;
import flash.geom.Matrix;
import mx.utils.Delegate;
import mx.transitions.OnEnterFrameBeacon;
class com.tranEnlarge{
private var widthSize:Number;
private var heightSize:Number;
private var sourceBitmap:BitmapData;
private var drawBitmap:BitmapData;
private var workBitmap:BitmapData;
private var srcMC:MovieClip;
private var holderMC:MovieClip;
private var matrix1:Matrix
private var sizeTemp:Number;
private var obj:Object;
private var pos:Number;
public function init(mc){
srcMC=mc;
sourceBitmap=BitmapData.loadBitmap("p1");
drawBitmap=new BitmapData(1024,768,false,0x00FFFFF)
holderMC=srcMC.createEmptyMovieClip("src",mc.getNextHighestDepth());
holderMC._x=0;
holderMC._y=0;
holderMC.attachBitmap(drawBitmap,1)
pos=0;
/*
size of image to make it fit 1024x768
*/
sizeTemp=768/1719
/*
start onEnterFrame
*/
OnEnterFrameBeacon.init();
var obj:Object = new Object();
obj.onEnterFrame = Delegate.create(this,updates);
MovieClip.addListener(obj);
}
public function updates(){
matrix1=new Matrix();
sizeTemp=sizeTemp+0.1
pos=pos+100
/*
enlarge the size of resolution
*/
matrix1.scale(sizeTemp,sizeTemp)
/*
change position
*/
matrix1.translate(pos*-1,pos*-1)
/*
draw on the MC
*/
drawBitmap.draw(sourceBitmap,matrix1)
}
}
this code would do zoom transition, however it would stalk and juggle in the middle of transition.
I just start to using BitmapData and Matrix, could someone tell me How do I
zoom the image smoothly?
Thank you
[MX] This Should Be Super Easy....
I made several scenes and I put a navigation movie clip inside of each one. The movie clip has seven buttons in it. How can I have the buttons in each movie clip control which section/scene that it goes to. I know this is easy.... Please, please help.... Thanks....
Super Easy One
I have CS3 Flash version, how do you turn off the very annoying sticky pallettes? I don't want my pallets fusing together just because I am moving them around a little, is there any way to turn that off, I looked under preferences and didn't see it.
Thanks
Super(); I Am A Bit Confused.
Hello.
I have seen some examples of using this command, Adobe's documentation on super says that it's used to initialize the base class, which is fine, but the examples I have seen on its use confuse me. For example, on the following simplified code...
PHP Code:
class MyClass extends MovieClip
{
MyClass()
{
super();
}
}
...the super() command will call the base's class constructor, which would be the constructor for the MovieClip class but the MovieClip class has not a constructor , so it has nothing to initialize. If a class has not a contructor, Flash will create one and will return an instance of that class, but the MyClass class, when calling the super() command, does not set any variable to hold that reference from the base class instance.
What's the reason of invoking the super() command for a base class that hasn't a constructor? What am I missing here?
Thank you.
Super Easy
It's about fullscreen,
How do i launch my page in fullscreen mode, without bars, just my page fully, from flash.
Thanxs,
Super/sub Scripting
Hello, I need some assistance with superscripting and subscripting in dynamic textfields, in Flash MX (not MX 2004). It's for a Chemistry Quiz program that will load questions externally. Because it's chemistry, I will need to be able to display super/sub scripted characters.
I know the font Microsoft Sans Serif can display superscripted and subscripted numbers with unicodes, but I would much prefer being able to super/sub script whatever letters and numbers I want. Plus the super/sub scripted numbers are very hard to read unless you put the font size at like 40, then the other normal text becomes way too big -- it just doesn't work too well.
I was thinking of finding 2 special fonts where all the letters, numbers, symbols are already in superscripted/subscripted positions....i tried hunting for those and didn't have much luck...Any help would be GREATLY appreciated. Thank you in advance!
-Kyle
Super Funky
alright dudes check this out---
in class i will create a flash document that works, be it script or tween based -- whatever is on it . it works in class, i save the file to the desktop then i leave. get home and move the file into 2 subfolders in order to get it off the desktop, then later when i need to scope it out again...try to open the file it says error opening URL: then the filepath of my .fla file. this has been happening alot, so i tried to move the file back to the desktop, and it works fine again.
why cant i move files after i made them, thats pretty counter intuitive.
-if it matters its a powerbook g4 with jaguar uptodate.
thanks!
About Using The Super Script
Hi,
I want to know how to use the superscript tag in the falsh for example kishore is the key word and TM (Trade Mark) i want TM to be as superscript how can i do it. Can any one help me out of this problem.
My id is repakulakishore@yahoo.co.in
Le Super Sigh
hmm.
this is the script for my button
on (release) {
tellTarget ("aktuel") {
gotoAndStop(2);
}
}
on (release) {
tellTarget ("../") {
gotoAndStop("no2");
}
}
on (release) {
tellTarget ("../flyt") {
gotoAndStop(1);
}
}
on (release) {
tellTarget ("besoeg 2") {
gotoAndStop(2);
}
}
now here is the dumbest question in the world. what do i use to link to a separate page and target?
I've tried getUrl to no avail. it's three am and i am about to cry.
oh well, it wouldn't have been the first time
AS2.0 Super Constructor
Hi. I am trying to build a class that inherits from the MovieClip class. Basically I am having issues in the constructor. Since MC's are unique in that they can only be created via createEmptyMovieClip or attachMovieClip, I am at a loss as to how you instantiate the inheriting class in the .fla? I figured if I just left the constructor out of the new class and do the following it would work but is doesn't:
ActionScript Code:
var hex:Hexagon = new Hexagon ();
How do I inherit from the MovieClip class and still instatiate the class using the above type actionScript?
BTW: I have seen alot of information about inheritance and AS1.0 (which I have little understanding of). I am trying to stick to OOP practices and AS2.0. I searched for things like super & constructor to no avail.
[AS2] Super Not Accessible
Hi,
this is utterly strange. At one point a class, that I wasn't editing or anything, stopped working saying that
Quote:
There is no property with the name 'super'.
more specificaly
Code:
**Error** C:Documents and SettingsMetjuDesktop\_GENERAL FLASHflashcommetjuphysicsVector.as: Line 41: There is no method with the name 'super'.
super ( x, y );
**Error** C:Documents and SettingsMetjuDesktop\_GENERAL FLASHflashcommetjuphysicsVector.as: Line 91: There is no property with the name 'super'.
return super.length;
Total ActionScript Errors: 2 Reported Errors: 2
The Vector class is nothing special... it's just a subclass of flash.geom.Point.
I tried clearing the ASO files a thousand times, restart flash, resave the Vector.as file and still nothing. Have you ever experienced such an error?
Super Encapsulation
Hi guys,
I'm working on a project at work that I can't much talk about, but I would like to know your thoughts and ideas about the way it's build.
So basically, it's some kind of a Player/Played relation, where I have a main "Player" that provide some services to the "Played". Both are separated SWF, and the Played SWF is loaded inside the Player SWF.
That's all pretty easy to do, but I'm stuck at the communication level. I don't want to include all the player classes inside the "played", because it's just plain wrong. It would be like embedding the Flash Player inside your SWF... Player update = your SWF is crap.
So I thought : "Well, you need some kind of interface that you could include in your played swf, and have the Player implement that."
At first, that seems to be the best thing in the world after Astro Boy's robot dog. But after working hard on it, I began to see some failure, like the impossibility to create instance of classes, and use factory methods instead : createThis(), createThat(), etc. I think it would be wrong to have a major "PlayerFactory" class to create all concrete classes of the player. And what about static members? can't do that either using Interfaces...
I don't know what to do to keep it clean and simple.
To sum it all up, I want a good communication bridge between the Player and the Played. I obviously also want to keep the player's code inside the player.
Please share your thoughts and opinions!
Thanks!
PS: Sorry If my thread sound like a HELP! DO THIS FOR ME thread. That's not my intention. I would like you to read it as a "hey, let's discuss this".
Opposite To Super.
hey everyone.
I have a problem, go figure.
I want to call on functions from a superclass to a class that imherits the superclass.
public class Class extends AbstractClass{public function Class() {super();
}
public function draw():void {
}
}
public class AbstractClass extends Sprite {public function AbstractClass() {test();
}
public function test():void {
// Here i want to call on draw() in Class
}
}
Like you can use super.test() to call the test function in the Abstract from Class. I just want to do the opposite.
Please help.
Why Super() Can Be Used In Constructor Only?
I just wondering why super() can be used in Constructor only but not in other function?
for example:
Code:
package
{ public class mySubClass extends myClass
{ public function mySubClass()
{super(); // ok, you can use super anywhere in this constructor
}
override public function myFunction()
{super(); // NO WAY MAN!
// extending code here
}
}
}
What I want is to extend a function without rewriting the old one. Anybody has an idea?
Super Help Needed
First of all i appreciate any help in advance and I'll try to make this as simple as possible...
I have 3 list boxes, and i'm using my variables sources from a seperate txt document
In the txt document i have a list of PEOPLE, then a list of ARTISTS, then a list of ALBUMS. When i click on a person in one list box, the next listbox will pop up a set of artists. When i click on something in the artists box a list of albums by that artist will pop up in the next list box.
I was able to work it down to the albums list box, which i can't seem to get to work.
How i cataloged the variables are like this:
Code:
&Chris0=AC/DC&
&ChrisAlb0=1&
&Chris0a0=Back In Black&
&Chris1=Aerosmith&
&ChrisAlb1=2&
&Chris1a0=Just Push Play&
&Chris1a1=Toys In The Attic&
etc
Chris# is the artist
ChrisAlb# is the artist's number of albums avail.
Chris#a# is the album
How i set up the code in flash is as follows:
ActionScript Code:
function displayDetails(c){ if(c.getSelectedItem().label == "Chris Engelsma"){ textbox.text = "Dass Niemand"; artists.removeAll(); max = _root.MaxChris for(i=0;i<_root.MaxChris;i++){ artists.addItem(_root["Chris"+i]); } }}list.setChangeHandler("displayDetails");
From this code, i can get the artists of the particular person to show up.
What i want to do, is have it so when you click on the artist listbox, the albums listbox will pop up with the albums of that artist
About Using The Super Script
Hi,
I want to know how to use the superscript tag in the falsh for example kishore is the key word and TM (Trade Mark) i want TM to be as superscript how can i do it. Can any one help me out of this problem.
My id is repakulakishore@yahoo.co.in
Flash 8 Super Bug
K so here's the issue....
Flash 7 can use print() and run off a movieclip that has a mask in it....and everything comes out fine.
Flash 8 CAN'T ?!?!?!
It doesn't make any sense that you could print masked objects in Flash 7 but when you print them in Flash 8 it doesn't mask the object.
If anyone has any thoughts / fixes I would love to hear them!
PLEASE HELP!!!
Super Mario
hello guys,
i want to create a game just like super mario. my problem tho is how to employ a jump function.
i dont know how to go about it.. i just need the algorithm. can anybody help?
thanks
jon
|