ActionScript 3.0 :: Click On Object And Then Load New Swf File?
Sep 14, 2011I would like to click on object and then load new swf file. Is it possible?
View 2 RepliesI would like to click on object and then load new swf file. Is it possible?
View 2 RepliesUsing AS3.0, how do I load an external swf file when I click a button? Also, how can I get rid of that swf file when I click a different button on a menu?
View 1 RepliesWould like to know how can i load another .swf file when click on the menu.swf? What is the actionscript like?
View 6 RepliesI am wanting to load an SWF file into another movie on the click of a button. I can do this but I want the new SWF to fade in and then fade out when another SWF is loaded.
I'm not to sure where to start maybe using tween transitions??
i am trying to load vars from a text file into a load vars object.
var kitchentext = new LoadVars();
kitchentext.load('moccastext.txt');
Once in the object, i thought i could reference them like so
kitchentext.name
kitchentext.style
but i am having trouble doing this.
i have a textbox called displytext.
_root.displaytext.text = kitchentext.name;
doesnt work
In Flash, the BitmapData object can be used to store bitmaps in RAM, you can later draw them to a MovieClip using the beginBitmapFill() method.
How do you load an external bitmap file (.jpg) into a BitmapData object?
Is it possible to load data from another shared object from another flash file? if so how?
View 1 RepliesI would like to first add the xml to my flash. Fine I can do this.But I have a number of buttons, where when I click say CW1, i get the information from the XML file with a node of CW1. I have all the xml set up fine.As I have about eight different postcode types.
ST, CW, CH, TF, WV, WS, DE, SK, SY, and each of these may have numbers that follow, i.e ST1, ST2, ST3 and so forth.
So I can only assume that the postal area could be the main nodes, and the numbers inside the child nodes, am I right thus far.o how can i load the area of the xml file into my text area on mouse click, pulling the information relating.
I am building a simple game in which you must click on a square to activate it, meaning when you click on it you have control of its movement. I then want to be able to click on the square again so that you don't have control of it, and then you can click on another object in the game.
View 3 RepliesI need a counter click button that can storage every click on a txt file or something..
View 1 Repliesfor example i have object one a Textinput haveing id="
id_txtBox
", and a panel having a lot of children(TextInputs, Trees, Buttons etc.) if user is editing text in one of panel's child and then clik on "id_txtBox". can we get to know
[Code]...
I found myself loading a new XML file every day and so decided to create a small class that will load the xml file and return it.The class is loading the file but when i try to return it to a new xml object in the document class it doesnt load it.I think that it's something to with the return being in a nested function but i tried a few ways and non seems to work.
[DOCUMENT CLASS]
loadXML:LoadXML = new LoadXML();
myXML:XML = new XML(loadXML.loadXMLFile("gallery.xml"));[code].....
I'm trying to load a swf file within another swf file and then load different swf files from buttons.This is the code I'm using, but I can't get any of the swf files to load.
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;[code]...........
If you click topic1 I want topic1.swf to load, click topic2 to load topic2.swf etc. What I am doing wrong with var url:String = "topic"[i]+".swf";?
[Code]...
I dont know what Im doing wrong, I have this for my servicios buttom:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "servicios";[code]....
and the same AS for my "portafolio" buttom, of course I changed the swf name.When I clic for example "servicios" it loads ok but when I clic after that "portafolio" it doesnt load, and viceversa, if I clic "portafolio" loads ok but after that if I clic "servicios" doesnt load,
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replieshow do I stop the preloader to LOAD an item when I click in another item to load.. Is that possible? Here in my example the preloader runs perfect, but when I start another mouseevent CLICK the old loading still active (on BANDWIDTH PROFILER, but the Preloader Movie Clip is removed).. How Do I stop the event when another different loading starts?Not visual aspect but functional.
View 1 RepliesIf I "Right Mouse Click" on a Flash SWF file embedded in a page and click "Print" it prints just the flash, in perfect colour etc etc..How can I achieve this exact operation, but as a button in Flash? So it prints just as if I did the above operation.
As an extra, if you know how - Is there any way I can default the page to print out "Landscape" too ?
Attached is an idea where I want the viewer to click on the box and the corresponding flv (swf) will load into the box with a preloader?
View 1 RepliesAlright so I basically spent a decent amount of time working on this video skin. The thing is it is loaded under this big navigation bar. But in the navigation bar is just a left and right arrow. Other than that, just white space you could say. Anyway that i could click through that white space? Making it so that I could click on my play and pause through the white box?
View 5 RepliesOk. So heres what I am trying to do. I want one movie clip to follow another one that I move around with actions on the main timeline.The problem is that the follower clip is linked to a class file and I cannot find a way to find the players position.
[Code]...
I'm using the following section of AS:
onClipEvent (load) {
//sets up a sound object, loads the .mp3 file and starts the sound.
this.faTrack = new Sound();
[Code].....
You do not need to import the sound file into Flash. You just have to make sure
that the .mp3 file is in the same directory as the .swf file. You should also make
sure that the .mp3 file is named the same as faFile in the FlashAmp .txt file.
The benefits of this method are that the .mp3 file only downloads if the user gets
to the bit in your Flash file where you call it. It also plays as it streams although there will be a slight delay as it buffers (FlashAmp will take account of this delay as the arrays are based on the position of the sound).
i wanted to load a random swf into a mc, as ever things have changed and I now want to load a random mc from my libary into a mc when a button is clicked.
View 1 RepliesI'm using the following section of AS:[code]You do not need to import the sound file into Flash. You just have to make sure that the .mp3 file is in the same directory as the .swf file. You should also make sure that the .mp3 file is named the same as faFile in the FlashAmp .txt file. The benefits of this method are that the .mp3 file only downloads if the user gets to the bit in your Flash file where you call it. It also plays as it streams although there will be a slight delay as it buffers (FlashAmp will take account of this delay as the arrays are based on the position of the sound).
View 1 RepliesI have a menu that already loads in images via an XML file on a menu, what I am trying to do is when an image/meni Item is click I would like to load in an swf into the same place as the image Item loads into! am I making any sense.
on a click event, do I use in the XML file the <link>link to swf</link>?
this is what I have in my xml file that loads in the images so far [code]...
Wondering which gesture to use to be able to allow the user to touch the object with their finger, slide and release the object and allow the object to continue to move across the screen once they release the object. This would all be in Air for Android as well. I don't want to move the stage itself, just an object on the screen.
View 1 RepliesI have a color wheel with a triangle inside. I want the user to click and drag the triangle on its center axis. This way, the triangle shows the user the correct color triad.
I can't even rotate anything.
how 2 bring menu just like in [URL] on right clicking any object..
View 2 RepliesI have the below function that is called when a button is clicked, however nothing happens. For testing purposes, I disabled all of the code within the function and get put in: iObject._y = EndPos; and that worked so I know the object is being passed correctly.
Code:
function SlideObjectDown(iObject,EndPos) {
_root.onEnterFrame = function() {
yMC = getProperty(iObject, _y);
[Code]......
I need to click over an object in Box2D. Need to know which object i have clicked, and to delete that object. How could i know, which object i have clicked?..
View 1 Replies