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








Concatenating Madness


Hey all,

I want to concatenate 2 variables from a .txt file into one variable to be then used for getURL.

So in the .txt I have

&addy=udfug
&suffy=.org

Then I load the variables in on frame one.
They come in just fine.
Then on frame 2 I do:

where = "http://www." + addy + suffy;

but where displays as: http://www. AND THAT IS IT, in the output window when testing.

So I am doing something wrong when concatenating them together....I want to get where = http://www.udfug.org


Uh...any help? I tried eval(); too to no avail.

Thanks!




FlashKit > Flash Help > Flash MX
Posted on: 05-22-2003, 07:15 PM


View Complete Forum Thread with Replies

Sponsored Links:

Concatenating Madness
Hey all,

I want to concatenate 2 variables from a .txt file into one variable to be then used for getURL.

So in the .txt I have

&addy=udfug
&suffy=.org

Then I load the variables in on frame one.
They come in just fine.
Then on frame 2 I do:

where = "http://www." + addy + suffy;

but where displays as: http://www. AND THAT IS IT, in the output window when testing.

So I am doing something wrong when concatenating them together....I want to get where = http://www.udfug.org


Uh...any help? I tried eval(); too to no avail.

Thanks!

View Replies !    View Related
Concatenating MCs
DOH!

A friend and I are having a tough time getting MCs concatenated.

I am trying to get an MC to go to a label based on a variable when the button is clicked.

So something like this (only I am wrong):

The button calls a function called "next"

var i;
function next () {
var newmov = i+1;
"screen" add i.gotoAndPlay ("fadeout");
"screen" add newmov.gotoAndPlay ("fadein");
}

So ideally the button should call actions to MCs named "screen1" and "screen2"

Which the concatenation works 'cause I see the strings come up in the output window, but it is a string. So it looks like this and blows up:

"screen1".gotoAndPlay("fadeout");

But it needs to be

screen1.gotoAndPlay("fadeout");


Right? Any ideas?

Thanks!

Brook

View Replies !    View Related
Concatenating A Mc?
hi..i have two swfs that are 122 frames a piece...i load swf 1 into an empty movie clip....is there a way for me to load swf 2 into frame 123 of that empty movie clip? or load swf 2 into the next frame as soon as swf 1 is done?? thank you.

ps
my goal is to avoide loading swf 2 into a different empty movie clip as i have controls that navigate within the empty movie clip im working with.

View Replies !    View Related
Concatenating 2 Or More Arrays
Hi all,

Does anyone have a way of concatenating 2 or more arrays?

my arrays could be say 50 or so indeces in length and there may be up to 200 of them

Any ideas for a quick fix greatly appreciated

thanks in advance

gilesb

View Replies !    View Related
Concatenating Question.....
I have this script here:

if (_root.body_text == "") {
set("_root.body_text"+this.iNumber, "<Please insert your text here>");
_root.body_text = "_root.body_text"+this.iNumber;
_root.total_txt = this.iNumber;
}

there is a variable called body_text1. I want that value to be placed into _root.body_text. The value of iNumber in this example is '1'. I am trying to concatenate the string "_root.body_text" with 'iNumber' to get '_root.body_text1' as the referred to variable.

so in the final conclusion this is what I want: _root.body_text = _root.body_text1;

where the '1' part is being refered to from this.iNumber

anyone know how to concatenate a variable name?

thnks much

View Replies !    View Related
Concatenating Variables
i am using a GET method to send info that a user fills out in a Flash form...it goes to a servlet...
how do i fix this line so that user data is sent (instead of the pre-defined data I have in this URL)?:

http://web/servlet/FlashTest?name_tx... ationServices

THANKS!!

View Replies !    View Related
Concatenating Problem
how would you concatenate a path to on object within another object
The following code doesn't work, but i think you can see what i want to do. So the instance of buttonx is within buttonholderx

x =1;
this["buttonholder" + x +".button" + x].setMask...


I've also tried:
this["buttonholder"+x].this["button"+x].setMask....


The actual code i'm trying to get to work:
function AttachMasks() {
for (x = 1; x <= sections; x++) {
_root.currentLevel++;
this["contentmc" + x].setMask(this["mask" + x], _root.currentLevel);
_root.currentLevel++;
this["buttonholder" + x +".button" + x].setMask(this["buttonmask" + x], _root.currentLevel);
}
CreateSectionDividers(sections);
}

Thanks for any help

View Replies !    View Related
Concatenating Problems
When I run this trace I get the value I want from my array:
trace(_root.mc_homebox_ypositions[1]);

I need to insert a variable where "mc_home" is.
I tried this but it doesn't work:
trace(this[_root.nextSection+"box_ypositions[1]"]);

I posted something similar earlier but had no luck.
Can you guys help me out?

View Replies !    View Related
Concatenating A Class Name
I have a library full of clips exported as logo0, logo1, logo2 etc.

In my main class I have a logoID:uint variable tracking the current logo.

I'd like to be able to just use:
logo = new "logo"+logoID();
addChild(logo);
but obviously that wont work.
How do I go about casting that correctly?

View Replies !    View Related
Concatenating Problem
Can anyone suggest a good resource for learning all the rules of concatenating in AS 2.0? I did a quick search online and here but there are tons to sift through. I'd really like to "get" this.

I keep running into problems in my projects with this and try things several different ways but usually just end up staring at the monitor and scratching my head. For instance, right now...

Can't get this:
picHolder_mc.loadMovie(PICPATH+"aIns"+i+[yearIndex][currentIndex]); //where the "1" is replaced with an index

To function the same way as:
picHolder_mc.loadMovie(PICPATH+aIns1[yearIndex][currentIndex]);

View Replies !    View Related
Concatenating Variables
I am trying to use a variable in a for loop. I have the for loop in a function and I am passing a number into it. The variable is called whichScreen and would be 1, 2, or 3.

My variables look like this:
var imgsScreen0:Number = 1;
var imgsScreen1:Number = 2;
var imgsScreen2:Number = 3;

I was thinking I could do something like this with the for loop, but it does not seem to want to work?
for(var i:Number = 0; i < "imgsScreen" + whichScreen; i++){
...

What am I doing wrong?

Thanks a lot for any help.

View Replies !    View Related
Concatenating Three Variables?
It's another simple problem that has me stumped.

x = 1;
y = 2;
z = 3;

trace(x+y+z);

how do I get this to display "123" instead of "6"?

I've tried both eval and concat() and have failed to get either to work, not that they don't work, I'm sure it's just me.

View Replies !    View Related
Concatenating Woes (HEEEELP)
So I must be dense because I have two books open and searched throught the tutorials...

I want to have a viewer enter their name in an input field and hit a button that says "OK". Then I want dynamic text in a new frame to appear that says "thanks , viewer, for your entry"

That's not happening. I get all the words that I enter into the value field instead of a concatenated string with the input text replacing the variable name.

HEEEEEELP!!!! PLEEEEEEEASE!!!!

~p

(posting here cuz the newbies seem to be up)

View Replies !    View Related
Concatenating Random Movie Name?
Hi,
I seem to be having a mental block, I have done this successfully in the past but must be screwing up my syntax.

I have 3 mc's instance names
Counter0
Counter1
Counter2

I want to start a random one of them with a button.
button and mc's are all on the main timeline.

I tried

on (release) {
["Counter"+random(3)].gotoAndPlay(2);
MovieToPlay = "Counter"+ random(3);
}
I set up a text box with MovieToPlay as variable and got the mc names as a string but no luck playing the mc's
whats the correct syntax?
thanks mark

View Replies !    View Related
Concatenating The Left Side .. ?
is there a way to concatenate the left side of any line of actionscript? i'm able to do it using the old set() variable operation. like this:

Code:
set("_root.myClip"+i+".name", 2);
but how do you do it with any line of actionscript? this won't work, for example:

Code:
set("mySO.data.clip"+i+"name", eval("_root.clip"+i+"name"));
and you can't do anything like this either:

Code:
eval("mySO.data.clip"+i+"name")= eval("_root.clip"+i+"name");
any suggestions?

View Replies !    View Related
Concatenating Names In A For-loop
I want to have one line of code, to get four movie clips to load movie clips.
I can't make it work. I don't know how I concatenate the names. Here's the code:
Code:
for(i = 1; i < 5; i++){
"myLoad"+i+"_mc".loadMovie("mc"+i+".swf",1);
}// end for

View Replies !    View Related
Concatenating Variable Names
i am having a prob. addressing a movie clip that i duplicated.

duplicateMovieClip(redToken, "nt" + turnNum, turnNum);

what name do i use to address the new movie clip.

View Replies !    View Related
Concatenating BitmapData Objects
Hi All

I'm making an application that takes one image per second from a webcam and attaches it to a new movie clip. When a play button is pressed, the movie clips will be made transparent and played back (made opaque) at 25 movie clips per second.


My problem is that although I'm able to concatenate instance names for the movie clips ["newClip"+nBitAddOne] I can't figure out how to do the same for the bitmapData objects ie to dynamically create bitmapData objects that have unique names. Any ideas?

This code is called every 24 frames to record the webcam input:


Code:
++nBitAddOne;
now = new BitmapData(nWidth, nHeight, false, 0xFFFFFF);
holder.createEmptyMovieClip("newClip"+nBitAddOne, this.getNextHighestDepth());
holder["newClip"+nBitAddOne].attachBitmap(now, 1);
now.draw(vid, camMatrix);
nAddOne = 0;
Thanks in advance

View Replies !    View Related
Concatenating Function References
I'm trying to use setInterval to run through a string of functions at 1 second intervals. To do so, I'm calling a function (runAnimations) at each interval which in turn calls a concatenated function reference, by updating the variable in the concatenated function reference each time that runAnimations is called, I should be able to call a string of functions. I think...

But naturally (or I wouldn't be here), not all is working according to plan. The line of code calling the concatenated function isn't working. I don't know if the scope is off (all code is on frame 1 of the root timeline), or what might be my problem.

Any ideas what I am doing wrong?

thanks,
tophers



// 6 :: Surface Sample
function illustration6():Void {
// not very relavant code here....

// Surface Sample Animations
// Run several animation functions sequentially at 1 second intervals
var currentFunction:Number = 1;
function runAnimations():Void {

/* This is the line that won't work
_root["surfaceSampleFunction"+currentFunction]();
*/

if (currentFunction >= 3) {
clearInterval(animationInterval);
}
currentFunction++;
}
// Specific Animation Functions
// 1 :: Fade in dot
function surfaceSampleFunction1():Void {
// code that fades in do
}
// 2 :: Rotate endcap
function surfaceSampleFunction2():Void {
// code that rotates endcap
}
// 3 :: Fade out dot
function surfaceSampleFunction3():Void {
// code that fades out dot
}

// Run the interval calling the animations var animationInterval:Number = setInterval(runAnimations, 1000);
}

View Replies !    View Related
Concatenating Variable Names
I'm currently working on an advanced preloader and i'm creating loads of different variables etc. based on the percentage loaded.

I need the variables to be named Number + percentage, so in the end I will have Number1, Number2, Number3, Number4 etc.

How can I create variable names using my percentage variable? Can't seem to find anything that answers my question.

View Replies !    View Related
ComboBox Value Concatenating Instead Of Adding
I'm trying the add the data value of a selected combo box item (.35) to 1 using:

var theFringe:Number = _root.calc.fringe.getValue();
_root.calc.fFringe.text = theFringe+1;

Returns: .351

Is there a way to convert the data from the comboBox to an integer so that when I add .35 +1 I'll get 1.35?

Thanks in advance!

View Replies !    View Related
Concatenating Onto A Class Constructor
this one is so ridiculous i dont even know what to enter as a search criteria. anybody know if this is possible? i have some movieClips in the library, all connected to the same base class. they have class names like mcAltTag0, mcAltTag1, etc. i would like to spin them out in a for loop, and dont know if its possible to concatenate the value of var i:Number onto the constructor call. anyways, my humble attempt looks something like this:
Code:

for(var i:Number = 0; i < 5; i**)
{
      _altTag[i] = new mcAltTag + i; //this is the bit that is biting my bottom, should evaluate to mcAltTag0, mcAltTag1, etc.
   addChild(_altTag[i]);
   _altTag[i].x = 197;
   _altTag[i].y = 162.2;
}

i tried all of the old as2 methods that i could think of, but of course they dont work. is this even possible?
ps, maybe i should mention that the mcs have these names because they have a 3d text bit that i cant do via xml.

View Replies !    View Related
Concatenating WIthin Instant Routes W/Varibles
...nice title huh.

is it possible to do something like this? and if so, what's the correct syntax.

bioTxt of course being the Varible.

_level6.pageLoaded.mContent.headShapes.head + bioTxt.gotoAndPlay("playOut");

View Replies !    View Related
Concatenating A Passed Argument To An Instance Name..
I am passing a number to my function so that it will be appended to the instance name of my component. Although the trace() confirms the number is indeed passed, it is not being concatenated to my instance name. "nTFgroup" holds the number that should be appended in the last line of code:

function initializeQuizPage(nTFgroup:Number){
trace(nTFgroup); //argument passed successfully so far
next_btn.enabled = false; //disables Next button
//USE EVENT/LISTENER MODEL TO HAVE THE NEXT BUTTON BECOME ENABLED ONCE THE USER HAS MADE A SELECTION
//Create a listener object
var TrueFalseListener = new Object();
TrueFalseListener.click = function(evt:Object){
trace("The selected radio instance is " + evt.target.selection);
next_btn.enabled=true;
}
TFgroup[nTFgroup].addEventListener("click", TrueFalseListener); //THIS IS THE LINE WHERE CONCATENATION IS NOT WORKING, as my Next button is not becoming enabled again...
}

View Replies !    View Related
Concatenating TextBox Names In A For Loop
Basically what I'm doing is trying to populate a group of text boxes with text from an array using a for loop (this is for a game I'm making). I have a movie clip called mainMenu_mc that's the main menu. Inside of mainMenu_mc I have different frames for the different sub-menus (Item, Stats, Equipment...). In the Item Menu frame I have a group of text boxes named itemText0, itemText1, itemText2, etc. I also have an array called inventoryArray. Inside of inventoryArray I have two variables - itm stores the item names and qty stores the quantities of each item.

Here's the code I'm using:

Code:
for (i=0; i<inventoryArray.length; i++) {
this["mainMenu_mc.itemText"+i].text = inventoryArray[i].itm;
}
This just leaves me with a bunch of blank text boxes. I tried mainMenu_mc.this["itemText"+i].text and it gave me a formatting error. I also tried mainMenu_mc.eval("itemText"+i).text and that didn't work either. So how would I code this?

View Replies !    View Related
Concatenating To Refer To Dynamic Text
I'm using a for loop to attach a bunch of versions of a movieclip that has a dynamic textbox in it. I'm trying to concatenate in order to make the different boxes say different things. This is the (not working) code I've come up with (the text box inside each attached mc has an instance name of "myText ":

ActionScript Code:
myPos=0;
for(i=5;i>0;i--){
    holder_mc.attachMovie("box","box"+i,i); //Attach the clip from the library
    setProperty("holder_mc.box"+i,_x,myPos); // position the clip
    typeTarget="holder_mc.box"+i+".myText"; // The concatenation
    typeTarget.text="what i want"; //This does nothing, though there are no errors
    myPos+=100; //This sets the position for the next attached clip
    trace(typeTarget); //traces "holder_mc.box5.myText, holder_mc.box4.myText, etc.)
}

testBut_btn.onPress=function(){
    holder_mc.box5.myText.text="What I can get"; // without the concatenation, It works fine
}

If anyone could give me a tip (or a solution!), I'd be grateful.

View Replies !    View Related
Converting Strings To Numbers Without Concatenating
Hello,

I want to separate a string and convert it to a number. I thought Flash could switch vars by reestablishing them using strict data typing. I want to add two vars. Instead it is concatenating them.


Code:
var myNum:Number =10;
var string:String="d1";
var charactersArray:Array = string.split("");
var m:Number= charactersArray[1];
trace("M= "+m);//M= 1
myNum+=m;
trace(myNum);//returns 101 should be 11;

View Replies !    View Related
Math Concatenating Stings And Numbers?
I am creating a fairly basic calculator that calculate stock option values and percentages etc,

I am having no problems changing a text field to a number and performing basic math but what I like to know is how to make it a little more dynamic.

I have three input textfields:

Number of options:
Grant Price:
Current stock price:

Then I've created a slider that the user can then increase/decrease the projected stock gain percentage from a range of -100 to 100 percent.

The results are four dynamic textfields that display the following results.

Project stock price:
Total stock value:
Total exercise cost:
Total options value:

Current everything works fine but here is where I want to be more dynamic. I would like when the user inputs their values the inputs textfields update to include "$" "," and decimal points were applicable.

For example:
Number of options: user enters 10000 - field updates to 10,000.
Grant Price: user enters 25.50 - field updates to $25.50
Current stock price: user enters 30.75 - field updates to $30.75

Then the results would be displayed as follows.
(my math is not accurate)

Project stock price: $35.25
Total stock value: $375,250.25
Total exercise cost: $250,250.00
Total options value: $150,750.50

To sum it up how do I keep the math working and concatenate the "$" "," "." into my numbers?

Any help with this would be greatly appreciated.









Attach Code

onEnterFrame = function() {

if(nvoText.text == "") {
nvoText.text = "0";
}

if(gpText.text == "") {
gpText.text = "0");
}

if(cspText.text == "") {
cspText.text = "0";
}
if (scale_mc.years_txt.text == "0") {
aspText.text = "0";
}else{
aspText.text = ((Number(cspText.text)*Number(scale_mc.years_txt.text))/100)+Number(cspText.text);
}

daspText.text = (Number(cspText.text)*Number(scale_mc.years_txt.text))/100
dgpText.text = Number(cspText.text)-Number(gpText.text);
otovText.text = (Number(cspText.text)*Number(nvoText.text))-(Number(nvoText.text)*Number(gpText.text));

tsvText.text = (((Number(cspText.text)*Number(scale_mc.years_txt.text))/100)+Number(cspText.text))*Number(nvoText.text);
if (cspText.text == "0") {
tecText.text = "0";
tovText.text = "0";
mcStockPercentage.txtStockPerc.text = "0";
mcOptionsPercentage.txtStockPerc.text = "0";
}else{
tecText.text = Number(nvoText.text)*Number(gpText.text);
tovText.text = Number(tsvText.text)-Number(tecText.text);
mcStockPercentage.txtStockPerc.text = (((Number(cspText.text)*Number(scale_mc.years_txt.text))/100)/Number(cspText.text))*100;
mcOptionsPercentage.txtStockPerc.text = (Number(daspText.text)/Number(dgpText.text))*100;
}

View Replies !    View Related
Concatenating Strings, Loosing Spaces
I am having an issue with concatenated type. I first had simple concatenated statements in an html text field. I am concatenating regular text with bolded text. What is happening is that where the regular is concatenated with the bold, it appears that there is no space visible between the regular and bolded words. I made the text selectable, and pasted into a text document, and proved there is a space there. I've tried a regular space, and &nbsp;
"words " + "<b>words</b>"
"word&nbsp;" + "</b>

Interesting to note that the space not appearing is not consistent. It also seems to happen near the end of the concatenation.

I then tried to format the text with TextFormat(), removing the htmlText. So it was plain text formatted by TextFormat().

Do you know of a solution to my dilemma? I need this solved, as I will be using more concatenated strings like this in the future.

View Replies !    View Related
Concatenating Dynamically Created Arrays Into One Big Array
I'm dynamically creating arrays based on an xml file that may grow or shrink.

My question is: how do I concatenate those arrays into one large array without knowing how many I will need to combine, since my xml file may change?

I'm aware of the concat() method for the Array object, but every example I've seen uses a finite number of arrays to concatenate.

Any suggestions?

View Replies !    View Related
Help Me Out Of This Madness
I am trying to access movies from a page, but all of the movies have different properties to show they are in proportion. Do I have to create separtate movies in different timelines to keep them in proportion? Even if I put the movies in different scenes, it still changes the stage properties for everything. Please help.

View Replies !    View Related
Madness
If I use (moving) function for movie Clip it works just fine but when I use same function for button it don’t work.
Also my dynamic text field that use value loaded from text file loaded on start, loose, actually don’t appear nothing if I put them inside movieClip, but they work great if I put it in button.
Means I have situation where I cannot apply or value to the dynamic text or cannot apply function to the button.
I’m mad and have headache. Please help.

View Replies !    View Related
Madness
Well some people out there play on the internet game Madness Combat and I have been looking everywhere for a program to make a modification with. I was told FlashKit but I just don't know which one to choose.

View Replies !    View Related
Madness Please Help
Ok I have the following Script on a frame in my movie:

stop();
home_btn.onPress = function () {
gotoAndPlay("home");
}
furn_btn.onPress = function () {
gotoAndPlay("furn");
}

collection_btn.onPress = function () {
gotoAndPlay("collection");
}

services_btn.onPress = function () {
gotoAndPlay("services");
}

contact_btn.onPress = function () {
gotoAndPlay("contact");
}



And of course as you press each button it should go to the coresponding frame and play. What is crazy wierd is that the "home","collections" and "contact" ones work but the "furniture" and "services" dont! I have made sure that the frame label is correct that its supposed to go to. and I have named the button instance accordingly "furniture_btn" etc... But it just wont go! Any Ideas? I have attached a simplified version of the fla if anyone could take a look? Thanks!!! spen

View Replies !    View Related
3d Madness
sup. im a sapling programmer with wild ambitions. can anyone put me on the path to creating a site with these stunning 3d actions? bbdo.com, matthewmahon.com, mailorderchickens.org, billharveymusic.com - in particular, the actual way to create these actions, how to move back in space by clicking around the movieclips and how to apply blurs and easing for realistic motions... thanks so much (i surmise that as the thread builds i'll have more questions for yall).

P

View Replies !    View Related
Help. CS3 Wants Me To Die Of Madness.
Maybe this is so simple I'm going to look like a fool. I've reduced this bug(?) to it's simplest form:

1) I create a new .fla (untitled-1 is default name). I write one little actionscript line in the first frame: trace("save me from madness")
2) I run this via ctrl-enter. I see the trace. No problem.
3) I save this file under a new name test.fla
4) I run this via ctrl-enter. No trace. No nothing.

I've tried using the Delete ASO files to no effect. Has anybody experienced this? If I have a button on stage, it starts flickering when I publish after the save, as if the .FLA isn't compiling right, but no compile errors are displayed in the output window.

Thanks for any help.

DMcQ

View Replies !    View Related
MC Madness
Hey people..

Take a look at this site: tomstephan
When you browse the navigation on the site, the image shakes! Is NOT the image effect I'm after, but when we press one of the buttons, the image on the "scene" shakes, before changing to another image.

In other words, how can I make a movieclip play, that are allready on the "scene" (like tomstephan) - before it change to the next movieclip - no mater what button I press, the movieclip on the scene plays before changeing!..
Is this possiable without using serperate swf's?

Hope you know what I'm talking about! ..any help would be NICE!

View Replies !    View Related
Xml Madness, Please Help
hi people, I am new to flash and xml and I am having this problem, should be simple, but I can not find how to fix it

on my button I have this code

on (release) {
attachMovie("certo", "c", 2);
c._x = tres._x;
c._y = tres._y;
function loadXML(loaded) {
if (loaded) {
_root.premio4 = this.firstChild.childNodes[0];
_root.c.premio_txt.text = _root.premio4;
trace(this);
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("premiacao.xml");
}

what my text field display is this;

<ganhou>Você ganhou uma melancia!!!</ganhou>

it is the correct info, but the xml tagas are showing too

my xml is this;

<?xml version="1.0" ?>
- <premios>
<ganhou>Você ganhou uma bola!!!</ganhou>

<ganhou>Você ganhou uma laranja!!!</ganhou>

<ganhou>Você não ganhou nada!!!</ganhou>

<ganhou>Você ganhou uma melancia!!!</ganhou>

</premios>

anyone could help me out with this??

thanks

View Replies !    View Related
This Is Madness
I had only one scene in my movie. In that scene I had a button in the first frame. That button had a very simple action attached to it:

onRelease {
gotoAndStop(_currentframe+1);
}

That worked great. Upon releasing the button I'd go to frame 2.

Now I added a loading scene (a scene that comes up before the main scene) and the button I just mentioned started to work goofy. When released it takes me to scence 19!

I didn't change anything at all in the main movie. All I did was add a scene. Anybody has any idea what's going on? Thanks a lot!

View Replies !    View Related
Pop Up Madness- Help
I am building a website for someone and the person im doing this for is really annoyed that if he pushes the back button the site reloads (as we all know about flash) So i decided to make a splash page and have the flash movie pop up full screen with no nav. The problem is his pop up blocker stops that screen. I am stuck between a rock and a hard place- unless there is a code that makes a window with no nav and isnt considered a pop up.... owww my head hurts

View Replies !    View Related
MORE--->Input--MaDnEsS
Is there a way to evaluate just a "portion" of the characters typed into an multi-line input field??

View Replies !    View Related
Getbounds Madness
Hi, i posted this in the games section before by accident when i mean to post it here. If you've seen it before forgive me :-O

i'm trying to use getbounds too. I'm trying to make a circle bounce around inside of a square movie clip. Right now it just has a seizure and i go :-(

here is what i put on the circle movie clip:

onClipEvent (load){
myBounds = _root.square.getBounds(_root);
goX = 3;
goY = 3;
}
onClipEvent (enterFrame) {
this._x+=goX;
this._y+=goY;
if(this._x > myBounds.XMax or this._x < myBounds.Xmin){
trace(Xmax);
goX *=-1;
if(this._y > myBounds.YMax or this._x < myBounds.Ymin){
trace(Ymax);
goY *=-1;
}
}
}

here is a link to the .fla file: http://www.threebrain.com/bs/circle_...nds_100201.fla

this is driving me nuts! I'm sure i'm doing something stupid. If anyone helps me i'll give them a back rub or a dollar.

thanks,

threebrain

View Replies !    View Related
Button Madness
Hi can you help.
I have a movie clip (b) inside another movie clip (a) which is is set on the main timeline in scene 1. I want the button in clip (b) to send it to another frame within itself. It works fine using the enable simple buttons in the control panel but when i test the movie it's a fizzer (dud). What's the problem? Does anyone know what the script should be or can you not assign buttons in side movie clips which sit inside another?
Thanking you
Miffy

View Replies !    View Related
Preloading Madness
Greeting fellow Flashers,

I have a preload problem, I want to preload some images during a game. In the first frame I use the actionscript "If target is loaded (frame 60)" "tell taget (loadbar) go to frame 2" [THE MOVIE IS STILL IN THE FIRST FRAME]

It 's loading the frame (60) but the tell target (loadbar) doesn't work. I getting stressed becouse in my mind it must work.

Can somebody relieve me from my stress?
With kind regards,
Sander "Rednas" Hermans

(I'm Dutch, so excuse my Englisch)

View Replies !    View Related
Scrollpane Madness
I have got a scrollpane that I am displaying multiple MC's with several textfields within them. I have placed the Arial font in the library and set a linkage name of 'embedArial' to it. I also have set the embedFont property to 'true' for the textfields that are created in each MC. Trouble is, any time I want to display a 2nd or 3rd movie clip, the text doesn't show up, only the top MC text shows. For clarity 'testMC' is in the library and the linkage id is 'testMC'. The scrollpane is set on the stage and named appropriately 'scrollpain'. Also for clarity, I like to pass objects to functions rather than many arguments.

Here is the .fla link to see what I have done so far:

http://www.tcswebdesign.net/FlashFil...crollPain.html



I am using embeded fonts and have embeded the arial font used in the textfields and the options set to export for actionscript and export in first frame. In the fla file you'll see that at one time i had 4 textfields per MC, I have reduced it to just one Textfield for clarity, however the trouble is the same.

Any help is appreciated.

View Replies !    View Related
Menu Madness
this one is killing me;
i'm working on a navigation bar for a website, with 5 buttons, one button shows a submenu that slides out when the button is pressed. the problem is; when i push another button, the submenu needs to slide back in, and after that a new scene or movieclip needs to be loaded...i 'm stuck on this for far too long, pleeze help me

View Replies !    View Related
Loading Madness
I have a simple loader:

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
bits = loaded_bytes + " bytes of " + total_bytes + " loaded.";
percent = percent_done + "%";
bar.gotoAndStop(percent_done);
ifFrameLoaded ("main", "next") {
gotoAndPlay("continue");
}

Old script from somewhere. It works fine, but on my dialup when you hit the movie, it hangs up on an empty frame and sits there for a while before you even see the loader. The first frame is tiny. Ideas?

View Replies !    View Related
?Preloader Madness?
Hello,

I have been messing around trying to get a preloader to work in a web site I'm working on for three weeks. I've been given a few code examples and have failed to apply them correctly or the code was incorrect. I am in need of someone with decent preloader experience who doesn't mind taking the time to help someone learn preloaders once and for all. Basically is what I'm looking for is this..... I would like it when a user goes to my website, a preloader starts with a little animation and a download box showing the progress of the download. I would like the animation to loop until the progress box reaches 100% when it would then load the movie and start playing it. If someone wouldn't mind taking the time to make a small animated preloader with a progress box, and then an extremely simple movie and send me the .fla file so I could look it left to right top to bottom and figure out exactly how it was done. I would greatly appreciate it if someone could do this for me. I understand that communicating threw forums is difficult so I am going to add my msn messenger addy below to use "voice" or be able to chat faster. Thanks in advance for your time.

msn messenger = da_stealth_@hotmail.com
e-mail = andrewj2883@earthlink.net

, Andrew

View Replies !    View Related
Nested MC Madness
Can someone please explain why my movie clip does not play completely when I have an MC collision? I have mc1 and mc2. Now when mc1 and mc2 collide mc3 (which is nested in mc1) should play from frame 2 to 15. Instead it only plays frame 2 and stops. I attached the file. Please help!!

View Replies !    View Related
PHP GuestBook MADNESS
ok guys check this out... this is my guest book it works perfect.

http://www.mrmass.com/TEST/guest_book.swf

but as soon as I try to load this movie into empty movie clip with instance name /CONTAINER on my main movie, he doesnt wanna call in php file which i'm calling on guestbook on level0

NumLow = 0;
NumHigh = 10;
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHig h+"&R="+random(999), 0);
stop ();

and this is on my button on my main movie

on (press) {
loadMovie ("mad_skills.swf", "/CONTAINER");
}

php loads .txt file and they both communicate with flash...

since guestbook the link above works good I assume that the problem is the target so I'm probably missing .. or / I dont know

ANYONE CAN HELP ME OUT?

Desperate to finish my site

MrMass

View Replies !    View Related
Movie Madness
I would like to load a MC into my scene by clicking a menu button. The hard part is that I want it to 'swoosh' in from one side of the screen. Further to this when another button is clicked I want it to deload (unload? disload? reverse?) whatever, anyway I want it to play backwards so to speak. Then the second movie clip can swoosh into the stage and so on. Kind of like a fadin/fadeout effect.

If a button is clicked halfway through 'swooshing' then it should immediately 'deswoosh' from where it is, not just disappear.

Sorry but I have no .fla yet, but then again I haven't written a single piece of code cos I can't find a tutorial to assist me.

Sorry if this is easy and I'm crap.

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