Strangest Thing So Far: A Bug ?
Hi, the following happened and I can not explain it.
I have a fla. It is a interactive thing for kids, where they use the arrow buttons to move stuff.
Now, as I was finished, I thoughed: these kids can't read, let's explain things visually. But my movie strated at frame 1. hmm.
So I moved the entire thing ten frames further, on frame 1 I let the movie go to frame 150, where my tutorial starts, which repeats once, and then goes back to frame 9 to let them have a ball.
Now, inside Flash MX things work fine. No problem. Really. But as soon as I export the movie, that swf won't work ???? the tutorial is skipped, and the interactivity is blown to pieces.
I tried several things, and after 13 (! ) tryouts I came to the conclusion that one cannot put "gotoAndPlay(150);" on the first frame, it will work when put into frame 5 though ( Thankfully, it gave me quite a shock: 3 hours blown to smithereens ! )
Is this the correct conclusion ??
Papermouse
FlashKit > Flash Help > Flash General Help
Posted on: 04-24-2003, 04:05 PM
View Complete Forum Thread with Replies
Sponsored Links:
Strangest Thing...
hi-
i'm building a game with 32 thumbnails as the main user interface. i'm using lee's sliding panel combined with my own button rollOver&Out functions.
everything is working properly however there is the strangest anomaly that I just can't figure out.
i've built it so my thumbnails are MCs. when you rollOver a MC it calls a function to increase the x and y scale to 150%. when you rollOut it calls another function to decrease the x and y scale back to 100%
all working fine.
however, if you roll over and back off of a thumbnail quickly -- after they resize back to 100% the y scale pops back up to 150% - for (to me) no apparent reason. there's no script that would be telling it to do so.
even weirder if you rollover and back out slowly it doesn't do it. only if you do it too fast.
i'm loosing my mind and i can't figure out why it's doing it.
please please take a look and see if you can tell me why it's happening!
i love you long time!
swf:
http://multimediahaam.com/archive/be...keoverGame.swf
fla:
http://multimediahaam.com/archive/be...keoverGame.fla
*the art and vector images are copy written. do not be a jerk-off and steal anything please.*
View Replies !
View Related
Strangest Thing In Flash
I'm making a game and my guy always follows the mouse but if space is bring pressed my guy stands still. Now the strange thing is that when I start my game... my guy stands still till i tap space. I know what you guys are thinking but listen to this. I checked over my scirpt and he shouldn't do that so when i exit the game and try it again.. it works perfectly. Strangest part is if i leave flash alone for atleast 20 min and try my game again... it messes up and if i exit and keep trying again, it works perfectly. Can someone explain what is happening?
View Replies !
View Related
The Strangest Bug Ever.
ActionScript Code:
var xmlData:XML = new XML();
xmlData.ignoreWhite = truel
xmlData.load("somexmldoc.xml");
xmlData.onLoad = function(bVerify:Boolean){
if(bVerify){
trace(Stage.width);
}
returns 932 no matter what the stage width really is!
now, Stage.width is a read-only property, how can it be that this code changes it and why?
it does it every time and no matter how much the stage width really is.
how can it be?
View Replies !
View Related
The Strangest Bug I've Ever Witnessed...
Hi all. I have to say, this is the oddest bug I've seen while working in Flash and I was wondering if someone could shed some light on what's going on.
I've been working on a fairly simple XML slideshow that uses UI components to allow the user to browse through images with associated text. I wanted to spice things up a bit, so I threw a little transition animation in once the user picked something from the combo box.
I was trying to figure what 'on' statement to use, so I threw a trace function in the 'on' statment to see if everything was working OK. Once I got it all figured out and everything seemed to be working, I took out the trace and everything broke on me. All the XML values be gone after the first transition but it worked fine with the trace.
I'm absolutely clueless on why this would be happening and even more clueless on how to go about fixing this bug. I zipped up the project and threw it on my server at the address below. If anyone is willing to look at it, I would be very, very grateful.
http://www.spikedproductions.com/flash/slideshow.zip
Thanks a ton everyone.
View Replies !
View Related
Strangest Problem...
When I hit "Ctrl' + Enter" to test my movie in Flash, it looks fine. But when I view the swf file either in the browser or in the Flash player, one of the clips is not showing up.
The movieclip in question, along with many other clips have the exact code, but only this clip in particular i not showing up when I open the swf file. It does show up, as I noted above, when I test it in Flash.
Is this a known bug?
View Replies !
View Related
Strangest Of Problems With Variables
Hi all,
I'm working on a flash file that's reasonably simple, and something very strange is going on. I have an InputText field, where the user types their name. They then click a "submit" button, and the name is passed to a php file via the "getURL" function. I have done this a dozen times before without issue, but something really strange is happening.
When I click the submit button, the variable that should contain the user's name, contains the following HTML code:
"<p align="left"></p>"
The user types "Fred" into the field, but the variable contains the HTML code you see above. Where on Earth is this code coming from? How is it getting into my variable?
Can anyone suggest any clues as to why this is happening? I'm using Flash Professional 8.
Thanks,
brayne
Edited: 04/18/2007 at 01:46:17 AM by brrayne
View Replies !
View Related
Strangest Issue Attaching Movie Clip
Hi,
i have the following code to build a dynamic menu within a section of a mini-site, attaching the number of buttons movie clips required:
ActionScript Code:
_global.totalPersonajes = 8;
nuevoItem = new Object();
MovieClip.prototype.poblarSubmenu = function() {
for (i=1; i<=totalPersonajes; i++) {
this.attachMovie("moldePersonajes", "sub"+i, i, nuevoItem);
nuevoItem._x =(37*i);
}
};
this function is attached to a movie clip on load.
It works fine, but, when i change section (wich unloads the movie clip in subject) and then come back, the first item is always put at the end of the row of buttons, leaving the first spot empty. Is the most unusual thing, and i guess i cuoldn't do it if i wanted to. When the movie returns to frame one it works fine, but past that frame, it yields that error. I've tried reseting all concerning variables with no luck, tried sending the header to a blank frame a thousand miles away and then come back for the next section, and nothing... i'm running out of ideas...
to see what i'm talking about, here 's the thing i'm working on... if you go to "personajes", you'll see Bruce Wayne as the first item of the top menu... then go to "descargas", then head back to "personajes" and now Bruce is the last button and there's nothing where it was.
Thanks in advance
Sir Patroclo
View Replies !
View Related
Making A Thing Any Of Which Will Interact With Any Of Another Type Of Thing
Well i know that title was a bit vague but heres what im trying to do, ive been larning to use flash for the past couple weeks, I'm using flash MX, i am expeirienced in other programming languages. What id like to do is to make an object, in this case a turet, which has code in it and can be duplicated, i know how to do that part, but, i want to be able to make it and copy it, and also have an enemy i can copy, a zobie, and have any of the turrets shoot at any of the zombies that get close. They cant all be pre scripted with eachothers names because i want to be able to create either after the program starts.
Basically, the zombies come out all over during the program and the player clicks where he wants to put turrets and those turrets shoot at whichever zombie is closest to them. Im sure its not that hard, and probably would involve arrays, but since im still learning how flash works im not sure how it can be done. Any help is apriciated, thanks. While i wait for a reply I'm going to read some more on how arays work in flash since i think they may be the answer.
View Replies !
View Related
Please Some One Help Me Its A Little Thing
can sumone help me????
i wanna do a simple flash, and its supposed to look like if there was a identification system, like if u type
User: YoshY
then something like this would appear
User YoshY loged in
but the problem is that i dont know how to do it so could u tell me how???
(u might not have understood this coz i am Brazilian and english is not my first language)
Thanks and please help.... helper if u have ICQ then help me in the UIN shown below(35235145)
View Replies !
View Related
How To Do This Thing...............
Well i m creating a new website on Flash 5. Now i want to have a database in which the user will enter there detail. So i want to create something by which the details entered on a form created (on flash) can be added to a database automatically. I mean that when the user will enter his details and press the submit button all the details should be entered in a database on the server. It this thing possible in Flash
I also want to know how can create a feedback form on flash. I mean the user will enter his Name, e-mail etc and all the details r mailed to me on my e-mail account.
Please Help.
View Replies !
View Related
1 Last Thing
I figured out how to make a checkbox, and everything works.
Its a 2 frame deal.
Here is my problem. I have like 12 checkboxes. if you check 1 checkbox, all of them turned checked. How can I make this work so each is unique?
Any thoughts?
Thank you for your time.
View Replies !
View Related
Is This Thing On?
Hey all.
I am helping someone out with a flash presentation. They know very little about flash, and wanted to do it all himself. Things worked "ok" but now we are getting into some functionality problems (didn't see that coming)
The problem: pause the audio (narration)
The other problem: the audio was just dragged into the timeline. Not as a MC
The other problem: everything is in 1 fla file. Not split into external.
First question is, can a pause button even get put in? Could it work?
This is a VERY low paying job, so if its a lot of work....I prolly wont make it happen.
Thank you TONS for any input
View Replies !
View Related
One More Thing
In reference to my previous post i wanted to mention that the animations work if you hit the refresh button as well. I thought that would be a valuable piece of information.
Thanks
Don
View Replies !
View Related
Sorry But First Thing First....
Are there any tutorials that will tell me how to make a flash website.... I have flash mx on a relatives PC and basically i have made reasonably good html website using my own templates e.t.c. and now want to learn flash. Sorry im sure you get this a million times i did try the search couldnt find much.... :S so whats first?
View Replies !
View Related
I Am Almost There. One Last Thing And I'm Done. Please Help
OK!!! I've got this code:
on(release){
getURL("phasp.jpg","_phasp");
}
Every FLASH expert knows that the above code opens this jpg in a new window, ok fine. That I have sorted. now what i want is that this jpg opens in a new window but without having an address bar. In other words, the window to scale to the size of the picture.
I hope I make sense...
Any help will be appreciated.
View Replies !
View Related
Trying To Do The Right Thing...
Hi All
I am trying to do the right thing and place all my actionscript on a single frame on the root timeline. I am trying to reference two buttons within a movie clip called intro_mc. The first button start_btn works fine but the second button go_btn will not work. Can someone explain to me where I am going wrong. Thanks in advance
Code:
stop();
intro_mc.start_btn.onRelease = function() {
trace("hit");
intro_mc.gotoAndStop(2);
};
intro_mc.go_btn.onRelease = function() {
trace("hit");
intro_mc.gotoAndStop(3);
};
View Replies !
View Related
Ok Here's The Thing
..Ive got a problem im working on, and im wondering which is the best way to go about it.
Theres a certain number of dynamically loaded .jpgs on the screen, every 2 seconds, i delete 10 of them, and load in another new 10 .jpgs (say combined file size of 50k). This will go on and could end up with LOTS of jpegs being displayed say over 5000 over time.
The thing i'm not sure about, is to allow these .jpgs to be cached or not? I'm worried that its going to fill up the users tempory space for cacheing files, but of course if you allow cacheing then it saves on download time.......which way is best??
thanks for any help..
boombanguk
View Replies !
View Related
Oh And One More Thing...
i have two movie clips that do exactly the same thing... yet one works when i put it on the time line and one doesn't...
any ideas... all it is is a one second fade... the logo works and the other mc doesn't...
they are identical... i even recreated the other mc... thinking that it might have just been a glitch in my flash program...
View Replies !
View Related
Fly In Thing
Here's something I made a while back. (I think I even posted it on this site, but that was with an old account, and I can't even remember the account's name anymore...)
Recently souped up to be faster, more efficient, and just overall, cooler.
You give it a picture (Bitmap image or something you just drew in Flash-doesn't matter which) and it constructs it, pixel by pixel. Each individual pixel flies in from the sides of the screen. The trouble is that it takes a little long and is nowhere near practical for anything-uses way too much CPU power. And even when I'm really pushing it in terms of CPU usage, it still takes longer than i'd like for it to finish.
Well, regardless, the image that it winds up with is 100% perfect, and it stops once it's done. Puts in pixels from top to bottom.
View Replies !
View Related
Xml Thing
Hi,
Iv'e been developing a little app using flash/xml. It works perfectly, but sometimes it doesn't load the xml...
The usual scripting I use is something like this:
Code:
var myXML:XML = new XML();
myXML.ignoreWhites = true;
myXML.onLoad=function() {
//All to be done with the xml's info
}
myXML.load("xmlURL.xml");
What am I missing?
View Replies !
View Related
Help With This Little Thing Please.
Ok, well I've been messing around trying to improve on my actionscript and I came up with this:
ActionScript Code:
my_color = new Color(object_mc);
myColorTransform = new Object();
object_mc.onEnterFrame = function() {
my_color.setTransform(myColorTransform);
myColorTransform.ra = 50;
myColorTransform.rb = _root._ymouse;
myColorTransform.ga = 40;
myColorTransform.gb = _root._xmouse;
myColorTransform.ba = 12;
myColorTransform.bb = (_root._xmouse-_root._ymouse);
myColorTransform.aa = 40;
myColorTransform.ab = 70;
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
if (Math.abs(xMouse-this._x)<1) {
xMouse = this._x;
yMouse = this._y;
} else {
this._x -= (this._x-xMouse)/6;
this._y -= (this._y-yMouse)/6;
}
};
I have been trying to make this MC rotate via _xmouse/_ymouse but I can't seem to get it to work. Any quick help for me?
View Replies !
View Related
An Amazing Thing, That I Don't Know How To Do
Hello... thank's to view this post..... I' was searching in internet for amazing flash sites.... and in one of this sites appear a thing that I can't explain very good... it's like a pop up but is a new window that doesn't have the borders and title of the "Internet Exporer"... I don't know if you understand what I mean..... but here is the link http://www.sub7designs.com/test/ ....
If you know how they do that.... can you explain it... or make a litle explanation
thank you very much
CaVi21
View Replies !
View Related
I Tried The Count Thing
var a, b;
var score = 0;
function makeProblem () {
a = Math.ceil(Math.random()*12);
b = Math.ceil(Math.random()*12);
problem = a+" + "+b+" = ";
}
function checkAnswer () {
count++;
if (count == 10) {
gotoAndPlay ("Scene 4", 1);
} else {
// they got it right
if (answer == (a+b)) {
score++;
answer = "";
rightAnimations.gotoAndStop(Math.ceil(Math.random( )*5));
makeProblem();
// they got it wrong
} else {
wrongAnimations.gotoAndStop(Math.ceil(Math.random( )*5));
}
}
}
makeProblem();
thats the code i did, but that doesnt seem to count i think the count is in the wrong spot but i cant figure out where to put it, if i move it i get errors.
View Replies !
View Related
Help Please On Open Thing?
I have recently purchased flash 5, it is a great program, but $300, f*** that, i got it at a discount place for $150.
Ok, on to the question, I want to know how to make a link(or whatever it is called in flash) open up in the movie, like a box slides in with my writing and stuff in it, all i can figure out how to do is to open up info from another separate creation in a different window, please help?
View Replies !
View Related
LoadMovieNum F*****G Thing
loadMovieNum ("loops.swf", 2);
First is the above code correct??? and second is that I have loops.swf loading into level 2 because I have another .swf loading 1 it works at the moment but this one doesn't WHY?? andis there a better to have two loadmovies running at the same time...
the other is track1.swf and I want this in level 1
ok thanks guys and gals
D
View Replies !
View Related
For Musicman 1 More Thing
hey,
dude how do i set the code to work where do i put each one of them, in the movie clip or where to make him move foward..
angle = walker._rotation * Math.PI / 180
d = 10
walker._x += d * Math.sin(angle)
walker._y += d * Math.cos(angle)
Thanx in advanced
Advanced sky|::...
View Replies !
View Related
The Wierdest Thing
I run this script and it works but then the last duplicate of my movieclip always dissapears I do not get it. Also if anyone can give me suggestions how to make this code more flexible so it can be used by many movieclips at the same time that would be great I am having trouble making this easily customizable, functional, and adaptable for all movieclip instances on my stage.
onClipEvent (load) {
_parent.stop();
num = 20;
n = 1;
ini_timer = Math.ceil(getTimer()/1000);
}
onClipEvent (enterFrame) {
elapsed_timer = Math.ceil(getTimer()/1000);
if (elapsed_timer>(ini_timer + 2)) {
while (n<=num) {
_parent.ball.duplicateMovieClip("ball" + n, n);
_parent["ball" + n]._x += _width * n;
n += 1;
}
}
}
View Replies !
View Related
Cant Get This Thing To Print
I'm a newbie to Flash and posted this questionn there with no results so I thought I'd try here.
With a little help from my friends here in FK, I figured out how to make my scroll bar work! :-)
Now I need to figure out how to make it print. On my main timeline, I have 3 layers, the second layer is the one I want to have print. It's nothing more than about 4 pages of text.
I've got my button all set up and ready to be assigned an action.
When I try adding the "Print" action, by default it gives me this code:
on (release) {
printNum(1, "bmovie");
}
That seems to print out the 1st layer in the movie, not the 2nd layer I'm trying to print. So I switched the 2 layers around, and that didn't help. I changed the
on (release) {
printNum(1, "bmovie");
}
to
on (release) {
printNum(2, "bmovie");
}
and that didn't help.
Any ideas on how to solve this? I;m using Flash MX
Thanks
View Replies !
View Related
Can You Help Me With This Fullscreen-thing?
Hey FlashFreaks, to be short, here's my problem:
I'm opening a Flash-intro in the browser, after the flash intro it goes to the main-preloader and then to the mainsite. So far so good, but what I was trying to do is that I wanted to let the main-movie open in a fullscreen pop-up (with a little "close pop-up"-button in the corner).
How can I do this? I'm familiar with Flash and a little bit with actionscripting....
ErGoDyNe1
ergodyne1@hotmail.com
View Replies !
View Related
Are There Any Scripts To Do The Same Thing
Thank you for the information, but I was wondering if there is a script similar to this concept, yet not with the MC increasing is size, but the MC behind in magnifing,
point = new Object();
point.x = _x;
point.y = _y;
localToGlobal(point);
dX = Math.round(_root._xmouse - point.x);
dY = Math.round(_root._ymouse - point.y);
distance = Math.round(Math.sqrt((dX * dX) + (dY * dY)));
threshold = 100;
if (distance >threshold){
distance = threshold;
}
_parent._xscale = (100 + threshold) - distance;
_parent._yscale = (100 + threshold) - distance;
Thanks
View Replies !
View Related
One Little Thing Missing
I'm controlling a MC from different levels and it works fine by using the following expression;
_level0.holder.DI_0004.gotoAndStop("half")
The problem now instead of telling the MC to go to a labeled frame I just want to tell it to go to the nextFrame
I tried this;
_level0.holder.DI_0004.gotoAndStop.nextFrame()
and that didn't work. I must be missing one thing.
hoping someone can see the problem with my code.
Thanking you in advance.
View Replies !
View Related
I've Been Trying To Fix This Thing For 9 Hours Now
I've been working on this thing from midday and it still doesn't work. GRRRRRRRRR
It's a flash file which read from 2 sources:
question.php
&question=QUESTION GOES HERE
results.php
&yes=4&no=3&finish=1
now every thing runs fine when i run the movie but when i try to implement it within my main movie using the load movie command into sprite -1, not alot happens.
I've changed everything so it knows it's not at the base but it still doesn't read the php files, i know they need to be changed to something like:
&_root.poll.question=QUESTION GOES HERE
but that just doesn't work,so could some1 please tell me whats happening please!
View Replies !
View Related
Walking Thing...................
Hi!!
As you can see, I'm a newbie :-D.
I want to know how to make a figure walk, cuz to me it's pretty hard to do.
What I mean is how to make like a person walk in flash. The way I do it is too complicated, What I do is frame after frame of drawing, and still it looks awful, I've seen movies in where a character moves smoothly trought the screen, the character even moves the legs independly HOW DO THEY DO THAT???????!!!!!!!!!
Well that's all.
C'ya.
(I hope you understand what I'm trying to do here)
View Replies !
View Related
|