ActionScript 3.0 :: Get Name Of Swf Linked To An As File?

Jan 26, 2010

Sounds simple enough. I have a number of swfs (quiz01.swf, quiz02.swf.....) all linked to one quiz.as file. The quizes in turn are loaded by another swf, Main.swf. I need to get the name of the specific quiz that is loaded, so I can identify an external xml file.
 
Tried using the "loaderURL" in the as, but it gives the name of the Main.swf. How can I just get the name of the swf that is associated with the quiz.as file?

View 5 Replies


Similar Posts:


Flash :: Find Out The Linked Url Of The Image And Where Is The Linked Url Code In?

Nov 29, 2011

How can find out the linked url of the image in the flash of a website? I looked for the image url some time. but couldn't find itif find the linked url of the image, and i want to alter an image linked url address. where is the code in?

View 3 Replies

Flex - Mxmlc With Both Linked And Not Linked Rsls?

Jul 27, 2009

On the mxmlc command line, I can include paths to RSL files. I can choose to link these RSLs at runtime by setting

-static-link-runtime-shared-libraries=false What if I need to link to some rsls and embed (static-link) other rsls? Is there a way to set the link settings for each rsl?

View 1 Replies

ActionScript 3.0 :: Linked List From Text File?

Aug 18, 2011

i need to create objects with a unique name with a loop in a way that i could get this...

var n1:node=new node(12);
var n2:node=new node(22);
var n3:node=new node(32);

[code].......

View 1 Replies

ActionScript :: Fla File Vs In .as File, Linked To .fla File?

Jun 11, 2011

Which is preferred and why: keeping the AS in the Flash file itself, or linking to the .as with the Flash file. I've seen both done. Is it just a matter of preference?

View 4 Replies

ActionScript 3.0 :: XML File Not Reading In Properly When Linked Offside?

Dec 20, 2009

it is my first time reading in XML files into my Flash project. I have it working to an extent, as it will read in the file correctly and all that, and I though that I was finally ready to publish it. I copied all of the concerned files over to my server, and it will work perfectly fine when I view the flash from the uploaded link directly (right on my server in the folder I created it in).

My problem arises when I try to publish my project on another website, by just embedding the .swf directly. The project works perfectly until I click the tab that will read in the XML file, at that point it will just hang and not load it in properly. Since it was my first time using XML, I played around with a template a bit to learn it. Anyway, here is what I put (Well, example of what I put)

Code:

flashmo_page1.load_xml("http://mywebsite123456.com/directory/flash/flashmo_197_page_1.xml");

I though that linking directly to my file on my website would make it work, but it still hangs.

View 3 Replies

Professional :: Can't Open A HTML File With Flash Linked?

Aug 6, 2010

I have Flash CS3. I have created a flash file. If I click on the SWF file I have no problems opening it  It plays. It looks nice  I'm the man.However, now when I try to publish it, the HTML file will not work. It says "windows cannot find this file,you have typed the location correctly".I am double clicking directly on the file and not typing anything, in fact I was considering checking on Ebay to see if I could upgrade my PC to have eyes.The feature has worked previously, which leads me to the conclusion that something else has changed. I have tried using the publish setting, I have also tried using Dreamweaver to embed the file, and have also tried manually inserting the necessary code after seeing some on a website.

View 4 Replies

ActionScript 3.0 :: Importing - File Linked Via The Document Class?

Feb 23, 2011

I have a FLA file that has a AS file linked via the document class.
 
How do I remove the link from the documnet class and the place an import on the timeline to do the same thing ?

View 4 Replies

Professional :: Adding Scrollable Columns To XML Doc Linked To Flash File

Jan 3, 2010

I am working with a Flash template that includes a window linking to an XML document. We are trying to have three scrollable columns instead of what we have now which is the one block of text provided through the XML document.

View 21 Replies

ActionScript 3.0 :: Load 1 Linked Image On Each Of The 5 Layer Based On XML File?

May 18, 2010

im trying to make a website based on flash.and im trying to link flash to XML.And here is my problem.I have a layer called "Pages", and im working in one of the pages.I made a timeline, which also had few more pages (5 to be exact).I want to load 1 linked image (as in you click on the image and then load something) on each of the 5 layer based on XML File, and when its clicked it loads on a new page in the "MAIN" site.  If thats possible. How would I make that happen?

View 3 Replies

ActionScript 3.0 :: Two Movie Clips Each Is Linked With Action Script File?

Jan 22, 2010

I got a problem, there I have two movie clips each is linked with action script file. The first movie clip "level screen" has a loop (code is not shown there) in it's code which addChild a lot of same icons (but each has different number) and add them to array levelArray. Then when I click a icon, for example one with nmber 31, it addChild the other movie clip "main screen" and send it a variable "levelNumber" with value 31, so mainScreen could then addChild a level 31. Below is the code for levelScreen checking what icon is being clicked and taking right actions. However first I will write how i imagined this to work step-by-step

1. The timer activates the loop over and over again, so when it comes to end, it starts again.

2. The loop loops through array called levelArray, in which all icons are stored.

3. Inside the loop it first defines a variable checkIcon which is the icon at which the loop is.

4. Now there the things get complicated, I want to add a MouseEvent listener to icon, if it would be triggered the function "onLevelButtonClick" should be executed, and the I want to remove the listener again, so I wont have 1000 listeners on same icon after some time.

5. And the function dispatch event which add main screen and send it a variable levelNumber, which should be number of icon clicked.

[code]...

View 7 Replies

ActionScript 3.0 :: Dynamically Load A SWF That Was Compiled From An Fla With A Linked External Class File

Apr 6, 2009

I am dynamically loading external SWFs in a Main Fla in response to clicks on a menu.

The loading code is standard and works fine for all of the SWFs except one. When I try to load it I get the following error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I am certain that the URL to the problem SWF is correct. The SWF itself doesn't load any other SWFs or images. The problem SWF is linked to an external class file and compiled with it. i.e. in the properties panel of the main timeline of the problem SWF's Fla I have entered the path to the external class.

1. there is no problem compiling this SWF with the class (it works fine by itself)2. if I remove the external class from the properties panel and don't use it the resulting SWF imports without a problem into the Main Fla mentioned before So the problem seems to be the fact that the external class is linked in the properties panel. Is this a path problem?

View 3 Replies

ActionScript 2.0 :: Randomise Ansewer Options In Flash Quiz, Is Linked To Xml File?

Dec 9, 2008

I have a tricky problem. I've been working on a flash quiz that uses a xml file to generate questions in a random order. Got that working fine. The Fla parses open the file and loads the nodes into dynamic text boxes.

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Accessing Stage Instances From .as File Linked To A Movieclip

Aug 28, 2010

i've been all afternoon trying to figure out a solution to my problem, and I can't seem to find it, or cannot implement it. Let me lay it out for you: I have an actionscript file linked to a movieclip. (movieclip:skate class linked: generic_skate).I have it set up that way so I can create an array of skates easily (i'm using a for loop to create them), and each skate has its own attributes (name, description, price and the image that is supposed to go on the deck)In the stage, i have three text boxes, one for the price, other for the name, and another one for the description.In the generic_skate class, I'm handling all the mouse events (in this case mouseOver and mouseOut.

What i want to accomplish is: when the user hovers over a skate, the info shows up in the text fields and when he hovers out, the info goes away. My problem: Since I'm doing all the mouse interaction in the class file, my guess is that I have to access the stage to get to the text boxes that are placed there to change its info or somehow create a "middle" man to do all the handling.

View 5 Replies

Layers Appear To Be Linked?

Jun 9, 2009

Whenever I add a new layer, it seems to be linked to my 1st layer.If I delete something on the stage on the new layer, it's also deleted from the 1st layer.  If I try locking the 1st layer, anything on the new layer-although not locked itself -can't be selected.

View 2 Replies

Linked List In Flash Cs4?

Dec 9, 2009

I am currently making a website in flash for a football team and i would like to make a list of all the players names which link to separate player profiles in the same flash document.

View 4 Replies

Frame One Of Linked SWF Executes Sometimes

Jun 10, 2009

I am using the loader class to load an external swf and attach it to an empty movieclip, the final step follows:
// function loadComplete(e:Event):void {
mc_launch.addChild(gLoader);
MovieClip(gLoader.content).gotoAndPlay("start");}

When navigating away from the movie clip, it's dumped as follows:
MovieClip(gLoader.content).closeAllStreams();gLoader.unload();

The linked swf has two important frames in the beginning. The first frame is labeled "hold" and has the following:
var gSC:SoundChannel = new SoundChannel();
var gSCBusy:Boolean = false;var gSlideIndex:Number = 0;
var gAudioPosition:Number = 0;
var gPlayList:Array = ["start","slide01","slide02"]
var gAudioList:Array = ["intro.mp3","",""]
var gRunMode:String = Capabilities.playerType;stop();

The fifth frame is labled "start" and the singing and dancing begins from there. The stop(); function in the first frame is used to prevent the loading swf from executing before its 100% downloaded (I had some early trouble where the music would start before the screen assets were in place). My problem: This works perfectly the first time the linked swf is downloaded and attached, however, if you navigate away and then back I get the error "gSlideIndex NAN" which indicates to me that the first frame in the linked swf is not executed on subsequent attachments, the playhead jumps straight to "start" and my globals are never declared. Why would a linked swf execute frame 1 the first time it's attached to mc_launch but not the second?

View 9 Replies

ActionScript 1/2 :: Pausing A Linked .flv?

Sep 11, 2007

I have an external .flv and I simply need to be able to pause it with a frame action and start it back up with another frame action.I found some references to "flvStream.play" through google but I haven't been able to properly implement it.

View 3 Replies

Professional :: No FLV Video In A Linked SWF?

Jun 16, 2011

I've got an FLV video linked to an external SWF (a substage) that is itself linked to another SWF (the main stage) The FLV plays fine if I publish and run the substage independently but when the substage is loaded into the main stage at runtime I lose the video, all the other screen elements from the substage work fine. I thought it might be a path issue so I hardcoded a fully qualified URL as the video source with the same results; works independently, fails when loaded into the main stage at run time.
 
Flash CS5/AS3 using the video player component.

View 5 Replies

AS3 :: Add Linked BitmapData To Stage?

Oct 12, 2011

I'm trying to add a sprite to a stage made from bitmapData I link to from the library with the identifier pointerGraphic, here's my code:

Pointer.as

package com.George.BMIapp
{
import pointerGraphic;
import flash.display.BitmapData;

[Code]....

Yet nothing appears on the stage, yet there are no errors (I'm in strict mode with debugging enabled).

View 2 Replies

ActionScript 3.0 :: Linked TLFTextField?

Jun 22, 2010

I am using linked TLFTextField in flash cs5 and want to access the text of a particular TLFTextField within the chain. Is there a way to access the text in a TLFtextField within a chain

View 0 Replies

ActionScript 3.0 :: Linked Folder Between Two Projects?

Jul 27, 2009

currently using flex builder 3. I am having trouble setting up linked folders between 2 of my projects.Basically I have a project for a Map Editor, and a project for the Tile Game. I want to share the map folder between the two projects but I keep getting package errors and I don't know how I should nest the folders/projects or where to put the maps or how to import classes from these linked folders.The project folders are currently arranged like this....Flex/Game...Flex/MapEditora maps folder needs to be shared between the two projects

View 1 Replies

ActionScript 3.0 :: Detecting The End Of A Linked Movieclip?

Mar 7, 2010

I have a problem where I can't detect the end of a movieclip in my project.

I have the FLV video linked for actionscript, so that I can control it dynamically with a few other things using AS3.

[Code].....

View 1 Replies

No Animation On Scene Linked To Another Through Button?

May 10, 2011

I have one scene linked to another through a button, when I click on the button that links to scene two it takes me to the scene but doesn't play the animation it just shows the non animated components. Is there something really obvious I am missing here because if I go to the scene (when I am not testing the movie) the animation works perfectly.

View 1 Replies

ActionScript 2.0 :: Linked In Separate Subfolder?

Nov 10, 2011

I'm having an issue with getting a simple flash image swap file displaying on a website I'm building and was wondering if anyone can tell me what I've missed. I built the image swap slideshow which is just a simple blend through four images. It uses the loadMovie to import the images from the directory the movie is sitting in so the loadMovie command just references the jpg files directly with no extra directory info. The swf file and the image files it loads are all in a subdirectory off the root called flash. The page I want to display the swf movie on is actually the index html page in the root directory of the website. So I used this html to display the swf file.

[Code]...

View 1 Replies

ActionScript 3.0 :: Importing A Swf Linked To A Class?

Dec 3, 2008

I have a scroll file, taken from a tutorial, which is linkedto a class. After having customized my file I did try it and itworks fine. The problem is starting when I try to import this fileto an empty MCL in my website. When I have imported all theelements they do not respond and act like single pieces (es. thescroll bar is detached from the scroller). What can I do?

View 2 Replies

Flash :: Image Linked To Table?

Jun 11, 2009

I have Adobe Creative Suite, but I haven't begun to learn how to use Flash yet. I work primarily with PHP using Dreamweaver and have a very basic understanding of JavaScript.I just discovered a really cool script here. The page displays a Flash image map of Africa and a table listing every nation in Africa. If you hover over Kenya on the map, Kenya is highlighted on both the map and the table. Vice versa, if you hover over the word Kenya on the table, Kenya is highlighted on both the table and the map.
 
I would like to duplicate this on my website. (It's in the public domain.) So I copied the source code, then began recreating the style sheets, JavaScript files and images. When I view the page locally, I see the Flash image (map of Africa). But when I hover over a nation on the map, it says "undefined," rather than showing the name of the nation. The table listing the nations doesn't display at all.
 
Does anyone have any idea how this affect is created? Can you offer any tips that might help me recreate it on my site? It appears that AJAX is another technology used on the page. That's something else I have no experience with, but I'm not sure if AJAX is associated with the Flash map/table function or not.

View 3 Replies

Items In Library Linked Together Somehow, But Want To Delete One

Aug 13, 2009

I'm practice with Flash, and trying out different things, but somehow, I managed to create a movie symbol from a graphic symbol, and now whenever I try deleting one of the symbols, it effects the other symbol as well.
 
I only want one of these symbols, yet I can't seem to only keep one. They both seem to depend on each other, and I don't know how to get around this.

View 2 Replies

ActionScript 3.0 :: Communicating Between Linked Classes?

Oct 28, 2009

I have been struggling with what seems to be simple concept in ActionScript 3.0 - how to communicate between classes. I have a very simple experiment with two movieclips on the stage. They are named YellowBox and RedBox in my library. I have linked the following code to the YellowBox movieclip: 
 
package{    import flash.display.MovieClip;    import flash.events.MouseEvent;        public class YellowBox extends MovieClip    {                public function YellowBox()        {            this.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);        }                public function rollOverHandler(event:MouseEvent):void        {            this.x = x + 3;        }    }}
  
What I would like to do is call the YellowBox() function on my RedBox MovieClip with the following code:
 
package{    import flash.display.MovieClip;    import flash.events.MouseEvent;        public class RedBox extends MovieClip    {                public function RedBox()        {            YellowBox();        }    }}
  
I get the following message when I compile: 1136: Incorrect number of arguments.  Expected 1.

View 2 Replies

ActionScript 3.0 :: Creating More Than One Linked Button?

Jan 11, 2010

I work in Flash CS3, AS3.I've created a button that links to another webpage by using this code (the code is added to a separate layer):
 
import flash.events.MouseEvent;
steud.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void
{

[code]....
 
It works just fine, but the problem is that I want to add more buttons (and links) to it, and thats where I get stuck. When I try just adding a new layer and adding the code there, everything stops working. I've also tried copy/pasting the code beneath the first one, with no results.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved