Inject Controller Into Another?

Aug 23, 2011

I have a controller that receives an event with some data. As a part of the processing this s new data it needs to modify a collection in another controller. Is it a bad idea to inject a controller into another controller to modify this collection?

View 2 Replies


Similar Posts:


Actionscript :: Inject Metadata Into A F4v File?

Jun 27, 2009

I was wondering how do you inject metadata into an f4v file with quepoints? I've been reading somewhere that it's either during encoding or a custom actionscript that embeds when the file runs.

View 1 Replies

Flex :: Inject Data In A Swf At Compile Time?

Nov 29, 2010

Is it possible to inject data, for example a collection of assets (video, images...), in an swf at compile time?

We have a flex application that needs to be able to export an swf at runtime that contains all the necessary data, because it needs to run as a standalone application (on- and offline).

The idea so far was to create a server side script that calls the flex compiler and feed it the data it needs. This approach seems to work fine using the [Embed] tag for single files, but it gets kind of messy when trying to inject collections of data that vary in length for each exported swf.

We could generate an mxml file with one embedded variable for each asset and include it at compile time, but that approach seems for from ideal.

We've looked into some actionscript bytecode libraries, but those do not seem to be fit for this.

View 4 Replies

AS3 :: Flash - Inject A Frame Script Into A MovieClip?

May 11, 2011

I was wondering wether it is possible to inject a frame script into a MovieClip and to get a reference to the mc the script was injected into from the function used as the frame script.There is a MovieClip named mc. It has a frame label 'end' somewhere and we want to add a stop() to that frame without adding code to the MovieClip itself (keep in mind that this is just an example). So here is the code (we could place it on the main time line of a test movie that has the mc on the stage):

var end:int=0;
for (var i:int=0;i<mc.currentLabels.length;i++)
{
if (mc.currentLabels[i].name=='end')
end=mc.currentLabels[i].frame;

[code]....

When the playhead reaches the frame labeled "end" in mc the function doStop() will execute. This function keeps its original scope however. So to stop the mc we need to specify mc.stop(). 'this' points to the object where the function doStop resides so this.stop() won't work. If we wanted to use the same function for multiple mcs we'd have to get a reference to the currently targeted mc somehow.

View 1 Replies

Flex :: Inject Properties Into Item Renderer

Aug 5, 2011

Is it a bad idea to inject data into an itemrenderer. The reason I ask this is because the state of each item is dependent on different changing data sources. So the original data is used to just display a new item, but there could be two to three other data collections that would be needed to determine the item's behavior. Is there a better way to do this? Should I be creating a custom DataGroup with the other data sources as properties on this custom container and then reference the data sources from the itemrenderer to the parent?

View 1 Replies

Actionscript 3 :: Inject A Dictionary Using Parsley Framework In It?

Aug 29, 2011

In my parsley container, I'm instantiating an object 'A' that contains a Dictionary (flash.utils.Dictionary).

I would like to create this Dictionary using parsley and inject it to 'A'.

This dictionary pairs structure is: key=id of object 'B', value='B'

where object 'B' is also an object which is defined and created using parsley(so basically the pairs structure is and object id as a key and the object itself as the value).

Now, I have no problem creating 'A' and 'B', but can't seem to find the right way to create this dictionary using parsley, nor injecting it to 'A'.

View 1 Replies

Flash :: Inject Javascript Code From The Address Bar Int A Video?

Jun 19, 2011

With regular HTML it's possible to change the look of the page and to make new cookies using javascript simply by typing it into the address bar and hitting enter.But what about flash videos.Is there a way to preform some action on the video on the page using javascript in the address bar?

View 2 Replies

ActionScript 2.0 :: LoadMovie - Inject A Variable From The First Movie To The Second One After It Takes Over?

Jan 28, 2009

I'm designing a game where the levels are too big to be in one swf. so each level loads up a new movie- but if my wildest dreams came true i would be able to, for example, load level 2 and have it remember how well you did on level 1.is there any way to do this? to inject a variable from the first movie to the second one after it takes over?

View 3 Replies

Actionscript 3 :: Inject HTML Tags In An MX:Text Control With A Bound Text Value That Renders Properly?

Jun 29, 2011

i am working in a flex application, i have an mx text control or I can use whatever control I need to do display the text value, but what I am trying to accomplish is to be able to format that text value with html 'before' it gets bound to the text control.<mx:Text text="{data.combinedCriteria}" width="99%">In the .as file that manipulates the combinedCriteria property of data,

View 1 Replies

ActionScript 2.0 :: Possible To "inject" Data In Compiled SWF?

Jun 28, 2010

i was wondering if its possible in any way to add/inject a variable, WITHOUT having to decompile/recompile a SWF

View 5 Replies

ActionScript 3.0 :: How To Get Controller

Jul 13, 2009

i'm trying to use org.simplemvc for my first mvc project. i'm getting it piece by piece, but I can't figure out how to get the controller from a class of mine that extends view.I thought it would be as simple as just calling a method from it's super, view, the controller getter. but it tells me the property doesn't exist, so I'm thinking it has something to do with the interface.[code]

View 1 Replies

Professional :: Can't Resolve When Using The Controller?

Mar 15, 2010

I'm using CS4 and encountered an issue that I can't resolve when using the controller. When an audio file (MP3) is on the timeline, I hit play on the controller to listen to audio but when I hit stop, the play head stops while the audio continues to play. I also noticed that when scrubbing the timeline you can't hear the audio.
 
Has anyone encountered this? This issue doesn't happen in CS3 and since a lot of my work deals with syncing graphics to narration I have to go back to CS3, which I don't want to do.

View 3 Replies

ActionScript 2.0 :: Set The Speed Controller?

Jan 9, 2009

I have one flash movie. I have to set speed controller for this. Like: Regular, Slow and Speed. How can I set the speed controller.

View 2 Replies

Creating Flash Controller For Website?

May 26, 2009

Rather than build a controller for each video on our website, my IT dept wants me to build one controller that all videos can access. How do I do that and do I need a script? I know nothing about scripting and I'm a newbie in video publishing

View 3 Replies

ActionScript 3.0 :: Volume Controller And External SWF

Jul 8, 2009

The first is that when loading an external swf in my main SWF I get this in the output window:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::list_1/frame1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at audio_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::MainTimeline/frame1()

But it still works. Its an mp3 player. The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.

The code of my main SWF is:
import caurina.transitions.*;
var _currentCategory:String = "";
var percent:String = "";
var loader = new Loader();
loader.name="videoLoader";
[Code] .....

View 1 Replies

Use A Wireless Controller For Flash Presentations?

Jul 22, 2009

I'm trying to use a Kensington wireless remote to advance the slides in my presentation...

View 1 Replies

Flex :: .NET Webservice In MVC - Access (controller)?

Jun 22, 2010

I am working on a flex application which makes calls to an .NET webservice. I am trying to follow the MVC design pattern. I have created a model, which stores all information received from the webservice. The webservice itself is created by actionscript in the controller. The view in my case, consists of various user-defined components (multiple .mxml files).

The Model is a singleton class, and each of the views accesses a getInstance of the model. The question is how do i access the webservice (i.e. controller) from each of these components? Does the controller also need to be a singleton class just like the model? and let each component get an instance of the controller in order to access the webservice?

View 1 Replies

C# :: Post Image To Asp.net Mvc Controller Action?

Jan 18, 2011

I'm trying to create an asp.net mvc controller method that will return an image generated by a POSTed bytearray. The post is coming from Flash and has the request header: "Content-type", "application/octet-stream" (although this can be changed if needed).[URL]

var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest("jpg_encoder_download.php?name=sketch.jpg");

[code].....

View 2 Replies

ActionScript 3.0 :: Flash Video Controller?

Jun 30, 2009

Can flash video controller control external swf files? It seems it can only control flvs?nyways, I am working on a flash animation with voice over and I need to have a video ontroller so it can rewind, fast forward, pause the swf and turn off the sound....etc....oes anyone know any video controller in AS3 that can control swfs out there that I can download or purchase?I know I could convert the swf to quicktime then flv, but the quality would be degraded because of the conversion from vector graphics to bitmap. I certainly wouldn't want to have that.

View 1 Replies

ActionScript 3.0 :: Frame Slider Controller?

Nov 30, 2010

i need to have a slider over my stage to control the time-line "frame by frame motion"...to drag the slider and move foreword and backward with actionscript 3.0the problem is how to control the slider to reflect in the main time lineand the drag and move action for the slider itself ..

View 3 Replies

ActionScript 2.0 :: Best Way To Load Sound Controller?

Jan 13, 2004

I have an external sound controller that plays 10 tracks. The current way I load the sound controller is with LoadMovie and I do it on the last frame of the movie that is my actual website. However, this slows my whole site down significantly, because when I press stop on the sound controller...everything is at the speed I want it to go. What is the best way to go about preventing this slow down?

View 2 Replies

ActionScript 2.0 :: Control Flash With USB Controller

Feb 7, 2008

How do I create a game that is controlled by a plug-in USB game controller? I already have the scripting done for the game itself. I just want to know how I would script it to be controlled by a USB game controller.

View 2 Replies

ActionScript 2.0 :: External Loaded Swf Controller?

Nov 24, 2011

I have an external swf that loads in a file using this code:

Code:
var paused:Boolean = false;
play_mc.onRelease = function()

[code]....

View 3 Replies

ActionScript 2.0 :: Way To Load Sound Controller?

Jan 13, 2004

I have an external sound controller that plays 10 tracks. The current way I load the sound controller is with LoadMovie and I do it on the last frame of the movie that is my actual website. However, this slows my whole site down significantly, because when I press stop on the sound controller...everything is at the speed I want it to go.

View 2 Replies

ActionScript 2.0 :: FLV Controller And Delayed Button Appearance

May 20, 2010

I'm having trouble with a controller I'm using with an FLV. I am a newbie when it comes to actionscripting. I have a project I'm working on that contains a 86:50 minute FLV and towards the end I will have a separate button appear to click on. The code I am implementing was from a different project that utilized the same functions but with a 4:49 minute FLV. I have an example of this at [URL]. As you can see the controller is set up for the 4:49 minute FLV and when the timer gets to 5:00 minutes that button comes in. I need to make the FLV play the whole way through and then at a specific point have the button appear and I can't seem to do it. Below is the only code I can see that pertains to this section.

scrub.onPress = function(){
scrub.startDrag(false, -365, scrub._y, 49, scrub._y);
dragging = "true";
}scrub.onRelease = function(){
var newNum:Number = (scrub._x - -365) * .7625;
mainVid.seek(newNum);
scrub.stopDrag();
dragging = "false";
[Code] .....

View 1 Replies

ActionScript 3.0 :: Activating Buttons With A Controller Button?

Feb 24, 2009

I have a row of movie clips which act as buttons with an inactive state, active state, selected state etc. What I am seeking is kind of like a controller button which when clicked will activate or de-activate this row when clicked. I thought the best way might be to set frame labels and add a goto sript for the controller button to make each button go to the activate frame when the controller button is clicked.

View 4 Replies

ActionScript 3.0 :: Playback Controller Wider Than .flv Movie?

Sep 12, 2008

When I render an .flv by adding the video to the Render Queue in After Effect instead of exporting to .flv the video controller ends up wider than the video itself when imported to Flash.

My video is 495 wide by 360 high. When I render in AE in the Render Queue, and then import to a Flash doc, the video controller is about 15 pixels wider on both the left and right of the video. This looks goofy. Is their a way to resolve this? Is this a Flash challenge or an After Effects challenge?

View 4 Replies

Sliding Volume Controller For Main Timeline?

Apr 29, 2009

I am trying to change the volume on my sound files which are located on the main timeline.(sync = streaming) I can use a allSound.setVolume(#) to control the sound level across the timeline.

[Code]....

View 5 Replies

Data Integration :: Make A Temperature Controller?

Oct 8, 2006

I need to make a temperature controller.How can i bring a live temperature inside flash I have aexternal text file that have the value.It needs to update every 3 sec, so need to reed every 3 secthe value in a external text file.

View 1 Replies

ActionScript 1/2 :: Controller / Scrubber For Animation With Scenes

Apr 8, 2010

I would like to make a player controller with a scrubber for an animation I am creating. I do not want to control a video (mp3, flv, or other). I want to control the animation on the timeline. My Flash file has scenes. Is there a tutorial for applying a controller for this kind of file?

View 1 Replies







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