ActionScript 3.0 :: Loading An XML Document That Contains Properties About "slides" In A Presentation

May 27, 2009

I'm loading an XML document that contains properties about "slides" in a presentation. When the XML loads each slide builds as an object with it's params. Everything works perfect except now I need to add graphics, instead of just text, to the stage based on the slide object params. I have an object in the library being exported as "StateMap". In my xml params of the slide it's name is StateMap. How can I convert the string StateMap into a display object and then add it to the stage?

So if Slide 1B has 4 lines of text and an image from the library, I want to build the 4 lines on the stage and then place the image on the stage. The image is exported for actionscript in the library but I cannot get the xml to store a name or reference and figure out how flash converts that to a display object.

View 4 Replies


Similar Posts:


Controlling The Playhead Between Slides In Flash Presentation

Jun 23, 2009

After using Flash for many years for animation I've finally discovered the Flash Presentation document setup, but I'm stumbling at the first hurdle in getting my head around the document structure and how the playhead moves between slides/screens.
 
I have a small 48 frame animated "text bullet" which fades in and then glows for a second.  I have placed this on one layer in slide 2, and have tweened it so that it flies in from the left of the screen, stopping in the middle.  This is great but have noticed that when advancing to the next slide, slide 3, and then hitting the left arrow to go back to slide 2, the animated instance of the text bullet is at the same position/state as when I navigated away from slide 2 to slide 3.
 
So how come the playhead doesn't automatically jump to the start (frame 1) of slide 2 when I navigate back?  I have explored the Behaviours but haven't managed to sort out this very basic first step

View 3 Replies

ActionScript 1/2 :: Flash Presentation With Video And Slides?

Sep 8, 2011

Im building a flash presentation in AS2.As the FLA video plays I have timed cue point that will make a slide appear to the side of the video.The video will contain around 30 cue points but I dont know how to do the action script.I currently have the below that works for one event. How do I do multiple events.

myFlvPlayback1.addEventListener ( "cuePoint", this );function cuePoint ( eventObj:Object ){gotoAndPlay("1");
}

View 1 Replies

ActionScript 3.0 :: Possible To Create PPT-like Presentation In Which Can Advance The 'slides' From Computer

Jul 19, 2010

Is it possible to create a PPT-like presentation in which I can advance the 'slides' from my computer, and the slides that my viewers are seeing will likewise advance without their interaction?

View 1 Replies

Arrays :: Sorting Order Of Series Of Flash Slides Into Dynamic Presentation

Feb 21, 2011

I'm not quite sure how to do this - I'm building an admin interface to sort the order of a series of flash slides into a dynamic presentation. The admin interface pulls the slides from xml and displays each as a thumbnail. The thumbnails, when dragged, reorder themselves in the array appropriately. The problem is, I want the actual array of slides to reorganize itself accordingly. My code is this:

function onThumbPress( e:MouseEvent ):void {
e.target.startDrag();
} function onThumbRelease( e:MouseEvent ):void {
e.currentTarget.stopDrag();
sortSlides();
[Code] .....

So what I want to do is take the change in the array (say 0 moves in front of 1 in project_thumbs_array) - and make sure that my other array (project_clips_array) moves item 0 in front of 1 as well. I thought something like this might work but it doesn't:
project_clips_array.sortOn ('project_thumbs_array.x',Array.NUMERIC);

View 1 Replies

Getting Document Size For Presentation?

Dec 14, 2009

I'm creating a Flash presentation for a client. The finished product is to be played on a projector from his laptop. His laptop has a screen resolution setting of 1440x900.Would it make sense to make my Flash document the same dimensions?

View 3 Replies

IDE :: Document Size For Presentation?

Dec 14, 2009

I'm creating a Flash presentation for a client. The finished product is to be played on a projector from his laptop. His laptop has a screen resolution setting of 1440x900.

Would it make sense to make my Flash document the same dimensions?

View 3 Replies

ActionScript 2.0 :: Build A Presentation By Calling External .swfs Inside The .fla Document?

Feb 24, 2005

loadMovieNum("icon1.swf", target1_mc);

I am trying to build a presentation by calling external .swfs inside the .fla document.

By clicking a button I want to load an .swf (800 x 600) from the desktop into a target_mc inside a new flash document.

The problem is that once I press the button to load the .swf, instead of loading it into the target_mc, Internet Explorer pos up with a statement saying " To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..." Once I click the options link, a new link appears "Allow Blocked Content". once I press it the .swf file loads into the Internet Explorer window full screen.

I want the .swf to load into the mc I am specifying INSIDE the flash document, not on the browser.

View 11 Replies

ActionScript 2.0 :: SetTimeout - Animation To Do Is First MC Slides In From The Right - Pauses Then Slides Off To The Left

Nov 24, 2009

I have 2 movie clips, one names mc_frame01 and another mc_frame02. I've tried to set variables and arguments to make it easier when theres more mc_frameXX's. All I want the animation to do is first MC slides in from the right, pauses, then slides off to the left. Then repeat for each MC. With the code below, both MC's seem to slide in from the right at the same time and that's it.

[Code]..

View 9 Replies

Professional :: Document Class X / Y Properties?

May 7, 2010

I've been working on a project in Flash CS3 for a while.  To follow an object on the screen and keep it centered, I'd adjust the Document Class' x and y properties.
 
Yesterday I bought/installed Flash CS5 and thus Flash Player 10 was also installed.  Now when I go play my SWF it seems everything is all buggy, as if the code that modifies the Document Class' x and y properties isn't exactly working properly...

I've since reopened the CS3 FLA in CS5 and converted it to a CS5 format and I can't seem to get it working the way it used to.

Did something change regarding the Document Class and how to modify the x / y properties of it in the Flash Player 10 version?  I really don't know what's going on at this point.

View 4 Replies

ActionScript 3.0 :: Accessing Properties Of The Document Class?

Nov 14, 2009

when I try to access a property of the document class from another class, I get an error:

Quote:

1119: Access of possibly undefined property _left through a reference with static type flash.displayisplayObject.

Maybe I'm not doing it correctly? This is how I've been accessing document class properties so far. Does the fact that they're private make a difference?

Quote:

root.property

View 1 Replies

ActionScript 3.0 :: Document Class, And Accessing Properties?

May 25, 2009

I'm currently working on an interactive app, (site) which requires me to modify a few textfields, and change images dependant on the user choice (using mouseevent). This is a separate module, thus I'm posting the question in here instead:there are three images, that are lined up, with a textbox next to them. When a image is chosen, and enlarges, the text changes with the chosen image, according to XML.The textFields, 'text_title', 'text_description' are contained in a movieclip, called 'textbox'.This has been built in the Flash IDE (CS3) named info.fla/swf, which refers to a Document class 'com.info', made in Flex Builder 3...I attempted to modify the textfields using this:textbox.txt_title.text = "Loading";textbox.txt_desc.text = "test";But, I was unable to at first to change the text using the document class, as it gives "1120: Access of undefined property <variable>".

View 3 Replies

Actionscript 3 :: Access The Document Class' Properties From The Time Line?

Feb 28, 2010

I am building your standard slideshow flash header for a web page.

There are three main parts:

The Slideshow class A controller class that is used as the projects Document Class Some linking timeline code.

The slideshow class has all the functionality, so I used the Document class to create a new instance of the slideshow and keep a property variable called slideshow that keeps a reference the Slideshow instance.

import flash.display.MovieClip;
import flash.events.Event;
public class Header extends MovieClip
{

[Code].....

Despite me being able to call regular methods that are in the Doc Class from the timeline, I can not call properties without the following error, for example when i say slideshow.play():

1061: Call to a possibly undefined method play through a reference with static type com.example.test:Slideshow.

I have to make a method on my document class every time I want to wire an event to call an object in my Document Class?

View 1 Replies

ActionScript 1/2 :: Loading XML Based SWF In FLA Presentation

Apr 12, 2011

In fact, I make flash CD presentation in Adobe Flash CS5 AS2 (with minimal use of ActionScript). I need to load flash image gallery that I already have created, in new presentation file. Gallery was created in Flash Slideshow maker and as products I have. Swf,. XML and folders with thumbnails and picture (no. Fla file). The concept of the presentation (as root is concerned) should look like in uploaded picture "izgled otvorenog cd-a". In each of the folder on cd presentation (as on picture) is a Flash presentation controlled by their xml file whose name I must not change.

Exe file "Prezentacija 2011" is a presentation (Flash Projector) that I try to make. In the same presentation I create frames and for each of the frames added action:
loadMovie ("02_Kapije/kapije.swf", "kapije_ucitavanje");
kapije_ucitavanje._x = 23; kapije_ucitavanje._y = 167; stop ();
(Of course, for each item varies loadMovie root and instance name).

The problem is that presentations can't find xml file, apparently because they do not have the appropriate root. When all the files of the one gallery set in the same folder with  the "Presentation 2011.exe" file, everything works normally (however, as I said, I cannot change the name of Xml file and that disturb the concept of my CD presentation). How can I drive loaded swf file from the above script to use Xml file in its folder? Here is my root foldersand link for presentation files : [URL].

View 5 Replies

ActionScript 3.0 :: Flash Unable To Access Properties Of A Movieclip From Document Class?

Aug 24, 2011

I am developing a Jigsaw puzzle in Flash. I am developing a class for puzzle piece. The code of the PuzzlePiece class in given as follows.

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;[code]....

I will be choosing which mask to use based on users selection of puzzle piece.When I try to use traingular mask by adding puzzle.gotoAndStop(2) the swf just flickers. Thought the holder_mc and mask_mc are exactly of same dimension one comes below lower than other though I have not altered the position of the clips within a puzzle piece.If you want to take a look at my fla here it is https:[url]....How to go to a specific frame 2. Why is position of two clips inside the piece changing

View 1 Replies

ActionScript 3.0 :: Setting Properties Of Nested Clip From Document Class Of Parent

Aug 29, 2011

Setting properties of a nested clip from the associated document class of the parent clip. I am developing a Jigsaw puzzle in Flash. I am developing a class for puzzle piece. The code of the PuzzlePiece class in given as follows.

PuzzlePiece class
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class PuzzlePiece extends MovieClip {
private var pieceX:Number;
[Code] .....

Is it wrong to access it like that. The PuzzlePiece is the export for a puzzle clip. For the time being I am hard coding the dimension as 60. I have aloso uploaded the fla and as files. [URL].

View 4 Replies

ActionScript 3.0 :: Presentation Slideshow & Loading External SWF?

Feb 14, 2011

I want to Integrate Flash and AfterEffects to make a really cool presentation. Here's where I need the advice though.i've tried...-Importing FLV videos, but lags sometimes and doesn't play smooth enough.-also tried to load FLV with AS3 but when I view the video on frame 2 for instance then go to frame 3 and then go back to frame 2 I find the video overlapping itself

View 1 Replies

Professional :: Loading Flash Presentation Before Entering Website

May 3, 2011

I have a Flash presntation that bought that I need to load before my website. How do I add an addurl and the end of the fla presentation.

View 4 Replies

ActionScript 3.0 :: Flash Presentation Loading Locally But Not Online

Mar 21, 2011

I got this sweet minisite built in Flash that I'm going to load onto facebook for the fan page. Problem? I can't get the XML to load. I don't know the first thing about ActionScript, so I'm upp'ing a copy of the Source Files.

View 1 Replies

Actionscript 3 :: Stage Properties In Custom Class, Not Document Class?

Oct 14, 2011

I need to use stage.width/height in my CustomClass so I found some topics about it.

if (stage)
{
init(ar,firma,kontakt,oferta,naglowek,tekst,dane);

[code]......

View 1 Replies

ActionScript 3.0 :: Loading An Asp Document?

Oct 8, 2010

when im trying to load an asp document the loader doesnt remove itself and it stops at 100% load if i try a jpg file it works perfectly, but thats not what i want xD
  
var myRequest:URLRequest = new URLRequest("/aspindex.asp");
var myLoader:Loader = new Loader();
myLoader.load(myRequest);

[Code].....

View 4 Replies

ActionScript 3.0 :: Change Image Properties By XML Loading?

Nov 2, 2009

I want to load an image, and then change widht and height of this .jpg. So I'm making something like this:

Code:
_imageSprite = new Sprite();
var imgRequest:URLRequest = new URLRequest( "data/image.jpg" );
var imgLoader = new Loader();

[Code].....

Even if I try to get _imageSprite.widht, I'm getting 0? Why?

Maybe I'm doing something wrong? Because I need to get width and height of this image. Also to change this properties.

View 6 Replies

Flash :: Silverlight - MVVM - Presentation Model In Flex Vs Presentation Model In Silverlight: Advantages And Disadvantages?

Apr 10, 2011

As it is said here: [URL] "If you do a Google search today for "MVVM and Flex", the first post is by somebody who claims that MVVM is not a good fit for Flex. I couldn't disagree more. Out of the box, the Flex framework makes it much easier to implement a Presentation Model than similar MVVM implementations in Silverlight. That is not to say that there aren't good third-party libraries that make it easier in Silverlight, but without any help, it is easier to do in Flex." So MVVM as LOGICAL CONCEPT can be implemented in both but the way it is implemented in Silverlight requires more Plumbing than Flex.

What prevents Silverlight MVVM to be implemented like Flex ? Doesn't Silverlight have same capability in event system to do the same? If yes why does Silverlight do things more complicated what's the advantages then ? Is it about using Class Interfaces which are more strongly typed? What are the disadvantages also ? For example as for implementing MULTIPLE VIEWS for 1 View-Model does Flex implementation make it also more obvious?

View 2 Replies

ActionScript 3.0 :: Loading Swf Document Class?

Jan 24, 2010

I have a movie which is placed on the stage in the authoring environment, this movie is called LiftMovie. When the user clicks on a button in LiftMovie, it loads another movie into a placeholder called MallPlaceHolder and the LiftMovie has its visibility set to false.From the document class of the movie loaded into MallPlaceHolder, if the user clicks on the image of the Lift in the mall, I want it to make the LiftMovie visible again.

View 1 Replies

Loading A Webpage Within A Flash Document?

Dec 26, 2009

load a webpage withing a flash document,
 
this is what i want to happen, i want the flash to stop animating/looping (i already have that done) and then instead of opening a seperate page to load a website i want it to load within the swf. CS4 ActionScript 3

View 2 Replies

ActionScript 1/2 :: Loading Word Document?

Mar 17, 2010

i am trying to use the 'exec' parameter in a fscommand. i dont know how to open a word document from the exe. i tried

fscommand("exec", ""Ejemplo documento.ppt"");
also
fscommand("exec", "Ejemplo documento.ppt");

[code].....

View 6 Replies

ActionScript 3.0 :: Loading A Webpage Within A Flash Document?

Dec 26, 2009

is it possible to load a webpage withing a flash document,this is what i want to happen, i want the flash to stop animating/looping (i already have that done) and then instead of opening a seperate page to load a website i want it to load within the swf

View 1 Replies

Flash - Loading SWF Without Instantiating Document Class?

Sep 26, 2011

Is there a way I can load a swf file but not automatically instantiate it's DocumentClass? Instead I want to do something like the following:
protected function mainLoaded(e:Event = null):void {
trace('mainLoaded');
var main:* = this.mainLoad.createClassByName('Main');
trace(main);
}
Where mainLoad is an instance of CasaLib's SwfLoad and createClassByName is the equivalent to
loaderInfo.applicationDomain.getDefinition();
The thing is that when my swf finishes loading I can see it is created, because of some trace calls, although its obviously not added to the display list.

View 1 Replies

ActionScript 3.0 :: Loading External Swf Document Class

Jul 31, 2009

I have created a image gallery. it uses a document class and several supporting classes. It works great. I need to load that swf gallery.swf into a another movie. When I try to do this I get this error. TypeError: Error #1009: Cannot access a property or method of a null object reference.at oxylus.rotator::Main()oxylus.rotator.Main is my document class for the gallery.swf that is being loaded into another flash movie.I don't get why it would cause errors as its a compiled swf and should not have references to that class.

View 1 Replies

ActionScript 3.0 :: Loading Document Class On 2nd Frame?

Dec 30, 2009

So I have created the main class for the .fla file but I want a menu screen before my game starts playing. However, because of my doc class loads on the first frame, I dont know how to control when the document class will start loading.

View 7 Replies







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