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








Why Doesn't This Work?


ActionScript Code:
// Loader Animation
createEmptyMovieClip("Loader", this.getNextHighestDepth());
this.Loader._x = 0;
this.Loader._y = 0;
this.Loader.loadMovie("inc/Loader.swf");

This is working fine from within Flash 8 Pro, but as soon as I publish it and open up the generated HTML page in IE7, I get nothing. Any ideas?

This is actually part of a larger problem with another movie, but I've isolated this particular thing into a tester movie so I'm only dealing with one problem at a time.

Any help appreciated!




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 03-06-2007, 09:29 PM


View Complete Forum Thread with Replies

Sponsored Links:

Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.

What's wrong with this??? I think it's something simple.
I've already tried:

Code:
this._lockroot = true;
I also tried writing the AS as:

Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...

I hope someone can help!

Download the: Source File


(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)

View Replies !    View Related
This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).

I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.

I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.

Preview: www.blaak.nl/flash/

View Replies !    View Related
This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).

I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.

I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.

Preview: www.blaak.nl/flash/

View Replies !    View Related
Smoothing Doesn't Work It Oughta Work
Hello!

I am trying to develope this website:

http://anarchy.primalinsanity.com/~villain/nma.rar

Its smoothing effect, however, has mysteriously disappeared. It is only enabled in authoring mode, not if I export the movie. I've tried everything to re-enable it:

1) Changed formats from JPG to PNG
2) Library > Bitmap Properties > Allow smoothing
3) File > Publish Settings > Smooth

But nothing seems to work

Thanks everyone,
Johann

View Replies !    View Related
New Instance Button Doesn't Work, No Apps Listed, But Apps Work
In my admin panel if I click on the New Instance button it doesn't do anything. I've seen other posts about this and they all end up being caused by people having no applications to load, but that's not the case here. My apps are installed and they work fine, but the new instance button doesn't list them and they don't show up in the applications list of the admin panel, even when they're running.

This has to be something pretty simple, but I'm not having any luck figuring it out. Any ideas?

View Replies !    View Related
Loader.close Doesn't Work In Flash But Does Work In Flash Player
When testing a movie in flash with simulate download the Loader.close() function doesn't seem to work when trying to cancel a load but it does work in a browser! You'll need to try to load a movie that has sound. The loader looks as if it stops but then the sound that's in the loaded movie will play, proving it hasn't stopped loading

add a button with instance name btnCancel









Attach Code

function onClickbtnCancel(e) {
// damn thing doesn't work in Flash but works online
ldr.close();
/* this stuff isn't even needed
ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, onCompleteHandler);

for (var i:uint=0; i < container.numChildren; i++) {
if (container.getChildAt(i) is DisplayObjectContainer && container.getChildAt(i).name == "movieclip loader") {
container.removeChildAt(i);
}
}
*/
}
btnCancel.addEventListener(MouseEvent.CLICK, onClickbtnCancel);

var container = new Sprite();
var ldr = new Loader();
ldr.name = "movieclip loader";
container.addChild(ldr);
var urlReq = new URLRequest("file.swf");

function onCompleteHandler(e) {
addChild(e.currentTarget.content);
}
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);

ldr.load(urlReq);

stop();

//--------------------On another note. Anyone know why I can't add text format styles to List components?

import fl.managers.StyleManager;

// set style for all components such as the List
var tf = new TextFormat();
tf.color = 0x000000;
tf.font = "Verdana";
tf.size = 14;
//StyleManager.setStyle("textFormat", tf); // <- this works but that's not the point
StyleManager.setComponentStyle(List, "textFormat", tf); // this works fine for a TextArea, just not a List??

























Edited: 07/11/2008 at 10:08:19 AM by Cine-Med

View Replies !    View Related
I Know This Should Work, But It Doesn't
in a game i'm making i've put this scrip in a movie clip:

onClipEvent (enterFrame) {
for (i=1; i<6; i += 1) {
if (this.hitTest(_root["shot"+i])) {
removeMovieClip (_root["shot"+i]);
this.play();
}
}
}

its just a for loop see if a shot hit the movie clip the shot is removed and the movie clip plays, the clip plays fine but the shot isn't removed (the shot is a duplicated movie clip)

i also tryed to remove the movie clip the shot hit (it was also duplicated) by after the explosion takes place it is removed with this script:

removeMovieClip (this);

but that doesn't work either. can any one help? or has my copy of flash lost the ability to use the "removeMovieClip" command?

View Replies !    View Related
With () -- Doesn't Seem To Work
Here is the structure:

movie Clip _level0.ColorBoxX.Highlight (where X is an integer)

and there is a button on the _level0.ColorBoxX

from the 'on (release)' action of a ColorBoxY I want to modify the _visibility of the Hightlight mc on ColorBoxX

so here is my with statement.
Note: _parent.currentColor = the X of the ColorBoxX

with ("_parent.ColorBox" + _parent.currentColor){
Highlight._visible = false;
}

I know that "_parent.ColorBox" + _parent.currentColor evaluates to the proper mc name via doing a trace but the mc visible doesn't go to false (i.e. the mc still shows up)

what am I doing wrong?

View Replies !    View Related
Still Doesn't Work
i want to load extra swf file to a defined location of my flash movie, I made an empty MC with instance name "location" and put it into location i want my extra swf to be at. my swf file outside named "introduction.swf", so i did as a friend told me:
on (release) {
loadMovieNum (introduction.swf, _root.location);
}
i put my main movie file and the extra file in the same folder,but it doesn't work, when i press the button , it just open another IE window with "http://introduction.swf/" in the address blank and get " The page cannot be displayed". So strange, could anybody tell me where is the mistake? Thanks!

View Replies !    View Related
Why Doesn't This Work?
I want to launch an .exe file from a flashmovie:


Why doesn't this work:

on (release) {
fscommand ("exec", "start.exe");
}


(I have the .exe application in the same directory as te my swf...I've tried it with an .exe projector (instead of a .swf) too...)

Can anybody help me ..please!!!

View Replies !    View Related
It Has To Work, But Doesn't...
hi,
I have a movie with two scenes.First scene has just one frame with lots of layers.And there is a mc on top layer which contains 200 frames in.I have 6 special frames in that 200 framed mc.When playhead goes any of them 6 times totally,I want the main movie go to next scene.
So what did I do:

I put an empty mc in 200 framed mc(call it mc A).and add that script to it;

onClipEvent (enterFrame) {
hit = 0;
}

then I add this a/s to empty mc in those special frames;

onClipEvent (enterFrame) {
_root.hit++;
if (_root.hit == 6) {
_root.gotoAndPlay(2, 1);
}
}


BUT IT DOESN'T WORK,what is wrong ,can anyone help me about it?You can offer some other way also.

Thanks for your time.

View Replies !    View Related
#%@&* Why - Doesn't - This - WORK ?
i have a chat room that works using php and flash5

note the "that works" bit of that last statement and replace it with "doesn't work". doesn't work that is if you load it in on a seperate level or target. (hummpph!!!)

i need, need, n-EEED! this to work on a seperate level.

why won't it???

tnx

View Replies !    View Related
Why It Doesn't WORK
Ok this script should giveme a progresive resize of the x and y Scales. Instead it resizes the movie instantly to 100 =(

onClipEvent (enterFrame) {
this.onRollOver = function() {
while (this._xscale<100) {
this._xscale += 1;
this._yscale += 1;
}
};

View Replies !    View Related
Still Doesn't Work
I NEED THE POPUP WINDOW TO "POPUP" IN THE CENTER OF THE SCREEN AND NOT THE FAR LEFT HAND CORNER.

View Replies !    View Related
Why Doesn't This Work?
i have this code in my main movie for a preloader that works just great...

onClipEvent (enterFrame) {
t = _root.getBytesTotal();
l = _root.getBytesLoaded();
percent = int ( (l/t)*100)+"% loaded";
if (percent=="100% loaded") {
tellTarget ("_root") {
gotoAndStop (5);
}
}
}


inside this movieclip is just a textfield that displays the percentage loaded. now, i am loading seperate swfs into this main movie into a movieclip called "loadClip1" using a slightly modified version of this script and the percentage loaded script will not display but the movie loads when it is complete. why can't i see the percentage loaded information???



onClipEvent (enterFrame) {
t = _root.loadClip1.getBytesTotal();
l = _root.loadClip1.getBytesLoaded();
percent = int ( (l/t)*100)+"% loaded";
if (percent=="100% loaded") {
tellTarget (this) {
gotoAndStop (5);
}
}
}

View Replies !    View Related
Why Doesn't This Work? Please Help
I have this script attached to a button. On the Main timeline it works fine:

-----------------------------
on (release) {
_root.next = "about";

if (current != "") {
if (next != current) {
this[current].play();
}
} else {
this[_root.next].play();
}
}
-----------------------------

But when I place this button INSIDE a Movieclip, it doesn't work. On the debug, it sets var 'next' equal to 'about' (another MC), but it never is able to get _root.next to play.

Does anyone know if I'm usoing the wrong syntax here?

View Replies !    View Related
Still Doesn't Work
If I export the file as a swf I still get it without spinning logo. What I do when I see it spinning is go to the menu under test movie and it spins but when I export as swf or avi it doesn't spin. any more suggestions.

Thanks
Jamie

View Replies !    View Related
Why Doesn't This Work ?
Hi, I'm just trying to dynamically generate my menu with an array but it doesn't seem to work:


myMenus = new Array("accessories","view", "print");


for (i=0; i<=myMenus.length; i++) {
_root.myMenus[i].onRollOver = function (){
trace("hello");
}
}

Can anyone tell me why assigning this rollover doesn't work?

My instances are named "accessories","view", "print"

Thanks

View Replies !    View Related
Php Doesn't Work
I have a Dynamic text box that is supposed to connect to a php page. It works when I run the Flash page from my computer (locally), but the same Flash page when running at our ISP (live) can't find the php. Does anyone have any ideas about why this would happen?

View Replies !    View Related
Doesn't Work
yes i know, but it doesn't

View Replies !    View Related
OS X Work But OS9 Doesn't
Please, someone help me!!!

I had a website publised by flash MX then it works perfect on OSX or
Explore5.2 but some script doesn't work at all when you see it by OS9 or Explore 5. I published them as flash 5 but maybe 5 doesn't support script of flash MX?
But then again if I publish it as flash 6, a lot of OS 9 users won't be able to see the site, right?


please take a look
@ www.kistudio.info
by both osx and os9.
portfolio page is the one the script doesn't work...

thanks,

tototo

View Replies !    View Related
Why Doesn't This Work? Please Help
I have a banner that will repeatedly flash across the screen in a loop of about 15 frames, and at the beginning of this loop, frame 77, I have this code: (This is the title screen for a corny little RPG thingy)

;
stop();
random = random(3);
if (random=0) {
banner = "Press ENTER to start";
gotoAndPlay(78);
}
if (random=1) {
banner = "Forget the princess, Get the gold!";
gotoAndPlay(78);
}
if (random=2) {
banner = "Level up by killing bad guys!";
gotoAndPlay(78);
}
if (random=3) {
banner = "What are you waiting for? START!!";
gotoAndPlay(78);
}


The problem is, the banner always assumes the value of the last condition, even if I had random=random(2), it would still be the value of "What are you waiting for? START!!"

My goal is to have the value of the banner be a different string every time it goes by the screen, but for it to be random.

And THEN, in frame 78, I have this code:

if (Key.isDown(key.ENTER)) {
gotoAndStop(108);
}


But THAT doesnt work, either.

It just keeps on looping with the same banner text.


And one more question:

How would I ultimately create a graphic that moves around the screen in response to directional key presses??

(I have Flash MX 6.0)

View Replies !    View Related
It Doesn't Work (?)
For everyone:
take a look at this and, please, tell me why the clipmovie "Produzione_struttura"
don't execute the action I gave to the 2 buttons inside...Please, tell me how to make it work . By the way, I use Mac.
Thanx in advance
(Big thanx MophoAl, u know why)

View Replies !    View Related
Why Doesn't This Work?
Code:
str_button = mainTag.childNodes[i].childNodes[1].firstChild;
_root["navbutton"+i].txt_button = str_button;
this works, but I want to change the text to uppercase - I tried

Code:
str_button = mainTag.childNodes[i].childNodes[1].firstChild;
_root["navbutton"+i].txt_button = str_button.toUpperCase();
but that didn't work - doing a trace on it gives "undefined"
Can anyone tell me what's wrong?

ps - I posted this first in the XML forum, but have found I tend to get quicker answers here - sorry for the crosspost!
Cheers

JennyJ

View Replies !    View Related
Why Doesn't It Work? :(
I'm making a scene which is started with stream sound; when the stream is over, I connected it with an 'even' Sound and a stop(); action. It worked properly, but when I tried to connect more another sound (with another stop(); action) it didn't stop the movie at all, it continued to play again (from the begining). I couldn't understand why...??

Explain:
Frame (1): Start sound A, stream mode, loop=0.
Frame (1+n): end stream (the A sound's gone out)
Frame (1+n+m): start B sound with 9999 loops ('Start' mode) + stop(); action.
Last frame: stop B sound (use 'Stop' mode) + start C sound ('Event' mode) with 0 loop + stop(); action.

>> The movie doesn't stop at any frame with stop(); action... (!!??!)

Please help me, I don't get them, why... 8-}

View Replies !    View Related
Why Doesn't This Work?
Code:
on (release) {
_root.score = _root.score+10;
}
on (release) {
if (_root.score==100) {
gotoAndStop(2);
}
}
i have a dynamic text box var=score in the same frame as the button with the above script..
before the button is pressed the text box reads _level0.score
after it is clicked it changes to NAN and remains there

also is there a way to change this so it works with a movie clip coming into contact with another mc, to add 10 points to the score box, and remove that mc from the stage?

View Replies !    View Related
Still Doesn't Work
I thought that might solve the problem but I have looked at other sites of mine that don't use the wmode transparent parameter and they are still just white empty spaces on NS 6.2. Also some sites I made with Flash 5 are fine. I have exported these movies from flash mx as flash 5 but that doesn't fix the problem. Any advice???

View Replies !    View Related
Why Doesn't This Work?
Code:
cursor.onLoad = function() {
Mouse.hide ();
startDrag(cursor,true);
}
???
doesn't hide mouse and doesn't drag Cursor

View Replies !    View Related
Why Doesn't This Work?
I took 1 of the tutorials and followed it just like it said and the preloader is suppose to come up right away, but it stays at a white screen until the whole thing is loaded then the preloader come up for like 1 second, please help me with this. http://mp7.zapto.org
click the weekly best song.

View Replies !    View Related
Why Doesn't This Work?
hey,


I followed this tutorial...

http://www.kirupa.com/developer/mx/p...transition.htm

I am getting close, but my "doors" don't close when i click a button, they start openning???


thx,
Baljinder

View Replies !    View Related
Why Doesn't This Work?
alright, just need a little help with a bit of action script...
making a movieclip play using if... and variables....

var clicks = 0;
click.onPress = function() {
clicks++;
trace(clicks);
};
if (clicks == 20) {
ab.gotoAndPlay("b");
}

any help would be appreciated

Thanks
Maikel

View Replies !    View Related
Why Doesn't This Work ?
I've made some little animated buttons - they are movie clips - but i can't make them take me anywhere , tried doing the _root. command in the line but still doesn't work

can someone tell me why
i know its probably just me missing something but its starting to annoy me now

View Replies !    View Related
Why Doesn't This Work ?
I have this file that when i try and load the swf into another movie online it just doesn't come in - if i remove the 2 first frames that are the preloaders it works fine - trouble is in the future some big files are going in there so i could do with a preloader.

Is there some piece of code in there that shouldn't be or have i missed something ?

View Replies !    View Related
Why Doesn't This Work?
mysiteclip is already on the stage.

a = 1;
newmysitesclip = "mysitesclip"+a;
mysitesclip.duplicateMovieClip(newmysitesclip, a);
newmysitesclip._y += 30;
newmysitesclip._x += 30;

View Replies !    View Related
Why Doesn't It Work?
basically my problem is this, i have this picture, and when you click it i need it to assign 2 variables: varX and varY, heres the code:

on (release) {
place = "images/1";
loadMovie(place+".jpg", "size");
varY = getProperty("/size", _height)*.273333;
varX = getProperty("/size", _width)*.16375;
gotoAndPlay(4);
}

-this code is on the thumbnail-

What's happening, is you click on a thumbnail of image 1, an offscreen movie "size" loads the full picture, and i'm trying to get the width and height of movie "size" and multiply it by those numbers, and set them to there according varX or varY. It just doesn't function like it should, and i feel like i'm missing something obvious....

View Replies !    View Related
This Doesn't Work
trying to make this work but it doesn't.

1. have the scroll work when .swf movie is loaded in movie clip (loader) on main movie page.

2. when clicking policy button from main movie... the swap depth command needs to only works ONCE. Right now, it swaps depths back and forth...one is the correct one, the second time is not. I need some kind of if command or something.

check it out guys, .fla posted below.

http://www.angelfire.com/games2/gamersglory/MX6.fla
http://www.angelfire.com/games2/gamersglory/POLICY.fla

this is in flash MX format. I have flash mx 2004 pro if needed to switch.

View Replies !    View Related
Why Doesn't This Work?
Hey guys, i'm working on a snakes and ladders board game and am struggling with the validation of data, can sum1 explain why this code is not working, it would be greatly appreciated, the frame (6) that the code links to is the error message, wheras the frame (4) is the next frame used in creating the game,. My intention is for the code to check a series of 10 numerical boxes, ensuring that no numbers are the same, and that all boxes are filled out:


on (release) {
if (F1 == F2) {
gotoAndStop(6);

b = 0;
for (i=1; i<=10; i++) {
b = "S"+i;
if (eval(a).value>0) {
b = b+1;
if (b == 10) {
gotoAndStop(4);
}
}
}
}

View Replies !    View Related
Anyone Know Why This Doesn't Work?
Hey,

I have this script on an EXIT button to take the user back to the screen they came from. This code worked in other parts of my site, but this one doesn't seem to want to work.

code: on (release) {
switch (ezview) {
case 2: // Tools_EZView_MainMenu
_root.Tools_EZView.gotoAndStop("EZVIEW-MAIN MENU");
break;

case 0: // Null
_root.gotoAndStop("MAIN SCREEN");
break;

}
}

Could it be that I don't have CASE 2 pointing to the correct place? It's a MC on the main timeline.

I also have the following on the frame this is coming from:

code: ezview = 2; // Tools_EZView_MainMenu

Thanks!!

Jeff

View Replies !    View Related
Should Work, But Doesn't...
Hey guys, this is very weird.
I have three movies, loaded in the following order:

main.swf (level 0)
curtain.swf (level 2)
home.swf (level 1)

Main is the main movie, like an empty stage with just all the things that always be there while thee use will be in the site.

The curtain.swf have a movie clip called (and instantiated) as mcCurtain. It's like a curtain that will be closed while home.swf is loading. When it is loaded, the curtain should open. To open it, I put in the very first frame of home.swf:

_level2._root.mcCurtain.gotoAndPlay("openit");

But Flash ignores the command.

I could stay making some mistake on my path, then I made the following test, in the same very first frame:

trace(_level2._root.mcCurtain._visible);

Then I received a "true" response, that is, the path is correct. But why it doesnt goes to the frame I want???

Thanks!

View Replies !    View Related
Why Doesn't This Work?
I've been staring at this for too long. Take a look at the file, I'm using MX2004 Pro. This is a portfolio website. When you click on the 'design' page, a sub navigation opens. If you click on any of the sub navigation buttons, everything works properly. But, if you go back to the main navigation buttons, you got trouble. If you're on the 'print page, and you click the 'about' page in the main navigation, the page displays properly. This is the only time it works right. If you're on the 'interaction', or 'motion' page and you click the 'about' page, it doesn't work properly (don't bother with the 'music' or contact' page, they're not done yet). I don't see a difference with the code I used for each page, so what's wrong? Any insight would be greatly appreciated. Thanks.

-tommy

View Replies !    View Related
Why Doesn't This Work?
Hi, thanks for taking the time,
I attached the .fla to make it easier for you to follow my bizarre train of thoughts...
If you roll over "mc" (see attached .fla) it should actually jump to its frame 2, which doesn't quite happen in practice. Any ideas? Thanks for you help!

View Replies !    View Related
Why Doesn't This Work?
I'm trying to move a MC with ActionScript. I can get it to work if I assign a variable to setInterval, and then use the variable name inside of the parenthesis for clearInterval. Does clearInterval have to work with a variable, or can I just refer to the name of a function?

Thanks!


Code:
onClipEvent (enterFrame) {
function move()
{
if (_x<400)
{
_x += 1;
}
else
{
clearInterval(move);
}
}
setInterval(move, 5);
}

View Replies !    View Related
Why Doesn't This Work?
I have tried and tried and tried but to no avail!!

It is a teaching program for young kids and when you click 'GET CALCULATION' it returns a random number of counters in each square. They are random frames in a movie clip.
The movie clip then returns a value to a dynamic text box displaying the number of counters on screen.
The child must add two sets of counters together and input the answer into an input txt box called (num5).
I want the script to work as
if (num5 = num1+num2) do something.
If it doesn't equal that then do something else.
The script that I have done is in the file I have attached - it's probably explained better if you have a play around with it!

When I click check it doesn't do the right thing!!
PLEASE HELP - IT'S DRIVING ME NUTS!!
Chris

View Replies !    View Related
Why Does One Work And One Doesn't?
Ok, I'm confused (What else is new?).
I made a simple movie clip called a. a contains another movie clip called b (instance name also b). I set a to export for actionscript, using the class a. Here is my code:


Code:
class a extends MovieClip{
public function a(){
trace(this.b._x);
}
}
It produces an error because b is unknown. Ok, so I decide to add a new MovieClip object that points to a:


Code:
class a extends MovieClip{
public function a(){
var mc:MovieClip = this;
trace(mc.b._x);
}
}
This WORKS. Can someone explain why these aren't the same thing? Is it necessary to do something like this to access the movieclip assets of a class? Or am I missing something? THANKS!

View Replies !    View Related
Can Someone Tell Me Why This Doesn't Work?
OK, I have Flash MX and the book I have "ActionScript for Flash MX" says this code should work, why doesn't it is the question? This is the code on a movie clip:


Code:
onClipEvent(load) {

this.onRollOver = doCommand();
}
and the function is defined on main timeline (_root) in Frame 1 as follows:


Code:
function doCommand() { trace("hi"); }
furthermore, why do I even need the "onClipEvent" code? the way the book suggests is that I should only need to say "this.onRollOver = doCommand();" on the movie clip, but I get an error if I don't put it within the "onClipEvent"??? anybody?

View Replies !    View Related
Why Doesn't This Work?
can someone tell me why this doesn't work when it seems like it should:


Code:
var holder = stringInstance + ".loaded";
if(holder){
// do something here
}


or alternatively:


Code:
if(stringInstance + ".loaded"){
// do something here
}


the XML file is loaded and I have verified that prior to this command!!!!

View Replies !    View Related
Why Doesn't This Work?
all I want to do is loop through the different transition classes that are packaged with flash for my own reference. It works fine if I don't do the array or the button and I tell it to start. Everything traces fine. Really, it just won't play if I have TransitionManger.start(myArray[0]); <==this doesn't even work. What am I overlooking.



Code:
import mx.transitions.easing.*;
import mx.transitions.*;

var Next:Number = 0;

var myArray:Array = new Array;
myArray[0] = "mrO, {type:PixelDissolve, direction:Transition.OUT, duration:2, easing:None.easeNone, xSections:20, ySections:20}"
myArray[1] = "mrO, {type:Wipe, direction:Transition.OUT, duration:2, easing:None.easeNone, xSections:20, ySections:20}"

btn.onRelease = function(){
trace("next= "+Next);
TransitionManager.start(myArray[Next]);
Next++;

if(Next>=myArray.length){
Next = 0;
trace("reset Next");
}
}

View Replies !    View Related
Doesn't Work In Ie6
Hi,

I've written a very simple scipt in AS3 that shows a slider. It works in IE7, but in IE6 it just flashes without showing the slider.

Is there something I should eb adding to make it function in IE6.

Here's the AS3 code:


import fl.controls.Slider;
import fl.events.SliderEvent;
import fl.controls.Label;
import flash.external.ExternalInterface;

aSlider.addEventListener(SliderEvent.THUMB_RELEASE , changeHandler);

function changeHandler(event:SliderEvent):void {

if (ExternalInterface.available){
ExternalInterface.call('SetSliderValue', event.value);
}//else trace an error or something so you know what went wrong.



}



And below is the html code it sit in...

Any thoughts?

thanks


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<!-- Sawtooth Software Web Interviewing System - SSI Web 6_4_2 -->
<!-- Copyright Sawtooth Software, Inc. 1998-2008 - www.sawtoothsoftware.com - USA - (360) 681-2300 -->



<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

<title></title>

<style type="text/css">
body{font-family: arial;}

</style>
<!--User Header Content-->

<script src="/survey/slider/graphics/AC_RunActiveContent.js" type="text/javascript"></script>

<script language="JavaScript">
<!--

var intSliderValue = 0;

function SetSliderValue(intValue)
{
intSliderValue = intValue;
}

//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
//These functions gets called when the user clicks "Submit"
function SSI_CustomJScriptShell_slide(){
var bln_custom_result = false;
document.mainform["slide_answer"].value = intSliderValue;

bln_custom_result = true;

return bln_custom_result; //You must set this value in your code to "true" or "false"

}

//-->
</script>

<!--End User Header Content -->
</head>
<body bgcolor="#FFFFFF" text="#000080">

<div class="main">
<form name="mainform" onSubmit="SSI_subSubmitMe(); return false;" method="post" action="ciwweb.pl?408578757071">
<input type="hidden" name="hid_backup" value="slid,c,734096,2,1">
<input type="hidden" name="hid_studyname" value="slid">
<input type="hidden" name="hid_respnum" value="c,734096">
<input type="hidden" name="hid_pagenum" value="2">
<input type="hidden" name="hid_javascript" value="0">
<div class="global_header"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td align="right">
<font size="2" face="arial"><img src="/survey/slider/graphics/Incite logo JPEG.JPG" alt="" border="0"><a href="http://www.incite.ws"></font></td></tr></table>
</div><br><div class="free_format">
<div class="question" id="slide">
<table class="outer_table" cellspacing="0" cellpadding="3" width="100%" border="0">
<tr><td align="left"><div class="header1"><font size="3" face="arial">What balance should large companies strike between.....<br><br></font></div>
</td></tr><tr><td align="left"><div class="header2"><font size="2" face="arial">

<table border="0" cellpadding="0" cellspacing="0" width=1000>
<tr>
<td WIDTH="100" > &nbsp;</td>
<th WIDTH="225" VALIGN="BOTTOM"> Focusing solely on providing the highest possible returns to investors while obeying all laws and regulations</td>
<td WIDTH="165">&nbsp;</td>
<TH VALIGN="BOTTOM" WIDTH="50"> Equal Balance</td>
<td WIDTH="185"> &nbsp; </td>
<TH VALIGN="BOTTOM" WIDTH="225">Providing high returns to investors while making contributions to the public good beyond any legal or regulatory requirements (eg reducing pollution more than required, providing better healthcare and other benefits to workers than required, making charitable donations)</td>
<td WIDTH="50"> &nbsp; </td>
</tr>
</table>
</font></div>
</td></tr><tr><td>
<div class="question_body">
<table class="inner_table" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td>
<div class="question_text">
<font face="arial">



<!-- Begin custom HTML for slide Free Format Question -->
<input name="slide_answer" type="hidden" value="3">




<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1000" height="100" id="slider1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />

<!-- Change HERE -->
<param name="movie" value="/survey/slider/graphics/slider1.swf" />

<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />

<!-- Change HERE -->
<embed src="/survey/slider/graphics/slider1.swf" quality="high" bgcolor="#ffffff" width="1000" height="100" name="slider1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

<!-- End custom HTML for slide Free Format Question -->

</font>

</div></td></tr>
</table></div>
</td></tr>
</table></div></div>

<input type="hidden" name="hid_q_slide" value="slide">


<script language="JavaScript1.2" type="text/JavaScript">
<!--
var blnSubmitClicked = false;
function SSI_subSubmitMe(){
if (blnSubmitClicked){
alert("Please wait while your responses are being processed.");}
else if(SSI_subVerify() == true){
window.document.mainform.hid_javascript.value = 1;
document.mainform.submit();
blnSubmitClicked = true;}}


function SSI_subVerify(){
if(SSI_CustomJScriptShell_slide()== false){ return false;}
else { return true; }}


//-->
</script>
<br>
<div id="submit_button">
<input type="submit" value=" Next " >
</div>
<br><div class="global_footer"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td align="left">
<font size="1" face="arial"><center>The bar above shows what % of the survey you have completed.</center>
<br>
<center>You can stop the survey at any point, log off and your answers will be saved so that when you log back on, the survey will begin where you left off<br>If you have any problems completing this survey please email <ahref="mailto:enquiries@valuedopinions.co.uk">enq uiries@valuedopinions.co.uk</a></td><br></font> </center></font></td></tr></table>
</div></form>
</div>
</body>
</html>

View Replies !    View Related
FLV Url Doesn't Work When It Should
Hi guys,

A similar post was put in the components section a few months ago, but wasn't answered. I have a movie which loads in FLV locations from an XML file. When a user clicks, the media player component setMedia() property is set to the location selected.

i.e. moviePlayer.setMedia(location, type);

When this location is hard-coded, instead of being sourced from the XML, is works fine.

i.e. moviePlayer.setMedia("http://mylocation.flv", "FLV");

However, as soon as I pass the location from the XML, it breaks.

i.e. moviePlayer.setMedia(myLocationVar, "FLV");

I've traced the location variable being passed, and it is passing the URL correctly, it just seems that the media player component doesn't understand it. Is there a reason why this is happening?

Any suggestions greatly appreciated!

View Replies !    View Related
Why Doesn't This Work?
I'm trying to dynamically create a movie loader so i don't have to repeat this function a bunch of times, but it doesn't want to except the "loadSpace" var and only works when I statically set it.


Code:
function tweenMoviesOut(easeType,theMovie,loadSpace) {
intro_navTween = new mx.transitions.Tween(mc_intro, "_x", easeType, intro_end, intro_begin, time, true);
trace("tweenMoviesOut function");
intro_navTween.onMotionFinished = function() {

_root.createEmptyMovieClip(loadSpace,layerDepth);
loadSpace._x = 150;
loadSpace._y = 5;

_root.loadSpace.loadMovie(theMovie);
layerDepth++
}
}
What i'm passing in:

Code:
tweenMoviesOut(mx.transitions.easing.Regular.easeIn,"team.swf","loader_team");
but it only seems to work if i statically set

Code:
_root.createEmptyMovieClip("loader_team",layerDepth);
Am there something wrong with me or does this just not work?

Thanks!

View Replies !    View Related
Swf Doesn't Work
Hi,

I have a project with a web service and when I test it in flash, everything works fine. But when I export it, even simples things like attach movies, doesn't work,
not even if I export it to html. Why?

Thanks.

View Replies !    View Related
WHY Doesn't THIS Work?
Hey guys, I am working in a Class file and can ANYONE PLEASE tell me why this works:

_level0[thumbMovieClip]._alpha = 50

or this works:

_level0[thumbMovieClip]._x = 100

AND WHY THIS DOES NOT:

_level0[thumbMovieClip].onRelease = function(){
trace('HIT')
}

thanks, Dvl

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