What Is Wrong With My Fla File? Help Pls
i have converted this html file to flash click on the link belowhtml versionhttp://www.malikmata.com/ticketmaster_search.htmlflash versionhttp://www.malikmata.com/ticketmaster.htmlfla filehttp://www.malikmata.com/ticketmaster_search.zipmy code Code: var area = area.text;var category = category.getSelectedItem().data;var rdc_select = rdc_select.getSelectItem().data;var submit = "Go";goBtn.onRelease = function (){ getURL("http://www.ticketmaster.com/browse", "_blank", "GET");}; i have attached the fla file .. my problem is that flash version not working the same way as as the html version... can anyone help me out pls thanks.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-10-2007, 09:42 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Is The Help File Wrong, Or Is It Me?
Ok, so I am working through the help files, and am working on "Enhancing the Hello World application", and I keep getting an error message:
"1119: Access of possibly undefined property keyCode through a reference with static type flash.events:Event."
Which is apparently having trouble with the following line of code:
if (event.keyCode == Keyboard.ENTER)
The code is verbatim from the help file. I have checked through and seen that keyCode does exist. Any thoughts?
Attach Code
mainText.border = true;
textIn.border = true;
var myGreeter:Greeter = new Greeter();
mainText.text = myGreeter.sayHello("");
textIn.addEventListener(KeyboardEvent.KEY_UP, keyPressed);
function keyPressed(event:Event):void
{
if (event.keyCode == Keyboard.ENTER)
{
mainText.text = myGreeter.sayHello(textIn.text);
}
}
> What's Wrong With My File?
I followed step by step the tutorial 'simple custom scrollbar' [http://www.kirupa.com/developer/flash8/scrollbar.htm] but my scrollbar simply does not work.
would you please take a look at my .fla file and tell me what I did wrong?
download it here
thanks..
What 's Wrong With My File?
i have converted this html file to flash click on the link below
html version
http://www.malikmata.com/ticketmaster_search.html
flash version
http://www.malikmata.com/ticketmaster.html
fla file
http://www.malikmata.com/ticketmaster_search.zip
my code
Code:
var area = area.text;
var category = category.getSelectedItem().data;
var rdc_select = rdc_select.getSelectItem().data;
var submit = "Go";
goBtn.onRelease = function ()
{
getURL("http://www.ticketmaster.com/browse", "_blank", "GET");
};
i have attached the fla file .. my problem is that flash version not working the same way as as the html version... can anyone help me out pls thanks.
What's Wrong With My Fla File?
Last edited by ha.le : 2005-01-20 at 22:45.
Hello all
http://s14.yousendit.com/d.aspx?id=0...91EACNX2M2MXE6
I am learning the basics of creating a Flash site.
I would highly appreciate if anybody could tell or help me out what's wrong with my fla file?
Thanks in advance for any advice!ha_design@mail.com
What's Wrong In My Code?... (with FLA File)
Hi there,
I uploaded a little flashfile with a problem in it.
If you open it you will see a nevigation. There are 5 buttons.
If you publish the file this should hapen:
- on rollOver the button should change.
- on rollOut the button should change back to it's old shape.
- When you click the button it schould stay in the changed shape.
- When you click another button the activated link should change back and the
new button should change
this works when (for example) click "Home" and then click "Historie"
But it doesn't change smoothly like I planned.
When you clicked "Home" and "Historie" and after this "Home" again you see how it was meant.
Who can help me!...
Please.......
Sorry Wrong File Attached.
Sorry guys i attached the wrong file. That file you see is way too hard for me to understand. The current attached file is the one i am using. Btw i m using M.Flash Professional 2004.
Huge File - Is This Wrong?
I am developing an instructional, flash-based CD-rom - about 8 sections, each with something like 5-10 min. of menus, content, animations, vo and music tracks. To an extent, I don't care about the size because it won't be accessible via the internet .
However, my file size seems enormous (my .fla is ~185mb, main .swf is ~12mb and sectional .swfs (those 8 sections) about 1m each). Publishing takes about 10 min.
I'm hoping someone tells me this is "normal", but I have done all sorts of hunting through forums and online and can't find any info on what might be considered a ridiculously huge file.
Thanks for any quick advice!
Wat Am I Doing Wrong Please Check These File
Hi kings of flash.......
This has being bothering me for the better half of the day and I just cant seem to get it right.......
I'm trieng to do the simple thing of loading external files from a .txt file.... it just doesnt seem to work..... well this is how I have coded it..... Plus there is a link with the txt files,swf and fla...... YEP!!!!! I'm that desperate.....
}
on (release) {
loadText = new LoadVars();
loadText.load("PROFILE1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
www.bluevisionadv.com/new
THNX
DJ Subandrio
(((((((0)))))))
Loading Text File.What Am I Doing Wrong?
In my main timeline actions layer i have
Code:
loadVariablesNum("test.txt", 0);
Then in my text box named text1 the var. is
mytext.
Test.txt has mytext = "blah, blah, blah."
Can anybody tell me what I am doing wrong?
Thanks
Whats Wrong With My File Upload?
Hi,
Ive followed adobes help docs but I still cant get my files to upload. Any ideas where im going wrong?
Code:
import flash.net.FileReference;
var myFileReference:FileReference = new FileReference();
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf");
var allTypes:Array = new Array(imageTypes, textTypes);
var fileRef:FileReference = new FileReference();
fileRef.browse(allTypes);
var fileRef:FileReference = new FileReference();
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandler);
try
{
var success:Boolean = fileRef.browse();
}
catch (error:Error)
{
trace("Unable to browse for files.");
}
function selectHandler(event:Event):void
{
var request:URLRequest = new URLRequest("http://www.bread-media.com/bm/upload.php")
try
{
fileRef.upload(request);
}
catch (error:Error)
{
trace("Unable to upload file.");
}
}
function completeHandler(event:Event):void
{
trace("uploaded");
}
Heres the PHP
PHP Code:
<?php
$MAXIMUM_FILESIZE = 1024 * 200; // 200KB
$MAXIMUM_FILE_COUNT = 10; // keep maximum 10 files on server
echo exif_imagetype($_FILES['Filedata']);
if ($_FILES['Filedata']['size'] <= $MAXIMUM_FILESIZE)
{
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./temporary/".$_FILES['Filedata']['name']);
$type = exif_imagetype("./temporary/".$_FILES['Filedata']['name']);
if ($type == 1 || $type == 2 || $type == 3)
{
rename("./temporary/".$_FILES['Filedata']['name'], "./images/".$_FILES['Filedata']['name']);
}
else
{
unlink("./temporary/".$_FILES['Filedata']['name']);
}
}
$directory = opendir('./images/');
$files = array();
while ($file = readdir($directory))
{
array_push($files, array('./images/'.$file, filectime('./images/'.$file)));
}
usort($files, sorter);
if (count($files) > $MAXIMUM_FILE_COUNT)
{
$files_to_delete = array_splice($files, 0, count($files) - $MAXIMUM_FILE_COUNT);
for ($i = 0; $i < count($files_to_delete); $i++)
{
unlink($files_to_delete[$i][0]);
}
}
print_r($files);
closedir($directory);
function sorter($a, $b)
{
if ($a[1] == $b[1])
{
return 0;
}
else
{
return ($a[1] < $b[1]) ? -1 : 1;
}
}
?>
[Q] Something Wrong With Frame 1 Of This File Which I Cannot Spot...
Something is really weird and I cannot spot where the problem is...
I have a movieClip called target_mc on the main timeline... Inside that movieClip, I have four frame animation where there are aim1_mc and aim2_mc on each frame...
I also have a for loop that hides aim1_mc on all the frames... It works fine on the first loop, but I see the aim1_mc of the frame 1 from the second loop...
ActionScript Code:
this.target_mc.onEnterFrame = function ()
{
for (var i:Number = 1 ; i < 2 ; i++)
{
trace(this._currentframe + " :: " + "i = " + i);
this["aim" + i + "_mc"]._alpha = 0;
}
}
Can anybody spot why I am keep seeing the aim1_mc on frame 1???
Also, if I trace this._currentframe, it gives me 2, 3, 4, 5 rather than 1, 2, 3, 4... Does anybody know why???
FYI, I am working on FMX 2004 with this one, but I get the same result on F8...
Loading Variables From Text File. What Is Wrong Here?
Ok, I have 3 frames in my movie. On frame 1 it stops and pulls in the loader movie clip.
This clip has this action:
onClipEvent (enterFrame){
function myFunction(){
//data is loaded
_root.boo = container.boo;
_root.coo = container.coo;
trace(_root.coo);
//note, the above trace says "ready66"
if(_root.coo=="ready66"){
_root.gotoAndStop(2);
}else{
_root.gotoAndStop(3);
}
}
container=new LoadVars();
container.onLoad = myFunction;
container.load("test.txt");
}
It always goes to (3) even though _root.coo = "ready66" when I view variables. I have tried removing all the _root and just doing container.coo, etc.. I have also added more items to the text.txt file around coo.
Whats Wrong?Loop From External Txt File...
Hi anyone make a suggestion on this? Probably just me missing something really simple...again!
I want to loop some actions, but i want the loop to continue n times where n is a number read in from an external text file. Here is my code...
Code:
numberVar = new LoadVars();
numberVar.onLoad = function() {
// this part reads a number in from a text file and converts it from
//a string to a number (n)
if (success) {
var n = parseInt(this.numberOfJpegs);
trace(this.numberOfJpegs);
trace(n);
}
//this n is then used to tell the loop how many times to go round
for (var i = 0; i<n; i++) {
cell = this.attachMovie("cell", "cell_"+i, this.getNextHighestDepth(), {_x:0, _y:100*i});
placeholder = cell.attachMovie("placeholder", "placeholder_"+i, cell.getNextHighestDepth(), {_width:133, _height:100, _x:40, _y:10});
jpegName = "stock/car"+i+"/thumbMain"+i+".jpg";
placeholder.loadMovie(jpegName, i);
newButt = cell.createEmptyMovieClip("button"+i, i+100);
newButt.lineStyle(2, 0xff97eb, 50);
newButt.beginFill(0xff9797, 50);
newButt.moveTo(700, 0);
newButt.lineTo(0, 0);
newButt.lineTo(0, 100);
newButt.lineTo(700, 100);
newButt.endFill(20, 0);
newButt._y = 20;
newButt._x = 50;
newButt.myNumber = i;
newButt.onRelease = function() {
loadMovie(this.myNumber+".swf", _root.loader_mc);
trace(this.myNumber+".swf");
};
}
};
numberVar.load("stock/numberOfCars.txt");
My problem is that the script won't run with the part that reads n in from the text. If I trace(n) i get the right number so it is obviously beiong read. If I remove this part of the script and replace the n with say 5 it works fine. Why?! Any suggestions anyone? Thanks
What Is Wrong With This Code Checking To See If My Txt File Has Loaded?
loading a text file and then if it has loaded it looks for a variable. if that variable is there it goes to frame 'load'.
Quote:
onClipEvent (load){
this.loadVariables("info.txt");
loaded = false;
}
onClipEvent (enterFrame){
if( loaded ){
if (trigger == "yes") {
gotoAndPlay("load");
}
}
}
Library Source File Path Is Wrong
I have created a fla to hold all the graphic elements of a project. When I add one of these elements to a different fla I set it to update on publish so if I make a change to the original it applies automatically. The problem is when I tell it to update, it can't find the original. If I look at what flash set the relative path to the source document as it say "./uiAssets.fla" when it should be "../uiAssets.fla" because they aren't in the same folder.
Is this a bug or am I doing something wrong?
What Is Wrong When Adding My External File To Stage?
Hey!
Could use some help here. I have an empty fla-file, and this code as the document class:
Code:
package {
import flash.display.*;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.ProgressEvent;
public class Photoexperiment extends Sprite {
var xmlLoader:URLLoader = new URLLoader();
var xmlRequest:URLRequest = new URLRequest("photo.xml");
var thumbRoot:String = "http://www.michaelpersson.se/photos/thumbs/";
public function Photoexperiment() {
xmlLoader.load(xmlRequest);
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
}
public function xmlLoaded(e:Event):void {
var myXML:XML = new XML(xmlLoader.data);
var thumbAdress:String = thumbRoot + myXML.photo[0].thumb[0];
thumbLoader(thumbAdress);
}
function thumbLoader(thumbAdress:String):void {
var thumbRequest:URLRequest = new URLRequest(thumbAdress);
var thumbLoader:Loader = new Loader();
thumbLoader.load(thumbRequest);
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
thumbLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, thumbProgress);
}
function thumbProgress(eventet:ProgressEvent):void {
trace("Downloading file");
}
public function thumbLoaded(e:Event):void {
}
}
}
In the last function thumbLoaded, I want to just add the loaded picture to the stage, but I just get error messages when trying. So can someone help me, and tell me what I suppose to write in thumbLoaded?
Thank you in advance
[F9] Saved SWF File Uses Wrong Fonts And No Transition Effects
Hi there everyone, I'm pretty new to flash, but starting to get the hang of things. Kinda....
I have create a really simple movie that has text that slides across the screen. At certain frames, I have adjusted the opacity (alpha) on the text to make it have a kind of fade-in effect.
When I play the movie within Flash, it looks and operates perfectly. When I try to Publish the file, and preview the file, the text is a bit screwed up. It uses a different font, and my opacity changes do not show up at all.
I have confirmed that the FLA file is indeed in the same folder as the SWF file, and it still doesn't work correctly.
Thanks so much for your time and assistance!
What Is Wrong? Problem Lunching Exe File From Flash Mx - Player Version 6.
I thought I knew the thing but???
I have created a flash mx 6 movie with a button and placed an action on the button's instance:
---------------------------------
on (release)
{
fscommand ("exec", "nplayer.exe");
}
-----------------------
I have placed the swf file and the nplayer.exe file in the same folder on the desktop but when I run the swf file and click on the button, nothing happens??
Should the exe file not execute?? I have tried also with notepad.exe in the same folder but same result.
Can someone help please?
THANKS
What Is Wrong? Problem Lunching Exe File From Flash Mx - Player Version 6.
I thought I knew the thing but???
I have created a flash mx 6 movie with a button and placed an action on the button's instance:
---------------------------------
on (release)
{
fscommand ("exec", "nplayer.exe");
}
-----------------------
I have placed the swf file and the nplayer.exe file in the same folder on the desktop but when I run the swf file and click on the button, nothing happens??
Should the exe file not execute?? I have tried also with notepad.exe in the same folder but same result.
Can someone help please?
THANKS
What Is Wrong? Problem Launching Exe File From Flash Mx - Player Version 6.
I thought I knew the thing but???
I have created a flash mx 6 movie with a button and placed an action on the button's instance:
---------------------------------
on (release)
{
fscommand ("exec", "nplayer.exe");
}
-----------------------
I have placed the swf file and the nplayer.exe file in the same folder on the desktop but when I run the swf file and click on the button, nothing happens??
Should the exe file not execute?? I have tried also with notepad.exe in the same folder but same result.
Can someone help please?
THANKS
Is My Whole Layout Just Wrong, Wrong, Wrong
I have uploaded my layout, I am starting to think that this is not how its done, I will explain.
I have one main swf where I have 5 diffrent section where I want to load 5 different swf into, but I also need one of the swf's which would be a button based one to be able to comunicate with the other 4. I totally think now tehre is an easier way of doing this than the way I'm doing it, can someone help me out here cos as you guy's know, the roots of a good page is in the layout at the begining.
I have uploaded my swfs so you know what I'm talking about.
Please, please comment...
Function Went Wrong....very Wrong.
Okey so i made a function that should, make two movieclips (balls) move around bouncing the edges of the screen....
but something is wrong... plz help...
when i start the movie, the whole picture is moved down to the right, and the balls aint moving, thou i can drag them around...
PHP Code:
left = 0;
right = 550;
top = 0;
bottom = 400;
xspeed = 5;
yspeed = 5;
ball01.onPress = doDrag;
ball01.onRelease = noDrag;
ball01.onReleaseOutside = noDrag;
ball02.onPress = doDrag;
ball02.onRelease = noDrag;
ball02.onReleaseOutside = noDrag;
ball01.onEnterFrame = ball;
ball02.onEnterFrame = ball;
function doDrag() {
this.startDrag();
this.dragging = true;
}
function noDrag() {
stopDrag();
this.dragging = false;
}
function ball() {
if (!dragging) {
_x = _x-xspeed;
if (_x-_width/2<left) {
_x = left+_width/2;
xspeed = -xspeed;
} else if (_x+_width/2>right) {
_x = right-_width/2;
xspeed = -xspeed;
}
_y = _y-yspeed;
if (_y-_height/2<top) {
_y = top+_height/2;
yspeed = -yspeed;
} else if (_y+_height/2>bottom) {
_y = bottom-_height/2;
yspeed = -yspeed;
}
}
}
Actins:wrong Syntax=correct, Right Syntax=wrong
Has any body made a similar observation:
when I want to load a pic into mc and write
_root.loadMovie("pic.jpg","mc");
I get a little window just the size of my pic but not my stage. But when I write:
_root.mc.loadMovie("pic.jpg");
everything is fine. I have a Mac, OS9.1. Is this related to the flashplayer in mac or what?
Automatic Update In Flash File(.swf File) When There Is Any Change In A .txt File
i have a site(intra) in my college for displaying notices.the clerk is completely ignorant of flash.he knows how to type the text in notepad.so whenever he changes the .txt file it should get updated in the flashfile automatically.
so anybody please help me in solving this problem..
kiran
[Edited by kiranwizz on 04-16-2002 at 05:25 PM]
What's Wrong With This?
When I click the button, this AS should run;
on (release) {
ggg = getTimer();
}
In the fram I also have an MC with an animation in it. I do not want the animation to run at load, but to hold a few seconds, and then start running.
onClipEvent (Load) {
stop();
}
if (ggg = ggg ++ 3000) {
MC.play();
}
But, apparently there's something wrong, 'cause when I execute my movie Flash says that there's a ')' missing, but I cannot understand/locate where! I think that it has something to do with my equation in the if-action.
Btw, the script doesn't work in action, the animation starts immediately
What's Wrong?
hello!
i want to publish in flash 4 format.
i have got a button in a movie clip called 'nav' which is nested in a movieclip called 'navigation' which lives on the main timeline. on releasing the button i want the 'navigation'-movie to play. this is what i have got but it does not work. it forces the movie to start at frame one of the main timeline:
on (release) {
tellTarget ("_level0.navigation") {
play();
}
}
_root.navigation did not work at all.
what's wrong with it? or talking basic: how to target another clip in flash 4?
thanks for any help,
elo.
What Am I Doing Wrong?
Can anyine help what am I doing wrong?
Have a menu that I am trying to load variables into from a perl script. Within the script i placed the variables so that it would load into flash:
<PARAM NAME=movie value="/dragg2.swf?category={$ARGV[1]}&item={$ARGV[2]}">
Than in flash i have a button with the following:
on (press) {
loadVariables ("auction.cgi", "$ARGV[1]&$ARGV[2]&$firstbid[0]");
}
on (release) {
getURL ("http://www.sitename.com/cgi-bin/auction/all_categories.cgi?ask&category=$ARGV[1]&item=$ARGV[2]");
}
What's Wrong?
i'm creating a dynamic pie chart based on the tute i found here in flashkit. i have this part in my the AS:
aCount = new Array(47, 4, 23, 2, 4, 1, 13, 2);
aCategory = new Array("HEAD", "CDROM", "CONN", "MM", "COB", "DAT", "FDD", "PM",);
nElements = aCount.length;
aColor = new Array(0x339900, 0x0000FF, 0xcc66cc, 0x00cccc, 0x9933cc, 0xcc66cc, 0xcc33cc, 0x3366cc);
aPercent = new Array(nElements);
nDepth = 1;
but when i preview my movie i keep getting these errors:
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: Operator '=' must be followed by an operand
aCategory = new Array("HEAD", "CDROM", "CONN", "MM", "COB", "DAT", "FDD", "PM",);
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ')' or ',' expected
nElements = aCount.length;
i can't seem to understand the error since im not that good in scripting stuff. hope someone could point me out what's the error all about and how could i remedy it. thanks in advance
Something Wrong Wif My Key Pls HELP
I put a "Pause_Play" MC on the layer "Actions", and write the following in the Object Actions,
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
stop ();
}
}
but when i do a Test Movie, the movie doesn't stop uppon pressing "P" on my keyboard. Why?
What's Wrong ? Help Me Please :(
What do you think about this flash ? What's wrong with it ? when it loads for the first time, it ask a quastion to cancel some scripts, then when you refresh the page all is correct ! Help me please.
http://www.navid.8k.com/baha/
Don't Know What Went Wrong...
Here's my current situation:
I have 2 scenes,"mainsite"(contains my main website) and "preloader" (which is my ...erm...preloader).
In my mainsite timeline, i have 3 frames. In frame 1 i have this:
virgin = 1;
in frame 2 i have a stop(), and frame 3 onwards is an animation.
Now, in frame 2 i have an MC which contains a 30-frame animation. at frame 30, i have this:
stop ();
if (_root.virgin != 0) {
_parent.gotoAndPlay("mainsite", 3);
}
What im trying to do is to get the MC animation to finish playing before playing the animation in my main timeline.
Everything worked perfectly, UNTIL i inserted my preloader.
In frame 1 of my preloader i have this:
ifFrameLoaded ("mainsite", 18) {
gotoAndPlay ("mainsite", 1);
}
After i did my preloader, my "mainsite" gets stuck at frame 2, where my stop() is.
Anyone knows where the problem lies? Thanx...
What Went Wrong?
when I tried to reply on a question in a previous thread my computer hung and then the thread broke. so here the question again. sorry albywalbywoo for not answering on your reply.
you asked for more details on the problem though....well I hope this will do
I have a scrollbarr wich scrolls dynamic txt (pretty nice design by ilanJ). It loads .txt files with loadvariables from the root of the same folder where the .fla is in.
I format these files using HTML tags.
For lots of things this works just fine, but I want to use a button in this .txt file that can play a MC in flash....
hope that's enough informtion about it
thanks
Can Someone Tell Me What's Wrong With This?
I am trying to set a conditional statement to test to see which button is pressed. If button01 is pressed then load "movie01.swf" into level 1, if button02 is pressed then load "movie02.swf" into level 1, and so forth.
I attached the following to a mc on the root timeline of level0
the buttons are also on this level as well.
-------------------------------------------------------
onClipEvent (load) {
var button01 = "1";
var button02 = "2";
var button03 = "3";
}
onClipEvent (enterFrame) {
if (button01 == "1") {
loadMovieNum ("movie01.swf", 2);
} else if (button02 == "2") {
loadMovieNum ("movie02.swf", 2);
} else if (button03 == "3") {
loadMovieNum ("movie03.swf", 2);
}
}
-------------------------------------------------------
and then this to the buttons accordingly
on (release) {
button02 = "2";
}
I am unable to get it to work.
can you tell me what it is I am doing incorrectly?
Thanks
Do Not Know What Is Wrong
Hi everybody! I am kind of new to Flash and just completed my few first sites that posed two problems that I can't figure out myself.
1)My last site i did would behave differently on diffrent screen sizes running on identical systems. It's realy strange. On my computer it works perfectly as well as on many others. But since i had lots of people going to the site i've got number of complaints that site is not working. People would say that nothing is moving and they can not get to diffrent sections. It's seems to be only a problem on smaller monitors (however I am not completely sure). So if you people could go and see it (it's http://www.zeitny.com) and if you incounter the same problem and know how to fix it please let me know 'couse i am going bananas.
2)Also if somebody could give me a hint how to do those java pop-up windows i also would be very gratefull.
Thanks for your time
Pete
What Wrong With This
just won't work...is this right?
_level50.Area.gotoAndPlay("areaDropOut");
basically I am trying to target a movieclip thats on the _root of level 50 called area and get that clip to go to a frame called "areaDropOut" within it...
what's wrong with it..am I going mad..
stu
Why Is This Wrong?
stop ();
function createButtons(){
// create the invisible buttons!
for(i=0;i<6;i++) {
for(k=0;k<6;k++) {
attachMovie("masterpiece","button"+i+k,4);
_root["button"+i+k]._x = 183.3 + (i*56) ;
_root["button"+i+k]._y = 24.4 + (k*50);
}
}
}
i want it to make 36 movie clips like this (all on one layer, they arent going to move)
should be:
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
what really happens
x
tell me why
Help..what Could Be Wrong In Here?
Here is the problem:
I Have two Swf right?
and in the second swf file I want to link to the second scene of the first swf file (scene1,since the first one is named as preloader, and only for this time I would like to skip it )
I am doing something like this
In the first frame of the first swf file:
var x;
x = "1";
y = _level0.x;
if (y==1) {
gotoAndPlay (1);
} else if (y==2) {
gotoAndPlay ("Scene 1", 1);
}
then
in the second swf file in the first frame:
var y;
y = _level0.x;
and in the button of the second swf file:
on (release) {
loadMovie ("ano1.swf", "gotoAndPlay (_level0.x)");
}
The problem is that this do not work.
Any Help? Please?
thanks
Am I Doing Something Wrong?
The musicloops I download from flashkit won't loop as I want 'em to loop. What I mean is there's allways a little "hack" in the end of the loop. Am I doing something wrong or do I have to live with this? Maybe I should mention that I download the loops as Mp3.
//raw
What Am I Doing Wrong?
im trying to get a scrolling text box with a text source from flash 4 to work when i import it to flash 5 .......all i get is when i try to manipulate the script is " the script wasnt copied due to errors" what can i do???
WHAT'S WRONG WITH ME?/
Why the heck won't this syntax work???? It's pissing me off to no end (pardon my french).
on (rollOut) {
nav = "nav services";
}
on (rollOver) {
tellTarget ("services") {
play ();
if (nav = "blank") {
} else if (nav = "nav services") {
tellTarget ("services") {
stop ();
}
}
}
}
Initially, the variable "nav" is set to "blank" in a timeline frame. What I want to happen is to when I rollOut the hotspot, I want the variable "nav" to be set to "nav services" so that if you roll over the hotspot again and nav = "nav services" the movie it's calling won't play again (and return to it's initial invisible state) ... here's the link. PLEASE HELP ME!!!!! I'M AN IDIOT!!!
http://www.20202020.net/allnetnav.htm
thanks a million,
greg
420
What Am I Doing Wrong.....?
Hello pplz,
Here i am generating some sort of count down based upon a fixed date (lets say may 15th, as used in the code below)
If i can still do some calculating i should get a result somewhere (counted from this post's entry date March 22) around the 55, but when running this script the result displayed in my swf doesn't go further than 39
is there anyone in the house that can tell me what goes wrong down here......
//-------------CODE--------------------------------
now = new Date();
dateNow = now.getDate();
monthNow = now.getMonth();
daysInMarch = 31;
daysInApril = 30;
daysInMay = 15;
if (monthNow == 1) {
daysLeftInMarch = daysInMarch-dateNow;
daysLeft = daysLeftInMarch+daysInApril+31;
} else if (monthNow == 2) {
daysLeftInApril = daysInApril-dateNow;
daysLeft = daysLeftInApril+31;
} else if (monthNow == 3) {
daysLeftInMay = daysInMay-dateNow;
daysLeft = daysLeftInMay+31;
} else {
daysLeft = 31-dateNow;
}
DateCount = daysLeft;
//----------------CODE-------------------------
Thanx in advance
No No No You Got Me All Wrong Man
ok, what you see on that link, this is how I did it:
1. I make 5 MCs, and place them off the stage, and give them names.
2. I make 5 instances of my button - 1btn per MC.
3. when I roll over button 1, it moves MC1 from it's orig. location (off-stage) to a new location on the stage.
4. when I roll out of button 1, MC1 goes back to original position.
I do this for every button, referencing each MC.
**********************
now what I REALLY want to do, is to make MC1 fade away after I roll out of button1, so it doesn't go away instantly, but rather fades away.
**********************
sid
What´s Wrong Here?
Hello all. Have a look at this:
------------------------------
var1 = 1;
var2 = 1;
if (var1 == 1 && var2 == 1) {
trace ("Result OK");
} else {
trace ("Operation Failed");
}
------------------------------
Is this script ok?, If it is, why it returns
"Operation failed".
Thanks for having a look, I´m stuck in there.
aX--.
What Is Wrong HERE?
The MC is duplicated just fine but it won't go away afterwards!
onClipEvent(enterFrame){
if(this.hitTest(_root.view)){
pylon2.duplicateMovieClip("pylon2", "pylon2"+_root.i,1);
_root.++;
_root["pylon2"+i]._x=200;
_root["pylon2"+i]._y=200;
}
else
{
_root["pylon2"+i].removeMovieClip();
}
}
I've tried many MANY different combinations.
What's Wrong?
What is wrong here?:
stop ();
if (Key.isDown (Key.UP) && Key.isDown (Key.RIGHT)) {
nextFrame ();
}
It won't work
Thanks
What Am I Doing Wrong ?
can someone please tell me what i've done wrong, i have two movie clips. One of them is not suppost to move and the other is moved using actionscript which increases the x value of the movie using setproperty.
However when i do this although i have given each movie a different instance name and am only changing the x value of one movie they both move across the screen.
Why is this happening ???
|