as3 flv ffs!
- Started
- Last post
- 4 Responses
- wwfc
Afternoon all!
Anyone know their way round as3 and flvplayback components at all?!?really need some help here - I have an fla that uses classes etc.. to create a nifty little effect - sort of a rotating carousel of images that if an image is double clicked it zooms in on that image.
works great with images but i have tried to integrate the flvplayback component to play flvs instead of showing images. but so far it doesn't appear on the stage - flv loads up etc... but it doesn't actually become visible :-(been banging away at this for weeks now - so am in real need of someone to hold my hand if poss.
i have set up the flash import like so
import fl.video.*;
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import flash.ui.Mouse;
import flash.display.Stage;
import flash.filters.*;
import flash.utils.Timer;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.NetStatusEvent;
import fl.video.VideoPlayer;
import fl.video.FLVPlayback;
import flash.display.MovieClip;
import flash.media.Video;
import flash.events.Event;seems okay and no errors when i compile - but i do get this error when i double click on an image and start the zoom
## [Tweener] Error: [object Thumbloader] raised an error while executing the 'onComplete'handler.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.mediastuttgart.imageworld3d...
at Function/http://adobe.com/AS3/20...
at caurina.transitions::Tweener...
at caurina.transitions::Tweener...
at caurina.transitions::Tweener$/on...so still something wrong in there - i 'do' have the flvplayback component in the library but I don't know how i should call it when it comes to showing the large image all the section for the large image is here:
http://pastebin.com/m7f82698cand the main class for the shabang is here in it's entirity:
http://pastebin.com/m5846e96fi have tried everything that i can think of to get the flv's playing - including long periods of reading on the net - but i get no closer - everything that sounds right gives me errors that public classes are conflicting and sh*t like that ! really doing my fruit in here.
I'm nt expecting anyone to 'do it' for me (though that would be fookin ace!) - but if some one could at least tell me what i need to put where i would be very very grateful.
Any one know where i am going wrong here?
- Fariska0
All the flash classes are imported correctly.
You are importing wrongly the caurina classes. That is an error message from them.As a debugging advice: the runtime error you're getting is on the proceedLoad function. Comment out what happens in that function an re enable it line by line.
It seems that you're making stuff do to something which has no value. So trace the value of largeImageLoader to see if it has value or not.
- mikotondria30
Im sorry, I can't see anything glaringly wrong, in what seems an awesome piece of coding - I can only suggest the approach that Fariska recommends, in that you comment out most of the function that's being called on the tweener onComplete, and gradually open it back up to find the offensive portion. Trace(this) is your friend, particularly in the largeImageLoader object -
I'd really like to see how this turns out when you get that error squashed.
It's times like that I sometimes am sentimental for as2, but then you just wouldn't get the performance :/ keep us posted ?
- wwfc0
...will do - thanks for the pointers both ;-)
- wwfc0
...okay moving closer ( i think)!
i have added bits to the showlargeimage function
like so:
http://pastebin.com/m55f59271and no compile time errors but when the thumbnail gets clicked and it zooms in / shows the large image i get this error:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFou...
at com.mediastuttgart.imageworld3d...
at flash.net::NetConnection/connect...
at com.mediastuttgart.imageworld3d...
at Function/http://adobe.com/AS3/20...
at caurina.transitions::Tweener...
at caurina.transitions::Tweener...
at caurina.transitions::Tweener$/on...which i am hoping means that it knows what to do but doesn't know where the flv is?
this is the line that defines where the largeimage is:
var largeimage:String = settingsXML.images.image[i].attr...
how do i write that in the _stream.play("imagePath");
i would have hoped that the above be good to go - but no - it isn't
:-(any work out what is a miss?