ActionScript 2.0 :: [Flash 8] XML Document Controlling .FLA?
Aug 19, 2006
For this project I am doing I must have the XML document define panels that will be selected within the .FLA. Like, as you scroll through the choices, it is defined in the XML document which in turn makes these panels (which are movie clips) expand along with the XML controlled data displayed in the panels (in dynamic text boxes).
We have a requirement to show documents (if we have URL for a document) within Flash. We have a need use embedded document viewer for MS Office and PDF documents. Are there any Flash controls available to acheive this?
Can I set the style of another document from it's parent document? At the moment its giving me the error 1119: Access of possibly undefined property StyleManager through a reference with static type DesignCardForm.
I have a SWF embedded in an HTML web page and want to move to a specific frame when a trigger is clicked. But nothing happens when I click the trigger, as though the js just doesnt communicate at all with the swf.SWF is written in flash cs4 (a3)The link to the website is [URL]..I have read the text books over and over and researched high and wide on the internet and as far as I see I have done everything correctly but I cannot get this to work. The swf is very basic, just a green box moving accross a small stage. The desired gotoframe would make it cross at a lower height (just a dry run for a more complicated swf)
I have a FLA (say Main.FLA) document class with a child MovieClip on the stage: into the child MovieClip I load other swf files: each of the files contains its own Document Class (every swf is a somewhat independent application, say quizzes and so on).For some reason I must use the Main document class to store data (scores or so) from the child swfs loaded into the Main swf. HOW do I reference the Main class? I can't find a way.[code]and dispatch an Event this way from the loaded swf document class to the Main class:[code]Now, first of all I don't know if this could even work. Secondly, I tried to make it work by adding an event listener to my Main class but id did not work.
I've a number of audio files and six menu items in my presentation.respond with instruction on how to stop the currently running audio when a new menu item is clicked (launching a new audio file)?
i've defined a Tween object within a function, and i want to control that tween from another function.
This is the basic way i have the code set up currently:
// Define the function with my tween: function updateSlide() {
[Code].....
Now i'm sure it's not working because it's not within the same function, but what would you do to make this work? Some sort of global variable or global function? I'm not used to working in AS2, or with programming in general
I have some strange problem while using more than one sound that I want control.
Code: var myMusic:Sound = new Sound(); myMusic.attachSound("music1"); myMusic.start(0, 999); myMusic.setVolume(50);
[code]....
When I try to reduce sound volume of 1 sound, volume of all sounds is beeing reduced?!The same situation is when I use tween comands like: this.myMusic.volumeTo(5, 1, "linear");
I would like to implement a Flash menu, that when clicked on, changes the content within a specific <div> on the PHP page. However, I am having a hard time finding useful examples of this for a beginnerplaced in the html page, the javascript and the Flash document, using say, content within 's1', 's2' and 's3'? I only have access to AS2...So for instance, how would I change <div id="s1"></div> to <div id="s2"></div> using a Flash button?
I have a 2GB Mpeg 4 Movie , i want to set the speed of frame progression by Action script. Example: play 1 frame every X seconds,where X can be a value that i will change
the movie is 1920x1080 ,30 frames per second square pixel.
How to control the scalability of certain objects in a flash file. I'm trying to create a full page flash site where the scale of the certain objects stays the same, but a background image scales to how large a user's screen is. A great example of this is at "[URL]."
Is there a way to change a CS-loaded image (jpg) through FLASH?I'm using FLASH 8 (I know, I'm trying to get with the times lol) and have the following CSS written directly in my HTML page in the <HEAD> tag:
<style type="text/css"> html, body { width:100%;
[code]....
Is there a way I can, in FLASH change that "large_bg_1.jpg" to something else with a button or event?
I have a flashplayer in html page and I want it to stop the auto play function when the page loads and play whenever I click play, and I tried to play with the code and added this: <param name="Autostart" value="0" /> but it's not working. On the other hand, I set the autoplay function for the quicktime player to "false"and it worked.
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
I made a flash animation using timelines and broke my movie up into three clips. The clips run fine in their own time line. I was reading about clip.play() clip.stop() and it seemed like I could do this. I have a main timeline with three frames. Each frame has a movie clip symbol on it. Each movie clip symbol has a timeline a few seconds long in it.I did this because I want to put a click event that will go to a different url depending on which clip the viewer is currently seeing. This swf file will be embedded into an html document.When I run the resulting swf - the three frames on the main timeline zip along like crazy and the movie clips don't play at all. I've tried every combination of stop() and play() I can think of but this is just not working as advertised.My movie clips have instance names of Clip1, Clip2 and Clip3.
1) some sample code that works so that I can run these clips in consecutive order;
2) the appropriate onClick code to use in the main timeline frames for my url events
I'm working on a menu system in flash. If the mousewheel scrolls up each menu item shift up and visa versa for mouse wheel scrolling down.
The problem I have is there seems to be multiple "steps" going on.
In my mouse wheel handler I trace out the text "wheel" to test. If I mouse the mouse wheel just once "wheel" gets traced out twice. So for every one mouse wheel move my handler is being called twice and thus the scrolling of my menu always skips an item.
Is it possible to use Flash JavaScript API with YouTube videos? The only function that I got to work reasonably is "Zoom". TotalFrames() gives "1" and TCurrentFrame('/') is always "0". Other functions seem to do nothing. For testing this I'm just using the live Google Playground Demo with "ytplayer" as the movie object. Most of what I want to do can be done with the Google API, but I still feel uncomfortably unclear on the three way relationship of YouTube videos, swfobject, and Flash.
I am trying to controll my movieclip with my buttons in Actionscript 2. I have a loop in my movieclip, it goes frame 1-20 over and over again. I want the button to move it to frame 21 and play it onwards from there. How do I do this?
I have 4 key frames in my flash project and what i'm trying to do is to go from one key frame to another and make some of the content on the destination key frame invisible using actionscript. I know how to go from one frame to another but i'm having problems finding a way to control the visibility of content from another frame.
And clicking the link would load up my Flash movie, which is basically just a shell that imports an XML glossary of terms, but when the page loads, it would automatically show the word "Blah" since that is the link that I clicked on in HTML.
Is this possible? I'm at about an intermediate level of understanding when it comes to AS3.0, but I haven't dabbled with manipulating XML using Flash much.
I was just wondering how the heck I can connect the two - xml socket? I'm not sure how to start googling this topic. I want to use my flash apps for more than just web functionality, I want control over the things outside my computer