ActionScript 3.0 :: Accessing SWF Info Using Load
Sep 15, 2009
i am really trying to use AS3 but having many difficulties using common tasks that seemed straightforward before. i want to find out the totalframes of an SWF that has been externally loaded using the load method.[code]i tried using trace(ldr.totalframes) just to test it but continue to get errors when i do.
View 13 Replies
Similar Posts:
Jul 16, 2009
I have a rotaing menu that loads in images from an xml file, I would also like it to load in text info from the same xml file to the left side of the images that load in. In my main .fla have created a movieclip and called it 'textInfo' and inside that I have two dynamic text fields called 'headerText' and 'bodyText' where I want to load the text in. this is what I am using to loading in the text in my actionscript, is this correct?
[Code]...
View 22 Replies
Jun 24, 2010
I have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...
Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........
also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.
View 1 Replies
Nov 30, 2010
I'm trying to make a program that grabs info from a text file then uses the info in the file to assign where certain balls will rotate (eventually I'll configure it to looking like dots rotating around an invisible sphere)Now, I can do these two things separately, load info from a file and make blue balls rotate around given points... but I've been tripping up hard on making them work together, and I think my problem is in how I handle the events and events listeners to work with the code, you'll need to start a new flash AS3 file Then on the stage create a circle with the oval tool convert the circle to a symbol named "BlueCircle" and name the linkage class as "BlueCircle" then paste this code...
Code:
var longLatLoader:URLLoader = new URLLoader();
longLatLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
longLatLoader.addEventListener(Event.COMPLETE, onLoaded);[code]....
View 3 Replies
Jun 28, 2009
I'm developing a website for school and in an effort to make it eaier to update i'm attempting to make it as dynamic as possible. So far I've been able to load in MC's dynamically. These MC's banners are made up of smaller MC's themselves. When the mouse goes over one the banners, I want to access one of it's child MC's. This is what I have so far:
//the banners to be loaded are set in the library to export with a class matching their respective names
//when page loads...
[code].....
View 5 Replies
Mar 7, 2011
we have an internal webservice developed in our company and i have connected that web service using flex and am able to get all the methods/operations from that service. but wen i try to get data from methods i get the following error msg while running the applicationSecurity error accessing urlUnable to load WSDL. If currently online, verify the URI and/or format of the WSDL (http://ispl30:8080/MGEMWS/MGEMWS?wsdl)am not able to figure out what the problem is?
View 1 Replies
Dec 20, 2006
I loaded a swf in another swf. Lets say in.swf is loaded in all.swf. But I need to pass some info from a movie clip inside of in.swf to another movie clip inside of all.swf.
View 10 Replies
Sep 23, 2009
Is it possible for a swf to get info from an XML file that is placed in a different domain? And if it is, how can I do it?
View 3 Replies
Oct 15, 2009
I need to make a projects that when a section is rolled over a info box appears. It is similar if not exactly like the link below.I have a solid basic working knowledge of flash and actionscript. Been working with Flash for few years, but it has all been basic work, nothing too complex.
View 1 Replies
Apr 2, 2010
I am using Adobe Flash Media Streaming Server 3.5 but I can't find any output file (fx a xml file) that I can pull out info from and use on my website via a PHP or ASP script. It could be nice - in the website - to retrieve info like "online users attending", "running / streaming state" (online or offline) and other relevant info about the streaming, so I on the website can display how many that are online when a webtv event is streaming.
View 19 Replies
Apr 6, 2011
In FlashBuilder's compiler options (Properties->Flex Compiler), under "Adobe Flash Player options" there is an option for "Use a specific version", where you can tell it what Flash Player to link against:
How do I get this value at runtime? Note that I am not talking about the Flash Player version, but the version that the swf was linked against.
View 4 Replies
Oct 3, 2009
Do anyone have any idea how to get a hardware information (like processor id) of the machine that the AIR application is running on?
I need to verify if my app is ran on the specified computer and than allow or deny data access.
View 2 Replies
Nov 30, 2009
I'm working with a php script that takes a really long time to process. Is it possible to get the process info to flash (as3)? I'm thinking that I could echo the process percent from php, but is it possible to read and use the values as the process is running
View 1 Replies
Oct 23, 2010
I would like to know if theres anyway to get the computer name or some other unique computer information to make a computer unique and I save that info in my database.
if someone know how to exhibit the Computer Name
View 5 Replies
Oct 31, 2010
From the main class I call a function from another class and give it 20 variables to work with. That class does the math and gives me the 4 variables I need but how do I have the main class read these? Do I use a return function or getters and setters?
[Code]...
View 5 Replies
Sep 4, 2011
I need to create a scoreboard for my game. I want to be able to let my user submit the time it took to complete the game to my scoreboard. I have been able to purchase webspace with SQL, PHP. I have set up my SQL database. I have found a great tutorial about how to do precisely what I wanted on YouTube BUT after starting the tutorial I realised it was ActionScript 2, I REALLY need time type of tutorial but for ACTIONSCRIPT.
View 2 Replies
Feb 3, 2009
Example:Lets imagine a html page with 2 swf embed inside. First swf has some UI, and second swf loads content.Is there a way to pass events or variables from the first swf to trigger stuff on the second? If yes, how?I would love to know the simplest way to achieve this.P.s- From what i understood from Lee's tuturial on swfObj, i can pass vars from html to the swf (using flashvars). Is there a way to pass from the swf to the html in a similar fashion?
View 7 Replies
Feb 6, 2005
I have a news page that I update with my stories. The info goes to a read.asp page that displays my info. I need to get the stories into a flash text field or box (anything really) so I can have the same news stories post. I can upload the file so you could look at it and tell me how to call the stories into flash.
View 1 Replies
Dec 20, 2010
I have a flash as2 file which loads pictures into a thumbnail slider through an external xml file. when i try it out in my pc it works, images load perfectly and i can view the thumbnails, but when i contain the flash in a php and upload it, it stops working, the images never load.i guess flash has an issue trying to pass the xml info through php, i tried searching for compatibility issues but couldn't find anything concrete...
View 2 Replies
Jan 6, 2012
how i can do that, i have main flash file named container.swf (container.fla) i loaded external swf into movieclip inside my container. i want to know the actionscript version of the loaded swf dynamiclly, and the size(height and width) of it
View 4 Replies
Aug 15, 2009
Im working on an application for a website. When the user finishes entering all of the information into the Flass application, they press a button. I want it to open another page from that website and enter the information into it.
View 3 Replies
Mar 9, 2010
Here's the thing.I am making my first game, a click and drag (dress up if you want to ) game...It is finished and working..But since it serves as an educational aid in history group, it would be great if I could somehow add some kind of pop-up window with text describing every item in game..For example "14th century bascinet developed from the steel cap bla bla bla...".And if that is not possible is there some other way all this info about these items (there is about 24 items in game) could be fitted in this kind of application
View 4 Replies
Oct 13, 2010
what is the best way to conditionally display a component? I have a dropList providing info to other parts of my code but i would like to display certain components depending on the value of certain info
View 1 Replies
Oct 20, 2011
I have something in mind like this: [URL] so each time, when the mouse is over each state, different information should show up in the right side box with different information. How should I implement this? should I draw the right side information box as picture, and then write a script to ask information to display when mouse is on certain state, is this a movie clip?
View 6 Replies
Nov 7, 2008
I would like to have a third party exchange english language text in a swf file with translation-text in other languages. They would like to do it via XML. Is there a place where I can look up some basic info on how to write XML code (beginner), or find a script that lets me exchange text/content via XML?
View 2 Replies
Sep 25, 2009
Is there any way to fill in a dynamic text box in one movieclip if a checkbox from another movieclip on the main timeline is checked?If it is not checked, the dynamic text box would be blank.
View 3 Replies
May 10, 2010
I have coded a basic drag and drop using a rope .jpg saved as an mc. the idea is to have the user drag the rope from left to right using the mouse down and up functions. I was able to do this but I'm trying to add to the functionality by doing the following:
dragging limited to a certain amount per drag no dragging up or down just left to right set boundries within the screensize I've looked and could only find as2 and basic tutes on this
[Code]...
View 1 Replies
Sep 16, 2010
I am very new to this as I have said in other posts and I would like to have an application which updates infomation news posts etc;So im not sure how to go about this but I have heard I need a web service. If you need a web service couls someone tell me how to make one or if you dont need a web service.
View 1 Replies
Nov 17, 2010
In my document class I have the following.
var mainBoards:LoadXMLData = new LoadXMLData("Main_boards.xml");
var test:XML = mainBoards.getXMLData;
In the LoadXMLData class I have an event listener and a getter that will return the XML data.
_urlLoader.addEventListener(Event.COMPLETE, onDataLoaded);
_urlLoader.load(new URLRequest(file));
//and
[Code]....
is there a better way to wait until the data from the XML is loaded into the LoadXMLData object before the mainBoards.getXMLData is assigned to the test variable in my document class?
View 5 Replies
Feb 3, 2011
I've been doing a game that requires to drag some pictures into containers... that's all great.... but at the same time, I have to be able to obtain info from them (a pop up) when i click them.I've tried using CLICK and MOUSE_DOWN on the EventListeners, but everytime I drag the object, when I release it, the pop up shows.
View 5 Replies