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








Test Movie Works But .swf Starts On Second Scene


This is driving me nuts. When I test the movie from within Flash it works as expected. When I double click on just the .swf file it starts on the second scene of the movie. It's totally skipping the first scene where all the variables are initialized. Any ideas without seeing the .fla file? If anyone is willing to help me out I'll post the file on my web site. http://studiokay.com/flash
K




FlashKit > Flash Help > Flash ActionScript
Posted on: 08-05-2003, 12:07 PM


View Complete Forum Thread with Replies

Sponsored Links:

KeyListener Works In Test Scene But Not In Actual SWF
Hello.

This code works well in the first frame of my movie/scene
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.SPACE)) {
_root.stop();
}
};

keyListener.onKeyDown = function() {
if (Key.isDown(Key.ENTER)) {
_root.play();
}
};

When I test the scene, the ENTER key stops and starts as planned.

The problem I'm running into is opening the SWF. The ENTER key doesn't function as it did when testing the scene in flash.

Appreciate any and help help/suggestions to what the problem/fix may be.

View Replies !    View Related
(Authoring Mode-test Scene-test Movie )Different Results WHY?
(Authoring mode-test scene-test movie )Different results WHY?I will get mad working on a quiz for a month plz help: im working on quiz game -frame by frame- its 15 scenes each scene contain about 70 frames with 70 action script :go to and stop - go to and play - stop every thing is fine till scene No. 11 in the authoring mode when choose from control menue enable simple buttons - enable simple frame action : its working fine scripts executed fine but when going to test movie mode some scripts doesnt work WHY? what mistakes i have done? what should i do ? how can a void such a problem ? any suggestions PLZ??? Thanks in advanced

View Replies !    View Related
Buttons Work In Test Scene But Not In Test Movie...WHY?
Hi all,
I have buttons in a movieclip i've used
_root.
and the buttons work when i do test scene but when i try and test movie the buttons link back to the wrong screen. why is this? There is no apparent reason as the scripting seems fine.

View Replies !    View Related
Test Scene Vs. Test Movie
Whenever I have done work in flash, these two commands have always worked the same. However, this one time, I test scene and the thing works exactly as I would like it to. When I test movie, one of my movie clips doesn't show. I can not find any problems in the code, and the layers all seem right, does anyone know of a difference between these so that I can look for a different problem? I have been racking my brain and the brains of others for about a week now on this. Thank you for any help.

Steve

View Replies !    View Related
Test Scene Vs. Test Movie
I have Scene 1 as a loader, and Scene 2 as my movie...

when I "test scene" for Scene 2 the quality looks great!

but when I "test movie", my Scene 2 movie looks like crap!

Anyone know why!? I went to "publish settings" and put all my settings at highest quality possible. jpg's are at 100, and flash settings are all at 100 and best quality.

They are imported jpg's by the way. And look great until I export or even preview as a flash movie. (????)

Thanks.

View Replies !    View Related
Test Scene Different Than Test Movie
I am doing a picture page in flash and for some reason it works when I do test scene, but it doesn't work when I do test movie. Does anybody know why this is happening.

View Replies !    View Related
Test Movie Works, But...
I am able to Test Movie in Flash, but I am not able to Preview HTML; i just the background color of the Scene in the browser. Code is attached.







Attach Code

<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>travelin' home</title>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 45;
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<body bgcolor="#666666">
<!--url's used in the movie-->

<!--text used in the movie-->
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
'width', '100%',
'height', '100%',
'src', 'travelin' home',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'travelin' home',
'bgcolor', '#666666',
'name', 'travelin' home',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'travelin' home',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
</noscript>
</body>
</html>

View Replies !    View Related
SWF Works Only On Test Movie
Hi just wanna ask does anybody know why is that when I use "test movie" in flash everything works out, my buttons are functioning as it should and it loads ext.swfs as it should. Smooth transition works for every section.

button 1 - loads external swf - 1
button 2- loads external swf - 2
button 3- loads external swf - 3

But when I publish it on HTML or even click the main SWF file (main.swf)

This is what happens.

When I click button # 2 and click on 1 or 3 afterwards it still loads button 2's external swf-2

But how come it works on flash's TEST MOVIE?

View Replies !    View Related
Works In Test Movie But Not In Bowser
hi everyone,

i've got a site that i'm using to develop my flash skills:
http://www.geocities.com/caferacercanada

i can e-mail you the fla if it helps.

anyway, the problem is that a button/movie clip that i am using to zoom _parent movie clips (photos) only works within flash's test-movie area - not in a browser, even after i have updated the flash player to 5.0.42.0.

here's the hierarchy:

button>zoom movie>movie being zoomed>content movie>root

defined in the zoom movie, the button has an over state that changes the scaling of the movie being zoomed.

any help would be greatly appreciated.

thanks,
mark

View Replies !    View Related
Works On Test Movie But Not On Projector Or Swf
It's really strange.. and I can't figure it out. Been pulling my hair out.

Check it out.

- unzip net.zip into ur Flash Custom Classes directory.
- unzip soundtest.zip. soundtest.fla is a flash mx 2004 doc

Thanks!

View Replies !    View Related
[F8] Test Movie Works But Won't In Dreamweaver
I purchased a scrolling photo banner template from OhMyFlash.

I replaced their sample photos with mine.
I made no changes to the script. The "test movie" works in Flash.

I put the the image files, .fla, .swf and html files in my root folder in Dreamweaver.

I inserted the swf file into a cell on a webpage. The swf file will not play.

You can see that my other flash project for this same website works:
http://www.funkyjiva.com/ and then it redirects to another page where you can see the border of the gray template but no scrolling photos.

I have scoured my textbooks for help but I can't find what is going wrong.

Any tips to help me find a solution?

View Replies !    View Related
Works On Test Movie But Not In Browser?
Hi,
I am making a site that loads external .swf into my main site. One of the files has a background of photos fading in and out and then text in the middle with scrolling. This works fine when I test this movie. However when I preview in browser and the .swf loads through my main movie the text scrolling will not work at all? Any ideas, I can't think what I'm doing wrong any help would be appreciated. If you need the .fla let me know. Thank you.

View Replies !    View Related
Test Movie In Flash Works But Not In IE
When I test the movie in flash it works fine... when I upload and test in IE nothing happens... see Url below... it should go to home.html

http://www.gumshoestudio.com/

getURL("home.html", "_self");

Please help! thanks in advance

View Replies !    View Related
Test Movie In Flash Works But Not In IE
When I test the movie in flash it works fine... when I upload and test in IE nothing happens... see Url below... it should go to home.html

http://www.gumshoestudio.com/

navigateToURL(new URLRequest("home.html"));

Please help! thanks in advance

View Replies !    View Related
Test Movie Works But Not In Browser?
Hello, I have a fla with 1 frame, and 1 mc (named logo) on it ...

The movie works when I test it in the flash IDE, but when I try it from the server it just sits there doing nothing, all the neccessary files are uploaded but I get nothing when I view it.

http://kirchdesign.ismywebsite.com/WD/configText.html

any ideas ??

[edit] Actually it works in IE, but not firefox any ideas now? [/edit]

View Replies !    View Related
Test Movie Works, BUT Swf Wont Play?
Hi Guys and girls.

I'm having a problem getting my swf file to show my action script.
I have nothing on the stage, everything is being displayed using actionscript.

When I test the movie everything works fine. However, when I open the swf file its blank?

here is the website:
www.spirestest.com (it will be blank)

I have set the linkage for all of my movie clips.

Here is the code:

Code:
import mx.utils.Delegate;

var numOfItems:Number;
var radiusX:Number = 165;
var radiusY:Number = 50;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.05;
var prespective:Number = 110;
var home:MovieClip = this;

var tooltip:MovieClip = this.attachMovie("tooltip", "tooltip", 10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for (var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item_MC","item_MC"+i, i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}

function over()
{
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
homemtooltip._alpha = 0;
}

function out()
{
delete home.tooltip.onEnterFrame
home.tooltip._alpha = 0;
}

function released()
{

getURL(this._parent.toolText,"_self");
}

function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - prespective) / (centerY+radiusY-prespective);
this._xscale = this._yscale = s * 100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/2500;
}

Thanks for any help.
:-)

View Replies !    View Related
Procedure Only Works Test Movie Mode
Hello;

I have this procedure which executes fine in test mode, but when I publish it does not play. No errors are generated, just does not play.

Can someone help me.

import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.events.Event;

var myLoader:Loader = new Loader();
var myUrlReq:URLRequest = new URLRequest("Prius.swf");
myLoader.load(myUrlReq);
myLoader.contentLoaderInfo.addEventListener(Event. COMPLETE, onLoaded);

function onLoaded(event:Event):void
{

holder_mc.x = 0;
holder_mc.y = 120;
holder_mc.addChild(myLoader.content);
play();
}

View Replies !    View Related
On(Press) Works In Test Movie, Not On Site
As the title states. I assigned this code to a button:

ActionScript Code:
on(press) {
getURL("myurlhere", "_self");
}
and it works (opens the URL) when I test the movie, if I run it on my computer it works, but as soon as I put it on the server, it doesn't work. You click, and nothing happens.

Any idea why this might be???

View Replies !    View Related
Works On Test Movie, Does Not On Publish Preview
An audio player reading an audio stream (http://212.72.165.26:9386).
Control -> test movie: works fine.
Publish Preview -> HTML: no chance. Buttons work, but stream does not.
Publish and upload to website: same, buttons work, stream does not.
Any idea what I forgot?
Code attached.







Attach Code

// PREPARE THE PLAYER
txtsmall.backgroundColor = "000000";
datascreen.backgroundColor = "000000";
imgsrcmc.backgroundColor = "000000";
// LOAD THE TEST SOUND (ASTURIAS) AS A STREAM
var my_sound:Sound = new Sound();
my_sound.loadSound("http://www.tinmandownloads.com/Artists/JRCH0001/asturias.mp3", true);
my_sound.onLoad = function(success:Boolean) {
var totalSeconds:Number = this.duration/1000;
var minutes:Number = Math.floor(totalSeconds/60);
var seconds = Math.floor(totalSeconds)%60;
if (seconds<10) {
seconds = "0"+seconds;
}
// DISPLAY TOTAL DURATION.
if totalSeconds > 0
txtsmall.text = minutes+":"+seconds;
};

actbtnplay.onRelease = function() {
txtsmall.text = "PLAY";
//my_sound.loadSound("http://212.72.165.26:9386", true);
//my_sound.loadSound("http://www.skytargets.com/asturias.mp3", true);
my_sound.start();
}
actbtnstop.onRelease = function() {
txtsmall.text = "STOP";
my_sound.stop();
}
my_sound.onID3 = function():Void
{
datascreen.text = "Artist: " + my_sound.id3.artist + "
";
datascreen.text += "Title: " + my_sound.id3.TIT2 + "
";
datascreen.text += "Album: " + my_sound.id3.TALB + "
";
datascreen.text += "Track: " + my_sound.id3.TRCK + "
";
datascreen.text += "Length: " + my_sound.id3.TLEN + "
";
datascreen.text += "Link: " + my_sound.id3.WXXX + "
";
var my_url = "http://www.tinmandownloads.com/mypage.php?A=" + my_sound.id3.WXXX;
//getURL(my_url,"_blank");
trace ("URL: " + my_url);
//getURL(my_url, imgsrcmc);
//for( var prop in my_sound.id3 ){
// trace( prop + " : "+ my_sound.id3[prop] );
// }
};
seltestbut.onRelease = function() {
datascreen.text = "Waiting Data...";
my_sound.loadSound("http://www.tinmandownloads.com/Artists/JRCH0001/asturias.mp3", true);
txtsmall.text = "Test";
my_sound.start();
}
selnetbut.onRelease = function() {
datascreen.text = "Waiting Data...";
my_sound.loadSound("http://212.72.165.26:9386", true);
txtsmall.text = "TinMan Net Radio";
my_sound.start();
}
volume_mc.top = volume_mc._y;
volume_mc.bottom = volume_mc._y;
volume_mc.left = volume_mc._x;
volume_mc.right = volume_mc._x + 80;
volume_mc._x += 80;
volume_mc.handle_btn.onPress = function() {
startDrag(this._parent, false, this._parent.left, this._parent.top, this._parent.right, this._parent.bottom);
};
volume_mc.handle_btn.onRelease = function() {
stopDrag();
var level:Number = Math.ceil(this._parent._x - this._parent.left);
acttextsmall.text = level * 100 / 80;
my_sound.setVolume(level);
};
volume_mc.handle_btn.onReleaseOutside = slider_mc.handle_btn.onRelease;

View Replies !    View Related
Movie Works For Test, Doesn't Work When Published...
hi,

when i test my movie in flash it works perfectly, it even connects to a webpage from within the test page... but when i publish it and click the link from the web browser, it says the file is not foundon the server, but i uploaded it at the same time as my other file... any suggestions??

View Replies !    View Related
Test Movie Works Well, Html Previews Not Working
Sorry I fix that now .
Thanks
[Edited by rukpong on 08-23-2002 at 10:18 AM]

View Replies !    View Related
Works In Test Move But Not In Exported Movie Question
Hello,

Trying to randomly display an animated logo. My code worke in the test movie environment but doesn't display properly when exported to SWF file.

Any suggestions?

Regards,
Wayno

View Replies !    View Related
Send Data Via PHP: Works When I Test Movie, Not When I Publish
This may have been covered already, if so my apologies -- I'm not sure what to search on.

I have a FLA file designed to create a text file and send the values of some variables to that file via a PHP file. It works great when I do a Test Movie (CTRL+Enter) but when I publish the movie and try it from a browser, nothing happens.

Actually, the first time I tried it in IE I got that familiar "Adobe player has stopped a potentially unsafe operation" dialog that provides a link go change my Flash Player Global Security settings -- but my settings are already set to "Always Allow."

Also, if it makes a difference, I have set Publish Settings/Flash tab/Local playback security: to "Access network only."

I'm a complete newbie to this PHP stuff and to security etc., and I assume this has to do with security?

I installed WAMPSERVER 2.0 and have it running. Here's the meat and potatoes of my FLA file, which gets the values for the variables via input fields:


PHP Code:



var fileFormat:String = ".txt";var req:URLRequest = new URLRequest("http://localhost/sephiroth/save2.php");req.method = URLRequestMethod.POST;var postVars:URLVariables = new URLVariables();var loader:URLLoader = new URLLoader();loader.dataFormat = URLLoaderDataFormat.VARIABLES;postVars.fName = "_" + firstNameField.text + " " + lastNameField.text;postVars.fFormat = fileFormat;postVars.fText = lastNameField.text + " "         + firstNameField.text + " score = "         + Number(scoreField.text) + ": "         + passFail;req.data = postVars;loader.addEventListener(Event.COMPLETE, done);loader.load(req);function done(event:Event):void {     //some code here...} 




That's an abbreviated code block, BTW -- if it looks like something's missing, that's because I left some stuff out for all y'all's sake.

Here's save2.php:


PHP Code:



<?php   $fileName = $_POST['fName'].$_POST['fFormat'];   $fileText = $_POST['fText'];    $file = fopen($fileName, "a+");   fwrite($file, $fileText);    fclose($file);?>




Again, everything works exactly as I want it to when I do a CTRL+Enter but not when published in a browser.

Would appreciate any help -- I assume this is probably a no-brainer for lots of folks out there.

View Replies !    View Related
[CS3] Lag During Test Movie/Scene
When I go to test a movie or a scene, there's a huge lag and it takes a long time for the animation to load. I don't think it's my computer since it has 3 gigs of RAM, but when I run the movie at my computer at work (which has less than a gig of RAM) it plays smoothly. Is there a way I can optimize my flash file settings so that the movie, when tested, runs smoothly on my computer?

View Replies !    View Related
Seek Bar In FLV Custom UI Component Starts At The Wrong Position When Movie Starts Playing
Hi All,
I am doing this presentation by loading some FLV files to a SWF file. I am using a Custom Skin for the FLV. The problem is when i click on a link and load another FLV file, the seek button in the progress bar starts at the wrong place. This happens to each and every FLV component i load. Is there any way that i can reset the seek bar to start from the intial position when the FLV file start playing.....??

This is the code which i use to load the FLV.....Pls help.....
Thanks in advance....









Attach Code

on (release) {
my_FLVPlybk.play();
my_FLVPlybk.contentPath = "flv1.flv";
}

View Replies !    View Related
Seek Bar In FLV Custom UI Component Starts At The Wrong Position When Movie Starts Playing
Hi All,
I am doing this presentation by loading some FLV files to a SWF file. I am using a Custom Skin for the FLV. The problem is when i click on a link and load another FLV file, the seek button in the progress bar starts at the wrong place. This happens to each and every FLV component i load. Is there any way that i can reset the seek bar to start from the intial position when the FLV file start playing.....??

This is the code which i use to load the FLV.....Pls help.....
Thanks in advance....









Attach Code

on (release) {
my_FLVPlybk.play();
my_FLVPlybk.contentPath = "flv1.flv";
}

View Replies !    View Related
Scroll Bar Working In Test Scene But Not In The Movie
My scroll bar works in test scene but not test movie, what do I need to type to get the actionscript to work. The scroll bar is not on the main timeline.

This is the code I'm using:

y = getProperty("_root.text.content", _y);
if (y<-2000) {
gotoAndPlay(4);
} else {
setProperty("_root.text.content", _y, y-6);
}


Thanks

View Replies !    View Related
Swf File Plays During Scene Test But Not Entire Movie
If I test the scene, the .swf file will play and continue on. But if I test the entire movie, it stops playing at the beginning of that certain .swf file. Could someone give me a simple fix? Thanks

View Replies !    View Related
Never Happened Before. Works In Scene But Not In Movie?
hey,

i have a flash movie. the first scene is a preloader. in the third scene is dynamic text box named "descrip". my preloader is a 2 frame loop with a movie clip that acts as a preloader bar. the AS in the second frame of the timeline is this


Code:
if (_root.getBytesLoaded() != _root.getBytesTotal() ) {
gotoAndPlay (1);
}
in the preloader bar is this code, it is also a 2 frame loop

Code:
setProperty (this, _xscale, (_root.getBytesLoaded()/_root.getBytesTotal())*100);
now if i test my movie, the dynamic text will not work. i didnt have this problem until i added the preloader into my movie, so i deleted the scene with the preloader and it works. is there something in this preloader AS that would effect me putting text into a dynamic text box?

View Replies !    View Related
Scene Works But Movie Doesnt?
If its not all to obvious I am completely new here and to flash..having sucessfully finally (i think) completing my first scene I have tested and retested and it works fine.. then I went to publish preview to test the "Movie" and it wont play properly.. and I havent the foggiest clue where to begin to find out why or how to fix that. Can anyone give me a starting point on where to begin? TIA

View Replies !    View Related
Mask Works In Movie Clip, Not In Scene
I've created a movie clip with a mask that I'm using in a main scene. The mask looks fine while editing/working the movie clip, but does not show up in the scene.

The really strange thing is that it was working, but suddenly now it won't show up in the scene any longer. I've tried replacing it, making a new layer and bringing it in again. But nothing works.

Does anyone have an idea of why this would be?

Any help GREATLY appreciated!

dm

View Replies !    View Related
"Test Scene" Acting Differnet Than "Test Movie"
I am trying to build a cartoon. I am going through allot of pain staking measures to sync up stuff. It is behaving (mouths and sounds) different in Test Scene, than Test Movie. I am using 20 fps. Is that a good idea?

I am issing something major? This is making me nutz.

Any ideas?

Thanks,

: grey :

View Replies !    View Related
Website Works When "Test Movie", But Not When Clicking SWF Or Viewing In HTML
Hello,

I have a strange problem with my website: When I hit Test Movie or Test Project inside Flash 8, the site runs perfectly and loads variables from a php file on a remote website. When I then double click on the SWF on my harddrive, all the dynamic text fields i am loading to show up as "undefined". Same thing happens when I put the site on my website, and view it embedded in HTML.

I have absolute URLs to the php location:

myThing.load("http://my.site.com/get.php?blah=3");

Any ideas why it works perfectly when i test it in flash, yet doesn't work any other way?

Thanks!
-Witek

View Replies !    View Related
On Stage Pressin Button..works, Test Movie, Press Button Dosent Work
i really need some help on that, it's really annoying me, on the stage i enable simple button and simple frame actions, then i click and it goes to the specified frame, but when i go and test the movie and click on the button, it just sits there, i've tried everything, any ideas?

View Replies !    View Related
LoadVariablesNum - Works In "test Movie" But Not In Browser
I'm trying to send some variables to an ASP script and to a PHP script. This is in Flash 5.

here's my code:

loadVariablesNum ("http://www.mcssl.com/app/join.asp?id=form1&Home=www.stems.com&DefaultMailin gAR=24402&MailingThankyouURL=www.cartville.com/app/thankyou.asp?ID=32099&MerchantID=32099&clientip=12 8.104.51.47&submit=Subscribe&email1=unral@yahoo.co m&name1=andrewjt", 0, "POST");

loadVariablesNum ("http://www.newleafsystems.com/mailer.php?total="+_root.total+"&winner="+_root.wi nner+"&email="+_root.email+"&name1="+_root.name1, 0, "POST");

View Replies !    View Related
Mask Works On Stage But Not When I "test Movie"
i created some text on a layer. changed the layer to a mask. added a few images below the mask layer. added some animations above the mask. the mask works properly on the stage when the layers are locked. the problem is that when i test the movie, the animation runs without the effect of the mask. any ideas?

View Replies !    View Related
Works In "Test Movie" But Not In Local HTML
I posted this in the thread of a previous post but wanted to reintroduce it in hopes of getting a fresh look at it.

I have a strange oddity occurring. Does anyone know why something would work when I "Test Movie" from within Flash, but when I publish the same movie and view it through a local HTML file I have set up with the movie in it, it wouldn't work? It has something to do with how I am accessing the main timeline from a loaded SWF. I have a nested MC that I have loaded a SWF into. I can communicate to the timeline of the loaded SWF fine, but was having some difficulty communicating to the main timeline from the loaded SWF. This code works in the "Test Movie" environment, but not when I export the movie and refresh the HTML.

Here is my code, placed on the last frame of the loaded SWF, which reads a variable from the main timeline that identifies a frame label, then the attempted call to go to that frame label:


ActionScript Code:
var somecopyload:String = MovieClip(parent.parent.parent.parent.parent).copyload;

MovieClip(parent.parent.parent.parent.parent).mcVideo.mcLeftside.gotoAndStop(somecopyload);
MovieClip(parent.parent.parent.parent.parent).mcVideo.gotoAndPlay("leftsideout");

stop();

mcVideo is an MC on the main timeline. When the loaded SWF finishes playing,

All of the files SWF files and the HTML file are in the same directory. This works when I test it from within Flash, but when I publish it and view it through my local HTML file, it doesn't perform the action. Any thoughts? Do I need to provide more info?

View Replies !    View Related
Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
I have a website at wosso.com which I needed a preloader. So currently the site works fine. I am toying with a preloaded, but when I add it the main part of the site does not function.

There are two scenes, PRELOADER and SCENE 1. My preloader includes this script in the first frame of the preloader: ifFrameLoaded ("Scene 1", 105){
gotoAndPlay ("Scene 1", 1);
}


I have also inluded this line at the end of the preloader, but also tried it without this line:

gotoAndPlay ("Preload", 1);

I haven't used Flash in some time and I am not good at scripting. It seems to make sense, but why is it not working when SCnene 1 works fine by itself.
Any sulotion/suggestions?

Thanks,

Wayne

View Replies !    View Related
Swf Works In Test But Not On Web
I have created a swf navigation movie. Saved and published it. Inserted swf into dwt Dreamweaver and created index page from template. Tested html with swf and navigation works great in test (local machine). FTP swf & html files to server. Basic information shows in web, but swf does not show up. Any ideas what I am missing?

Thanks

View Replies !    View Related
Fla Test Works But Not SWF
The bundled sample "first app" in the componentsapplication folder of components that comes with the Studio 8 installation CD populates the cart using the products.xml file when I use "test" from the drop-down menu within the Flash 8 authoring window,

However, when I export the fla to a SWF (flash player 8 checked), the cart is not populated with the listings from the products.xml file and is blank.

The component uses a relative reference for the URL "products.xml" which is in the same folder as the .fla and exported SWF file.

However, if I use an absolute reference for the products.xml file, the problem persists.

There is no reason to post any code because I am using the exact "first app" sample that came with the [legal copy] installation CD.
Thank you.

View Replies !    View Related
Car Acceleration, Hit Test The Works.
hiya i need an fla with a movie clip. nothing fancy of and object/car/block which can be moved like car using the arrow keys. and also a hit test block.

It can be very basic i can edit the fla to suit my needs.

Ive searched for hour and found many half working, swf only and dead links with car/accelration posts.

Please anyone! HELP!

cheers

View Replies !    View Related
When The Test Works Better Than The Final...
I am in the process of making my whole site in Flash. Naturally I have a couple scenes to keep things neat, but I ran into a strange problem:

if you go to my test site www.jonathandevine.com/openertest.htm and navigate personal>school, everthing works fine, there is a tiny script in the "school" button to tell it to play the transition sequence, and a small script in the last frame of that sequence to tell it to jump to the next scene; that works fine.

But on the "Art & Articles" button, it does the first part right... moving into the transition sequence, but when it hits the code that tells it to go to the A & A scene, it drops me on my ring image... the first frame of the whole movie, and it stays stuck there.

I am really confused. I know the code has the right scene and frams specified, and when I check it through Test Movie, there are no errors and it goes to the scene it is supposed to.

Any ideas on what the deal is?

View Replies !    View Related
[F8] Swf Test Works, Not In Html
hi,

my flash movie works when tested within flash. the swf works when published and played on the flash player. but the second i embed into html, it doesn't work properly.

i'm using zoomify's component and that calls on an xml file to do all the zooming. for some reason when i bring the swf into dw8, it can't locate the file and says it doesn't exist. but the path is correct. any suggestions?

thx.

View Replies !    View Related
Works In Test, Not In Browser
i have designed a chat application using php and flash and i when i test it inside the flash program (Test Movie) it functions just as it should. however, once i upload it online the app will only load up the text once, and then never refresh. i'm really not sure what's going on, and to be honest i don't regularly use flash. any help would be greatly appreciated. i have included the fla and php files below.

View Replies !    View Related
SetStyle Only Works In Test
Does anybody know why the text styles disappear when I publish a movie. The text is in the button label, and the button is in a movie clip. The text movie preview shows the style just fine.

I load XML data to the buttons which are in a movie clip and move according to the mouse. Flash version 9, actionscript 3.

Some code:

import fl.controls.Button;
import flash.text.TextFormat;

var myTextFormat:TextFormat = new TextFormat();
myTextFormat.font = "Georgia";
myTextFormat.bold = true;
myTextFormat.color = 0xFFFFFF;
myTextFormat.size = 17;
var movie1:mainMc = new mainMc();
var myButton:Button = new Button();
myButton.setStyle("textFormat", myTextFormat);

myButton.label = "some text";

addChild(movie1);
movie1.addChild(myButton);

View Replies !    View Related
Works In Flash Test...Not In IE/FF.
I've been working on a game for a while, and got a good bit of it done. I uploaded it and tested it out today and found that it doesn't work in Internet Explorer or Firefox.

Basically, there is a timer code


Code:
stop();
// Define the length of your timer
min = 0;
sec = 16;
// Define the interval (1000 = 1 Second) and call the countdown function
setInterval (countDown, 1000)
// Define the Countdown function
function countDown() {
sec--;
if (sec < 10) {
sec = "0" + sec; // Adds a 0 to the seconds if it falls below 10 secs
}
if (sec == 0) {
if (min == 0) {
gotoAndPlay(5); // action when the countdown reaches 0
}
sec = 59;
min--;
}
// Display minutes and seconds.
_root.minText.text = min;
_root.secText.text = sec;
}
and when the timer is up, it goes and plays the 5th frame. It works fine in Flash. But on IE and Firefox, the timer text doesn't show up in the correct places and the time isn't static and seems to change every time you retry (Like, instead of being 16 seconds it's only 2, then 5, then 2, then perhaps 16.)

Any ideas why it works in Flash but not after Published and how I could fix this? : Thanks!

View Replies !    View Related
One Scene Works, Next Scene Doesnt
have built a demonstration of a medical aparatus -

first half of demo works great - buttons work, action script works, timeline runs normal
in the second half of the demo - buttons works, action script is the same, but the timelines dont run
when the button is released, they do go to the proper scene but stop on the first frame (or whatever frame is scripted)but still does not run

its as if something is preventing the second half timelines from running

I have checked every symbol, every tween, every script on every scene - everything appears to be correct

ANY suggestions - I would greatly be appreciative

View Replies !    View Related
Game Works In Test Play, But Not As A .swf?
Im a beginner in flash, ive had it for less than a month. When I test play games they work, but when i play the .swf it doesnt work. Im i supposed to export it as a different file or something? Thanks for the help. Later

View Replies !    View Related
Preloader Help..works In Test Mode Only...
ok heres the deal..i made a preloader that works fine when i test the movie in flash but when i play the swf it doesnt work. i also uploaded online to see if it would work, it doesnt work there either. the 1st frame has this code on it:

allBytes=_root.getBytesTotal();
getBytes=_root.getBytesLoaded();
percent=Math.round((getBytes/allBytes)*100);
digits.text=percent
if (Percent==100) {
gotoAndPlay(3);
}

the 2nd line has this code on it:

gotoAndPlay(1);

none of the graphics start until the third frame, please help me
thanks

View Replies !    View Related
Loadmovie Works In Test But Not Online
I'm sure it's probably something simple. The loadmovie funtion works when I test the movie localy but not when I try it online. It does not load. The main and ext. movies are both in the same www directory.
Any ideas?
Here is my script;
loadMovie("whatever_movie.swf", "holder");

View Replies !    View Related
Key Code Works In Test, Not When Viewing Swf....
Hi. I've been working trying to get this onKeyDown code to work, and it works fine in test movie, but if I test the swf from disk, nothing. Any help would be appreciated.


Code:
ritKey = new Object();
ritKey.onKeyDown = function(){
if(Key.isDown(Key.RIGHT)){
this.nextFrame;
}
};
Key.addListener(ritKey);

lftKey = new Object();
lftKey.onKeyDown = function(){
if(Key.isDown(Key.LEFT)){
this.nextFrame;
}
};
Key.addListener(lftKey);

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