ActionScript 2.0 :: [fmx] Loading Into A MovieClip Via A String [renamed]?
Apr 23, 2004
I'm trying to get it to load into one of the movies that its creating but it doesn't seem to like the string, if I manually enter _root.holder_mc.mc_0 it works fine.
Code:
#include "com.qlod.LoaderClass.as"
var depth = 0;
im trying to load an .swf movie (or file which ever it is) into my main movie...well the way im doing that is by clicking a button and then the movie loads...then im wanting to be able to click another button and load a different movie BUTTTT when i do this right now the second button's movie loads right over the first buttons movie!! what do i do?!?
[URL]the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...
basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!
This matter is something I haven't been able to solve for long and now I'm really desperate to find out an answer. Here's a link to a very simple zip file (as example) containing the conflictive fla and other files, for those of you who may want to have a look at it. TO SIMPLIFY THINGS: It seems that whenever I use a couple of AS instructions to load some Dynamic text from a text file, Forms which are based in formmail, stop working (no matter if these forms are made of dynamic or static text). Why??
INTO MORE DETAILS: In the attached fla example file here, I've simplified things very much by just leaving 2 Forms (one made with Dynamic text and another one without any dynamic text on it). Very peculiar, if in frame 1 I call the variables from the text file: [AS]webcontent= "File.txt" loadVariablesNum (webcontent, 0);[/AS] the 2 Forms stop working properly: The static one doesn't even seem to submit data and the dynamic one, it seems data has been sent but data is never received. As soon as I delete these 2 lines of AS, they work properly again (although of course, no words can be seen in the Form made with dynamic text).
This matter is something I haven't been able to solve for long and now I'm really desperate to find out an answer.Here's a link to a very simple zip file (as example) containing the conflictive fla and other files, for those of you who may want to have a look at it.TO SIMPLIFY THINGS:It seems that whenever I use a couple of AS instructions to load some Dynamic text from a text file, Forms which are based in formmail, stop working (no matter if these forms are made of dynamic or static text). Why??INTO MORE DETAILS:In the attached fla example file here, I've simplified things very much by just leaving 2 Forms (one made with Dynamic text and another one without any dynamic text on it).
Very peculiar, if in frame 1 I call the variables from the text file:[AS]webcontent= "File.txt"loadVariablesNum (webcontent, 0);[/AS]the 2 Forms stop working properly: The static one doesn't even seem to submit data and the dynamic one, it seems data has been sent but data is never received.As soon as I delete these 2 lines of AS, they work properly again (although of course, no words can be seen in the Form made with dynamic text).
Both submit buttons contain the following AS: [AS]on (release) { subject = "Customer Form from your Web";
I have a Flash MX 2004 program that can't read .txt files from my server. Is it possible that it needs special permissions to do so? I'm using a free hosting plan from Godaddy (comes with the domain name plan), is there any way for my to change my permissions?
EDIT :The thread has transitioned into [3d collision detection with as3 ] - check last post I'm in the making of my molehill game, and have now approached a little problem: I have my Terrain and my Mesh(character model). Moving/walking the mesh around was simple enough (X,Z). But when i added elevation to the terrain, i have to add movement in Y depending on the Y pos of the terrains vertices. My terrain does not have a fixed grid, and eventually might not have equal amount of rows per col. The way that i receive the verticeData is through one long vector.
i have an animation that its something like a safety lock that make an entire loop, so i want some script that when i click lets say "about" it goes to "about" and stop, and them when i click lest say "contact" the animation goes to contact but without start over, i mean, i want to that to start from the last point, i dont know how do it in action script?on realease if is at "frame name" goto and play "frame name", and stop at "frame name".
For some reason my first if statement is allways fulfilled, even when I set the varaiable to different values, I cant work out why. My variables are not used anywhere else in my site.
_global.roller=0 if (_global.roller=5){ var speed = 0; }
I'm designing a site that has 4 parts (for the sake of explanation)Part 1 is the menu which will be it's own .swf, which I would like to have align to the top center of the browser even if you resize the browser. Part 2 is the content which I'd like to align to the center of the page, even when you resize the browser. This is also an .swf which corresponds with the menu.swf Part 3 and 4 don't have to be .swf's, but are just graphics in the top right corner and the other in the bottom left that stay in the corner even when the browser is resized.
I have an XML based photo gallery which I'm using to present my portfolio. I'm trying make the "title" to work as a link. I am attaching the two files: FLA and XML. I'm not including the pictures.
Me and my friends have done a game and when we export it you can scroll through the whole game by pressing Ctrl + Enter.So my question i simple: How can we block Ctrl+Enter from skipping frames??
Im trying to take a variable from a php file and insert in into action script. What I'd like to do is take the value of a url for example [URL]and insert it into Action Script to dynamically load a movie inside a main movie.
I am using Flash CS4, AS3.I have a movieclip "MC1" and a Component "B1" from the 'Component Library' on my main stage. From code inside of MC1, I would like to create an empty movieclip "MC2". Then, still from code inside of MC1, move(cut and paste-like) B1 into MC2. I have failed in my attempts thus far...
to display the items from an array in a certain way, in two columns for instance so that they fit into a dynamic textfield or maybe to force a break when theyre displayed in one row
I am trying to load a movieclip from the library onto my stage. But the name of the movieclip is read in from a user-entered text field. Typically, to load a movieclip from the library named, Bee, I would do the following:
var mc:MovieClip = new Bee; // this works.
But the name of my symbol is in a TextField. The following do not work:
// Attempt #1: var mc:MovieClip = new userfield_txt.text; // No Good // Attempt #2: var str:String = userfield_txt.text;
[code]....
I realize the new operator requires a Class data-type, so how do I get the value stored in a String or TextField into a Class type?
ok.. I really feel like pounding my head against a wall here. I'm importing variables from a regular txt file. I have dynamic text fields on the main timeline that pick up and show these variables. I know that they are coming into the player at _root, or _level0
rows="5"; is one of them. When I do a debug/List variables, that's what it shows me.
I'm trying to load a SWF movie into a target movieclip called blankmc. The SWF movie is loaded from an absolute URL (eg. [URL]/img/20042005113934movie3.swf ) My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG! Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?