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




New Instance Not Working



I have just installed FMS2. I bring up the management console, click view applications and then I click on new instance so that I can define my application, but it doesn't do anything. Any suggestions? Thanks.



Adobe > Flash Media Server
Posted on: 12/08/2006 10:43:49 AM


View Complete Forum Thread with Replies

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

Using Instance Name In Script Not Working
I've got 3 instances of a mc in my nav...In the button actionscript inside the mc I have:

on (rollOver) {
_root.mouseover = _parent._name;
}
on (rollOut) {
_root.mouseover = undefined;
}

to set _root.mouseover to the name of the mc instance...

Then I have a loop:
if (_root.mouseover != _parent._name && _root.mouseover != undefined) {
gotoAndPlay ("mousehide");
} else {
gotoAndPlay (20);
}


So far, all 3 instances react to the mouseover no matter which I actually mouse over...I even placed a dynamic text field with the variable set to _parent._name next to the button in the mc, but in each instance the value is "instance 7". If I change _parent._name to just _name, the value is then one of the instance names, but all 3 return the same value.

What did I do wrong?

Working With A Dynamic Instance
I am trying to move a movie clip across the stage. This clip has the instance name "runningGirl". I want to affect this movie clip dynamically. That way, when I add "runningBoy" into the mix, I can use the same function, but pass along the different intance name.

Right now, this is how I'm doing it.

I am calling a function in an if statement:


Code:
if(*parameters*){
ThrowIowan(runningGirl);
}
Then, the actual global function looks like this:


Code:
_global.ThrowIowan = function(iowan){
trace("Big D & the Kid's Table");
dx = 86-_root.iowan._x;
dy = _root.iowan._y-222;
_root.iowan._x += dx;
_root.iowan._y -= dy;
}
It's not working though, because I think it's not reading the instance name right (_root.iowan._x ). I don't think the variable is being passed correctly. How can I make this work?

Note: The function is being called successfully, because the trace shows up.

One Instance Button Is Not Working At All.
Hi,

I have developed an audio recorder. The funny thing is that one of the buttons (the play one) doesn´t work at all. The onRelease, onRollOver and onRollOut methods are not called.

The funny thing is that I have made a duplicate of pause button(pause button works ok), added it to the interface, given an instance name (play2_btn) and again no method is called.

Any ideas?

Thanks. Ed.

DuplicateMovieClip, Instance Name Not Working
Hey all. What's confusing me is half of this is working. I'm pulling in thumbs for a portfolio site and turning them into buttons. The button functions work, the thumbs are loading correctly, BUT the _y check and _x move (to make another row) don't work and the onPress doesn't load the image. I'm getting "photos/_LG.jpg" (no number) error in the browser. I'm SO stuck. Please help.

Thanks.


ActionScript Code:
stop();
function setBttns() {
    picHolders = 24;
    for (var i = 1; i<picHolders; i++) {
        this["bttn"+i].pic = i
        duplicateMovieClip("makebttn","bttn"+i,i);
        this["bttn"+i].littleHolder.loadMovie("thumbs/"+i+"_SM.jpg");
        if(this["bttn"+i]._y > 200){
           this["bttn"+i]._x = 200;
        }else{
            this["bttn"+i]._x = 0;
        }
        this["bttn"+i]._y = i*(makebttn._height + 5);
        this["bttn"+i].onRollOver = function() {
            this.dull();
        };
        this["bttn"+i].onRollOut = function() {
            this.bright();
        };
        this["bttn"+i].onPress = function() {
            _parent.container.loadImage("photos/"+i+"_LG.jpg");
            trace(i);
        };
    }
}
setBttns();

Multiple MCs Using The Same Instance Name. Only 1 Of Them Working For The Function.
Got 9 MCs which I want a rollover effect for. I made 1, copied it and it's instance name 9 times. And made this script:


Code:
function menu_btn_over() {
myTween = new mx.transitions.Tween(_root.main.menu.btn.btn_parent, "_x", mx.transitions.easing.Strong.easeOut, _root.main.menu.btn.btn_parent._x, 0, inspeed);
}
function menu_btn_out() {
myTween = new mx.transitions.Tween(_root.main.menu.btn.btn_parent, "_x", mx.transitions.easing.Strong.easeOut, _root.main.menu.btn.btn_parent._x, -160, inspeed);
}
_root.main.menu.btn.onRollOver = function() {
menu_btn_over();
};
_root.main.menu.btn.onRollOut = function() {
menu_btn_out();
};
But it only works for one of the buttons. The one I made the copies from.

I figured you could do this since it's the same MC? I could be wrong though. If that is the case, is there some way I can make the same action for every button without having to make a bunch of calls for each one? for example:

"_root.main.menu.btn1 <and> btn2 <and> btn3 <and> etc.onRollOut = function() {"

Thanks!

Instance Names Quit Working
Here's a weird one. Maybe someone out there knows what going on.

The last two weeks or so, some instance names just randomly quit working. Once changed to something else, they work fine again.

For example: I've been making multiple drag and drop activities lately. They all use the same exact AS code, instance names, etc. The only difference is the content of the draggables. Out of nowhere, one draggable will quit working. All the others still work fine. If I change the instance name from say "b_btn" to "b_btnn" and change any reference to that name in the AS, the file works fine again.

This has happened several time in the last few weeks, with different files, different AS. In all cases, I'll have one version of the file that still works, and one that doesn't. I'm running Flash MX on a Mac 10.3. I've tried opening the files in MX 2004 and the same thing happens.

Any ideas?

Instance Names On Button Not Working...lpease Help
Hi all,

Sorry if this should be in the AS section, but this is specifically for Flash MX.

I'm creating an interative map with buttons at specific points on the map. I need to include a place name in the clip, so that I can use the GetURL function to formulate a URL eg:

URL req'd = "www.server.com/mappages/PlaceName.html"

where the instance name of the button is "PlaceName"

When I create the on(Release) function for each button I hoped to use something like GetURL(string add this._Name) to goto the desired page. It appears that the instance name, however, isn't being passed to the script. If I use the target path tool from inside the on(Release) function I see this.PlaceName as a child instance.....!

Can anyone help with this? I'm still alittle new to MX, but I'm sure this should work.

Many thanks in advance

Novova

Not Sure Why AttachMovie Clip Isnt Working In This Instance
The line: topSubNav.attachMovie("subText", "subText"+y, 0);

doesnt seem to be working correctly. The spelling is correct.
I am trying to attach a movie clip inside movieclip: topSubNav

anyIdeas?

__________________________________________________ ____________

for(x=0; x<3; x++) {
for(y=0; y<2; y++) {
topSubNav.attachMovie("subText", "subText"+y, 0);
trace("name"+this._name)
topSubNav.eval("subText"+y)._x = orgX;
topSubNav.eval("subText"+y)._y = orgY;
topSubNav.eval("subText"+y).label.htmlText = topLevel[x][y];
trace("topLevel[x][y]" + topSubNav.eval("subText"+y)._y);
topSubNav.navBGobj._height += 25;
}
this.attachMovie("topLevelItem","item"+x, x+4);
eval("item"+x)._y = yPos;
eval("item"+x)._x = xPos;

....... yada yada yada }

Passing Instance Name Into Function Not Working (MX 2004)
I am trying to pass an instance name into a function and its not working properly.

here's the call:
UpdateGraphicStatus("MIM", "mim1", "fault");


here's the function definition:
function UpdateGraphicStatus(objectType, objectIdentifier, state){

here's the reference in the function:
[objectIdentifier].gotoAndPlay("fault");

I've tried it with and without the (.) after the brackets, and with and without the (_root)reference before the bracket notation.

I'm at the end of my rope with this one.

HitTest Not Working, Instance Names Correct
Im doing a piece of coursework for uni and we have to use flash. we were taught using these crappy instruction booklets and the code is almost never correct.

In this case i cant figure out why this movie isnt working correctly, the others i have fixed, but being new to flash i cant seem to make this one work


Code:
_root.AnimatedPlayer_mc.stop();
disc1_mc.onPress=function(){
this.startDrag(true,4,50,540,400);
};
disc1_mc.onRelease=function(){
if (this.hitTest(AnimatedPlayer_mc)){
stopAllSounds();
song=new Sound();
song.attachSound("song1");
Song.Start(1.5,3);
this._visable=false
_root.AnimatedPlayer_mc.play();
};
};
The movie is supposed to play the song "song1" when the "disc1_mc" movie clip is dragged over the "AnimatedPlayer_mc" movie clip and released.

"disc1_mc" is draggable, but once clicked you cant "put it down" and when you release it over "AnimatedPlayer_mc" nothing happens.

Also when i test my movie in flash MX i get this message

"Symbol=Animated_Jukebox, Layer=Layer 1, Frame=50: Line 1: Statement must appear within on/onClipEvent handler
_"

please help if you can

Skan

Instance Names...changing...or Addressing Txt Field Instance Based On Instance Of Mc
i'm creating a mail form, that has a text effect which displays the type of info to be entered in each input box. To create this effect, i had to assign the variable name txt to the input boxes as well as the instance name txtBox. each of these text fields is contained within a movieclip, each with a unique instance name. what i need to do, is somehow assign a value/variable to each text field to pass to PHP to generate an email. I have always used components for contact forms so i'm not sure how to make the switch, AND.. the script i use for my contact form is an EXTERNAL AS file. (i use a customized version of a contact form from www.actionscript-toolbox.com [which apparently is no longer Flash related site])

ok.. this is hard to explain..... so bear with me....
If my original mail form component instance names were: tiName, tiEmail, tiSubject and taMsg (ti for textInput and ta for textArea)
and my current instance names for the mc's which CONTAIN the input boxes (with txtBox textfield instance inside them) are: name_txt, email_txt, subject_txt & comments_txt...

how would i pass/convert the users input text in each movieclip's txtBox, into the original instance name for my mail form so i can continue to use the form/PHP i have been using??

OR....

how do i take the values input by the user in each txtBox (i.e name_txt.txtBox.insertedTextFromUser or name_txt.txt, email_txt.txtBox.insertedTextFromUser or email_txt.txt) and send them to a new PHP script to send mail??

please keep in mind i am PHP retarded... hence why i re-use the same form over and over..

thanks in advance for any help. it's greatly appreciated...

if you're confused about my problem, please let me know... i'm having a difficult time explaining....

[F8] Mouse Events Stop Working When Naming Instance
Hi there!

I've come across a strange error - let me know if I should post code, but it's pretty straight forward.

I have a video player with a custom, draggable volume controller which works fine until I name the movie symbol's instance. Then the symbols inside the movie no longer respond to the mouse events. The reason why I need to name the controller is to change its alpha settings with mouse events in the root area...I could separate everything and I know it will work, but I prefer to keep things neatly bundled into separate symbols!

Any hints would be great - I've been scouring the net for some time

Cheers!
Spyre

Creating An Instance Name Dynamically In Flash, Easy? But Not Working
This is my Code

targetMC = ["img_mc" + i];

infoTotal = targetMC.getBytesTotal()

How come when I use

img_mc0.getBytesTotal() it works

but not when I use

targetMC.getBytesTotal()

it returns NaN, even tho targetMC = img_mc0

Beginner, Button._alpha = 100 And Identifying 'instance Of And Instance Name' Problem
1)
as Flash beginner
i'd like to have a button contain the feat. alpha = 30.
The following is for MC only:
onClipEvent (load) {
_alpha = 0;
}

What is the onClipEvent part for buttons.

2)
When to use 'instance of' and 'instance name'?, and how to identify them in an AS code such as:
_root.button._alpha = 100;

Access Property/function Of Instance From Inside Another Instance
Might be something really obvious, but I'm still trying to get my head round as3...

I need to call up a property and function of another instance of the same class, similar as in as2 (called from within "_root.instance_mc1"):

ActionScript Code:
_root.instance_mc2.someNumber = 0;
_root.instance_mc2.someFunction();

Now in AS3 I can access the object (extending sprite) itself (and inherited properties like x) by using:


ActionScript Code:
this.parent.getChildByName("row2").x

but if i try to access public variables/functions from that object (this.parent.getChildByName("row2").someNumber) I get Error 1119: Access of possibly undefined property someNumber through a reference with static type flash.displayisplayObject.

Anyone know how I can get this to work?

Code In One Instance Is Referencing The Previous Instance
I have the following code in a button symbol:

on (release) {
gotoAndStop (2);
_root["answer" + this._name.substr(1)] = "true";
}

I also have an instance of the button in 2 consecutive keyframes. The first instance is named "Q5" and the second instance is "Q6".

I expected the code: this._name.substr(1)]
to reference "5" and "6" from the instance names (Q5 and Q6), but instead instance "Q6" is referencing "Q5"!

The *really* strange thing, is that when I insert a blank keyframe between the two original keyframes, the code works perfectly!

Does anyone know what's happening?

[MX04] Get Instance Name Of Rolled Over Array Instance
Hi
I am willing to do a rollover image gallery which enlarges image on rollover event and shifts the neighbouring ones aside..

Here is the code so far

Code:
_root.bttn.onRelease = function() {
createGallery();
};
function createGallery() {
var row11:Array = new Array("DSCF5659", "DSCF5807q", "DSCF5773q");
for (i in row11) {
_root.createEmptyMovieClip(row11[i], _root.getNextHighestDepth());
_root[row11[i]].loadMovie("segi/"+row11[i]+"small.jpg", [row11[i]]);
_root[row11[i]]._x = i*150;
}
}
_root.onEnterFrame = function() {
function roll() {

var row11:Array = new Array("DSCF5659", "DSCF5807q", "DSCF5773q");
for (i;i<row11.length;i++) {
_root[row11[i]].onRollOver = function() {

this._xscale += 10;
};
}
}
roll();
};
What I would like to do is to:
ask flash which particular movieclip was rolled over , what is its instance name and than perform string operation to get a number (order) of that clip (I am naming all dynamically with image name + number in order)

Can anyone help me please ???

Thanx in advance

How Do I Copy A Sprite Instance Into A BitmapData Instance?
I apologize if this is covered elsewhere: I just don't even know what terms to search on to find what I'm looking for...

I have a sprite that receives various user-drawn lines on it during runtime. I would like to be able to copy this Sprite into a BitmapData instance, then send the pixels from the BitmapData instance to a PHP script. I think I'll be all right with the PHP end of things, but I just don't know how to copy my Sprite into a BitmapData.

(If there were a way to just use BitmapData and use the moveTo, lineTo, mouseX, mouseY, etc, methods, then I'd do that, but I don't even know if that's possible...Obviously, I'm not as well-versed in AS3 as I'd like to be.)

Thanks in advance for any help!

Instance On Top / Movie Instance Depth
Hi everyone,
I would like to know how, if possible, i can get the depth of a movie instance. Basically I just want to make the movie instance clicked on on top of all the others. I was going to try to do this using the swapdepths action but if anyone knows of a better way please tell me!
thanks a lot
jordan woolley

Returning The Instance Name Of A Class From Within The Instance
Hi,
I'm trying to do some error reporting in my actionscript.
I have a class MyData which can be instantiated several times over in each project e.g.
var myData1:MyData = new MyData();
var myData2:MyData = new MyData();

In the error reporting I have put statements like
trace("MyData.loadData reports error.... message...");

However, I'd really like it to return the instantiated name, not the generic class name so that I can trace errors to the particular instance that is failing. Does anyone know how to do this? I've tried
trace(this.toString() + " reports error.... message...");
but I just get a name of [object object] which isn't that helpful!

Many thanks!

Removing Instance X Inside Instance X
In Flash CS3 in library I have a MovieClip symbol Help (exported for AS).
The function below opens an instance of the symbol when the button is clicked.


ActionScript Code:
function showHelp(e:MouseEvent):void {
    var helpwindow:Help = new Help();
    helpwindow.x = 50;
    helpwindow.y = 50;
    addChild(helpwindow);
}
This works and instance "helpwindow" shows on the screen.
Now inside the symbol Help i have another button which will run a function that would close that instance. How do I get rid of that instance? I was trying with removeChild but errors occurr.


ActionScript Code:
function removeHelp(e:MouseEvent):void {
    removeChild(MovieClip(parent).helpwindow);
}

Quote:




TypeError: Error #2007: Parameter child must be non-null.

How To Call The Instance Name Inside That Instance?
Ok this is what I want...

I am inside an instance of a movie clip. And I want to access the properties of this movie clip. Now the problem is (if) I don't know the name of the instance of the movie clip (suppose I create the instance of the movie clip on the fly!!!), how do i refer to the name of the instance.
Is there something called this. in actionscript?

Any help would be appriciated!!!

Sushubh

Dynamic Instance Name Vs Manual Instance Name?
Hello,

I would like to access this object (taken from Debug > List Objects of in flash player)


ActionScript Code:
Target="_level0.promotion0.loader_mc.instance87.promo TXT"




This is what I am trying to access it with:


ActionScript Code:
trace( this.getChildByName("promotion0").loader_mc.getChildByName("instance87").promoTXT.text );





Error:


ActionScript Code:
1119: Access of possibly undefined property loader_mc through a reference with static type flash.displayisplayObject.






what is the correct way to do this?

How To Get Button's Instance Name On Stage? OR Can A Button Ahve 2 Instance Names?
i have a button the the stage, with an instance name of: "butt1"

the button itself lives inside a movieclip, where it is called thisButton

when flash runs and I click the button I want to output the button's instance name on the stage (i.e. butt1) but i'm only getting the button's instance name in it's own movie

this._name gives me = thisButton

is the name i want stored in a separate property?

edit: sorry - i realise that the problem is that the button code is inside the mc itself, where the button's name is thisButton

Instance Name Instead Of Instance Number
hey there,

the following code returns strange names for the instance: I get 'instance61' and 'instance55' when clicking the button in the MC named 'tabber'. I would expect to see 'tab' and 'tab2'.

Is there a way to get the instance name instead of the instance number?

cheers!


PHP Code:



package {    import flash.display.MovieClip;    import flash.events.MouseEvent;    import flash.display.SimpleButton;        public class content extends MovieClip    {        public function content()        {            //content.stop();            var tab:tabber = new tabber();            tab.x=118; tab.y=75;            tab.butt.addEventListener(MouseEvent.CLICK, ms2);            addChildAt(tab,1);                        var tab2:tabber = new tabber();            tab2.x=228; tab2.y=75;            tab2.butt.addEventListener(MouseEvent.CLICK, ms2);            addChildAt(tab2,1);        }                function ms(event:MouseEvent):void         {            trace(event.target.parent.name);        }    }} 

Any Way To For A Class Instance To Ask What Its Instance Name Is?
Hey. I have a class which needs to create a movie clip on the stage. Since each instance of the class will only ever have 1 movie clip on the stage at a time, it seems reasonable that I have the instance create a movie clip with its own name, prefixed with "mc_" or something of the sort.

Here's where I don't know quite what to do... How do I get at this information? For instance, when you a dealing with an XMLNode, you can simply use...

the_answer = xmlNodeInstance.nodeName;

...I know the analogy fails, but hopefully you know what I'm looking for.

Thanks!

Calling An Instance Within An Instance
Hi,

I've got 3 movieclip buttons with instance name, "btn1", "btn2" and "btn3". Inside these clips is another movieclip named "mousedetect".

How do I use a loop on the "mousedetect" movieclip to initiate an action? Without a loop it will look like this:

btn1.mousedetect.onRelease=functiion(){
btnRelease();
}

I've tried something like:

for (i=1;i<=3;i++){
this["btn"+i].mousedetect.onRelease=function(){
btnRelease();
}
}

but an error shows up, what should be the correct syntax?

Thanks!

Want Opening Movie Clip Instance To Close Underlying Movie Clip Instance
Just so you all know, I'm one of three people in our company that uses Flash and I'm considered "the expert". However, we don't do more than a few Flash projects a year, so my scripting knowledge is very, very green. Thanks in advance for your patience.

I have 22 buttons that play an assigned movie clip from the library. I suspect I'm building these things the wrong way (probably true), but here is how each button is constructed....

Each instance that I'm calling a button is actually identified as a movie clip intance with a button in it. It sits on its own layer. When I double-click an instance, several layers are displayed, the majority of which belong to the presentation of the movie clip. The clip lasts five frames.

The first frame consists of blank keyframes for each layer except for one layer that has stop() assigned to the frame and another layer with the actual button. The layer with stop() at frame 1 is then blank for the next three frames, and then another stop() on frame 5 (the last frame).

The button layer lasts all five frames. Here's the script for "display1980":

on (rollOver) {
_root.display1981.gotoandstop(1);
_root.display1982.gotoandstop(1);
_root.display1983.gotoandstop(1);
.
.
.
_root.display2003.gotoandstop(1);
_root.display2004.gotoandstop(1);
_root.display2005.gotoandstop(1);}

on (release) {
_root.Play();
play();
}

For each instance, there is no line of script that refers to itself. In this example for display1980, "_root.display1980.gotoandstop(1);" is not used.

As I mentioned earlier, each instance is on the main stage on its own layer. I've done this with only eight of my instances, so there are now eight layers. (There are--in fact--more than eight layers, but those are not part of this issue.)

The script I created does the job of getting rid of any previously displayed movie clip, but I created a new conumdrum: If I rollover any other button, the currently displayed clip closes. I've tried replacing "on (rollOver)" with "on (press)" but that doesn't work.

Like I said, I suspect I'm buildng this wrong. Is what I built a waste of time, or can it be salvaged? Or, is there a much better and efficient way (and I suppose there is) that can be described so that my green experience can absorb to good effect?

Accessing Movieclip Instance Within Another Movieclip Instance
Accessing library movieclip instance within another library movieclip instance issues.

I have a movieclip in the Library called menuBar. In the menuBar mc I added two buttons. I want to be able to click on each button to play a video for each corresponding button. When I mouse over the button the pointer turns into the hand, suggesting it recognizes it as a button. But I'm unable to access the button (menuBar.button1 in AS2) in my code, I'm using AS3. Any help would be much appreciated. Thank you for your time.

Flash MX TabIndex Only Working With Text Fields, Movies And Buttons Not Working :(
hey, has anyone heard of this, is it a known bug, or am i doing something wrong?

im using the following code to tab index a page, with text fields, buttons and movies that i would like to highlight to the visitor.

arrTabIndex = new Array("butAddress", "movEmail", "txtCC", "txtTelephoneNumber", "txtMobileNumber", "txtSubject", "txtSubject", "txtRealName", "txtBody");

for (var Count = 0; Count < arrTabIndex.length; Count++) {
eval(arrTabIndex[Count]).tabIndex = Count;
//eval(arrTabIndex[Count]).tabEnabled = 1;
//eval(arrTabIndex[Count])._focusrect = 1;
}

my problem is, that if i include movie clips or buttons, the first in the series does focus and show the colored square but the tab key does not move the focus to the next object.
if i only include text fields, the tab key works as normal
is this a bug, or am i doing something wrong?

many thanks, in advance
clive

LoadMovie - Working In Debug Mode, Not Working Otherwise
Hello,

I have a main swf, which must load other 2 swfs (PHP data involved).
I made it work in debug mode, but in normal mode, a movie is not loading at all. What should I check to find the problem?
(the paths are OK)

I would be really thankfull if someone could help soon.

Thanks

Site Working Perfectly In A Server, Not Working In Other
Hi
I have a strange problem with a site I've done recently. It works perfectly in one server, but the same files don't work properly in some other server(both servers are Linux). The site loads correctly and all, and it runs fine for a while, but after you have clicked the buttons of the menu for 5 o 6 times the buttons doesn't load anything anymore. The rest of the movie runs fine, it's only the buttons that are supposed to load the sections (external swfs) that just do nothing.
See it for yourself:

Here the site works as it should:
http://www.avanzasoluciones.es/celeste

Here the buttons stop working after a while:
http://www.limpiezasceleste.com

I'll be glad to answer any question you may have regarding the coding of the site or anything that may lead to a solution.
Thanks for your time

Contact Form Not Working In IE But Working In Mozilla
got a problem that I just can't figure out.
I have a feedback that was working fine. Key word "was".
I added a frame in the form MC to include a Thank You screen. But then it stopped sending in IE, but works in Mozilla.
I tried taking the extra frame out but still doesn't work in IE anymore.

any suggestions?
button

Code:
on (release) {
form.loadVariables("email.php", "POST");
}
script on the php page

Code:
<?php
$sendTo = "alvin@diggy.com.au";
$subject = "Gisler contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = "Phone:" . $_POST["phone"] ."
Country: " . $_POST["country"] ."
Message: ".$_POST["message"]." ";
mail($sendTo, $subject, $message, $headers);
?>

Fading Text Only Half-working (so It's Not Working At All)
Here's one for ya...I'm making some fading text. I made a movie clip of the text and did the alpha tweening and all that, and when I play the clip on-stage, it works perfectily. However, when I run a movie test, the text does not fade in but rather just suddenly appears. This is also the condition when the graphic is loaded onto a webpage. Has anyone else seen this happen before and can tell me why this is happening? Thanks.

Full Screen Tiling Working, But Not Working Right?
am using bitmapdata to make me a nice lil' background image, and it works great...until it's resized. Whats happening is it's creating a new bgHolder clip on the resize, NOT resizing the current empty clip "bgHolder"

Here's the code(taken from various posts)


import flash.display.BitmapData;
#include "mc_tween2.as"
Stage.align = "TL";
Stage.scaleMode = "noScale";
var myListener:Object = new Object();
myListener.onResize = function() {
createBG();
};
Stage.addListener(myListener);
var bgHolder:MovieClip = _root.createEmptyMovieClip("bgHolder", _root.getNextHighestDepth());
var BG_LINKAGE:String = "bg";
function createBG():Void {
var tile:BitmapData = BitmapData.loadBitmap(BG_LINKAGE);
with (bgHolder) {
beginBitmapFill(tile);
moveTo(0,0);
lineTo(Stage.width,0);
lineTo(Stage.width,Stage.height);
lineTo(0,Stage.height);
lineTo(0,0);
endFill();
}
}
createBG();

Working Locally - Not Working Online
Having a nightmare with this.

On my project I have made use of both named anchors and frame labels for the navigation - both of which work fine when testing locally, in all browsers.

Problem is, soon as I upload, the frame labels stop working in FireFox, and they only working on 2nd load in IE. Im publishing Player 6, using AS2. The named anchors work great, across the board.

Any ideas?

AS 2 Button Not Working Not Working Properly
I've got a problem with a button dynamically attached to an mc within an as 2 class script. This is the button code:


ActionScript Code:
this.mc.butt.onRelease = function(){          
            current=true;
            this._parent.checkFocus();
        }

this code is inside the class constructor while current is declared at the start of the class and set to false previously in the constructor. The mc is the movieclip attached to the class and butt is the button attached to that. checkFocus is called ok but i'm confused how cos the "this._parent" should reference the "mc" movieclip but this has not got a checkFocus method on it. If i use "this._parent._parent" however, which should be correct, it does not work. I don't know what's up there. Anyway, checkFocus is here:

ActionScript Code:
public function  checkFocus(){
       
        for(var mcname:String in _root){
           
            if(_root[mcname] instanceof Layer){
               
                if(_root[mcname].focus==true){
                    //_root[mcname].gainFocus(20);
                    _root[mcname].loseFocus(20);
                } else {
                   
                    if(_root[mcname].current==true){
                        trace("waaahhhhh");
                        _root[mcname].gainFocus(20);
                    }      
                }
            }   
        }
    }


the aim of this code is to unfocus the Layer object (this is the name of the class) currently in focus, denoted by its focus attribute being true, and focus the new Layer object that has been clicked on - denoted by its current attribute being true. The currently focused layer is unfocused ok, but the new layer is not focused because, it seems, the change in the current attribute has not happened - there is no waaaaaahhhh coming up! I think this is because i am not reference it properly from within the button event. How can i reference properly from within the button? I've tried using _target and targetPath() but i'm not getting anywhere. I'm pretty sure this is the problem cos things work fine when i declare button events from outside the class, inside the fla. But i'd much rather do things dynamically within the calss if possible. Anyone got any ideas? I've been staring tooooo long at this.

Rollover Working But Rollout Not Working?
i have attached my small fla...

basically i have 5 buttons, each with a rollover and a rollout statement.

when the buttons are rolled over, they tween in scale.

when the buttons are rolled out they are supposed to tween return to normal scale - but for some reason they do not tween, they just pop straigh back into normal size....

any ideas???

AttachMovie Working, CreateEmptyMovieClip Not Working
Anyone have an idea just by quickly looking at this? I know it's taken out of context but I just can't see why it shouldn't work!


ActionScript Code:
// this line aperantly does not create the clips I need within a for loopvar photo:MovieClip = container.photoContainer.slide.createEmptyMovieClip("photo"+i, i+200);// while this line does, any idea why?var photo:MovieClip = container.photoContainer.slide.attachMovie("placeholder", "photo"+i, i+200);

Why Is My Php Email Form Not Working Here, But Working Elsewhere?
Hey everyone,

I wonder if you might be able to answer what is potentially a stupid question..

On this site I created a php email contact form and it's working fine: http://japanese-acupuncture.110mb.com/main.html

The contact form is in the clinic info tab on the side bar.

I've just set up a new site, and I copied the movie clip I used for the above site straight into the new one before adjusting how it looks to fit the layout of the new site. I'm going to use it in two places, and I know that I'll need to duplicate the movie clip for that. The site it's up on doesn't support sendmail, but I'm not worried about that yet.

What I can't figure out is why my text fields no longer let me input text, even though the movieclip is exactly the same as on the above site. The new site address is here: http://www.users.on.net/~davidgardner/

The contact form on the new site is on the 'register for a course now' tab, and on the 'contact us' page.

The only thing I can think of, is that the problem is caused by the contact form being buried in a series of movieclips.

If anyone has any idea what the problem is I'd be very appreciative!

Thanks,
David

Sound Effect Working Fine In Stanalone Movie Not Working As Part Of Loaded Movie
I have loaded in a movie via a loadMovie method of a movie clip.

In the loaded movie there is a sound effect generated in script via a sound object that works great when played in a standalone version of the loaded movie, but when I load it into the main movie the sound effect will not play.

Anyone any ideas?

Getting An Instance Name
hello folks,
i am working on a flash site that duplicates a movie clip and gives it a name according to the original movie clip plus the loop . i.e original clip square, new name square1, square2 etc.
these are all draggable, and it all works ok, but i need to know when being dragged which of the clips is being dragged, i.e. i need to get its instance name.

ideally i want to be able to do something like:
onPress(
moviename=Getinstance name;
)
clearly getinstance name isnt possible but you get the picture..

thanks in advance

bob splendid

http://www.sensoriumdesign.net/

About Instance Name.
Dear all,
Can I name a instance name by running a PHP file?
That means the instance name is named by the PHP file.

** INSTANCE NAME? **
hello,

please help me...

i want the each MC to find out its own instance name and play the correspoiding MC...

for example, if the MC instance called steve is rolled over, the another MC called steve_dot is played, too.

on (rollOver) {
Mouse.hide();
this.gotoandplay(2);
startDrag ("cross");
x = this._name;
_root.teams.x+"_dot".gotoandstop(2);
}

this does not work!! why?
i've been stuck for a week sorting this out...

any help appreciated.

reynard

Instance Name
how do you assign an instance name?

thanks!

-fosh

An Instance
"Place an instance of the movie into your stage"
how do you do this ???? what is an instance..??

Instance Name
i have an script what duplicate a movie
but i will give the movie an instancename when
it will be duplicate

how can i do that

Instance Within An Instance
How do I make an instance load within an instance? Lets say I have instance abc + def. Both of which are in, yet another instance off of the main stage. In instance abc..I have instance def which will play at the end of instance abc. Inside that instance, I have it going back and playing part of abc again. How do I make this happen? If they were on the same field, in instance def...I would have it tell target /abc ; but since it is inside of abc, it will have to be /(main stage instance name).abc I dont know what to put there. I need to know how to make an extension from one instance to another..if its a dot or a / or something. I dont get it.

Instance
I'm following a tutorial to the letter which tells me to go into Modify>Instance. Where oh where is Instance. Basically I want to take a photograph and wash it out so that as the movie runs, it appears to fade in. BTW, I'm using the new FlashMX.

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