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




Pulling My Hair Out



Hello, I hope there is somebody out there with enough knowledge to help sort out the problem I am having with this movie.

Attached is a movie and on it's own in flash player or even in a browser it works great. If I introduce the movie into my site www.gtgrafix.com and view it again then a certain part of the actionscript fails to work. The bit I am talking about is the number (101) will no longer change with the loading of the images. Like I say, viewed on it's own in flash player it works fine.

The images are externally loaded so they will not appear. Can somebody please help.

Cheers
Gary



FlashKit > Flash Help > Flash MX
Posted on: 08-16-2004, 11:59 AM


View Complete Forum Thread with Replies

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

Help Help Help, I'm Pulling My Hair Out
just to quickly outline the problem

need two buttons (next and previous) which can control a tweened timeline by playing the playhead backwards and forwards but will also stop at certain keframes to allow the user to read the content.

i don't want to use the old 'reverse frames' trick.

can anyone help?
ste

//////////below_ is the actual problem i have

lets say my movie clip is called 'myMC'

myMC has 40 frames and two layers

layer one has the text context i want to scroll. it will scroll top to bottom. the text content has four 'sections' these are;

text one
text two
text three
text four

layer one (still inside "myMC') has 4 keyframes, the text content is a symbol which is tweened between 4 keyframes (over the 40 frames of the timeline) to make it look like it is scrolling, when masked.

layer two is a mask
this masks off all the text content, so the viewer can only see one section at a time.

where do the buttons need to go? On the _root timeline or can they be inside "myMC' i only want two buttons controlling the text content, next and previous.

i need the buttons to be intellegent enough to know where the user is on the (myMC)time line so they can scroll the text content up and down.

the scrolling is simulated because all i want to do is make the buttons play the tween forwards or backwards and stop at the right place.

can you help?

i would be very very grateful if anyone could offer a solution to this problem, i've been tearing my hair out for four days on this one!

ste

Pulling Out Hair
I have this damn code at home and I thought I remembered how to do it but it isn't working. I am trying to create and empty movieclip with actionscipt and then fill it with a graphic from my library. So I made the graphic ready for export for actionscript and gave it the name border. Then I wrote this code on the first frame of my movie:

Border.createEmptyMovieClip("newBorder",1);
newBorder.attatchMovieClip("border","newB",1);

I know I am really close but the damn thing won't work. I have it right at home but I don't want to go there to figure it out. Thanks

Pulling My Hair Out
ok, i know this has a simple solution but i just am unaware of it.

my problem is with loading movies. if i load them on to a seperate layer (exam: the main is on layer 0 and the rest are on 1) then the main page on layer zero flashes up in between loads.

i am now trying to use a holder but am having probs with it. do i want to load to different levels or use a holder in some way?

if i want to use the unloadmovie then how do i factor that in?

please please help!!!!!!

thanks,
lawrence

Pulling My Hair Out
http://www.itclimate.com/test/index.htm

I really don't know what's going on here and I'm starting to think I've bitten off more than I can chew!

This site works perfectly when I test it locally (using Flash 5) but when I upload it, the buttons just point to any old page in no particular order. "Downloads" is the main problem. If you click this button it always seems to take you into the case studies and then the case study buttons won't work. Once the user has clicked a few times it seems to rectify itself but initially, it's a real mess. Every time I upload it, the worse it gets!

I'm quite new to Flash, so I've tried to keep the site as simple as possible. Each section is a new 5-frame scene (with the exception of the case studies - these are much longer but also broken up into scenes). The only Actionscripting I have used is to tell buttons to point to a specific scene. Once they're in that scene they will always start at Frame 1.

I've also noticed in the How It Works section that when the user clicks the last button (Security) it closes the window. This button is meant to work as the rest do and go to the section on Security. I have tried deleting the button and uploading the site without it but then the same thing happens to the next button (i.e. Time).

Has anyone experienced this type of thing before? Can anyone help me??? Pleeeeease?

P.S. The login button takes you out of the website into another one, so don't click it.

Pulling My Hair Out
i have a question about loading movies and how their timelines work.
i have am almost finished this movie and have taken my self and AS to a new personal.

my movie is quite smart (my opinion) but has a little bug.

is anyone here on im ...i just dont know if i can ask my question right here.


i have two actually. one i dont think i can explain here.
and the other is this.

can i dynamically load a dir of images. i am pulling in a lot of jpgs dynamicall and want to know if i can load them witha preloader movie clip.

thanks
my icq is #34491500

Pulling My Hair Out
I'm completely lost.
I'm trying to create a simple email form from this tute.

http://www.actionscript.org/tutorials/intermediate/php_send_mail/index.shtml

From what I gather all need to do is change the email addy in the php file to my own and upload both the swf and php files to my server.
But I've done this on 2 different servers and changed the email addy to 3 different ones and it wont work.
I cant get it to work.
I've tried for days before I decided to throw myself at the mercy of the board.

I'd be eternally greatfull for any help I could get.

Pulling My Hair Out
I am trying to do some (what I thought) was easy error checking on a form.

Here is my code:
code:
if (_root.hello.helloForm.name.cName=="") {
_root.txtStatus="please enter your name";
}
//_root.txtStatus=_root.hello.helloForm.name.cName;
//selection.setFocus("_root.hello.helloForm.name.cNa me");


the commented out lines work just fine. But the if statement does nothing. There is something SIMPLE that I am overlooking here. I just can't seem to see it. Thank you for your time and help!

Pulling My Hair Out
Hello all,

I want to make a song player/m3player on my flash site.

the details:
All i want is a play, stop, next, and previous button while you can view the song being loaded/played. Thats all!!!! I dont' want a song list, i just want it to just skip to the next song i have. No volume button.

I can't find a tutorial anywhere.

I am trying to accomplish the player similar to the one below (please click). Notice: where it says "Audio".

http://www.bimarkinc.com/website/index.htm

PLEASE HELP ME SAVE MY HAIR!!!! Thank you all

Pulling My Hair Out
So glad you're here!!!

Here's the problem:

I have five buttons - each has the same audio "bleep" sound on the over state.

My problem is that when I click on my button, the over sound plays again.

My Over keyframe contains the little one second audio file. My Down keyframe is blank. So is the hit. So I can't figure out why it would play twice.

any ideas? I've been troubleshooting this glitch for 2 hours

cheers
jen

Still Pulling Hair Out
I have attached a preloader (5kb) that needs fixed! I cannot figure it out! It is in MX format. Right now the preloader sits in the first frame and runs untill all frames have loaded. Not all the content! So basically the preloader says its done loading the site, and then you sit there waiting for the site to actually load!

Very easy for someone here so please take a look see. Basically I want the preloader to load 100% of the movie.

My grads go out to all that are here and helping!

Im Pulling Out My Hair.......
ok i have an xml file loading images....works great....it also makes thumbnails....also works great. But when i mouse over the thumbnails....i want a fade transition....this is where i blow it.....it works some of the times....what is wrong with this code? im i retarded? or what?



PHP Code:



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

[MX] Help Please I Am Pulling Out My Hair Here.....
I have more than one .swf and I have set it up to where you click and it opens to the next .swf but the problem is i need the 2nd .swf file to open with the navigation buttons and logo still on the top. right now it is just blank on top because it is opening but all by it's self? So, basically...I am trying to figure out how to have the navigation buttons and logo at the top?

Pulling My Hair OUt
Hi,

I have been through all loadvars, loadvariables, loadvariablesnum postings and have not seen anyone with the problem that I am having.

Running Flash MX 6 and Coldfusion 5.

I have a flash file in which I am want load a variable from a CFM.

loadvariables("http://servername/flash/_flashrights.cfm",0);

Contents of _flashrights.cfm
============================================
<cfsetting enablecfoutputonly="Yes">
<cfoutput>&MenuRights=11112111&EOF=true&END&</cfoutput>

If I go to the physical drive using My Computer and double click the HTML file with the embedded flash object everything works!

If I run the flash movie (Crtl-Enter) from within Flash MX 6 everything works.

If I open IE6 and type in the URL http://servername/flash/some.html the flash will not load the variables.

Pulling my hair out!!!!

Would appreciate the help. Thanks.

Pulling My Hair Out
I'm completely lost. In Tutorial 06 in the intermediate section, a simple flash/php email form is explained. From what I gather, all I need to do is change the email to my email and upload onto the server. I've tested this on 2 different servers with 3 different email addresses and I can not get it to work. Both servers do have php installed. Any ideas??

Pulling My Hair Out Over Nothing?
I think i am having some issues concatenating and calling the instances in my for loop here....can anyone see anything wrong with the syntax or any other reason why this might not work? Anything that would make this thing not work? Ive been trying for hours, can figure it out

for(i=2; i<=10; i++){
duplicateMovieClip(mask0_mc,"mask"+i+"_mc", 1)
j=i-1
trace(["mask"+j+"_mc"]._width)
trace("mask"+j+"_mc")
["mask"+i+"_mc"]._width = (["mask"+j+"_mc"]._width*1.1)
["mask"+i+"_mc"]._x = (["mask"+j+"_mc"]._x - ["mask"+i+"_mc"]._width);
}


tracing the width gives me underfinded while tracing the mask+j+_mc, gives me the instance names of the clips :?

please tell me that Im lame and this is an easy syntax thing :?

thx in advance for any help.

Pulling Hair Out HELP
Ok, I've developed my first entire Flash site and I've come across a problem that I can't figure out.... I have an entire swf as the site and within it, it loads external movies for the content. On one of the pages it's covering sun safety but for some reason the page isn't reading correctly.

The site is www.hawaiianblend.com

Please ignore the blatent "what not to do" stuff and check out the "SAFETY" page. yet, if you load the swf by itself of the safety2.swf it works fine.

Any help would be greatly greatly appreciated!!!!!

thanks

Pulling My Hair Out Over Nothing?
I think i am having some issues concatenating and calling the instances in my for loop here....can anyone see anything wrong with the syntax or any other reason why this might not work? Anything that would make this thing not work? Ive been trying for hours, can figure it out

for(i=2; i<=10; i++){
duplicateMovieClip(mask0_mc,"mask"+i+"_mc", 1)
j=i-1
trace(["mask"+j+"_mc"]._width)
trace("mask"+j+"_mc")
["mask"+i+"_mc"]._width = (["mask"+j+"_mc"]._width*1.1)
["mask"+i+"_mc"]._x = (["mask"+j+"_mc"]._x - ["mask"+i+"_mc"]._width);
}


tracing the width gives me underfinded while tracing the mask+j+_mc, gives me the instance names of the clips :?

please tell me that Im lame and this is an easy syntax thing :?

thx in advance for any help.

Pulling Out My Hair
Allright... I know I've asked a lot of questions already, but I am once again stuck.  After hours of work I finally figured out how to load a check box into the datagrid (easy to do once you know how, but learning wasnt fun.... all i was missing for hours was adding a checkbox to the library.. feel free to laugh).  So, I've got all my information to load into my datagrid just the way I want.  I have the "status" field setup to use checkboxes.  (this is my first time using action script to do binding and loading of xml data, and I have ADD so I get overwhelemed easily).  So, with teh following code I load my xml document, which is just a basic database of trail names, their ability levels, and whether or not they are open to ski.  I want the status column (ie is the trail open or not) to be the checkbox column.  Got that to work finally.. except for the fact that every box is always checked as true when the xml loads, even though about half are set to false.  I did some research and I'm still lost.  Here is the code.  As you can see I have set up my currentStatus variable as a Boolean value, but that doesnt seem to work.  BTW I am using the built in CheckCellRenderer Class.  And I am in the middle of setting up a window to display trail info, so I have a few trace statments in their that dont pertain to this question.

// Set the initial text for the combo box to "Please Select"
import mx.controls.gridclasses.DataGridColumn;
dataGrid_dg.selectable = true;
// make the first selection of the comobo box temporarily <please select>
level_cb.text = "<please select>";

//setup the datagrid with columns, and make the status column a checkbox
var statusColumn = new DataGridColumn("status");
statusColumn.cellRenderer = "CheckCellRenderer";
statusColumn.width = 50;
statusColumn.headerText = "Open?";
dataGrid_dg.addColumn(statusColumn);
var nameColumn = new DataGridColumn("name");
dataGrid_dg.addColumn(nameColumn);
nameColumn.width = 200;
nameColumn.headerText = "Trail Name";
// event listeners for the combo box (change)
comboListener = new Object();
comboListener.change = function(evt) {
        //load the xml document
    loadReport();
    function loadReport() {
        var snowReportXml = new XML();
        snowReportXml.ignoreWhite = true;
        snowReportXml.onLoad = onSnowReportXmlLoaded;
        snowReportXml.load("snow_report12.xml");
    }
    // function for when the xml doc is fully loaded
    function onSnowReportXmlLoaded() {
        // grab arroy of child nodes of the root node
        // (children should be the name nodes
        var arTrailNodes = this.firstChild.childNodes;
        // for each child node
        myDP = new Array();
        for (var i = 0; i<arTrailNodes.length; i++) {
            //set variables for the data from the xml
            var currentName:String = arTrailNodes[i].firstChild.firstChild;
            var currentLevel:String = arTrailNodes[i].firstChild.nextSibling.firstChild;
            var currentStatus:Boolean = arTrailNodes[i].lastChild.firstChild;
            //if the string from the combo box selection is equal to the
            //level element of the current loaded trail....
            if (String(level_cb.selectedItem.label) == String(currentLevel)) {
                //creates myDP array, and adds the current name and status
                //of all trails in that ability level to teh array then puts
                //the data into the dataset, which then populates the datagrid
                myDP.addItem({name:currentName, status:currentStatus});
                dataSet_ds.dataProvider = myDP;
                dataGrid_dg.dataProvider = dataSet_ds.dataProvider;
            }
        }
    }
};
level_cb.addEventListener("change", comboListener);
var myDataListener = new Object();
myDataListener.change = function() {
    trace("the selecttion has changed to "+currentName);
};
dataGrid_dg.addEventListener("change", myDataListener);


Pulling Hair Out As We Speak
This has got to be something simple that i am overlooking, this is the code within a dragable tab on a scroll bar (much like the one used in any other scroll bar).


Code:
on (release) {

//adjust textField appropriatly
TAB_RANGE = 280;
TAB_OFFSET = 140;

tabPercent = (this._y + TAB_OFFSET)/TAB_RANGE;
trace("tabPercent: "+tabPercent);
maxScroll = _root.pane2.mainText.maxscroll;
newScroll = 1 + (tabPerent*maxScroll);
trace("maxscroll: "+maxScroll);
trace("newScroll: "+newScroll);
trace(tabPerent * maxScroll);
_root.pane2.mainText.scroll = newScroll;
this.stopDrag();
}
what happens when i trace through this is that newScroll is ALWAYS 1 no matter where i drag the tab... what should be returning is a number between 1 and maxScroll which then updates the mainText.scroll variable accordingly. Hope you can be of some help, thanks in advance.

Im Pulling What Little Hair I Have Left Out...
I am creating a drag and drop.
Main movie has an emptyMC that loads a swf.
That swf has another emptyMC that loads another swf.
In that swf I have an MC named "thumbs".
In that MC are little picture thumbs that are MC's and another MC named "dropBox".
I want to drag the thumb MC's to the dropBox MC and when that happens I want the thumb MC to play. Easy right?
I can not get the MC to recongnize its over the dropbox.

Script I have so far is this. Works fine for springing back into place.

code:
onClipEvent(enterFrame){
if(_root.doTween){
xSpeed = ((_x - -47)/1.1 + xSpeed)/1.8;
ySpeed = ((_y - -36)/1.1 + ySpeed)/1.8;
_x -= xSpeed;
_y -= ySpeed;
}
}
on(press){
this.swapDepths(100);
startDrag(this,true);
_root.doTween=false;
}
on (release) {stopDrag();
if(_root.mtClip.holderClip.thumbs.t1._droptarget == "/dropBox") {
_root.mtClip.holderClip.thumbs.t1.play();
} else {
_root.doTween=true;
};
}


THis works fine if all is on the _root. So I'm sure its just a target issue with the "dropBox" MC.

Heeeeeeellllp

Josh

Pulling My Hair Out AGGHGHGH
ok here is the deal. I have my flash site with 7 buttons when you click a button it takes you to a scene where it loads an external SWF. Inside this SWF I have a loadsound button that loads an external MP3. In my main site it also loads an external mp3 with this code:

mySound = new Sound();
mySound.loadSound("sound/iheardopen.mp3", true);

when I click on the loadsound button in the external swf, it plays the sound from the main timeline instead of the one I want it to play. The weird thing is if you load the SWF file itself in the browser, it plays the correct file !

http://www.ihearditmedia.com/flash/wizpage.swf

code for button:

on(press) {
if (playing!=true) {
playing=true;
preloadNow=1;
mySound.loadSound("http://www.ihearditmedia.com/mp3/AAA.mp3",false);
//mySound.start();

}//Close If-statement

}//END

Please Stop The Hair Pulling
I looked and searched all over! But after reading the tutorials amongst other things, I still can't figure out how to get a "PRELOADER" to use my movieclip????

I have a MC (MC) that I want to run while the preloader checks the main movie (MAIN) for frames loaded and then it will simple start playing frame 1 on the main movie (MAIN)! Basically I need the script for this! Have an .FLA already that does this? Attach it PLEASE!

HOW HOW HOW??????? Does the preloader have to be a seperate scene??

Please help!

Pulling Hair Out Over Swapping MCs
Hey everyone. I have a HUGE hurdle here. I am making a sort of pick and choose thingy. don't ask, LOL

Anyway even though my codes are hilarious to look at, they do work. I have a "point system" set up to tell the movie whixh frame to go to based on which MCs have been chosen.

My problem is that I can NOT for the life of me find anything that will help me swap MCs from one frame to another.

For an example here is what I have on one of my MCs:


Code:
on(rollOver){
_root.whatis = "Domino";
}
on(rollOut) {
_root.whatis="";
}
on (release) {
if (_root.qNum == 8){
domino.enabled = false;
}
else if (_root.qNum <= 8){
tellTarget ("_root.domino") {
_visible = false;}
_root.points = 2;
_root.score = _root.score + _root.points;
_root.qNum = _root.qNum + 1;
}
if (_root.qNum >= 1) {
_root.bonus = _root.bonus + 1;
}
}


As you can see, I have made the MC "disappear" once clicked, unless 8 other MCs have been clicked first.

ALL I WANT is to have this MC disappear from Frame 3 like it does now and APPEAR on Frame 4 in a certain spot.

So let's say the "domino" is the object in question.

on Frame 3 of the swf:
The player will click on the domino FIRST. (domino instance name "domino")
The domino disappears from view.
The player clicks "View Board" button that takes them to Frame 4

on Frame 4 of the swf:
The MC instance name "domino_small" has replaced the MC instance name "hit1" at X-35 Y-169
The player clicks the "Return" Button to make 7 more choices.


Seems simple, based on MC clicked, instance of small mc appears on another frame, and place holder on that other frame is gone, or replaced.

If you need visual clarifications, the fla is right here (MX Pro 2004)

Thanks for any help!

~MoN

Pulling My Hair Out Over Here Flv Issue.
I'm newbie with A3 someone please help me on this.
6 flv with 6 buttons to launch the each video.
how do I stop lets say video 1 if i click on button 2??

here what i got so far.

stop();

import flash.events.MouseEvent;



troy_btn.addEventListener(MouseEvent.CLICK,vClick) ;

function vClick(event:MouseEvent):void{
gotoAndStop("getTroy");
}


travis_btn.addEventListener(MouseEvent.CLICK,aClic k);

function aClick(event:MouseEvent):void{
gotoAndStop("getTravis");

}

Please someone help me out, I'll be forever in your debt

Still Having Problems <- Pulling Hair.....
Hey guys, I still cannot figure this out. Here's the deal

I have 3 .swf's.
index.swf, choosebikes.swf, and lesson1.swf

Here's how it goes,
index.swf
loadMovie("choosebikes.swf", "movie1");

on a button click in choosebikes.swf
loadMovie("lesson1.swf", "_root/movie1");

Now in lesson1.swf I have:

times = 0;
teller = "";
stop();

skills.onPress = function() {
this.startDrag();
};
skills.onRelease = function() {
this.stopDrag();

};
events.onPress = function() {
this.startDrag();
};
events.onRelease = function() {
this.stopDrag();

};
act.onPress = function() {
act.startDrag();
};
act.onRelease = function() {
trace("my position is: "+eval(this._droptarget));
this.stopDrag();


};
enables.onPress = function() {
this.startDrag();

};
enables.onRelease = function() {
this.stopDrag();
};
knowledge.onPress = function() {
this.startDrag();
};
knowledge.onRelease = function() {
this.stopDrag();

};
abilities.onPress = function() {
this.startDrag();
};
abilities.onRelease = function() {
this.stopDrag();

};
value1.onPress = function() {
this.startDrag();
};
value1.onRelease = function() {
this.stopDrag();

};

answer.onRollOver = function() {
tellTarget(answer) {
gotoAndPlay(2);
}
}
answer.onRollOut = function() {
tellTarget(answer) {
gotoAndPlay(1);
}
}
answer.onRelease = function() {
if (act_droptarget == answer_one) {
teller = "Correct!";
tellTarget(cheering) {
gotoAndPlay(2);
}
setProperty("nextq", _alpha, 100);
} else {
tellTarget(booing) {
gotoAndPlay(2);
}
teller = "Sorry Try Again";
times += 1;
}
if (times == 2) {
times = 0;
teller = "";
gotoAndStop("Question 3", 1);
}
};

Notice i'm playing with the "act" movie clip. When I run the .swf itself and drag the act movie clip to the drop target I get:
my position is: _level0.answer_one
but when I run the program from index.swf, click the button in choosebikes.swf and drag the mc to the drop target I get:
my position is: Undefined.

I am desperate, and greatly appreciate any help!!

Newbie Pulling Hair
I have a preloader that looks perfect when I click the control/play button. However, when I click control/ Test movie, it seems to jump to the last frame and my masking disappears.

Any ideas are welcome!!

I'm attaching a screen shot of the fla file.

Thanks in advance

David

Help Pulling My Hair Out Over Something Minor.
Hi Everybody.

It has been a while since I had a flash project, so I haven't been active as I should.

I have a text symbol question and importing HTML.

In Flash, I have no problem getting the TM (™) symbol to work.

However, now I am loading HTML into a html enabled textfield via

loadText.load("mystery.txt");
loadText.onLoad = function() {
heading.htmlText = this.heading;
};
and it does not work. I get a square instead.

In message.txt, I have tried a number of ways to get it to work, but nothing.
My last code I have tried is

heading=<p>™</p>

I am going crazy here.

If you have any insight, please let me know.

Thanks a bunch.

Sean

New To Video: Pulling My Hair Out
Hello Everybody

I am sure my question is basic for video gurus, but as for me I am at my end.

I am externally loading a .swf into a movie clip. All I want is for a a mc to pop up after it is complete asking if they would like to play it again. However, I cannot get the "complete" listener action working.

This is my code I have thus far.

var my_mcl:MovieClipLoader = new MovieClipLoader();
my_mcl.loadClip("Search_skin.swf", "loadmc")

var myListener:Object = new Object();
myListener.complete = function(){
trace("working")
};
my_mc1.addEventListener("complete", myListener);

Can anybody tell me where I am off?

Thanks a bunch

Sean
Thanks

Help Pulling My Hair Out Over Something Minor.
Hi Everybody.

It has been a while since I had a flash project, so I haven't been active as I should.

I have a text symbol question and importing HTML.

In Flash, I have no problem getting the TM (™) symbol to work.

However, now I am loading HTML into a html enabled textfield via

loadText.load("mystery.txt");
loadText.onLoad = function() {
heading.htmlText = this.heading;
};
and it does not work. I get a square instead.

In message.txt, I have tried a number of ways to get it to work, but nothing.
My last code I have tried is

heading=<p>™</p>

I am going crazy here.

If you have any insight, please let me know.

Thanks a bunch.

Sean

Pulling Hair Out On Random Bg's
Im working on the splash page for a site I maintain, and for some reason I can't get the flash random backgrounds to generate. The first frame shows up on the main page but not the images that go behind it. Buut, if you run the same movie from the directory the pictures are housed in, everything works perfectly. I dont' understand!!. Its just a frickin link.. why does it work in one place and not another? please advise me ultras!!!

drnkeniris

I'm Going Bald From Pulling My Hair
Hi.

This should be real simple but does not seem to work.

I have 3 movies. Called audio, phones and melodic. (In reality I also have club and world - but that is irrelevent now.)

In audio I have 1 frame, that says load movie phones in level 1 and melodic in level 2.

On the html, I have nothing but audio.swf. All the files are in the correct folder.

If you view the swf on it's own, it's all good: http://www.mojojojo.ca/swf/audio.swf

Now if you go on the page, nothing works: http://www.mojojojo.ca/audio.html

All that phones does is load club/world swfs onto level 2 (to replace melodic).

Why does this not work??

::balding::

Pulling My Hair Out : Equality Or Equals?
Hey all,

Megatoon and I are working on this game that requires the user to type in their answer into a text box with field name "answer". The text box is then compared to the actual answer which is a variable "Q". So I have the following:

if (answer == Q){
_root.movie.gotoAndPlay(2);
} else {
_root.movie.gotoAndPlay(10);
}

Now check this...it only works some of the time!? I don't know what I'm doing wrong. I've even tried:

if (answer = Q)

but this always sends my movie to the else directive.

Any ideas?

Thanks.

Pulling Out Hair With Video Clips
I have five short 30 second video clips. I have imported them properly and put them in five different scenes. When I make a scene with five buttons directing the viewer to each one of the five clips, and then publish it, only one of the clips works, the other four seem to go to and stop at the appropriate scene. I have tried copying the one scene that works and just switching out the video and renaming it, nothing seems to WORK! None of these files is very big and they were all processed the same way.

Help! I have been working this problem for about 12 hours and tried a lot of things, nothing seems to work. Each scene works fine when i test the scene, but when I try to go to it via the buttons, it won't play.

HEELLLLPPPPPPPPPPPP!

My Movie Won't Stop (pulling My Hair Out)
hi,

going crazzzzzzzzy...


in my navigation there's a button that simply says:

_root.gotoAndStop("my_label");

the problem is that when I click on this button, my movie proceeds to blast past my labeled keyframe, ignoring all stop actions thereafter.

I've been troubleshooting for 2 hours with no avail.

I even place a fake button on my main timeline that says gotoAndPlay("my_label");

Has anyone else had this problem?

cheers!
jen

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

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

Thanks to kslakait at ActionScript.org for helping out.

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

I accessed this instance via: code: _parent.ttt

and changed scroll properties for each button:

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

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


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

so there you go.

Hair Pulling Actionscript Problem
I've been here before with my problem but I can't get it to work. I'm trying to create a preloader for the "main movie" then have "content1.swf" preload after.

You can check it out at http://www.intelligencequotientstudios.com

once there, you will see the main movie appear then "content1.swf" preload ok. but I want the main movie to preload itself because it runs slow on 56k.

below is the .Fla file of the main movie. Layer 2 name "Actions" contains the actionscript.

thanks in advance

Hair Pulling Actionscript Problem
Ok i've been here before with this problem but I just can't get it to work. I'm trying to preload my main movie then when it's loaded my "welcome movie" which is content1.swf loads itself without any buttons clicked.

something so simple is difficult for me.

You can check out the site at http://www.intelligencequotientstudios.com


You can check out the script that I have in the attachment below. It is in layer named ACTIONS.

Stupid Button Has Me Pulling My Hair Out
This button has me pulling my hair out... someone please help a Flash novice here... please?
I have a door on my main timeline which is a button. I called it blue_door.
I also have a movie called foyer which needs to be accessed when you click on blue_door. Therefore, I figured the actionscript would look like this, right?

on (release) {
tellTarget ("blue_door") {
target.gotoAndPlay(1);
}
}

It doesn't like me... doesn't even give me a hand cursor to click on the door with. Help please?
~M

Movieclip.gotoAndStop() - Pulling Hair Out
ok, I'm trying to create a video transition between two "pages". I play the video (inside a movie clip) when I exit a section, and when I enter the next section I reload that movie clip and tell it to go to it's last frame (hence the transition effect). I do the following in a frame script:

this.onEnterFrame = function() {
myMovieClip.gotoAndStop(myMovieClip._totalframes);
}

Ok, this works, except that 90% of the time it shows the first frame then immediately flicks to the last one.. it seems to be loading the video (and showing the first frame) before executing the gotoAndStop. You can see it by going to http://www.360replays.com/new/ (skip the tour, when it shows you the first text page, click "Next" and it'll show the video transition, do it a few times to see the "flicker" problem, sometimes it doesnt happen)

Anyone know how to get around this? I *could* show a jpeg of the last frame instead, but that's so gay and seemingly unnecessary.. I'd rather work with the video and do it right.

Thanks!

1120 Error - Pulling My Hair Out
OK, I have no idea why, but AS3 will not find instances of two of damn movie clips and consistently throws me an 1120 error. Here is the code in question:


Quote:




package Interface{
import flash.display.MovieClip;
import newsography.Game;

public class GameMenu extends MovieClip{
public function GameMenu(){
this.x = 400;
this.y = 300;
} // end

public function setup()
{
startButton_MC.addListeners(); // gives 1120 error
helpButton_MC.addListeners(); // gives 1120 error
}
// end setup
} // end class

} // end package




Now, I have a main class called "Game" that resides in /newsography/ and "GameMenu" in /Interface/ as well as "HelpButton" and "StartButton" both in /Interface/. Both 'startButton_MC' and 'helpButton_MC' are instances of "StartButton" and "HelpButton" respectively, and are found under "GameMenu", which is another movie clip that is called in code as such:


Quote:




package newsography{
import Interface.*;
import flash.display.Sprite;
import flash.text.TextField;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.MovieClip;


public class Game extends MovieClip
{
private var _tf1:TextField;
private var _tf2:TextField;
private var atlcoordX:Number;
private var atlcoordY:Number;
private var atldist:Number;
private var coordX:Number;
private var coordY:Number;
public static var gameMenu:GameMenu = new GameMenu();

public function Game()
{


gameMenu.setup();


}




public function showMenuScreen()
{
stage.addChild(gameMenu);
}


}
}




Please help =(

Hair Pulling Out Session Now In Effect:
hey people

I was wandering if anyone maybe able to help me with a slight issue i'm having that is causing hair loss unnaturally...first the premiss

I'm working in MX2004 pro and have a tsunami menu in the same project as a dynamic text box that loads external .txt files and is scrollable. The text is always imported just fine and the tsunami works fine until the mouse is clicked at which point the menu stops to "tsunami", the text box however works just fine still.

I have now come to the assumption that it is because they both need to reference the position of the curser,(this is probably wrong?) and is a pain as they are both very nice dynamic elements to the site. My questions are "has anyone been able to do this b4?" I can't find an example online of it working Is there another way of making the scrollable text box that will not interfere with the tsunami menu system?

any help would be greatly appreciated

Pulling My Hair Out Copying An Array
I've been working on this problem all week and its driving me crazy. I have yet to find any way of making a copy of a multidimensional array that doesn't reference back to the original data. If you modify the original data the copied version changes as well, i've tried using the apply() method, i've used slice, splice, and about 4 other possible solutions from proto.layer51.com and NONE of them work.

Because the movies and data are dynamic the only way i can access the information is through references

_root.resultTree[obj.group][obj.slide]

i'm trying to make a copy from the obj.group level of the array and place it in the top of the array stack...i've yet to succed. why is this too much to ask? =(

Hair Pulling Flash 5.0 Prob +5hr Frustration
Hi,
I just got into Flash 5.0 I have a button that I want to use to send users from the flash intro to my page.
The URL is http://members.truepath.com/teamredcell/main.htm I know you need to put on release than getURL but then what? I tried using this:

on (release)
getURL (http://members.truepath.com/teamredcell/main.htm, window=_self);
End On

And it came back saying:

Scene=Scene 1, Layer=Click To Enter Site, Frame=192: Line 1: Syntax error.
(

Scene=Scene 1, Layer=Click To Enter Site, Frame=192: Line 2: '{' expected
getURL (http://members.truepath.com/teamredcell/main.htm, window=_self);

Scene=Scene 1, Layer=Click To Enter Site, Frame=192: Line 3: ';' expected
End On

Scene=Scene 1, Layer=Click To Enter Site, Frame=192: Line 2: Statement block must be terminated by '}'
getURL (http://members.truepath.com/teamredcell/main.htm, window=_self);

Scene=Scene 1, Layer=Click To Enter Site, Frame=192: Line 3: Syntax error.
End On

What did I do wrong?
Thanks,
-Cofree

Problem With Preloading Site....pulling Hair Out.
I seem to have a problem....I have a site with 8 scenes and a intro (9 scenes all together). I want to load intro, then load each scene when the user clicks on them.
I do not know where to place the preloader(ie: within the actual movie clip, on a separate scene, etc.) I really want to use a bar/percentage preloader for each scene. When I add the preloader to the intro, it loads the whole movie, when I only want it to load the intro. I am really going nuts trying to solve this problem. Any help would be much appreciated.

Preloader Is Freezing My Clips Pulling Hair Out
First- THANKS FOR READING.

Second- I have a simple preloader on frame one, when 100% bytes loaded, go to frame 2. Frame 2 has a movie clip with animation inside it. The animations just won't go. There are no stop actions, no reasons i can think of why its freezing.

FYI. The movie is set up with all load movie actions. Its a Slide presentation and each slide (copy and image/animation) is called in from their own directory.

I can post the link of the movie and the FLA if need be.


THANKS SO MUCH FOR YOUR TIME.

dave

Close Browser Window... Pulling My HAIR OUT
I'm using the following code to close my browser window:

on (release) {
getURL("javascript:window.close()");
}

Nothing seems to work. I've tried adding javascript to my page - doesn't work.

I was looking at this guy's page:
http://www.linecraft.com/web_behaviors/close.html

his works fine and there isn't even any javascript in is source at all.

Can someone help me out? I've been a this for like 3 hours!

Cheers
Jenny

Pulling My Hair Out Simple On Press Command..
Hi all,

could someone please help me out on a simple problem i have, Im trying to put a command on a button so that on press it goes to a url but loads it in the same window. not opens up a new browser window.

Any help would be much apreciated

Thanks

Creating Links To Other Websites. Please Help I Am Pulling My Hair Out
Hi. If anyone can help I will buy them a beer, maybe several. I am attempting to make a link to an external website by converting a text box to the link. Does that make sense?

I have converted to button, symbol and graphic etc and nothing is leaping out out me which is obvious. I have even looked and "actions" and that just made me want to cry.

Any help will be more than gratefully recieved.

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