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




AS 2 Lost In Sound Problems



Hi,I am trying to create a button on an index page that will allow me to control the audio associated with loaded swf files – and cannot seem to do this. At the moment the sound is full volume – I’m to the point I don’t really care if the button acts as an on/off toggle or a volume control. I know there are numerous tutorials posted, and I have tried to read too many of them and therefore have completely confused myself! I am only making the problem worse, not better…. Any ideas or direction as to where to look? Any help is appreaciated!!! Thanks!



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 07-04-2008, 01:17 PM


View Complete Forum Thread with Replies

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

SWF Projector Sound Lost In CD-Rom
Hi all,
I run my flash creation from the CDROM and once the CD stops spinning I lose all SWF sound completely, never to return unless I reinsert the CD again.
How can I stop this happening.

Kind regards

Clive

Sound Lost On Importing Mc Into Another Mc
Sound has been lost by importing mc with sound into another mc.

First I have a mc called container_mc

_root.createEmptyMovieClip("container_mc2", 1);
loadMovie("menu_load.swf",_root.container_mc2);

Menu_load then loads another mc

on (release) {

_root.container_mc2.loadMovie("episode1.swf");
}
Now episode1 has the following code

_root.createEmptyMovieClip("Background_mc", _root.getNextHighestDepth());
_root.soundBG = new Sound(Background_mc);
_root.soundBG.attachSound("BGmusic");
_root.soundBG.start(0, 999999);
_root.soundBG.setVolume(100);

You can hear sound when movie is played on its own BUT not when imported into another movieclip ie: into container_mc2.

Lost The Sound.position
Hi there..wierd problem with sound.position..

I have one main movie with other sub-movies loaded into empty movieclips.
When I work on these sub movies, they work properly (audio and animation display). I am using sound.position to determine when to animate objects.

However, something seems to remove the sound.position after about 6 seconds...I've traced it, and the sound.position goes blank!

Can anyone see what might be interfering with it?
FYI...this is a CD-Rom presentation, so I am loading an event sound and the sound I am testing is over 30 seconds long.



ActionScript Code:
stop();
stopAllSounds();


//       mc title, size,   font,         x,    y,    width, height,depth, color,     text to display)
createText("lm_title", "18", "MyriadBold", "45", "40", "640","30", "1000","0x666666", "Learn More:","6");
createText("lm_subtitle", "18", "MyriadBold", "150", "40", "640","30", "1001","0xB4965B", "How can the test help you?","6");


trace_loaded_streams = function () {
        trace("mystream1's position = "+lmsound1.position);
      };
setInterval(trace_loaded_streams, 2000);


lmsound1 = new Sound();
lmsound1.loadSound("audio/choose_01_lm1.mp3", false);
lmsound1.start(0,0);


this.onEnterFrame = function() {
           
    lmsound1Position = this.lmsound1.position / 1000;
       
    if (lmsound1position > 1 && lmsound1position < 2) {
   
    lm_text1.customFade(100,10,50);
    }
   
    if (lmsound1position > 8 && lmsound1position < 9) {
    man.customFade(100,10,50);
    lm_text2.customFade(100,10,50);
    removeMovieClip(lm_text1);
   
    }
   
    if (lmsound1position > 10 && lmsound1position < 11) {
    calendar_colonoscopy.customFade(100,10,50);
    calendar1.gotoAndPlay("man_dates"); 
        }
   
    if ((lmsound1position > 13) && (lmsound1position < 14)) {
    t_screenman.customFade(100,10,50);
            }
   
   
       
    if ((lmsound1position > 25) && (lmsound1position < 26)) {
    removeMovieClip(lm_text2);
    man.customFade(0,10,50);
    calendar_colonoscopy.customFade(0,10,50);   
        }
   
    if ((lmsound1position > 26) && (lmsound1position < 27)) {
   
    t_screenman._visible=0;
    calendar1.gotoAndPlay("start_dates");   
    woman.customFade(100,10,50);       
        }
   
   
    if ((lmsound1position > 28) && (lmsound1position < 29)) {
   
    lm_text3.customFade(100,10,50); 
    t_screenwoman.customFade(100,10,50);
    calendar_screeningtest.customFade(100,10,50);   
        }
       
    if (lmsound1position > 33){
   
    removeMovieClip(lm_text3);
    lm_text4.customFade(100,10,50);
    delete this.onEnterFrame;
        }
       
}



stop();

Sound .... I Lost My Panning
Hello,
looking for some help with sound in flash. I need to keep my panning with mp3s that are in my flash. There is panning in the files, but flash didn't keep the panning when loaded into swf.

anyone know what I can do?

Stopping Sound On Lost Focus
Hey,
I'm exporting my flash movie as an .exe projector to go on a cd. The flash movie has some URL links which open up a webpage in a browser, how do i make my looping music in flash fade out when the actual flash movie loses focus?

Thanks.

Im Lost A Little... No, I Lied. Im Totally Lost
Ok... I have been making flash movies for quite some time and never tried to learn actionscript or any of that mumbo jumbo.

Heres the deal; I need to learn how to make a site in flash. Basically what I need to learn to do is how to make pages link together, Do you just make different scenes, or what is the best way of taking that on? Then do you just link it with get_url ... I understand how to integrate actionscript but "NO" clue on what ones to use or anything. PLEASE HELP... Thanks a ton

Joel McLaughlin

Please Help Me I'm Lost
Hi !

I have a movie with 5 layers of music.
The sync is event and at last frame it has the action : go to frame 1 and play, and it works great.

I took all of this layers and put them inside a movie clip and this time the sync wat start.
even though it had the same action when the loop happend it played only 3 of the layers at the first time and at the second time it played them all.

what am i doing wrong ?

how can i put layers of sound in a movie clip and still have it loop great ????

thanks in advance
tamika

Lost My Fla.....
Hi

A while I go I did a small flash movie and I went back to use it, and I discovered that I have lost the fla file and all I have is the swf file! so I cannot change it. Is there anything I could get that would allow me into the swf file.

Thanks

Im So Lost :/
hi.
2 start with i just wanna say that im a newbie to flash

ok i have 2 things i cant understand at all

1st thing is how to make a preloader , i have tryed to look at the tutorial pages , but the problem is not that there arent any ... but ... its all how to make advanced with a bar or with sound or whatever (advanced for a "noob"? ... doohh ), but i just whant i simple one where i can write "loading plz stand by" or something simple like that, but i dunno how to make the preloader
and info about how to make "a simple" one would be very very nice (and in a languge even i could understand )

the next thing is that my flash films just keeps looping ..... and i dont whant them to do that , any info in how to stop the flash from looping? (plz like above : in a languge that even a "noob" like me would understand )

thanks in advance and sry for being such a noob

ps. sry for my bad english im danish

I'm Lost, Please Help Me.
thanks but it still dosent work.i just dont understand this.

I Am Lost
ok...i dont know if i will to download a site interface how to edit it..can i do it with flash mx...and can someone tell me how?

I'm Lost
Hi All,

I was reading this article in Macromedia:
http://www.macromedia.com/desdev/mx/...o_lock_14.html

and got confused along the way, Just want to ask regarding this syntax below:


compareOps == allMountingOps[i].lookUp()

What does ".lookUp()" represent? is it a custom function scoped within the array allMountingOps[i] ?

Can you help me out by at least giving me an overview on how this works?

Thanks a Bunch!
Butch

Pls Help Me , I Am Lost
I am trying to have a new window open when a thumbnail is clicked so a bigger pic is displayed in a new window. What can i do?

Secondly, when the new window is opened, there would be a "close" button for user to exit that new window allowing them to navigate the original window.

Thanks for the help!

Help Really LOST
I am really new at the whole FLASH thing. I am trying to create a webpage with a slideshow of a bunch of pictures (JPG) and a little sound. Is flash what I am looking for I want the pictures to move at 1 to 2 a sec. You know just long enough for your brain to go Wooh what was that? Any help would be great. Thanks

I'm More Then Lost.
I'm lost. I am trying for hours to find a problem, without any luck.
In the search for this, I came across this, and it might cause the problem.

I have two files, an old one (done in FLash MX) and a new one, done in FLash MX2004.

In FlashMX2004, I've opened the old file. Then I copied the textfields that cause the problem. In this file the textfields do exactly what they are supposed to do.

So I copied them, including the actions, to a new file. So they should be exactly identical, I thoughed. But they are not.

In the old file, the debug/list objects looks like this:


Code:

Level #0: Frame=1
Movie Clip: Frame=1 Target="_level0.instance1"
Shape:
Text:
Text:
Edit Text: Target="_level0.instance2" Variable=_level0.LLIDcheck Visible=true Text = "
Edit Text: Target="_level0.instance3" Variable=_level0.SWFIDcheck Visible=true Text = "
Edit Text: Target="_level0.instance4" Variable= Visible=true Text = old"


In the new file, the debug list objects looks like this:


Code:
Level #0: Frame=1
Movie Clip: Frame=1 Target="_level0.instance1"
Shape:
Text:
Text:
Edit Text: Target="_level0.instance2" Variable=_level0.LLIDcheck Visible=true Text = undefined"
Edit Text: Target="_level0.instance3" Variable=_level0.SWFIDcheck Visible=true Text = undefined"
Edit Text: Target="_level0.instance4" Variable= Visible=true Text = new"


I've repeated the copy/paste numerous times, thinking I made a mistake.

Can anyone please tell me why that "undefined" is there, and only in the new file? If I replace the textbox by a newly made instead of copied I get the same result.

script in both files (this swf is loaded into another swf, and that one holds the variables. And strangely enough, I've copied and pasted this quite a few times allready, it never went wrong, uptill now, I yust can't find out what's different this time):


Code:
SWFIDcheck = _level0.basket.SWFID;
LLIDcheck = _level0.basket.LLID;


Thanks,

Please Help, Im Lost?
Making a movie clip copy play at certain times.
What happens is the movie clip does not leave the designated spot and travel to the other side, I was wondering if there would be a way to time each copy, so that like every 2 secs it will reproduce a copy, not just all at once. I hope I explained this well enough to undrstand.
--------------CODE--------------------
onClipEvent (load) {
maxLaser = 6;
depthCount = 1;
_root.laserTwo._visible = 1;
laserCount = 1;
}
onClipEvent (enterFrame) {
if (laserCount<=maxLaser){
laserCounter++;
_root.laserTwo.duplicateMovieClip("laserTwo"+depth Count, depthCount);
_root["laserTwo"+depthCount]._visible = true;
depthCount++;
}
if (depthCount>maxLaser) {
depthCount = 1;
}
}

--------------CODE--------------------

Lost.....
I'm having trouble with sending email from Flash via php.
I have a simple email form and a sendmail.php script, but I can not seem to get them to work.

Could please someone take a look and tell me what's wrong.

*The original source of this script is from:
http://www.sephiroth.it/tutorials/fl...mail/index.php

Thanks

I Lost Everything, All My .fla's
Hey all, I need help in a bad way. I'm recovering from a bad crash where I had to boot from the windows CD and install windows again cuz of a lot of corrupt/missing files. In the process I lost all My Documents and more importantly, a web projects folder which had all my work

I was recently updating my website too, which is a huge kick in the nuts.

www.toddbeaz.com

is there ANYway to retreive an .fla from the .swf pulled from the site? Or does anyone know if I can somehow recover lost files due to the windows installating overwriting everything? I would have to start from scratch again, which sucks.

Thanks
Todd

Is It All Lost?
i spent about 6 months working on a flash website. today i looked at the folder and all my .fla files are gone! i must have overcopied them or something. im absolutely devastated to the point of nearly being in tears.

is there any way i can get the .fla files back from the .swf files i have.

if theres programs that do this could somebody please recommend one.

fingers crossed im not watching 6 months work go down the swannie.

martin Australia

Im Lost
ok i was wondering if there is a way to load a whole folder of pics into flash and place them all in different frames. I tried xml to load the pictures into an empty movieClip for each of them, but that seems to make the main movie very glitchy and tends to skip around quite a bit. I have 36 photos i want to control with a mouse drag on the main movieClip. the problem with xml is i cant get it to load into other frames inside that main mc only on frame one. The way i got around that was to make the main mc 24 frames long and put the 36 empty movieClips all in so they all streatched the 24 frames. then on an actions layer with 24 keyframes i had each frame say witch mc's are visible. However, this makes the main movie very jittery. The problem with all the photoslide shows i have found is that they have time between each photo i need it to be instant. I really may need to just toss them all into the movie on their respective frames....Any help or point in a better direction is appreciated

Im So Lost Here
ok guys i have this code in my actions layer. The images are gotten through xml. The problem is my fade in wont work correctly. I have gone through so many posts and tutorials.....im lost is there something wrong with it?...im i just plain outa my league?.....should i just through my computer away and work manual labor the rest of my life?......ugh



PHP Code:



thumbHolder.onRollOver = function() {
                    inte.loader2.loadMovie(this.main);
                    pic = this.main;
                    inte.loader2._alpha = 0;
                    onEnterFrame = function () {
                        _root.inte.loader2._alpha += 10;
                        if (inte.loader2._alpha>99) {
                            _root.inte.loader2._alpha = 100;
                            inte.loader.loadMovie(pic);
                            
                            onEnterFrame = null;
                        }
                    }
};




any help or point at a tutorial i missed would be great

[F8] OMG Im Lost
ok, i just bought studio 8, and i've run through many of the included tutorials, ive dinked around online, looking for some tutorials, something that works, to help me get on my feet and really run with flash 8 pro.

basically what i want to do is make an mp3 player for my myspace to start off with, just something simple (or seemingly simple for that matter, lol) i know there is probably alot to it. but im willing to try. if anyone could take the time to guide me to a good tutorial or even give me some hints it would be awesome. im really excited to start off with this stuff, but i am really a huge n00b.

i know, buying studio 8 without any experience was probably foolhearty, but hey, i mean, u gotta start somehow.

Lost In CS3
I was horrible at Scripting in Flash 8, and now I upgraded to CS3 and am totally lost. All I need is for a button to have the old "gotoAndstop" function. Can someone please help me?!?

I'm Lost :)
Hi all,
For my next project I need to make online wheels configurator. (same like on: http://www.mijnautovelg.nl). But I don't know where to start . I need some links or tutorials regarding this subject. If anyone knows, I would be very gratefull.
Tnx in advance..

Lost
I purchased flash 8 pro a few months ago, Now i just recently moved and misplaced my serial number. is there a way to look it up inside of flash or in one of the folders? Any help is much appreciated.

I'm Lost....please Help
Hello,

I'm a new users at this forum and relatively new to Flash 2004 too....

I'm troubled with arrays/text and here's my problem -
I have two sets of arrays in my code. What I want to do is sew them together in such a way that when one is called/activated the 2nd set of array with the same digit is also displayed.

I have the design array working fine but the skill array does not show or display! Here's my coded ......

// create an array for attaching new designs on our timeline
design = new Array(4);
design[0] = "design0";
design[1] = "design1";
design[2] = "design2";
design[3] = "design3";

skill = new Array(4);
skill[0] = "description0";
skill[1] = "description1";
skill[2] = "description2";
skill[3] = "description3";

max = design.length;
itemDepth = 1;

for (i=0; i<max; i++) {
// attach new item
content_mc.attachMovie("design"+i, "design_"+i, itemDepth);
curItem = content_mc["design_"+i];

content_txt.createEmptyMovieClip("conTex", 1);
content_txt.createTextField("contText"+i, 1, 517.6, 26.5, 311.2, 183.5);
content_txt["conText"+i].multiline = true;
content_txt["conText"+i].text = skill[i];

// put the MC in an array
design[i] = curItem; .........................}

What am I doing wrong that the text does not display?

Lost
hi

i'm having a problem understanding and creating the attached movie. there are two bars (horizontal and vertical) that should control the dots movie clip. what I want to happen is when move the horizontal bar to the right the entire dots movie clip moves to the upper right corner; when move the horizontal bar to the left, the dots movie clip moves back to its original position. for the vertical bar, I want each small circles in the dots movie clip to move away from each other when the vertical bar moves down.

for some reason.. I get lost in the way and I wonder if you can help me out. Thank you very much.

I'm Lost...
I have been given a Flash project to take over, and I'm learning this as I go. I am completely stumped, however. I cannot for the life of me figure out how this thing even runs.

It's really simple. A single nested window contains nothing more than a title bar and a top-menu. Lots of screens and the rest of the menu are created at runtime though a series of action scripts.

What I can't figure out is how it gets started. There is NO action script in the .fla. Not a single line. The AS files are not part of the project - there IS no project. just a bunch of AS files and an FLA.

What tells the project to run my EventDesktop.AS file at startup?

Lost Flv
I made a swf clip a few months back and unfortunately my flv file was lost to file corruption. The swf is protected and now I cannot edit or make any changes.

My question is, is there any way to edit the swf without the flv when it is protected?

Lost...AS3
i have an instance of UIloader Component (fl.containers.UILoader), instantiated as loaderOne.
i also have an instance of UIloader Component (fl.containers.UILoader), instantiated as thumbLoader.
thumbloader auto loads a swf containing some button components, that file is named thumbSwf.swf
My Goal is to have those buttons load some images into loaderOne.
Both of these loaders are on the stage.
Using AS3, I cannot seem to find the correct path to do this?

It works fine if I have those same button components directly on the stage, but I loose communication with the above scenerio.

many thanks for any help on this.

Wow I Am Lost
I just got flash mx about 5 days ago. I have been working on a game. I have made some of the menus and stuff. I have a couple ?s:

1. I am not even close to done and the file is 4mb! Help!

2. I have a web site (www.airsoft1.bravehost.com) and I want to put my game on it. How do I do this?

3. I get lost when I try to read action script stuff. I need help. The game is about airsoft (like paintball but with bb guns). I want to have a shop where you buy stuff with your money. I tried to do the thing where you click the item and it subtracts the amount from your $$ ( I used the score tutorial) ,but how do I stop it from letting you buy something when you dont have enough money? (DO you use something like if root.money >/= 20 then - 20 (if the item is $20).

4. It would really help if I knew how to let you guys see the file( I tried to attach it but it is 4mb and it has been trying to post this message for an hour {56k}).


THANKS -I am lost

Lost Help Moi
Having problems with loading dynamic jpg´s with preloader.

When loading the first pic with button1 the preloader is working fine. But if I click button2 to load another image my preloader bar doesnt move at all (stays at 299 pixels). Im using this code:

ActionScript Code:
this.createEmptyMovieClip("preloader", 1000);this.createEmptyMovieClip("container", 1001);container._x = 5 ;container._y = 28 ;container._visible = false;preloader.onEnterFrame = function() {    var l = container.getBytesLoaded();    var t = container.getBytesTotal();    var getPercent = l/t;    //loadText = Math.round(getPercent*100)+"%";    loadBar._width = getPercent*299;    if (l>0 && l>=t) {        container._visible = 1;        delete this.onEnterFrame;    }};button1.onPress = function() {    container.loadMovie("image1.jpg");};button2.onPress = function() {    container.loadMovie("image2.jpg");};


Whats wrong ??

I'm So So Lost On This
the block of code below is from an online tutorial

var interval:Number = 5;
function someCodeToRun() {
clearInterval(mySetInterval);
trace(interval+" seconds have elapsed");
}
mySetInterval = setInterval(this, "someCodeToRun", interval*1000);


I don't understand how to make it work for Please Help...

i want to run this code:
new mx.transitions.Tween(_root.firstLoader.content.con tactLoader.content, "_alpha", mx.transitions.easing.Regular.easeOut, _root.firstLoader.content.contactLoader.content._a lpha, 0, 20)

the whole picture would be like this:

contact_btn.onPress = function(){
contactLoader.load("contact.swf");
}
this loads the swf "contact" into a component Loader

after 5 seconds I would like to use the tween code from above to transition out the swf, or either just unload the swf.

thanks

Lost In XML
Hey, I've been following the Introduction to XML article and started playing around with the Squirrel Finder example, my aim was to make an XML menu which would simply load a URL in a new window. This would (hopefully) allow me to add downloads to my site through XML. I thought I'd clocked it and finally understood what was going on, but I seem to have lost and confused myself with it. Now I'm really scratching my head, cause I can't see what's wrong.

I changed the tutorial example to use attributes instead of nodes, and found things working out quite nicely, but I just noticed I'm having issues with my URLs.

For some strange reason, no matter which button I click on, I always get sent to the last URL that was loaded from the XML file, instead of the correct one. I'm hoping someone can help, because I've been working through this for the best part of a day and I'm starting to lose hope.

Here's the code:


Code:
// define basic variables for setting up the menu
var item_spacing = 54; // how far menu items are spaced veritcally
var item_count = 0; // counts menu items as they are added from the XML

// CreateMenu creates a menu based on the XML object passed.
// It loops through all the items with a for loop adding clips to the menu_mc
// movieclip on the timeline, defining the appropriate text where needed
function CreateMenu(menu_xml){
// start with the first item in the XML
var items = menu_xml.firstChild.firstChild.childNodes;
for (var i=0; i<items.length; i++) {
if (items[i].attributes.type == "client_checkup") {
// create variables for our elements
var client = items[i].attributes.client;
var title = items[i].attributes.title;
var urls = items[i].attributes.urls;

var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc._y = item_count * item_spacing;
item_count++;

item_mc.client.text = items[i].attributes.client;
item_mc.title.text = items[i].attributes.title;

// set the onRelease of the item button to the DisplayInfo function
item_mc.main_btn.onRelease = function(){
getURL(urls, "_blank");
}
}
}
}

// manage XML
// create new XML object instance, remembering to ignore white space
var test_xml = new XML();
test_xml.ignoreWhite = true;

// define an onLoad to create our location menu when the XML has successfully loaded.
test_xml.onLoad = function(success){
if (success) CreateMenu(this);
else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}

// load the xml file!
test_xml.load("test.xml");
Thanks in advance to anyone that can shed some light on my error, I can only assume it's obvious as I thought it was all working earlier today.

Lost, Need Some 1 On 1 Help...
Hi Everyone,

I need some 1 on 1 help and I don't know where to turn. I have entire project planned out and it seems really simple, and I have all the graphics made, but its the animating or doing the frames that I don't understand.

Please help.

-CJ

AS2 To AS3 - I'm Lost
I am trying to bring my site up to AS3, but I can't figure it out.
Here's the code for my MC's in AS2.
Any idea of how to convert it?
Thanks!

//--------------BUTTON FUNCTIONS----------------//
function rollover(movieName) {
if (currentPlace != movieName) {
eval(movieName).gotoAndPlay("over");
}
}
function rollout(movieName) {
if (currentPlace != movieName) {
eval(movieName).gotoAndPlay("out");
}
}
function stick(movieName) {
currentPage = 1;
if (currentPlace != movieName) {
eval(currentPlace).gotoAndPlay("nextSection");
eval(currentPlace).enabled = true;
}
currentPlace = movieName;
eval(currentPlace).gotoAndPlay("released");
eval(currentPlace).enabled = false;
}
//----------------------------------------------//

//-------------*BUTTON ROLLOVERS and ROLLOUTS*----------------------//
menu_one_mc.onRollOver = function() {
rollover("menu_one_mc");
};
menu_one_mc.onRollOut = function() {
rollout("menu_one_mc");
};
//----------------------------------------------//

Lost In AS3
Hello there everybody first of all!
i am a graphic designer and since yesterday i developed not-so-complex flash websites using ActionScript 2.0..you can see my websites here ( I know it's not updated since last year but it's a stand-by project ). Now it's time for me to reach a decision: keeping on developing AS2 websites or learning the new AS3 language. For many reasons i thought that learning AS3 would be more interesting developing my own site entirely in AS3.
I saw this site and i was wondering what kind of AS3 knowledge i will need to have to reach that result? i mean, anyone could focus me on what kind of knowledge i will need to acquire to develop that kind of site structure, functionalities? ( fullscreen navigation, liquid GUI, XML flashlightbox-like image gallery, etc).
I digged a little bit into the AS3 references, tutorials on the internet and i was a little bit lost about the new coding concept behind AS3 and i don't know where to start to develop an entire AS3 project. it looks so complex to me! Any suggestions please?

Wow I Am Lost
I just got flash mx about 5 days ago. I have been working on a game. I have made some of the menus and stuff. I have a couple ?s:

1. I am not even close to done and the file is 4mb! Help!

2. I have a web site (www.airsoft1.bravehost.com) and I want to put my game on it. How do I do this?

3. I get lost when I try to read action script stuff. I need help. The game is about airsoft (like paintball but with bb guns). I want to have a shop where you buy stuff with your money. I tried to do the thing where you click the item and it subtracts the amount from your $$ ( I used the score tutorial) ,but how do I stop it from letting you buy something when you dont have enough money? (DO you use something like if root.money >/= 20 then - 20 (if the item is $20).

4. It would really help if I knew how to let you guys see the file( I tried to attach it but it is 4mb and it has been trying to post this message for an hour {56k}).


THANKS -I am lost

I Am Lost///
i have a thumbnail strip made randomly. and i want the thumnails to change in fade also randomly. my problem is that the thumbnail changes before the fade.
i created a function for each thumbnail like this:
Code:
function pic0() {
i = random(j);
this.createEmptyMovieClip("targetClip0", 1);
targetClip0._x = 22;
targetClip0._y = 13;
this.targetClip0.attachMovie("pic"+i, "pic", 1);
}
my fadeout function is called from a clip that runs as a timer and goes to a random frame in the timer where i have a function that sends a parameter to the fadeout function that looks like this:

Code:
function fadeOut(param) {
this.onEnterFrame = function() {
if (_root["targetClip"+param]._alpha>0) {
_root["targetClip"+param]._alpha -= 10;
}
};
_root["picB"+param]();
}
the _root["picB"+param]();is suppose to create the thumbnail that is suppose to exchange the first one.
which looks like this:

Code:
function picB0() {

i = random(j);
this.createEmptyMovieClip("targetClipB0", 6);
targetClipB0._x = 32;
targetClipB0._y = 23;
this.targetClipB0.attachMovie("pic"+i, "pic", 6);
fadeIn(0);
}
my fadeIn function looks like this:
Code:
function fadeIn(param) {

this.onEnterFrame = function() {
if (_root["targetClipB"+param]._alpha<100) {
_root["targetClipB"+param]._alpha += 5;
}
};
_root["pic"+param]();
}
i tried many things i know that what i see is only the targetClipB

Everything Lost ?
hello people, something crazy just happened to me.... i've been working on a site for my parents restaurant for a while, i was working on it a few seconds ago, and when i tried to save, an error message occured.(something like cannot save). so since i only changed a little thing to the site i decided to close it and reopen it. WHen i closed it... the file was gone. Only the swf is still there... the .fla is gone !!!!

what can i do??? did i just loose everything i was working on??? why did this happen??? can i recover the .fla from the .swf???

please help !!!!!!!!!!!!!!!!!!!!

How Is This Done, Im So Lost
Ok I was over at teknision.com and the have this collapsible menu that completely blows my mind, I found a component Called Collapsible menu that uses XML and Actionscript (by Stefan) but how did they put images and animation and make the frames big enough, is there any tutorials i can start on and work my way up or someone have a .fla i can learn from.
Thanks

Lost
I have this code and it sits in the main movie to load three images dynamically. Thing is, i have 20+ buttons all needing to load the same layout with different images. At the moment i have the buttons take you to a new frame with the same code, just altering the image destination.

Is there a better way to do this as this is gunna load 20+ images on the initial loading... aint it.

Told u i was lost

//initialize variables and properties
square._alpha = 0;
whichPic = 1;
//initiate change to new image when buttons are clicked
next.onPress = function() {
if (whichPic<3 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("../images/image"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
// limit input field
if (input>3) {
input = 3;
}
// initiate change to new image when Enter key is pressed
if (Key.isDown(Key.ENTER)) {
fadeOut = true;
whichpic = input;
}
};
// if a number is entered in the input field but Enter is not pressed, change
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
input = whichPic;
};

Lost In .fla
hi everybody!
i'm searching a source (.fla) for using mask, opacity and slidding like this.
http://www.fabrislane.com
if y've got an idea!
thanks

So Lost :)
Hey all;

I'm going to try to do a site for a small company, and they've asked me to put their catalogue up online.
They want me to have small thumbnails of their products on a page, and when they're moused-over, have a small Flash popup showing pricing, availabilty, etc about the product from a database.
I've been researching and researching on how to do this, and can't find a good resource or tutorial...
So far, all I've come up with is to make a single reusable flash movie, and to populate a page with several instances of the same movie, kind of like an imaege gallery.
The movie would accept input variables (which would be an image URL, the price, the availability, etc) that I would feed into it from a server-side script.

Is this a silly way to do this? Is there a better way? Can someone recommend a link or resource??


Thanks !


Ben Z

Variables Are Getting Lost On Some PC S
The working of my site is reliant on the passing of variables between different levels.Level 0 holding many of them.On some PC s these variables are lost about 50% of the time(mainly internet cafes).On other PC s the site works perfectly.Has any one else expirienced this or does any one have a suggestion on how to ensure the site is perfect for every PC.

Tell Target? I'm Lost
I have a movie clip called "radio" in my main movie, on entering frame 1 of "radio" an external movie called "song1" is loaded containing an mp3. When this mp3 has finished playing, I want to tell "radio" to goto and play frame 2 (which will load the next external movie "song2").

Anyone know the code?

I Am SOOOO Lost. Little Help?
Hey Guys-

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

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

WAY OUTTA MY LEAGUE.

Any suggestions?

Thanks

Retrieving Lost Fla.
Greetings,

I built a cool flash menu for my site but some of the contents have changed.
The problem is that when I reformatted my harddrive I put all of my flash stuff onto a cd rom, after reformatting I found that the cd was corrupt and have lost the fla for the menu.
I do however have a copy of the swf file that I downloaded from my site using an ftp program.
Is there any way to turn it into a fla file or unlock what I did to create it?

Lost In Space
Ok Im running xitami web server. Now I downloaded a feedback form from Flashkit. It contains fla swf and the cgi script which opens in notepad. How do I go about getting this thing to work? Do I have some sort of compiler to make the cgi an actual exe or what? Can someone please explain this to me in simple steps. Ive been at this battle for quite sometime.
1.
2.
3.
4.
My icq number is....133056584

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