ActionScript 2.0 :: LoadMovie In The Target _root.as. And The Url Is Dynamic
Nov 26, 2005
I want to loadMovie in the target _root.as. And the url is dynamic: _root.as.loadMovie(_root.link) Unfortunately the movie isn't loaded I tried to convert _root.link to string but nothing
View 13 Replies
Similar Posts:
Apr 6, 2009
When I try to use loadMovie, it will not load to an instance (unless it's something that's in the same directory). I figured this was some sort of security thing, but I was able to load the movie into _root just fine.
View 1 Replies
Apr 29, 2003
ive loaded a movie into another and postitioned it..
_root.abc._x="400";
_root.abc._y="200";
_root.abc.loadMovie("trig_sub.swf");
but once it is loaded where ever i have used _root in the loaded movie (trig_sub.swf) it nolonger works eg..
on a button i have
on(rollOver){
_root.menu.stop();
}[/AS]
bnut this dosent work when it has been loaded into instance "abc" in the main movie...wat do i have to use instead of root to point at an instance?
View 14 Replies
Feb 16, 2005
so, i'm making an animated rollover, and i get an output error that says this:
Target not found: Target="_root.icon01" Base="_level0"
i have no idea what the base="_level0" means.
View 1 Replies
May 28, 2007
Just wondering how this is done within an "if then" statement. I need a code like
if (_root.frame = "home") then {
this.quickHome.onPress = function () {
_root.gotoAndPlay ("homeToContact");
}
}
I know the first line isn't going to work, but just wondering if someone knew of a code that would?
View 2 Replies
Aug 14, 2007
I'm using this complex rollover button on my site i found here --> [URL] What i'm looking to do is have this effect trigered when a second button is rolled over as well. Is there a way to target this movie clip effect from the _root timeline? I was able to achieve this halfway by using labels but I am not able to reverse the animation on roll out with this method.
View 2 Replies
Apr 5, 2009
got a file that contains scripting that creates and animates a carousel effect in a faux 3d space - it all works great on a mac and some pc's but on a lot of pc's it doesn't play nicely! i have added some script to carousel script so if the carousel item is clicked it rotates that item to the front and then loads the specified swf into level 1
pc's don't seem to recognise the alignment of the loaded swf and brings it in half cropped off the screen - appearing in the top left of the stage area.how do i tell the loaded swf to centre in the middle of the stage just like the rest of the elements in the movie? how to make the target mc sit at the highest level/depth - in other words above the carousel? this is my onclick script:
Code:
function released()
{
output.text = this.txt_label.text + " has been selected";[code].........
View 1 Replies
Apr 9, 2003
how to target a mc properly after loadMovie. I have a swf where an mc is copied 15 times (so a 4*4 grid is formed) like this:
Code:
Movieclip.prototype.duplicateMC = function(){
amount = 16
x = 1;
y = 0;
[code]....
This works fine. However, when I load it into another movie with loadMovie, it doesn't work anymore because of the _root that I use.
I thought that using _parent["copy"+i]._x += 50*x; would do the trick, but it doesn't.....
View 14 Replies
Jul 17, 2009
I want to load a movie and have it start on a specific frame within that movie instead of starting on frame one. The code I have now is this:
stop();
loadMovieNum("mc2.swf", 2);
I want it to start on the frame label in the movie called "in" instead of on frame one. How the hell do I do this, I looked everywhere
View 1 Replies
Nov 14, 2004
Im new in actionsript and I have a problem with _root. I have a swf. with two MC en the main stage: Mc_menu and Mc_pages. The Mc_menu has several buttons with the code "_root.pages=2" which moves the different pages that are in the Mc_pages. If I publish the fla. it works perfectly. Now, when I wanted to load this swf into another with "loadmovie" with an empty MC the pages stop working... I guess is because of the rutes, but i don�t know how to refer them correctly. What I have right now is: in the main stage an empty MC and a button with the code:
[Code]...
View 2 Replies
Mar 11, 2003
So I am tring to load a movie into a target. It is loading but all of the scripts are not working (some of the scripts are working). All the scripts work if I load the movie to a level instead of a target. But I need the movies to be in a target because of the motion that I want to apply to the loaded movie
View 1 Replies
Apr 11, 2003
I have been loading an swf to target by using namedMC.loadmovie ("path+name", _levelN) altho I notice there is another method suggested here about using createEmptyMovieClip so it is all in script. Can anyone suggest a way of preloading all my separate swf files and then playing them at various specified points, like when the previous animation is finished/finishing. I have tried things like altering the _alpha and using namedMC.stop(); and namedMC.play(); but that aint working.
View 1 Replies
Jul 9, 2002
I want to load a movie loadMovie ("target", _root....) and so on. My question is can you target a specific scene in the load movie command?? I have a movie with a button that loads a new movie into level 0 so it replaces the first movie. Now in the new movie I have a button that unloads the new movie and loads the previous one. But it starts it off at the veru beginning of the movie. I want it to pick up where the first button click took place.
View 2 Replies
Jan 14, 2010
In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.
var result_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
var broj:Number=0;
var logo = new Array();
[Code].....
View 1 Replies
Feb 27, 2003
im lookin to make this so that the points taken from the _root.cargo are multipled by 10 and added to _root.totalscore
[Code]...
View 2 Replies
Aug 26, 2003
I've got a button in a movieclip that, when pressed, I want to control the timeline of another movieclip (instance name: video).
I enter the following code on the button and it does nothing:
on(release) {
video.gotoAndPlay(2);
}
Now I suppose the path is wrong but, when I click on the "Insert Target Path" icon in the actions panel, the only thing that shows up in the window is "_root". It doesn't matter which movie clip I am in, when I click the "Insert Target Path" icon, all that shows up is "_root".
There is a heck of alot more to my movie than that, where are all the movieclips? The "video" instance is nested 3 movieclips deep. I've tried entering the path manually too, but it don't work.
View 10 Replies
Sep 14, 2004
if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();
View 16 Replies
Nov 27, 2006
Description: HTML page containing MC1 and MC2. MC1 has container MC-C inside and MC2 has button with AS ... loadMovie ("MC3.swf", _root.MC1.MC-C") Problem: when I hit the button nothing happens When I assigned this script to a button inside MC1 (excludeing "MC1." from target value) than it works. Would anyone know how should my target value look like to achieve desired load into container within MC1?? conditions: (MCs 1,2,3 are in same folder, with correct instance names, have tryed few variations but no success)
Q2: Kirupa's Image Pan - is there any way how to integrate whole thing inside another MC without messing it up like me?? Cause I have noticed that it is fixed to "stage.width" and stage of the MC I wanted to plece it is a bit different.
View 2 Replies
Jan 29, 2009
have a hard time seeing why the code isn't quite working:on frame 4 I have:
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
var image:MovieClip = mc.createEmptyMovieClip("image", mc.getNextHighestDepth());
image.loadMovie("gallery1.swf");
[code].....
View 1 Replies
Jan 26, 2009
I just recently began migrating from AS2 to AS3, and I have of course realized that I can no longer move the "_root" by changing the _x and _y positions of the _root (which no longer exists in AS3). How can I do this in AS3 (specifying _x, _y, _z possibly of the "_root")?
View 2 Replies
Sep 3, 2009
I have two swfs. swf-1 is the user display. it calls loadmovie swf-2 - loadMovie([URL]); swf-2 has webservice that returns data to be displayed in swf-1 Everything works fine if I have swf-1 and swf-2 on the same [URL]. If swf-1 is on [URL] and swf-2 is on [URL] the dynamic text is not being displayed in swf1. I have the fonts embeded in the dynamic text field. The mc's that hold the dynamic text are being created (have a graphic that is visible), just not seeing the text.
View 4 Replies
Jan 29, 2010
I've a problem working on a project involving multiple language changes using the loadMovie function. Here's the setup: The project involves several pages, all of which are separate swfs. These are located on an existing website, so everything's already created (I'm just updating). On the pages are Static text fields. My task is to incorporate language buttons that when clicked, change the language. For example, the language buttons are English, German, Italian, French, Spanish. If I clicked the Italian button, all text fields change to Italian - and remain so until I click another button. The default language is English.
I changed the Static text fields to Dynamic text fields, gave each an instance name, and placed variables for each instance in a separate language swf (example: langEnglish.swf, langGerman.swf, langItalian.swf). The default language file - langEnglish.swf - is loaded in the first frame using the loadMovie function. When a language button is clicked, it loads a new language swf (they load into an empty movieclip, btw). Clicking the button also updates a variable called "language", so as to remember the current language. The ActionScript for the various variables in the language swfs looks like this:
[Code]...
View 2 Replies
Jul 30, 2009
I am creating a site where it is loading dynamic images and text within the SWF. Currently for images I am using the loadMovie command. This works typically when I do not have images of significant size, however I am having trouble getting the movie to check up if a larger image needs to be loaded. Here is my current code below, it does not seem to be checking to see if the clip is loaded and simply ignores it if the timeline reaches the actionscript before the image is loaded. _root.generalVars.homeImg is a variable that I define outside of flash
//creating empty placeholder
this.createEmptyMovieClip("tester",1)
tester.onData=function(){
[code]...
View 2 Replies
Jun 22, 2010
I admit I'm fairly new to flash, but I've almost finished an entire RPG battle system complete with music [etc. etc.] - but my problem is trying to add a preloader.. I have a basic page which says "Loading" and has a Dynamic text box below which should read the Variable "_root.loadText". In the first frame I have this code:
[Code]...
and in the second just "_root.gotoAndPlay(1);" for the updating process. I'm sure that's all okay. But when I export it, then upload the swf file to somewhere like SwfCabin to show people for testing purposes, they have to wait on just a blank white screen for 1~3 minutes.. -note: I use both Adobe flash CS3 [at home] and Macromedia Flash 8 [at school] - I can stick to just CS3 if needed.
View 2 Replies
Sep 5, 2005
I am using PHP and XML to make a dynamic list of pictures. Each picture also has attributes with information concerning that picture. I have successfully loaded these images with the following code:
Code:
for( var x=0; x<Card.length; x++ )
{
loadPic.createEmptyMovieClip("pic" + x, x);
[Code].....
View 3 Replies
May 16, 2003
(I previously posted this thread in Flash MX Forum but I think it should be here instead. Sorry) Funny behaviour...I'm trying to load an external MC containing dynamic text (MC-Clip.swf) to a MC empty holder (MCimport) within my main/parent movie. This piece of AS is attached to a button (to call the dyn. txt clip):
on (release){
_root.loadMovie ("MC-Clip.swf", "MCimport");
}
With this, the dynamic text gets loaded indeed... but Fullscreen into the parent movie, and not into MCimport (where it should be). Now... I don't understand why, but the thing is that if MC-Clip.swf contains just static text (and change accordingly the text properties to static text in the holder MC), it gets loaded in the right place (MCimport) within the main/parent movie. (?!??!) And this is the piece of AS attached to the button (to call the MC containing the static txt):
[Code]....
View 4 Replies
Jan 13, 2011
I have an XML file with a path to a number of images which I load to the stage.
Code:
public function popStage():void{for(var i=0; i<xml.projectInfo.length(); i++){var picLoader:Loader = new Loader();
var picHolder:Sprite = new Sprite();
picLoader.load(new URLRequest(String(xml.projectInfo[i].image)));
[code]....
What I want to do is bring the infoBox to the top Index than bring the image to the top index after that so that the logo is over the infoBox. The infoBox is no problem but I can't seem to get the code right for the target to have the top index. I have tried a number of variations and done some research but no luck. [URL]
View 5 Replies
Nov 16, 2009
I have a dynamic text field inside a movieclip. I need to target the text field using a variable.I'm loading the text and putting it into a string:
var page:String=pageDetails.page.toString();
I have a variable that gets updated:
i++;
[code]....
View 4 Replies
Sep 5, 2011
I have been working with AS2 for a long time, but are a total newbie when it comes to AS3.On my stage I have placed an empty MC with instance name "holder".In my library I got a MC linked by the name "sektor".
"sektor" has several movieclips and buttons with instance name, e.g. "corner1", "corner2", "corner3"....
I have nested "sektor" inside "holder" by writing this code:
Code:
var newClip:sektor = new sektor();
newClip.name = "sektor1";
holder.addChild(newClip);
What I want to achieve is to control those movieclips inside "sektor" by turning dem on/off.I have tried to do this with this code:
Code:
holder.sektor1.corner1.visible = false;
but I keep on getting this error:
"TypeError: Error #1010: A term is undefined and has no properties."
I have figured out that by tracing holder, I know it�s excisting (Result: [object MovieClip]) but if I try to trace holder.sektor1, I got the result "undefined". So it seems like "sektor1" is not excisting. Why?
View 7 Replies
Mar 18, 2010
Here's my code:
Code:
// Set the position and nodecount variable here
var position = 50;
[code]....
View 6 Replies