ActionScript 2.0 :: External SWF Doesn't Read .as Class
Jun 3, 2011
In my emptyMC, i'm calling a newsticker, that needs an external .as class to works propertly. But when it opens, it doesn't read my _x and _y coordinates and neither the .as.
My code to it, is in a frame:
Code:
this.createEmptyMovieClip ("noticias", 2);
loadMovie("newsticker.swf", noticias);
noticias._y = -50;
noticias._x = 0;
In my first frame I have locked the root with:
this._lockroot = true and i has been working perfectly.
Also in the root in a frame i'm loading a music.swf.
for further doubts, just ask.
I'm working with Flash CS5 and AS2, Flash Player 8.0. It's a TM template.
View 2 Replies
Similar Posts:
Jul 1, 2009
The code I have calls to an external class, however it doesn't give me my array back, while I'm convinced this is the way I did it before as well.
[Code].....
View 6 Replies
May 10, 2010
I want to read an Atom in Flex.I can see in the debugger that he can read the Atom and that there are entries, I can see each value. So far, so good.But when I want to assign a value from the atom to a variable, he never gives any text. It's always this: "".
My code:
ch.Name = xml.title;
ch.Desc = xml.subtitle;
ch.Updated = xml.updated;
[code]....
But that's strange, because I can see in the debugger that it schould be "Tweakers.net".It becomes even more strange, because it works just fine with RSS.
View 2 Replies
May 7, 2010
I have a swf that reads a XML file. Here's the thing. If I have the fla open and I hit cntrl+enter to run it, everything works fine. But if I just open the swf, it doesn't read the xml. The swf is in the same directory as the xml file. I have tried everything. I even slammed my head on the wall on 3 different occasions.
View 2 Replies
Apr 4, 2010
I have everything done to load a text from an XML file in my flash movie, but it shows the text only if it is written in EN i want to type the text in the XML file in Cyrillic but flash doesnt want to read it... I tried to change the Embed Characters of my text field but it still doesn't want to read it. I have added this to my XML: <?xml version="1.0" encoding="utf-8"?> and still the same thing.
View 1 Replies
Jan 6, 2010
I am trying to send a php variable with one field from mysql. When I print the php variable on my php page it outputs the field, but when I try to send it to flash it doesn't output anything.Here is my php script that tries to send a mysql field to flash and there nothing is shown. It works on my php page, it outputs the mysql field.
$product=$result['product'];
$pro=$product;
$pro = "&pro=".$pro."&"; //~ make it a flashable variable
[code].....
View 2 Replies
Aug 30, 2011
I have a TLFTextfield, which I've applied a TextFormat to, using a start and end index so it only applies to a range of text.Something similar to this:
var textfield:TLFTextField = new TLFTextField();
textfield.text = "Some Text";
textfield.textColor = 0x0000FF;
[code].....
View 2 Replies
Oct 7, 2004
I was wondering why my current code for calling a setInterval on a function doesn't work inside my class.I have this code inside one function, calling a second function.
intID = setInterval(selfReferential, dupe, 30, 0x000000);
The selfReferential keyword refers to the current class,but was defined previously (selfReferential = this; ).I get no errors, but the dupe() function is never called.and I had the selfReferential variable replaced with the this keyword at one point as well.
View 5 Replies
Feb 2, 2010
I have a main class which listens for an event dispatched from another class say class A. Also there are other classes say class B, class C etc.There is a controller class.Classes B, C dispatches events that gets listened by the controller and works well.But the events dispatched by the Class A doesn't get listened by the main class.What might be the problem. Detailed Explanation of the problem.There is a main mxml file.
Class files are in:
ProcessInput.as
DBController.as
ShortMemDB.as ....etc
The main mxml file gets the input from a textArea. Sends the input to the capturedInput (input:String) function using set method which is in the ProcessInput Class.Now I need to dispatch events NORMAL, COMMAND depending on the input obtained after the processing, where I'm having problems. The reason is that if the event NORMAL is dispatched a particular function inside the DBController is to be called. If COMMAND event is dispatched then I need to call another function. This idea doesn't work since the events doesn't get listened.But the events dispatched by the CSDB class when listened by the DBController works well.
View 7 Replies
Sep 29, 2011
Let's say Class A has the flash.events.Event imported. Now let's say Class B extends Class A. Why in the hell do i need to import flash.events.Event in Class B? It makes no sens at all to me.
View 3 Replies
Oct 3, 2011
I copied my actions from frame 3 to frame 4 and frame 4's class doesn't work when frame 3's class works fine and normal, here is the source code:
Frame 3:
stop();
var rowNum:int = 10;
for (var i:int=0; i<rowNum; i++)[code]....
View 7 Replies
Apr 17, 2012
I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.
I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.
I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.
how to call a JS function that is on an external file from AS3?
View 6 Replies
May 22, 2005
... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:
[Code]...
View 5 Replies
Mar 25, 2010
I have a Main.fla which loads Main.as as its document class. In Main.as I have a public function named "Main" which runs a trace. I also have another .as file called Preloader.as, which also has a public function in it, this one named "Preloader" with simple trace in it. I just cannot figure out how to use Preloader() from the Preloader class in Main() from the Main class. Main.as loads up fine when the SWF loads and traces.
View 10 Replies
Feb 19, 2009
is there a difference in using this
[CODE].....
for some reason i cant get it to read either one of them...the quotes is what i am referring to.
View 8 Replies
Jan 15, 2011
Basically, imagine two classes, for simplicities sake I'll call them classA and classB they are in the same folder, same project, and all variables have been called as public.
In classA there's a variable, for this example I'll call it speed (its called something else obviously as speed alone turns blue so its a reserved word). It is made and updated in classA for it's current value
classB handles the array to move things, and needs to reference what speed is so it knows how much to move each object each tick.
How do I allow classB to look in classA and see what the current value of speed is?
View 4 Replies
Sep 4, 2011
[code]...
how can i trace xox from my fla file ?(or how can i edit the variable from my fla file)
View 3 Replies
Mar 19, 2010
This works if I view it locally:
Code:
myData = new LoadVars();
myData.onLoad = function(){
[code].....
View 3 Replies
Sep 16, 2010
I want to create a kind of "video player" that will allow me to move a playhead accross all theses SWF that are playing back to back. What I need to do is get the totalFrames of all these swf objects that are to be loaded. I tried loading each SWF (using the Loader class ofcoarse) and on the COMPLETE event grab the totalFrames and then move to the next SWF to populate an array that will be used to create a UI piece. The problem is that it starts playing the swf once it load and you can hear the background sound of each SWF. It also slows the program down. Is there anyway of grabbing the totalFrame property from external SWF's without actually having to load each SWF?
View 2 Replies
Jan 16, 2009
My problem is that all the action script contained in the musicplayer.swf seems not to work when I load the whole musicplayer.swf in the main movie.[code]...
View 9 Replies
Mar 1, 2011
I am trying to make an external swf load into the main swf and have the input text work.
View 5 Replies
Jul 11, 2005
I've inherited a menu bar (www.ensim.com). You can see that when you hover over the buttons (most of them, anyway) you get a drop down with subnav links.
The way they did it was to populate the movie clip with text from an external .txt file, so you could easily add sub links and change urls and stuff. Nifty idea.
The problem is a new url I'm trying to add apparently contains an escape character that it doesn't like. The new url is "/index.asp?page=solutions&sec=voip". When that goes in there, it won't write the link lable (<a href="borked url">This doesn't show up</a>)
Sort of weird, I kind of assumed that, being a plain old txt file, it would just spit it out and move along.
View 2 Replies
Jul 1, 2009
How can NetStreamInfo class's parameters be read. I mean, I have an application to perform live streaming. I have used 'nc' as my Netconnection object & 'ns' as NetStream object and nsi as NetStreamInfo object. When I Type 'nsi.' I see lot of attributes but when I try to print it using
[Code]...
View 7 Replies
Nov 2, 2009
Is there a way to make a property read only from outside of the class?
View 5 Replies
Nov 26, 2011
This is because I use movie clips within other movie clips.
I wondered if anyone knew a workaround or trick that I could use to get text into google. I have a couple ideas but they're just ideas.
I would like to create an alternate page that is not flash, but a regular html page with all of the text I want google to read inside it. Somehow I use code to tell it that when a user clicks on the link, to redirect them to the flash webpage, but when a search engine sees it, to send the search engine/google to that regular html page, where it will gather all of the text and then that text will show up on google's page when you do a search and my site on google? Even if this was possible, would google frown upon this and ban me or something?
The other idea I have is to use invisible text at the bottom of my page. This will be regular html text that is the same color as my background. But I heard this can get you banned from search engines like google if you are using lots of keywords, but I wouldn't be using keywords. I'd be using the few sentences of content that their stupid crappy technology doesn't read, forcing me to bust my hump trying to find a workaround for. It sucks that google doesn't even use keywords in my metadata for rankings either. So I can't even use that with them.
View 1 Replies
Nov 26, 2011
This is because I use movie clips within other movie clips.I would like to create an alternate page that is not flash, but a regular html page with all of the text I want google to read inside it. Somehow I use code to tell it that when a user clicks on the link, to redirect them to the flash webpage, but when a search engine sees it, to send the search engine/google to that regular html page, where it will gather all of the text and then that text will show up on google's page when you do a search and my site on google? Even if this was possible, would google frown upon this and ban me or something?
The other idea I have is to use invisible text at the bottom of my page. This will be regular html text that is the same color as my background. But I heard this can get you banned from search engines like google if you are using lots of keywords, but I wouldn't be using keywords. I'd be using the few sentences of content that their stupid crappy technology doesn't read, forcing me to bust my hump trying to find a workaround for. It sucks that google doesn't even use keywords in my metadata for rankings either. So I can't even use that with them.
View 2 Replies
Dec 21, 2009
Just wondering if flash is able to do this using a 3rd party app perhaps? Im creating a flash application (closed source), and I want it for others to be able to customize the program in the means of changing text colors by editing the actionscript using an external .as file. Problem is, the external actionscript works, but it will only work when I recompile or republish the fla file in flash.
Looking for a way for flash to read the external .as file without using the fla file.
View 4 Replies
Jul 9, 2009
I currently have a flash video player and I want to add some code that will update a variable in an external .as or .txt file. I then want to be able to pull this variable into a different .swf when required.
My variable I want to create will be CurrentVideo and it needs to be a number e.g. _global.CurrentVideo = 2
View 1 Replies
Feb 2, 2011
I was wondering how you use Actionscript 2, to read a URL/web address in a XML file and when you click a button, or an icon, you are then taken to a page specified in the XML document?
View 2 Replies
Jul 27, 2011
I have an ActionScript driven flash project that displays a sequence of images. Currently I am using an array with the names of the images. Is there any way I can open a text file for reading and populate the array. Otherwise I would have to keep compiling the SWF each time.
View 6 Replies