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




This Should Be SOOOO Simple....



..but I´m not able to ake it work right now..and it is sooo annoying

I am making a simple mask-movie, and I have various photos on the timeline..I want to make a fade-out/ fade-in transition between some of the photos..Using Insert - timeline effects - transition..However..every time I try, I only get this error message in the output window:

"Exception in exportPreviewSWF: TypeError: instance has no properties
Error opening URL "file:///hard drive/Users/din_clown/Library/Application Support/Macromedia/Flash 8/en/Configuration/preview1.swf"
Exception in reverse: TypeError: tmpFrame has no properties"

I really don´t understand whats going on..and will be veeery grateful if anyone have any advice on how I can solve this problem



FlashKit > Flash Help > Flash General Help
Posted on: 08-26-2006, 03:56 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Rotation, Find Out Degrees Of A Point, Soooo Simple
I want to find out the angle of a point, which is always on the outline of a circle. I wrote a little function for that, dividing the circle into 4 divisions and using tangens. Anyway, the script seems to be correct, but the results are wrong. Can anybody help me, please????


Code:
/*
mx = _x position of the center of the circle (M)
my = _y position of the center of the circle (M)
px = _x position of the point
py = _y position of the point
*/
Math.circA = function(mx, my, px, py){
var a = 270;
if (px>mx && py > my) {
a = Math.atan(Math.abs(px-mx)/Math.abs(my-py));
} else {if (px<mx && py>my) {
a = 180 - Math.atan(Math.abs(mx-px)/Math.abs(my-py));
} else {if (px<mx && py<my) {
a = 180 + Math.atan(Math.abs(mx-px)/Math.abs(py-my));
} else {
a = 360 - Math.atan(Math.abs(px-mx)/Math.abs(py-my));
}}}
trace("circA() " + arguments.toString() + " = " + a);
return a;
}


/* 1. set dot to a position on the circle, i.e. 225 degrees
M is on _x:160 and _y:160, radius is 100
*/
this.dot._x = 160 + 100 * Math.cos(225 * (Math.PI / 180));
this.dot._y = 160 + 100 * Math.sin(225 * (Math.PI / 180));

// 2. Get the angle of the dot on the circle (usually between 0 and 360)
trace(Math.circA(160, 160, this.dot._x, this.dot._y));

I Am SOOOO Lost. Little Help?
Hey Guys-

I have posted on the newbie and Game boards and for the past two days, I have not been able to get a single response. I have downloaded a mousetracking and magnification open source fla. I have made some changes and gotten it to look the way I want it to.

Problem is........I'M OUTTA MY LEAGUE! I need to be able to click on an item and cause a reaction (without effecting the existing graggable mouse and magnification script.

WAY OUTTA MY LEAGUE.

Any suggestions?

Thanks

I'm Soooo Bad At Maths
hey guys.

I got a text box with a scroll function and two buttons....all works fine.

However after a site check I was recommended to add a draggable movie clip to control the scroll.

Now draggable movies I have no problem with....just the equation that joins the drag movie position to the text scroll.

I'm sure someone has one laying about somewhere.

If ya wanna see what I got so far check out my site (www button below for new users)

I Am Soooo Confused
Ok I kinda think I'm losing my mind. I have been using Flash for years and years and I am making a simple movie with a simple menu. The buttons are in a movie clip. When clicked they should tell the movie to go to a different scene. Evidently this doesn't work in Flash. Can that be right? I cam make the buttons do all anything else except go to a new scene.

What the hell is going on?

My App Is SOOOO Laggy
With the help of a lot of flashheads online...especially xxneon and Gregg SS at AS.org...I have come up with a duct tape & bubble gum application that runs like a jet airplane on propane...although the fact that it's so sketchy is not at all the fault of those guys...it's a Miracle that they have been able to help me put this together...anyway, enough ass kissing, and to the point...my application is way too slow to be practical...I tried running it at home on my laptop and it was just unbearable slow...after it loaded the xml (5 min) the mouse grabby hand was so damn laggy and everything else was so damn laggy I almost punched my monitor...so I fear that others may get the same feeling...and in effect, not like my app =/

I want to know what I can do to increase the performance of my application. I would eventually like to increase the speed of the XML load, but that is not the main concern...my concern is that the damn app is slow after the xml finishes loading...what can I do to make it run more smoothly? Is it a frame rate issue? I'm sure my code has a lot to do with it cause I am fairly new to flash (workin with it 4 months now)...please help...

http://www.expocadvr.com/expocadflas...o/default.html

Soooo Lost, Please Help
Can someone please help me I think I've pulled out 3/4 of the hair on my head. I've hit a brick wall and am not moving forward at all.

These array elements
BlackNumChips = [0,5,0,0,0,0,5,0,3,0,0,0,0,5,0,0,0,0,0,0,0,0,0,2,0]
must be tied in with 26 point "objects" on the stage. Everytime someone clicks on a point, the corresponding element in the array must be subtracted by 1. Then, on the next click, one must be added to the corresponding point on the stage.

For the life of me I can't seem to find any documentation to help me along. I am an Actionscript newb ,I admit, but I'm learning fast. Any help would be greatly appreciated. Thanks.

Bo

Soooo Heavy
Hi there!



I am in a real bad situation!!! I just finished my website all flash based, but I takes sooooooooooooooo long to load it that it's incredible!!!!



What should I do?? How can I make my site load fast???



Please give me some leads!!



Thanks mfr

My App Is SOOOO Laggy
With the help of a lot of flashheads online...especially xxneon and Gregg SS at AS.org...I have come up with a duct tape & bubble gum application that runs like a jet airplane on propane...although the fact that it's so sketchy is not at all the fault of those guys...it's a Miracle that they have been able to help me put this together...anyway, enough *** kissing, and to the point...my application is way too slow to be practical...I tried running it at home on my laptop and it was just unbearable slow...after it loaded the xml (5 min) the mouse grabby hand was so damn laggy and everything else was so damn laggy I almost punched my monitor...so I fear that others may get the same feeling...and in effect, not like my app =/

I want to know what I can do to increase the performance of my application. I would eventually like to increase the speed of the XML load, but that is not the main concern...my concern is that the damn app is slow after the xml finishes loading...what can I do to make it run more smoothly? Is it a frame rate issue? I'm sure my code has a lot to do with it cause I am fairly new to flash (workin with it 4 months now)...please help...

http://www.expocadvr.com/expocadflas...o/default.html

Soooo Heavy
Hi there!



I am in a real bad situation!!! I just finished my website all flash based, but I takes sooooooooooooooo long to load it that it's incredible!!!!



What should I do?? How can I make my site load fast???



Please give me some leads!!



Thanks mfr

Soooo Lost, Please Help
Can someone please help me I think I've pulled out 3/4 of the hair on my head. I've hit a brick wall and am not moving forward at all.

These array elements
BlackNumChips = [0,5,0,0,0,0,5,0,3,0,0,0,0,5,0,0,0,0,0,0,0,0,0,2,0]
must be tied in with 26 point "objects" on the stage. Everytime someone clicks on a point, the corresponding element in the array must be subtracted by 1. Then, on the next click, one must be added to the corresponding point on the stage.

For the life of me I can't seem to find any documentation to help me along. I am an Actionscript newb I admit but I'm learning fast. Any help would be greatly appreciated. Thanks.

Bo

This Is Soooo Cool, Hows It Done
man this is cool......how do u think its done?

have a look

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

Projector Soooo Slow Opening...
ive made a projector for mac and pc.
they are really big due to lots of video content. (they are about 120mB each, and both of them must be burnt onto one cd)
as a result of this when the cd is inserted and the icon dblclicked, the file takes ages (a minute or so) to open up. im guessing it would take the same amount of time if i made it autorun.
this sucks, cause people are just not going to bother or think its broken or something.
short of compressing the fasheezie out of my videos, anyone know of anything i can do?


iaskwhy? i know you know!

ERROR #1009 .... Soooo Annoying ... Please Help
Hi every1,
I have an error that is really buggin me ! You know error # 1009 - null object refernece (Somthing like that ne way!) I debugged it and the lines in quotes are the 1's giving errors. Here is the code:

// scroll to the right or left if needed
public function scrollWithHero(){


Quote:




var stagePosition:Number = gamelevel.x+hero.mc.x;




var rightEdge:Number = stage.stageWidth-edgeDistance;
var leftEdge:Number = edgeDistance;
if (stagePosition > rightEdge) {
gamelevel.x -= (stagePosition-rightEdge);
if (gamelevel.x < -(gamelevel.width-stage.stageWidth)) gamelevel.x = -(gamelevel.width-stage.stageWidth);
}
if (stagePosition < leftEdge) {
gamelevel.x += (leftEdge-stagePosition);
if (gamelevel.x > 0) gamelevel.x = 0;
}
}


And this is the other piece of code:

// perform all game tasks
public function gameLoop(event:Event) {
// get time differentce
if (lastTime == 0) lastTime = getTimer();
var timeDiff:int = getTimer()-lastTime;
lastTime += timeDiff;

// only perform tasks if in play mode
if (gameMode == "play") {
moveCharacter(hero,timeDiff);
moveEnemies(timeDiff);
checkCollisions();

Quote:




scrollWithHero();




}
}

I really dont get why its giving this as I have code so that when the character gets 90 points to goto frame 4 and this error pops up then. Ne ideas what the problem is ???
Thanks in advanve

Flash Professional SOOOO SLUGGISHARRGH
Someone please help me out!;
I'm running Flash MX Pro on a Mac Dual 800 G4 and it is the most sluggish program I've ever used - The only other Aps I have open is my Mac mail and friggin iTunes - Photoshop ran faster with TWICE the Aps open, messing with files in the high Megabytes, as I'm dealing with files well under 1 megabyte in stupid Flash; This superSlowdown occurs on EVERYTHING within the program, including;

--jumping from one Flash document to another;
--entering and exiting symbols;
--exporting an .swf

I downloaded this Ap from Macromedia and the only Prefs. I've changed are my actionscript string + statement colors - thats all. My workflow is gravely slowed down and it is beyond frustrating.

Has anyone heard of/ dealt with this? Anyone have any suggestions?
Anything is appreciated.
Cheers,
K-vision

Uhhh Soooo Easy Im Just Having Brain Cramps HELP PLZ
hey guys,
this, i know, is so easy, but for some reason I cant figure out how to do it today.. its been one of those days....

i have a button within a movieclip merely for navigation. I want that button to send you to another scene, which I aptly named, scene2. my attempt at the code was...

on(release){
_root.scene2.gotoAndPlay(1);
}

nothing happens.... tried a few other methods.. one just made the navigation movie clip play again

HELP!! thanks in advance!
John

Preloader Takes Soooo Long To Load
hi can someone please help me. I'm pretty new to flash and am using 2004.

I've designed a site but for some reason the first frame of the preloader takes sooo long to load and by the time the preloader starts its already on 65% loading.

Can someone please tell me how to decrease the size of the 1st frame and make the objects in the movie load after the preloader itself is displayed.

Any help would be greatly appreciated because im stuck

thanks

My Flash Site Seems To Load Soooo Slow And Other Kinks
Hello. I have been reading these boards off and on for the past six months. I am So nervous to finally ask a question. I hope you will all be so nice and help me out.

I am working on creating an interactive photo album of our wedding pictures. I want it to be available on my website and I also want to burn it to disk so we can pop it into a dvd player and watch it too. I am trying to make it just like opening up a scrapbook.... with both pictures with captions and videos on some "pages" too. I have really gotten a great start BUT... I have been to similar sites and they seem to load so much faster than mine. Might I have a few problems with my preloader ?? Maybe its playing over and over unnecessarily? I would also like to make it more interesting but I am afraid it would then take too long to load!

I batched all my photos in Fireworks first. I did it with different specs in different "chapters"... so some pics look great and others look very rough. I was trying to compromise the quality of the pics for a faster load time, but it doesn't seem to have helped. I am not happy with the quality in some areas now.

Also the music loops back on top of itself and sounds awful the second time through? I think its happening because it starts again when it reaches the end and two versions are playing at once???? I have tried to fix it several times. Its very nerve wracking to listen to!! There are still lots of kinks. I want to further develop this project, but want to find out how to fix these issues before I go on to develop the other "chapters" of the scrapbook.

Here's the link http://www.Kastlekey.com/wedding/collection

Advance thanks to anyone who is willing to help me out! I really want this to be smoother than it is right now.

PS. This is the page within the collection that is closest to my final Hope. But the preloader just loops FOREVER. What can I do differently? http://www.kastlekey.com/wedding/bridesentrance.html
Here's the one that loads faster.
http://www.kastlekey.com/wedding/honeymoon.html

Movie-slide That Is Controlled By Buttons:HEEELPI Am SOOOO Lost
I am just SOOO lost.. I´ve been following a tutorial that I found on this site.
I simply want to be able to make a long jpeg (movie clip) slide inside a mask....I found the perfect example and everything went GREAT up until now...The only alternation I wanted to do, was to make the slide wider in with and longer in length-and now everything is just a MESS!!
When I click on the slider on the stage is says the width is 400 and length 1085,5. When I click on the jpeg image inside the movie clip (the image that is supposed to slide up and down) the property inspector says the jpeg is 900x1987 pixels…How is that possible??? How can an image that is inside a movie clip be twice as big as the movie clip??(When I click edit, and open the jpeg in photoshop, the jpeg is all of a sudden 400x900 pixels) Also, the corners of the slide are not 90 degrees…More like 35% and 80% . It is also impossible to write inside the movie clip, as the letters get “squashed” into each other-and the text line doesn’t get horizontal…

I have honestly NO idea whats going on…AAANY advice would be very much appreciated

This is the action script I’m using…:



_root.targety = 1;
// where the slider goes on load
speed = 4;
// the speed of the slide
slide_array = new Array("0", "-500", "-900", "-1300");
// the y position of the slider..
_root.i = 0;
_root.onEnterFrame = function() {
trace(_root.i);
starty = _root.slider._y;
vertikal = _root.targety-starty;
_root.slider._y = starty+(vertikal/speed);
};

_root.next.onRelease = function() {
if (_root.i == 3) {
_root.i = 0;
} else {
_root.i++;
}
_root.targety = slide_array[_root.i];
};
_root.previous.onRelease = function() {
if (_root.i == 0) {
_root.i = 3;
} else {
_root.i--;
}
_root.targety = slide_array[_root.i];
};

LoadMovie SIMPLE Question For Simple Minded Graphic Artist
OK! So this will be EASY EASY for all of you.

I need to load a seperate SWF file onto the stage on a level above the main swf.

the seperate SWF file is in the same folder as the original all located in the "flash" folder of the root directory.

How do I get th e outside SWF to load on top of the movie.

The original movie is called grid.swf the outside movie is called liquid-print.swf

If anyone can help me with giving me the code I'd appreciate it. I really am quite dense when it comes to coding.

Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)
******************

Hi,

I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).

I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):

callPopup = function() {
getURL(popup);
};


And then on the button in my component i have this:

on(press){
callPopup();
}

and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :

"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"


somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.

I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.

Hmm..i hope i made some sense here.

I will be very gratefull for some help...i'm totally lost on this one...

thanks in advance

Cheska

[F8] Very Simple Question, Very Simple Answer, I Hope. (Flash 8, Collisions)
Alright, so I've got my ball that moves up and down; it has gravity too. There are two things I want to do:

1. I want it to 'jump' when the UP key is pressed, rather than just accumulatively move upward.

2. I only want gravity to be applied while the ball is in the air(In other words, I basically just don't want it falling through the floor; however, want the edges to be the collision, not the center, and I also still want to be able to jump afterwards.

Thanks for any help, I don't need an explanation, I can figure it out by looking at the code. I'm going to attach a basic file with what I already have, please add the coding to it, then send the file back. Thanks for any help, and I apologise if this is hard to understand, or if I sound any bit rude to be asking how to do something; I don't mean to.

Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)

Hi,

I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).

I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):

callPopup = function() {
getURL(popup);
};


And then on the button in my component i have this:

on(press){
callPopup();
}

and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :

"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"


somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.

I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.

Hmm..i hope i made some sense here.

I will be very gratefull for some help...i'm totally lost on this one...

thanks in advance

Cheska

Simple Problem. Simple Answer? Arranging Windows W/flash
SIMPLE problem. | SIMPLE answer?
We're trying to have a Full screen CD presentation in flash that plays .avi's in windows media player, & opens up url's in a web-browser. The problem is the URLs AND the .AVIs show up underneath the flash, is there a way to have them open on top of the presentation?

Thank you.

Random Tweens - Simple Question, Simple Answer?
Hello, I have one swf with a few different motion tweens inside their own movie clips. I want to write some code to play only one of the tweens at random. I know how to use setInterval to get the process to repeat with a delay. But I just want a different/random tween to play with each repeat. I hope that makes sense.

I imagine this must be easy, but I'm having a tough time getting it to work. Random tweens, somebody please help.

HELP SIMPLE, SIMPLE XML-FLASH Load Into Movie Clip
This is so stupid, my first dive into XML, with a company project - a tutorial/training piece which will require mjultiple screens with questions, etc.

Anwyay- I can get the XML loaded into the root, and it works pefectly, but I'd like to put things INTO a movie clip, so that each new screen or slide is just he movie clip advancing.

How the HELL do I target the movie clip? I even tried setting a NEW variable in teh main timeline once the XML was loaded, but the best I get is not the value from the XML, but the path (e.g. "level0title1")

Any help? I imagine it's a really stupid, easy question, but I can't find anythign ANYWHERE to answer it.

Simple Problem Neeeds Simple Answer
hey i figured one of u geniuses here could help me figure this out much faster than me fiddling around so here goes.

All I'm trying to do is have a button (which is loaded in an MC in _level6) allow the user to switch between languages on the website. To do this I figured all I would do is have it 2 scenes...one in English and the other in Chinese. When the user clicked the toggle button I would have it go to the current frame in _level0 but switch to Chinese scene.

Get it? basically i want it to switch between frames but remain on the same frame number. Here is the last piece of code I tried using, but nothing seems to work (this code is connected to the release of the toggle button)


Code:
_level0.gotoandplay("Chinese", _level0._currentframe)
Anybody got any idea what i need to do??

Thanks for your help!
Brad

Simple Question, Probable Simple Answer
still in my quest for new flash knowledge and being a "noobie" in the world of flash i would like help.

whats the easiest way to create a Button that upon rollover creates a text discription in a text box. just so i can give a description of what the button is going to lead to....

ohh and i will have multiple bittons on 1 frame and 1 designated box for all descriptions

thanx in advance

Simple Button Mouseover Effect - I Know It's Simple, Just Don't Know How To Do It
I know how to insert an MC into the OVER keyframe of a button so that it enlarges, but how do you make the button decrease to it's original state on mouseout? ie, so it tweens back to it's original state.

Thanks
G

Simple Button, Needs Simple Action Script
Hi there,

I have made button in flahs mx. The over state of this button contains a short movie clip. My prblem is that I would like the button to remain on the down state on release (ie. once the user has released the mous button)instead of just going back to the over state as it does at present. Ideally I would like the button to go back to the up state on a second click.

I have pulled most of my hair out trying to put together the right bits of action script that would help me do this but to no avail, and having no time to learn action script properly I don't think I'll get there anytime soon on my own. Can anyone help me, pretty, pretty please ~?

Simple Question - Simple Answer FLASH MX
hi you good people out there. hope you could help me too. using flash mx, not beyond beginner yet.
about finishing my homepage with it. one problem is there:
i have a premade flash and changed graphics, etc. all no problem, the menu is included as well - i have changed the text of the 9 menus already, works fine - only when i use the preview - the original text appears when going over with the mouse... i changed the text visible to me - but cannot locate and change the text for the mouse over.
for instance the first two of the menu named

start
gallery

i changed it to

home
pictures

in the prview it show again
start
gallery
upon mouseover.

so i need to locate where to change also that hidden text (only active upon mouseover) to the same word.

if anyone of you could help me - i would be going into learning faster and finally getting my homepage up and running. if needed please e-mail me at

harton@harton.at

thank you so much!

....................I have uploaded a screenshot of it - clearly you can see, I changed the text yet have to located the original text below of it (?) and write the same text so that it shows up correctly upon mouseover.....

Simple, Simple... Input Field Question
OK, I have two input text fields, one is var x1 and another is var x2

onRelease I`m trying to use this code
score = Math.sqrt (x1+1) - Math.sqrt (x2)

It`s not working, check out attached fla file

Thanks folks

Simple Question *(I Hope) From A Simple Newbie...
Hi All... well, since this is my first post, I'll be cordial by saying hey and how are ya and all that later (sorry) but I'm in a bit of a pickle, or at least a cucumber that's been sweatting his luck for a while. I'm trying to create a news ticker that autoscrolls events accross the bottom of a movie, and allows users to click the text to take them to the appropriate page / site / picture or what ever (just need the link. I'm running into issues with the xml connector loading data dynamicly, I can get the file loaded, but I can't move it accross the screen. Basicaly, I'm looking for a basic news ticker tut or else the appropriate google keywords. Anyone? Anyone? Bueler? Please?

Thanks in advance.

Rick

Simple Questions...mean Simple Answers....right?
I just have a question about the various ways to loop in Flash.

now I know the for, and the while, and the do while,etc. My question is I can never get any of these loops to work unless they are on the main timeline. If I put a for loop inside a movie clip, i get nothing, or errors of the script continually running.

Just wondered if and how to use a loop script inside a movieclip without generating errors, and not having to revert to making the movieclip continually play two frames to get what I want.


curious.........

dduck1934

Simple Question.....any Simple Answers?
Hi...
A simple question...

From a button in a standalone Projector ( Flash) file how do I open an external HTML file....called ...xxx.html??
Can anyone ease my pain??..
THX

Simple Problem Simple Solution?
Can someone who is smarter than me (plenty of you out there ) solve my problem. I have a button on the timeline that has a gotoAndPlay action. I have another action that advances the timeline to the nextframe to execute some actionscript then it returns to the previous frame where the button is. The button works the first time but after going to the nextframe and then coming back it loses its functionality. What can I do to restore functionality in my button. Oh i'm using MX but publishing in 5. Can someone please save the day?

million thanks

Simple Problem, Simple Movie
i have a simple movie (using MX) with one scene and a handful of movie clips on individual layers. i am using this to jump from clip to clip in main timeline

_root.MCmyclip.gotoAndPlay (1);

the movie plays fine the first time through. but when i need to return to the first MC again it plays but then stops and does not move on to the next clip? like this:


in the final MC i have:
_root.MCfirstclip.gotoAndPlay (1);

it goes to first clip and plays but does not moveon when encountering this action for the second time:

_root.MCsecondclip.gotoAndPlay (1);

i don't understand why this is happening. it should just loop continuously...right?

Simple Question - Simple Answer?
I'm looking to do something basic to start off with Flash - and I'm hoping this is the project. Basically, I'm looking to have a movie with an image (or images) that will fade in and out over a set period of time - as seen in this website.

http://www.westonfl.org (The pictures on the left - yes I know, this was done by 2advanced....)

Any help you can give, would be great. The more detailed the better.

Talk to me like I'm 5.

Need A Simple Script For A Simple Button
Hi,

I've got this simple button, that when I roll over it has a clip that fades in to orange, but it won't fade out when I roll off the button. How do I get the "orange" to fade out when I roll off the button?

I've attached the file.

Thanks for your help.

Blastbum

Simple Question With Hopefully A Simple Answer.
Ive only just started making games in flash and im wondering how i can make it so my little birds eye view character can be stopped from running into buildings... in other words i want to make my buildings so you CANT walk on em or under em!..

haha im hella nOOb i probably sound like a loser.. but if you could waste your time on me it would be greatly apreciated!

CHEERZ 1337 Hax0rz.

Simple Problem In Need Of A Simple Solution
I know this is long...grab the FLA and test it, and it will all make perfect sense. Thanks in advance for the help.

I have a vertical menu that has one arrow (A1) that eases to the selected section after you click on it, and another arrow (A2) that eases to each button when you rollover it. So you rollover a button, A2 eases to it, click it, and the A1 eases to that. I have A1 and A2 set to ease to the y value of the button onPress. Here's where I run into the problem...The menu items slide up and down to reveal the content, so when I click on a button that has moved down to the bottom, the button itself eases up back into it's orignial position, as each arrow does the same thing. The way the functions are written to control all the motion only controls movie clips by buttons...so the top item in my menu is a button and works fine, since it never moves down. But I had to creat invisible buttons to control the motion of the other "buttons" in the menu. So pretty much to keep the right actions with each button, after pressing it, the invisible button moves to the new position of the menu item. This is what causes the problem. A2 is set to ease back to the y value of A1 on rollout, pretty much moving it back to the current menu item. So after pressing the buttons, A2 wants to ease right to the y value of A1, not to the y value it was told, which means the arrows don't line up like they're supposed to. This can be fixed by using onPress and holding it down. The clips ease right into position, but obviously this can't be used realistically. In theory all that would need to be done is to have the invisible buttons wait until the arrow was in position to move up there, that way the clip wouldn't react to the OnRollout before the OnPress.

I know this was long and confusing...I appreciate all your help very much, this has been stumping me for a while now!

Simple Or Not So Simple GetURL() Problem
ok basically i am trying to link a button so that when pressed it will bring up a javascript window, i have tested it and it the button works fine when used with regular sites

i.e.

on (release) {
getURL ("http://www.watever.com");
}


but when i try to implement Javascript into the code it just does nothing here is what i am using :-

on (release) {
getURL ("Javascriptopupwindow(1)");
}

<head>
<script language="javascript">
function popupwindow(index)
{
if(index==1)
{
site="http://www.whatever.com"
}

window.open(site,"newwindow","toolbar=0,location=0 ,directories=0,status=0,menubar=1,scrollbars=0,res izeable=1,width=100,height=200")
}
</script>
</head>


any help would be greatly appreciated cause i'm stuck

Rich

SIMPLE Simple Actionscript Question
Hey guys this is an easy one, but I don't know it.

I want to create a dynamic text box that says page 1 (or just 1). And every time I click the next button (which also controls something else), it should add 1. The limit is 4 pages so, if it exceeds 4, it should back to 1.

Thanks for the help

Simple Loadvariables Task Not So Simple... Why?
So I've got a site that I've built (see it here: http://www.artinmusic.com) and it uses a function I've written called 'changer()' to swap out different events using a folder with textfiles inside. So I plug in the name of the folder and the function pulls the info from "folderName/title.txt" , "foldername/description.txt" etc. Nevermind that I probably should have done this (much easier and less painless) with XML, that'll have to wait for the next round.

So- I want to have a variable that selects which event to display first, and I've stored that variable in a text file called featured.txt. It reads: featured=20050916

I figured I could just go :

loadVariables("events/featured.txt",this);
changer(featured);

but not so. I got a string of errors, as changer tried to load 'undefined'. ( Error opening URL "C:/etc/etc/undefined/description.txt")

Here's the code:

function changer(changerVar) {
/* DESCRIPTION BOX */
descriptionVar = "events/"+changerVar+"/description.txt"
getDescription = new LoadVars();
getDescription.load(descriptionVar)
getDescription.onLoad = function (success) {
if (success) {
/*trace("description Loaded")*/
descriptionBox.htmlText = this.description;
descriptionBox.scroll = 0;
} else {
trace("not loaded")
}
}
/* NOW TITLE BOX */
titleVar = "events/"+changerVar+"/title.txt"
getTitle = new LoadVars();
getTitle.load(titleVar)
getTitle.onLoad = function (success) {
if (success) {
/*trace("title Loaded")*/
titleBox.htmlText = this.title;
/*titleBox.scroll = 0;*/
} else {
trace("title not loaded")
}
}
/*now Date box */
dateVar = "events/"+changerVar+"/date.txt"
getDate = new LoadVars();
getDate.load(dateVar)
getDate.onLoad = function (success) {
if (success) {
//trace("date Loaded")
dateBox.htmlText = this.date;
/*titleBox.scroll = 0;*/
} else {
trace("date not loaded")
}
}
arImageVar = "events/"+changerVar+"/arImage.txt"
getarImage = new LoadVars();
getarImage.load(arImageVar)
getarImage.onLoad = function (success) {
if (success) {
arImagebase.loadMovie(this.arImage);
} else {
//trace("not loaded")
}
}

image = "events/" + changerVar + "/" + changerVar + ".jpg"
loadMovie(image, imagebase);
}

loadVariables("events/featured.txt",this);
changer(featured);

A friend of mine said he got it to work by using the code I'm using to load these variables into text files and putting the featured variable into a dynamic text file in the _root level and then calling the function like this:

featVar = "events/featured.txt"
getFeat = new LoadVars();
getFeat.load(featVar)
getFeat.onLoad = function (success) {
if (success) {
trace("featured Loaded");
_root.featured = this.featured;
trace(_root.featured);
/*titleBox.scroll = 0;*/
} else {
trace("featured not loaded")
}
}

changer(_root.featured);

And it does load the variable in the dynamic text box, but it comes back with the same error, except instead of undefined it comes back with "cannot load URL C:/etc/etc/events/_level10.featured/description.txt"

Anybody have any idea? PLEASE somebody help me out...

Simple Questions From A Simple Person
Hi all...

I am new to flash... The only actionscript I have actionally used is "stop ();" Anyway... I'm using flash cs3... It seems a fantastic tool to a newcomer like me!! Firstly, I'll show you what I've managed to do so far...

This is my first movie...
http://www.allnationschessleague.com...tpagewhite.swf

An this is the header I would like to put at the top of the website pages:
http://www.allnationschessleague.com...ANCLHeader.swf

Well, my first question (for I am sure to return to this site for more advice, is how do I link the flags at the top, to the relevant pages. Please check out the following page to see how it should work:
http://www.allnationschessleague.com
So as you can see, the flash needs to link to php pages... for example the British flag needs to link to 'setlanguage.php?lang=en' etc... so how do I set those links for the flags?

Thank you for answering my post )

Jeff

[CS3] Simple Image Loop Not So Simple
I'm relatively new to Flash - I can do some basic animations but very little actionscript.

I'm looking for a tutorial to have a set of images scroll across and repeat themselves.

this is what I'd like... example

I can do a continuous loop of a simple background image with the 'goto' function, but I can't even find a tutorial on how to repeat individual images.

Any suggestions?
Thanks,
JTN

Simple Answer For A Simple Question?
ok what this code does is it rotates my mc (mainclip)(it has 3d objects) as the mouse moves left or right on the x-axis.... and it works:

stage.addEventListener(MouseEvent.MOUSE_MOVE,myFun );
function myFun(event:MouseEvent):void
{
mainclip.rotationY= stage.mouseX;
}


...but what if i wanted to stop it rotating after it has rotated a certain amount to the left or to the right?

at the moment it rotates 360degrees in each direction, and i want it to rotate about 60degrees in each direction........

thanks.

Simple Question...simple Answer
ActionScript Code:
var prslide:slide1 = new slide1;

ok, say i din't want to have it always be slide1. how can i change it at runtime.
for instance make a loop that incremented the value of and did something like

ActionScript Code:
i++
var prslide:("slide"+i.toString()) = new ("slide"+i.toString());

this used to be easy in as2

Simple Mathematics = Apparently Not So Simple
I'm really having problems with the simplest of conversions here. All I want to do is get a number from a text box and convert it.

I have this var at the top: var Speed:String;
(I tried putting number instead of string, but it threw up errors all over me)

Then inside a function I have...


ActionScript Code:
continueButton2.addEventListener(MouseEvent.CLICK,secondStage2);
function secondStage2(Event:MouseEvent):void {
    Speed = speedInput.text;
       
if (speedUnit.value == "Knots"){
    var speedConversion1 = (Speed * 1.85);
    Speed = String(speedConversion1);
}
}

I've tried a lot of different variations and are yet to have any luck, can someone tell me what I'm doing wrong?

Oh yeah, the error I keep getting is 1067: Implicit coercion of a value of type String to an unrelated type Number.

Cheers

Simple Button Listener Not So Simple
Here is code that works fine without the Listener:

myButton_Zoom = function () {
bt_zoombig_mc._visible = !bt_zoombig_mc._visible;
};

Now when I try to add a listener it will not listen. Here is the code with the Listener:

listener = new Object();
listener.myButton_Zoom = function(objEvt) {
bt_zoombig_mc._visible = !bt_zoombig_mc._visible;
};
myList.addEventListener("myButton_Zoom",listener);


Can anybody please tell me why?





























Edited: 12/25/2008 at 11:26:59 PM by W_Bell

Copyright © 2005-08 www.BigResource.com, All rights reserved