ActionScript 3.0 :: XML CuePoint Loading Graphics

Aug 24, 2009

So I have this bit of code that pulls text from within the "caption" tags in the XML file and displays it in sync with the cue points...it works great.

Code:
caption_mc.setText(String(xmlData.cuepoints.cuepoint[i].caption));

I sorta understand how it works but not enough to convert it to pull a graphic. I assume it would be something like:

Code:
graphic_mc.setGraphic(URL(xmlData.cuepoints.cuepoint[i].caption));

View 0 Replies


Similar Posts:


Adding Child At Video CuePoint, Then Removing Child At Another CuePoint?

Aug 4, 2009

However, either I'm declaring my variables at the wrong bit/way or there is another problem, as I have been able to add the child I want to from the display list (sidepoint: is it right to call the display list everything in the library on stage at runtime plus those things you have exported for actionscript usage??!)...but when I want to remove it at the next cuepoint nothing happens. I feel this is a basic principle that is alluding me here.

Code:
vid.addEventListener(MetadataEvent.CUE_POINT, cueText);
function cueText(e:MetadataEvent): void{

[code]....

View 1 Replies

Bitmaps - Loading Graphics From Game Into SWF File

Dec 17, 2009

I have 2 questions regarding bitmaps. Say I'm loaing graphics from a game off a server into a .swf file:
1) Which format is the best to use - gif, jpeg,png? (for non transparent images)
2) When a user plays a .swf movie it gets saved to their browser cache and its loaded the next time they access the same file, but when your externally loading images does flash have to re-download all the images or is it all stored in the browser cache?

View 2 Replies

ActionScript 3.0 :: Loading Vector Graphics At Runtime?

Oct 20, 2009

I'd like to know if there is any way or any vector graphic file format that i can load dynamically at runtime on a web-based flash application.I have some files in pdf that i want to load in and i can convert them to jpgs at runtime and load the jpgs but then i lose vector graphics so when i zoom in and out they become pixelated.
 
I had a look a look at flashpaper to convert pdf to swf and load them in but i can't see anywhere in the documentation about converting the pdf's at runtime rather than manually dragging and dropping them in.So far i've looked at pdf, svg and .ai but none of these can be loaded at run time just imported into the .So can this be done? Or alternatively is there an application that can do the pdf -> swf conversion from the commandline then i could trigger php to do the conversion at runtime.

View 3 Replies

Professional :: Loading Vector Graphics File Format In IOS Converted App?

Mar 9, 2011

I'm going to create a iOS app in flash and convert. I'm thinking I may want to load graphic assets at runtime. I'd like these assets to be vector graphics so they can be resized easily with no quality degradation. I usually use SWF files ofr this purpose. Unless I'm wrong, a converted iOS app probably does not load SWF files. So I'm wondering what kind of vector graphics file format can iOS load at runtime?

View 1 Replies

ActionScript 2.0 :: Attach Graphics Instead Of MC Cause A Graphics File Size Is Relatively Small Than That Of A Graphic?

Apr 9, 2005

I was wondering about MC and hey can help to lag a game out. I set up an advanced class system so i don't have to use MC to simulate walls, all i use isthe x,y,width and height. Well anyway since i don't need MC anymore I was wondering if there is a way to attach Graphics instead of MC cause a Graphics file size is relatively small than that of a graphic, I think. If anyone could tell me thats true and show me a way to attach graphics that would be nice. I haven't tried it yet but maybe if I exported the graphic from the library imihgt be able to call its name, but it doesn't have an instance name so im stuck.

View 2 Replies

ActionScript 3.0 :: 1119: Access Of Possibly Undefined Property Graphics Through A Reference With Static Type Flash.display:Graphics.

Oct 8, 2009

i am trying to receive in my function as a parameter either a shape or a sprite and then access their graphics property, but this gives me an error:

Code:
public static function makeRect( obj:DisplayObject, ...
var g:Graphics;
if(obj is Sprite){

[code]...

//1119: Access of possibly undefined property graphics through a reference with static type flash.display:Graphics.

View 1 Replies

CuePoint Is Stopping Playback?

Nov 5, 2009

I've encoded an flv with cuepoints. When I play the video, it freezes at the cuepoint. I'm useing as3 on windows 7. I've removed the metaData callback from the code below as the problem occurs with and without the callback.

nc = new NetConnection();nc.connect (null);ns = new NetStream(nc);
vid = new Video();vid.attachNetStream(ns);ns.play('names1680.flv');

View 1 Replies

ActionScript 3.0 :: Get Button To Appear AFTER Cuepoint

Jul 1, 2011

I have an flv inside an swf. when the flav gets to either 22:00 or a certain frame I need an invisible button to appear ONLY after the cue point where the flv will display a click here graphic and the invisible button will be on top.I was able to add the button to the stage but it is clickable throughout the video, how can I get the button to appear AFTER the cuepoint.

View 7 Replies

ActionScript 3.0 :: Set CuePoint To NetStream?

Feb 8, 2010

Currently I'm using a rtmp server to streaming a video (m4v format), and now I need to set a cuePoints to call this one.

The problem is,

I'm using a simple video playback with NetStream and NetConnection, till here its okay, the video is streaming correctly, now appears the necessity to show some graphics in middle of the video.

How can I set the cuePoint name? addCuePoint()? The simple video player support it?

View 1 Replies

ActionScript 3.0 :: Cuepoint To Stop The Flv And Go To The Next Frame?

Apr 29, 2009

I have added a cuepoint at the end of a movie while converting it into flv file, how do I use the cuepoint to stop the flv and go to the next frame? I am new to all of this, can animate a little, but not hand-coding. This is what I received from a co-worker trying to make something happen with Flash and PHP

"Basically, at the end of the video, display in the Flash something simple like this: [URL] Feel free to format as needed to look good in context. Freeze on that frame so that they can retype that confirmation code in a form. Let's use these two variables: confirm_code (unique 7-digit alphanumeric string) video_control (to turn on video controls for testing, to turn off default) You can output a basic HTML page with hardcoded variables, and from there, I can modify it for use on the dynamic PHP page interfacing with the database."

View 1 Replies

Actionscript 3 :: OSMF - Add Cuepoint To A Video?

Jun 5, 2010

I'm trying to add a cuepoint to a video using OSMF. I built an OSMF video player, and I'd like to use this instead of the FLVPlayback component, which seems like the only way to add an actionscript cuepoint? Anyhow, I created a cuepoint by writing this:

[Code]...

View 2 Replies

ActionScript 3.0 :: Calling Action From FLV Cuepoint?

Aug 24, 2009

I have an FLV file that I am loading in with the FLV Playback component. Within this FLV is a cuepoint called "endvis" that I want to trigger an MC's visibility (make it visible).

View 1 Replies

ActionScript 2.0 :: CuePoint To STOP Video On The Last Frame?

Dec 3, 2008

I have imported a video into Flash CS3 and I want to be able to stop the video on the last frame. If I say false to autoRewind, it goes to a black screen and if I say true to autoRewind, it goes to a white screen. I believe if I use a cuePoint on the last second to STOP then it would work.

View 3 Replies

ActionScript 3.0 :: Activate Movieclip Via FLVPlayback CuePoint?

Apr 22, 2010

I'm working on a more interactive movie. It basically just has effects over the video that go outside of the FLVPlayback's dimensions to seem more "realistic." It seems very basic, but I am unsure where I would begin. Let me tell you the basics: It's offline, I imported the video from my computer and used the "Load external video with the playback component."My FLVPlayback on the stage is called:

fla_movieTrailer It has cuepoints already in the .FLV video. I have one Event one named "blacksmoke." If the video reaches the cuepoint "blacksmoke" I want it to play the MovieClip named fla_blacksmoke. So how do I have it activate fla_blacksmoke?

View 3 Replies

ActionScript 1/2 :: Unsorted CuePoint In FLV Video File

Jul 10, 2009

I hava an application which heavily uses cuepoints for al kinds of navigation and event purposes. To properly handle the cuepoints I use some sorting etc. of the cuepoints when the onMetaData fires. The video is played as a NetStream from a WOWZA rtmp server. In the production it will probably run from FMS. Today I received the final flv from the client which contains about 300 cuepoints of type navigation and event. The file is generated in AE CS4. With this specific file the onMetaData event does not fire at all anymore (or it generates error below), the onCuepoint event does fire as expected.

Testing with playback trhough the flvplayback component generates the folowing error:
1002: Illegal cue point: Unsorted cuePoint found after time: 93.16
There are two cuepoints set at that point in the video (never thought that was possible...). Could the 'duplicate' cuepoint be the reason onMetaData does not fire? Any preferably cross platform, tool that just inserts cuepoints into an FLV instead of rendering the whole thing again? (I don't think FLVmetainjector does).

View 1 Replies

Actionscript 3.0 :: Add Cuepoint Using Custom Flv Player (not The Component)

Oct 27, 2008

I have this custom flv player and now I want to add cue points to it, but I don't know how. I've been doing research online. I know that if I use the component flv playback I can use addASCuePoint to add cue points in actionscript, but what about custom flv player?

View 3 Replies

ActionScript 3.0 :: RemoveChild If FLVPlayback Seekbar Moved Away From Cuepoint

Dec 12, 2010

I have a FLVPlayback component with an FLV. I have it setup so that when the FLV reaches a cuepoint at the end, a button appears to rewind and play the video, and remove the button. This all works fine. My question is if there is a way to remove the button (removeChild) if the user goes back in the video using the seekbar in the FLVPlayback component?

View 2 Replies

ActionScript 2.0 :: Button That Loads And Then Plays A Specific Cuepoint?

Jul 30, 2009

This should be simple but...I have several buttons "Questions" on the main timeline. The answers to these Questions are at specific cuepoints in the flv. This .flv has nav.cuepoints inserted during encoding.Click the button needs to load the flv,then automatically go to the specific cuepoint. Then it needs to run, eventually, to the end of the flv.I dont want the user to have to load the video first then use the cuepoints.I also dont want the video to load at the start, only after one of the questions(buttons) have been clicked.

Will the flv buffer from the cuepoint or does it have to buffer from the start of the video regardless of the cuepoints?

code Im playing with:

import mx.video.FLVPlayback;
//play at start
var my_flvPb:FLVPlayback;my_flvPb.autoPlay = true;[code].....

View 2 Replies

ActionScript 3.0 :: Cuepoint Listener Can't Target Dynamically Loaded Swf

Mar 15, 2011

I'm having trouble adding a cuepoint listener to a dynamically loaded .flv which targets a dynamically loaded .swf. I'm also adding cuepoints via actionscript.

Basically everything loads okay but I get a compile error in the the function cuePointHandler when referencing mc_slideLoader.

Scene 1, Layer 'Actions', Frame 1, Line 601061: Call to a possibly undefined method gotoAndPlay through a reference with static type flash.display:Loader.

I'm still a rookie with AS3 so I'm thinking the Loader class doesn't have a gotoAndPlay property and some how I have to get it to act like a MovieClip?

Here's the actionscript.

ActionScript Code:
// using Flash version CS5
import fl.video.*;
import fl.video.FLVPlayback;

[Code]....

View 7 Replies

ActionScript 3.0 :: Flv Cuepoint Handler Update On Scrub For Synced Slides?

Dec 15, 2009

What I have is a video that plays and has nav cuepoints which, when reached, trigger the movie to display a new frame, each frame being a "slide" of bullet points that correspond to what the person in the video is discussing. This all works well, but I the only problem is that if the viewer scrubs the video backwards or forwards the slide doesn't update to display the appropriate slide unless the user plays through the nav cuepoint again. I would like to make it so that when the user scrubs, it will check for the last nav cuepoint and jump to the appropriate movie frame/slide but without taking the video back to the last cuepoint.

I'm pretty new at actionscript 3 but I believe I need to use some combination of onScrubFinish and findNearestCuePoint, but I don't know how to implement this.I should do this? Here's my code so far:

Code:
// *************************
// Stop the timeline

[code]......

View 2 Replies

ActionScript 2.0 :: Make A Graphic Visible When "complete" Cuepoint Is Detected, But Function Doesn't Work?

May 24, 2007

I'm using Flash 8 (in case you need know what version I'm using).There's three flvs I have assigned a cuepoint, "complete". The goal is to make a graphic visible when "complete" cuepoint is detected, but this function seem doesn't work, any feedback on function?:

Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);[code]....

View 1 Replies

ActionScript 3.0 :: Divinding Vector Graphics Into Vector Graphics

Jul 28, 2009

I have a large vector drawing (imagine 5000x5000) that i want to break up into separate pieces. I know that I can convert this vector drawing into a bitmap and then use the copyPixels method to create many separate bitmaps of the different regions of the original vector drawing, but is there any way to subdivide it into movieclips that just contain vector graphics instead of a bitmap?The reason im dividing a big chunk of vector graphics into smaller pieces is for performance reasons, so flash would only render a small part of this big chunk at a time (only certain regions/voxels/subdivisions are rendered at a time). But bitmaps apparently take up a lot of memory and the system im using would take much less memory if these subdivisions could be preserved in their original vector graphics form.

I imagine I could use masks somehow to achieve this effect (for each subdivision, duplicate the huge image and mask only the region that the subdivision represents), but I dont know the performance costs of masking or if this will create other problems.So is there anyway to split up a movieclip of vector graphics into smaller movieclips of vector graphics the same way copyPixels can with bitmaps?

View 1 Replies

Some Graphics Not Displaying In Swf

Feb 6, 2010

I have started to put together a flash piece. When I preview it, it displays as it should, however if I export the movie and then view the swf it doesn't display the animations from within one of the folders. I have made sure that the layers aren't hidden.

View 10 Replies

All Buttons Become Graphics

Jul 29, 2011

I'm trying to solve this problem since 1 week ago. But still no luck. I'm using flash cs4. I have a prealoder which is done on action script 3. but the problem is when I added my swf movie it becomes just a plain graphic. All buttons converting in to graphic. I imported swf in to library first and drag and drop the swf movie from there to stage.

View 9 Replies

Put Some Graphics On Front Of Card?

Dec 3, 2009

I just made my first flash game. A memory game, But I cant figure out how to put some graphics on the front of the card. And make it take the pictures from a image folder. and make it look ok ?

View 1 Replies

ActionScript 3.0 :: Combining Two Graphics Or More Into One

Sep 13, 2009

Using AS3 code, is it possible to combine 2 graphics or more into one?
Example : combining a rectangle and a triangle to make a nice arrow?

View 5 Replies

ActionScript 3.0 :: Graphics Fly Off Stage?

Jun 1, 2010

I have an .as class file which creates a circle at the mouseX and Y, another .as file that acts as a getter/setter for my array and a .flv file to run to script. It's sposed to create a circle at the mouse coordinates and expand. the problem is, it creates the circle which expands but depending on how far away you click from the top left, the circles fly right off the stage towards the bottom right.
 
I traced the x and y coordinates of the circles but their coords aren't changing. heres the code
 
///// AS File /////
package com.tools.circleDraw {
import flash.display.Sprite;
import flash.display.Graphics;

[code]....

View 1 Replies

Professional :: Extract Graphics From Fla

Jul 29, 2010

I have a load of FLA files with large libraries of vector graphics. Is there a way of forcing Flash to create an export(jpg or swf)of all the graphics in a library without having to manually drag them onto the stage or into a scene before publishing or exporting them? I'm thinking there might be an SDK or utility or something that can read fla files and export everything programmatically.

View 3 Replies

Professional :: CS5.5 IOS App Graphics Quality

Feb 9, 2012

I am designing my whole app in photoshop and currently in the process of moving all of the images to flash to add interactivity. The promblem is, when we put the app on the iphone the quality of the graphic is lowered for some reason. When I am building in photoshop my settings: 640px by 960px 72 ppi Saving out as a .jpg When I send the jpg as a picture to my iphone 4 and view it in my "Photos" app, it looks great, but on the test app it loses quality. Does anyone have anyone have any idea whats going on here?

View 16 Replies







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