[MX04] How To Create A Pop Up
I have been having trouble trying to create a pop up from a picture a resizable window.
FlashKit > Flash Help > Flash Newbies
Posted on: 10-14-2006, 11:01 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[MX04] How To Create Such Effect.. Help Me Pls..
Hi Everyone,
I find a nice effect on this site..
http://www.cma2u.com/v2/
Wonder how to create it using Flash MX2004 or Swish Max..
Is it some build in Effect that we can straight away click and it will automatically generate for us?
Thanks in advanced.
[MX04] How Do I Create A Downlaodable Pdf
hi i have an image of a map on my flash site..i want to make it so that when u click on it the user downloads a pdf version of the map...does anyone know how to do this?? thanks alot
[MX04] Create And AttachMovieClip Problem -
So here is what i want to do:
-I have an XML that i load containing filenames of images
-Then I create emptymovieclips on the stage and make them load the images
This is done to Preload the images into the movie.
Later in the Movie i have Menuitems (as Movies).
Within this Menuitems is another movie, stopped on frame 1.
Rolling over the Menuitem makes the nested movie go to frame2
Frame 2 contains a empty Movie as "placer" where i want to attach the created movies from root containing the image
On root after loading and parsing the xml i have:
Code:
for (i=0;i<10;i++){
var mc:MovieClip = _root.createEmptyMovieClip("img_"+i,this.getNextHighestDepth());
// place outside stage
mc._x = -1000;
var url = _root.imageurl[i];
mc.loadMovie(url);
}
This is fine so far, images get loaded.
Now within the placer I have:
Code:
onClipEvent(load) {
id = _parent.id; // Get id of the ClipContaining the correct Image
this.attachMovie("_root.img_"+id,"holder",this.getNextHighestDepth());
}
and this does not work....well I tried different configurations, but
I have the impression that I'm going wrong somehow.
Any suggestions?
[MX04] Create Array In Loop
On the root of my project I have an array '_root.artistList'. This array lists the names of several text files that are essentially arrays themselves. I would like to gather one of the variables from each of these text files and put it into a new array. I am having trouble figuring out how to get the array to populate. It seems to be recreating the array through each iteration of the loop. Maybe its a variable scope thing? I'm a bit green in this area. Here's the code, running in a MC on the main time line.
Code:
var titleList:Array = new Array(); // create a new array to store the art titles
varReceiver = new LoadVars(); // create an object to store the variables
for (i in _root.artistList) {
varReceiver.load("art/" + _root.artistList[i] + ".txt"); // load the variables from the text file
varReceiver.onLoad = function(){ // trigger something - when the variables finish loading
trace(this.title); //shows the correct value each time
titleList[i] = this.title; // add this title to the array
};
}
trace(titleList); // shows nothing
[MX04] Create A Variable Name From Two Values And Then Assign It A Value
Hello all,
What I want to do is use to variables to create a third variable's name and then assign that third variable a value. Here's the code I'm trying to use:
Code:
{
eval(variable1) + eval(variable2) = a_value;
}
I keep getting the following error message when I compile the .fla:
Left side of assignment operator must be variable or property.
The reason for this is obvious, but I can't seem to discover a way around it. Any help would be greatly appreciated.
Thanks,
Greenham.
[MX04] I Wish To Create A Music Player Within Flash
I have created three buttons in Flash, a stop button, a right skip button (to change the song forward), a left skip button (to go to the previous track. These buttons all work.
And I have selected five songs. I was wondering what is the best way of making all work in Flash, is their a tuturial for this sort of thing or a piece of actionscript?
Thanks in advance
[MX04] How To Create A Simple Search Engine...
Hi does any one know how to create a simple search engine that will enable the user to find dynamic text from one page to the other? Example: Say I have a search engine on the main flash page; and I type in a word that is located on the second page. Will the search engine link me to the second page were the dynamic text is located?
Thanks.
[MX04] Like To Create A Website Like Http://www.leoburnett.com/
Hi Guys,
I need to create a complete flash website with a navigation like this website.
http://www.leoburnett.com/
I also want to know how can I achive the same effects like when you click on any link on the screen it becomes big and shows the related information and when you click the other link it small down and open the other link as a big screen.
any tutorial refrence will be very helpfull
Dynamically Create Text Area Component MX04
Hey Peeps,
Is there anyway you can dynamically create TextArea Component in flash?
I mean you can dynamically create a movie clip using AS like
mynew_mc.createEmptyMovieClip("newmc", 0);
I basically want to create a TextArea field using the text field area component on the fly using AS.
Dynamically Create Text Area Component MX04
Hey Peeps,
Is there anyway you can dynamically create TextArea Component in flash?
I mean you can dynamically create a movie clip using AS like
mynew_mc.createEmptyMovieClip("newmc", 0);
I basically want to create a TextArea field using the text field area component on the fly using AS.
[MX04] [MX04] Action Script To Stop A Movieclip Playing
Does anybody know of any actionscript to put on a flash button that will make a movie clip stop playing when rolled over (not an offstate in the clip) but separately on the main timeline? Kind of like a stopallsounds but for a specific movieclip? I have something that is making me crazy!!
Create, Delete, Create Event Handlers
Hi,
At the moment I create an onEnterFrame function to ease a movie clip into view. I then delete it. I want to be able to recreate a similar onEnterFrame function later to swoosh the movie clip out of view. At the moment weird things happen when I try and do the second onEnterFrame. Am I doing something illegal here?
I know I could put this all in the original onEnterFrame, but I don't wanna be wasting processor time doing an if statement every frame to work out if it's time to swoosh out the movieclip. Or should I not worry because that's negligible cpu time?
Tom
ASP To XML In MX04
Does anyone know how I can accept variables from an asp page and convert them to xml to load a tree component?
Mx04 -> Mx
I got a trial of Flash MX 2004 and I worked on some of my projects and saved them with it. They are saved in MX04 content. Now I am back to MX and I cant open them. Is there any way to convert the .fla from MX04 to MX? Thanks for any help.
[mx04]
Hi all,
does somebody know, is there in FlashMX2004pro a list of created instances?
Thanks
[mx04]
I asked this question earlier, but in the wrong section. Does anyone know how this animation technique was done:
http://www.fakepilot.com/work/tahiti/
thanks,
sbarnes16
[mx04] FAQ Q
Maybe will sound silly, but how to read FAQ #28 ?
Search machine doesn't seem to work good.
Thanks
[MX04] FPS Help
do all games use the regular FPS commands, because from computer to computer-my programs vary a lot.
so here is my code...
speedx = 3;
Speedy = 3;
speedx2 = 3;
Speedy2 = 2;
this.onEnterFrame = function() {
//Snail follow mouse
snail._y = _ymouse-snail._height/2;
snail._x = _xmouse-snail._width/2;
//Snail has borders
if (snail._x>500-snail._width) {
snail._x = 500-snail._width;
}
if (snail._x<0) {
snail._x = 0;
}
if (snail._y<0) {
snail._y = 0;
}
if (snail._y>500-snail._height) {
snail._y = 500-snail._height;
}
//kite has speed
kite._x += Speedx;
kite._y += Speedy;
kite2._x += Speedx2;
kite2._y += Speedy2;
//kite bounces off walls
if (kite._x>(500-kite._width)) {
Speedx = -Speedx;
grape=2
}
if (kite._x<0) {
Speedx = -Speedx;
}
if (kite._y>(500-kite._height)) {
Speedy = -Speedy;
}
if (kite._y<0) {
Speedy = -Speedy;
}
if (kite2._x>(500-kite2._width)) {
Speedx2 = -Speedx2;
}
if (kite2._x<0) {
Speedx2 = -Speedx2;
}
if (kite2._y>(500-kite2._height)) {
Speedy2 = -Speedy2;
}
if (kite2._y<0) {
Speedy2 = -Speedy2;
}
};
i want to know how i can make that code exactlly 30 FPS or really close to it, if it is even worth it.
[MX04]How Do You Do This..help
Hey guys and girls!
I was given a task at work to come up with a campaign to try to re-create a flip page banner that is posted on the http://www.eetimes.com. If you notcie on the homepage there is this one flip page banner that opens up fully if you hover over it. I did something like this but not quite like it. This one you can hover and the html navigation become unactive because of the expansion of the banner but when you hover away from it, the navigation becomes active again. I checked out the source and I couldnt find thw .swf file. Any suggestions on how to approach this?
[MX04] Help
I have a 60 second song that i want to loop between the times that i want.
for instance, I have a varible named SOUND.
if (SOUND==1){
loop song from 0 to 10 seconds over and over again
}
if (SOUND==2){
loop song from 10 to 20 seconds over and over again
}
if (SOUND==3){
loop song from 20 to 30 seconds over and over again
}
[mx04]
How would I use XML to update table data within HTML pages from a navigation file created in Flash? Currently I have audio playing in the background, and the problem that I am having is when using getURL the page that loads also loads the audio portion, so each new page loaded starts the audio over. I'm sure there is an easy way to use XML to simply fetch data and replace the table data using only the index.htm file so that the audio stays put as well. Any ideas?
[mx04]
yo
so i use this mc code to change a hat
stop();
this.onEnterFrame = function(){
if (_root.hat ==1){
gotoAndStop(1)
}if (_root.hat == 2){
gotoAndPlay(2)
}
}
the hat blinks every time i move or do anything
[mx04]
Hi,
I've been trying to a string into Actionscript to split into an array
via LoadVars. The requested file is written in PHP, and it builds a string
from a PHP array. When I insert trace statements within the
function shown below, the external data seems to be loading fine.
I want to assign the values to an array called 'messagetext' that lives on Frame 1 of the main timeline. However, I cannot seem to reference anything outside of the function itself.
messagetext = new Array();
//Data import*********************************
var hh = new LoadVars();
hh.onLoad = function(success) {
if (success) {
messagetext = this.messages.split("|");
trace(typeof (this.messages)); // 'messages' is the value contained in the PHP file - returns 'string'
trace(messagetext.length); // returns '110'
}
}
hh.load("http://127.0.0.1/test/comments.php");
//******************************************
trace(messagetext[1]); // returns 'undefined'
I'm sure this is pretty obvious (but not to me right now).
Where could I be going wrong ?
Many thanks in advance for any tips.
Neil.
[mx04]
Help!!
I have downloaded this .fla from flash kit..nice and have managed to adapt to suit my purposes for all but little but essential bit.
Its a menu navigation with alot of stuff i have no idea about (hence why i downloaded it and didn't do it myself) What i am after is when you scroll over the relevant subheadings i need these to be able to link to their pages.
The problem here is i can't just create a button over each one as it uses actionscript to define these subcategories. The only solution i thought that might work would be to duplicate the sub headings, call them into the movie asit does already and place an invisible button on each one of them....is there an easier way than this?
[mx04]
My buttons won't work when placed in a movie clip
[mx04]
I am having a problem with Arrays and variables.
I have 10 items stored in an array, and 10 text fields. I want to populate the text fields from the array.
my array is called aCases, so in the variable field for my first text box I put aCases[0][1] this did not work.
I know I can do this - var myText1 = aCases[0][1], which works fine, but I do not want to write this out 10 times, is there a better way to do this?
IMS
[mx04]
Hello!
I have an interesting and very perplexing problem. I have made a few small flash banners and movie clips before and have had no problems placing them into other files. However, I'm working on a personal site for my boyfriend and for some reason, the flash on the index page will not load at all (IE browser is the only browser I have available to test atm)...it looks like IE is still attempting to "download" the file. The file itself is not that big (21kb)...the gallery has a larger groupings of flash files and works better than the flash on the index page. I've tried it locally and it works fine. You can view the website here
Any help would be greatly appreciated. I'm new to working with flash and am very confused as to why my simple movie will not work.
[mx04]
Hi all ,
I would very much like to use this script in my topbanner
http://www.flashkit.com/movies/Anima...9661/index.php
But I would like to make the animation bigger , I have tried a few things like just making the image bigger but that doesn't work , any ideas on how I can do this?
[MX04] How Do I?
<a href="http://smg.photobucket.com/albums/v288/Tonto14/Flash Work/?action=view¤t=webinerfacefinished.swf" target="_blank"><img src="http://img.photobucket.com/albums/v288/Tonto14/Flash%20Work/webinerfacefinished.swf" border="0" alt="Photobucket - Video and Image Hosting"></a>
i want that code to show up as the swf on my myspace page, how do i save the file to do that, i tried publishing as a html file but i couldn't get it to upload via photobucket, each time i tried enterign that code onto the page it shows up as two little dots......
[MX04] How Can I Do This?
i wanted to make something similiar to the look of the button on the over state...
http://www.flash-template-design.com...w.php?tid=1408
not the flips and what not...just the glowin hi-tech screen lookin square.. that the button number is in...
Thanks!
[mx04]
I am trying to change a script for rotating images to control it by the "left" and "right" keys of the keyboard. It now works (x) mouse position. moving mouse to left or right will change direction and speed.
The probleme is I seem to be unable to change the _xmouse into a variable that is give by the
on (keyPress "<Left>") {
_root.keyposX = 0;
}
I would really be great if someone was time help me on this.
gr diemster
---------------- org script ---------------
imagelist = ["images/01.jpg", "images/02.jpg", "images/03.jpg", "images/04.jpg", "images/05.jpg", "images/06.jpg", "images/07.jpg", "images/01.jpg"], "images/01.jpg", "images/01.jpg";
MovieClip.prototype.rotation_menu = function (imageList, posX, posY, alpha, focus, posZ, radius, loading, turnfactor)
{
var angle = 0;
var images = [];
var pi = 2 * Math.PI;
var image, dimension, piangle;
var xfactor = 300;
this._x = posX;
this._y = posY;
this._alpha = alpha;
for (var i = 0; i < imageList.length; i++)
{
image = this.attachMovie ("loadingclips", "image" + i, i);
image.wphase = pi / imageList.length * i;
image.container.loadMovie (imageList[i]);
if (loading == false)image.window._visible = 0;
images.push (image);
}
this.onEnterFrame = function ()
{
xfactor =_root.keyposX;
//_root.keyposX =_xmouse
//angle += center._xmouse / turnfactor;
angle += center._xmouse / turnfactor;
//angle += center.keynum / turnfactor;
if (angle >= pi)angle -= pi;
if (angle < 0) angle += pi;
for (var i = 0; i < images.length; i++)
{
image = images[i];
image.x = radius * Math.cos (image.wphase + angle);
image.z = radius * Math.sin (image.wphase + angle) + posZ;
dimension = focus / image.z;
piangle = Math.atan2 (image.x, image.z);
image._x = image.x * dimension;
image._xscale = -100 * dimension * Math.sin (image.wphase + angle + piangle);
image._yscale = 100 * dimension;
image.swapDepths (-(int (image.z)));
}
};
}
//imageList, posX, posY, alpha, focus, posZ, radius, loading, turnfactor
center.rotation_menu (imagelist, Stage.width/2, Stage.height/2, 100, 600, 600, 200, true, 8000);
[mx04]
Hi. can someone instruct me how to modify a Flash file to always start from a particular frame when on the net. This is for a return page, where I don't want to have to sit through an intro loading up again. I want to edit this page and I've found the point I want it to start from-frame #250-but I want this section of the file to actually be Frame #1.
[mx04]
i want to click a button in my site and have a window open over my site but with no web navigation options at the top, ive tried a few scripts but cant do it...can someone help...i want this effect www.mutinybikes.com when u click on the highlited text...
thanks alot
[mx04]
Please, can somebody help me make a flash?
I have 3 different jpg pictures 120x120px. The 2 first pictures shows a coin, front and back, the last picture has white background with an information in black text.
I want this to happen: The first picture shown the coin front(picture1.jpg), then you take the mouse over the first picture the picture rotate horizontaly and shown the coin backside (picture2.jpg) and stop there. If you take the mouse pointer away from picture, the picture1.jpg will show again. The next are, if you press the mouse buton down over the same, you will read the text (picture3.jpg). If you release the mouse the picture1.jpg will show again.
Hope that somebody can read it out for me?
Best regards, John Arild Pettersen, Norway.
[mx04]
Hi,
I have a movieclip into which I load an swf file. I would like to duplicate one of the movieclips that is loaded in the swf file. But I don't want to keep it inside the holder movieclip for the swf file; I'd like to move it so that it's nested within another movieclip on the stage.
How do I do this?
Thanks!
[mx04]
Hello everybody
Iam new to this forum
I have some doubt reg.
HOW TO OPEN BROWSER/POP-UP WINDOWOF SPECIFIC SIZE USING JAVASCRIPT IN FLASH
thanks
[mx04]
I am pretty new to flash, and I am trying to make a stickfigure animation.
I made the stickman, he has a basic head, torso, arms (with joints at the elbows), and legs (with joints at the knees).
Whenever I move his arms or legs so that they are overlapping other arms, legs, or his torso, it makes a joint on the overlap point. It attachs his arm to his torso, for example. And when I try to move that part of the arm, it takes the torso with it, thus completely messing up the figure.
Why does it do this? Do I need to make each individual body part a different layer?
[mx04]
I've got a movie that resizes, but there are two problems:
1. I cannot add a margin between the bottom products (commented actionscript on line 75 seems like it should work, but doesn't).
2. Vertically stretching the movie works, but it screws up when reduced.
If anyone can help, please do.
Movie attached.
[mx04]
I was watching this "How to" video about ActionScript, it looked like 2.0, on the video the person hit a button and the ActionScript panal opened in another window. So, my question is, how do I do this in MX2004? or do you think this was a Flash 8 he was using?
Thank you
[mx04]
Hi Okay this is what i'm doing
i have 5 Frames
okay first Frame just sets the Varibles
Code:
1st Frame
// Set the Variable
var Num = 1; //Loop Pictures -- <- This Value Changes Max Set to 30 in Timer.
var thePicNum = 1; //The Picture Number To Start.
var picnum = "MC"+thePicNum; //New picture Fadeing In.
var oldpicnum = "MC"+0; //Old picture Fadeing Out -- <- This Value Changes Value Changes in Timer.
trace("Main Scene start");
//setProperty(MC1, _alpha, "100");
2nd Frame Changes the MC's Alpha by 2 each pass
Code:
2nd Frame
//
// find alpha of new pic
picalpha = getProperty(picnum, _alpha);
//
// find alpha of old pic
oldpicalpha = getProperty(oldpicnum, _alpha);
//trace(picnum+oldpicalpha);
//
// If you want to change fade speed, alter + & - amounts below!
// if the new pic alpha is 0, fade it up to 100
if (picalpha<100) {
trace("Fade IN - "+picnum+" - "+picalpha);
setProperty(picnum, _alpha, picalpha+2);
}
//
// if the old pic alpha is 100, fade it down to 0
if (oldpicalpha>0) {
setProperty(oldpicnum, _alpha, oldpicalpha-3);
trace("Fade OUT - "+picnum+" - "+oldpicalpha);
}
Loops back to frame 2 till alpha 100% then go's to next Picture
After each 100% go to Frame 4 where Timer is and Script to Call Next MC up
Code:
3rd Frame
if (picalpha<100) {
gotoAndPlay(2);
}
if (picalpha>=100) {
gotoAndPlay(4);
}
Code:
4th Frame has a MC with 4 Frames
//////////////Frame 1
play();
tellTarget ("../") {
stop();
trace("I'm Paused");
}
//////////Frame 2
start = Number(getTimer()/1000);
end = start + pause;
////////////////Frame 3
current = Number(getTimer()/1000);
if (current>=end) {
tellTarget ("../") {
play();
//
if (Num<30) {
Num = Num+1;
oldpicnum = picnum;
thePicNum = thePicNum+1;
picnum = "MC"+thePicNum;
}
//trace("pass1 - "+Num);
//trace("pass2 - "+picnum);
//trace("pass3 - "+oldpicnum);
if (Num>=30) {
Num = 0;
// Set the Variable
var Num = 1;
//Loop Pictures -- <- This Value Changes Max Set to 30 in Timer.
var thePicNum = 1;
//The Picture Number To Start.
var picnum = "MC"+thePicNum;
//New picture Fadeing In.
var oldpicnum = "MC"+0;
//Old picture Fadeing Out -- <- This Value Changes Value Changes in Timer.
}
//
}
} else {
play();
}
///////////Frame 4
gotoAndPlay("checktime");
Code:
5th frame
gotoAndPlay(2);
trace("Loop Timer!");
Okay 11 Layers Totaly works fine i have each MC on it's own Layer but the Problem now is from 12 On it won't Fade in or out it just Appears then Vanish Quick no Fadeing if anyone can Help PLEASEE DOOO E-mail at Qarbontapice@msn.com i can send you fla file if you think you can help THANKS SOO MUCH
[MX04] Help Plz
hi i got an assignment to do like a mini flash movie/lesson, im doing mine on shapes in cars, and i made some starts like a star and a circle donut thing in fireworks and put them on the shapes layer and on the 60 layer put a car like jsut one i drew with fire works and i tried to like put a shape tween on so it owuld transform into it but it didnt work plz help
[mx04]
I am newby in actionscript. I try to create a simple quiz with three questions. Each time where the player press in a mc this is invisible. If it is right score it is increased. Rather I make some error in actionscript.
Any help, … Many Thanks
[mx04]
hi,
all I need to do is stream a big audio file and make it loop.
I am just confused at the minute. I thought it'd dead easy but it doesn't work.
Here is my code.
Code:
var soundContainer:Sound = new Sound();
soundContainer.loadSound("test.mp3", true);
soundContainer.start(0,999);
The music plays once and stops.
There is nothing else but these 3 lines in my movie.
thx
[mx04]
Hello everyone....I am a total beginner when it comes to flash. In fact, this is my very first project. I replicated the ActionScript and elements from an example I found in a book I have that has two chapters on Flash. I am using Flash MX 2004. Specifically the problem I am having is as follows:
This flash movie is supposed to have a text box with the text "CEO Assistant 1.0" drop down until frame 15. When frame 15 is reached a button appears containing the text "GO". When you mouse over the button, the color of the button changes. When the button is clicked, a second textbox/control is supposed to display "text" hard coded in the action script for my button using the "on press" event.
I have gotten all of this working except for the second text control responding to the button click so it displays the correct text....any ideas or help would be appreciated.....I have attached the .fla so anyone who wants to can take a look...
[MX04] How To Do This
have a look on the following link:
www.onspeed.com, u'll see 3 options for the software i.e. onspeed for mobile etc. click on demo. A demo window opens and shows a little simulation (animation). There they have shown the downloading comparison (the prgress bars are moving like in windows). My question is, is that all done in flash or that bars are something like recorded first and then put in the animation?
[MX04] Help..
Hi guys, I've searched the forum but can't get an answer to this one. I used flash 4 and 5 years ago and have been out of the game for a while, got MX 2004 and can I hell work out how to do a simple alpha blend transition on the time line! I can get it to blend one way but not back again. please help any help would be gratefully accepted.
bren.
[mx04]
I've checked everywhere but i still cant figure out how to make a rotating arm shoot towards the mouse. I have the arm rotating but i'm not sure how to get the bullet shooting. Any help?
[MX04] Why This Happens? Is This A Bug Or Something?
I've made a website in french an english and for some reason the english button send me to french part when I click on it the first time. Once I refresh the page and click again it works perfect.
It's just the first time I click on it, do u have some ideas?
thisthis is the site
[mx04]
Help! I created an animated header which is supposed to play through once, when the website is launched, but not if the user goes to different pages in the website [because that is very annoying!]. I got it to play only once with "stop", but can't figure out how to keep it from playing when I go to another page on the site. Any ideas or prior questions of similar nature? Thanks!
|