ActionScript 3.0 :: Call Swf File Inside Xml File?
Jan 23, 2012I have downloaded a template from [url].... And there is a xml gallery for images. I want to use my movie in swf instead of one single image from slide show.[code]...
View 1 RepliesI have downloaded a template from [url].... And there is a xml gallery for images. I want to use my movie in swf instead of one single image from slide show.[code]...
View 1 RepliesI want to create a basic GUI for a touchscreen panel running linux grml with fluxbox so I'm very restricted. The Gnash player is also available. Is there a way to call shell/bash commands inside a Flash file (swf)?I want to create a GUI to control the mplayer and volume with the touchscreen... If it's not possible with Flash, what do you think is the easiest way?
View 1 RepliesI have a swf file sample.swf which has its actionscript class in Main.as. This Main.as has various objects declared as public in it. For instance lets consider an object myData of class MyData (in MyData.as).
I am loading this swf file in my AIR app using swfLoader. I want to know how do I access myData.func() using swfLoader.loaderInfo.content.
Im pretty new with the flash -> php -> mysql thing .. And I have made a script that sends some variables (that a user inserts in some input forms) with some var names, and then php handles it and insert it into my MySQL database its kinda ugly that a page pops up and opens the php page.So I was wonderin' if there is some way to send the variables to the php file and process them inside the flash file. without openin' some fancy browser window ?
View 3 Repliesi want to know how i can put a flash file inside a flash wbsite. i have found a tutorial [URL] that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf. how i can do that?
View 1 Repliesi want to know how i can put a flash file inside a flash wbsite. i have found a tutorial (search on google for 4906532_within-another-flash-swf-file.htm since i cant add links) that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf.
View 2 RepliesIs it possible to just create a .AS file and define constants inside of that file? Without making a new class, just so that all my classes can access these constants? This is of course possible in PHP, but are the scopes handled differently in AS3?
View 3 RepliesThe navigation on a website I am designing is an swf file embedded inside another swf file, the latter being the body of the site. The navigation buttons are themselves embedded inside movie clips inside the embedded swf file...
I'm sure I'm missing some sort of line of programming, however my actionscript skills are rudimentary at best. I have assigned a simple goto webpage behavior on each of the buttons. However, when I look at the site all put together, they do not work.
I want to list about ten videoclips (all mov-files) on my webpage and when i put my mouse over a clip it should start playing - when i remove the mouse from the clip, it stops. My idea was to use a swf-file that i can trigger using a URL like this: preview.swf?path=movies/movie1.mov
1. How do make my swf-file aware of the URL and then play the right file?
2. When the mouse is not over any videoclip i would like have the first frame of the mov-file shown - is this possible or do i need to make screenshots from all the mov-files then?
I was going through some sample codes and i found that some files had .as extension and others had .fla. One animation used only .fla to run and the other animation used both .fla and .as to run. My question is how do i call a .as file from .fla file?
View 5 RepliesI am using flash CS3 and the code I need is in ActionScript 3.0.
Suppose, I have a .swf file(viz., file1.swf). Now, i am developing one more .swf file(viz., file2.swf), in which I need to execute file1.swf when a CLICK event is listened on button present in second file(i.e., file2.swf).
I am facing some problem to call a swf file via xml when this xml file loaded it calls another swf file which includes a new xml file. now if i call this nested swf calling without xml it works but in case case of xml it is not showing the result. i m confused. how to nested xml file calling done in as2/as3.
View 4 RepliesHow do i call a swf file within a swf file?
on (press) {
loadMovie("2.swf","showmovie");
}
i tried using this code but... (this code is on a button in 1.swf and i want it to open 2.swf after click)
When I call a .php file from flash and then echo a value back to flash from said .php file flash does not read it. My code is like this:
[Code]....
Note that there is a successful connection to a database using xampp as a server.
I'm a complete newbie when it comes to actionscript. Basically for a uni project I have to design an MP3 player in flash. I've modified the snow script from this site slighty, in order for it to display track names, artists and album name instead of snowflakes. The script looks like this:
Code:
this.children = new Array ();
function makeFlakes ()
snowflakes = 75;
do {
[Code]...
In short: how can i call a function in another .as file? Is there a way to make header files or forward declarations in AS3?
Output
Code:
BREAKPOINT1
1061: Call to a possibly undefined method playerCharMove
through a reference with static type Class.
game.fla layer 1 frame 1
[Code]....
So I've created an xml slideshow using Flash Slideshow maker pro, because its very fast and versatile and I need to update my galleries frequently. I'm trying to load it into my flash site using the following AS3 script:
var Xpos:Number = 20;
var Ypos:Number = 20;
var swf:MovieClip;
[Code]....
and when I do that, it seems to be unable to read the xml file anymore and I get a "load fail" message.
On looking at the error message, its trying to call the xml file from the same folder that the site is saved in. How do i tell it to get the xml file from a different folder?
I have want to tell a movie instance to play from a class:
`package com
{
import flash.display.MovieClip;
public class Global extends MovieClip
[code]....
pic1m is the class, but I get 1120 undefined property error.If I just put pic1m.play(); in my main timeline action layer it works fine, but I need the function playMask to be global in AS3...
I have a m.c. calling for a swf file as such:
Actionscript Code:
mcl.loadClip("splash.swf", emptyMC1);
How do I get it to call for a html file instead??
I have a function called test in my first frame of my fla file all it does is trace HELLO WORLD
All i want it to do is call it in my AS file no I cant no such function exist?
[Code]...
I'm calling a function[code]...
View 3 RepliesI want to use AS3 call EXE file under HTML,because there was a demo.swf file,but now it has been converted demo.exe,so I wan to play this demo.exe,I use following code to run demo.exe,my class extends Sprite,
fscommand("fullscreen","true");fscommand("allowscale","false");fscommand("showmenu","true");fscommand("exec","demo.exe");
When I run above code,I can't see any information,where is wrong?
I have made a flash banner where there are 5 buttons.So I want that whenever I will click those buttons a light box will come out.For that I am using Fancy box.So how to call fancybox in a flash file?
View 2 RepliesIs there a way to fire up a call to a php on my website everytime the .swf file is loaded?
View 1 RepliesHow to call the stage from as file. Actually, I need to access the mc which is in library. One way of getting it is by adding it in the fla file and then sending to as file. Is there a way to get the mc directly from library to as file.
View 2 RepliesI have a movie that I need to update every 60 seconds, calling a PHP file, which provides update server time/date, and (on-the-fly updated) air times for an online video. Is every 60 seconds too CPU intensive?
View 2 Repliesmy xml file is as such:
Code:
<menu txt="THIS ITEM FIRES A FUNCTION IN FLASH" txtcolor="0xFFFFFF" menuaction="myFUNCTION" />
myFUNCTION is a function inside of flash, how can i possibly trigger this?
i did some searches but i can't find the sollution:
i read upon asfunction:myFUNCTION, but it simply doesn't work
this is my relevant flash code
Code:
myFUNCTION = function()
{
trace ("am i called?");
[Code]....
I have a 2 swf files. Within the main swf i have a button that I want to call in a second swf when it is clicked. The code I have for this looks as below.. Btn_interiors.addEventListener(MouseEvent.CLICK,lo adGallery); function loadGallery(event:MouseEvent):void{ var l = new Loader(); addChild(l); l.load(new URLRequest("portfolio_interiors.swf"));
} The problem I am having is that when I enter the code and "Check Syntax" no errors appear, however when I preview the published swf and click the button, i get the following message....
[Code]....
How to call the stage from as file. Actually, I need to access the mc which is in library. One way of getting it is by adding it in the fla file and then sending to as file. Is there a way to get the mc directly from library to as file. One more, Is there any way to access the variable declared in fla file from as file.
View 6 RepliesI 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 Replies