ActionScript 2.0 :: LoadVariables Disables Other Scripts?

Jul 1, 2003

I've got a windows that I can move with the startDrag script. This works just perfectly fine. When I load some text into a textbox inside the mc (window mc) the drag-script isn't working, neither is the close window script. But the text loads just fine. Why is this happening? I haven't changed anything in any of the scripts. If I just delete the loadVariablesNum("info.txt",0); line I can move the windows again.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: SetRGB Disables Animation's?

Jan 14, 2009

i have a for loop to attach a movieclip X times, and an Array with several color codes to apply in the loop.everything works fine with the setRGB. the movies have an internal background movieclip that gets the color i want to apply.

the thing is the movieclip's loose the animation i created to that internal movie (the one who get's the color). they do not respond to gotoAndPlay, or gotoAndStop...i disabled the setRGB lines, and the movie's play fine now. does setRGB transform my movieclips to a bitmap or something? disabling every animation inside?

View 14 Replies

ActionScript 3.0 :: Mouse Click Disables Keyboard?

Jun 28, 2009

So I'm trying my hand at writing my first tower defense game and I've discovered a snag. One part of the game involves keyboard input, but if I click on an object to create a tower, then the keyboard stops responding until I click on the background. My keyboard listeners are attached to the stage and the object being clicked is a button in a MovieClip added to the game's MovieClip.

View 4 Replies

ActionScript 3.0 :: Text On Buttons Disables Button Part 2

Jul 1, 2009

I've created a 3 state button, then imported it to a movie clip. I want to use a set of 6 of the identical buttons as navigation controls, so I've created 6 instances all named uniquely. My problem seems terribly simple, but I can't find an answer anywhere and I've spent hours going in circles.

No matter how I put a text label on the button (right now it is built into the button as dynamic text), when running the final file when the user's mouse is on the text the button cannot be clicked - it disables the button. So I have 6 buttons that cannot be clicked unless the user clicks right on the edge of the button (not on any part of the text). Is there not a simple way to overcome this? How do I make the text part of the button so it is clickable as well?

View 4 Replies

ActionScript 2.0 :: Drag / Throw Component Disables Buttons?

Feb 20, 2005

I have buttons on my main timeline which calls a MC using attachmovie(). I have placed an EmptyMC on my main timleline for the MC to be inserted. Now, this particular MC has buttons on it which work fine. However, when I add a throw component onto the EmptyMC, which basicly lets me drag/throw my attached mc, the buttons are disabled.[code]...

View 5 Replies

ActionScript 3.0 :: Flash - Button Click Disables Keyboard?

Jan 18, 2012

I am rather new to AS3 and I have a few difficulties with the new buttons usage. I have a Document Class in which the Keyboard is used to navigate a Child. There is also another Child of a different class, which is kind of a popup box that you can open and close by separate buttons. The close button lies inside the popup box class. However, when I click this button to close the box, removing the Child, keyboard actions don't react until I click on the screen once more.The same happens when I click a button that goes to the next frame, in which the button isn't there anymore, but keyboard actions are requested. But they only work, once I click inside the swf screen again.

View 6 Replies

ActionScript 2.0 :: Drag/Throw Component Disables Buttons?

Feb 20, 2005

I have buttons on my main timeline which calls a MC using attachmovie(). I have placed an EmptyMC on my main timleline for the MC to be inserted. Now, this particular MC has buttons on it which work fine. However, when I add a throw component onto the EmptyMC, which basicly lets me drag/throw my attached mc, the buttons are disabled. How can I go about correcting this?

Here is the code for the button on the main timeline:

on (release) {
_root.EmptyMC.attachMovie("Content Def", "Clip2", 1);
}

Here is the code from the component I have attached to the EmptyMC:

#initclip 0
function ThrowBehaviorClass(){
// get the target
var target = this._parent[this._targetInstanceName];
// set up the various properties

[code]....

View 5 Replies

Actionscript :: Dropshadowfilter On Textfield Disables Html-links Inside

Aug 13, 2009

When i put a dropshadowfilter on a dynamic textfield with html-content, the links (a href) stop working.The textfields rotate in flash 3D space so they have a transformmatrix applied to them. Could this be the reason? Anybody had problems with html-links and dropshadowfilter applied to the textfield? it makes no difference if you put the filter on the textfield itself or the movieclip container around it.

View 2 Replies

Professional :: Adding Button Symbol Disables Movie Clip Animation?

Mar 29, 2011

I added a button symbol to a movie clip in a Flash 8 project, and the button works. OnPress it redirects to a web site.However, the animation in the movie clip becomes diabled. I get the same effect regardless of where the button is placed, e.g. scene1 timeline, movie clip, etc.

View 8 Replies

ActionScript 2.0 :: Google Chrome Disables All Buttons When In Full Screen Mode?

Jun 10, 2010

I have a few online magazines I run and I have noticed that when in full screen mode in Google Chrome, all my buttons, everything is disabled I just have a 'hand' for a mouse and nothing works.

My fullscreen option works on all other browsers its only Google Chrome it seems to of disabled any user interaction whilst in full screen mode.

I have tried searching but cant find any similar problems, and need this fixed ASAP. You Tube works in full screen mode on Google Chrome, so it cant just be a Google Chrome bug. Maybe there are some added security features you have to code for in Google Chrome.

Here is a link, make sure you are using Google Chrome or you wont replicate the error.

Try the navigation on the top bar, then click full screen top left, then notice how no buttons work anymore.

[URL]

View 2 Replies

CS3 :: LoadVariables And LoadVariables

Apr 12, 2009

Ok, not sure where my other thread is, unless it needs to be manually approved by the moderators? If so, then my bad for making a 2nd thread.It doesn't exactly work... well when I use preview in CS4, it doesn't give any errors about not finding the file on the URL, I tested a fake URL to see if it would give an error and it did. So it is accessing the file perfectly. The chmod is set to 0777 on the settings.txt file.I don't understand why it's not "working" - all I need to do is view the flash file on site1.com - where the actual flash file is hosted on site2.com - I figured that it wasn't working before was because it was loading the settings.txt file from telltarget("..") - so viewing it on site1.com was searching for settings.txt on site1.com (I think???)That's why I need to get the loadVariables() working with a url so that when I view site1.com with the embedded flash file, that it will show it correctly.

View 2 Replies

ActionScript 2.0 :: LoadVariables()?

Jan 12, 2003

ok. i would like to load a .txt file into a dynamic text box on which i have on the stage.when i did it i went from the C drive, but does it have to be in the library? i honestly have no clue as to what i am doing. unless, should i upload the .txt to my server and use a http:// for the URL? then for target is that the instanse or Variable name for my dynam. text box? and what does the method mean

View 1 Replies

ActionScript 2.0 :: LoadVariables From .txt?

Oct 9, 2004

I am trying to load a variable from a text file named "variable_file.txt"he variable in the file is "var" and I am trying to assign the word "value" hen I run the following code:

Code:
loadVariablesNum("variable_file.txt", 0);
trace(var);

[code].....

View 11 Replies

LoadVariables 'undefined' Error

Aug 6, 2009

I have the following line, which is just a loadVariables:loadVariables("data.txt", _root.fa);This loads a data file, located at the root level, which includes the name of an .mp3 file, which is located in a folder; root/media:&faFile=player1.mp3.And then later I have this line which loads the sound from the .mp3:[code]

View 37 Replies

LoadVariables Undefined Error

Aug 6, 2009

I have the following line, which is just a loadVariables:

Code:

loadVariables("data.txt", _root.fa);

This loads a data file, located at the root level, which includes the name of an .mp3 file, which is located in a folder; root/media:

Code:

&faFile=player1.mp3

And then later I have this line which loads the sound from the .mp3:

Code:

this.sound.loadSound ("media/" + faFile, true);

But when I run this I get:

undefined
Error opening URL 'file:///jeffrey/Downloads/mp3%5Fplayer%5Ffiles%5Fedit/media/undefined'

This is Flash CS4.

View 14 Replies

ActionScript 2.0 :: Loadvariables Works With Txt But Not From Asp?

Oct 28, 2009

I got a big problem. I want to load data from an asp file, but i can't get it work. It says 'undefined when i trace' Only extern text is working.

[Code]...

View 2 Replies

ActionScript 2.0 :: Php And .txt Using LoadVars And LoadVariables?

Feb 15, 2010

I have read a little bit about loadVars and loadVariables, so I am trying to read and write to a .txt on my server. This is my functions: (only Read works, but Send doesn't)

ActionScript Code:
function Load(F, VAR) {
var DATA:LoadVars = new LoadVars();[code]...........

There are no errors or something; but the file is the same after Send();

View 5 Replies

ActionScript 2.0 :: LoadVariables To LoadVars?

Apr 19, 2005

Okay, so ive loaded some data from PHP into a textbox in Flash with loadVariables, but then found out, that loadVariables, havent got a way of checking if everythings loaded. So im gonna use LoadVars instead,This is the old loadVariables code:

Code:
on(rollOver){
loadVariables("document.php", _parent, "POST");

[code].....

View 1 Replies

ActionScript 2.0 :: [FMX04] LoadVariables Need To Be Run Twice

Jan 7, 2006

i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.

[code] loadVariables("http://localhost/file.php",this,"POST");[/AS]
but when i do it this way. [code] loadVariables("http://localhost/file.php",NONE,"POST");[/AS]

the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.

so everytime i have to first use "this" and then "none".

what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.

View 2 Replies

ActionScript 2.0 :: LoadVariables Only From Server?

Mar 28, 2006

Im developing a game. In some parts, i need to save some info on database (like experience, money, level, ...).

But i cant let people inject code on the server side script (php).

If i send the variables via post, the injector may create a form and send too =(

In php, i've tried to get the referer from where the data came from... without success, from flash, the referer comes null =(

If i make SESSIONs, the injector may enter on the game, after that, he goes to the form to inject the data, the session will not be erased =(

View 3 Replies

ActionScript 2.0 :: LoadVariables From Different Movieclip To Php

Jan 30, 2007

I have a problem with loadVariables from different movieclips, I don't know how to do. I wannt to load loadVariables from 2 mc in to one php script(email.php). My mc's are "send_mc" and "answer_now" Her is only one mc loaded, but I wannt two mc to be loaded.. This is my script, so far...

Code:
buttonS.onRelease = function(){
_root.send_mc.loadVariables("email.php", "POST");
}

View 1 Replies

IDE :: HTML Is Being Passed With LoadVariables

May 12, 2008

i'm trying to send out some input form variables top a php script via loadVariables() and it's working, but the only problem is that flash also sends out all the html font information along with the form data. so instead of getting something like "Name: Phil" the php script gets:[code]is there a way to keep this from happening in flash or do i need to start getting fancy with the php?

View 3 Replies

ActionScript 2.0 :: LoadVariables In A Child?

Sep 7, 2009

have a little flash plugin, which is a form to submit the user's mail address to a database for receiving a newsletter.The flash contains a dynamic textbox where the user enters his mail address, which has the variable-name "u". The code must also send the newslettername (variable "l") and the command (variable "cmd").The code for the submit-button looks like this:[code].....

View 1 Replies

ActionScript 2.0 :: [FMX04]loadVariables Need To Be Run Twice?

Feb 20, 2011

i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.[code] loadVariables("http://localhost/file.php",this,"POST");[/AS]but when i do it this way.[code]loadVariables("http://localhost/file.php",NONE,"POST");[/AS]the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.so everytime i have to first use "this" and then "none".what am i doing wrong? what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.

View 4 Replies

ActionScript 2.0 :: LoadVariables Is Working Only In Pc

Oct 27, 2003

I'm newbie in AS Flash (and new in this foro) and I have 3 swf.Principal is the first one that loads pliego and this one load textos.I have 3 files txt's and 3 files jpg's by now (_global.tope=2) and All is OK while I'm testing on my pc.When I'm testing on my site, the Dynamic Text doesn't load txt files!The size of biggest file txt are 5 KB

View 6 Replies

ActionScript 2.0 :: GetBytesTotal For LoadVariables?

Dec 11, 2003

I'm doing my portfolio in FlashMX using Actionscript. Everything in that sites has a preloader.

Anyway, in the actual portfolio section I use variables form a .txt to load each work (that way I can add in a more easy way new content). The .txt contains location of images, text shown, titel, and some other variables. Each .txt is aprox. 350bytes.

The problem is that if the variables aren't loaded fast enough the content of each work is shown wrong.

Is there a way to calculate getBytesTotal() for variables ?

View 11 Replies

ActionScript 3.0 :: LoadVariables Not Loading Within Another Movieclip

Mar 11, 2012

when i load a swf file within another swf file my loadVariables do not show.so basicly i have loadVariables in my as2 movie clip which works fine but hten when i load it within as3 movie clip these loadVariables within the as2 movieclip do not work is there any way of makign this work this is what i used for loading hte variables.[code]

View 9 Replies

ActionScript 2.0 :: Can LoadVariables Load Directories

Feb 19, 2004

someone knows if a directory can be opened using loadVariables and then placed into an array or loop. I know files can be loaded individually, but I want to be able to see all the files using PHP and my .swf file.

View 2 Replies

ActionScript 2.0 :: LoadVariables And Mail Function With Php?

Jul 26, 2004

I'm trying to send email from Flash. The email form is in a movie loaded with loadMovie. When I call the email.php page, it seems to take forever to do its thing and then nothing happens.

I based my script on the flash email form here in the Kirupa Tutorials and I've tried every way of giving the path to my variables - that is, the path to the text fields in the form via _root and _parent. I've tried appending variables the the loadVariables url and just tried posting them. I can't even get any results when I use the print function in the php script. Here is my php script:

PHP Code:

<?php

$name = $HTTP_POST_VARS['name_txt'];
$email = $HTTP_POST_VARS['email1_txt'];
$interest = $HTTP_POST_VARS['interest'];

[Code].....

It seems like my variables aren't reaching the form, but I'm also concerned hat is is taking forever for any data to be returned to the flash movie (I've got an on(data) event on the form).

View 1 Replies

ActionScript 2.0 :: Flash 5 LoadVariables Into Array?

Feb 27, 2003

im using loadVariables to get variables from an asp page

the return string is fine but i cant access variables

so my array is call module and my return string is module[1]=blah&module[2]=blah

in my debugger it shows module and the shows module[1] and module[2] as 2 seperate objects from the array and i cant access the values from module[1] and module[2] even if i rename the to module1 and module2

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved