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








Finally Released My Game, But I Need Your Help With Coding Stuff


Ok so i released my game today, you can play it at Geopersia.com
Well if you see the game you can tell its a tile game, but there is one big problem and its the depth one, i am using duplicateMovieClip() i am incrementing the new movie clip by 1 and its depth by _root.getNextHighestDepth(), so i have been trying every form of hitTest() to try to figure out a way so that the tiles cant go under/over each other, i want it to look 2D...

there are almost an infinite possibilities of tiles, all with different names and everything, what should i do?

I dont think there is an answer to this but if you can help i would greatly appreciate it.

p.s. also snapping objects would be great, but i think thats really impossible with how this game is set up.

p.s.s i also have used sharedObjects but i have no idea on how to use it with duplicateMovieClip, but i do have an idea can i save the whole picture using sharedObjects and the person can load that picture

like it saves everything in a shared object i think there is a exportBitmap something like that. Saving is one of the biggest parts of my game




FlashKit > Flash Help > Flash General Help
Posted on: 09-06-2008, 02:14 PM


View Complete Forum Thread with Replies

Sponsored Links:

Fractal4D Finally Released
Get the release here! http://mattkenefick.com/blog/2008/11...first-release/


Originally mentioned in this thread as a concept: http://www.kirupa.com/forum/showthread.php?t=312712

View Replies !    View Related
Text Flow Component Being Released (finally)
Keep an eye out for a new component being released on the Macromedia Exchange and on FlashComponents.net -- the component is called the TextFlow component and can be used to flow text around buttons, movie clips and text fields. In addition, text will flow between textFlow components and will work with both static and dynamic text.

For an example, go to www.architekture.com/example_textflow.html

We're quite excited about this component because we've been able to use it to do some pretty phenomenal layouts (if you go to www.architekture.com and browse around, every single screen that you see is using this component in varying ways, and all of the content on our site is database-driven).

We'd love to find a highly visible place to publish articles on how to maximize use of this component -- let me know if you know of any individuals to contact.

Also, we'd love to help other companies actually deploy this type of content-publishing technologies, so please contact me directly if you have a client that would be interested in powerful dynamic type layouts. (720) 236-3650

Thanks a lot and I hope that everyone enjoys the component!

View Replies !    View Related
My Soukuban Game Released~
it is version1.0 now~

any suggetions will be helpful for me.

http://www.actionscript.org/forums/a...=&postid=52225

View Replies !    View Related
Finally; First Flash Website Finally Done
Hey Guys... just wanted to let you know after all this time..

I finally finished a huge flash project, and I just finished it. Got the approval and now it is live.
This is my first flash website I've created and it turned out very good from what everyone is telling me. I think I did a pretty good job for a first time. Can't wait to start my next flash website now.

WOO HOO! Finally

Thanks again guys for all the help in these forums, and helping me get thru this.

Here is the website I am referring too.
http://www.3vmedia.com

View Replies !    View Related
Coding A Game.. Pls. Help..
guys.. i've been creating two small (very small) games..

1. Drag and Drop (photo fit):

The user will be given a face to look at.. after some time he needs to assamble the face he saw.. this will be by dragging and droping..once it is the correct face, he will go to a new page which says 'well done'.. that's it.. now i've done the design part and a bit scared about the coding section... can anyone pleaseee help me by sending me similar type tutorials / sample fla's / examples / links.. thankzz..

2. Quiz:

This is a straight forward objective type questions.. the user will not be allowed to the next question until he gets the first one right.. please send me similar type tutorials / sample fla's / examples / links..

Jeswin

View Replies !    View Related
Game Coding
I am trying to make an action game for my site, and so far, i cant even get my character to shoot. I have no idea whats wrong with my code, so can someone please help? I have the game attached.

View Replies !    View Related
Help With Game Coding
In a game I am making, when the player bumps into a wall, I want the timeline to jump to the Game Over scene.

The code is in a movie clip that is placed on the main stage, and is:


Code:
onClipEvent(enterFrame) {
if (this.hitTest(_root.b4)) {
_root.gotoAndPlay("game over", 1);
}
}


If I take out the "_root.gotoAndPlay("game over", 1);" and replace it with a trace command (just to see if it works) it works fine.

What code should I use so it jumps to the Game Over scene?

View Replies !    View Related
[F8] I Need Some Game Coding Help
Hey guys, I've been using flash for a few years now, but I've never had any formal education with it. Most of my animation/drawing techniques are good, but I'm not too knowledgeable with actionscript. My school has asked me to make a game in flash, and i need some help with the coding. One thing i need is coding to make a text box display how many milliseconds have passed after a certain frame (a score), and i also need a button code to rewind my timeline X amount of frames on release of a button. If anyone can give me any assistance it would be much appreciated!

View Replies !    View Related
Game Coding
I have a requirement to write a pacman type game, but this seems quite
complicated.

Could you kindly point me towards any tutorials on moving something around a
grid and recognising walls. And also any tutorials for enemies following you
around.

Thanks for any pointers

View Replies !    View Related
Coding A Game
I don't know if this is supposed to be here, or under "tutorials". But anyhoo, i'll just post it here...

I want to make a game, similar to pacman. Now, I know how to move the player using keypresses, that's easy, but how do i stop it when it hits a wall?
I was thinking of making the "levels" as one big jpg or something, and then make another invisible layer on top of that gfx to make the walls, so I have one overal wall to hit into...

Also, I want "pickups" to appear randomly in the maze as u pick up other stuff...

Does anyone have some tips/pointers to start out this project?
Any help would be greatly appreciated...

View Replies !    View Related
Game Coding Competition
CODE the best game and see who's the winner!!!

View Replies !    View Related
Newbie Game Coding
yo guys, im new here, im lookin at game codin for flash, wanting to make an interactive space invaders type game to start then when im good at all the coding i can get into more advanced rpg type stuff. first things first, i wanna know how to get a guy to move left, right, and shoot using arrow keys and space bar, if neone has a good tutorial can ya post the URL or if its easier just to tell me post it here, thanx

View Replies !    View Related
Problem While Coding A Game
I'm trying to make a pong game, and I already got the concept but now I'm trying to add items, and I want to know how to make them appear randomly throughout the game. I made this but it doesn't seem to work:
http://www.filedropper.com/pong
Can someone help please? Thanks in advance.

View Replies !    View Related
I Need Help With Coding For A Game I'm Making
I'm creating a game with two ships that fly around trying to shoot one another. It is two player with one ship using One ship uses the arrow keys to fly, that one works. The other, which uses the "A", "W", "S", and "D" does not work.

Here is the code for the ship that uses the arrow keys:

ship2.onEnterFrame = function() {
Key.isDown(Key.UP) ? (this.speed = +7.5) : Key.isDown(Key.DOWN) ? (this.speed = -3.75) : null;
Key.isDown(Key.LEFT) ? this._rotation -= 12.5 : Key.isDown(Key.RIGHT) ? this._rotation += 12.5 : null;
this._x<=0 ? this._x=1100 : this._x>=1100 ? this._x=0 : null;
this._y<=0 ? this._y=800 : this._y>=800 ? this._y=0 : null;
this.speed *= .94, this.roto=this._rotation*(Math.PI/180);
this._x += Math.sin(this.roto)*this.speed;
this._y -= Math.cos(this.roto)*this.speed;
updateAfterEvent();
};

This is the code for the A,S,W,D ship:

ship1.onEnterFrame = function() {
Key.isDown(Key.119) ? (this.speed = +12.5) : Key.isDown(Key.115) ? (this.speed = -6.25) : null;
Key.isDown(Key.97) ? this._rotation -= 7.5 : Key.isDown(Key.100) ? this._rotation += 7.5 : null;
this._x<=0 ? this._x=1100 : this._x>=1100 ? this._x=0 : null;
this._y<=0 ? this._y=800 : this._y>=800 ? this._y=0 : null;
this.speed *= .94, this.roto=this._rotation*(Math.PI/180);
this._x += Math.sin(this.roto)*this.speed;
this._y -= Math.cos(this.roto)*this.speed;
updateAfterEvent();
};

I believe the numbers are the correct ascii numbers, but I am unsure. Any help you could offer will be greatly appreciated.

Thank you!

View Replies !    View Related
Coding For A Flash Game
Hi i'm trying to make a game in flash for a mobile phone.
it's pretty simplistic game but not too sure how to code, any help would be great. the file attached is a basic outline of the
game.

View Replies !    View Related
Game Coding.. Pls. Heeeelpp..
guys.. i've been creating two small (very small) games..

1. Drag and Drop (photo fit):

The user will be given a face to look at.. after some time he needs to assamble the face he saw.. this will be by dragging and droping..once it is the correct face, he will go to a new page which says 'well done'.. that's it.. now i've done the design part and a bit scared about the coding section... can anyone pleaseee help me by sending me similar type tutorials / sample fla's / examples / links.. thankzz..

2. Quiz:

This is a straight forward objective type questions.. the user will not be allowed to the next question until he gets the first one right.. please send me similar type tutorials / sample fla's / examples / links..

Jeswin

View Replies !    View Related
Game Coding In Flash 8 Professional - HELP
I'm relatively new to flash but am a quick learner. Have been using the program to a reduced level of its full potential for about 3 months.

I have decided that, despite my limited knowledge, I would like to code a game in flash. A kind of a challenge. Deal Or No Deal UK being my game of choice.

At the risk you do not know of the game, I will explain breifly below. If you know it, then skip past all the red text.

There are 22 boxes with 22 different amounts of money in each of them, ranging from 1p to £250,000. A player has to choose a box to begin the game with. This box is only recognisable by its number, between 1 and 22, inclusive.

The player then participates in several rounds of selection. The player would choose a box to be opened and the amount of money inside this box would be eliminated from the board upon which the remaining amounts are shown.

The first round would consist of choosing 5 boxes. The values within the 5 chosen boxes are eliminated from the aforementioned game screen, and after the boxes have been chosen and opened, an offer by a "banker" would be given via telephone.

The offer is based on the players' previous gameplay as well as the reamining amounts but I feel for this flash game, a mean or average value could be easier to use. (Mean calculated by adding up all remaining values and dividing the total by the number of remaining boxes)

The next 5 rounds consist of just 3 boxes being chosen and eliminated. The bankers' offer comes after each of these "choice sections" of the game. The bankers' offer will be different each time based on which boxes are left. If the player has eliminated a lot of the higher valued boxes, the offer will be lower. The banker is trying to offer an amount to buy the box that the player selected at the start, off them. If the player has eliminated a high value, for example £250,000, the banker knows this value cannot be in their box.

After each round the player will have to decide whether they will "deal" or "no deal" and either accept the offer the banker is giving, or turn the offer down hoping they can eliminate the lower values remaining, thereby increasing the offer the banker gives them next round.

If they deal before the game is over, they continue on the game to find out what they COULD have won had they said no deal to the offer they accepted.

Having said "no deal" to the last offer, and once the player is down to their own box, one remaining box to choose from, and two possible values left on the game board for the contents of the boxes, they must open their own box and accept the value within it.

Sometimes the banker will offer them a "swap" in which case they can choose which of the two boxes they want to have as their own if they "feel" that the larger of the two remaining values resides in the other box. Perhaps a 1 in 4 chance of a swap being offered would be suitable for the flash game?

I have desinged the first scene which introduces Noel Edmonds (presenter of the show on Channel 4) and the game setup. I am putting each "choice section" on a different layer. For each box selection required in a specific round, there are that many frames. For example, round one requires 5 box choices so there are 5 frames on the layer and I have put a stop(); command on each of the frames planning a gotoAndStop(); command to move onto the next frame when the box has been chosen.

I will design a box for each of the numbers, 1 to 22 and save them as seperate files. The problem I need is to be aware whether this is the right way to go about things or if there is an easier way to design and code the game.

I also need help with setting up an array so that each of the values can be put as an arrary item. Then I will need some sort of random selection and elimination code so that when a box graphic is clicked, a random value from the array is shown then eliminated.

I also need to know a mean calculation code.

So I need:

To know if I'm going about this in the right way

If not, perhaps some tips would be in order?

To know how to put the game together - The design bit is fine for me, just the coding goes over my head - I never know where to start and where to put the finished code

How to set up an array and get a randomisation and elimination thing set up - If this is the right way to go about it

How to code a mean calculation.

Thanks for your time everyone!

View Replies !    View Related
AS3 Forum Game (group Coding Experiment)
Quote:




Tom Fulp: Here's a cool idea: An AS3 Code Collab! If this collab is a success, the end result will be a Flash submission made entirely from AS3 code, put together by a whole bunch of programmers who add a few lines at a time. Check it out and MAKE IT HAPPEN!




Its kind of like a little AS3 exercise and game. If you'd like to participate head over to this newgrounds forum post ^_^

http://www.newgrounds.com/bbs/topic/966360

View Replies !    View Related
Hard Coding Vaule In A Game - Faster?
Hi,

can someone tell me if hard coding the values is faster, as opposed to ref a var every time you want to check, for example, if a ball hits a boundary?

I have tried it both ways and the movie goes a lot faster with the hard coded value in. Is this normally the case with hard coded values? Want to know because every thing i read tells me hard coding is bad, but if your game runs much faster with hard coded values. Then should,nt hard coding be more recommednded?

Confused..

View Replies !    View Related
Rpg Game Typed Stuff (will Be Big Soon)
orrite i dont yer have a site to upload all this stuff to ill explain my problem i have made the man and the money but still he can walk for ever i need to put walls in what err a.s can i use to make it stop him (all the way round)

View Replies !    View Related
Flash Game (hitTest Stuff)
I have a movie clip called "kyle" inside of "kyle" is "kyle_head" and "kyle_body". I need my crosshair (named "cross") to detect if it has hit the mc "kyle_head" or "kyle_body" the actions will be different for each detection but I dont know how to use the hitTest method very well and If some one could help me out I'd be very gratefull.

*If you post code, plz use comments.

View Replies !    View Related
Returning Released Button To Original State When Another Button Is Released
i am playing with 3 buttons, 2 duplicated from the original and each of them are movies. when mouse over a button it pushes it down, when you mouse off it pops back up, when you click it it fades from blue to red. i want to make it so when you click one of the other buttons it will return the button to frame one where it's popped up again, how should i do this? im sure it's action scripting but it seems to be beyond me. im on aol as ironmikec34 if that will make it easier to explain, thanks!

Mikey C

View Replies !    View Related
Help With Game. SWF Inside. User Selection Stuff.
i'm making a tribute game for my school project.
here is a rough rough... you have to jack the car up before you can change the wheels =)
http://members.cox.net/rwaiche/race

My problems is that....the user will pick different options for the car. After the action takes place I want it to go back to the main stage, with the users choices now becoming the default. I dont know the term for this.

Basically when you click the car jack it sets it to sym1 then goes to frame 2
In frame 2 you select a wheel you want. It sets that wheel to sym2 then it will play the movie clip of the wheels changing. When the wheels are done changing, I want it to go back to the main stage, but with the new wheels on it.

Here is basically what my scripts looks like. So far, i could be way off.

FRAME 1

stop();

jack.onRelease = function() {
sym1 = "jackicon";
gotoAndPlay("main", 2);
};


FRAME 2

stop();
wheel1.onRelease = function() {
sym2 = "wheel1icon";
gotoAndPlay("main", 3);
};
wheel2.onRelease = function() {
sym2 = "wheel2icon";
gotoAndPlay("main", 3);
};
wheel3.onRelease = function() {
sym2 = "wheel3icon";
gotoAndPlay("main", 3);
};


FRAME 3
///////THIS IS WHERE IT picks which frame to go to. It shows the new wheels rolling on to the car///////

if (sym1 == "jackicon" && sym2 == "wheel1icon" {
gotoAndPlay(4);
}
if (sym1 == "jackicon" && sym2 == "wheel2icon" {
gotoAndPlay(5);
}
if (sym1 == "jackicon" && sym2 == "wheel3icon" {
gotoAndPlay(6);
}

FRAME 4 or 5 or 6
///////this is where it plays the wheel change. After this I want it to go back to the main stage with the new wheels on.///////


Thanks for any advice. I could be coming at this from the wrong perspective, so feel free to let me know. Thank You.
I also will be using this to change the color of the car...i assume its the same.

Thanks so much

View Replies !    View Related
Button, Released Or Not Released...
would someone be as so kind to show me an example of how one might code to know if a button has been released and if that button has been released to stay in its "off" state.

i have a bunch of MC's with empty buttons and when you rollover, the parent movie gotoAndPlays frame 2. when you rollout it reverse plays these frames. on release i want it to stay put at the off state. and when you rollover again i don't want it to go back to frame 2 and replay. does that make sense

i think i could probably figure this out eventually but i am just so tired of looking at it and having it not work properly.

it'd just be wonderful to hear other solutions, techniques and any suggestions to maybe get a new perspective on this. thanks...

View Replies !    View Related
Coding A Simple "Guessing Game", Any Help Is Highly Appreciated
Hello, I made this very straight-forward guessing game (if you guess 3 the output window pops up and says "nice guess") My challenge is this:

Add to it so that the user is told if the guess is too high or too low. Make the range of the possible guesses a random number between 1 and 1000. You can use this code to generate a random # between 1 and 1000. Put it in the first frame of the timeline:

SecretNumber=Math.round(Math.random()*999+1);

The .fla file is attached, Thanks for any help in advance I'll be here the entire time!

Kelly M.

View Replies !    View Related
Trouble With "MEMORY GAME" Coding
I am trying to do a memorygame, the 1 where u click on two and if they match they stay open else they will go blind again, till u solve it.

Now, I am having trouble finding a way to assign the 8 diffrent pictures, to two random bricks out of 16.

i tried all kind of stuffs, closest was the for loop that slice the array holding the bricknumbers, and pushing the imagearray.
anywayz, more complicated to tell you, than it really is, hopefully.

Give me an example idea, and do it in 5.0 AS because i dont use MX so far.

View Replies !    View Related
YES Ive Finally Done It
iv finally created my website!!!!!!! woohoo!!!!!!!!
http://www.geocities.com/ilikezelda2
(P.S i know the email link doesnt work yet!)

View Replies !    View Related
Here It Is Finally
I can't get everything to work the same way...you'll see once you download it.

View Replies !    View Related
I Finally Got It
some of you may remember a post i made several times a while back about getting a movie clip to play both forwards and backwards infinately. this is for a virtual tour that i'm doing with panoramic views that are in mpg format so i need the user to feel like they are spinning around in the room (no i dont have quick time vr) so the movie needed to play in both directions without skipping or stopping at the end.

i finally got it!
an awesome guy on http://www.friendsofed.com 's forums for flash named Pickles23 helped me out with this one. i implemented his solution and got it to work.

here's the file if anyone is interested or ever has a need to make a panoramic view.

View Replies !    View Related
Floating Picture Thinggy... Does Stuff... Stuff I Don't Know How To Do...
Check this out. I'm making a website and at the bottom of the site i want floating pictures. They not only float but they continue to move to the left. Untill you place the mouse over the pictures and then you can either make them go left or right with the speed varying as you go further to each side. Then when you select them there is a loading process and the pictures come up in a cool way and the rest is history. Now here is the problem... how do you do all that stuff. I'm talkin' 'bout all of it. Make them look like they float, make them go left and right and default left, and the... well the selection I can manage. Assistance would be quite nice. Thanx alot whoever answers this.

View Replies !    View Related
Why Is My HTML Stuff Messing With My Flash Stuff?
Hi fellas, I have an HTML page that has the regular drop down menues and some buttons in them. Nothing fancy. I also have a Flash banner withing the HTML page. The problem is whenever I go over the buttons in the HTML portion, my Flash banner pauses until I move the mouse away from any HTML buttons. Why would that be?!
Many thanks in advance.

View Replies !    View Related
Something Cool From Me, Finally?
Well, my client has been bugging me because his site-in-progress won't open properly on various resolutions, so I wrote a little thing as an intro that might be neat for some people. I know that usually browser sniffing is automatic and behind the scenes, but for someone like me, who rarely maximizes a browser, I opted for a more visual and 'choice driven' approach. One of the books I bought introduced me to MX's ability to state the size of the window, and I just went from there.

If you look at the swf, resize your browser to the dimensions someone with a 640x480 display might have, an 800x600, and anything over that (i.e., 1024x768 and over). It automatically tells you what size your browser is at (not your resolution per se, if you consider the fact that you may be browsing with a window that's only 3/4s of maximum for your resolution); it also gives you a recommendation as to what size to open the new window to launch the page at.

For me, this means, if you've typed the address in from a window sized as you'd normally size it, even if you are at a 1024x768 display, but like small windows, then you will be prompted to open the site at a size similar to that.

I don't know if it's of value to anyone or not, but I'm ALWAYS the one asking questions, and this time I did something cool myself. I hope it's not just me.

I've included the .fla as well.

I really just want feedback, since it's so simple, but I'm still proud for some reason.

My browser res numbers in the if statements may be off a bit, but I haven't played with that part yet, just got home


http://members.rogers.com/sgphoto/index.html

http://members.rogers.com/sgphoto/index.fla


Shawn

View Replies !    View Related
On The Path Finally
Okay Im making some progress finally. However when I teset it never plays the preloader animation, even when I Show Streaming.

Heres what I have

Frame 1

stop();
loadMovie("pre.swf","mc_holder1");

onClipEvent (enterFrame){
framesLoaded = Math.ceil ((_parent.getBytesLoaded() / _parent.getBytesTotal()) *100);
gotoAndStop (framesLoaded);
info.text = framesLoaded + "% completed";
if (framesLoaded >= 100) {
_root.gotoAndPlay(2);
}
}

Frame 2

stop();
loadMovie("intro.swf","mc_holder1");

onClipEvent (enterFrame){
framesLoaded = Math.ceil ((_parent.getBytesLoaded() / _parent.getBytesTotal()) *100);
gotoAndStop (framesLoaded);
info.text = framesLoaded + "% completed";
if (framesLoaded >= 100) {
_root.gotoAndPlay(3);
}

Frame 3

stop();
loadMovie("menu.swf","mc_holder1");

View Replies !    View Related
Finally, A Test ...
Hi all,

I finally had a chance to mock up what I am having problems with. The attached is an archive of the fla file. Note, I have 3 buttons, the first 2 are supposed to link to 2 separate scenes (destination 1 and destination 2) As you will see, they both go to destination 2, but nevertheless the transition proceeds in the manner I desire - they finish playing scene1 and go to another scene.

The 3rd button (product development) uses labels and roots as previously suggested and still does not work.

Any suggestions?

THANKS!

View Replies !    View Related
Can Someone Finally Explain This ?
no one has really given me a good answer or posted a helpful fla. Basically if you go to any of these sites:

especially this one:
http://www.unfortunateeventsmovie.com/intro.html
(animated RASTER preloader)

http://troymovie.warnerbros.com/
(raster image in preloader)

http://avp-movie.com/
(large raster images in background)

and finally sincity movie website has a preloader between scenes that's a raster gun and animated.

HOW do all these preloaders show up 1%-100% ??? when I put just a raster image in the background my preloader shows up at 40%+, and NO I don't have any linkage or music/mp3 streaming and I even do it in a separate scene that will go to next scene when preloader is done.
would be great if someone could post a similar preloader to the unfortunateevents website - at least a raster that's animated and shows the preloader going from 1-100..

View Replies !    View Related
Finally Upload From Php To XML To SWF :)
hi all i try alot to upload from php to XML to SWF

i write a php file to export the urls of my vcard script then i write in flash this code


Code:

var theXML:XML = new XML();
theXML.ignoreWhite = true;

theXML.onLoad = function() {
var nodes = this.firstChild.childNodes;

myLoad0.contentPath =nodes[0].firstChild.nodeValue;
myLoad1.contentPath =nodes[1].firstChild.nodeValue;
myLoad2.contentPath =nodes[2].firstChild.nodeValue;
}

theXML.load("http://3afooor.com/filename.php");
but i confused when i want to write the for loop to the loaders i have

i put 3 loaders in the page give them instance names then manually assign the nodes of XML for them

so hoe will be the for loop

this is the final swf file after uploading the images from the DB

http://3afooor.com/php/fainally1.swf

also i dont know why the loding is not work but it is not important at this time


the toturial is in the gotoandlearn website which is very strong site

thx alot again and i am waitting u

View Replies !    View Related
Finally Flash SEO
I've been working on Flash's "flaws" for 5 years and why they were causing SEO problems. Finally I've found a way to fix them all. Today I received my proof from Google and Aol that my techniques worked!

First problem the dreaded back button. I've taken this script from free scripts on the web and floating around. I molded it to fit my style and my technique. My sites now use the browser history to go back through and all flash website. This was a major SEO problem before because some search engines wouldn't give you any position if you couldn't use the back button.

Second problem, the detection system. The older flash detection systems would take you back through the flash detection system with one click. Google gave you 0 rank if your site did this. With the new detection system and swfObject.js we don't deal with that anymore. Also the click to activate is gone, ahh nice!

Third problem, deep linking. This works now as a bonus to the back button. I can link to my site's portfolio page by sending this link out, Ohio Web Design
Again this is an all flash site embedded into one html page.

Fourth and biggest problem, SEO in general, no content to crawl. Well using the swfObject technique your html alternate content gets replaced with the Flash file if the Flash detection is passed. Why is this important? Google doesn't follow the javascript files to load your flash content so they use your alternate html content to rank your site. Of course you can cheat with this and just place any old content in your alternate content. But be aware this is a black hat technique and you will get caught and banned from google. I asked on their webmaster forums and was answer by google employees themselves. You must make sure that your alternate content is very similar to your content in your site.

My proof? Last week I finished adjusting my alternate content and resubmitted my site to Google. Before this I had 0 ranking on any search engine. You could only find me by typing richardson graphics in the search engine. Because web design is such a large field my keywords were carefully selected so that the competition is a smaller group. Any seo company will tell you to narrow your market and you'll get better results. I did mine keywords for Ohio Flash Website Design. This search is done on average of 1000 times a month, which is way more than my small company can handle. I'm on page 1 for 14 different keyword combinations of my main 7 keywords. Aol also picked me up and I have just as much rank with them.

Google's biggest ranker is links, I have 0 links with google. Check marketleap.com and you'll see, I only have 4 total. Now I will be building my links so I can move up the rankings in broader categories like flash web design.

Thanks to all of those who have every contributed any code to helping Flash become equal or better than html... the day has arrived where I can stop losing jobs when being compared to html.

View Replies !    View Related
I Finally Upgraded
For those of you coaxing me to upgrade to mx 2004, well..
I did it today. Its official. Ive been assimilated.

View Replies !    View Related
Finally Its Working But...Plz Help Me.
Hi!I finally got my code working.
Here is what I did:

on the preloader scene I put this code on the first frame:

soundurl1 = "plastic.mp3";
mySound = new Sound();
mySound.onLoad = function(success){
if(success){
this.start(0, 999);
}
}
soundurl2 = "daygoby.mp3";
mySound = new Sound();
mySound.onLoad = function(success){
if(success){
this.start(0, 999);
}
}

and on my main scene I called up this function on the first frame and on the buttons I use to play the songs.

Now both my preloader and my songs works but the songs take a little while to start.is there any way to complete load the songs on the preloader scene or animation so when it comes to the main scene the songs are loaded and it starts playing immediatly?
because I have a MC thaT is a woman dancing and she starts to dance whithout music.

or how would I check if the mp3 file was loaded so I could show the user the song was being loaded.

thx

View Replies !    View Related
Preloader Finally Working, But....
thanx to everyone for the help so far. i finally got a preloader working, however, it looks like is preloads, but must not load enough of the movie or something...here's a link to see what i mean.
pleeeeeeeeeeeeeeeeeeeeeeeeeeeez. -dahui

www.focusomr.com/trustedadvisor

//frame 1(loop)

ifFrameLoaded ("end") {
gotoAndPlay ("start");
}
-----------------------------

//frame 2 (cont. loop)
gotoAndPlay (1);

View Replies !    View Related
Finally Got It To Work(here's The Script)
After many headaches, it works perfectly now. This menu will scroll, right or left, slower or faster, depending on where your mouse is positioned. AND it WILL NOT scroll off the screen. THE SCRIPT is SIMPLE!

_root.onEnterFrame = function() {
myMovieClip._x = myMovieClip._x+(0.5*Stage.width-_xmouse)/10
}
if(myMovieClip <= -550) {myMovieClip = -550}
if(myMovieClip >= 550) {myMovieClip = 550}

the numbers in the "if" statement determine where the scrolling will stop.
You will have to play with those numbers to get it exactly where you want it depending on the width of you Clip or where on the stage you want it to stop.
Otherwise it works!!!!

View Replies !    View Related
Finally Finished FlowerHarp
Hi Flashkit,

I finally finished the musical toy I've been working on all summer. Thanks for your help, especially DawsonK! Here's the FLA.

http://bitsong.com/forBoards.html

View Replies !    View Related
Finally My Photography Website
hi all hope u like it

http://majedali.com

any comments

View Replies !    View Related
Try, Catch, Finally Statements
Dear all,

I read senocular article about the use of try, catch and finally statements and finally I understood their use (thanks senocular). However, I doubt came out, If a have a preloader using those statements in the COMPLETE event function (Event.COMPLETE), it is not necessary to have a specific function for handle errors (for example IOErrorEvent.IO_ERROR)? Or the idea behind to have a specific function for handle errors is, it will capture all the errors and “catch” statement only those I declare?

I hope, I explained myself well.

Thanks

View Replies !    View Related
Finally, Hardware Acceleration?
I'm not necessarily encouraging it, but I've got some interest in the latest beta version of the Flash player. (Here's the link to download the browser plug-in.) The press release (again, link) mentions some neat stuff:
A strengthened connection to JS through the ExternalInterface API
Vector graphics acceleration for multi-core machines
"Hardware scaling" in full-screen mode, "for improved video performance and quality"

What, pray tell, does "hardware scaling" mean? It sounds like it could be a feature limited to video in full-screen mode. But do you think it could pave the way for hardware acceleration?

View Replies !    View Related
Flex I Finally Get To Be The One Asking The Question...
Of course, this is NOT my first time posting something only to look like a total moron with a decent post count, but I recently made a discovery and a decision.

As plenty here know, I'm an adamant Linux user. I HATE windows, and prefer not to use a Mac if I can put Linux on it. There was only one problem with that: My equally adamant love for programming flash. So, I have a windows box with Flash CS3 on it, and that's how I code.

Well, today, someone pointed me to a WORKING tutorial to get flash on Linux. I already knew that I COOOUUULLD emulate CS3 through wine, but I wasn't willing. So I did this, literally just now, and viola! Except... it's Flex. I'm used to Flash.

I'm used to a document class. I'm used to frames. I'm used to a lot of import statements and crazy packages importing eachother. I'm also used to trace().
Flex doesn't work quite the same way. It's still AS3, but... it's new to me. Can someone point me off in the right direction to how I need change my programming and structure philosophy to be a Flex user? (I'm very well versed in XML, namespaces, etc, so the mxml isn't baffling me, I just don't know what all the elements are).
I also would like to know what I do to see trace output. I've been playing with it for about 5 minutes now, and haven't figured out a single thin gother than the <mx:Script/> tag for directly putting AS3 into the mxml file.

View Replies !    View Related
The MAMMA Of All Prototypes Is Finally Finished
I have finally finished, after 5 days a code that dynamically creates everything to do with a gallery, and while there could be one or two extra tweeks put in, if you are going to use it you can do it yourself. It preloads thumbnails, determines if it needs a scroller, loads images, scales them to a box of your choosing, preloads the main images etc etc etc.

Its Flash MX by the way(just in case you didn't know)

here is my test file
http://buggedcom.50megs.com/protogallery.html
I've been informed / found out that my server that the preview of the gallery was hosted on just ran out of bandwidth, 512mb in 6 days!!!!! and the preview was all that was on there. I've signed another account up and the preview can be found at

http://buggedcom2.50megs.com/photoGallery_7i.html

although give me a few mins to set it up properly.

here is the code

Code:
// If you would like to see this in action please go to
// http://buggedcom.50megs.com/protogallery.html
//
MovieClip.prototype.photoGallery = function(path, trgt, seed, maxSeed, format, fIn, thumbX, thumbY, thumbOutline, maskHeight, arrowSize, scrollSpeed, w, h, lbH, dist, jpgLoadTxt, txtXPos, txtYPos, txtStyle, fontName, txtSize, txtClr, html, bold, Italic, boxWidth, boxHeight, imageX, imageY, boxCentred, imageCentred, trgtImage) {
_global.maxSeed = maxSeed;
_global.seed = seed;
_global.path = path;
_global.thumbX = thumbX;
_global.thumbY = thumbY;
_global.format = format;
_global.trgtImage = trgtImage;
_global.imageCentred = imageCentred;
_global.dist = dist;
_global.boxWidth = boxWidth;
_global.imageX = imageX;
_global.imageY = imageY;
_global.fIn = fIn;
_global.scrollSpeed = scrollSpeed;
seedOrig = seed;
path._x = thumbX;
path._y = thumbY;
imageBox(boxHeight, imageY, boxCentred);
thumbBox(thumbOutline, maskHeight);
howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic);
path.createEmptyMovieClip("thumbs", 1);
path.thumbs._x = -dist;
scrollMask(maskHeight, thumbX, thumbY);
loadThumbnails(trgt, format, dist, prev_x, prev_w);
drawBar(w, h, lbH, dist);
onEnterFrame = function () {
imageProgressBarRun();
removeImageBar();
imageSquash();
imageCentre();
loadIn(path.imageStuff.image);
needArrows(arrowSize, dist, h);
path.thumbs["thumb"+seed].onPress = Press;
path.thumbs["thumb"+seed].onRelease = Release;
path.thumbs["thumb"+seed].onEnterFrame = EnterFrame;
if (allFadedIn != true) {
loadingBarRun(txtStyle);
if (seed<maxSeed) {
prev_x = path.thumbs["thumb"+seed]._x;
prev_w = path.thumbs["thumb"+seed]._width;
if (path.thumbs["thumb"+seed]._width>0) {
removeBars();
if (path.thumbs["thumb"+seed]._alpha>=100) {
_global.seed = seed += 1;
drawBar(w, h, lbH, dist, prev_x, prev_w);
loadThumbnails(trgt, format, dist, prev_x, prev_w);
} else {
loadIn(path.thumbs["thumb"+seed]);
}
}
} else if (seed == maxSeed && path.thumbs["thumb"+seed]._width>0) {
loadOut(path.totalLB);
loadOut(path.totalLBB);
path[jpgLoadTxt].removeTextField();
removeBars();
loadIn(path.thumbs["thumb"+maxSeed]);
if (path.thumbs["thumb"+seed]._alpha>100) {
allFadedIn = true;
}
}
}
};
};
//
// Fading functions
//
function loadIn(mc) {
if (mc.getBytesLoaded() == mc.getBytesTotal() && mc._alpha<100 && mc._width>0) {
if (mc._alpha<100) {
mc._alpha += fIn;
}
}
}
function loadOut(mc) {
mc._alpha -= fIn;
}
//
// Thumbnail loading, masking and scrolling functions
//
function thumbAlign() {
if (alignThumbs == true) {
_global.thumbX = thumbX=boxWidth-2*thumbX;
}
}
function loadThumbnails(trgt, format, dist, prev_x, prev_w) {
path.thumbs.createEmptyMovieClip("thumb"+seed, seed).loadMovie(trgt+seed+format+"?nocache="+getDate(), path.thumbs["thumb"+seed]);
path.thumbs["thumb"+seed]._alpha = 0;
path.thumbs["thumb"+seed]._x = prev_x+prev_w+dist;
}
function scrollMask(maskHeight, thumbX, thumbY) {
path.createEmptyMovieClip("scrollMask", maxSeed+5);
path.thumbs.setMask(path.scrollMask);
path.scrollMask.lineStyle(.25, 0x999999, 100);
path.scrollMask.beginFill(0xFF0000, 40);
path.scrollMask.moveTo(0, 0);
path.scrollMask.lineTo(Stage.width-2*thumbX, 0);
path.scrollMask.lineTo(Stage.width-2*thumbX, maskHeight);
path.scrollMask.lineTo(0, maskHeight);
path.scrollMask.lineTo(0, 0);
path.scrollMask.endFill();
}
function thumbBox(thumbOutline, maskHeight) {
if (thumbOutline == true) {
path.createEmptyMovieClip("thumbBox", 2);
path.thumbBox.lineStyle(.25, 0x999999, 100);
path.thumbBox.moveTo(-2, -2);
path.thumbBox.lineTo(Stage.width-2*thumbX+2, -2);
path.thumbBox.lineTo(Stage.width-2*thumbX+2, maskHeight+2);
path.thumbBox.lineTo(-2, maskHeight+2);
path.thumbBox.lineTo(-2, -2);
}
}
function needArrows(arrowSize, dist, h) {
if (path.scrollMask._width<path.thumbs._width) {
if (runMeOnce != true) {
drawArrows(arrowSize);
placeArrows(arrowSize, dist, h);
runMeOnce == true;
path.arrows.arrowLeft._alpha = path.arrows.arrowRight._alpha=100;
}
path.arrows.arrowLeft.onPress = pAL;
path.arrows.arrowRight.onPress = pAR;
path.arrows.onMouseUp = rA;
path.thumbs.onEnterFrame = scrollDirection;
}
}
function drawArrows(arrowSize) {
path.createEmptyMovieClip("arrows", 3);
path.arrows.createEmptyMovieClip("arrowLeft", 1);
path.arrows.arrowLeft.lineStyle(.25, 0x999999, 100);
path.arrows.arrowLeft.beginFill(0x666666, 40);
path.arrows.arrowLeft.moveTo(0, 0);
path.arrows.arrowLeft.lineTo(0, 3*arrowSize/5);
path.arrows.arrowLeft.lineTo(-arrowSize/2, 3*arrowSize/5);
path.arrows.arrowLeft.lineTo(-arrowSize/2, 4*arrowSize/5);
path.arrows.arrowLeft.lineTo(-arrowSize, 3*arrowSize/10);
path.arrows.arrowLeft.lineTo(-arrowSize/2, -arrowSize/5);
path.arrows.arrowLeft.lineTo(-arrowSize/2, 0);
path.arrows.arrowLeft.lineTo(0, 0);
path.arrows.arrowLeft.endFill();
path.arrows.createEmptyMovieClip("arrowRight", 2);
path.arrows.arrowRight.lineStyle(.25, 0x999999, 100);
path.arrows.arrowRight.beginFill(0x666666, 40);
path.arrows.arrowRight.moveTo(0, 0);
path.arrows.arrowRight.lineTo(arrowSize/2, 0);
path.arrows.arrowRight.lineTo(arrowSize/2, -arrowSize/5);
path.arrows.arrowRight.lineTo(arrowSize, 3*arrowSize/10);
path.arrows.arrowRight.lineTo(arrowSize/2, 4*arrowSize/5);
path.arrows.arrowRight.lineTo(arrowSize/2, 3*arrowSize/5);
path.arrows.arrowRight.lineTo(0, 3*arrowSize/5);
path.arrows.arrowRight.lineTo(0, 0);
path.arrows.arrowRight.endFill();
}
function placeArrows(arrowSize, dist, h) {
if (thumbX+5>arrowSize) {
path.arrows.arrowLeft._x = -1.2*dist-5;
path.arrows.arrowRight._x = Stage.width-2*thumbX+dist+5;
path.arrows.arrowRight._y = path.arrows.arrowLeft._y=arrowSize/5;
} else {
path.arrows.arrowLeft._x = arrowSize+5;
path.arrows.arrowRight._x = 2*arrowSize;
path.arrows.arrowRight._y = path.arrows.arrowLeft._y=-arrowSize-2*h;
}
}
function pAL() {
path.thumbs.thumbsMove = -1;
path.thumbs.thumbsSlowDown=0;

}
function pAR() {
path.thumbs.thumbsMove = 1;
path.thumbs.thumbsSlowDown=0;

}
function rA() {
path.thumbs.thumbsSlowDown=1;
}
function scrollDirection() {
if (path.thumbs.thumbsMove == 1) {
if(runOncei!=true){
path.thumbs.scrollSpeed= scrollSpeed;
runOncei=true;
}
if(path.thumbs.thumbsSlowDown==0){
runOncei=false;
}
path.thumbs._x -= path.thumbs.scrollSpeed;
if (path.thumbs._x<-(path.thumbs._width)+(Stage.width-(2*thumbX))){
path.thumbs._x = -(path.thumbs._width)+(Stage.width-(2*thumbX));
}
} else if (path.thumbs.thumbsMove == -1) {
if(runOncei!=true){
path.thumbs.scrollSpeed= scrollSpeed;
runOncei=true;
}
if(path.thumbs.thumbsSlowDown==0){
runOncei=false;
}
path.thumbs._x += path.thumbs.scrollSpeed
if (path.thumbs._x>-dist) {
path.thumbs._x = -dist;
}
}
if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == 1){
path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
if(path.thumbs.scrollSpeed<=0.05 ){
path.thumbs.thumbsMove=0;
path.thumbs.thumbsSlowDown=0;
runOncei=false;
}
} else if (path.thumbs.thumbsSlowDown==1 && path.thumbs.thumbsMove == -1){
path.thumbs.scrollSpeed=0.85*path.thumbs.scrollSpeed;
if(path.thumbs.scrollSpeed<=-0.05 ){
path.thumbs.thumbsMove=0;
path.thumbs.thumbsSlowDown=0;
runOncei=false;
}
}
}
function drawBar(w, h, lbH, dist, prev_x, prev_w) {
path.thumbs.createEmptyMovieClip("loadingBarBox"+seed, 2*maxSeed+seed);
path.thumbs["loadingBarBox"+seed]._x = prev_x+prev_w+dist;
path.thumbs["loadingBarBox"+seed].lineStyle(.25, 0x999999, 100);
path.thumbs["loadingBarBox"+seed].moveTo(0, h);
path.thumbs["loadingBarBox"+seed].lineTo(w, h);
path.thumbs["loadingBarBox"+seed].lineTo(w, h-lbH);
path.thumbs["loadingBarBox"+seed].lineTo(0, h-lbH);
path.thumbs["loadingBarBox"+seed].lineTo(0, h);
path.thumbs.createEmptyMovieClip("loadingBar"+seed, maxSeed+seed);
path.thumbs["loadingBar"+seed]._xscale = 0;
path.thumbs["loadingBar"+seed]._x = prev_x+prev_w+dist;
path.thumbs["loadingBar"+seed].lineStyle(.25, 0x999999, 0);
path.thumbs["loadingBar"+seed].beginFill(0x999999, 100);
path.thumbs["loadingBar"+seed].moveTo(0, h);
path.thumbs["loadingBar"+seed].lineTo(w, h);
path.thumbs["loadingBar"+seed].lineTo(w, h-lbH);
path.thumbs["loadingBar"+seed].lineTo(0, h-lbH);
path.thumbs["loadingBar"+seed].lineTo(0, h);
path.thumbs["loadingBar"+seed].endFill();
}
function loadingBarRun(txtStyle) {
path.thumbs.byteL = path.thumbs["thumb"+seed].getBytesLoaded();
path.thumbs["loadingBar"+seed]._xscale = (path.thumbs.byteL/path.thumbs["thumb"+seed].getBytesTotal())*100;
loadingTxt(txtStyle);
path.totalLB._xscale = (seed/maxSeed)*100;
}
function removeBars() {
path.thumbs["loadingBar"+seed].removeMovieClip();
path.thumbs["loadingBarBox"+seed].removeMovieClip();
if (path.totalLB._alpha<0) {
path.totalLB.removeMovieClip();
path.totalLBB.removeMovieClip();
}
}
//
// Thumbnail loading progress functions
//
function howManyNails(txtStyle, jpgLoadTxt, txtXPos, txtYPos, fontName, txtSize, txtClr, bdr, bdrClr, html, bold, italic) {
path.createTextField(jpgLoadTxt, maxSeed, txtXPos, txtYPos, 200, 10);
path[jpgLoadTxt].autosize = true;
path[jpgLoadTxt].html = html;
path[jpgLoadTxt].type = "dynamic";
path[jpgLoadTxt].wordWrap = true;
path[jpgLoadTxt].selectable = false;
textFormat = new TextFormat();
textFormat.font = fontName;
textFormat.size = txtSize;
textFormat.color = "0x"+txtClr;
textFormat.bold = bold;
textFormat.italic = italic;
path[jpgLoadTxt].setNewTextFormat(textFormat);
loadingTxt(txtStyle);
xWidth = path[jpgLoadTxt].textWidth+10;
yHeight = path[jpgLoadTxt].textHeight/2;
path.createEmptyMovieClip("totalLBB", maxSeed+4);
path.totalLBB._x = xWidth;
path.totalLBB._y = txtYPos;
path.totalLBB.lineStyle(.25, 0x999999, 100);
path.totalLBB.moveTo(0, yHeight);
path.totalLBB.lineTo(60, yHeight);
path.totalLBB.lineTo(60, yHeight+(yHeight/2));
path.totalLBB.lineTo(0, yHeight+(yHeight/2));
path.totalLBB.lineTo(0, yHeight);
path.createEmptyMovieClip("totalLB", maxSeed+3);
path.totalLB._x = xWidth;
path.totalLB._y = txtYPos;
path.totalLB.lineStyle(.25, 0x999999, 0);
path.totalLB.beginFill(0x999999, 100);
path.totalLB.moveTo(0, yHeight);
path.totalLB.lineTo(60, yHeight);
path.totalLB.lineTo(60, yHeight+(yHeight/2));
path.totalLB.lineTo(0, yHeight+(yHeight/2));
path.totalLB.lineTo(0, yHeight);
path.totalLB.endFill();
path.totalLB._xscale = 0;
}
function loadingTxt(txtStyle) {
if (txtStyle == 1) {
path[jpgLoadTxt].text = maxSeed-seed+" thumbnails left to load. ";
} else if (txtStyle == 2) {
path[jpgLoadTxt].text = seed+" out of "+maxSeed+" thumbnails have loaded. ";
} else if (txtStyle == 3) {
if (maxSeed<10) {
addSpace = " ";
} else if (maxSeed<100) {
addSpace = " ";
} else if (maxSeed<1000) {
addSpace = " ";
}
path[jpgLoadTxt].text = " "+seed+" / "+maxSeed+addSpace;
} else if (txtStyle == 4) {
path[jpgLoadTxt].text = "There are "+(maxSeed-seed)+" more thumbnails to load. ";
}
}
//
// Main image box, loading, progress, positioning and size control functions
//
function imageBox(boxHeight, imageY, boxCentred) {
path.createEmptyMovieClip("imageStuff", -10);
if (boxCentred == true) {
_global.imageX = imageX=((Stage.width/2)-(boxWidth/2));
}
path.imageStuff.createEmptyMovieClip("imageBox", -10);
path.imageStuff.imageBox._x = -thumbX;
path.imageStuff.imageBox._y = -thumbY;
path.imageStuff.imageBox.lineStyle(.25, 0x999999, 100);
path.imageStuff.imageBox.beginFill(0xffffff, 100);
path.imageStuff.imageBox.moveTo(imageX, imageY);
path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY);
path.imageStuff.imageBox.lineTo(imageX+boxWidth, imageY+boxHeight);
path.imageStuff.imageBox.lineTo(imageX, imageY+boxHeight);
path.imageStuff.imageBox.lineTo(imageX, imageY);
path.imageStuff.imageBox.endFill();
path.imageStuff.createEmptyMovieClip("image", -9);
path.imageStuff.image._x = -thumbX+imageX;
path.imageStuff.image._y = -thumbY+imageY;
}
function imageLoad() {
path.imageStuff.image._alpha = 0;
path.imageStuff.image.loadMovie(trgtImage+path.iLoadNumber+format+"?nocache="+getDate(), 1);
}
function imageProgressBar() {
barWidth = boxWidth/2;
barHeight = barWidth/30;
if (barHeight<5) {
barHeight = 5;
}
path.imageStuff.createEmptyMovieClip("imageLoadingBarBox", maxSeed+2);
path.imageStuff.imageLoadingBarBox.lineStyle(.25, 0x999999, 100);
path.imageStuff.imageLoadingBarBox.moveTo(0, 0);
path.imageStuff.imageLoadingBarBox.lineTo(barWidth, 0);
path.imageStuff.imageLoadingBarBox.lineTo(barWidth, barHeight);
path.imageStuff.imageLoadingBarBox.lineTo(0, barHeight);
path.imageStuff.imageLoadingBarBox.lineTo(0, 0);
path.imageStuff.createEmptyMovieClip("imageLoadingBar", maxSeed+1);
path.imageStuff.imageLoadingBar.lineStyle(.25, 0x999999, 0);
path.imageStuff.imageLoadingBar.beginFill(0x666666, 100);
path.imageStuff.imageLoadingBar.moveTo(0, 0);
path.imageStuff.imageLoadingBar.lineTo(barWidth, 0);
path.imageStuff.imageLoadingBar.lineTo(barWidth, barHeight);
path.imageStuff.imageLoadingBar.lineTo(0, barHeight);
path.imageStuff.imageLoadingBar.lineTo(0, 0);
path.imageStuff.imageLoadingBar.endFill();
path.imageStuff.imageLoadingBar._xscale = 0;
path.imageStuff.imageLoadingBarBox._x = path.imageStuff.imageLoadingBar._x=-thumbX+imageX+boxWidth/4;
path.imageStuff.imageLoadingBarBox._y = path.imageStuff.imageLoadingBar._y=-thumbY+imageY+(2*path.imageStuff.imageBox._height/3);
}
function imageProgressBarRun() {
path.imageStuff.imageLoadingBar._xscale = (path.imageStuff.image.getBytesLoaded()/path.imageStuff.image.getBytesTotal())*100;
}
function removeImageBar() {
if (path.imageStuff.imageLoadingBar._xscale>=100) {
path.imageStuff.imageLoadingBar.removeMovieClip();
path.imageStuff.imageLoadingBarBox.removeMovieClip();
}
}
function imageCentre() {
if (imageCentred == true && path.imageStuff.image._width>0) {
if (r1 != true) {
pIX = path.imageStuff.image._x;
pIY = path.imageStuff.image._y;
r1 = true;
}
path.imageStuff.image._x = pIX+(path.imageStuff.imageBox._width-path.imageStuff.image._width)/2;
path.imageStuff.image._y = pIY+(path.imageStuff.imageBox._height-path.imageStuff.image._height)/2;
}
}
function imageSquash() {
if (path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._height<path.imageStuff.imageBox._height && path.imageStuff.image._width>0) {
path.imageStuff.image._xscale = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
path.imageStuff.image._yscale = path.imageStuff.image._xscale;
} else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width<path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
path.imageStuff.image._yscale = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
path.imageStuff.image._xscale = path.imageStuff.image._yscale;
} else if (path.imageStuff.image._height>path.imageStuff.imageBox._height && path.imageStuff.image._width>path.imageStuff.imageBox._width && path.imageStuff.image._width>0) {
xS = (path.imageStuff.imageBox._width/path.imageStuff.image._width)*100;
yS = (path.imageStuff.imageBox._height/path.imageStuff.image._height)*100;
if (xS<yS) {
path.imageStuff.image._xscale = path.imageStuff.image._yscale=xS;
} else if (xS>yS) {
path.imageStuff.image._xscale = path.imageStuff.image._yscale=yS;
}
}
}
function squashReset() {
path.imageStuff.image._xscale = path.imageStuff.image._yscale=100;
}
//
// Image selection functions
//
function Release() {
if (path.iLoadNumber != this.iNumber) {
this.b = true;
path.iLoadNumber = this.iNumber;
squashReset();
imageLoad();
imageProgressBar();
}
}
function ReleaseOutside() {
this.b = false;
}
function EnterFrame() {
if (this.runOnce != true) {
this.iNumber = seed;
this.runOnce = true;
}
if (this.b == true) {
this.blink();
}
}
MovieClip.prototype.blink = function() {
(this.blinkTimer == null) ? this.blinkTimer=getTimer()+40 : null;
if (getTimer()>=this.blinkTimer) {
this.times += 0.5;
if (this.times == .5 || this.times == 1.5) {
this._alpha = 30;
} else if (this.times == 1 || this.times == 2) {
this._alpha = 100;
}
this.blinkTimer = null;
}
if (this.times>=2) {
this._alpha = 100;
this.blinkTimer = null;
this.b = false;
this.times = 0;
}
};
//
//
//usage
//
//
_root.createEmptyMovieClip("empty", 1);
photoGallery(_root.empty/*path*/, "thumbnails/DCP_"/*target*/, 1/*seed*/, 15/*maxSeed*/, ".jpg"/*format*/, 10/*fIn*/, 254/*thumbX*/, Stage.height-100/*thumbY*/, false/*thumbOutline*/, 80/*maskHeight*/, 15/*arrowSize*/, 10/*scrollSpeed*/, 50/*w*/, 10/*h*/, 3/*lBh*/, 5/*dist*/, jpgCount/*jpgLoadTxt*/, 0/*txtXPos*/, -20/*txtYPos*/, 2/*txtStyle*/, "Arial"/*fontName*/, 11/*txtSize*/, 999999/*txtClr*/, false/*html*/, false/*bold*/, false/*italic*/, 300/*boxWidth*/, 300/*boxHeight*/, 0/*imageX*/, 50/*imageY*/, true/*boxCentred*/, true/*imageCentred*/, "images/DCP_"/*trgtImage*/);
//
//
//
// This prototype assumes that the thumbnails and images are labeled in a consecutive order
// for example, the thumbnails go th_1, th_2, th_3 etc and the corresponding pictures have to
// go im_1, im_2, im_3 etc etc.
//
// Explaination of variables below:
// path is the target path to the empty mc that the gallery will load into.
// trgt is the directory to the thumbnails including the name beginner (ie thumbnails/DCP_45, the trgt = thumbnails/DCP_)
// seed is the begining thumnail that you want to load.
// maxSeed is the final image in the series, or the final image that you want loaded in.
// format is either ".jpg" or ".png" depending on the type of file you are using.
// fIn is the fading in and out rate of the thumbails and other stuff.
// thumbX is the starting x position of the thumbnails.
// thumbY is the starting y position of the thumbnails.
// thumbOutline is either true or false depending on if you want a border around the thumbnail scroller.
// maskHeight is the height of the mask that hides the other thumbs in the scroller.
// arrowSize is the size of the arrows in the scroller.
// scrollSpeed is the rate in which you can scroll through the thumbs.
// w is the width of the thumbnail loading bar.
// h is the y position of the thumbnail loading bar.
// lbH is the height of the thumbnail loading bar.
// dist is the distance apart you want the thumnails from each other.
// jpgLoadTxt is what you want to name the created txt box ( in " " ) to see how many thumbs are left to load.
// txtXPos is the x position of the how many left to load txt box.
// txtYPos is the y position of the how many left to load txt box.
// txtStyle is the syle in which you will count down the loading thumbnails ( 1,2,3,4 ) .
// // // 1 = 241 thumbnails left to load.
// // // 2 = 9 out of 250 thumbnails have loaded.
// // // 3 = 9 / 250
// // // 4 = There are 241 more thumnails left to load.
// fontName is the name of the system font you want to use for the how many left to load txt box ( ie "Arial").
// txtSize is the size of the font for the how many left to load txt box.
// txtClr is the text colour of the how many left to load txt box ( in hex form, ie for white FFFFFF ).
// html is true or false depending if you want the html format switched on or of for the how many left to load txt box.
// bold is true or false for the how many left to load txt box.
// italic is true or false for the how many left to load txt box.
// boxWidth is the width of the image box.
// boxHeight is the height of the image box.
// imageX is the x position of the image box.
// imageY is the y position of the image box.
// boxCentred is true or false depending on if you want the image box centred to the stage along the x-axis. If true, it overides imageX but not imageY.
// imageCentred is true or false depending if you want to centre the loaded photo to the middle of the image box.
// trgtImage is the target directory that you images are stored in including the name beginner (ie images/DCP_45, the trgtImage = images/DCP_)
//
// That's about all i can be arsed to explain. It is a long code and it is my first major piece of programming so although I think it's top notch
// I'm sure it could be narrowed down somewhat. If you have any additions or changes to the script please post them, it'll be great feedback
// for me.
//
// ta ta
// buggedcom
// (aka OliverLillie)
//



enjoy it if you use it, it took a lot of blood sweat and tears
[Edited by buggedcom on 09-19-2002 at 10:59 AM]

View Replies !    View Related
All Flash Forum Finally Found It Again
Here it is, I knew I seen one and it looks very proffesional. The one at www.flash-db.com wasnt that good.

Here's the link guys, I know I wasnt the only one searching, lol.

http://www.phpforflash.com

View Replies !    View Related
I Finally Finished My New Website Design
Here: www.kocompany.com

check it out and tell me what you think.
don't forget to check out everything.

View Replies !    View Related
Finally Stopped Pulling My Hair Out
Finally....a solution to my frustrating problem with scrolling a dynamic text box. And of course, (even more frustrating) is how simple the solution was.

I thought that posting the solution may help out someone else experiencing trouble with a similar issue.

Thanks to kslakait at ActionScript.org for helping out.

gave the dynamic text box an instance name of:
code: ttt

I accessed this instance via: code: _parent.ttt

and changed scroll properties for each button:

code:
//attached to scroll up button
on (press) {
_parent.ttt.scroll -= 1;
}

//attached to scroll down button
on (press) {
_parent.ttt.scroll += 1;
}


and TA DAAA!!! when you click the up or down arrows, the text scrolls!!! (note: the slide bar doesn't scroll the text, i just removed it from my file)

so there you go.

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