ActionScript 2.0 :: Things Won't Work When Loaded Dynamically
Mar 26, 2004
I want to use this magnifying glass as a feature in a slideshow I'm making. magnifying glass I am loading swfs into an empty mc using
on (release) {
loadMovie("3.swf", "_root.textframe");
}
The magnifying swf works just fine by itself, but when loaded into the mc in my main swf, it doesn't work. I figure it has something to do with parent/child relationships in the code...and I tried a few permutations. to no avail.
View 7 Replies
Similar Posts:
Mar 26, 2004
I want to use this magnifying glass as a feature in a slideshow I'm making.magnifying glassI am loading swfs into an empty mc using
on (release) {
loadMovie("3.swf", "_root.textframe");
}
[code]....
View 7 Replies
Mar 6, 2008
All the tutorials and tips I have seen around about AS2 and XML are based on very simple XML sintax done in purpose for flash, but when the XMl is a little complicated things doesn't work for me... I have an XML that looks something like:
[Code]....
View 4 Replies
Nov 4, 2010
I am trying to delete a bunch of different things from the stage all at once.I have 3 dynamically created text fields and 2 dynamically created movie clips.I added them to the stage through my document class buy creating them, editing their properties and then...
addChild(myText1);
addChild(myText2);
addChild(myText3);
[code].....
View 3 Replies
Feb 8, 2011
In my game, Ive got a HUD, (heads up display, life bar, points scorer etc...) and when an enemy comes onto the stage, the lifebar is appearing behind everything else, and it should really be the thing that's infront of everything else. Is there like a line of code and a function or variable I should declare or import that allows me to create depth and put my lifebar at the front.
View 2 Replies
Aug 16, 2005
Im having a problem referencing AS created movie clips. I have a for loop that creates movie clips, names them, but when i want to give them all the same onRelease event, it doesn't work. Nor does the move command (_y value) work... The following code would make me 5 boxes, which would take viewer to the same page if clicked...
[Code]...
View 2 Replies
Mar 16, 2012
This is a very basic question. I'm rather new. Just wondering how one creates and manipulates dynamic objects, when they were designed in the library- not dynamically.
I want to make symbols in the library (linked to classes) and then dynamically create them and manipulate them in the actionscript code. But when I create them in the code, any instance names of sub-symbols cannot be referenced...
The instance name is "instance244" and not "leaf_text" which I set under [properties>instance name]
View 5 Replies
May 15, 2007
I've completed all 3 tutorials listed on gotoAndLearn and I've got the following code.[code]So as you know I've got my 10 items dynamically loaded out of XML, as well as the MC Box, which is centered on the stage.My question is, how would I get the carousel to rotate around the centered box. I'm not sure how to adjust the depths to go behind the centered mc. I know [code]is probably where I need to make an adjustment, but I'm lost as far as what to do.
View 2 Replies
Jul 4, 2007
I have flash player version 8 files(AS2) and Flash Player 9 file(AS3) as main clip - can I load these AS2 files into AS3 file and have them working as they should?
View 9 Replies
Jun 17, 2009
I have been trying to get a url to work in a xml file that is being loaded into my swf. I have tried using cdata and i was able to get it to wokr once but then it wouldn't work when i placed it lower in the file.
<comment><![CDATA[Blah blah blah Read more here: This mthe first news. Look at <a href="www.blabla.nl">www.blabla.nl</a>. ]]>
</comment>
View 2 Replies
Nov 16, 2009
I've been trying for 2 days now to find the total number of frames of a dynamically loaded .swf.
Here's an example code:
Code:
var loader:Loader = new Loader;
loader.load(new URLRequest("mop.swf"))
master_mc.addChild(loader);
[Code]....
View 3 Replies
Aug 8, 2011
I've used AS2.0 to build my site. I have several .jpgs that I'm loading dynamically on my flash site from my server. For some reason only some of the .jpgs are loading pixelated. I've tried to look up solutions to this, but I'm not exactly sure where a quality=best or smoothing=true script should be placed. And I'm equally as puzzled as to why only some of my .jpgs are loading pixelated? This is very frustrating, this is the code I'm using to load my images:
loadMovie("Wave.jpg", _root.image_box_9);
View 1 Replies
Oct 2, 2008
I've been charged with the crusade of making a prettydifficult (to me) slideshow. This is what the client wants:1. externally loaded images2. externally loaded text (comments for each image)3. the timeline of the slideshow to be dictated by the numberof externally loaded images.Now, ive made tons of slideshows with 1. and 2. before, butthe request for 3. totally screws me up. I usually have a setamount of images that will be used, and accordingly, set up thetimeline using empty movie clips that use the loadMovie command todynamically grab images from a specified folder. They fade tweenover each other and everyone is happy. However, if I were to make amovie with item 3's parameters, I can't define a predeterminedtimeline. Im sure this can be done with actionscript but I am 100%c
View 1 Replies
May 31, 2011
I have a TargeMC that i load another .swf file into. is it possible to have a button inside the loaded .swf that changes TargetMC swf file. sence it is dynamically loaded i dont know how to referance it from the loaded movie inside.
View 7 Replies
Aug 8, 2011
For some reason only some of the .jpgs on my flash site that are being loaded dynamically are loading pixelated. I've tried to look up solutions to this, but I'm not exactly sure where a quality=best or smoothing=true script should be placed. And I'm equally as puzzled as to why only some of my .jpgs are loading pixelated?
On the timeline where the movieclip is located I have the following code:loadMovie("Wave.jpg", _root.image_box_9); On the movieclip itself I have this code in order to create a fade in:
onClipEvent(load){this._alpha = 0;speed = 10; // change this to change fade speed}onClipEvent(enterFrame){loaded = this.getBytesLoaded()/this.getBytesTotal();if(loaded == 1){this._alpha += speed;} else {this._alpha = 0;}if(this._alpha >= 100){this._alpha = 100;}}
View 4 Replies
Mar 22, 2011
There are any way to display dynamically loaded SVG in FLEX?
View 2 Replies
Sep 21, 2007
How would I scroll dynamicall loaded images. I would like to use XML but that not required.
View 0 Replies
Oct 8, 2010
I have dynamically loaded a video . I have removed the movieclip containing the video but the video is still playing. How can i remove the video as well?
View 3 Replies
Nov 2, 2010
I'm having problems accessing a function that I loaded from a MC I have in my library. Addchild and all that stuff works, I just can't run the function inside these dynamically added movieclips.[code]But the moment I add .myTest(); to them, the one in button clicked works fine, but the other one fails and causes a compilation error.
View 2 Replies
Oct 1, 2011
So this is my code so far. What I am trying to do is load the attribute of name into separate MC's that are clickable to then once clicked have the MC "txtBox" load what is in the attribute "link".As it stands now the name of the buttons is loading perfectly, but the trace is bringing back an undefined value
Code:
importXML = new XML();
importXML.ignoreWhite = true;
importXML.onLoad = function(success)
[code]....
View 9 Replies
Feb 16, 2009
I have a problem on resizing dynamically loaded swf in to a flash movie. The senario is
1) swf files are uploaded by users and the path of the swfs(flash banners) are taken in to the flash via flasvars.
2)so swf uploaded for each user is displayed in a loop
The problem is user may upload swf with different sizes.So I want to re size them to main movie size(ie 500*70) So what i tried to do is using MovieClipLoader and fix the size in onLoadInit function.But it gives really different sizes
than expected.
I cant understand why flash behave like this.
1)Can i resize the extaernal swf by using above method?or
2)what is the approach to re size dynamically loaded swf s?
View 2 Replies
May 7, 2010
I am new to Flash and am trying to make a page that has a fullscreen image gallery with individual thumbs along the bottom. I can more or less figure this out using some templates,but I need to do this for over 50 different projects, each with anywhere from 1-100 images.Is it possible to make more of a container that dynamically loads from a folder of images rather than have to make each one by hand?
View 1 Replies
Feb 12, 2004
I'm loading a pic using a config file like:
[AS]
onClipEvent (load) {
loadText = new LoadVars();
[code]....
View 9 Replies
Sep 4, 2005
i'm trying to copy an instance of a movieclip with a dynamically loaded jpgbut when i copy it, it looses the jpg
View 4 Replies
Feb 28, 2008
I just want to center my dynamically loaded movieclip, into it's container box. Not center on the stage, but make it center with the container_mc it loads in.
You know when you load a external swf, it loads from the top left corner. How can the loaded image or movie load centered instead of aligned top-left?
I am actually using the XML thumbnail gallery here at kirupa. [URL]
View 3 Replies
Oct 28, 2008
i have a dynamic textfield that is being populated from a data base...now, i'd like to be able to refresh that content either onRelease or using something like setInterval..I tried setInterval (see code below) but what i think is happening, being that xml has to load, is that it's hogging it down causing a flicker/pause and eventually not pull anything up(assuming from the lag/load)
Code:
setInterval (refreshbox, 1000);
function refreshbox () {
[code].....
View 2 Replies
Apr 17, 2009
I have several external SWFs loading into another SWF shell that contains all the files. The problem that I am running into is when some of the external SWF's are loaded into the shell the links stop working. I am using the getURL script to call a javascript function on one link and the same getURL on another link to call the mailto function.
When I test these files on my system and the web, both individually and in the shell, everything works perfectly. However, as soon as I embed the shell SWF into an html page these links don't work and won't do anything. But other links in different external SWF using the getURL script to simply navigate to another html page works perfectly.
View 1 Replies
Aug 21, 2009
I'm trying to center a dynamically loaded jpeg to the stage. The jpegs are loaded via xml to a movie clip called 'picture'. I have the code below which works fine on my computer, however, when trying it on a live server I sometimes get a problem where instead of centering the image, the image ends up with its left edge aligned to the center - which suggests that the code didnt get the image width properly. This only happens sometimes, not all the time so must be something to do with how its loading.(code is partly based on xml slideshow found on here somewhere)
Code:
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();[code].....
View 2 Replies
Jan 24, 2005
I have the following code to dynamically load an external JPG into a movie clip which is called target_mc, and get its width. As follows:
Code:
createEmptyMovieClip("target_mc", 0);
target_mc.loadMovie("images/dogs.jpg");
_root.onEnterFrame = function() {
[Code]....
Now, I was hoping to be able to duplicate this image several times, using something like target_mc.duplicateMovieClip(). Unfortunately, the duplicated clip doesn't include the dynamically loaded JPG. ie, it makes a copy of a blank movieclip.
View 1 Replies
Mar 26, 2005
I Am creating an image gallery and loading the images dynamically from a text file into empty movie clips which i am duplicating as needed. Thats ok so far.[code]...
View 2 Replies