I Hate Components Help
i have had it up to here with components
i have been trying to customise a guestbook and i cant get rid or work out how to get compoments to customise. i wanna make this file easily customiseable but i cant get rid or skin some of the commonents. can someone please sort me out or put me on the right track.
A flash designer on the edge...dont push me...
FlashKit > Flash Help > Flash MX
Posted on: 10-19-2004, 05:07 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Don't Hate Me Because I'm...
a newbie!
Hello,
I'm very new to Flash and getting no-where fast. If anyone can suggest the best place to start and maybe some detailed tutorials, I'd appreciate it. I've found several tutorials but they seem to think I know what I'm doing!
Anyway, in the meantime, I'm using the 'Swifty' font to try to create a man walking across the stage. My question is, do I convert the font to a symbol before adding any effects?
Thanks...
I Hate This
I can't figure this stuff out can someone help me?
I have a button with the action
on (release)
{Trigger1a = true}
and on the layer that button is on, I have:
var trigger1a = false;
and on a movie clip in the bottom right corner I have the actions:
onClipEvent (enterFrame) {
if (_parent.trigger1a and this._y > 368) {
this._y -= 20;
this._x -= 20;}
So, this all makes the MC move to a certain spot when you click the botton. but how would I make it so that when you click the button again, it makes the MC move back to its original position??
I'm really new to this Action Scripting stuff (like 2 days new) and everything I think should work never does.
Your Going To Hate Me But..
yes another scrollpane border question..
I've looked through every post on this subject.
I've tried all of the combinations of code out there but no none of them seem to work.. i cant get the border to go away AT ALL.. Below are all of the code that i tried (one at a time of course) i've inserted them into the first frame of the layer or the keyframe where the scrollpane starts. ANY ideas? i cant figure it out.. im using flash v8 actionscript v2.0 (my scrollpane doesnt work with A.S. 1.0.)
UIObject.borderStyle = "none";
ScrollPane.setStyle("borderStyle", "none");
mx.containers.ScrollPane.setStyle("borderStyle", "none");
_global.style.ScrollPane.setStyle("borderStyle", "none");
this.scrollPane_mc.setStyle("borderStyle", "none");
this.scrollPane_mc.boundingBox_mc._visible = false;
myColor = new Color(scrollPaneInstanceName.boundingBox_mc);
myColor.setRGB(0x999999);
Why Does My App Hate Me
I've got a .fla wich works perfectly however if i attempt to copy and paste the exact code and stage objects into a fresh .fla it doesn't work at all.....am i hallucinating or is this a known flash issue?I'm losing my mind ...i should have stuck to php but now i'm hooked on flash...well anyway hopefully somebody can clear this problem up for me.
Why Does PC IE / PC FF / Mac FF Hate My Pop-up?
I see a lot of pop-up code questions in here -- most of the answers point to the Kirupa article and the pop-up code generator (VERY COOL TUTORIALS/UTILITIES!).
I'm having an odd problem, though, where calling a function provided by a vendor (for a pop-up window) fails in every browser except Mac Safari.
This is the on(release) function I'm writing:
Code:
on(release) {
getURL("javascript:return(ET());");
}
And this is the Javascript pop-up window function (provided by an external vendor) that is being called:
Code:
function ET () {
window.open('http://www.somewebsite.com/et/emailThis?clickMap=create'+commonLoc+'&summary='+escape(getClickSummary())+'&image='+escape(getClickImage()),'click',popWin);
return false;
}
The variables in that function ARE getting passed properly from elsewhere in the Javascript. HTML buttons tied to the function pop the window properly from PC IE, PC Firefox, and Mac Firefox. However, the Flash version of the function call doesn't work in anything but Mac Safari.
Any suggestions?
Thanks,
IronChefMorimoto
P.S. - Before anyone asks, NO -- we can't have the vendor change the code. We're locked into it.
I Hate To Ask This...
Ok, here's the situation. I've been trying for MONTHS to figure out how to build a website completely using flash, and after many failed attempts I decided to go to a free template instead and just customise that.
And I found a really great one! The template works like this:
There is a main SWF file, and a folder containing some .txt files. You go into the .txt files and edit where necessary, and they are loaded into the .swf file, and you have yourself a pretty little website!
There is one killer of a problem though: While the site works perfectly while accessed locally on my computer, when I upload it onto my server it seems that the .txt files are forgotten completely, and the site comes up completely blank. The weird part is, the .swf file loads the first text file (containing the names for menus in the navigation bar), but fails to recognise the other files.
This is what I mean
I know I shouldnt have, but I converted the .swf file into a .fla file using *FLA, and now have access to it. Is there any way that Flash could look through the actionscript and tell me where problems are? Or, only in desparation, would anyone be kind enough to have a look at it for me and see if they can figure anything out?
Thanks alot,
James
Hi, I'm Mc2 And I Hate Mc1.
hi you all. for the 3rd time, i'm posting here about this question. some people tried to help asnwering about switching between frames.
But the thing is, mc2 is not in the same .fla file of mc1. it is loaded through "_root.contents.loadMovie..."
The image below is very clear. mc1 loads mc2 but won't get out of the screen. plus, mc2 doesn't know how to get out of the screen. we have a conflict between MCs here.
would anyone please help mc2?
thanks.
Hate Me For Asking
Okay, searched the forums but just a I cant find a quick answer to this 2 part-er...
1) Can anyone recommend a "kirupa-style site" with an active forum that deals with JavaScript?
2) I have a question specific to AOLs popup controls and how it would affect site design that uses JS popup windows.
Thanks
I Hate AS3
Normally I steer clear of AS3 but I've just started playing around with Air and of course AS2 is incompatible - great!
Basically I'm stuck trying to get a click action triggering a function. I want the function to run when an instance of an MC is clicked.
The MC is 'ins_1' wich is buried 2 levels deep within other MCs, the path from the top is:
ins_container.ins_slide.ins_1
I have all my actionscript at the top level but I'm happy to more it to ins_slide if need-be.
I have tried this:
Actionscript Code:
ins_container.ins_slide.ins_1.addEventListener(MouseEvent.MOUSE_DOWN, item1_CLICK);
function item1_CLICK(e:MouseEvent):void {
ins_bug.htmlText += "1 clicked, ";
}
Does anyone have any ideas?
Thank you,
I Hate AS2. Please Help
Hello, i´m trying to do a simple menu in as2. In as1 it takes me 5 minutes...but in as2, my head it´s about explode!!!
I have the next class:
class MiMenu extends MovieClip {
var identidad:Number;
var nombre:String = null;
//constructor
function MiMenu(name:String,id:Number){
nombre=name;
id=identidad;
//this.init()
//aunque puede estar vacío
}
function onLoad():Void{
_root.pulsado = 0;
}
function onRollOver():Void {
if (_root.pulsado != identidad) {
this.gotoAndPlay(5);
}
}
function onRollOut():Void {
if (_root.pulsado != identidad) {
this.gotoAndPlay(15);
}
}
}
and the flash reports me this error message:
ActionScript 2.0 class scripts may only define class or interface constructs.
What i´m doing wrong? please help me to understand this s..t!!!
Instances..hate Mx
Alright, i just want a simple rollout effect on my button but the code that im using just wont work. The code on the button that im using is...
on (rollOut) {
ButtonAnimation.gotoAndPlay(2);
}
ButtonAnimation is the MC that on frame 2 has a fade effect which i want to use for my rollout on my button. Am i missing something in there?
Here's the FLA, any help would be greatly appreciated..
http://www.angelfire.com/al2/PhoenixAD/website.fla
I Hate Math
I hawe a problem with a game.
The ammo is shoting in the wrong direction, and i dont get the math part.....
I Hate Buttons
ok heres the issue
i just switched over from flash 5 and the methods for creating a button seem the same except one little catch to have the text roll over you have to be directly over the text
i tried setting a transparent vector layer over the text but then it simply does not work at all
the only solution i can see is to only bitmap images but that would increase the load time considerably but i cant seem to make it work with vectors
ant sugestions or should i go bact to flash 5 and forget about mx
Aaaargh HATE = Is Not The Same As == :)
I am the NEWBIE!
just used the last 2 hours trying to figure out why my game wasn't working... and then i found out that the problems was in the code
if (var = #)
which should be
if (var == #)
Check it folks! Its an easy source to failures!
I Hate Variables ;-))
I have an anoying probl.
Movie 1 ->> loads variables from an external asp.net script
Then uses these variables in this movie. When this movie is finished
it starts another movie and there is an option that starts the first movie again.
My problem is that flash dont reload those variables when it starts the movie again. It just uses the old variables over again.....
It works fine on my machine if i run the movie just in flashplayer, but when putting the swf into an html document, it just uses the first loaded variables nomather what i do........
This is a quiz movie, and the problem is that the asp.net script sends randomized questions to flash, but why wount it reload when restarting ???????
Sorry for my bad english i'm Norweigian ;-)
Thanks in advance
Caution
Ok I Hate Flash Help
ok i put my website online
and it works fine on my computer when i preview it in preview mode in flash mx, but than when i put it into html and upload it to my server it doesnt want to load the scenes
www.djzyx.com
you cant click on news/music/contact
SOMEONE HELP!
thanks
I Hate Flash MX. Help Please
I have been using Flash since about 99 and got on fine. I have now upgraded to Flash MX and I can't get anything to work. It's hell.
After spending all day trying to get a simple movie together I need a loading script. A REALLY REALLY simple one. I want it to just say loading and a percentage. I had loads I could use before, but they don't seem to work in MX.
Please someone point me in direction of a simple, REALLY SIMPLE, loader. With REALLY SIMPLE script that I can understand. I am tearing my hair out.
Omg I Hate Saving
Ok, I have like 8 Functions that all have to do with saving. I cannot find what I am doing wrong so I will put every line of action script related to it on here. It wont save and the checker doesnt work.
Here is Frame 1:
Code:
stop();
//Save Variables
var SaveSpot:Number;
//New Game Variables
var savingPlace:Number;
var quality:Number;
var money:Number = 100;
SaveSpot1.quality = new Number();
SaveSpot2.quality = new Number();
SaveSpot3.quality = new Number();
//Game Variables (SaveSpot1.location etc)
SaveSpot1.Player = new Object();
SaveSpot1.area = new Number();
SaveSpot1.Player.health = new Number();
SaveSpot1.Player.maxhealth = new Number();
SaveSpot1.timem = new Number();
SaveSpot1.timeh = new Number();
SaveSpot1.playTime = new Number();
SaveSpot1.Player.money = new Number();
SaveSpot1.Player.offense = new Number();
SaveSpot1.Player.defense = new Number();
SaveSpot1.Player.intelligence = new Number();
SaveSpot1.Fights = new Object();
SaveSpot1.Fights.nRound = new Number();
SaveSpot1.Fights.wins = new Number();
SaveSpot1.Fights.loses = new Number();
SaveSpot2.Player = new Object();
SaveSpot2.area = new Number();
SaveSpot2.Player.health = new Number();
SaveSpot2.Player.maxhealth = new Number();
SaveSpot2.time = new Number();
SaveSpot2.playTime = new Number();
SaveSpot2.Player.money = new Number();
SaveSpot2.Player.offense = new Number();
SaveSpot2.Player.defense = new Number();
SaveSpot2.Player.intelligence = new Number();
SaveSpot2.Fights = new Object();
SaveSpot2.Fights.nRound = new Number();
SaveSpot2.Fights.wins = new Number();
SaveSpot2.Fights.loses = new Number();
SaveSpot3.Player = new Object();
SaveSpot3.area = new Number();
SaveSpot3.Player.health = new Number();
SaveSpot3.Player.maxhealth = new Number();
SaveSpot3.time = new Number();
SaveSpot3.playTime = new Number();
SaveSpot3.Player.money = new Number();
SaveSpot3.Player.offense = new Number();
SaveSpot3.Player.defense = new Number();
SaveSpot3.Player.intelligence = new Number();
SaveSpot3.Fights = new Object();
SaveSpot3.Fights.nRound = new Number();
SaveSpot3.Fights.wins = new Number();
SaveSpot3.Fights.loses = new Number();
//Objetcs
var InfoUser:Object = new Object();
var SaveSpot1:Object = new Object();
var SaveSpot2:Object = new Object();
var SaveSpot3:Object = new Object();
//Standard Arrays
InfoUser.qualityA = new Array();
InfoUser.qualityA[0] = "---Error---";
InfoUser.qualityA[1] = "High/Best";
InfoUser.qualityA[2] = "Medium";
InfoUser.qualityA[3] = "Low";
InfoUser.areas = new Array();
Info.User.areas[0] = "Error in Game";
Info.User.areas[2] = "Your House";
Info.User.areas[1] = "Outside";
Info.User.areas[3] = "Sam's House";
Info.User.areas[4] = "Jake's House";
//Shared Object
GameData1_so.data.getLocal("gamedata1");
GameData2_so.data.getLocal("gamedata2");
GameData3_so.data.getLocal("gamedata3");
GameData1_so.data.SaveSpot1 = new Object();
GameData2_so.data.SaveSpot2 = new Object();
GameData3_so.data.SaveSpot3 = new Object();
GameData1_so.data.SaveSpot1.Fights = new Object();
GameData2_so.data.SaveSpot2.Fights = new Object();
GameData3_so.data.SaveSpot3.Fights = new Object();
GameData1_so.data.SaveSpot1.health = SaveSpot1.Player.health;
GameData1_so.data.SaveSpot1.maxhealth = SaveSpot1.Player.maxhealth;
GameData1_so.data.SaveSpot1.time = SaveSpot1.time;
GameData1_so.data.SaveSpot1.playTime = SaveSpot1.playTime;
GameData1_so.data.SaveSpot1.money = SaveSpot1.Player.money;
GameData1_so.data.SaveSpot1.offense = SaveSpot1.Player.offense;
GameData1_so.data.SaveSpot1.defense = SaveSpot1.Player.defense;
GameData1_so.data.SaveSpot1.intelligence = SaveSpot1.Player.intelligence;
GameData1_so.data.SaveSpot1.nRound = SaveSpot1.Fights.nRound;
GameData1_so.data.SaveSpot1.wins = SaveSpot1.Fights.wins;
GameData1_so.data.SaveSpot1.loses = SaveSpot1.Fights.loses;
GameData2_so.data.SaveSpot2.health = SaveSpot2.Player.health;
GameData2_so.data.SaveSpot2.maxhealth = SaveSpot2.Player.maxhealth;
GameData2_so.data.SaveSpot2.time = SaveSpot2.time;
GameData2_so.data.SaveSpot2.playTime = SaveSpot2.playTime;
GameData2_so.data.SaveSpot2.money = SaveSpot2.Player.money;
GameData2_so.data.SaveSpot2.offense = SaveSpot2.Player.offense;
GameData2_so.data.SaveSpot2.defense = SaveSpot2.Player.defense;
GameData2_so.data.SaveSpot2.intelligence = SaveSpot2.Player.intelligence;
GameData2_so.data.SaveSpot2.nRound = SaveSpot2.Fights.nRound;
GameData2_so.data.SaveSpot2.wins = SaveSpot2.Fights.wins;
GameData2_so.data.SaveSpot2.loses = SaveSpot2.Fights.loses;
GameData3_so.data.SaveSpot3.health = SaveSpot3.Player.health;
GameData3_so.data.SaveSpot3.maxhealth = SaveSpot3.Player.maxhealth;
GameData3_so.data.SaveSpot3.time = SaveSpot3.time;
GameData3_so.data.SaveSpot3.playTime = SaveSpot3.playTime;
GameData3_so.data.SaveSpot3.money = SaveSpot3.Player.money;
GameData3_so.data.SaveSpot3.offense = SaveSpot3.Player.offense;
GameData3_so.data.SaveSpot3.defense = SaveSpot3.Player.defense;
GameData3_so.data.SaveSpot3.intelligence = SaveSpot3.Player.intelligence;
GameData3_so.data.SaveSpot3.nRound = SaveSpot3.Fights.nRound;
GameData3_so.data.SaveSpot3.wins = SaveSpot3.Fights.wins;
GameData3_so.data.SaveSpot3.loses = SaveSpot3.Fights.loses;
//Functions
function Save(SaveSpot){
if (SaveSpot == 1){
_root.Save1();
}if (SaveSpot == 2){
_root.Save2();
}if (SaveSpot == 3){
_root.Save3();
}
}
function SaveCheck(SaveSpot){
if (SaveSpot == 1){
_root.SaveCheck1();
}if (SaveSpot == 2){
_root.SaveCheck2();
}if (SaveSpot == 3){
_root.SaveCheck3();
}
}
function Save1(){
GameData1_so.flush();
GameData1_so.data.SaveSpot1.health.flush();
GameData1_so.data.SaveSpot1.maxhealth.flush();
GameData1_so.data.SaveSpot1.time.flush();
GameData1_so.data.SaveSpot1.playTime.flush();
GameData1_so.data.SaveSpot1.money.flush();
GameData1_so.data.SaveSpot1.offense.flush();
GameData1_so.data.SaveSpot1.defense.flush();
GameData1_so.data.SaveSpot1.intelligence.flush();
GameData1_so.data.SaveSpot1.nRound.flush();
GameData1_so.data.SaveSpot1.wins.flush();
GameData1_so.data.SaveSpot1.loses.flush();
_root.SaveCheck(1);
}
function Save2(){
GameData2_so.flush();
GameData2_so.data.SaveSpot2.health.flush();
GameData2_so.data.SaveSpot2.maxhealth.flush();
GameData2_so.data.SaveSpot2.time.flush();
GameData2_so.data.SaveSpot2.playTime.flush();
GameData2_so.data.SaveSpot2.money.flush();
GameData2_so.data.SaveSpot2.offense.flush();
GameData2_so.data.SaveSpot2.defense.flush();
GameData2_so.data.SaveSpot2.intelligence.flush();
GameData2_so.data.SaveSpot2.nRound.flush();
GameData2_so.data.SaveSpot2.wins.flush();
GameData2_so.data.SaveSpot2.loses.flush();
_root.SaveCheck(2);
}
function Save3(){
GameData3_so.flush();
GameData3_so.data.SaveSpot3.health.flush();
GameData3_so.data.SaveSpot3.maxhealth.flush();
GameData3_so.data.SaveSpot3.time.flush();
GameData3_so.data.SaveSpot3.playTime.flush();
GameData3_so.data.SaveSpot3.money.flush();
GameData3_so.data.SaveSpot3.offense.flush();
GameData3_so.data.SaveSpot3.defense.flush();
GameData3_so.data.SaveSpot3.intelligence.flush();
GameData3_so.data.SaveSpot3.nRound.flush();
GameData3_so.data.SaveSpot3.wins.flush();
GameData3_so.data.SaveSpot3.loses.flush();
_root.SaveCheck(3);
}
function SaveCheck1(){
if (GameData1_so.data.SaveSpot1.health != undefined){
if (GameData1_so.data.SaveSpot1.mazhealth != undefined){
if (GameData1_so.data.SaveSpot1.time != undefined){
if (GameData1_so.data.SaveSpot1.playTime != undefined){
if (GameData1_so.data.SaveSpot1.money != undefined){
if (GameData1_so.data.SaveSpot1.offense != undefined){
if (GameData1_so.data.SaveSpot1.defense != undefined){
if (GameData1_so.data.SaveSpot1.intelligence != undefined){
if (GameData1_so.data.SaveSpot1.nRound != undefined){
if (GameData1_so.data.SaveSpot1.wins != undefined){
if (GameData1_so.data.SaveSpot1.loses != undefined){
gotoAndStop ("SaveComplete");
status_txt.text = "Done";
}
}
}
}
}
}
}
}
}
}
}else {
status_txt.text = "Saving...";
}
}
function SaveCheck2(){
if (GameData2_so.data.SaveSpot2.health != undefined){
if (GameData2_so.data.SaveSpot2.mazhealth != undefined){
if (GameData2_so.data.SaveSpot2.time != undefined){
if (GameData2_so.data.SaveSpot2.playTime != undefined){
if (GameData2_so.data.SaveSpot2.money != undefined){
if (GameData2_so.data.SaveSpot2.offense != undefined){
if (GameData2_so.data.SaveSpot2.defense != undefined){
if (GameData2_so.data.SaveSpot2.intelligence != undefined){
if (GameData2_so.data.SaveSpot2.nRound != undefined){
if (GameData2_so.data.SaveSpot2.wins != undefined){
if (GameData2_so.data.SaveSpot2.loses != undefined){
gotoAndStop ("SaveComplete");
}
}
}
}
}
}
}
}
}
}
}
}
function SaveCheck3(){
if (GameData3_so.data.SaveSpot3.health != undefined){
if (GameData3_so.data.SaveSpot3.mazhealth != undefined){
if (GameData3_so.data.SaveSpot3.time != undefined){
if (GameData3_so.data.SaveSpot3.playTime != undefined){
if (GameData3_so.data.SaveSpot3.money != undefined){
if (GameData3_so.data.SaveSpot3.offense != undefined){
if (GameData3_so.data.SaveSpot3.defense != undefined){
if (GameData3_so.data.SaveSpot3.intelligence != undefined){
if (GameData3_so.data.SaveSpot3.nRound != undefined){
if (GameData3_so.data.SaveSpot3.wins != undefined){
if (GameData3_so.data.SaveSpot3.loses != undefined){
gotoAndStop ("SaveComplete");
}
}
}
}
}
}
}
}
}
}
}
}
(Continued)
Oh Why Do .FLA Files Hate Me...
Ok, Im working on a website for myself, and I move around alot, so I worked on something at my moms computer for awhile, I then saved it as a .fla, took that, and emailed it to myself, I got to my dads house, downloaded it, and then tried to open it, but I get a "Failed to open document" error. Should I just reinstall flash? Or is there some kind of protection thing in fla's that causes this?
Don't Hate Me, I Need HitTest Help
Hello,
I know there a vast world of tutorials for learning hitTest, but none of them are actually helping my situation. Everytime i implement one it does'nt work! Basically i want to get code together which i can put into an MC which is static (does'nt move), where when my moving user controlled MC hit's it, my user controlled MC stops moving in that direction. Because there are a few ways a hitTest can be implemented i have no idea what to use for my boundary. My boundary is called land as it's instance name, and my user controlled MC is called tank. My tanks code is below, and the "land" MC currently has no code. Can anyone solve my "probably" easy problem?
TANK CODE: MC known as instance name "tank"
onClipEvent (load) {
this.swapDepths(10000);
speed = 4;
bumSound= new Sound();
bumSound.attachSound("bum")
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
xx = math.cos(_rotation*Math.PI/180)*speed;
yy = math.sin(_rotation*Math.PI/180)*speed;
this._x += xx;
this._y += yy;
}
if (Key.isDown(Key.LEFT)) {
this._rotation -= 5;
} else if (Key.isDown(Key.RIGHT)) {
this._rotation += 5;
} else if (Key.isDown(Key.SHIFT)) {
turret._rotation -= 5;
} else if (Key.isDown(Key.CONTROL)) {
turret._rotation += 5;
}
treadcheck++;
if (treadcheck>5) {
treadcount++;
duplicateMovieClip (_root.tread, "tread"+treadcount, (treadcount%100)+1000);
treadcheck = 0;
}
if (Key.isDown(Key.SPACE) && shotTimer<=0) {
bumSound.start();
shotCount++;
duplicateMovieClip (_parent.shot, "shot"+shotCount, (shotCount%100)+1100);
shotTimer = 15;
}
shotTimer--;
}
Thanks
I Hate Actionscript 3.0
why did they get rid of the on() command and why did they get rid of placing scripts on buttons why do they want to make me hate them. It now takes so many lines of code to do something that was once so simple. you need to use this crap to use buttons.
Quote:
myButton.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
trace("I've been clicked!");
}
);
I will not use Action script 3.0 as far as i am concerned it sucks and i hope the people who came up with it die. 2.1 is much better and i will continue using it and treat 3.0 like the little piece of crap it is.
[CS3] I Hate HitTest Now.
The reason why I hate hitTest?
It's because after X versions of Flash coming and going, Macromedia/Adobe NEVER thought to make it so movieclip-movieclip hitTests could occur without those stupid bounding boxes! I know you agree with me (if you know what I'm talking about...)
Anyway, I'm getting to the point...
Lets say I have four blank movieclips, named "a", "b", "c", and "d", with "a" and "b" placed on the top layer, and "c" and "d" inside of a fifth movie clip, which is also on the top layer. (Don't ask why it's like this, it's just is how I'm doing it.) I want to know how to find the hitTest of the LINE between "a" and "b" and the LINE between "c" and "d".
I would just use hitTest, but it would only work when the lines are perfectly horizontal or vertical.
So, any suggestions?
I Hate Mac And Safari
ok so i created a flash site on a PC for viewing in all browsers (so i thought!) but when i view it on a safari browser the flash file shows up but in like a 10 x 10 pixel square...any idea on how to fix this...i know there is a code that needs to go into the index.html file for safari browsers, but i cant seem to find it anywhere...
thanks guys...
namtab
I Hate SetInterval Is There A Better Way To Do This?
this is just a test function, I have not done anything to the string to beautify the output. Is there a better way to do this???
PHP Code:
var gotime:Function = function () {
//replaces and refreshes now; otherwise, the data woudl remain the same
var now:Date = new Date();
//requires a dynamic text instance called time_txt
time_txt.text = now.getHours()+":"+now.getMinutes()+":"+now.getSeconds()+":"+now.getMilliseconds();
};
setInterval(gotime, 10);
I Hate Sandboxes
I have two mc instances labeled mc1 and mc2. I have two swf files that were created with poser and then compressed using sorenson squeeze the exact same whay. Here is my code.
Code:
mc1.loadMovie("http://otis.usu.edu/create/videos/female_student/L03_S01_intro.swf");
mc1.play();
mc2.loadMovie("http://otis.usu.edu/create/videos/female_student_talkative/L03_S01_intro.swf");
mc2.play();
I get a sandbox violation with the second video but not the first. This is killing me. What am I doing wrong. How can I get the sandbox violation to go away? Please help me before I rip all my hair out on this one.
Jason
I Hate Depth
So..... I got a quick question. I'm placing a background that loads a different color dynamically every time you load up my SWF, by the following code:
import flash.display.BitmapData;
import flash.geom.Rectangle;
var myColors:Array = new Array(0x993300, 0x9933CC, 0xFF9966, 0x009999, 0x663399, 0x666600, 0x999999, 0x00CC99, 0xFF9900, 0x9999FF, 0xCC3300);
var myColor=myColors[Math.floor(Math.random()*11)];
var myBmp:BitmapData = new BitmapData(Stage.width, Stage.height, false, myColor);
var myBackground:MovieClip = _root.createEmptyMovieClip("background_mc", 1);
background_mc.attachBitmap(myBmp, this.getNextHighestDepth());
Then, I want to put in a logo, so I simply place it on my stage in a new layer.
Now, when I do that, it doesn't show up, so I run a trace on that logo's depth, and it's giving me -16383!
So, I do logo.getNextHighestDepth(),
That doesn't do anything at all to change the depth. This is a real pain, I honestly cannot figure out this depth thing.
So, my question is two parts:
1: is there a way that I can simply change the background color dynamically without having to create a new movieclip with a bitmap data image in it?
2: what's the deal with depth? Can anyone help me out with my depth issue?
Thanks a lot!
-Carmire
I Hate NULLs :(
Hey all!
I've been playing around in creating a ticker. Simply it reads through an external XML file, stores the lines in to an array and then will randomly spits one out.
However, I have a problem with NULLs appearing from nowhere and I can't seem to stop it happening . As a result I've used an IF statement to bypass the problem in order to make it work correctly (cheap hack if u ask me ).... however, I now want to implement a routine to stop repatition of lines, but guess what?.. the NULLs are screwing it up! I have to store the old random number and compare to the last one, this is easy enough, but not when NULL values are included . Talk about the bugs coming back to bite you in the ass.
I've attached my files with all my debug trace statements clearly showing the NULL issue. I've also commented the fla to show clearly whats happeneing.
I've never been able to understand why the NULL values are appearing so if anyone can help me rid the NULLs once and for all I'd appreciate it so much!!
Thanks,
z3ph.
Targets Hate Me
I have been working on a xml based slide show, and i got everything working fine on its own, but then when i go to load it in the parent movie the bugger wont load the images! So being familar with this problem I replaced all _root properties with _global.section1root which always seems to help. HOWEVER in this case it didnt, can someone shed some light on this?
ActionScript Code:
//
importXML = new XML();
importXML.ignoreWhite = true;
importXML.onLoad = function(success) {
if (success) {
var xmlContent = this.firstChild;
menuContent = new Array();
for (var i = 0; i<this.firstChild.childNodes.length; i++) {
nextEntry = xmlContent.childNodes[i];
menuContent[i] = [nextEntry.attributes.name, nextEntry.attributes.value];
}
menuLength = menuContent.length;
elementspacer = -3;
var menuItem, yPosition = 0;
createEmptyMovieClip("clipContainer", 1);
clipContainer._x = 100;
clipContainer._y = 150;
attachMovie("mask", "mask", 10);
mask._x = 100;
mask._y = 150;
clipContainer.setMask(mask);
for (var i = 0; i<menuLength; i++) {
clipContainer.attachMovie("menuItem", "m"+i, i);
thisClip = clipContainer["m"+i];
textName = menuContent[i][0];
thisClip.menuname = textName;
thisClip.destination = menuContent[i][1];
thisClip.info = menuContent[i][2];
thisClip._y = yPosition;
yPosition += Math.floor(thisClip._height+elementspacer);
}
} else {
trace("Error loading xml");
}
};
//photo address
function setMenu(value) {
selectedName = textName;
loadMovie("http://www.com"+value+".jpg",_global.section1root.load);
}
It Has Been At Least 5 Months To Fix Bug - HATE
I can't believe that Adobe has been picking it's butt since 2006 on this FLASH 64 bit player issue.
Someone needs to be FIRED to get this Flash 64 bit player rolled out !
"But the 32 bit players works in a 32 bit browser on a 64 bit machine" ... shut up already with that excuse. It has been at least 5 months now .... (@*#&$(@*%&(@#&)(%@
Every company out there that use Flash internally or externally has their help desk bombed every day with messages about how "Your site doesn't work" ... and then they have to explain the work around steps. Trust me no one likes a work around. I bet my help desk is telling everyone who calls/emails with the issue about how adobe is aweful.... they are so sick of the same question over and over.
Who is going to go to all these PC's and un-do all the work arounds when you do release a 64 bit version?
Your costing my company money ...
Next time around I will be something other than adobe, the lack of progress to adapt to new technologies is aweful.
Man I Hate My Site
Well i have been working on www.radioactivechimp.com for a very long time, but I have not worked on it for about 1.5 months. Now i hate it. I really hated it after seeing http://www.wiggums.com/flashSite/ What a sweet site! I wanted my site to look like this. Can I steal some ideas from this site? I know someone is gunna say i need to be more original but w/e. Any ideas for a entire new site because i am gunna start over soon.
That made no sense lol
-Dean
I Really Hate 12fps. Do You?
Does anyone know if there's a way to permanently change the default frame rate for Flash to something other than 12fps? I have NEVER found that to be a useful frame rate and for some reason I get REALLY annoyed by having to change it every time.
Thanks,
Haig
MYSQLPHP -- I HATE WHAT IM DOING
hi guys, this question is an approach question. I feel like im being redundant and i really dont like the way im going about this.
I have a mysql database and im creating a query to get &blah1= and &blah2= and so on.
so now i have about 50 blah variables and in flash, im making a for loop based on the rows and im populating an array filled with these blah values. My php script is running 3 queries -- and i get results from 3 different tables and im running about ten string one1=jkjk one2=kjjkjk .... three5=djkkdfk
this is what im talkng about it. The way im concatenating these strings, is the same approach after i goto into flash to populate the arrays.
is there a batter way??
thanks.
This Is Why I Hate Flash
I can get Flash to do amazing things, but trying to do ridiculously simple things like targeting & evaluating variables, or controlling A SIMPLE MOVIE kill me.
All I'm trying to do is get a MC (named "dork" placed on the root) to stop and start.
on Frame 1 of the root:
Code:
stench = getProperty(dork,_currentframe);
Frame 5:
Code:
gotoAndPlay(1);
a stop button on the root:
Code:
on (press) {
//dork.gotoAndStop(eval(_root.stench)); // doesn't work
dork.gotoAndStop(_root.stench); // doesn't work
//dork.gotoAndStop(10); // works
trace (_root.stench); // works
}
GOD I Hate Scenes
Here's the deal... I built an entire portfolio/website in scenes and I've spent so much un-needed time making sure there were no conflicts and everything worked properly.
But the scenes keep breaking! right now everytime I move to a different scene it stops BY ITSELF on frame 1, there are no actions telling it to stop... it just feels like stopping!
Lesson learned, scenes suck, load movie rules
Man I Hate My Site
Well i have been working on www.radioactivechimp.com for a very long time, but I have not worked on it for about 1.5 months. Now i hate it. I really hated it after seeing http://www.wiggums.com/flashSite/ What a sweet site! I wanted my site to look like this. Can I steal some ideas from this site? I know someone is gunna say i need to be more original but w/e. Any ideas for a entire new site because i am gunna start over soon.
That made no sense lol
-Dean
This Is Why I Hate Coding
i copied this code from a book .. so you would think it would work
Code:
function createEnemy() {
newEnemy++;
if (newWnemy == maxEnemies) {
newEnemy = 1;
}
_root.attachMovie("enemy", "enemy"+newEnemy, newEnemy);
setProperty(eval("enemy"+newEnemy), _x, _root.stageWidth-random(_root.stageWidth));
setProperty(eval("enemy"+newEnemy), _y, -eval("enemy"+newEnemy)._height/2));
}
here's the error it gives me
Quote:
Scene=Scene 1, Layer=actions, Frame=2: Line 8: ';' expected
setProperty(eval("enemy"+newEnemy), _y, -eval("enemy"+newEnemy)._height/2));
Scene=Scene 1, Layer=actions, Frame=2: Line 9: Unexpected '}' encountered
}
if i take the } off the end that error goes away but that doesnt make sense b/c then it leaves a bracket open
and it gives me the same error for line 8 with or without the ; at the end .. but i think it should be there b/c every actionscript line i see has to have ; or { at the end
*sigh*
help please
I Hate Actionscript
I'm relatively new to the whole Flash concept. though I have taught myself how to create motion tweens etc. and can use this to create modest animations. I would like to take my Flash to the "next level" as it were by trying to learn action script... except here's the problem. i can't. i CANNOT seem to get my head around it. is there anyone that is willing to show me the basics or at least somethign when it comes to actionscript.
thanks.
*so frustrated*
rapid_i_movement@hotmail.com (you know, if you want)
I Now Hate Flash Even More
Could designers remember that not everyone can see flash files? My computer was raided by a mob of spyware/virii/trojan horses that infected half of all *.dll I had and now I can't see flash files. The worst thing is, I can't see the websites either.
Yeah, I know I have to re-format my computer and stuff but for Christ's sake, can we keep it to a minimum? I want to know stuff too
Asp And Flash Hate Each Other
All I need to do is import one variable into flash(5) from asp (mySQL database). if frame one
loadVariablesNum ("marquee-bar.asp", 0);
gotoAndPlay (2);
in frame 3:
if (marquee == ""){
gotoAndPlay (2);
}else{
gotoAndPlay (4);
}
and in frame 4:
if (marquee != ""){
_root.marquee.value = marquee
}
stop()
note: I name an MC with the instance name "marquee" and a dynamic text field in it named value
Ok, my database system is a little complicated, but it biols down to this:
marquee = "No information today."
response.write "&marquee=" & Server.URLEncode(marquee) & "&done=true"
in the flash file _root.marquee.value gets set to "
I've scowered the net, and this seems to be a reasonable method... what an I doing wrong?
I Hate Learning
Last edited by 3DGamer : 2004-04-06 at 17:35.
I hate to ask you guys such unworthy questions, but ill try to make it straight and to the point.
How would I go about creating a Script that preloads an external .swf and shows it loading (preloader) then load the external swf with a transition? I've never made a preloader before. period. Thanks
I Hate Trignometry...
I was messing with trignometry...I tried like this
Code:
trace(Math.sin(30)*Math.PI/180);
so it gave me the radians value 0.5
then I tried to switch the radians to degree, so I wrote
Code:
trace(Math.sin(0.5)*180/Math.PI);
and why doesn't it give me 30?
why why why why..........
I Hate Microsoft .
I'm working on my website http://www.webdesign-flash.ro ,
I have a strange problem with IE ... when I open a project one or more times in a new window in IE at some point the window
is blank or it just doing nothing and the browser can't load anything from my domain( this is the strange part , the domain is blocked, even if you refresh the page still the brower can't laod the content).
If you test the project section, make sure that you open and close the window multiple times, eventualy the IE will freze.
This is a screenshot of my problem http://www.webdesign-flash.ro/problem.jpg
Also I've seen this to other website like infinityart.ro, cartoonsmart.com .
What is wrong becouse I've tried evreything....I'm going crazy with this . damn microsoft.......... I think this is done intentional by them.....
AS3 = Love/Hate
i am trying to due a simple startdrag functionality. the problem i am running into is with the MOUSE_DOWN eventhandler. when the mouse rolls off the object but the mouse is still down, all functionality is lost.
Code:
area.buttonMode = true;
area.addEventListener(MouseEvent.MOUSE_DOWN,startResize);
function startResize(e:MouseEvent):void
{
this.addEventListener(MouseEvent.MOUSE_MOVE,resizeMe);
}
function resizeMe(e:MouseEvent)
{
area.width = mouseX;
}
i want to control with width with the mouse pos. it only works if the mouse is over the area.
I Hate Buttons PLEASE Help
o.k.
I would love anyone who might be able to help me with this rudimentary problem. I have created a lovely navigation bar in which the drop down fades in when moused over (a transition effect fade), stays there as static buttons, and then fades out (transition again) when moused off. There are two problems:
(1) The buttons don't get their assiged URL's. I don't get an error message or anything, they just don't work. Is it because they are nested between the two transition effects? Is it because there is a stop action at the end of the movie? Please tell me why!
(2) When moused off, despite the fact that there is an invisable button with actionscript surrounding the whole stage and despite the fact that it works sometimes, it doesn't ALWAYS work. You have to be careful about where exactly you mouse off the buttons. AAAHHH!
If anyone out there is a little smarter and better at this than I am (I'm sure there are millions of you), I would be eternally grateful for your help!
thank you
desperately,
anni
What I Hate/love About This Forum
What I love about this forum:
When people write things like:
I’m having the following problem...
Here’s the code I’m using...
Here’s what is happening...
In other words, they have tried, ran into a problem, and they are giving enough info so someone can help them.
What I hate:
When people write things like:
I want to achieve the following...
- and they go on to describe an entire website or intro in conceptual terms
“I want ten blue balls to come out and start bouncing around the stage, then turn into little frogs which start singing my theme song…. How do I do that?” or worse yet, “Does anyone know where I can find a script that does that?”
In other words they have an idea, but haven’t invested any effort into trying to create it and are hoping they won’t have to invest any. They should be hiring a designer, not hanging around here.
Of course, there is a lot of in between stuff, like “how do I get an object to move across the stage using actionscript?” or “how do I control a sound using AS?” which are totally cool too.
I guess it comes down to, I like it when people are interested in learning, and hate it when they are looking to get some free plug-in code written for them.
Just venting...
Freaky But Cool.. Don't Ya Just Hate...
Dont you just hate typing out the for loop syntax? Well I do.
I just about fell out of my chair when I tried this and it actually worked on the trace function the first time!! Gave me the woolies I tell ya. The array one took a few head cocks and a "hmmmm. Aha!" or two... but It does seem to work. Let me know if you come up with freaky uses for this little diddy.
Code:
Iterate = function (low,high,thefunction) {
for (iter=low;iter<high;iter++) {
eval(thefunction)(iter)
}
}
x = new Array()
Iterate(0,100,"x.push")
or try
Iterate(0,100,"trace");
hehe.. enjoy fellow ASers
|