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








Problem With Latta Menu Magic 1.5


Hi,

Having downloaded MenuMagic 1.5 from http://www.flashkit.com/movies/Interfaces/Menus

I've tried to add more than 9 Maintopic but
it doesn't work.
I use this code:
MainTopic10 = "Tracking";
MainTopic10url = "http://www.yahoo.fr/";
The link works but the button'places has changed.
If someone could help me to solve this problem.




FlashKit > Flash Help > Flash MX
Posted on: 07-30-2003, 01:46 PM


View Complete Forum Thread with Replies

Sponsored Links:

Help With Latta Menu System
latta 1.5 menusystem

can't manage to get hold of the author.

basically i want to use the menu system in a projector project but i can't work out how to attatch actions to the buttons. i'm pretty sure it's done at the "createSubTopics" section on the actions layer but i can't get my head round the code he's using at all.

can anyone give me a breif rundown of whats going on there? and perhaps even an example of how to add an actions to a specific button?

cheers.

squid.

View Replies !    View Related
Jason Latta Menu System Movie
Hi,
I'm trying to use this menu system from the flash movies located here:

http://www.flashkit.com/movies/Inter...-326/index.php

However, the file available for download is slightly different from the one which is shown as a demo. I've tried altering the first frame to include the following code:

MainTopic0 = "News";
SubTopic0_0 = "Overview";
SubTopic0_1url = "http://www.mysite.com";

but it doesn't get reflected in the movie, has anyone used this fla and can tell me what I'm doing wrong?

Also I would like to include a loadVariblesNum function on the sub buttons in order to communicate with a php script. Can anyone tell me where to put this please.

Alternatively is there another really simple and dynamic flash menu which uses smartclips and is really easy to add the names and links to? I've been through most of the movies on flashkit but they are mainly 'tween' intensive and not easy to modify.

Thanks very much for any help.

View Replies !    View Related
Magic Swf's: Sometimes There, Sometimes Not
Hi,
I'm having an intermittent problem with my site that I can't figure out.

http://www.design4x.com/courses/qfd/...inicourse.html
(This .html file calls qfd.swf file).

I (and others) can go to the site and the qfd.swf main file always comes up. Then, when you click on sections in the left navigation, it loads different swf's into qfd.swf (it automatically loads the first .swf, the Intro).

PROBLEM
The problem comes when you click on other sections in the left nav (such as Overview: Steps 1, or others). The first frame of that newly loaded .swf comes up fine (I pause it on that first frame until the user hits the Play button), but then when you hit the play button, that swf seems to go away and does not go to the next frames.

The Intermittent Part
However, if I close that browser window and go back to it, it will generally work fine. Then I close the window, go back again, and the problem is there again (it's not always every other time that this happens).

Things that might be causing it?
Any ideas why this is happening? Things that I can think of that could cause a problem. I use a "telltarget" command in the first frame of the loaded files (yea, I know it's deprecated, haven't had time to go back and change it). Also, the swf's I'm loading are using graphics from a linked library.swf file that has already been pre-loaded. Finally, when qfd.swf calls the files by jumping to a frame, and that frame has the following code:

unloadMovie("CurrentSection");
loadMovie("mc-step1.swf", "CurrentSection");
stop();

CurrentSection is a placeholder in the qfd.swf file.

Thanks,
Mark

View Replies !    View Related
Magic ;)
Can someone tell me the 'magic' behind the bouncing boxes of http://www.kurtnoble.com ! I want to create a simular effect but i have NO idea how to do it


If anybody can help me understanding the code, it would be GREAT.

thx

View Replies !    View Related
As If By Magic.
Ok - call me an idiot. I can live with that. But I'm not exactly new to flash or website design generally. However there is one thing that has continued to be a mystery to me and thats using bitmap fonts within flash. I know that this is a much debated issue and that for fonts looking crisp one should use pixel fonts yadda yadda yadda.

But then i keep seeing websites that are obviously using bitmap fonts - and manage to get them looking as crisp and clean the eighties was.

Two examples.

http://www.sigarett.com
http://www.specialten.tv

I'd love some help with this - is there a trick they are using? Is there something I am obviously missing? Did they buy speial fonts? Or is my eye-sight failing me?

Any help would so much appreciated I can not tell you.

Many thanks.

View Replies !    View Related
Magic Flare...
How can i import magic flare created animations into Flash?

I've tried import, but it doesn't work. Is there any other way?

http://www.magicflare.com

View Replies !    View Related
Magic 8 Ball
I am looking for some script that would allow me to make something like a magic 8 ball. I want to be able to click a button that would load a random picture every time.

View Replies !    View Related
Magic 8 Ball
I am looking for a way to create an effect like a magic 8 ball, where I can push a button and it loads a random picture. Does anyone know how to do this?

View Replies !    View Related
Magic Button
I have almost finnished a flash site, but have one more problem to overcome. I have a button on the screen which controls a movieclip inside the main timeline containing four bars of music which is on constant loop. I need this button to turn the music on AND off on alternate clicks. I know how to use tell target, so I can get it to do one or the other, but not both.

Please help
Thanks

View Replies !    View Related
Magic Wand
does the magic wand in flash perform the same action as it does in photoshop?

if so: why can't i get it to select anything?

if not: what does it do?

-thanks

View Replies !    View Related
Magic Button
Is there a 'magic' button in flash that could save me hours of work in retiming an animation (motion tweens) from 12 fps up to 24 fps?
I know, i am reaching...

View Replies !    View Related
Magic Flare
Has anybody heard of Magic Flare, the text effects software? Do you know whether I can import Magic Flare .swf file to my flash project? I tried out its demo version, but the .swf file didn't play in my flash. Did I do anything wrong?

View Replies !    View Related
The Magic Button
Can one button do a getURL action at the same time as doing a sendAndLoad action?

Basically can it send info in to differnt ways by just one click?

I am trying to have Vars sent to a php using send and load while at the same time sending the Vars via sendAndLoad

maybe a function?

ANY EXAMPLES

Thanks

View Replies !    View Related
Magic Browser
Hi,
I have been trawling the forums looking for information about how to resize the browser window.
But I wanted to know about something I've seen a couple of times recently... when you open up a site, it changes the current window size to fit the screen. I mean, the sides of the window actually like spring vertically and horizontally. I was wondering if any super duper person out there knew how this is done? It's much nicer than having to create a custom pop-up - especially these days with that nuisance pop-up blocker.
Thanks for anyone out there who offers an answer
Amal

View Replies !    View Related
Magic Swirl
I'm trying to acheive an effect, through actionscript, of some sort of imaginary Light, as if the waving of a magic wand creates a sort of "mouse trail". It doesn't neccessarily have to be soft-edged (although it'd be nice). But I'd like something that fades out progressively as it is randomly waved (not by the mouse -- on it's own).
I wonder if anyone can point me to some sort of example I can take apart.
Maybe it's more an AS thing than a drawing thing, but here's what I'm imagining:

View Replies !    View Related
Magic 8-ball
I'm creating a magic 8-ball for my website, just a fun little thing to play with you know.

I've got an input field called "question" where you can type whatever you want, an ASK button called "ask" and a response field called "answer". Once you enter a question and hit the ASK button I want flash to randomly reply in the "answer" field with YES, NO, MAYBE, DEFINATELY etc.

Do I need some kind of answers array to store all the answers and then call them at random into the "answers" field? Am I on the right track?

View Replies !    View Related
Magic Swirl
I'm trying to acheive an effect, through actionscript, of some sort of imaginary Light, as if the waving of a magic wand creates a sort of "mouse trail". It doesn't neccessarily have to be soft-edged (although it'd be nice). But I'd like something that fades out progressively as it is randomly waved (not by the mouse -- on it's own).
I wonder if anyone can point me to some sort of example I can take apart.
Maybe it's more an AS thing than a drawing thing, but here's what I'm imagining:

View Replies !    View Related
Magic 8-ball
I'm creating a magic 8-ball for my website, just a fun little thing to play with you know.

I've got an input field called "question" where you can type whatever you want, an ASK button called "ask" and a response field called "answer". Once you enter a question and hit the ASK button I want flash to randomly reply in the "answer" field with YES, NO, MAYBE, DEFINATELY etc.

Do I need some kind of answers array to store all the answers and then call them at random into the "answers" field? Am I on the right track?

View Replies !    View Related
Flash 5 Magic With ActionScript - Help
Hello,
Anyone that has Flash5 magic with AS.
There is a line of code that is confusing me and maybe someone can help.
In chapter 11 pg. 156
if (this<>_root.Line1x.Line1X)

I know Line1X is a name for an instance in the main timeline
but where does the Line1x come from? Can anyone enlighten me on this one?
Thanks in advance

View Replies !    View Related
Whats The Magic Word For Help Around Here?
please help!
ok now on to my prob...first i want to know how to make something blink... i want to have a little dot blink a few times then morph to a thin line but i want the line to act as if it were rubber. you know kinda like a rope being thrown over a wall with a grapple on the end,thats the effect i want to pull off. can someone please help!!?

and one more if you guys dont mind.... i made a logo in photoshop and i saved it as a jpg...now,i want to bring it into flash and add an animation to it.
the animation i want to pull off is making it start out kinda small spinning....but gradually (kinda fast) resize to its original deminsion and i want to know how to adjust the speed/ i want it to start out fast and slowdown as it gets bigger then finally stop when its at original size.

hope im not being a pest... but the help will be greatly appreciated. thanks
my e-mail is KINGOFPAIN2@LYCOS.COM

thanks K.O.P.

View Replies !    View Related
Images Vanishing......ITS MAGIC
before my flash movie had sound applied to it by importing a file from the library. The problem with that was sometimes the sound would load in a browser and sometimes it wouldn't. So i changed to code like this in a blank frame on my movie.

trigun = new Sound();
trigun.attachSound("trigun1");

_root.trigun.start(0, 999);

this plays the music everytime but unless you refresh the page you can't see the actual movie.

why is this happening....... anyone?

View Replies !    View Related
Puff The Magic Dragon
Hi! Here's my problem:
Let's say we have three for this case relevant frames, labelled "PUFF", "MAGIC" and "DRAGON".
What I want to do is tell a button in frame "PUFF" to FIRST go to frame "MAGIC" and AFTERWARDS go to frame "DRAGON" by adding the corresponding actionscript commands only to the first frame, "PUFF". I'm not completely new to Flash; although I have to admit that I'm not really familiar with variables, which might have to be applied in this case; since the "go to and play" command is not an option (the "MAGIC" frame "forgets" about all the information that is held within the "PUFF" frame).

Thanks in advance for your help!

View Replies !    View Related
Flash MX Magic Book Fla's
Can someone tell me where to find the fla files for this book? I searched the entire cd, on both mac and pc and only found one fla file. In the read me it says that the "project" folder contains all the work files and if I copy to my harddrive it will occupy 195mb. Well when I look at the size of the folder its only 14mb. Call me crazy but I think I'm missing some files. What can I do?

View Replies !    View Related
Magic Dust Effect
Is anyone aware of a method or a tutorial to generate in flash a "magic dust" - "stardust" effect.
I'd like to use it to change one object progressively to an other one but I really don't know where to start.
Does someone know tutorials examples about this?

Thank you very much.
Simone

View Replies !    View Related
Magic Or Pure Coding?
Does anyone have a clue how did they create this menu??
http://www.capitalcomm.com.my/

This strings are amazing.... even the preloader in separated strings..

Did they use FUSE?...
I really wanna know this code... I am clueless how to achieve this effect.... I have seen tons of others examples but none is as good as this one..

thanks..
cheers

View Replies !    View Related
Mystery Magic Background
This sample is extracted previously from my Silverlight Project. The source codes are highly configurable and you may customize it for you needs. Though it’s pretty simple but yet very good to act as a background for you application.

Feel free to share your comments~

http://www.shinedraw.com/animation-e...ic-background/

View Replies !    View Related
BitmapData Magic Wand
Hello,

I need something to select all similar colors in a movieclip, like the magic wand in your favorite image editor.

I know it's possible with bitmapdata, but the problem is I don't know how.
The way I'm working now: if someone selects a pixel, it goes through the x-line and looks for similar colors, the distance between left x and right x is saved together with y. Then it goes one line down etc

The problem is, the code doesn't do what I want. Maybe someone with experience can help me out?

Here's what I have so far:


Code:
import flash.display.BitmapData;
var bMap;
var deltanr = 1;
var xx = 0;
var yy = 0;
var process:Array = new Array();
var itemMC:MovieClip = img_mc;
var aa:MovieClip = itemMC.createEmptyMovieClip("img_mc", 5);

aa._visible = false;
var mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = {};
mcl.addListener(mclListener);
//
mclListener.onLoadInit = function(mc:MovieClip) {

bMap = new BitmapData(mc._width, mc._height);
bMap.draw(mc);
overlook(4,1);


};
//
function overlook(xx, yy) {
var pixel = bMap.getPixel(xx, yy).toString(16);
var r = parseInt("0x"+pixel.charAt(0)+pixel.charAt(1));
var g = parseInt("0x"+pixel.charAt(2)+pixel.charAt(3));
var b = parseInt("0x"+pixel.charAt(4)+pixel.charAt(5));
var xa = xx;
var right = new Array();
var left = new Array();

while (true) {
var a:Boolean = isSimilar(xa, yy, r, g, b);
if (!a) {
//right boundary has been hit, mark it!
right = new Array(xa, yy);
break;
}
xa++;
}
xa = xx;
while (true) {
var a:Boolean = isSimilar(xa, yy, r, g, b);
if (!a) {
//left boundary has been hit, mark it!
if (xa<0) {
xa = 0;
}
left = new Array(xa, yy);
break;
}
xa--;
}
trace("pushed "+left[0]+"-"+right[0]);
process.push(new Array(new Array(left[0], yy), new Array(right[0], yy)));
upDown();
}
function upDown() {
/* check pixels below the pushed line*/
var sx:Number = process[process.length-1][1][0];
var sy:Number = process[process.length-1][1][1];
var beginx:Number = process[process.length-1][0][0];
var beginy:Number = process[process.length-1][0][1];
if ((sx<=200) && (sy<70) && (sy>0) && (sx>0)) {
for (var i:Number = process[process.length-1][0][0]; i<sx; i++) {
var pixel = bMap.getPixel(i, (process[process.length-1][0][1])).toString(16);
var r = parseInt("0x"+pixel.charAt(0)+pixel.charAt(1));
var g = parseInt("0x"+pixel.charAt(2)+pixel.charAt(3));
var b = parseInt("0x"+pixel.charAt(4)+pixel.charAt(5));
var aa:Boolean = isSimilar(i, (process[process.length-1][0][1]+1), r, g, b);
if (aa) {
overlook(i,(process[process.length-1][0][1]+1));
trace(i + "-" + (process[process.length-1][0][1]+1));
beginx = i;

}
}

}
}
function isSimilar(picx, picy, red, green, blue) {
var pixel = bMap.getPixel(picx, picy).toString(16);
var r = parseInt("0x"+pixel.charAt(0)+pixel.charAt(1));
var g = parseInt("0x"+pixel.charAt(2)+pixel.charAt(3));
var b = parseInt("0x"+pixel.charAt(4)+pixel.charAt(5));
var rb:Boolean = true;
var gb:Boolean = true;
var bb:Boolean = true;
if (r<red-deltanr || r>red+deltanr) {
rb = false;
}
if (g<green-deltanr || g>green+deltanr) {
gb = false;
}
if (b<blue-deltanr || b>blue+deltanr) {
bb = false;
}
if ((bb) && (rb) && (gb)) {
return true;
} else {
return false;
}
}
mcl.loadClip("image.png",itemMC.img_mc);

View Replies !    View Related
The Magic Greyscale Constant
Well,

I was struggling with greyscale (how to compute it). I searched for it in the forum and what a soupy mess I read through. I went on the net and nobody that I researched was quite hitting the mark for what I needed.

I need a way to easily do greyscale coloring as a level between 0..255. What flash offers is a setRGB function. Here you say mc.setRGB(0x...) using a hex color. Well .. there are reasons I don't like this. 1 you have to know what the color is for a given greyscale. yada yada.

Well, I thought about this. On the one hand I should already know how to do this. (bad Rampage.) On the other hand, there are people that can benefit from me shaking off one more piece of ignorance in public

So without further adiue..


Code:
_root.createEmptyMovieClip("clip",1)
greyK = 0x010101

trace(0xfefefe)
trace(greyK * 254)
var thick = 2

for(var i=0;i<256;i++)
{
clip.lineStyle(thick,greyK*i,100)
clip.moveTo(i*thick,0)
clip.lineTo(i*thick,100)
}
... may the force be with you.

View Replies !    View Related
Magic GetTextExtent Factor
It has always frustrated me that getTextExtent doesn't work worth a damn. the bigger the text, the bigger the error.

Does anyone know how to get the true extent of the text? A magic mulitiplier function maybe?
I would hate to have an offstage textfield that is autosized to tell me the true extent.

argggg! It's a wonder flash has the following it has. It's so rife with problems I would chuck it if I had another alternative.

View Replies !    View Related
How Do I Use Hte Magic Wand Instead Of Lasso?
Hi!

How do I use the magic wand where I can simple select the color and have it automatically select all of the color? All I see are a lasso tool but no magic wand tool. How do I do that?

Thanks,
FletchSOD

View Replies !    View Related
Magic Ball/Fortune Teller
Alright, I've searched this site and used both tutorials I could find on this, but its just not working. I think I'm going to blame the fact that my employer won't let me upgrade to MX (I'm using Flash 5)... but maybe I'm wrong and that it SHOULD work.

I'm following all the directions for the tutorials for it, and the code that is being put in the action script is the following:

on (release) {
function ansGen() {
generate = random(5);
ans = ["You'll find out in due time",
"Yes, of course",
"No",
"Maybe",
"I'm not saying yes, I'm not saying no"];
_root.textbox = ans[generate];
}
ansGen();
}


The "on (release)" seems to be giving it problems, as every time I try to test it and see if it works, I get the following error:

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances
on (release) {


Does anyone know how I can fix this to work in Flash 5?

View Replies !    View Related
Puff The Magic Dragon Part 2
To hum: Thanks for your dedication!
I apparently didn't make myself perfectly clear though:
Let's say we have three for this case relevant frames, labelled "PUFF", "MAGIC" and "DRAGON".
What I want to do is tell a button in frame "PUFF" to FIRST go to frame "MAGIC", followed by a subsequence of frames; and AFTERWARDS go to frame "DRAGON" by adding the corresponding actionscript commands only to the first frame, "PUFF". I'm not completely new to Flash; although I have to admit that I'm not really familiar with variables, which might have to be applied in this case; since the "go to and play" command is not an option (the "MAGIC" frame "forgets" about all the information that is held within the "PUFF" frame).

Thanks in advance for your help!

View Replies !    View Related
Magic 8 Ball Driving Me Nuts
I've found lots of code examples but can't get any kind of random response generator to work.

I'm using KoolMoves, and am unclear how to "set one text box variable as textbox" and the other as an input box; koolmoves doesn't seem to give the easy choosing option of Flash.

Any reference, tutorials, actionscript etc. that might help would let me move on with my obsessive life.

Thanks,

Derek

View Replies !    View Related
How Could I Make Magic Wand In Actionscript ?
How could i make magic wand in actionscript ?

please help me !!

thanks

sorryfor my poor english..

View Replies !    View Related
Un-magic My Magical Blinking Text.
Hey - here's the page... http://www.masseymoderndesign.com/test-site/

So, the problem is with the little tid-bits that come down off of the top of the screen. The one with the two plates looks fine, but the one with one plate has blinking text. The thing is, both of them are just timeline tweens - nothing fancy. And both look great when i hit "enter" and let them play in the flash authoring environment.

The only real difference is that the functional one has only position tweening... the broken one is trying to tween the rotation of the movieclip containing the text...

So - any suggestions to make the text not disappear when rotated...?

thanks!

View Replies !    View Related
Magic The Gathering Flash Game Help
My friends and I are poor kids and are always looking for ways to enjoy Magic The Gathering. So after learning much about Flash and constructing a few websites in Flash and a mini version of D&D Flash, I wanted to create MTG in flash. I know how to build a database to contain the cards to be accessed by a flash client but a few bugs I need to work out in the actionscripting. aka I need some help on the actionscripting for the game. I want to work out these few things in the game-

- create a player hand that contains the cards (movieclips? assign stuff to them..)
- have those cards clickable so they can be draggable in the player screen
- have a table on the side of the player area for a task assigner showing the step the player is on (the player can just click a radio button to show what step he/she is in)

Thats about it, but the biggest problem I have right now is working with the movieclips and trying to have them work with images. Those images I am talking about are the cards themselves. If I could be pointed to articles or tutorials on MovieClips that deal with images like that and assigning properties to them I would be very grateful. Thanks for your help!

View Replies !    View Related
How To Make A Magic Ball With Mist?
Something in the line of the preloader of harrypotter.com

Anyone knows how to create a magic ball with some moving myst inside.

I am looking into the flash particles, but i could use some more pointers examples and/or tutorials

regards

View Replies !    View Related
Magic The Gathering Flash Game Help
My friends and I are poor kids and are always looking for ways to enjoy Magic The Gathering. So after learning much about Flash and constructing a few websites in Flash and a mini version of D&D Flash, I wanted to create MTG in flash. I know how to build a database to contain the cards to be accessed by a flash client but a few bugs I need to work out in the actionscripting. aka I need some help on the actionscripting for the game. I want to work out these few things in the game-

- create a player hand that contains the cards (movieclips? assign stuff to them..)
- have those cards clickable so they can be draggable in the player screen
- have a table on the side of the player area for a task assigner showing the step the player is on (the player can just click a radio button to show what step he/she is in)

Thats about it, but the biggest problem I have right now is working with the movieclips and trying to have them work with images. Those images I am talking about are the cards themselves. If I could be pointed to articles or tutorials on MovieClips that deal with images like that and assigning properties to them I would be very grateful. Thanks for your help!

View Replies !    View Related
Network Node Magic Crappo
Last edited by Codemonkey : 2005-01-26 at 09:39.
























Ok, so I don't know what the heck this is, but I made it. I was inspired by some guy doing magic with his network nodes. I tried the first idea that came to me... It's probably the simplest among future ones.



The idea is: there is a mothernode, the nexus. It starts with him... or her rather, since it's a mothernode

Every node has a size, with a maximum of 20 right now. size means energy. Every node can spawn up to 30 strands.

The smaller the node, the less strands the node can spawn at random and the shorter the strands will be at random length.

When a node is connected to a strand, the size is determined by the spawning node's size, and the strand's length. So the longer the strand the more energy it absorbed, the smaller the new node will be, always smaller than the spawner.

The angle of the strands is at random 360 degrees. Which would explain getting a semi circle


That's it, now I need some way to make this cool and special. And I wouldn't know what would do that right now.

Any ideas?

SF.

View Replies !    View Related
HELP A VILE OUT HERE CAN YA SEND ME A GURU THAT KNOWS MAGIC WITH FLASH?
Hey there!
I'm ViLe(as if you didn't already know) and I need some help from my fellow flashmates!(no flashin' people!j/k)
Girls and boyz I need help with something about the right-mouse clicker... How in heaven's name could I make a customized right mouse click menu as you would on a web page? There is a way I know it! I need for a flash project I'm working on..ASAP! or I'm in trouble! (

View Replies !    View Related
Book Review: Flash MX Audio Magic
An introduction to the use of audio in Macromedia’s Flash MX web authoring system. Primarily intended for those who have a good deal of facility and knowledge of Flash’s animation capabilities and now wish to add audio to their projects.

http://www.sonify.org/resources/boo...udio_magic.html

View Replies !    View Related
Awesome Board : High-tech-magic.com
Hi all,

I've just see a unbelievable board (in flash/php) where you can also draw... http://www.high-tech-magic.com
Is there anybody who can explain me how to create a such beautiful board?

Thank U.

View Replies !    View Related
Random Magic 8 Ball Type Generator
I'm trying to make somethiing similar to a magic 8 ball, but with animated responses. I can make a response generator, but I can't figure out how to randomize the responses.

I'm sorta new at flash, at least with game making, can someone explain it in layman's terms?

View Replies !    View Related
The Magic Turret That Fires And Kills Stuff
OK I've made a turret and I made it move and look at the mouse. But now I cant make it fire! Please help me.

Heres the .swf file:

http://img388.imageshack.us/my.php?image=turret6ff.swf

View Replies !    View Related
[Tutorial : Advance] Flexible Magic Button
Have you ever stucked in a situation where you need to duplicate tons of button where it looks the same but only varies on the text? Let's say in a survey or trivia game, or probably a website which expands to a lot of different section. And you're in confusion and clogged with bunch of unnecessary repeated and hassling steps. Here's the help that might bring you out of the dark world. Welcome.

Difficulty : Basic / Advance
Topic : Flexible Magic Button
Download : [ Flexible Magic Button]

Starting Up
A canvas that measures up 200 px X 200 px would be sufficient for this tutorial.

And we'll create a new Symbol which we'll name it btn_template.

Yes, we'll have nothing but only this movie clip inside our library. Amazing isn't it?

Inside the movie clip (using it to act as a button)

Moving on, we'll have a very simple looking movieclip which will act as a button. Three layers.

* Actions - nothing complicated here, only stop(); will be placed here.
* txtbox - A dynamic textbox will be placed here, which where the magic comes from.
* design - Only functions visually, and doesn't affect your button.


We'll prepare as planned, one simple rectangular and dynamic textbox.

See? Nothing's complicated. Unless if you decide to implement advance interaction here.

Next, we'll proceed with giving this dynamic textbox a name, for this case, we'll name it txtName

Some tweaking which is up to your preference to make the Dynamic text appear. For this case, it's more appropriate to center the text and unselect the "Selectable" option on the Properties panel.

We're done setting up the movieclip. We'll go back to the main scene.

The Finishing
Remember the golden rule in doing any project, REMEMBER TO SAVE!

The Stage's empty now right? Drag one instance from the Library to the stage, and name it btn1

Be patience, we'll about to see some magic soon, and on the actions layer, write the script as shown on the screenshot. And we'll test the movie and see if it's working.

You can choose the option Test Movie or by using Ctrl+Enter (CMD+Enter for Mac user)

THE MAGIC! yes, the word appeared. And what's next, no, we're not done yet.

As usual, we'll use the super-power of function make everything here easy. If you notice correctly, you'll find the similarity with the Rollover Smooth Button scripts. Yes, the share the same format but in this tutorial, you can dynamically change the content inside the button, using dot syntax.

Using Functions to simplify everything

On the functions' layer, we'll have this. Because instead of repeating the same Rollover and Rollout code all over again and making everything looks crowded on the actions layer, we'll simplify and only call rOver() and rOut() only.

*Note *
You might ask if it would make a difference if you place the functions and actions layer different, let's say for this case, note the function layer are placed above actions layer? And on the actions layer i placed a stop() on the bottom of the actions layer? In this case, if I place the actions layer on top of function layer, you might notice that the magic won't work, not even the Rollover/Rollout effect, this is because you stopped the movie before Flash reads the function layer. So, it does takes some planning if you want to separate layer. But not a big problem though, just a reminder.

Possibilities

Yes, you might ask, can i reuse the button and name it differently? Yes you can! That is where the magic comes from. And if you're interested to expand the idea and how far this interaction could go, I'd say, your creativity is the limit, and you can learn more on how to integrate different thing, and I'd have the tutorial ready in case you want to refer, and YES, you can combine all of it!

* Rollover Smooth Button (Transitions when rollover a button)
* Adding Sound to your button (Creating the wow-effect)


Here's the FLA file, have fun Flashin'
Download : [ Flexible Magic Button ]

p.s. - i've removed the picture from this post because it appeared to be super extremely user-unfriendly for me to post pic here, but the full version of the article is available at http://myflashportal.blogspot.com/20...ic-button.html

View Replies !    View Related
Can Someone Start Me Off Creating This Piece Of Dropdown Magic?
Hello all,
Can someone give some starter code to get a menu to do like this site http://www.imc2.com. I really like the smooth scrolling of the menus. I haven't tried to make one for myself and honestly don't have time, so if someone could get me going I would forever be grateful.

FN

View Replies !    View Related
[Tutorial : Advance] Flexible Magic Button
Have you ever stucked in a situation where you need to duplicate tons of button where it looks the same but only varies on the text? Let's say in a survey or trivia game, or probably a website which expands to a lot of different section. And you're in confusion and clogged with bunch of unnecessary repeated and hassling steps. Here's the help that might bring you out of the dark world. Welcome.

Difficulty : Basic / Advance
Topic : Flexible Magic Button
Download : [ Flexible Magic Button ]

Starting Up
A canvas that measures up 200 px X 200 px would be sufficient for this tutorial.

And we'll create a new Symbol which we'll name it btn_template.

Yes, we'll have nothing but only this movie clip inside our library. Amazing isn't it?

Inside the movie clip (using it to act as a button)

Moving on, we'll have a very simple looking movieclip which will act as a button. Three layers.Actions - nothing complicated here, only stop(); will be placed here.
txtbox - A dynamic textbox will be placed here, which where the magic comes from.
design - Only functions visually, and doesn't affect your button.

We'll prepare as planned, one simple rectangular and dynamic textbox.

See? Nothing's complicated. Unless if you decide to implement advance interaction here.

Next, we'll proceed with giving this dynamic textbox a name, for this case, we'll name it txtName

Some tweaking which is up to your preference to make the Dynamic text appear. For this case, it's more appropriate to center the text and unselect the "Selectable" option on the Properties panel.

We're done setting up the movieclip. We'll go back to the main scene.

The Finishing
Remember the golden rule in doing any project, REMEMBER TO SAVE!

The Stage's empty now right? Drag one instance from the Library to the stage, and name it btn1

Be patience, we'll about to see some magic soon, and on the actions layer, write the script as shown on the screenshot. And we'll test the movie and see if it's working.

You can choose the option Test Movie or by using Ctrl+Enter (CMD+Enter for Mac user)

THE MAGIC! yes, the word appeared. And what's next, no, we're not done yet.

As usual, we'll use the super-power of function make everything here easy. If you notice correctly, you'll find the similarity with the Rollover Smooth Button scripts. Yes, the share the same format but in this tutorial, you can dynamically change the content inside the button, using dot syntax.

Using Functions to simplify everything

On the functions' layer, we'll have this. Because instead of repeating the same Rollover and Rollout code all over again and making everything looks crowded on the actions layer, we'll simplify and only call rOver() and rOut() only.

*Note *
You might ask if it would make a difference if you place the functions and actions layer different, let's say for this case, note the function layer are placed above actions layer? And on the actions layer i placed a stop() on the bottom of the actions layer? In this case, if I place the actions layer on top of function layer, you might notice that the magic won't work, not even the Rollover/Rollout effect, this is because you stopped the movie before Flash reads the function layer. So, it does takes some planning if you want to separate layer. But not a big problem though, just a reminder.

Possibilities

Yes, you might ask, can i reuse the button and name it differently? Yes you can! That is where the magic comes from. And if you're interested to expand the idea and how far this interaction could go, I'd say, your creativity is the limit, and you can learn more on how to integrate different thing, and I'd have the tutorial ready in case you want to refer, and YES, you can combine all of it!Rollover Smooth Button (Transitions when rollover a button)
Adding Sound to your button (Creating the wow-effect)
Here's the FLA file, have fun Flashin'
Download : [ Flexible Magic Button ]

View Replies !    View Related
It's Magic Input Text Fields Have Disappeared
Hello all,
got a weird on here. I have a contact form in my site. It is a couple of movie clips deep. I had the form in another fla and copied and pasted the frames into the current project. I can see the input fields on the stage, but they disappear when I test the movie. The cursor show up when you mouse over the field but you cant type any text in it. I've lost a wholed day on this adn I give up. Can somebody please help? by the way, i'm using the kirupa php flash tutorial for the form.
Thanks

View Replies !    View Related
Scroll, Maxscroll, Scrolling Textbox Black Magic
this is driving me nuts. I am trying to make a flash chat where I enter some text into one text box and when I hit a 'send' button it appends that text to another text box that serves as the chat window.

That chat window has 4 lines of text visible, so I've written something like this into the 'send' button:

on (release) {

chatdisplay = chatdisplay + ":" + _root.mynick + ": " + chatinput + "
";
chatinput = "";
chatdisplaycount++;
if (chatdisplaycount > 4) {
chatdisplay.scroll += 1;
}
}

the problem is after i enter the 5th line of text, it does not scroll up, but after I enter the 6th line of text and hit send, it does scroll up but only by one so now I cant see the last line of text i entered, only the second to last line. so one would think I'm reading the line count wrong or something, but changing the if statement doesnt help, in fact nothing helps, the display is always one line behind.

even weirder, i set a test variable to check out what the maxscroll value is for the text box that updates each time I hit send. after hitting four lines (the height of the text box), it shows 1 as it should, but when I send the 5th line it still is at 1, only after the 6th line does it change to 2, and then keeps incrementing properly but by 1 offset from what it seems it should be.

finally I tried something like:

chatdisplay.scroll = chatdisplay.maxscroll;

which should always show me the last line of the text box, but still its always one line behind. its like the maxscroll value is lying to me. doing something like chatdisplay.scroll = chatdisplay.maxscroll +1; doesnt work either.

I also created another button that has a chatdisplay.scroll += 1; action on it to manually scroll the chat window down, and it works just fine, its not like the textbox is stuck or my text isnt actually there. what the hell is going on here? equally strange is the fact that if I type in 4 lines of text into the window in flash the authoring prog and then export it, sometimes only 3 lines appear unless i size the box just right, a little bit bigger than what the 4 lines are taking up on screen. If I try to resize the box to only be big enough to show the 4 lines, when I export it only shows 3. Could this be another part of the problem?

anyone ever have problems like this with flash text boxes and know a solution? thanks.

-zoltan

View Replies !    View Related
Magic Eight Ball (random Sounds On Button Press)
I'm working on a flash game that's like a magic eight ball.

Can someone point me in the direction of a good tutorial on how to play random sounds when you press a button?

View Replies !    View Related
After Upload; .swf Won't Load External .txt File? Somebody, Work Your Magic
hi there,
i've just about had it with this::
so i loaded "paranines.swf" and "contents.txt" to http://paranines.50megs.com/

i used: loadVariablesNum("contents.txt", 0)to load the .txt file
BUT IT DOESNT WORK...
i tried replacing ("contents.txt",0) with ("http://paranines.50megs.com/contents.txt",0) but the .swf still won't load in the text instead naming it "relatively"; all my variables are named correctly.

everything works perfectly when i test it from my computer.
as soon as i uploaded it to the site, it read the swf but the text wouldn't load.

im lost.

ALSO:: what about "GET" and "POST" what are they and would they help load the variables.

it's just a website for my band, but im soo frustrated,
i'll attach the .fla and .txt if anybody wants to work their magic.
im a flash newbie, don't make fun of the site

--zach
zbodtorf@aol.com

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