ActionScript 2.0 :: Load External Messages To Every 5 Second
Mar 23, 2005I have a textfield which i would like to load external messages to every 5 second, for this i have come up with a surtain code, but it doesn't work...
[Code]...
I have a textfield which i would like to load external messages to every 5 second, for this i have come up with a surtain code, but it doesn't work...
[Code]...
I am very new to AS3 and I am struggling to get multiple messages into flash from an external .txt file. I have managed to get 1 single message in just about, but then the client wanted multiple messages...aaghhhh. They are displayed on a single line and scroll in from the left, flash then move off to the right, I then need other messages to appear in a similar fashion.
View 2 RepliesI try to load classes ex:flash display.Sprite(); and I get error messages. Not just with this code with any class I try to implement. why this is happening. Am I missing the folder that has all of the classes in them in Flash CS3.
View 3 RepliesStructure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.
View 4 RepliesI have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.
[Code]...
I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:
metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);
[code].....
How do you load external library objects from an external swf? I want to have an external swf that only contains library objects that are exported for Actionscript, and load these from the master .swf file dynamically during the master swf execution. (I may have multiple external swf resource files)I want to be able to load the external swf, and then access it's library objects via actionscript in my main swf file.
View 6 Repliesas3 is new for me, but i would like to write a script using loader to load an external swf, and control the external swf. But I find I can't control the swf, because there are no fixed instance name. here is my script.
[Code]...
When i try to load an external swf file using Loader.Load(); The swf starts playing even before the init event is fired. Is there any way to stop the swf from playing atleast until the init event or complete event is fired?
View 1 RepliesI'm loading (and unloading) external swfs into a holder in my main document. However, they seem to load perfectly the first time, but after that, they load at a different x and y. I've seen this happen before in someone else's file, but I'm not sure what the solution is.
This is the bare bones of it:
Code:
sceneHolder.x=0;
sceneHolder.y=0;
addChild(sceneHolder);
[Code].....
Okay so I am trying to load external swfs which load videos dynamically.
I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error
[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]
Is there some specific method to casting within external swfs?
My code for loading the videos is this:
[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);
[Code].....
How I can make this script lo load mp3 files via an external xml file like music.xml and if is possible to load random
Code:
music = new Sound();
music.onSoundComplete = function() {
[code]....
I've got a small (more than 100 hours of thinkwork up till now!) problem I can't seem to solve:
I want to populate an external loaded swf with an dynamicly loaded xml fil (loaded from my config.xml).
[Code].....
how do I get the external xml into the external swf as a variable for the actionscript in the external loaded swf (So I just want to put the path in the script in my external swf...).
I'm trying to get an external swf to load when the flv content of another external swf finishes playing.
I've only been using actiosncript 3 for about a week and I've got to this point from tutorials, so my knowledge is limited.
This is what I've got so far:
Code for External swf (with flv content):
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
motionClip.playPauseButton = player;
[Code].....
I'm starting to get an understanding of how all of this works, but it's all to new to me at the moment, so I'm sure I've approached it from the wrong angle.
i have a main.swf and i load menu.swf into main
[Code]...
this works right on its own but when using addchild in main.swf the menu loads the button events work, even click but it will not load the associated file. If i place the menu code in the main.swf it loads all required files. QUESTION How do reference menu.swf when loaded as an external swf?
I have a "about.swf" file that loads a CSS file and formats some dynamic HTML text. On its own, it works fine...but when it gets loaded into my "Main.swf", it doesn't work. What am I doing wrong? Is there a bug that doesn't let you load CSS with external .swf's?My style sheet and index file holding the "Main.swf" are all on the root level of my site. The "Main.swf" has a "holder_mc" clip that I load the "about.swf" into which has the CSS formatting. When loaded into "Main.swf", it doesn't work.
View 9 RepliesI'm sure this question has been answered but I have been looking everywhere and all I can find is how to load an external SWF but not how to unload it. I come from a basic knowledge of AS2 and it was easy for me to load using levels but I have run into a wall. I have a main swf and to keep the initial filesize small I would like to split some image intensive sections out and load them when needed.
View 6 Repliesi have uploaded everything. and yet i cannot send new messages. i tpye the message in and hit send and it disappears. also i keep hearing about some permission 777 thing what is that. how do i change it to it? example. [URL]
View 1 RepliesI have problems in running a projector under win 7. My projector load several SWF and each of them load different external MP3 that plays during the show.Under Win 7 sometimes the sound (Mp3) stops.
View 5 Repliesi have a scen named preload, and i want it to load an external .swf, but once it's done doing so to move on to frame two so far i have
[Code]...
and this doesn't work, i think my problem is the "if(this.getBytesLoaded()" but i am not sure how to identify if the movie is loaded, maybe with true and false? but i am not sure how i would do that,
I am currently working on a project that involves using sockets. I am using Flash CS5 and AIR2.0. I am also using another program that will be acting as the socket server (Esperient Creator).I have successfully SENT socket commands from my AIR app to the server.What I need to do is RECEIVE socket commands within my AIR app from the server program. I read somewhere that this was a new feature for AIR 2.0. If anyone has any insight on how to get this to work.
View 1 RepliesI'm working on a game in flash right now, written in actionscript 2, where bottles fall from above at random speeds, and the object is to shoot the bottles as they fall, and every time you hit a bottle a different message appears on the screen for a brief period of time before disappearing. So far I'm able to make the bottles fall and I'm able to shoot and break them, but I don't know how to work it so a different message appears each time you shoot a bottle. I'm attaching the file of what I have so far.
Attachments: Bottles!!!!!!.fla.zip (45.0 K)
I'd like to capture the feedback I receive in the Output panel when testing something in the Flash IDE, and display it in a TextArea included in my movie when it is compiled and running in a live environment. Is there any way I can make this happen?
View 4 RepliesIs it possible to deserialize the AmfPhp messages while remoting? They are in binary, and assuming that amfphp understands what they are I should be able to decode what it s.
View 1 RepliesIs there a way to log debug messages with Actionscript 3 like log4j? i want to log user interactions in a Flash app(all the events and the user inputs).
View 2 RepliesI'm wondering if JavaScript can post JSON messages to Flash? and if so can you please provide an example or a link to one?
View 2 RepliesI have a system where clients connect via http streaming channels and use Producer and Consumer classes to dispatch and receive messages. I need to test the latency of messages in a way that adequately simulates real-world usage when the server is under load. I have 3 ideas for how this may be accomplished. Has anyone tried and succeeded or failed with these methods?
View 1 RepliesI am writing an XMLSocket Flash program and basically on startup, i call a funcion initialize, which connects the socket to the server and sends a message. Now I need to to wait for several startup messages from the server before I can continue. I need this to time out if they are not received.
View 2 Repliessomething I seem to be seeing a lot more these days are error messages from flash.. often on quite major websites - and now that I am using AS3 they are also starting to appear in mine! (still at the testing phase though)
Often the site continues to run fine in spite of the error, but its a real bad look to end users, clients etc. Is there any way just to turn error reporting off in the flash player or in a published swf?
I know it would be better to fix the errors but some of them are really dumb. Like the one that is plaguing me at the moment - I have some objects that check the "relatedObject" property on rollout. Sometimes they are quite near the edge of the stage.. if you click and then roll right out of the browser window it says:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at nxx_fla::main_1/clip_rollout()
set up a way for users to send him SMS messages to his phone from a from on his website. I figured rather than bugging him about how he did it, I'd post here. So, how is this achieved?
View 2 Replies